diff --git a/app/Settings/Settings.php b/app/Settings/Settings.php index 36dedac..100c67d 100644 --- a/app/Settings/Settings.php +++ b/app/Settings/Settings.php @@ -70,6 +70,18 @@ public function __construct() ], 'default' => 'network', 'desc' => esc_html__('You can choose the mode you want to use in the payment process. If you choose the network mode, the user will first choose the network and then the currency and then the wallet. If you choose the currency mode, the user will first choose the currency and then the wallet.', 'cryptopay_lite') + ], + [ + 'id' => 'wcProjectId', + 'title' => esc_html__('WalletConnect Project ID', 'cryptopay'), + 'type' => 'text', + 'desc' => esc_html__('WalletConnect Project ID is required for WalletConnect, which are used to connect to mobile wallets on many networks. If you do not have a WalletConnect Project ID, WalletConnect will not work. You can get your project ID by registering for WalletConnect Cloud at the link below.', 'cryptopay') + . CP_BR2 . + Helpers::view('components/link', [ + 'text' => esc_html__('WalletConnect Cloud', 'cryptopay'), + 'url' => 'https://cloud.walletconnect.com/sign-in' + ]) + , ] ] ]); @@ -201,7 +213,7 @@ public function __construct() 'type' => 'content', 'title' => esc_html__('Converter API', 'cryptopay_lite'), 'content' => $proMsg . esc_html__('You can choose the API you want to use for the currency converter.', 'cryptopay_lite'), - ], + ] ] ]); diff --git a/app/Types/Data/ConfigDataType.php b/app/Types/Data/ConfigDataType.php index 09cd002..f98d100 100644 --- a/app/Types/Data/ConfigDataType.php +++ b/app/Types/Data/ConfigDataType.php @@ -55,6 +55,12 @@ class ConfigDataType extends AbstractType */ private string $version; + /** + * CryptoPay version code + * @var string + */ + private string $wcProjectId; + #String types #Class types @@ -145,6 +151,7 @@ public function __construct(string $addon) $this->lang = Constants::getLangParams(); $this->imagesUrl = Constants::getImagesUrl(); $this->version = Helpers::getProp('pluginVersion'); + $this->wcProjectId = Helpers::getSetting('wcProjectId'); $this->createTransaction = boolval(Helpers::getModelByAddon($addon)); $this->testnet = Helpers::getTestnetStatus(); @@ -180,7 +187,7 @@ private function getWalletImages(): object array_map(function ($wallet) use (&$walletImages, $pluginUrl): void { $walletImages[$wallet] = $pluginUrl . 'assets/images/wallets/' . $wallet . '.png'; - }, ["metamask","trustwallet","bitget","okx","xdefi", "binancewallet"]); + }, ["metamask","trustwallet","bitget","okx","xdefi", "walletconnect"]); return (object) $walletImages; } diff --git a/assets/js/app.min.js b/assets/js/app.min.js index 49f2177..06d8f89 100644 --- a/assets/js/app.min.js +++ b/assets/js/app.min.js @@ -1,27 +1,28 @@ -(function(Oi){typeof define=="function"&&define.amd?define(Oi):Oi()})(function(){"use strict";var Oi=document.createElement("style");Oi.textContent=`.walletconnect-modal__base{max-width:400px!important}.swal2-container{font-family:Arial,Helvetica,sans-serif;z-index:99999999999!important}.swal2-title{font-size:1.25em}.cpl-theme-dark .swal2-popup{background:#141d20!important;color:#a8aeb6!important}.cpl-theme-dark .swal2-styled.swal2-confirm{background:#050b13cf!important}.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px #00000013,0 1px 2px #00000013,1px 2px 4px #00000013,1px 3px 8px #00000013,2px 4px 16px #00000013;pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:.5em 0 0;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:#0006}div:where(.swal2-container).swal2-backdrop-hide{background:#0000!important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0,1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0,1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0,1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none!important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(#0000001a,#0000001a)}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(#0003,#0003)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px #0000;font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px #7066e080}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px #dc374180}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px #6e788180}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px #6496c880}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:#0003}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:#0000;color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:#0000;color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px #6496c880}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:#0000;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px #0000;color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px #6496c880}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:#0000;font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:#0000;color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message):before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:#0000;font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@keyframes swal2-toast-hide{to{transform:rotate(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}to{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}to{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}to{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}to{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}to{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotate(45deg);opacity:0}25%{transform:rotate(-25deg);opacity:.4}50%{transform:rotate(15deg);opacity:.8}75%{transform:rotate(-5deg);opacity:1}to{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:#0000!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px #0006}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:#0000;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto} -`,document.head.appendChild(Oi);function k2(e){const t=r=>{const l=[];r.networks.forEach(i=>{l.push(parseInt(i))});const n=i=>Array.isArray(i)&&i.length===0?{}:i||{};return{networks:l,mode:String(r.mode),addon:String(r.addon),theme:String(r.theme),apiUrl:String(r.apiUrl),debug:!!r.debug,version:String(r.version),testnet:!!r.testnet,imagesUrl:String(r.imagesUrl),lang:n(r.lang),confirmation:!!r.confirmation,amountUpdateMin:Number(r.amountUpdateMin),createTransaction:!!r.createTransaction,walletImages:n(r.walletImages),discountRates:n(r.discountRates)}},o=r=>{for(const l in r)r[l]===void 0?delete r[l]:typeof r[l]=="object"&&o(r[l]);return r};return o(t(e))}const ex='.swal2-container{font-family:Arial,Helvetica,sans-serif;z-index:999999999999!important}.app .wrapper{display:flex;align-items:center;justify-content:center;font-family:jost,serif;flex-direction:column;color:#6d6d6d;font-family:Arial,Helvetica,sans-serif}.app .wrapper .container{width:100%;max-width:450px;position:relative;box-sizing:border-box;padding:0!important}.app .wrapper .container .inner{background-color:#fff;border:1px solid #e2e4ec;box-shadow:0 0 20px #e2e4ec80;position:relative;box-sizing:border-box;border-radius:6px}.app .wrapper .container .inner:has(.modal.active):before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;z-index:999999999}.app .wrapper .container .inner ul::-webkit-scrollbar{width:10px}.app .wrapper .container .inner ul::-webkit-scrollbar-track{background:#f1f1f1}.app .wrapper .container .inner ul::-webkit-scrollbar-thumb{background:#888}.app .wrapper .container .inner ul::-webkit-scrollbar-thumb:hover{background:#555}.app .disable-el[data-disabled=true]{background:#d0d2d4;color:#fff;cursor:no-drop;pointer-events:none}.app .disable-el[data-disabled=true] .discount{color:#fff}.app .el-row:not(:last-child){border-bottom:1px solid #e2e4ec}.app .discounted-payment-amount span:first-child{text-decoration:line-through;color:red;margin-right:5px;font-size:12px}.app .full-height{width:100%}@media (max-width: 768px){.app .full-height{height:100%}}.app button:disabled{background:#ccc;border-color:#ccc;cursor:no-drop}.app button:disabled:hover{background:#ccc;border-color:#ccc}.app .pay-now{width:100%;padding:20px;height:60px;text-align:center;box-sizing:border-box;font-size:18px;font-weight:500;cursor:pointer;border-top-left-radius:0;border-top-right-radius:0;white-space:break-spaces}.app .amount-text{display:flex;align-items:center}.app .payment-amount .el-col{padding:20px}.app .amount-component{color:#000;font-weight:600;display:flex;text-align:center;align-items:center;justify-content:end;width:100%;font-size:13px;box-sizing:border-box}.app .change-network{font-size:12px;cursor:pointer;text-decoration:underline;border-radius:8px}.app .information-row{padding:20px;box-sizing:border-box}.app .information-row .el-col:not(:nth-last-child(-n+2)){margin-bottom:10px}.app .information-row .el-col:nth-child(n){text-align:left}.app .information-row .el-col:nth-child(2n){text-align:right}.app .confirmation-row{text-align:center}.app .confirmation-row .el-col:first-child,.app .set-reminder-email,.app .explorer-btn{margin-bottom:20px}.app .title{width:100%;padding:20px;text-align:center;box-sizing:border-box;font-size:24px;font-weight:500;border-bottom:1px solid #e2e4ec;line-height:normal}.app .currencies{list-style:none;margin:0;background:#0000;border-radius:10px;word-wrap:break-word;max-height:300px;overflow-y:auto;overflow-x:hidden;padding:20px;box-sizing:border-box}.app .currencies .el-row{padding:0}.app .currencies .el-row .el-col{font-weight:400}.app .currencies .el-row .el-col:not(:nth-child(-n+2)){margin-top:10px}.app .currencies .el-row .el-col:not(:nth-last-child(-n+2)){margin-bottom:10px}.app .currencies li{display:flex;align-items:center;line-height:0;cursor:pointer;height:28px;border-radius:12px;padding:8px;background:#eef0f3;box-sizing:content-box;color:#0a0b0d;justify-content:space-between}.app .currencies li .discount{margin-left:10px;font-size:10px;color:red;text-decoration:underline;white-space:nowrap}.app .currencies li span:first-child{display:flex;align-items:center}.app .currencies li .icon{width:28px;margin-right:5px!important;margin-left:0!important}.app .currencies li:hover{background:#d0d2d4}.app .currencies li.selected{color:#fff;background:#409eff;cursor:no-drop}.app .currencies li.selected .discount{color:#fff}@media screen and (max-width: 530px){.app .currencies li{display:inline-block;min-height:28px;height:auto;width:calc(100% - 17px);text-align:center}.app .currencies li span:first-child{justify-content:center}.app .currencies li .discount{margin-top:10px;margin-left:0;margin-bottom:6px;display:inline-block;text-align:center}}.app .list{margin:0;padding:0;width:100%;max-width:100%;list-style:none;max-height:400px;overflow-y:auto}.app .list li{height:90px;width:100%;display:flex;align-items:center;position:relative;cursor:pointer;box-sizing:border-box;padding:20px}.app .list li .network-name{font-size:14px;position:relative;margin-left:auto;margin-right:35px}.app .list li .network-icon{position:absolute;border-radius:50%;width:25px;height:25px;right:-5px;max-width:25px;bottom:-5px;border:3px solid #000;background-color:#fff}.app .list li:hover{background:#f5f7f9}.app .list li .icon{font-size:50px;margin-right:10px}.app .list li .img{position:relative;display:inline-flex}.app .list li .img-icon{border-radius:3px}.app .list li .img-icon,.app .list li .img{width:50px;height:50px;margin-right:10px;margin-left:0;max-height:100%;max-width:50px}.app .list li .name{font-size:18px;font-weight:500;color:#000;margin-right:35px}.app .list li .el-icon{position:absolute;right:20px}.app .list li .discount{position:absolute;bottom:10px;left:80px;color:red;text-decoration:underline;font-size:12px}.app .list li .status{font-size:14px;font-weight:500;color:#000;margin-left:auto}.app .list li .status .detected,.app .list li .status .openInApp,.app .list li .status .openInAppManual{color:#1e8454}.app .list li .status .download,.app .list li .status .onlyDesktop{color:#1292bc}.app .no-found{padding:20px;min-height:inherit;box-sizing:border-box;display:flex;text-align:center;align-items:center;justify-content:center}.app .wallets.disabled{opacity:.5;cursor:no-drop}.app .wallets.disabled>li{pointer-events:none}@media screen and (max-width: 500px){.app .network-arrow-icon{display:none}}.app .modal{position:fixed;width:100%;height:100%;top:0;left:0;z-index:9999999999;display:none;align-items:center;justify-content:center}.app .modal.active{display:flex}.app .modal .content{width:100%;max-width:450px;position:relative;background-color:#fff;box-sizing:border-box;box-shadow:0 0 20px #54545480;border-radius:6px;overflow:hidden}.app .modal .content .waiting{padding:30px 0;box-sizing:border-box;text-align:center}.app .modal .content .waiting svg{width:94px!important;height:94px!important}@media screen and (max-width: 500px){.app .modal{padding:0 20px;box-sizing:border-box}}.app .websocket-connection-status{padding:40px;text-align:center;box-sizing:border-box}.app .countdown-wrapper{text-align:center;height:50px;display:flex;align-items:center;justify-content:center}.app .countdown-wrapper .countdown span{border-radius:5px;padding:5px 10px;margin-right:5px;margin-left:5px;background:#4099ff;box-sizing:border-box;color:#fff;font-weight:600}.app .pay-action-btn{width:100%;padding:20px;height:60px;text-align:center;box-sizing:border-box;font-size:18px;font-weight:500;cursor:pointer;border-top-left-radius:0;border-top-right-radius:0}.app .footer{display:flex;font-size:14px;padding:20px 30px 0;justify-content:center}.app .footer a{font-weight:600;color:#7f7f7f;text-decoration:none}.app .footer .powered-by{color:#7f7f7f;font-weight:400;margin-right:5px}@media screen and (max-width: 450px){.app .wrapper .container{min-width:auto}.app .list li .network-name{font-size:12px;margin-left:15px;margin-right:35px;right:0;position:relative;word-wrap:break-word}}.el-input__wrapper,.el-input__wrapper:hover{box-shadow:0 0 0 1px #dcdfe6 inset!important}.app.theme-dark .wrapper .container .inner{border:none;background-color:#1c222b;box-shadow:0 0 20px #161d1f80}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-track{background:#141d20}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-thumb{background:#050b13cf}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-thumb:hover{background:#03060b}.app.theme-dark .modal .content{background:#141d20;border:1px solid #141d20;box-shadow:#26242480 0 0 20px}.app.theme-dark .modal .set-reminder-email{color:#bababa;background:#0000}.app.theme-dark .modal .set-reminder-email:hover{color:#fff;background:#9f9d9d40}.app.theme-dark .modal .explorer-btn{background:#1b2736}.app.theme-dark .modal .explorer-btn:hover{background:#03060b}.app.theme-dark .amount-component{color:#ddd5d5}.app.theme-dark .confirmation-row{color:#a8aeb6}.app.theme-dark .pay-now{background:#1da87c;border-color:#1da87c}.app.theme-dark .pay-now:hover{background:#116c4f;border-color:#116c4f}.app.theme-dark .pay-now:disabled{color:#414141;background:#ccc;border-color:#ccc;cursor:no-drop}.app.theme-dark .pay-now:disabled:hover{background:#ccc;border-color:#ccc}.app.theme-dark .disable-el[data-disabled=true]{background:#464a4e}.app.theme-dark .discounted-payment-amount span:first-child{color:#d23a3a}.app.theme-dark .currencies li{color:#a8aeb6;background:#10161e}.app.theme-dark .currencies li:hover{background:#050a14}.app.theme-dark .currencies li.selected{background:#03060b}.app.theme-dark .countdown-wrapper .countdown span{background:#050b13cf}.app.theme-dark .title{color:#a8aeb6;border-bottom:1px solid #050b13}.app.theme-dark .list li:hover{background:#10161e}.app.theme-dark .list li .name{color:#a8aeb6}.app.theme-dark .list li .discount{color:#d23a3a}.app.theme-dark .information-row,.app.theme-dark .payment-amount,.app.theme-dark .payment-currency{color:#a8aeb6}.app.theme-dark .pay-action-btn{background:#1da87c;border-color:#1da87c}.app.theme-dark .pay-action-btn:hover{background:#116c4f;border-color:#116c4f}.app.theme-dark .el-input-group__prepend,.app.theme-dark .el-input__wrapper,.app.theme-dark .el-input__inner{background:#10161e}',tx="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}",ox=`@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:13px;--el-alert-description-font-size:12px;--el-alert-close-font-size:12px;--el-alert-close-customed-font-size:13px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);position:relative;background-color:var(--el-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--el-transition-duration-fast)}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:table-cell;padding:0 8px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:18px;vertical-align:text-top}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:5px 0 0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);top:9px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width,300px)}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);list-style:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li:hover,.el-autocomplete-suggestion li.highlighted{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid var(--el-color-black)}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:var(--el-text-color-secondary)}.el-autocomplete-suggestion.is-loading li:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size)}.el-avatar>img{display:block;width:100%;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:inline-flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{width:32px;border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-calendar{--el-calendar-border:var(--el-table-border, 1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:var(--el-calendar-header-border-bottom)}.el-calendar__title{color:var(--el-text-color);align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:var(--el-text-color-regular);font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);vertical-align:top;transition:background-color var(--el-transition-duration-fast) ease}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:var(--el-calendar-cell-width)}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-top:1px solid var(--el-card-border-color);box-sizing:border-box}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{width:100%;height:50%}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px;color:#000}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader-panel{display:flex;border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:var(--el-cascader-menu-text-color);border-right:var(--el-cascader-menu-border)}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;color:var(--el-cascader-color-empty)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;text-align:left;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-checkbox{margin-right:0}.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;vertical-align:middle;position:relative;font-size:var(--el-font-size-base);line-height:32px;outline:0}.el-cascader:not(.is-disabled):hover .el-input__wrapper{cursor:pointer;box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-cascader .el-input{display:flex;cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis;cursor:pointer}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{transition:transform var(--el-transition-duration);font-size:14px}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader.is-disabled .el-cascader__label{z-index:calc(var(--el-index-normal) + 1);color:var(--el-disabled-text-color)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader__dropdown{font-size:var(--el-cascader-menu-font-size);border-radius:var(--el-cascader-menu-radius)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill);border:var(--el-cascader-menu-border);box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-cascader-tag-background)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-fill-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:var(--el-font-size-base);color:var(--el-cascader-menu-text-color);text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:var(--el-cascader-color-empty)}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 11px;padding:0;color:var(--el-cascader-menu-text-color);border:none;outline:0;box-sizing:border-box;background:0 0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input:-ms-input-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all);font-weight:700}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary)}.el-checkbox-button{position:relative;display:inline-block}.el-checkbox-button__inner{display:inline-block;line-height:1;font-weight:var(--el-checkbox-font-weight);white-space:nowrap;vertical-align:middle;cursor:pointer;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left-color:transparent;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:var(--el-checkbox-button-checked-text-color);background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px;height:var(--el-checkbox-height,32px)}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1);border-color:var(--el-checkbox-checked-icon-color)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid transparent;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in 50ms;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{width:100%;padding:0;border:none;display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,#fff0)}.el-color-svpanel__black{background:linear-gradient(to top,#000,#0000)}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,#fff0 0,#fff)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal;outline:0}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:30px;width:30px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td .el-date-table-cell{height:30px;padding:3px 0;box-sizing:border-box}.el-date-table td .el-date-table-cell .el-date-table-cell__text{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translate(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{margin-left:5px;margin-right:5px;background-color:var(--el-datepicker-inrange-bg-color);border-radius:15px}.el-date-table td.selected .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{font-size:80%;color:var(--el-datepicker-header-text-color)}.el-date-table td:focus{outline:0}.el-date-table th{padding:5px;color:var(--el-datepicker-header-text-color);font-weight:400;border-bottom:solid 1px var(--el-border-color-lighter)}.el-month-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#fff}.el-month-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range div{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range div:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#fff}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:0}.el-month-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-year-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-year-table td .cell{width:48px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto}.el-year-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:0}.el-year-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:192px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{font-size:12px;color:var(--el-text-color-secondary);position:absolute;left:0;width:100%;z-index:var(--el-index-normal);text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{padding:0;text-align:center}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:var(--el-text-color-regular)}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;position:relative;text-align:left;vertical-align:middle}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon,.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{height:inherit;font-size:14px;color:var(--el-text-color-placeholder);float:left}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:30px;line-height:30px;margin:0;padding:0;width:39%;text-align:center;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:transparent}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{flex:1;display:inline-flex;justify-content:center;align-items:center;height:100%;padding:0 5px;margin:0;font-size:14px;word-break:keep-all;color:var(--el-text-color-primary)}.el-date-editor .el-range__close-icon{font-size:14px;color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{display:inline-flex;align-items:center;padding:0 10px}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{line-height:40px;font-size:14px}.el-range-editor--large .el-range-input{height:38px;line-height:38px;font-size:14px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{line-height:24px;font-size:12px}.el-range-editor--small .el-range-input{height:22px;line-height:22px;font-size:12px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);line-height:30px}.el-picker-panel .el-time-panel{margin:5px 0;border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);padding:4px 12px;text-align:right;background-color:var(--el-bg-color-overlay);position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:var(--el-datepicker-text-color);padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:var(--el-datepicker-icon-color);border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;padding-top:6px;background-color:var(--el-bg-color-overlay);overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px var(--el-border-color-lighter)}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:var(--el-text-color-regular)}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{outline:0;color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:var(--el-datepicker-icon-color)}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid var(--el-datepicker-border-color)}.el-time-panel{border-radius:2px;position:relative;width:180px;left:0;z-index:var(--el-index-top);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:"";top:50%;position:absolute;margin-top:-16px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{padding-left:50%;margin-right:12%;margin-left:12%;border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light)}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:var(--el-text-color-primary)}.el-time-panel__btn.confirm{font-weight:800;color:var(--el-timepicker-active-color,var(--el-color-primary))}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary)}.el-descriptions__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;text-align:left;font-weight:400;line-height:23px;font-size:14px}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{font-weight:700;color:var(--el-text-color-regular);background:var(--el-descriptions-item-bordered-label-background)}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper.is-focused{border-color:transparent}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-color-danger) inset!important}.el-form-item.is-error .el-select:hover{box-shadow:0 0 0 1px transparent}.el-form-item.is-error .el-select .el-input .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset!important}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-input-number{position:relative;display:inline-flex;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:var(--el-input-width);line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));cursor:text;transition:var(--el-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-right:none;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:solid 1px var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-6px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular)}.el-notification{display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select .el-input{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:0}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager li.is-disabled,.el-pager li:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin-top:8px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 50%,rgba(0,0,0,.1) 50%,rgba(0,0,0,.1) 75%,transparent 75%,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{-webkit-animation:striped-flow 3s linear infinite;animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@-webkit-keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary)}.el-rate{display:inline-flex;align-items:center;height:32px}.el-rate:active,.el-rate:focus{outline:0}.el-rate__item{cursor:pointer;display:inline-block;position:relative;font-size:0;vertical-align:middle;color:var(--el-rate-void-color);line-height:normal}.el-rate .el-rate__icon{position:relative;display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{position:absolute;left:0;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;color:var(--el-rate-fill-color)}.el-rate__decimal--box{position:absolute;top:0;left:0}.el-rate__text{font-size:var(--el-rate-font-size);vertical-align:middle;color:var(--el-rate-text-color)}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate--small .el-rate__icon{font-size:14px}.el-rate.is-disabled .el-rate__item{cursor:auto;color:var(--el-rate-disabled-void-color)}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px}.el-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-result-padding)}.el-result__icon svg{width:var(--el-result-icon-font-size);height:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{margin:0;font-size:var(--el-result-title-font-size);color:var(--el-text-color-primary);line-height:1.3}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);line-height:1.3}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled{color:var(--el-text-color-disabled)}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown__option-item:hover:not(.hover){background-color:transparent}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-disabled.is-selected{color:var(--el-text-color-disabled)}.el-select-dropdown__list{list-style:none;margin:6px 0!important;padding:0!important;box-sizing:border-box}.el-select-dropdown__option-item{font-size:var(--el-select-font-size);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__option-item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__option-item.is-disabled:hover{background-color:var(--el-bg-color)}.el-select-dropdown__option-item.is-selected{background-color:var(--el-fill-color-light);font-weight:700}.el-select-dropdown__option-item.is-selected:not(.is-multiple){color:var(--el-color-primary)}.el-select-dropdown__option-item.hover{background-color:var(--el-fill-color-light)!important}.el-select-dropdown__option-item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon{position:absolute;right:20px;top:0;height:inherit;font-size:12px}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon svg{height:inherit;vertical-align:middle}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-v2{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select-v2{display:inline-block;position:relative;vertical-align:middle;font-size:14px}.el-select-v2__wrapper{display:flex;align-items:center;flex-wrap:wrap;position:relative;box-sizing:border-box;cursor:pointer;padding:1px 30px 1px 0;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration)}.el-select-v2__wrapper:hover{border-color:var(--el-text-color-placeholder)}.el-select-v2__wrapper.is-filterable{cursor:text}.el-select-v2__wrapper.is-focused{border-color:var(--el-color-primary)}.el-select-v2__wrapper.is-hovering:not(.is-focused){border-color:var(--el-border-color-hover)}.el-select-v2__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled:hover{border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled.is-focus{border-color:var(--el-input-focus-border-color)}.el-select-v2__wrapper.is-disabled .is-transparent{opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select-v2__wrapper.is-disabled .el-select-v2__caret,.el-select-v2__wrapper.is-disabled .el-select-v2__combobox-input{cursor:not-allowed}.el-select-v2__wrapper .el-select-v2__input-wrapper{box-sizing:border-box;position:relative;-webkit-margin-start:12px;margin-inline-start:12px;max-width:100%;overflow:hidden}.el-select-v2__wrapper,.el-select-v2__wrapper .el-select-v2__input-wrapper{line-height:32px}.el-select-v2__wrapper .el-select-v2__input-wrapper input{--el-input-inner-height:calc(var(--el-component-size, 32px) - 8px);height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);min-width:4px;width:100%;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;margin:2px 0;outline:0;padding:0}.el-select-v2 .el-select-v2__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-v2__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:14px}.el-select-v2__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select-v2__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select-v2__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select-v2--large .el-select-v2__wrapper .el-select-v2__combobox-input{height:32px}.el-select-v2--large .el-select-v2__caret,.el-select-v2--large .el-select-v2__suffix{height:40px}.el-select-v2--large .el-select-v2__placeholder{font-size:14px;line-height:40px}.el-select-v2--small .el-select-v2__wrapper .el-select-v2__combobox-input{height:16px}.el-select-v2--small .el-select-v2__caret,.el-select-v2--small .el-select-v2__suffix{height:24px}.el-select-v2--small .el-select-v2__placeholder{font-size:12px;line-height:24px}.el-select-v2 .el-select-v2__selection>span{display:inline-block}.el-select-v2:hover .el-select-v2__combobox-input{border-color:var(--el-select-border-color-hover)}.el-select-v2 .el-select__selection-text{text-overflow:ellipsis;display:inline-block;overflow-x:hidden;vertical-align:bottom}.el-select-v2 .el-select-v2__combobox-input{padding-right:35px;display:block;color:var(--el-text-color-regular)}.el-select-v2 .el-select-v2__combobox-input:focus{border-color:var(--el-select-input-focus-border-color)}.el-select-v2__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px}.el-select-v2__input.is-small{height:14px}.el-select-v2__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select-v2__close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__suffix{display:inline-flex;position:absolute;right:12px;height:32px;top:50%;transform:translateY(-50%);color:var(--el-input-icon-color,var(--el-text-color-placeholder))}.el-select-v2__suffix .el-input__icon{height:inherit}.el-select-v2__suffix .el-input__icon:not(:first-child){margin-left:8px}.el-select-v2__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotate(180deg);cursor:pointer}.el-select-v2__caret.is-reverse{transform:rotate(0)}.el-select-v2__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(180deg);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select-v2__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__caret.el-icon{height:inherit}.el-select-v2__caret.el-icon svg{vertical-align:middle}.el-select-v2__selection{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;width:100%}.el-select-v2__input-calculator{left:0;position:absolute;top:0;visibility:hidden;white-space:pre;z-index:999}.el-select-v2__selected-item{line-height:inherit;height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-wrap:wrap}.el-select-v2__placeholder{position:absolute;top:50%;transform:translateY(-50%);-webkit-margin-start:12px;margin-inline-start:12px;width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color,var(--el-text-color-regular))}.el-select-v2__placeholder.is-transparent{color:var(--el-text-color-placeholder)}.el-select-v2 .el-select-v2__selection .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:var(--el-fill-color)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;color:var(--el-color-white)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select-v2.el-select-v2--small .el-select-v2__selection .el-tag{margin:1px 0 1px 6px;height:18px}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select-dropdown__header{padding:10px;border-bottom:1px solid var(--el-border-color-light)}.el-select-dropdown__footer{padding:10px;border-top:1px solid var(--el-border-color-light)}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__tags .el-tag:last-child{margin-right:0}.el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__tags.is-disabled{cursor:not-allowed}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__collapse-tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__collapse-tags .el-tag:last-child{margin-right:0}.el-select__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__collapse-tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__collapse-tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px;white-space:pre}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{to{transform:rotate(360deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:var(--el-text-color-primary);border-color:var(--el-text-color-primary)}.el-step__head.is-wait{color:var(--el-text-color-placeholder);border-color:var(--el-text-color-placeholder)}.el-step__head.is-success{color:var(--el-color-success);border-color:var(--el-color-success)}.el-step__head.is-error{color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-step__head.is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:var(--el-bg-color);transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:var(--el-text-color-placeholder)}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:var(--el-text-color-primary)}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{content:"";display:inline-block;position:absolute;height:15px;width:1px;background:var(--el-text-color-placeholder)}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:var(--el-fill-color-light)}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-index:var(--el-index-normal)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:14px;color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper:before{left:0;bottom:0;width:100%;height:1px}.el-table tbody:focus-visible{outline:0}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:-webkit-sticky;position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:14px}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{top:-1px;left:0;width:1px;height:100%}.el-table--border:after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{position:-webkit-sticky!important;position:sticky!important;background:inherit;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{position:-webkit-sticky!important;position:sticky!important;z-index:calc(var(--el-table-index) + 1);background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{overflow:hidden;flex-shrink:0}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:-webkit-sticky;position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{position:-webkit-sticky;position:sticky;bottom:0;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-index:var(--el-index-normal)}.el-table-v2{font-size:14px}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0;box-shadow:2px 0 4px #0000000f}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);right:0;box-shadow:-2px 0 4px #0000000f}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{position:relative;overflow:hidden}.el-table-v2__footer{position:absolute;left:0;right:0;bottom:0;overflow:hidden}.el-table-v2__empty{position:absolute;left:0}.el-table-v2__overlay{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9999}.el-table-v2__header-row{display:flex;border-bottom:var(--el-table-border)}.el-table-v2__header-cell{display:flex;align-items:center;padding:0 8px;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);font-weight:700}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{transition:opacity,display var(--el-transition-duration);opacity:.6;display:none}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{border-bottom:var(--el-table-border);display:flex;align-items:center;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{height:100%;overflow:hidden;display:flex;align-items:center;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{margin:0 4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{overflow:hidden;align-items:stretch}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{word-break:break-all}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;overflow:hidden;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover{padding-left:13px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover{padding-right:13px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular)}.el-text{align-self:center;margin:0;padding:0;font-size:var(--el-text-font-size);color:var(--el-text-color);word-break:break-all}.el-text.is-truncated{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);font-weight:700;cursor:pointer}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light)}.el-timeline{margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);background-color:var(--el-color-white);padding:var(--el-tooltip-v2-padding);border:1px solid var(--el-border-color)}.el-tooltip-v2__arrow{position:absolute;color:var(--el-color-white);width:var(--el-tooltip-v2-arrow-width);height:var(--el-tooltip-v2-arrow-height);pointer-events:none;left:var(--el-tooltip-v2-arrow-x);top:var(--el-tooltip-v2-arrow-y)}.el-tooltip-v2__arrow:before{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__arrow:after{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;background-color:var(--el-color-black);color:var(--el-color-white);border-color:transparent}.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px}.el-transfer{font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{overflow:hidden;background:var(--el-bg-color-overlay);display:inline-block;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width);max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:var(--el-transfer-panel-body-height);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:var(--el-transfer-panel-body-height);overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px;display:block!important}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:22px;line-height:var(--el-transfer-item-height)}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;padding:15px;box-sizing:border-box}.el-transfer-panel__filter .el-input__inner{height:var(--el-transfer-filter-height);width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:calc(var(--el-transfer-filter-height)/ 2)}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{display:flex;align-items:center;height:var(--el-transfer-panel-header-height);background:var(--el-transfer-panel-header-bg-color);margin:0;padding-left:15px;border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black)}.el-transfer-panel .el-transfer-panel__header .el-checkbox{position:relative;display:flex;width:100%;align-items:center}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:var(--el-text-color-primary);font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0);color:var(--el-text-color-secondary);font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:var(--el-transfer-panel-footer-height);background:var(--el-bg-color-overlay);margin:0;padding:0;border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius)}.el-transfer-panel .el-transfer-panel__footer:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:var(--el-text-color-regular)}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding:6px 15px 0;color:var(--el-text-color-secondary);text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner:after{height:6px;width:3px;left:4px}.el-tree{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree{position:relative;cursor:default;background:var(--el-fill-color-blank);color:var(--el-tree-text-color);font-size:var(--el-font-size-base)}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--el-text-color-secondary);font-size:var(--el-font-size-base)}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:var(--el-color-primary)}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{--el-checkbox-height:var(--el-tree-node-content-height);display:flex;align-items:center;height:var(--el-tree-node-content-height);cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px;box-sizing:content-box}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:var(--el-tree-expand-icon-color);font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default;visibility:hidden}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{margin-right:8px;font-size:var(--el-font-size-base);color:var(--el-tree-expand-icon-color)}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__item{flex:1;background:0 0!important;padding-left:0;height:20px;line-height:20px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card>i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:inline-flex}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper:hover .el-virtual-scrollbar,.el-vl__wrapper.always-on .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{font-weight:var(--el-statistic-title-font-weight);font-size:var(--el-statistic-title-font-size);color:var(--el-statistic-title-color);line-height:20px;margin-bottom:4px}.el-statistic__content{font-weight:var(--el-statistic-content-font-weight);font-size:var(--el-statistic-content-font-size);color:var(--el-statistic-content-color)}.el-statistic__value{display:inline-block}.el-statistic__prefix{margin-right:4px;display:inline-block}.el-statistic__suffix{margin-left:4px;display:inline-block}`,rx=e=>{const t={};return e.replace(/:root\s*{([^}]*)}/g,(l,n)=>{n.trim().split(";").forEach(a=>{const[i,c]=a.split(":").map(u=>u.trim());i&&c&&(t[i]=c)})}),e.replace(/var\(--([\w-]+)\)/g,(l,n)=>t[`--${n}`]?t[`--${n}`]:`var(--${n})`).replace(/:root\s*{([^}]*)}/g,"")},wl=globalThis||void 0||self;function cp(e,t){const o=new Set(e.split(","));return t?r=>o.has(r.toLowerCase()):r=>o.has(r)}const vo={},Ea=[],Dt=()=>{},lx=()=>!1,_c=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),up=e=>e.startsWith("onUpdate:"),Mo=Object.assign,dp=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},nx=Object.prototype.hasOwnProperty,Ot=(e,t)=>nx.call(e,t),Ye=Array.isArray,$a=e=>Bi(e)==="[object Map]",wc=e=>Bi(e)==="[object Set]",Bn=e=>Bi(e)==="[object Date]",ut=e=>typeof e=="function",ft=e=>typeof e=="string",Ql=e=>typeof e=="symbol",Ct=e=>e!==null&&typeof e=="object",Pi=e=>(Ct(e)||ut(e))&&ut(e.then)&&ut(e.catch),C2=Object.prototype.toString,Bi=e=>C2.call(e),yc=e=>Bi(e).slice(8,-1),xc=e=>Bi(e)==="[object Object]",pp=e=>ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kc=cp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cc=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},ax=/-(\w)/g,yr=Cc(e=>e.replace(ax,(t,o)=>o?o.toUpperCase():"")),ix=/\B([A-Z])/g,en=Cc(e=>e.replace(ix,"-$1").toLowerCase()),Ni=Cc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sc=Cc(e=>e?`on${Ni(e)}`:""),tn=(e,t)=>!Object.is(e,t),Ec=(e,t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},fp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sx=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let S2;const E2=()=>S2||(S2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof wl<"u"?wl:{});function Qe(e){if(Ye(e)){const t={};for(let o=0;o{if(o){const r=o.split(ux);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function P(e){let t="";if(ft(e))t=e;else if(Ye(e))for(let o=0;oTa(o,t))}const ze=e=>ft(e)?e:e==null?"":Ye(e)||Ct(e)&&(e.toString===C2||!ut(e.toString))?JSON.stringify(e,z2,2):String(e),z2=(e,t)=>t&&t.__v_isRef?z2(e,t.value):$a(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,l],n)=>(o[hp(r,n)+" =>"]=l,o),{})}:wc(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>hp(o))}:Ql(t)?hp(t):Ct(t)&&!Ye(t)&&!xc(t)?String(t):t,hp=(e,t="")=>{var o;return Ql(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let mr;class M2{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=mr,!t&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const o=mr;try{return mr=this,t()}finally{mr=o}}}on(){mr=this}off(){mr=this.parent}stop(t){if(this._active){let o,r;for(o=0,r=this.effects.length;o=2))break;ln(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=on,o=Nn;try{return on=!0,Nn=this,this._runnings++,A2(this),this.fn()}finally{I2(this),this._runnings--,Nn=o,on=t}}stop(){var t;this.active&&(A2(this),I2(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function mx(e){return e.value}function A2(e){e._trackId++,e._depsLength=0}function I2(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const o=new Map;return o.cleanup=e,o.computed=t,o},Tc=new WeakMap,Ln=Symbol(""),kp=Symbol("");function rr(e,t,o){if(on&&Nn){let r=Tc.get(e);r||Tc.set(e,r=new Map);let l=r.get(o);l||r.set(o,l=L2(()=>r.delete(o))),B2(Nn,l)}}function yl(e,t,o,r,l,n){const a=Tc.get(e);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(o==="length"&&Ye(e)){const c=Number(r);a.forEach((u,p)=>{(p==="length"||!Ql(p)&&p>=c)&&i.push(u)})}else switch(o!==void 0&&i.push(a.get(o)),t){case"add":Ye(e)?pp(o)&&i.push(a.get("length")):(i.push(a.get(Ln)),$a(e)&&i.push(a.get(kp)));break;case"delete":Ye(e)||(i.push(a.get(Ln)),$a(e)&&i.push(a.get(kp)));break;case"set":$a(e)&&i.push(a.get(Ln));break}wp();for(const c of i)c&&N2(c,3);yp()}function gx(e,t){var o;return(o=Tc.get(e))==null?void 0:o.get(t)}const bx=cp("__proto__,__v_isRef,__isVue"),R2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ql)),V2=_x();function _x(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...o){const r=Vt(this);for(let n=0,a=this.length;n{e[t]=function(...o){rn(),wp();const r=Vt(this)[t].apply(this,o);return yp(),ln(),r}}),e}function wx(e){const t=Vt(this);return rr(t,"has",e),t.hasOwnProperty(e)}class H2{constructor(t=!1,o=!1){this._isReadonly=t,this._shallow=o}get(t,o,r){const l=this._isReadonly,n=this._shallow;if(o==="__v_isReactive")return!l;if(o==="__v_isReadonly")return l;if(o==="__v_isShallow")return n;if(o==="__v_raw")return r===(l?n?Ox:Y2:n?q2:U2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ye(t);if(!l){if(a&&Ot(V2,o))return Reflect.get(V2,o,r);if(o==="hasOwnProperty")return wx}const i=Reflect.get(t,o,r);return(Ql(o)?R2.has(o):bx(o))||(l||rr(t,"get",o),n)?i:Kt(i)?a&&pp(o)?i:i.value:Ct(i)?l?za(i):Ft(i):i}}class F2 extends H2{constructor(t=!1){super(!1,t)}set(t,o,r,l){let n=t[o];if(!this._shallow){const c=Ma(n);if(!Aa(r)&&!Ma(r)&&(n=Vt(n),r=Vt(r)),!Ye(t)&&Kt(n)&&!Kt(r))return c?!1:(n.value=r,!0)}const a=Ye(t)&&pp(o)?Number(o)e,zc=e=>Reflect.getPrototypeOf(e);function Mc(e,t,o=!1,r=!1){e=e.__v_raw;const l=Vt(e),n=Vt(t);o||(tn(t,n)&&rr(l,"get",t),rr(l,"get",n));const{has:a}=zc(l),i=r?Cp:o?$p:Li;if(a.call(l,t))return i(e.get(t));if(a.call(l,n))return i(e.get(n));e!==l&&e.get(t)}function Ac(e,t=!1){const o=this.__v_raw,r=Vt(o),l=Vt(e);return t||(tn(e,l)&&rr(r,"has",e),rr(r,"has",l)),e===l?o.has(e):o.has(e)||o.has(l)}function Ic(e,t=!1){return e=e.__v_raw,!t&&rr(Vt(e),"iterate",Ln),Reflect.get(e,"size",e)}function D2(e){e=Vt(e);const t=Vt(this);return zc(t).has.call(t,e)||(t.add(e),yl(t,"add",e,e)),this}function j2(e,t){t=Vt(t);const o=Vt(this),{has:r,get:l}=zc(o);let n=r.call(o,e);n||(e=Vt(e),n=r.call(o,e));const a=l.call(o,e);return o.set(e,t),n?tn(t,a)&&yl(o,"set",e,t):yl(o,"add",e,t),this}function K2(e){const t=Vt(this),{has:o,get:r}=zc(t);let l=o.call(t,e);l||(e=Vt(e),l=o.call(t,e)),r&&r.call(t,e);const n=t.delete(e);return l&&yl(t,"delete",e,void 0),n}function W2(){const e=Vt(this),t=e.size!==0,o=e.clear();return t&&yl(e,"clear",void 0,void 0),o}function Oc(e,t){return function(r,l){const n=this,a=n.__v_raw,i=Vt(a),c=t?Cp:e?$p:Li;return!e&&rr(i,"iterate",Ln),a.forEach((u,p)=>r.call(l,c(u),c(p),n))}}function Pc(e,t,o){return function(...r){const l=this.__v_raw,n=Vt(l),a=$a(n),i=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=l[e](...r),p=o?Cp:t?$p:Li;return!t&&rr(n,"iterate",c?kp:Ln),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:i?[p(d[0]),p(d[1])]:p(d),done:f}},[Symbol.iterator](){return this}}}}function nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sx(){const e={get(n){return Mc(this,n)},get size(){return Ic(this)},has:Ac,add:D2,set:j2,delete:K2,clear:W2,forEach:Oc(!1,!1)},t={get(n){return Mc(this,n,!1,!0)},get size(){return Ic(this)},has:Ac,add:D2,set:j2,delete:K2,clear:W2,forEach:Oc(!1,!0)},o={get(n){return Mc(this,n,!0)},get size(){return Ic(this,!0)},has(n){return Ac.call(this,n,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:Oc(!0,!1)},r={get(n){return Mc(this,n,!0,!0)},get size(){return Ic(this,!0)},has(n){return Ac.call(this,n,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:Oc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Pc(n,!1,!1),o[n]=Pc(n,!0,!1),t[n]=Pc(n,!1,!0),r[n]=Pc(n,!0,!0)}),[e,o,t,r]}const[Ex,$x,Tx,zx]=Sx();function Sp(e,t){const o=t?e?zx:Tx:e?$x:Ex;return(r,l,n)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(Ot(o,l)&&l in r?o:r,l,n)}const Mx={get:Sp(!1,!1)},Ax={get:Sp(!1,!0)},Ix={get:Sp(!0,!1)},U2=new WeakMap,q2=new WeakMap,Y2=new WeakMap,Ox=new WeakMap;function Px(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bx(e){return e.__v_skip||!Object.isExtensible(e)?0:Px(yc(e))}function Ft(e){return Ma(e)?e:Ep(e,!1,xx,Mx,U2)}function G2(e){return Ep(e,!1,Cx,Ax,q2)}function za(e){return Ep(e,!0,kx,Ix,Y2)}function Ep(e,t,o,r,l){if(!Ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=l.get(e);if(n)return n;const a=Bx(e);if(a===0)return e;const i=new Proxy(e,a===2?r:o);return l.set(e,i),i}function an(e){return Ma(e)?an(e.__v_raw):!!(e&&e.__v_isReactive)}function Ma(e){return!!(e&&e.__v_isReadonly)}function Aa(e){return!!(e&&e.__v_isShallow)}function X2(e){return an(e)||Ma(e)}function Vt(e){const t=e&&e.__v_raw;return t?Vt(t):e}function xl(e){return $c(e,"__v_skip",!0),e}const Li=e=>Ct(e)?Ft(e):e,$p=e=>Ct(e)?za(e):e;class Z2{constructor(t,o,r,l){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new bp(()=>t(this._value),()=>Bc(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=Vt(this);return Q2(t),(!t._cacheable||t.effect.dirty)&&tn(t._value,t._value=t.effect.run())&&Bc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function J2(e,t,o=!1){let r,l;const n=ut(e);return n?(r=e,l=Dt):(r=e.get,l=e.set),new Z2(r,l,n||!l,o)}function Q2(e){on&&Nn&&(e=Vt(e),B2(Nn,e.dep||(e.dep=L2(()=>e.dep=void 0,e instanceof Z2?e:void 0))))}function Bc(e,t=3,o){e=Vt(e);const r=e.dep;r&&N2(r,t)}function Kt(e){return!!(e&&e.__v_isRef===!0)}function V(e){return em(e,!1)}function qt(e){return em(e,!0)}function em(e,t){return Kt(e)?e:new Nx(e,t)}class Nx{constructor(t,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?t:Vt(t),this._value=o?t:Li(t)}get value(){return Q2(this),this._value}set value(t){const o=this.__v_isShallow||Aa(t)||Ma(t);t=o?t:Vt(t),tn(t,this._rawValue)&&(this._rawValue=t,this._value=o?t:Li(t),Bc(this,3))}}function Ri(e){Bc(e,3)}function s(e){return Kt(e)?e.value:e}const Lx={get:(e,t,o)=>s(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const l=e[t];return Kt(l)&&!Kt(o)?(l.value=o,!0):Reflect.set(e,t,o,r)}};function tm(e){return an(e)?e:new Proxy(e,Lx)}function Ao(e){const t=Ye(e)?new Array(e.length):{};for(const o in e)t[o]=om(e,o);return t}class Rx{constructor(t,o,r){this._object=t,this._key=o,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gx(Vt(this._object),this._key)}}class Vx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function so(e,t,o){return Kt(e)?e:ut(e)?new Vx(e):Ct(e)&&arguments.length>1?om(e,t,o):V(e)}function om(e,t,o){const r=e[t];return Kt(r)?r:new Rx(e,t,o)}const Vi=[];function cue(e,...t){rn();const o=Vi.length?Vi[Vi.length-1].component:null,r=o&&o.appContext.config.warnHandler,l=Hx();if(r)kl(r,o,11,[e+t.join(""),o&&o.proxy,l.map(({vnode:n})=>`at <${Jm(o,n.type)}>`).join(` +(function(Pi){typeof define=="function"&&define.amd?define(Pi):Pi()})(function(){"use strict";var Pi=document.createElement("style");Pi.textContent=`.walletconnect-modal__base{max-width:400px!important}.swal2-container{font-family:Arial,Helvetica,sans-serif;z-index:99999999999!important}.swal2-title{font-size:1.25em}.cpl-theme-dark .swal2-popup{background:#141d20!important;color:#a8aeb6!important}.cpl-theme-dark .swal2-styled.swal2-confirm{background:#050b13cf!important}.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px #00000013,0 1px 2px #00000013,1px 2px 4px #00000013,1px 3px 8px #00000013,2px 4px 16px #00000013;pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:.5em 0 0;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:#0006}div:where(.swal2-container).swal2-backdrop-hide{background:#0000!important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0,1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0,1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0,1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none!important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(#0000001a,#0000001a)}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(#0003,#0003)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px #0000;font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px #7066e080}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px #dc374180}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px #6e788180}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px #6496c880}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:#0003}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:#0000;color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:#0000;color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px #6496c880}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:#0000;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px #0000;color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px #0000000f,0 0 0 3px #6496c880}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:#0000;font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:#0000;color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message):before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:#0000;font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@keyframes swal2-toast-hide{to{transform:rotate(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}to{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}to{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}to{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}to{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}to{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotate(45deg);opacity:0}25%{transform:rotate(-25deg);opacity:.4}50%{transform:rotate(15deg);opacity:.8}75%{transform:rotate(-5deg);opacity:1}to{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:#0000!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px #0006}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:#0000;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translate(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto} +`,document.head.appendChild(Pi);function z2(e){const t=r=>{const l=[];r.networks.forEach(i=>{l.push(parseInt(i))});const n=i=>Array.isArray(i)&&i.length===0?{}:i||{};return{networks:l,mode:String(r.mode),addon:String(r.addon),theme:String(r.theme),apiUrl:String(r.apiUrl),debug:!!r.debug,version:String(r.version),testnet:!!r.testnet,imagesUrl:String(r.imagesUrl),lang:n(r.lang),wcProjectId:String(r.wcProjectId),confirmation:!!r.confirmation,amountUpdateMin:Number(r.amountUpdateMin),createTransaction:!!r.createTransaction,walletImages:n(r.walletImages),discountRates:n(r.discountRates)}},o=r=>{for(const l in r)r[l]===void 0?delete r[l]:typeof r[l]=="object"&&o(r[l]);return r};return o(t(e))}const ux='.swal2-container{font-family:Arial,Helvetica,sans-serif;z-index:999999999999!important}.app .wrapper{display:flex;align-items:center;justify-content:center;font-family:jost,serif;flex-direction:column;color:#6d6d6d;font-family:Arial,Helvetica,sans-serif}.app .wrapper .container{width:100%;max-width:450px;position:relative;box-sizing:border-box;padding:0!important}.app .wrapper .container .inner{background-color:#fff;border:1px solid #e2e4ec;box-shadow:0 0 20px #e2e4ec80;position:relative;box-sizing:border-box;border-radius:6px}.app .wrapper .container .inner:has(.modal.active):before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-color:#00000080;z-index:999999999}.app .wrapper .container .inner ul::-webkit-scrollbar{width:10px}.app .wrapper .container .inner ul::-webkit-scrollbar-track{background:#f1f1f1}.app .wrapper .container .inner ul::-webkit-scrollbar-thumb{background:#888}.app .wrapper .container .inner ul::-webkit-scrollbar-thumb:hover{background:#555}.app .disable-el[data-disabled=true]{background:#d0d2d4;color:#fff;cursor:no-drop;pointer-events:none}.app .disable-el[data-disabled=true] .discount{color:#fff}.app .el-row:not(:last-child){border-bottom:1px solid #e2e4ec}.app .discounted-payment-amount span:first-child{text-decoration:line-through;color:red;margin-right:5px;font-size:12px}.app .full-height{width:100%}@media (max-width: 768px){.app .full-height{height:100%}}.app button:disabled{background:#ccc;border-color:#ccc;cursor:no-drop}.app button:disabled:hover{background:#ccc;border-color:#ccc}.app .pay-now{width:100%;padding:20px;height:60px;text-align:center;box-sizing:border-box;font-size:18px;font-weight:500;cursor:pointer;border-top-left-radius:0;border-top-right-radius:0;white-space:break-spaces}.app .amount-text{display:flex;align-items:center}.app .payment-amount .el-col{padding:20px}.app .amount-component{color:#000;font-weight:600;display:flex;text-align:center;align-items:center;justify-content:end;width:100%;font-size:13px;box-sizing:border-box}.app .change-network{font-size:12px;cursor:pointer;text-decoration:underline;border-radius:8px}.app .information-row{padding:20px;box-sizing:border-box}.app .information-row .el-col:not(:nth-last-child(-n+2)){margin-bottom:10px}.app .information-row .el-col:nth-child(n){text-align:left}.app .information-row .el-col:nth-child(2n){text-align:right}.app .confirmation-row{text-align:center}.app .confirmation-row .el-col:first-child,.app .set-reminder-email,.app .explorer-btn{margin-bottom:20px}.app .title{width:100%;padding:20px;text-align:center;box-sizing:border-box;font-size:24px;font-weight:500;border-bottom:1px solid #e2e4ec;line-height:normal}.app .currencies{list-style:none;margin:0;background:#0000;border-radius:10px;word-wrap:break-word;max-height:300px;overflow-y:auto;overflow-x:hidden;padding:20px;box-sizing:border-box}.app .currencies .el-row{padding:0}.app .currencies .el-row .el-col{font-weight:400}.app .currencies .el-row .el-col:not(:nth-child(-n+2)){margin-top:10px}.app .currencies .el-row .el-col:not(:nth-last-child(-n+2)){margin-bottom:10px}.app .currencies li{display:flex;align-items:center;line-height:0;cursor:pointer;height:28px;border-radius:12px;padding:8px;background:#eef0f3;box-sizing:content-box;color:#0a0b0d;justify-content:space-between}.app .currencies li .discount{margin-left:10px;font-size:10px;color:red;text-decoration:underline;white-space:nowrap}.app .currencies li span:first-child{display:flex;align-items:center}.app .currencies li .icon{width:28px;margin-right:5px!important;margin-left:0!important}.app .currencies li:hover{background:#d0d2d4}.app .currencies li.selected{color:#fff;background:#409eff;cursor:no-drop}.app .currencies li.selected .discount{color:#fff}@media screen and (max-width: 530px){.app .currencies li{display:inline-block;min-height:28px;height:auto;width:calc(100% - 17px);text-align:center}.app .currencies li span:first-child{justify-content:center}.app .currencies li .discount{margin-top:10px;margin-left:0;margin-bottom:6px;display:inline-block;text-align:center}}.app .list{margin:0;padding:0;width:100%;max-width:100%;list-style:none;max-height:400px;overflow-y:auto}.app .list li{height:90px;width:100%;display:flex;align-items:center;position:relative;cursor:pointer;box-sizing:border-box;padding:20px}.app .list li .network-name{font-size:14px;position:relative;margin-left:auto;margin-right:35px}.app .list li .network-icon{position:absolute;border-radius:50%;width:25px;height:25px;right:-5px;max-width:25px;bottom:-5px;border:3px solid #000;background-color:#fff}.app .list li:hover{background:#f5f7f9}.app .list li .icon{font-size:50px;margin-right:10px}.app .list li .img{position:relative;display:inline-flex}.app .list li .img-icon{border-radius:3px}.app .list li .img-icon,.app .list li .img{width:50px;height:50px;margin-right:10px;margin-left:0;max-height:100%;max-width:50px}.app .list li .name{font-size:18px;font-weight:500;color:#000;margin-right:35px}.app .list li .el-icon{position:absolute;right:20px}.app .list li .discount{position:absolute;bottom:10px;left:80px;color:red;text-decoration:underline;font-size:12px}.app .list li .status{font-size:14px;font-weight:500;color:#000;margin-left:auto}.app .list li .status .detected,.app .list li .status .openInApp,.app .list li .status .openInAppManual{color:#1e8454}.app .list li .status .download,.app .list li .status .onlyDesktop{color:#1292bc}.app .no-found{padding:20px;min-height:inherit;box-sizing:border-box;display:flex;text-align:center;align-items:center;justify-content:center}.app .wallets.disabled{opacity:.5;cursor:no-drop}.app .wallets.disabled>li{pointer-events:none}@media screen and (max-width: 500px){.app .network-arrow-icon{display:none}}.app .modal{position:fixed;width:100%;height:100%;top:0;left:0;z-index:9999999999;display:none;align-items:center;justify-content:center}.app .modal.active{display:flex}.app .modal .content{width:100%;max-width:450px;position:relative;background-color:#fff;box-sizing:border-box;box-shadow:0 0 20px #54545480;border-radius:6px;overflow:hidden}.app .modal .content .waiting{padding:30px 0;box-sizing:border-box;text-align:center}.app .modal .content .waiting svg{width:94px!important;height:94px!important}@media screen and (max-width: 500px){.app .modal{padding:0 20px;box-sizing:border-box}}.app .websocket-connection-status{padding:40px;text-align:center;box-sizing:border-box}.app .countdown-wrapper{text-align:center;height:50px;display:flex;align-items:center;justify-content:center}.app .countdown-wrapper .countdown span{border-radius:5px;padding:5px 10px;margin-right:5px;margin-left:5px;background:#4099ff;box-sizing:border-box;color:#fff;font-weight:600}.app .pay-action-btn{width:100%;padding:20px;height:60px;text-align:center;box-sizing:border-box;font-size:18px;font-weight:500;cursor:pointer;border-top-left-radius:0;border-top-right-radius:0}.app .footer{display:flex;font-size:14px;padding:20px 30px 0;justify-content:center}.app .footer a{font-weight:600;color:#7f7f7f;text-decoration:none}.app .footer .powered-by{color:#7f7f7f;font-weight:400;margin-right:5px}@media screen and (max-width: 450px){.app .wrapper .container{min-width:auto}.app .list li .network-name{font-size:12px;margin-left:15px;margin-right:35px;right:0;position:relative;word-wrap:break-word}}.el-input__wrapper,.el-input__wrapper:hover{box-shadow:0 0 0 1px #dcdfe6 inset!important}.app.theme-dark .wrapper .container .inner{border:none;background-color:#1c222b;box-shadow:0 0 20px #161d1f80}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-track{background:#141d20}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-thumb{background:#050b13cf}.app.theme-dark .wrapper .container .inner ul::-webkit-scrollbar-thumb:hover{background:#03060b}.app.theme-dark .modal .content{background:#141d20;border:1px solid #141d20;box-shadow:#26242480 0 0 20px}.app.theme-dark .modal .set-reminder-email{color:#bababa;background:#0000}.app.theme-dark .modal .set-reminder-email:hover{color:#fff;background:#9f9d9d40}.app.theme-dark .modal .explorer-btn{background:#1b2736}.app.theme-dark .modal .explorer-btn:hover{background:#03060b}.app.theme-dark .amount-component{color:#ddd5d5}.app.theme-dark .confirmation-row{color:#a8aeb6}.app.theme-dark .pay-now{background:#1da87c;border-color:#1da87c}.app.theme-dark .pay-now:hover{background:#116c4f;border-color:#116c4f}.app.theme-dark .pay-now:disabled{color:#414141;background:#ccc;border-color:#ccc;cursor:no-drop}.app.theme-dark .pay-now:disabled:hover{background:#ccc;border-color:#ccc}.app.theme-dark .disable-el[data-disabled=true]{background:#464a4e}.app.theme-dark .discounted-payment-amount span:first-child{color:#d23a3a}.app.theme-dark .currencies li{color:#a8aeb6;background:#10161e}.app.theme-dark .currencies li:hover{background:#050a14}.app.theme-dark .currencies li.selected{background:#03060b}.app.theme-dark .countdown-wrapper .countdown span{background:#050b13cf}.app.theme-dark .title{color:#a8aeb6;border-bottom:1px solid #050b13}.app.theme-dark .list li:hover{background:#10161e}.app.theme-dark .list li .name{color:#a8aeb6}.app.theme-dark .list li .discount{color:#d23a3a}.app.theme-dark .information-row,.app.theme-dark .payment-amount,.app.theme-dark .payment-currency{color:#a8aeb6}.app.theme-dark .pay-action-btn{background:#1da87c;border-color:#1da87c}.app.theme-dark .pay-action-btn:hover{background:#116c4f;border-color:#116c4f}.app.theme-dark .el-input-group__prepend,.app.theme-dark .el-input__wrapper,.app.theme-dark .el-input__inner{background:#10161e}',dx="/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}",px=`@charset "UTF-8";:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, .04),0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light:0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, .08),0px 12px 32px rgba(0, 0, 0, .12),0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0, 0, 0, .8);--el-overlay-color-light:rgba(0, 0, 0, .7);--el-overlay-color-lighter:rgba(0, 0, 0, .5);--el-mask-color:rgba(255, 255, 255, .9);--el-mask-color-extra-light:rgba(255, 255, 255, .3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-affix--fixed{position:fixed}.el-alert{--el-alert-padding:8px 16px;--el-alert-border-radius-base:var(--el-border-radius-base);--el-alert-title-font-size:13px;--el-alert-description-font-size:12px;--el-alert-close-font-size:12px;--el-alert-close-customed-font-size:13px;--el-alert-icon-size:16px;--el-alert-icon-large-size:28px;width:100%;padding:var(--el-alert-padding);margin:0;box-sizing:border-box;border-radius:var(--el-alert-border-radius-base);position:relative;background-color:var(--el-color-white);overflow:hidden;opacity:1;display:flex;align-items:center;transition:opacity var(--el-transition-duration-fast)}.el-alert.is-light .el-alert__close-btn{color:var(--el-text-color-placeholder)}.el-alert.is-dark .el-alert__close-btn,.el-alert.is-dark .el-alert__description{color:var(--el-color-white)}.el-alert.is-center{justify-content:center}.el-alert--success{--el-alert-bg-color:var(--el-color-success-light-9)}.el-alert--success.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-success)}.el-alert--success.is-light .el-alert__description{color:var(--el-color-success)}.el-alert--success.is-dark{background-color:var(--el-color-success);color:var(--el-color-white)}.el-alert--info{--el-alert-bg-color:var(--el-color-info-light-9)}.el-alert--info.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-info)}.el-alert--info.is-light .el-alert__description{color:var(--el-color-info)}.el-alert--info.is-dark{background-color:var(--el-color-info);color:var(--el-color-white)}.el-alert--warning{--el-alert-bg-color:var(--el-color-warning-light-9)}.el-alert--warning.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-warning)}.el-alert--warning.is-light .el-alert__description{color:var(--el-color-warning)}.el-alert--warning.is-dark{background-color:var(--el-color-warning);color:var(--el-color-white)}.el-alert--error{--el-alert-bg-color:var(--el-color-error-light-9)}.el-alert--error.is-light{background-color:var(--el-alert-bg-color);color:var(--el-color-error)}.el-alert--error.is-light .el-alert__description{color:var(--el-color-error)}.el-alert--error.is-dark{background-color:var(--el-color-error);color:var(--el-color-white)}.el-alert__content{display:table-cell;padding:0 8px}.el-alert .el-alert__icon{font-size:var(--el-alert-icon-size);width:var(--el-alert-icon-size)}.el-alert .el-alert__icon.is-big{font-size:var(--el-alert-icon-large-size);width:var(--el-alert-icon-large-size)}.el-alert__title{font-size:var(--el-alert-title-font-size);line-height:18px;vertical-align:text-top}.el-alert__title.is-bold{font-weight:700}.el-alert .el-alert__description{font-size:var(--el-alert-description-font-size);margin:5px 0 0}.el-alert .el-alert__close-btn{font-size:var(--el-alert-close-font-size);opacity:1;position:absolute;top:12px;right:15px;cursor:pointer}.el-alert .el-alert__close-btn.is-customed{font-style:normal;font-size:var(--el-alert-close-customed-font-size);top:9px}.el-alert-fade-enter-from,.el-alert-fade-leave-active{opacity:0}.el-aside{overflow:auto;box-sizing:border-box;flex-shrink:0;width:var(--el-aside-width,300px)}.el-autocomplete{position:relative;display:inline-block}.el-autocomplete__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-autocomplete__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-autocomplete__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-autocomplete__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-autocomplete-suggestion{border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-autocomplete-suggestion__wrap{max-height:280px;padding:10px 0;box-sizing:border-box}.el-autocomplete-suggestion__list{margin:0;padding:0}.el-autocomplete-suggestion li{padding:0 20px;margin:0;line-height:34px;cursor:pointer;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);list-style:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-autocomplete-suggestion li:hover,.el-autocomplete-suggestion li.highlighted{background-color:var(--el-fill-color-light)}.el-autocomplete-suggestion li.divider{margin-top:6px;border-top:1px solid var(--el-color-black)}.el-autocomplete-suggestion li.divider:last-child{margin-bottom:-6px}.el-autocomplete-suggestion.is-loading li{text-align:center;height:100px;line-height:100px;font-size:20px;color:var(--el-text-color-secondary)}.el-autocomplete-suggestion.is-loading li:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-autocomplete-suggestion.is-loading li:hover{background-color:var(--el-bg-color-overlay)}.el-autocomplete-suggestion.is-loading .el-icon-loading{vertical-align:middle}.el-avatar{--el-avatar-text-color:var(--el-color-white);--el-avatar-bg-color:var(--el-text-color-disabled);--el-avatar-text-size:14px;--el-avatar-icon-size:18px;--el-avatar-border-radius:var(--el-border-radius-base);--el-avatar-size-large:56px;--el-avatar-size-small:24px;--el-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--el-avatar-text-color);background:var(--el-avatar-bg-color);width:var(--el-avatar-size);height:var(--el-avatar-size);font-size:var(--el-avatar-text-size)}.el-avatar>img{display:block;width:100%;height:100%}.el-avatar--circle{border-radius:50%}.el-avatar--square{border-radius:var(--el-avatar-border-radius)}.el-avatar--icon{font-size:var(--el-avatar-icon-size)}.el-avatar--small{--el-avatar-size:24px}.el-avatar--large{--el-avatar-size:56px}.el-backtop{--el-backtop-bg-color:var(--el-bg-color-overlay);--el-backtop-text-color:var(--el-color-primary);--el-backtop-hover-bg-color:var(--el-border-color-extra-light);position:fixed;background-color:var(--el-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--el-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--el-box-shadow-lighter);cursor:pointer;z-index:5}.el-backtop:hover{background-color:var(--el-backtop-hover-bg-color)}.el-backtop__icon{font-size:20px}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:inline-flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:after,.el-button-group:before{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:active,.el-button-group>.el-button:focus,.el-button-group>.el-button:hover{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255, 255, 255, .5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{width:32px;border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:focus,.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-calendar{--el-calendar-border:var(--el-table-border, 1px solid var(--el-border-color-lighter));--el-calendar-header-border-bottom:var(--el-calendar-border);--el-calendar-selected-bg-color:var(--el-color-primary-light-9);--el-calendar-cell-width:85px;background-color:var(--el-fill-color-blank)}.el-calendar__header{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:var(--el-calendar-header-border-bottom)}.el-calendar__title{color:var(--el-text-color);align-self:center}.el-calendar__body{padding:12px 20px 35px}.el-calendar-table{table-layout:fixed;width:100%}.el-calendar-table thead th{padding:12px 0;color:var(--el-text-color-regular);font-weight:400}.el-calendar-table:not(.is-range) td.next,.el-calendar-table:not(.is-range) td.prev{color:var(--el-text-color-placeholder)}.el-calendar-table td{border-bottom:var(--el-calendar-border);border-right:var(--el-calendar-border);vertical-align:top;transition:background-color var(--el-transition-duration-fast) ease}.el-calendar-table td.is-selected{background-color:var(--el-calendar-selected-bg-color)}.el-calendar-table td.is-today{color:var(--el-color-primary)}.el-calendar-table tr:first-child td{border-top:var(--el-calendar-border)}.el-calendar-table tr td:first-child{border-left:var(--el-calendar-border)}.el-calendar-table tr.el-calendar-table__row--hide-border td{border-top:none}.el-calendar-table .el-calendar-day{box-sizing:border-box;padding:8px;height:var(--el-calendar-cell-width)}.el-calendar-table .el-calendar-day:hover{cursor:pointer;background-color:var(--el-calendar-selected-bg-color)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-card__footer{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-top:1px solid var(--el-card-border-color);box-sizing:border-box}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{width:100%;height:50%}.el-carousel__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31, 45, 61, .11);--el-carousel-arrow-hover-background:rgba(31, 45, 61, .23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{position:absolute;list-style:none;margin:0;padding:0;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px;color:#000}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-cascader-panel{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader-panel{display:flex;border-radius:var(--el-cascader-menu-radius);font-size:var(--el-cascader-menu-font-size)}.el-cascader-panel.is-bordered{border:var(--el-cascader-menu-border);border-radius:var(--el-cascader-menu-radius)}.el-cascader-menu{min-width:180px;box-sizing:border-box;color:var(--el-cascader-menu-text-color);border-right:var(--el-cascader-menu-border)}.el-cascader-menu:last-child{border-right:none}.el-cascader-menu:last-child .el-cascader-node{padding-right:20px}.el-cascader-menu__wrap.el-scrollbar__wrap{height:204px}.el-cascader-menu__list{position:relative;min-height:100%;margin:0;padding:6px 0;list-style:none;box-sizing:border-box}.el-cascader-menu__hover-zone{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.el-cascader-menu__empty-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;color:var(--el-cascader-color-empty)}.el-cascader-menu__empty-text .is-loading{margin-right:2px}.el-cascader-node{position:relative;display:flex;align-items:center;padding:0 30px 0 20px;height:34px;line-height:34px;outline:0}.el-cascader-node.is-selectable.in-active-path{color:var(--el-cascader-menu-text-color)}.el-cascader-node.in-active-path,.el-cascader-node.is-active,.el-cascader-node.is-selectable.in-checked-path{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader-node:not(.is-disabled){cursor:pointer}.el-cascader-node:not(.is-disabled):focus,.el-cascader-node:not(.is-disabled):hover{background:var(--el-cascader-node-background-hover)}.el-cascader-node.is-disabled{color:var(--el-cascader-node-color-disabled);cursor:not-allowed}.el-cascader-node__prefix{position:absolute;left:10px}.el-cascader-node__postfix{position:absolute;right:10px}.el-cascader-node__label{flex:1;text-align:left;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.el-cascader-node>.el-checkbox{margin-right:0}.el-cascader-node>.el-radio{margin-right:0}.el-cascader-node>.el-radio .el-radio__label{padding-left:0}.el-cascader{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color);display:inline-block;vertical-align:middle;position:relative;font-size:var(--el-font-size-base);line-height:32px;outline:0}.el-cascader:not(.is-disabled):hover .el-input__wrapper{cursor:pointer;box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-cascader .el-input{display:flex;cursor:pointer}.el-cascader .el-input .el-input__inner{text-overflow:ellipsis;cursor:pointer}.el-cascader .el-input .el-input__suffix-inner .el-icon{height:calc(100% - 2px)}.el-cascader .el-input .el-input__suffix-inner .el-icon svg{vertical-align:middle}.el-cascader .el-input .icon-arrow-down{transition:transform var(--el-transition-duration);font-size:14px}.el-cascader .el-input .icon-arrow-down.is-reverse{transform:rotate(180deg)}.el-cascader .el-input .icon-circle-close:hover{color:var(--el-input-clear-hover-color,var(--el-text-color-secondary))}.el-cascader .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-cascader--large{font-size:14px;line-height:40px}.el-cascader--small{font-size:12px;line-height:24px}.el-cascader.is-disabled .el-cascader__label{z-index:calc(var(--el-index-normal) + 1);color:var(--el-disabled-text-color)}.el-cascader__dropdown{--el-cascader-menu-text-color:var(--el-text-color-regular);--el-cascader-menu-selected-text-color:var(--el-color-primary);--el-cascader-menu-fill:var(--el-bg-color-overlay);--el-cascader-menu-font-size:var(--el-font-size-base);--el-cascader-menu-radius:var(--el-border-radius-base);--el-cascader-menu-border:solid 1px var(--el-border-color-light);--el-cascader-menu-shadow:var(--el-box-shadow-light);--el-cascader-node-background-hover:var(--el-fill-color-light);--el-cascader-node-color-disabled:var(--el-text-color-placeholder);--el-cascader-color-empty:var(--el-text-color-placeholder);--el-cascader-tag-background:var(--el-fill-color)}.el-cascader__dropdown{font-size:var(--el-cascader-menu-font-size);border-radius:var(--el-cascader-menu-radius)}.el-cascader__dropdown.el-popper{background:var(--el-cascader-menu-fill);border:var(--el-cascader-menu-border);box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__dropdown.el-popper .el-popper__arrow:before{border:var(--el-cascader-menu-border)}.el-cascader__dropdown.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-cascader__dropdown.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-cascader__dropdown.el-popper{box-shadow:var(--el-cascader-menu-shadow)}.el-cascader__tags{position:absolute;left:0;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-wrap:wrap;line-height:normal;text-align:left;box-sizing:border-box}.el-cascader__tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-cascader-tag-background)}.el-cascader__tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__collapse-tags{white-space:normal;z-index:var(--el-index-normal)}.el-cascader__collapse-tags .el-tag{display:inline-flex;align-items:center;max-width:100%;margin:2px 0 2px 6px;text-overflow:ellipsis;background:var(--el-fill-color)}.el-cascader__collapse-tags .el-tag:not(.is-hit){border-color:transparent}.el-cascader__collapse-tags .el-tag>span{flex:1;overflow:hidden;text-overflow:ellipsis}.el-cascader__collapse-tags .el-tag .el-icon-close{flex:none;background-color:var(--el-text-color-placeholder);color:var(--el-color-white)}.el-cascader__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-cascader__suggestion-panel{border-radius:var(--el-cascader-menu-radius)}.el-cascader__suggestion-list{max-height:204px;margin:0;padding:6px 0;font-size:var(--el-font-size-base);color:var(--el-cascader-menu-text-color);text-align:center}.el-cascader__suggestion-item{display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 15px;text-align:left;outline:0;cursor:pointer}.el-cascader__suggestion-item:focus,.el-cascader__suggestion-item:hover{background:var(--el-cascader-node-background-hover)}.el-cascader__suggestion-item.is-checked{color:var(--el-cascader-menu-selected-text-color);font-weight:700}.el-cascader__suggestion-item>span{margin-right:10px}.el-cascader__empty-text{margin:10px 0;color:var(--el-cascader-color-empty)}.el-cascader__search-input{flex:1;height:24px;min-width:60px;margin:2px 0 2px 11px;padding:0;color:var(--el-cascader-menu-text-color);border:none;outline:0;box-sizing:border-box;background:0 0}.el-cascader__search-input::-moz-placeholder{color:transparent}.el-cascader__search-input:-ms-input-placeholder{color:transparent}.el-cascader__search-input::placeholder{color:transparent}.el-check-tag{background-color:var(--el-color-info-light-9);border-radius:var(--el-border-radius-base);color:var(--el-color-info);cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);line-height:var(--el-font-size-base);padding:7px 15px;transition:var(--el-transition-all);font-weight:700}.el-check-tag:hover{background-color:var(--el-color-info-light-7)}.el-check-tag.is-checked{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.el-check-tag.is-checked:hover{background-color:var(--el-color-primary-light-7)}.el-checkbox-button{--el-checkbox-button-checked-bg-color:var(--el-color-primary);--el-checkbox-button-checked-text-color:var(--el-color-white);--el-checkbox-button-checked-border-color:var(--el-color-primary)}.el-checkbox-button{position:relative;display:inline-block}.el-checkbox-button__inner{display:inline-block;line-height:1;font-weight:var(--el-checkbox-font-weight);white-space:nowrap;vertical-align:middle;cursor:pointer;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);border-left-color:transparent;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button__inner.is-round{padding:8px 15px}.el-checkbox-button__inner:hover{color:var(--el-color-primary)}.el-checkbox-button__inner [class*=el-icon-]{line-height:.9}.el-checkbox-button__inner [class*=el-icon-]+span{margin-left:5px}.el-checkbox-button__original{opacity:0;outline:0;position:absolute;margin:0;z-index:-1}.el-checkbox-button.is-checked .el-checkbox-button__inner{color:var(--el-checkbox-button-checked-text-color);background-color:var(--el-checkbox-button-checked-bg-color);border-color:var(--el-checkbox-button-checked-border-color);box-shadow:-1px 0 0 0 var(--el-color-primary-light-7)}.el-checkbox-button.is-checked:first-child .el-checkbox-button__inner{border-left-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button.is-disabled .el-checkbox-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-checkbox-button.is-disabled:first-child .el-checkbox-button__inner{border-left-color:var(--el-button-disabled-border-color,var(--el-border-color-light))}.el-checkbox-button:first-child .el-checkbox-button__inner{border-left:var(--el-border);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base);box-shadow:none!important}.el-checkbox-button.is-focus .el-checkbox-button__inner{border-color:var(--el-checkbox-button-checked-border-color)}.el-checkbox-button:last-child .el-checkbox-button__inner{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base)}.el-checkbox-button--large .el-checkbox-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-checkbox-button--large .el-checkbox-button__inner.is-round{padding:12px 19px}.el-checkbox-button--small .el-checkbox-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-checkbox-button--small .el-checkbox-button__inner.is-round{padding:5px 11px}.el-checkbox-group{font-size:0;line-height:0}.el-checkbox{--el-checkbox-font-size:14px;--el-checkbox-font-weight:var(--el-font-weight-primary);--el-checkbox-text-color:var(--el-text-color-regular);--el-checkbox-input-height:14px;--el-checkbox-input-width:14px;--el-checkbox-border-radius:var(--el-border-radius-small);--el-checkbox-bg-color:var(--el-fill-color-blank);--el-checkbox-input-border:var(--el-border);--el-checkbox-disabled-border-color:var(--el-border-color);--el-checkbox-disabled-input-fill:var(--el-fill-color-light);--el-checkbox-disabled-icon-color:var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill:var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color:var(--el-border-color);--el-checkbox-disabled-checked-icon-color:var(--el-text-color-placeholder);--el-checkbox-checked-text-color:var(--el-color-primary);--el-checkbox-checked-input-border-color:var(--el-color-primary);--el-checkbox-checked-bg-color:var(--el-color-primary);--el-checkbox-checked-icon-color:var(--el-color-white);--el-checkbox-input-border-color-hover:var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:30px;height:var(--el-checkbox-height,32px)}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1);border-color:var(--el-checkbox-checked-icon-color)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid transparent;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in 50ms;transform-origin:center}.el-checkbox__original{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{width:100%;padding:0;border:none;display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,#fff0)}.el-color-svpanel__black{background:linear-gradient(to top,#000,#0000)}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,#fff0 0,#fff)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal;outline:0}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:30px;width:30px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-container{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0}.el-container.is-vertical{flex-direction:column}.el-date-table{font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-date-table.is-week-mode .el-date-table__row:hover .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table.is-week-mode .el-date-table__row:hover td.available:hover{color:var(--el-datepicker-text-color)}.el-date-table.is-week-mode .el-date-table__row:hover td:first-child .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table.is-week-mode .el-date-table__row:hover td:last-child .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table.is-week-mode .el-date-table__row.current .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td{width:32px;height:30px;padding:4px 0;box-sizing:border-box;text-align:center;cursor:pointer;position:relative}.el-date-table td .el-date-table-cell{height:30px;padding:3px 0;box-sizing:border-box}.el-date-table td .el-date-table-cell .el-date-table-cell__text{width:24px;height:24px;display:block;margin:0 auto;line-height:24px;position:absolute;left:50%;transform:translate(-50%);border-radius:50%}.el-date-table td.next-month,.el-date-table td.prev-month{color:var(--el-datepicker-off-text-color)}.el-date-table td.today{position:relative}.el-date-table td.today .el-date-table-cell__text{color:var(--el-color-primary);font-weight:700}.el-date-table td.today.end-date .el-date-table-cell__text,.el-date-table td.today.start-date .el-date-table-cell__text{color:#fff}.el-date-table td.available:hover{color:var(--el-datepicker-hover-text-color)}.el-date-table td.in-range .el-date-table-cell{background-color:var(--el-datepicker-inrange-bg-color)}.el-date-table td.in-range .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.current:not(.disabled) .el-date-table-cell__text{color:#fff;background-color:var(--el-datepicker-active-color)}.el-date-table td.current:not(.disabled):focus-visible .el-date-table-cell__text{outline:2px solid var(--el-datepicker-active-color);outline-offset:1px}.el-date-table td.end-date .el-date-table-cell,.el-date-table td.start-date .el-date-table-cell{color:#fff}.el-date-table td.end-date .el-date-table-cell__text,.el-date-table td.start-date .el-date-table-cell__text{background-color:var(--el-datepicker-active-color)}.el-date-table td.start-date .el-date-table-cell{margin-left:5px;border-top-left-radius:15px;border-bottom-left-radius:15px}.el-date-table td.end-date .el-date-table-cell{margin-right:5px;border-top-right-radius:15px;border-bottom-right-radius:15px}.el-date-table td.disabled .el-date-table-cell{background-color:var(--el-fill-color-light);opacity:1;cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-date-table td.selected .el-date-table-cell{margin-left:5px;margin-right:5px;background-color:var(--el-datepicker-inrange-bg-color);border-radius:15px}.el-date-table td.selected .el-date-table-cell:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-date-table td.selected .el-date-table-cell__text{background-color:var(--el-datepicker-active-color);color:#fff;border-radius:15px}.el-date-table td.week{font-size:80%;color:var(--el-datepicker-header-text-color)}.el-date-table td:focus{outline:0}.el-date-table th{padding:5px;color:var(--el-datepicker-header-text-color);font-weight:400;border-bottom:solid 1px var(--el-border-color-lighter)}.el-month-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-month-table td{text-align:center;padding:8px 0;cursor:pointer}.el-month-table td div{height:48px;padding:6px 0;box-sizing:border-box}.el-month-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-month-table td.today.end-date .cell,.el-month-table td.today.start-date .cell{color:#fff}.el-month-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-month-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-month-table td .cell{width:60px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);margin:0 auto;border-radius:18px}.el-month-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-month-table td.in-range div{background-color:var(--el-datepicker-inrange-bg-color)}.el-month-table td.in-range div:hover{background-color:var(--el-datepicker-inrange-hover-bg-color)}.el-month-table td.end-date div,.el-month-table td.start-date div{color:#fff}.el-month-table td.end-date .cell,.el-month-table td.start-date .cell{color:#fff;background-color:var(--el-datepicker-active-color)}.el-month-table td.start-date div{border-top-left-radius:24px;border-bottom-left-radius:24px}.el-month-table td.end-date div{border-top-right-radius:24px;border-bottom-right-radius:24px}.el-month-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-month-table td:focus-visible{outline:0}.el-month-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-year-table{font-size:12px;margin:-1px;border-collapse:collapse}.el-year-table .el-icon{color:var(--el-datepicker-icon-color)}.el-year-table td{text-align:center;padding:20px 3px;cursor:pointer}.el-year-table td.today .cell{color:var(--el-color-primary);font-weight:700}.el-year-table td.disabled .cell{background-color:var(--el-fill-color-light);cursor:not-allowed;color:var(--el-text-color-placeholder)}.el-year-table td.disabled .cell:hover{color:var(--el-text-color-placeholder)}.el-year-table td .cell{width:48px;height:36px;display:block;line-height:36px;color:var(--el-datepicker-text-color);border-radius:18px;margin:0 auto}.el-year-table td .cell:hover{color:var(--el-datepicker-hover-text-color)}.el-year-table td.current:not(.disabled) .cell{color:var(--el-datepicker-active-color)}.el-year-table td:focus-visible{outline:0}.el-year-table td:focus-visible .cell{outline:2px solid var(--el-datepicker-active-color)}.el-time-spinner.has-seconds .el-time-spinner__wrapper{width:33.3%}.el-time-spinner__wrapper{max-height:192px;overflow:auto;display:inline-block;width:50%;vertical-align:top;position:relative}.el-time-spinner__wrapper.el-scrollbar__wrap:not(.el-scrollbar__wrap--hidden-default){padding-bottom:15px}.el-time-spinner__wrapper.is-arrow{box-sizing:border-box;text-align:center;overflow:hidden}.el-time-spinner__wrapper.is-arrow .el-time-spinner__list{transform:translateY(-32px)}.el-time-spinner__wrapper.is-arrow .el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:default}.el-time-spinner__arrow{font-size:12px;color:var(--el-text-color-secondary);position:absolute;left:0;width:100%;z-index:var(--el-index-normal);text-align:center;height:30px;line-height:30px;cursor:pointer}.el-time-spinner__arrow:hover{color:var(--el-color-primary)}.el-time-spinner__arrow.arrow-up{top:10px}.el-time-spinner__arrow.arrow-down{bottom:10px}.el-time-spinner__input.el-input{width:70%}.el-time-spinner__input.el-input .el-input__inner{padding:0;text-align:center}.el-time-spinner__list{padding:0;margin:0;list-style:none;text-align:center}.el-time-spinner__list:after,.el-time-spinner__list:before{content:"";display:block;width:100%;height:80px}.el-time-spinner__item{height:32px;line-height:32px;font-size:12px;color:var(--el-text-color-regular)}.el-time-spinner__item:hover:not(.is-disabled):not(.is-active){background:var(--el-fill-color-light);cursor:pointer}.el-time-spinner__item.is-active:not(.is-disabled){color:var(--el-text-color-primary);font-weight:700}.el-time-spinner__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-picker__popper{--el-datepicker-border-color:var(--el-disabled-border-color)}.el-picker__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-datepicker-border-color);box-shadow:var(--el-box-shadow-light)}.el-picker__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-datepicker-border-color)}.el-picker__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-picker__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-date-editor{--el-date-editor-width:220px;--el-date-editor-monthrange-width:300px;--el-date-editor-daterange-width:350px;--el-date-editor-datetimerange-width:400px;--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;position:relative;text-align:left;vertical-align:middle}.el-date-editor.el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-date-editor.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-date-editor.el-input,.el-date-editor.el-input__wrapper{width:var(--el-date-editor-width);height:var(--el-input-height,var(--el-component-size))}.el-date-editor--monthrange{--el-date-editor-width:var(--el-date-editor-monthrange-width)}.el-date-editor--daterange,.el-date-editor--timerange{--el-date-editor-width:var(--el-date-editor-daterange-width)}.el-date-editor--datetimerange{--el-date-editor-width:var(--el-date-editor-datetimerange-width)}.el-date-editor--dates .el-input__wrapper{text-overflow:ellipsis;white-space:nowrap}.el-date-editor .close-icon,.el-date-editor .clear-icon{cursor:pointer}.el-date-editor .clear-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__icon{height:inherit;font-size:14px;color:var(--el-text-color-placeholder);float:left}.el-date-editor .el-range__icon svg{vertical-align:middle}.el-date-editor .el-range-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:0;display:inline-block;height:30px;line-height:30px;margin:0;padding:0;width:39%;text-align:center;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);background-color:transparent}.el-date-editor .el-range-input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-input::placeholder{color:var(--el-text-color-placeholder)}.el-date-editor .el-range-separator{flex:1;display:inline-flex;justify-content:center;align-items:center;height:100%;padding:0 5px;margin:0;font-size:14px;word-break:keep-all;color:var(--el-text-color-primary)}.el-date-editor .el-range__close-icon{font-size:14px;color:var(--el-text-color-placeholder);height:inherit;width:unset;cursor:pointer}.el-date-editor .el-range__close-icon:hover{color:var(--el-text-color-secondary)}.el-date-editor .el-range__close-icon svg{vertical-align:middle}.el-date-editor .el-range__close-icon--hidden{opacity:0;visibility:hidden}.el-range-editor.el-input__wrapper{display:inline-flex;align-items:center;padding:0 10px}.el-range-editor.is-active,.el-range-editor.is-active:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-range-editor--large{line-height:var(--el-component-size-large)}.el-range-editor--large.el-input__wrapper{height:var(--el-component-size-large)}.el-range-editor--large .el-range-separator{line-height:40px;font-size:14px}.el-range-editor--large .el-range-input{height:38px;line-height:38px;font-size:14px}.el-range-editor--small{line-height:var(--el-component-size-small)}.el-range-editor--small.el-input__wrapper{height:var(--el-component-size-small)}.el-range-editor--small .el-range-separator{line-height:24px;font-size:12px}.el-range-editor--small .el-range-input{height:22px;line-height:22px;font-size:12px}.el-range-editor.is-disabled{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled:focus,.el-range-editor.is-disabled:hover{border-color:var(--el-disabled-border-color)}.el-range-editor.is-disabled input{background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-range-editor.is-disabled input::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled input::placeholder{color:var(--el-text-color-placeholder)}.el-range-editor.is-disabled .el-range-separator{color:var(--el-disabled-text-color)}.el-picker-panel{color:var(--el-text-color-regular);background:var(--el-bg-color-overlay);border-radius:var(--el-border-radius-base);line-height:30px}.el-picker-panel .el-time-panel{margin:5px 0;border:solid 1px var(--el-datepicker-border-color);background-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-picker-panel__body-wrapper:after,.el-picker-panel__body:after{content:"";display:table;clear:both}.el-picker-panel__content{position:relative;margin:15px}.el-picker-panel__footer{border-top:1px solid var(--el-datepicker-inner-border-color);padding:4px 12px;text-align:right;background-color:var(--el-bg-color-overlay);position:relative;font-size:0}.el-picker-panel__shortcut{display:block;width:100%;border:0;background-color:transparent;line-height:28px;font-size:14px;color:var(--el-datepicker-text-color);padding-left:12px;text-align:left;outline:0;cursor:pointer}.el-picker-panel__shortcut:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__shortcut.active{background-color:#e6f1fe;color:var(--el-datepicker-active-color)}.el-picker-panel__btn{border:1px solid var(--el-fill-color-darker);color:var(--el-text-color-primary);line-height:24px;border-radius:2px;padding:0 20px;cursor:pointer;background-color:transparent;outline:0;font-size:12px}.el-picker-panel__btn[disabled]{color:var(--el-text-color-disabled);cursor:not-allowed}.el-picker-panel__icon-btn{font-size:12px;color:var(--el-datepicker-icon-color);border:0;background:0 0;cursor:pointer;outline:0;margin-top:8px}.el-picker-panel__icon-btn:hover{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn:focus-visible{color:var(--el-datepicker-hover-text-color)}.el-picker-panel__icon-btn.is-disabled{color:var(--el-text-color-disabled)}.el-picker-panel__icon-btn.is-disabled:hover{cursor:not-allowed}.el-picker-panel__icon-btn .el-icon{cursor:pointer;font-size:inherit}.el-picker-panel__link-btn{vertical-align:middle}.el-picker-panel [slot=sidebar],.el-picker-panel__sidebar{position:absolute;top:0;bottom:0;width:110px;border-right:1px solid var(--el-datepicker-inner-border-color);box-sizing:border-box;padding-top:6px;background-color:var(--el-bg-color-overlay);overflow:auto}.el-picker-panel [slot=sidebar]+.el-picker-panel__body,.el-picker-panel__sidebar+.el-picker-panel__body{margin-left:110px}.el-date-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-picker{width:322px}.el-date-picker.has-sidebar.has-time{width:434px}.el-date-picker.has-sidebar{width:438px}.el-date-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-picker .el-picker-panel__content{width:292px}.el-date-picker table{table-layout:fixed;width:100%}.el-date-picker__editor-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-picker__header{margin:12px;text-align:center}.el-date-picker__header--bordered{margin-bottom:0;padding-bottom:12px;border-bottom:solid 1px var(--el-border-color-lighter)}.el-date-picker__header--bordered+.el-picker-panel__content{margin-top:0}.el-date-picker__header-label{font-size:16px;font-weight:500;padding:0 5px;line-height:22px;text-align:center;cursor:pointer;color:var(--el-text-color-regular)}.el-date-picker__header-label:hover{color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label:focus-visible{outline:0;color:var(--el-datepicker-hover-text-color)}.el-date-picker__header-label.active{color:var(--el-datepicker-active-color)}.el-date-picker__prev-btn{float:left}.el-date-picker__next-btn{float:right}.el-date-picker__time-wrap{padding:10px;text-align:center}.el-date-picker__time-label{float:left;cursor:pointer;line-height:30px;margin-left:10px}.el-date-picker .el-time-panel{position:absolute}.el-date-range-picker{--el-datepicker-text-color:var(--el-text-color-regular);--el-datepicker-off-text-color:var(--el-text-color-placeholder);--el-datepicker-header-text-color:var(--el-text-color-regular);--el-datepicker-icon-color:var(--el-text-color-primary);--el-datepicker-border-color:var(--el-disabled-border-color);--el-datepicker-inner-border-color:var(--el-border-color-light);--el-datepicker-inrange-bg-color:var(--el-border-color-extra-light);--el-datepicker-inrange-hover-bg-color:var(--el-border-color-extra-light);--el-datepicker-active-color:var(--el-color-primary);--el-datepicker-hover-text-color:var(--el-color-primary)}.el-date-range-picker{width:646px}.el-date-range-picker.has-sidebar{width:756px}.el-date-range-picker.has-time .el-picker-panel__body-wrapper{position:relative}.el-date-range-picker table{table-layout:fixed;width:100%}.el-date-range-picker .el-picker-panel__body{min-width:513px}.el-date-range-picker .el-picker-panel__content{margin:0}.el-date-range-picker__header{position:relative;text-align:center;height:28px}.el-date-range-picker__header [class*=arrow-left]{float:left}.el-date-range-picker__header [class*=arrow-right]{float:right}.el-date-range-picker__header div{font-size:16px;font-weight:500;margin-right:50px}.el-date-range-picker__content{float:left;width:50%;box-sizing:border-box;margin:0;padding:16px}.el-date-range-picker__content.is-left{border-right:1px solid var(--el-datepicker-inner-border-color)}.el-date-range-picker__content .el-date-range-picker__header div{margin-left:50px;margin-right:50px}.el-date-range-picker__editors-wrap{box-sizing:border-box;display:table-cell}.el-date-range-picker__editors-wrap.is-right{text-align:right}.el-date-range-picker__time-header{position:relative;border-bottom:1px solid var(--el-datepicker-inner-border-color);font-size:12px;padding:8px 5px 5px;display:table;width:100%;box-sizing:border-box}.el-date-range-picker__time-header>.el-icon-arrow-right{font-size:20px;vertical-align:middle;display:table-cell;color:var(--el-datepicker-icon-color)}.el-date-range-picker__time-picker-wrap{position:relative;display:table-cell;padding:0 5px}.el-date-range-picker__time-picker-wrap .el-picker-panel{position:absolute;top:13px;right:0;z-index:1;background:#fff}.el-date-range-picker__time-picker-wrap .el-time-panel{position:absolute}.el-time-range-picker{width:354px;overflow:visible}.el-time-range-picker__content{position:relative;text-align:center;padding:10px;z-index:1}.el-time-range-picker__cell{box-sizing:border-box;margin:0;padding:4px 7px 7px;width:50%;display:inline-block}.el-time-range-picker__header{margin-bottom:5px;text-align:center;font-size:14px}.el-time-range-picker__body{border-radius:2px;border:1px solid var(--el-datepicker-border-color)}.el-time-panel{border-radius:2px;position:relative;width:180px;left:0;z-index:var(--el-index-top);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box}.el-time-panel__content{font-size:0;position:relative;overflow:hidden}.el-time-panel__content:after,.el-time-panel__content:before{content:"";top:50%;position:absolute;margin-top:-16px;height:32px;z-index:-1;left:0;right:0;box-sizing:border-box;padding-top:6px;text-align:left}.el-time-panel__content:after{left:50%;margin-left:12%;margin-right:12%}.el-time-panel__content:before{padding-left:50%;margin-right:12%;margin-left:12%;border-top:1px solid var(--el-border-color-light);border-bottom:1px solid var(--el-border-color-light)}.el-time-panel__content.has-seconds:after{left:66.6666666667%}.el-time-panel__content.has-seconds:before{padding-left:33.3333333333%}.el-time-panel__footer{border-top:1px solid var(--el-timepicker-inner-border-color,var(--el-border-color-light));padding:4px;height:36px;line-height:25px;text-align:right;box-sizing:border-box}.el-time-panel__btn{border:none;line-height:28px;padding:0 5px;margin:0 5px;cursor:pointer;background-color:transparent;outline:0;font-size:12px;color:var(--el-text-color-primary)}.el-time-panel__btn.confirm{font-weight:800;color:var(--el-timepicker-active-color,var(--el-color-primary))}.el-descriptions{--el-descriptions-table-border:1px solid var(--el-border-color-lighter);--el-descriptions-item-bordered-label-background:var(--el-fill-color-light);box-sizing:border-box;font-size:var(--el-font-size-base);color:var(--el-text-color-primary)}.el-descriptions__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.el-descriptions__title{color:var(--el-text-color-primary);font-size:16px;font-weight:700}.el-descriptions__body{background-color:var(--el-fill-color-blank)}.el-descriptions__body .el-descriptions__table{border-collapse:collapse;width:100%}.el-descriptions__body .el-descriptions__table .el-descriptions__cell{box-sizing:border-box;text-align:left;font-weight:400;line-height:23px;font-size:14px}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-left{text-align:left}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-center{text-align:center}.el-descriptions__body .el-descriptions__table .el-descriptions__cell.is-right{text-align:right}.el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:var(--el-descriptions-table-border);padding:8px 11px}.el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:12px}.el-descriptions--large{font-size:14px}.el-descriptions--large .el-descriptions__header{margin-bottom:20px}.el-descriptions--large .el-descriptions__header .el-descriptions__title{font-size:16px}.el-descriptions--large .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:14px}.el-descriptions--large .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:12px 15px}.el-descriptions--large .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:16px}.el-descriptions--small{font-size:12px}.el-descriptions--small .el-descriptions__header{margin-bottom:12px}.el-descriptions--small .el-descriptions__header .el-descriptions__title{font-size:14px}.el-descriptions--small .el-descriptions__body .el-descriptions__table .el-descriptions__cell{font-size:12px}.el-descriptions--small .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{padding:4px 7px}.el-descriptions--small .el-descriptions__body .el-descriptions__table:not(.is-bordered) .el-descriptions__cell{padding-bottom:8px}.el-descriptions__label.el-descriptions__cell.is-bordered-label{font-weight:700;color:var(--el-text-color-regular);background:var(--el-descriptions-item-bordered-label-background)}.el-descriptions__label:not(.is-bordered-label){color:var(--el-text-color-primary);margin-right:16px}.el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:6px}.el-descriptions__content.el-descriptions__cell.is-bordered-content{color:var(--el-text-color-primary)}.el-descriptions__content:not(.is-bordered-label){color:var(--el-text-color-regular)}.el-descriptions--large .el-descriptions__label:not(.is-bordered-label){margin-right:16px}.el-descriptions--large .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:8px}.el-descriptions--small .el-descriptions__label:not(.is-bordered-label){margin-right:12px}.el-descriptions--small .el-descriptions__label.el-descriptions__cell:not(.is-bordered-label).is-vertical-label{padding-bottom:4px}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-drawer{--el-drawer-bg-color:var(--el-dialog-bg-color, var(--el-bg-color));--el-drawer-padding-primary:var(--el-dialog-padding-primary, 20px)}.el-drawer{position:absolute;box-sizing:border-box;background-color:var(--el-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--el-box-shadow-dark);overflow:hidden;transition:all var(--el-transition-duration)}.el-drawer .rtl,.el-drawer .ltr,.el-drawer .ttb,.el-drawer .btt{transform:translate(0)}.el-drawer__sr-focus:focus{outline:0!important}.el-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--el-drawer-padding-primary);padding-bottom:0}.el-drawer__header>:first-child{flex:1}.el-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.el-drawer__footer{padding:var(--el-drawer-padding-primary);padding-top:10px;text-align:right}.el-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--el-font-size-extra-large);color:inherit;background-color:transparent;outline:0}.el-drawer__close-btn:focus i,.el-drawer__close-btn:hover i{color:var(--el-color-primary)}.el-drawer__body{flex:1;padding:var(--el-drawer-padding-primary);overflow:auto}.el-drawer__body>*{box-sizing:border-box}.el-drawer.ltr,.el-drawer.rtl{height:100%;top:0;bottom:0}.el-drawer.btt,.el-drawer.ttb{width:100%;left:0;right:0}.el-drawer.ltr{left:0}.el-drawer.rtl{right:0}.el-drawer.ttb{top:0}.el-drawer.btt{bottom:0}.el-drawer-fade-enter-active,.el-drawer-fade-leave-active{transition:all var(--el-transition-duration)}.el-drawer-fade-enter-active,.el-drawer-fade-enter-from,.el-drawer-fade-enter-to,.el-drawer-fade-leave-active,.el-drawer-fade-leave-from,.el-drawer-fade-leave-to{overflow:hidden!important}.el-drawer-fade-enter-from,.el-drawer-fade-leave-to{opacity:0}.el-drawer-fade-enter-to,.el-drawer-fade-leave-from{opacity:1}.el-drawer-fade-enter-from .rtl,.el-drawer-fade-leave-to .rtl{transform:translate(100%)}.el-drawer-fade-enter-from .ltr,.el-drawer-fade-leave-to .ltr{transform:translate(-100%)}.el-drawer-fade-enter-from .ttb,.el-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.el-drawer-fade-enter-from .btt,.el-drawer-fade-leave-to .btt{transform:translateY(100%)}.el-dropdown{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10;display:inline-flex;position:relative;color:var(--el-text-color-regular);font-size:var(--el-font-size-base);line-height:1;vertical-align:top}.el-dropdown.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-dropdown__popper{--el-dropdown-menu-box-shadow:var(--el-box-shadow-light);--el-dropdown-menuItem-hover-fill:var(--el-color-primary-light-9);--el-dropdown-menuItem-hover-color:var(--el-color-primary);--el-dropdown-menu-index:10}.el-dropdown__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-dropdown-menu-box-shadow)}.el-dropdown__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-dropdown__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-dropdown__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-dropdown__popper .el-dropdown-menu{border:none}.el-dropdown__popper .el-dropdown__popper-selfdefine{outline:0}.el-dropdown__popper .el-scrollbar__bar{z-index:calc(var(--el-dropdown-menu-index) + 1)}.el-dropdown__popper .el-dropdown__list{list-style:none;padding:0;margin:0;box-sizing:border-box}.el-dropdown .el-dropdown__caret-button{padding-left:0;padding-right:0;display:inline-flex;justify-content:center;align-items:center;width:32px;border-left:none}.el-dropdown .el-dropdown__caret-button>span{display:inline-flex}.el-dropdown .el-dropdown__caret-button:before{content:"";position:absolute;display:block;width:1px;top:-1px;bottom:-1px;left:0;background:var(--el-overlay-color-lighter)}.el-dropdown .el-dropdown__caret-button.el-button:before{background:var(--el-border-color);opacity:.5}.el-dropdown .el-dropdown__caret-button .el-dropdown__icon{font-size:inherit;padding-left:0}.el-dropdown .el-dropdown-selfdefine{outline:0}.el-dropdown--large .el-dropdown__caret-button{width:40px}.el-dropdown--small .el-dropdown__caret-button{width:24px}.el-dropdown-menu{position:relative;top:0;left:0;z-index:var(--el-dropdown-menu-index);padding:5px 0;margin:0;background-color:var(--el-bg-color-overlay);border:none;border-radius:var(--el-border-radius-base);box-shadow:none;list-style:none}.el-dropdown-menu__item{display:flex;align-items:center;white-space:nowrap;list-style:none;line-height:22px;padding:5px 16px;margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);cursor:pointer;outline:0}.el-dropdown-menu__item:not(.is-disabled):focus{background-color:var(--el-dropdown-menuItem-hover-fill);color:var(--el-dropdown-menuItem-hover-color)}.el-dropdown-menu__item i{margin-right:5px}.el-dropdown-menu__item--divided{margin:6px 0;border-top:1px solid var(--el-border-color-lighter)}.el-dropdown-menu__item.is-disabled{cursor:not-allowed;color:var(--el-text-color-disabled)}.el-dropdown-menu--large{padding:7px 0}.el-dropdown-menu--large .el-dropdown-menu__item{padding:7px 20px;line-height:22px;font-size:14px}.el-dropdown-menu--large .el-dropdown-menu__item--divided{margin:8px 0}.el-dropdown-menu--small{padding:3px 0}.el-dropdown-menu--small .el-dropdown-menu__item{padding:2px 12px;line-height:20px;font-size:12px}.el-dropdown-menu--small .el-dropdown-menu__item--divided{margin:4px 0}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-footer{--el-footer-padding:0 20px;--el-footer-height:60px;padding:var(--el-footer-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-footer-height)}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper.is-focused{border-color:transparent}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-color-danger) inset!important}.el-form-item.is-error .el-select:hover{box-shadow:0 0 0 1px transparent}.el-form-item.is-error .el-select .el-input .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset!important}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-header{--el-header-padding:0 20px;--el-header-height:60px;padding:var(--el-header-padding);box-sizing:border-box;flex-shrink:0;height:var(--el-header-height)}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{position:static;width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-input-number{position:relative;display:inline-flex;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%}.el-input{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:var(--el-input-width);line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));cursor:text;transition:var(--el-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color,) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner:-ms-input-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small .el-input__inner{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-link{--el-link-font-size:var(--el-font-size-base);--el-link-font-weight:var(--el-font-weight-primary);--el-link-text-color:var(--el-text-color-regular);--el-link-hover-text-color:var(--el-color-primary);--el-link-disabled-text-color:var(--el-text-color-placeholder)}.el-link{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;vertical-align:middle;position:relative;text-decoration:none;outline:0;cursor:pointer;padding:0;font-size:var(--el-link-font-size);font-weight:var(--el-link-font-weight);color:var(--el-link-text-color)}.el-link:hover{color:var(--el-link-hover-text-color)}.el-link.is-underline:hover:after{content:"";position:absolute;left:0;right:0;height:0;bottom:0;border-bottom:1px solid var(--el-link-hover-text-color)}.el-link.is-disabled{color:var(--el-link-disabled-text-color);cursor:not-allowed}.el-link [class*=el-icon-]+span{margin-left:5px}.el-link.el-link--default:after{border-color:var(--el-link-hover-text-color)}.el-link__inner{display:inline-flex;justify-content:center;align-items:center}.el-link.el-link--primary{--el-link-text-color:var(--el-color-primary);--el-link-hover-text-color:var(--el-color-primary-light-3);--el-link-disabled-text-color:var(--el-color-primary-light-5)}.el-link.el-link--primary:after{border-color:var(--el-link-text-color)}.el-link.el-link--primary.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--success{--el-link-text-color:var(--el-color-success);--el-link-hover-text-color:var(--el-color-success-light-3);--el-link-disabled-text-color:var(--el-color-success-light-5)}.el-link.el-link--success:after{border-color:var(--el-link-text-color)}.el-link.el-link--success.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning{--el-link-text-color:var(--el-color-warning);--el-link-hover-text-color:var(--el-color-warning-light-3);--el-link-disabled-text-color:var(--el-color-warning-light-5)}.el-link.el-link--warning:after{border-color:var(--el-link-text-color)}.el-link.el-link--warning.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger{--el-link-text-color:var(--el-color-danger);--el-link-hover-text-color:var(--el-color-danger-light-3);--el-link-disabled-text-color:var(--el-color-danger-light-5)}.el-link.el-link--danger:after{border-color:var(--el-link-text-color)}.el-link.el-link--danger.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--error{--el-link-text-color:var(--el-color-error);--el-link-hover-text-color:var(--el-color-error-light-3);--el-link-disabled-text-color:var(--el-color-error-light-5)}.el-link.el-link--error:after{border-color:var(--el-link-text-color)}.el-link.el-link--error.is-underline:hover:after{border-color:var(--el-link-text-color)}.el-link.el-link--info{--el-link-text-color:var(--el-color-info);--el-link-hover-text-color:var(--el-color-info-light-3);--el-link-disabled-text-color:var(--el-color-info-light-5)}.el-link.el-link--info:after{border-color:var(--el-link-text-color)}.el-link.el-link--info.is-underline:hover:after{border-color:var(--el-link-text-color)}:root{--el-loading-spinner-size:42px;--el-loading-fullscreen-spinner-size:50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size))/ 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size))/ 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);-webkit-animation:loading-rotate 2s linear infinite;animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{-webkit-animation:loading-dash 1.5s ease-in-out infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@-webkit-keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-rotate{to{transform:rotate(360deg)}}@-webkit-keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-main{--el-main-padding:20px;display:block;flex:1;flex-basis:auto;overflow:auto;box-sizing:border-box;padding:var(--el-main-padding)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-right:none;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:solid 1px var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding) * 2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-6px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-sizing:border-box}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}.el-notification{--el-notification-width:330px;--el-notification-padding:14px 26px 14px 13px;--el-notification-radius:8px;--el-notification-shadow:var(--el-box-shadow-light);--el-notification-border-color:var(--el-border-color-lighter);--el-notification-icon-size:24px;--el-notification-close-font-size:var(--el-message-close-size, 16px);--el-notification-group-margin-left:13px;--el-notification-group-margin-right:8px;--el-notification-content-font-size:var(--el-font-size-base);--el-notification-content-color:var(--el-text-color-regular);--el-notification-title-font-size:16px;--el-notification-title-color:var(--el-text-color-primary);--el-notification-close-color:var(--el-text-color-secondary);--el-notification-close-hover-color:var(--el-text-color-regular)}.el-notification{display:flex;width:var(--el-notification-width);padding:var(--el-notification-padding);border-radius:var(--el-notification-radius);box-sizing:border-box;border:1px solid var(--el-notification-border-color);position:fixed;background-color:var(--el-bg-color-overlay);box-shadow:var(--el-notification-shadow);transition:opacity var(--el-transition-duration),transform var(--el-transition-duration),left var(--el-transition-duration),right var(--el-transition-duration),top .4s,bottom var(--el-transition-duration);overflow-wrap:anywhere;overflow:hidden;z-index:9999}.el-notification.right{right:16px}.el-notification.left{left:16px}.el-notification__group{margin-left:var(--el-notification-group-margin-left);margin-right:var(--el-notification-group-margin-right)}.el-notification__title{font-weight:700;font-size:var(--el-notification-title-font-size);line-height:var(--el-notification-icon-size);color:var(--el-notification-title-color);margin:0}.el-notification__content{font-size:var(--el-notification-content-font-size);line-height:24px;margin:6px 0 0;color:var(--el-notification-content-color);text-align:justify}.el-notification__content p{margin:0}.el-notification .el-notification__icon{height:var(--el-notification-icon-size);width:var(--el-notification-icon-size);font-size:var(--el-notification-icon-size)}.el-notification .el-notification__closeBtn{position:absolute;top:18px;right:15px;cursor:pointer;color:var(--el-notification-close-color);font-size:var(--el-notification-close-font-size)}.el-notification .el-notification__closeBtn:hover{color:var(--el-notification-close-hover-color)}.el-notification .el-notification--success{--el-notification-icon-color:var(--el-color-success);color:var(--el-notification-icon-color)}.el-notification .el-notification--info{--el-notification-icon-color:var(--el-color-info);color:var(--el-notification-icon-color)}.el-notification .el-notification--warning{--el-notification-icon-color:var(--el-color-warning);color:var(--el-notification-icon-color)}.el-notification .el-notification--error{--el-notification-icon-color:var(--el-color-error);color:var(--el-notification-icon-color)}.el-notification-fade-enter-from.right{right:0;transform:translate(100%)}.el-notification-fade-enter-from.left{left:0;transform:translate(-100%)}.el-notification-fade-leave-to{opacity:0}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-item-gap:16px;white-space:nowrap;color:var(--el-pagination-text-color);font-size:var(--el-pagination-font-size);font-weight:400;display:flex;align-items:center}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield}.el-pagination .el-select .el-input{width:128px}.el-pagination button{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pagination button *{pointer-events:none}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination button.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pagination button.is-disabled,.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination button:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{display:flex;align-items:center;margin-left:var(--el-pagination-item-gap);font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{text-align:center;box-sizing:border-box}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color)}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);font-size:var(--el-pagination-font-size-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);color:var(--el-pagination-button-color);background:var(--el-pagination-bg-color);padding:0 4px;border:none;border-radius:var(--el-pagination-border-radius);cursor:pointer;text-align:center;box-sizing:border-box}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:0}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager li.is-disabled,.el-pager li:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popconfirm__main{display:flex;align-items:center}.el-popconfirm__icon{margin-right:5px}.el-popconfirm__action{text-align:right;margin-top:8px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 50%,rgba(0,0,0,.1) 50%,rgba(0,0,0,.1) 75%,transparent 75%,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{-webkit-animation:striped-flow 3s linear infinite;animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@-webkit-keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary))}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary)}.el-radio{color:var(--el-radio-text-color);font-weight:var(--el-radio-font-weight);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;outline:0;font-size:var(--el-font-size-base);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:32px;height:32px}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{cursor:not-allowed;border-color:var(--el-border-color-lighter)}.el-radio.is-bordered.el-radio--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{padding:0 11px 0 7px;border-radius:var(--el-border-radius-base)}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{white-space:nowrap;cursor:pointer;outline:0;display:inline-flex;position:relative;vertical-align:middle}.el-radio__input.is-disabled .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner:after{cursor:not-allowed;background-color:var(--el-disabled-bg-color)}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{border-color:var(--el-color-primary);background:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);width:var(--el-radio-input-width);height:var(--el-radio-input-height);background-color:var(--el-radio-input-bg-color);position:relative;cursor:pointer;display:inline-block;box-sizing:border-box}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{width:4px;height:4px;border-radius:var(--el-radio-input-border-radius);background-color:var(--el-color-white);content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in}.el-radio__original{opacity:0;outline:0;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.el-radio__original:focus-visible+.el-radio__inner{outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px;border-radius:var(--el-radio-input-border-radius)}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{width:14px;height:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{width:12px;height:12px}.el-rate{--el-rate-height:20px;--el-rate-font-size:var(--el-font-size-base);--el-rate-icon-size:18px;--el-rate-icon-margin:6px;--el-rate-void-color:var(--el-border-color-darker);--el-rate-fill-color:#f7ba2a;--el-rate-disabled-void-color:var(--el-fill-color);--el-rate-text-color:var(--el-text-color-primary)}.el-rate{display:inline-flex;align-items:center;height:32px}.el-rate:active,.el-rate:focus{outline:0}.el-rate__item{cursor:pointer;display:inline-block;position:relative;font-size:0;vertical-align:middle;color:var(--el-rate-void-color);line-height:normal}.el-rate .el-rate__icon{position:relative;display:inline-block;font-size:var(--el-rate-icon-size);margin-right:var(--el-rate-icon-margin);transition:var(--el-transition-duration)}.el-rate .el-rate__icon.hover{transform:scale(1.15)}.el-rate .el-rate__icon .path2{position:absolute;left:0;top:0}.el-rate .el-rate__icon.is-active{color:var(--el-rate-fill-color)}.el-rate__decimal{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;color:var(--el-rate-fill-color)}.el-rate__decimal--box{position:absolute;top:0;left:0}.el-rate__text{font-size:var(--el-rate-font-size);vertical-align:middle;color:var(--el-rate-text-color)}.el-rate--large{height:40px}.el-rate--small{height:24px}.el-rate--small .el-rate__icon{font-size:14px}.el-rate.is-disabled .el-rate__item{cursor:auto;color:var(--el-rate-disabled-void-color)}.el-result{--el-result-padding:40px 30px;--el-result-icon-font-size:64px;--el-result-title-font-size:20px;--el-result-title-margin-top:20px;--el-result-subtitle-margin-top:10px;--el-result-extra-margin-top:30px}.el-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-result-padding)}.el-result__icon svg{width:var(--el-result-icon-font-size);height:var(--el-result-icon-font-size)}.el-result__title{margin-top:var(--el-result-title-margin-top)}.el-result__title p{margin:0;font-size:var(--el-result-title-font-size);color:var(--el-text-color-primary);line-height:1.3}.el-result__subtitle{margin-top:var(--el-result-subtitle-margin-top)}.el-result__subtitle p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-regular);line-height:1.3}.el-result__extra{margin-top:var(--el-result-extra-margin-top)}.el-result .icon-primary{--el-result-color:var(--el-color-primary);color:var(--el-result-color)}.el-result .icon-success{--el-result-color:var(--el-color-success);color:var(--el-result-color)}.el-result .icon-warning{--el-result-color:var(--el-color-warning);color:var(--el-result-color)}.el-result .icon-danger{--el-result-color:var(--el-color-danger);color:var(--el-result-color)}.el-result .icon-error{--el-result-color:var(--el-color-error);color:var(--el-result-color)}.el-result .icon-info{--el-result-color:var(--el-color-info);color:var(--el-result-color)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled{color:var(--el-text-color-disabled)}.el-select-dropdown__option-item.is-selected:not(.is-multiple).is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown__option-item:hover:not(.hover){background-color:transparent}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-disabled.is-selected{color:var(--el-text-color-disabled)}.el-select-dropdown__list{list-style:none;margin:6px 0!important;padding:0!important;box-sizing:border-box}.el-select-dropdown__option-item{font-size:var(--el-select-font-size);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__option-item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__option-item.is-disabled:hover{background-color:var(--el-bg-color)}.el-select-dropdown__option-item.is-selected{background-color:var(--el-fill-color-light);font-weight:700}.el-select-dropdown__option-item.is-selected:not(.is-multiple){color:var(--el-color-primary)}.el-select-dropdown__option-item.hover{background-color:var(--el-fill-color-light)!important}.el-select-dropdown__option-item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon{position:absolute;right:20px;top:0;height:inherit;font-size:12px}.el-select-dropdown.is-multiple .el-select-dropdown__option-item.is-selected .el-icon svg{height:inherit;vertical-align:middle}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select-v2{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select-v2{display:inline-block;position:relative;vertical-align:middle;font-size:14px}.el-select-v2__wrapper{display:flex;align-items:center;flex-wrap:wrap;position:relative;box-sizing:border-box;cursor:pointer;padding:1px 30px 1px 0;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration)}.el-select-v2__wrapper:hover{border-color:var(--el-text-color-placeholder)}.el-select-v2__wrapper.is-filterable{cursor:text}.el-select-v2__wrapper.is-focused{border-color:var(--el-color-primary)}.el-select-v2__wrapper.is-hovering:not(.is-focused){border-color:var(--el-border-color-hover)}.el-select-v2__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled:hover{border-color:var(--el-select-disabled-border)}.el-select-v2__wrapper.is-disabled.is-focus{border-color:var(--el-input-focus-border-color)}.el-select-v2__wrapper.is-disabled .is-transparent{opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-select-v2__wrapper.is-disabled .el-select-v2__caret,.el-select-v2__wrapper.is-disabled .el-select-v2__combobox-input{cursor:not-allowed}.el-select-v2__wrapper .el-select-v2__input-wrapper{box-sizing:border-box;position:relative;-webkit-margin-start:12px;margin-inline-start:12px;max-width:100%;overflow:hidden}.el-select-v2__wrapper,.el-select-v2__wrapper .el-select-v2__input-wrapper{line-height:32px}.el-select-v2__wrapper .el-select-v2__input-wrapper input{--el-input-inner-height:calc(var(--el-component-size, 32px) - 8px);height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);min-width:4px;width:100%;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:none;margin:2px 0;outline:0;padding:0}.el-select-v2 .el-select-v2__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-v2__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:14px}.el-select-v2__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select-v2__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select-v2__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select-v2__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select-v2--large .el-select-v2__wrapper .el-select-v2__combobox-input{height:32px}.el-select-v2--large .el-select-v2__caret,.el-select-v2--large .el-select-v2__suffix{height:40px}.el-select-v2--large .el-select-v2__placeholder{font-size:14px;line-height:40px}.el-select-v2--small .el-select-v2__wrapper .el-select-v2__combobox-input{height:16px}.el-select-v2--small .el-select-v2__caret,.el-select-v2--small .el-select-v2__suffix{height:24px}.el-select-v2--small .el-select-v2__placeholder{font-size:12px;line-height:24px}.el-select-v2 .el-select-v2__selection>span{display:inline-block}.el-select-v2:hover .el-select-v2__combobox-input{border-color:var(--el-select-border-color-hover)}.el-select-v2 .el-select__selection-text{text-overflow:ellipsis;display:inline-block;overflow-x:hidden;vertical-align:bottom}.el-select-v2 .el-select-v2__combobox-input{padding-right:35px;display:block;color:var(--el-text-color-regular)}.el-select-v2 .el-select-v2__combobox-input:focus{border-color:var(--el-select-input-focus-border-color)}.el-select-v2__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px}.el-select-v2__input.is-small{height:14px}.el-select-v2__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select-v2__close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__suffix{display:inline-flex;position:absolute;right:12px;height:32px;top:50%;transform:translateY(-50%);color:var(--el-input-icon-color,var(--el-text-color-placeholder))}.el-select-v2__suffix .el-input__icon{height:inherit}.el-select-v2__suffix .el-input__icon:not(:first-child){margin-left:8px}.el-select-v2__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotate(180deg);cursor:pointer}.el-select-v2__caret.is-reverse{transform:rotate(0)}.el-select-v2__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(180deg);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select-v2__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select-v2__caret.el-icon{height:inherit}.el-select-v2__caret.el-icon svg{vertical-align:middle}.el-select-v2__selection{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;width:100%}.el-select-v2__input-calculator{left:0;position:absolute;top:0;visibility:hidden;white-space:pre;z-index:999}.el-select-v2__selected-item{line-height:inherit;height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-wrap:wrap}.el-select-v2__placeholder{position:absolute;top:50%;transform:translateY(-50%);-webkit-margin-start:12px;margin-inline-start:12px;width:calc(100% - 52px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color,var(--el-text-color-regular))}.el-select-v2__placeholder.is-transparent{color:var(--el-text-color-placeholder)}.el-select-v2 .el-select-v2__selection .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 0 2px 6px;background-color:var(--el-fill-color)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;color:var(--el-color-white)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select-v2 .el-select-v2__selection .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select-v2.el-select-v2--small .el-select-v2__selection .el-tag{margin:1px 0 1px 6px;height:18px}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select-dropdown__header{padding:10px;border-bottom:1px solid var(--el-border-color-light)}.el-select-dropdown__footer{padding:10px;border-top:1px solid var(--el-border-color-light)}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px}.el-select{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__tags .el-tag:last-child{margin-right:0}.el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__tags.is-disabled{cursor:not-allowed}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.el-select__collapse-tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select__collapse-tags .el-tag:last-child{margin-right:0}.el-select__collapse-tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select__collapse-tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select__collapse-tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select__collapse-tags .el-tag--info{background-color:var(--el-fill-color)}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-skeleton{--el-skeleton-circle-size:var(--el-avatar-size)}.el-skeleton__item{background:var(--el-skeleton-color);display:inline-block;height:16px;border-radius:var(--el-border-radius-base);width:100%}.el-skeleton__circle{border-radius:50%;width:var(--el-skeleton-circle-size);height:var(--el-skeleton-circle-size);line-height:var(--el-skeleton-circle-size)}.el-skeleton__button{height:40px;width:64px;border-radius:4px}.el-skeleton__p{width:100%}.el-skeleton__p.is-last{width:61%}.el-skeleton__p.is-first{width:33%}.el-skeleton__text{width:100%;height:var(--el-font-size-small)}.el-skeleton__caption{height:var(--el-font-size-extra-small)}.el-skeleton__h1{height:var(--el-font-size-extra-large)}.el-skeleton__h3{height:var(--el-font-size-large)}.el-skeleton__h5{height:var(--el-font-size-medium)}.el-skeleton__image{width:unset;display:flex;align-items:center;justify-content:center;border-radius:0}.el-skeleton__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:22%;height:22%}.el-skeleton{--el-skeleton-color:var(--el-fill-color);--el-skeleton-to-color:var(--el-fill-color-darker)}@-webkit-keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes el-skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.el-skeleton{width:100%}.el-skeleton__first-line,.el-skeleton__paragraph{height:16px;margin-top:16px;background:var(--el-skeleton-color)}.el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,var(--el-skeleton-color) 25%,var(--el-skeleton-to-color) 37%,var(--el-skeleton-color) 63%);background-size:400% 100%;-webkit-animation:el-skeleton-loading 1.4s ease infinite;animation:el-skeleton-loading 1.4s ease infinite}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px;white-space:pre}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-space{display:inline-flex;vertical-align:top}.el-space__item{display:flex;flex-wrap:wrap}.el-space__item>*{flex:1}.el-space--vertical{flex-direction:column}.el-time-spinner{width:100%;white-space:nowrap}.el-spinner{display:inline-block;vertical-align:middle}.el-spinner-inner{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;width:50px;height:50px}.el-spinner-inner .path{stroke:var(--el-border-color-lighter);stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}@-webkit-keyframes rotate{to{transform:rotate(360deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.el-step{position:relative;flex-shrink:1}.el-step:last-of-type .el-step__line{display:none}.el-step:last-of-type.is-flex{flex-basis:auto!important;flex-shrink:0;flex-grow:0}.el-step:last-of-type .el-step__description,.el-step:last-of-type .el-step__main{padding-right:0}.el-step__head{position:relative;width:100%}.el-step__head.is-process{color:var(--el-text-color-primary);border-color:var(--el-text-color-primary)}.el-step__head.is-wait{color:var(--el-text-color-placeholder);border-color:var(--el-text-color-placeholder)}.el-step__head.is-success{color:var(--el-color-success);border-color:var(--el-color-success)}.el-step__head.is-error{color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-step__head.is-finish{color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-step__icon{position:relative;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;box-sizing:border-box;background:var(--el-bg-color);transition:.15s ease-out}.el-step__icon.is-text{border-radius:50%;border:2px solid;border-color:inherit}.el-step__icon.is-icon{width:40px}.el-step__icon-inner{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;font-weight:700;line-height:1;color:inherit}.el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:25px;font-weight:400}.el-step__icon-inner.is-status{transform:translateY(1px)}.el-step__line{position:absolute;border-color:inherit;background-color:var(--el-text-color-placeholder)}.el-step__line-inner{display:block;border-width:1px;border-style:solid;border-color:inherit;transition:.15s ease-out;box-sizing:border-box;width:0;height:0}.el-step__main{white-space:normal;text-align:left}.el-step__title{font-size:16px;line-height:38px}.el-step__title.is-process{font-weight:700;color:var(--el-text-color-primary)}.el-step__title.is-wait{color:var(--el-text-color-placeholder)}.el-step__title.is-success{color:var(--el-color-success)}.el-step__title.is-error{color:var(--el-color-danger)}.el-step__title.is-finish{color:var(--el-color-primary)}.el-step__description{padding-right:10%;margin-top:-5px;font-size:12px;line-height:20px;font-weight:400}.el-step__description.is-process{color:var(--el-text-color-primary)}.el-step__description.is-wait{color:var(--el-text-color-placeholder)}.el-step__description.is-success{color:var(--el-color-success)}.el-step__description.is-error{color:var(--el-color-danger)}.el-step__description.is-finish{color:var(--el-color-primary)}.el-step.is-horizontal{display:inline-block}.el-step.is-horizontal .el-step__line{height:2px;top:11px;left:0;right:0}.el-step.is-vertical{display:flex}.el-step.is-vertical .el-step__head{flex-grow:0;width:24px}.el-step.is-vertical .el-step__main{padding-left:10px;flex-grow:1}.el-step.is-vertical .el-step__title{line-height:24px;padding-bottom:8px}.el-step.is-vertical .el-step__line{width:2px;top:0;bottom:0;left:11px}.el-step.is-vertical .el-step__icon.is-icon{width:24px}.el-step.is-center .el-step__head,.el-step.is-center .el-step__main{text-align:center}.el-step.is-center .el-step__description{padding-left:20%;padding-right:20%}.el-step.is-center .el-step__line{left:50%;right:-50%}.el-step.is-simple{display:flex;align-items:center}.el-step.is-simple .el-step__head{width:auto;font-size:0;padding-right:10px}.el-step.is-simple .el-step__icon{background:0 0;width:16px;height:16px;font-size:12px}.el-step.is-simple .el-step__icon-inner[class*=el-icon]:not(.is-status){font-size:18px}.el-step.is-simple .el-step__icon-inner.is-status{transform:scale(.8) translateY(1px)}.el-step.is-simple .el-step__main{position:relative;display:flex;align-items:stretch;flex-grow:1}.el-step.is-simple .el-step__title{font-size:16px;line-height:20px}.el-step.is-simple:not(:last-of-type) .el-step__title{max-width:50%;word-break:break-all}.el-step.is-simple .el-step__arrow{flex-grow:1;display:flex;align-items:center;justify-content:center}.el-step.is-simple .el-step__arrow:after,.el-step.is-simple .el-step__arrow:before{content:"";display:inline-block;position:absolute;height:15px;width:1px;background:var(--el-text-color-placeholder)}.el-step.is-simple .el-step__arrow:before{transform:rotate(-45deg) translateY(-4px);transform-origin:0 0}.el-step.is-simple .el-step__arrow:after{transform:rotate(45deg) translateY(4px);transform-origin:100% 100%}.el-step.is-simple:last-of-type .el-step__arrow{display:none}.el-steps{display:flex}.el-steps--simple{padding:13px 8%;border-radius:4px;background:var(--el-fill-color-light)}.el-steps--horizontal{white-space:nowrap}.el-steps--vertical{height:100%;flex-flow:column}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:0}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}.el-table{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-index:var(--el-index-normal)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:14px;color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper:before{left:0;bottom:0;width:100%;height:1px}.el-table tbody:focus-visible{outline:0}.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell,.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:-webkit-sticky;position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:14px}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:12px}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table td.el-table__cell,.el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border .el-table__inner-wrapper:after,.el-table--border:after,.el-table--border:before,.el-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{top:-1px;left:0;width:1px;height:100%}.el-table--border:after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__body-wrapper,.el-table__footer-wrapper,.el-table__header-wrapper{width:100%}.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right,.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{position:-webkit-sticky!important;position:sticky!important;background:inherit;z-index:calc(var(--el-table-index) + 1)}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch,.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch{position:-webkit-sticky!important;position:sticky!important;z-index:calc(var(--el-table-index) + 1);background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body,.el-table__footer,.el-table__header{table-layout:fixed;border-collapse:separate}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{overflow:hidden;flex-shrink:0}.el-table__body-wrapper .el-table-column--selection>.cell,.el-table__header-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__body-wrapper .el-table-column--selection .el-checkbox,.el-table__header-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:-webkit-sticky;position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{position:-webkit-sticky;position:sticky;bottom:0;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-table-v2{--el-table-border-color:var(--el-border-color-lighter);--el-table-border:1px solid var(--el-table-border-color);--el-table-text-color:var(--el-text-color-regular);--el-table-header-text-color:var(--el-text-color-secondary);--el-table-row-hover-bg-color:var(--el-fill-color-light);--el-table-current-row-bg-color:var(--el-color-primary-light-9);--el-table-header-bg-color:var(--el-bg-color);--el-table-fixed-box-shadow:var(--el-box-shadow-light);--el-table-bg-color:var(--el-fill-color-blank);--el-table-tr-bg-color:var(--el-bg-color);--el-table-expanded-cell-bg-color:var(--el-fill-color-blank);--el-table-fixed-left-column:inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column:inset -10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-index:var(--el-index-normal)}.el-table-v2{font-size:14px}.el-table-v2 *{box-sizing:border-box}.el-table-v2__root{position:relative}.el-table-v2__root:hover .el-table-v2__main .el-virtual-scrollbar{opacity:1}.el-table-v2__main{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0}.el-table-v2__main .el-vl__horizontal,.el-table-v2__main .el-vl__vertical{z-index:2}.el-table-v2__left{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);left:0;box-shadow:2px 0 4px #0000000f}.el-table-v2__left .el-virtual-scrollbar{opacity:0}.el-table-v2__left .el-vl__horizontal,.el-table-v2__left .el-vl__vertical{z-index:-1}.el-table-v2__right{display:flex;flex-direction:column-reverse;position:absolute;overflow:hidden;top:0;background-color:var(--el-bg-color);right:0;box-shadow:-2px 0 4px #0000000f}.el-table-v2__right .el-virtual-scrollbar{opacity:0}.el-table-v2__right .el-vl__horizontal,.el-table-v2__right .el-vl__vertical{z-index:-1}.el-table-v2__header-row,.el-table-v2__row{-webkit-padding-end:var(--el-table-scrollbar-size);padding-inline-end:var(--el-table-scrollbar-size)}.el-table-v2__header-wrapper{overflow:hidden}.el-table-v2__header{position:relative;overflow:hidden}.el-table-v2__footer{position:absolute;left:0;right:0;bottom:0;overflow:hidden}.el-table-v2__empty{position:absolute;left:0}.el-table-v2__overlay{position:absolute;left:0;right:0;top:0;bottom:0;z-index:9999}.el-table-v2__header-row{display:flex;border-bottom:var(--el-table-border)}.el-table-v2__header-cell{display:flex;align-items:center;padding:0 8px;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;background-color:var(--el-table-header-bg-color);color:var(--el-table-header-text-color);font-weight:700}.el-table-v2__header-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__header-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__header-cell.is-sortable{cursor:pointer}.el-table-v2__header-cell:hover .el-icon{display:block}.el-table-v2__sort-icon{transition:opacity,display var(--el-transition-duration);opacity:.6;display:none}.el-table-v2__sort-icon.is-sorting{display:block;opacity:1}.el-table-v2__row{border-bottom:var(--el-table-border);display:flex;align-items:center;transition:background-color var(--el-transition-duration)}.el-table-v2__row.is-hovered,.el-table-v2__row:hover{background-color:var(--el-table-row-hover-bg-color)}.el-table-v2__row-cell{height:100%;overflow:hidden;display:flex;align-items:center;padding:0 8px}.el-table-v2__row-cell.is-align-center{justify-content:center;text-align:center}.el-table-v2__row-cell.is-align-right{justify-content:flex-end;text-align:right}.el-table-v2__expand-icon{margin:0 4px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-table-v2__expand-icon svg{transition:transform var(--el-transition-duration)}.el-table-v2__expand-icon.is-expanded svg{transform:rotate(90deg)}.el-table-v2:not(.is-dynamic) .el-table-v2__cell-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-table-v2.is-dynamic .el-table-v2__row{overflow:hidden;align-items:stretch}.el-table-v2.is-dynamic .el-table-v2__row .el-table-v2__row-cell{word-break:break-all}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary);width:20px;text-align:center}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{position:relative;font-size:12px;width:0;height:14px;overflow:hidden;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2):not(.is-active).is-closable:hover{padding-left:13px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--left>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top .el-tabs--right>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child:not(.is-active).is-closable:hover{padding-right:13px}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-top:-1px;margin-bottom:0}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{top:0;bottom:auto;width:2px;height:auto}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{right:auto;bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{height:100%;width:2px;bottom:auto;top:0}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-right-color:#fff;border-left:none;border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float:right;margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-left-color:#fff;border-right:none;border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px}.el-tag{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary);--el-tag-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3);--el-tag-text-color:var(--el-color-white)}.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-text{--el-text-font-size:var(--el-font-size-base);--el-text-color:var(--el-text-color-regular)}.el-text{align-self:center;margin:0;padding:0;font-size:var(--el-text-font-size);color:var(--el-text-color);word-break:break-all}.el-text.is-truncated{display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.el-text.is-line-clamp{display:-webkit-inline-box;-webkit-box-orient:vertical;overflow:hidden}.el-text--large{--el-text-font-size:var(--el-font-size-medium)}.el-text--default{--el-text-font-size:var(--el-font-size-base)}.el-text--small{--el-text-font-size:var(--el-font-size-extra-small)}.el-text.el-text--primary{--el-text-color:var(--el-color-primary)}.el-text.el-text--success{--el-text-color:var(--el-color-success)}.el-text.el-text--warning{--el-text-color:var(--el-color-warning)}.el-text.el-text--danger{--el-text-color:var(--el-color-danger)}.el-text.el-text--error{--el-text-color:var(--el-color-error)}.el-text.el-text--info{--el-text-color:var(--el-color-info)}.el-text>.el-icon{vertical-align:-2px}.time-select{margin:5px 0;min-width:0}.time-select .el-picker-panel__content{max-height:200px;margin:0}.time-select-item{padding:8px 10px;font-size:14px;line-height:20px}.time-select-item.disabled{color:var(--el-datepicker-border-color);cursor:not-allowed}.time-select-item:hover{background-color:var(--el-fill-color-light);font-weight:700;cursor:pointer}.time-select .time-select-item.selected:not(.disabled){color:var(--el-color-primary);font-weight:700}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light)}.el-timeline{margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-tooltip-v2__content{--el-tooltip-v2-padding:5px 10px;--el-tooltip-v2-border-radius:4px;--el-tooltip-v2-border-color:var(--el-border-color);border-radius:var(--el-tooltip-v2-border-radius);color:var(--el-color-black);background-color:var(--el-color-white);padding:var(--el-tooltip-v2-padding);border:1px solid var(--el-border-color)}.el-tooltip-v2__arrow{position:absolute;color:var(--el-color-white);width:var(--el-tooltip-v2-arrow-width);height:var(--el-tooltip-v2-arrow-height);pointer-events:none;left:var(--el-tooltip-v2-arrow-x);top:var(--el-tooltip-v2-arrow-y)}.el-tooltip-v2__arrow:before{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__arrow:after{content:"";width:0;height:0;border:var(--el-tooltip-v2-arrow-border-width) solid transparent;position:absolute}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow{bottom:0}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:before{border-top-color:var(--el-color-white);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=top] .el-tooltip-v2__arrow:after{border-top-color:var(--el-border-color);border-top-width:var(--el-tooltip-v2-arrow-border-width);border-bottom:0;top:100%;z-index:-1}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow{top:0}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:before{border-bottom-color:var(--el-color-white);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=bottom] .el-tooltip-v2__arrow:after{border-bottom-color:var(--el-border-color);border-bottom-width:var(--el-tooltip-v2-arrow-border-width);border-top:0;bottom:100%;z-index:-1}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow{right:0}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:before{border-left-color:var(--el-color-white);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=left] .el-tooltip-v2__arrow:after{border-left-color:var(--el-border-color);border-left-width:var(--el-tooltip-v2-arrow-border-width);border-right:0;left:100%;z-index:-1}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow{left:0}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:before{border-right-color:var(--el-color-white);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:calc(100% - 1px)}.el-tooltip-v2__content[data-side^=right] .el-tooltip-v2__arrow:after{border-right-color:var(--el-border-color);border-right-width:var(--el-tooltip-v2-arrow-border-width);border-left:0;right:100%;z-index:-1}.el-tooltip-v2__content.is-dark{--el-tooltip-v2-border-color:transparent;background-color:var(--el-color-black);color:var(--el-color-white);border-color:transparent}.el-tooltip-v2__content.is-dark .el-tooltip-v2__arrow{background-color:var(--el-color-black);border-color:transparent}.el-transfer{--el-transfer-border-color:var(--el-border-color-lighter);--el-transfer-border-radius:var(--el-border-radius-base);--el-transfer-panel-width:200px;--el-transfer-panel-header-height:40px;--el-transfer-panel-header-bg-color:var(--el-fill-color-light);--el-transfer-panel-footer-height:40px;--el-transfer-panel-body-height:278px;--el-transfer-item-height:30px;--el-transfer-filter-height:32px}.el-transfer{font-size:var(--el-font-size-base)}.el-transfer__buttons{display:inline-block;vertical-align:middle;padding:0 30px}.el-transfer__button{vertical-align:top}.el-transfer__button:nth-child(2){margin:0 0 0 10px}.el-transfer__button i,.el-transfer__button span{font-size:14px}.el-transfer__button .el-icon+span{margin-left:0}.el-transfer-panel{overflow:hidden;background:var(--el-bg-color-overlay);display:inline-block;text-align:left;vertical-align:middle;width:var(--el-transfer-panel-width);max-height:100%;box-sizing:border-box;position:relative}.el-transfer-panel__body{height:var(--el-transfer-panel-body-height);border-left:1px solid var(--el-transfer-border-color);border-right:1px solid var(--el-transfer-border-color);border-bottom:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius);overflow:hidden}.el-transfer-panel__body.is-with-footer{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.el-transfer-panel__list{margin:0;padding:6px 0;list-style:none;height:var(--el-transfer-panel-body-height);overflow:auto;box-sizing:border-box}.el-transfer-panel__list.is-filterable{height:calc(100% - var(--el-transfer-filter-height) - 30px);padding-top:0}.el-transfer-panel__item{height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding-left:15px;display:block!important}.el-transfer-panel__item+.el-transfer-panel__item{margin-left:0}.el-transfer-panel__item.el-checkbox{color:var(--el-text-color-regular)}.el-transfer-panel__item:hover{color:var(--el-color-primary)}.el-transfer-panel__item.el-checkbox .el-checkbox__label{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;box-sizing:border-box;padding-left:22px;line-height:var(--el-transfer-item-height)}.el-transfer-panel__item .el-checkbox__input{position:absolute;top:8px}.el-transfer-panel__filter{text-align:center;padding:15px;box-sizing:border-box}.el-transfer-panel__filter .el-input__inner{height:var(--el-transfer-filter-height);width:100%;font-size:12px;display:inline-block;box-sizing:border-box;border-radius:calc(var(--el-transfer-filter-height)/ 2)}.el-transfer-panel__filter .el-icon-circle-close{cursor:pointer}.el-transfer-panel .el-transfer-panel__header{display:flex;align-items:center;height:var(--el-transfer-panel-header-height);background:var(--el-transfer-panel-header-bg-color);margin:0;padding-left:15px;border:1px solid var(--el-transfer-border-color);border-top-left-radius:var(--el-transfer-border-radius);border-top-right-radius:var(--el-transfer-border-radius);box-sizing:border-box;color:var(--el-color-black)}.el-transfer-panel .el-transfer-panel__header .el-checkbox{position:relative;display:flex;width:100%;align-items:center}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label{font-size:16px;color:var(--el-text-color-primary);font-weight:400}.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label span{position:absolute;right:15px;top:50%;transform:translate3d(0,-50%,0);color:var(--el-text-color-secondary);font-size:12px;font-weight:400}.el-transfer-panel .el-transfer-panel__footer{height:var(--el-transfer-panel-footer-height);background:var(--el-bg-color-overlay);margin:0;padding:0;border:1px solid var(--el-transfer-border-color);border-bottom-left-radius:var(--el-transfer-border-radius);border-bottom-right-radius:var(--el-transfer-border-radius)}.el-transfer-panel .el-transfer-panel__footer:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-transfer-panel .el-transfer-panel__footer .el-checkbox{padding-left:20px;color:var(--el-text-color-regular)}.el-transfer-panel .el-transfer-panel__empty{margin:0;height:var(--el-transfer-item-height);line-height:var(--el-transfer-item-height);padding:6px 15px 0;color:var(--el-text-color-secondary);text-align:center}.el-transfer-panel .el-checkbox__label{padding-left:8px}.el-transfer-panel .el-checkbox__inner{height:14px;width:14px;border-radius:3px}.el-transfer-panel .el-checkbox__inner:after{height:6px;width:3px;left:4px}.el-tree{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree{position:relative;cursor:default;background:var(--el-fill-color-blank);color:var(--el-tree-text-color);font-size:var(--el-font-size-base)}.el-tree__empty-block{position:relative;min-height:60px;text-align:center;width:100%;height:100%}.el-tree__empty-text{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:var(--el-text-color-secondary);font-size:var(--el-font-size-base)}.el-tree__drop-indicator{position:absolute;left:0;right:0;height:1px;background-color:var(--el-color-primary)}.el-tree-node{white-space:nowrap;outline:0}.el-tree-node:focus>.el-tree-node__content{background-color:var(--el-tree-node-hover-bg-color)}.el-tree-node.is-drop-inner>.el-tree-node__content .el-tree-node__label{background-color:var(--el-color-primary);color:#fff}.el-tree-node__content{--el-checkbox-height:var(--el-tree-node-content-height);display:flex;align-items:center;height:var(--el-tree-node-content-height);cursor:pointer}.el-tree-node__content>.el-tree-node__expand-icon{padding:6px;box-sizing:content-box}.el-tree-node__content>label.el-checkbox{margin-right:8px}.el-tree-node__content:hover{background-color:var(--el-tree-node-hover-bg-color)}.el-tree.is-dragging .el-tree-node__content{cursor:move}.el-tree.is-dragging .el-tree-node__content *{pointer-events:none}.el-tree.is-dragging.is-drop-not-allow .el-tree-node__content{cursor:not-allowed}.el-tree-node__expand-icon{cursor:pointer;color:var(--el-tree-expand-icon-color);font-size:12px;transform:rotate(0);transition:transform var(--el-transition-duration) ease-in-out}.el-tree-node__expand-icon.expanded{transform:rotate(90deg)}.el-tree-node__expand-icon.is-leaf{color:transparent;cursor:default;visibility:hidden}.el-tree-node__expand-icon.is-hidden{visibility:hidden}.el-tree-node__loading-icon{margin-right:8px;font-size:var(--el-font-size-base);color:var(--el-tree-expand-icon-color)}.el-tree-node>.el-tree-node__children{overflow:hidden;background-color:transparent}.el-tree-node.is-expanded>.el-tree-node__children{display:block}.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:var(--el-color-primary-light-9)}.el-tree-select{--el-tree-node-content-height:26px;--el-tree-node-hover-bg-color:var(--el-fill-color-light);--el-tree-text-color:var(--el-text-color-regular);--el-tree-expand-icon-color:var(--el-text-color-placeholder)}.el-tree-select__popper .el-tree-node__expand-icon{margin-left:8px}.el-tree-select__popper .el-tree-node.is-checked>.el-tree-node__content .el-select-dropdown__item.selected:after{content:none}.el-tree-select__popper .el-select-dropdown__item{flex:1;background:0 0!important;padding-left:0;height:20px;line-height:20px}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card>i{font-size:28px;color:var(--el-text-color-secondary)}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:block}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{opacity:0;display:inline-flex}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-vl__wrapper{position:relative}.el-vl__wrapper:hover .el-virtual-scrollbar,.el-vl__wrapper.always-on .el-virtual-scrollbar{opacity:1}.el-vl__window{scrollbar-width:none}.el-vl__window::-webkit-scrollbar{display:none}.el-virtual-scrollbar{opacity:0;transition:opacity .34s ease-out}.el-virtual-scrollbar.always-on{opacity:1}.el-vg__wrapper{position:relative}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-statistic{--el-statistic-title-font-weight:400;--el-statistic-title-font-size:var(--el-font-size-extra-small);--el-statistic-title-color:var(--el-text-color-regular);--el-statistic-content-font-weight:400;--el-statistic-content-font-size:var(--el-font-size-extra-large);--el-statistic-content-color:var(--el-text-color-primary)}.el-statistic__head{font-weight:var(--el-statistic-title-font-weight);font-size:var(--el-statistic-title-font-size);color:var(--el-statistic-title-color);line-height:20px;margin-bottom:4px}.el-statistic__content{font-weight:var(--el-statistic-content-font-weight);font-size:var(--el-statistic-content-font-size);color:var(--el-statistic-content-color)}.el-statistic__value{display:inline-block}.el-statistic__prefix{margin-right:4px;display:inline-block}.el-statistic__suffix{margin-left:4px;display:inline-block}`,fx=e=>{const t={};return e.replace(/:root\s*{([^}]*)}/g,(l,n)=>{n.trim().split(";").forEach(a=>{const[i,c]=a.split(":").map(u=>u.trim());i&&c&&(t[i]=c)})}),e.replace(/var\(--([\w-]+)\)/g,(l,n)=>t[`--${n}`]?t[`--${n}`]:`var(--${n})`).replace(/:root\s*{([^}]*)}/g,"")},yl=globalThis||void 0||self;function pp(e,t){const o=new Set(e.split(","));return t?r=>o.has(r.toLowerCase()):r=>o.has(r)}const vo={},$a=[],jt=()=>{},hx=()=>!1,_c=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fp=e=>e.startsWith("onUpdate:"),Mo=Object.assign,hp=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},vx=Object.prototype.hasOwnProperty,It=(e,t)=>vx.call(e,t),Ge=Array.isArray,Ta=e=>Ni(e)==="[object Map]",wc=e=>Ni(e)==="[object Set]",Bn=e=>Ni(e)==="[object Date]",ut=e=>typeof e=="function",ft=e=>typeof e=="string",Ql=e=>typeof e=="symbol",Ct=e=>e!==null&&typeof e=="object",Bi=e=>(Ct(e)||ut(e))&&ut(e.then)&&ut(e.catch),M2=Object.prototype.toString,Ni=e=>M2.call(e),yc=e=>Ni(e).slice(8,-1),xc=e=>Ni(e)==="[object Object]",vp=e=>ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kc=pp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cc=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},mx=/-(\w)/g,yr=Cc(e=>e.replace(mx,(t,o)=>o?o.toUpperCase():"")),gx=/\B([A-Z])/g,en=Cc(e=>e.replace(gx,"-$1").toLowerCase()),Li=Cc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sc=Cc(e=>e?`on${Li(e)}`:""),tn=(e,t)=>!Object.is(e,t),Ec=(e,t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},mp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bx=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let A2;const O2=()=>A2||(A2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof yl<"u"?yl:{});function Qe(e){if(Ge(e)){const t={};for(let o=0;o{if(o){const r=o.split(wx);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function P(e){let t="";if(ft(e))t=e;else if(Ge(e))for(let o=0;oza(o,t))}const ze=e=>ft(e)?e:e==null?"":Ge(e)||Ct(e)&&(e.toString===M2||!ut(e.toString))?JSON.stringify(e,B2,2):String(e),B2=(e,t)=>t&&t.__v_isRef?B2(e,t.value):Ta(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,l],n)=>(o[gp(r,n)+" =>"]=l,o),{})}:wc(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>gp(o))}:Ql(t)?gp(t):Ct(t)&&!Ge(t)&&!xc(t)?String(t):t,gp=(e,t="")=>{var o;return Ql(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};let mr;class N2{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=mr,!t&&mr&&(this.index=(mr.scopes||(mr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const o=mr;try{return mr=this,t()}finally{mr=o}}}on(){mr=this}off(){mr=this.parent}stop(t){if(this._active){let o,r;for(o=0,r=this.effects.length;o=2))break;ln(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=on,o=Nn;try{return on=!0,Nn=this,this._runnings++,L2(this),this.fn()}finally{R2(this),this._runnings--,Nn=o,on=t}}stop(){var t;this.active&&(L2(this),R2(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ex(e){return e.value}function L2(e){e._trackId++,e._depsLength=0}function R2(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const o=new Map;return o.cleanup=e,o.computed=t,o},Tc=new WeakMap,Ln=Symbol(""),Ep=Symbol("");function rr(e,t,o){if(on&&Nn){let r=Tc.get(e);r||Tc.set(e,r=new Map);let l=r.get(o);l||r.set(o,l=j2(()=>r.delete(o))),F2(Nn,l)}}function xl(e,t,o,r,l,n){const a=Tc.get(e);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(o==="length"&&Ge(e)){const c=Number(r);a.forEach((u,d)=>{(d==="length"||!Ql(d)&&d>=c)&&i.push(u)})}else switch(o!==void 0&&i.push(a.get(o)),t){case"add":Ge(e)?vp(o)&&i.push(a.get("length")):(i.push(a.get(Ln)),Ta(e)&&i.push(a.get(Ep)));break;case"delete":Ge(e)||(i.push(a.get(Ln)),Ta(e)&&i.push(a.get(Ep)));break;case"set":Ta(e)&&i.push(a.get(Ln));break}kp();for(const c of i)c&&D2(c,3);Cp()}function $x(e,t){var o;return(o=Tc.get(e))==null?void 0:o.get(t)}const Tx=pp("__proto__,__v_isRef,__isVue"),K2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ql)),W2=zx();function zx(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...o){const r=Vt(this);for(let n=0,a=this.length;n{e[t]=function(...o){rn(),kp();const r=Vt(this)[t].apply(this,o);return Cp(),ln(),r}}),e}function Mx(e){const t=Vt(this);return rr(t,"has",e),t.hasOwnProperty(e)}class U2{constructor(t=!1,o=!1){this._isReadonly=t,this._shallow=o}get(t,o,r){const l=this._isReadonly,n=this._shallow;if(o==="__v_isReactive")return!l;if(o==="__v_isReadonly")return l;if(o==="__v_isShallow")return n;if(o==="__v_raw")return r===(l?n?jx:em:n?Q2:J2).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ge(t);if(!l){if(a&&It(W2,o))return Reflect.get(W2,o,r);if(o==="hasOwnProperty")return Mx}const i=Reflect.get(t,o,r);return(Ql(o)?K2.has(o):Tx(o))||(l||rr(t,"get",o),n)?i:Wt(i)?a&&vp(o)?i:i.value:Ct(i)?l?Ma(i):Ft(i):i}}class q2 extends U2{constructor(t=!1){super(!1,t)}set(t,o,r,l){let n=t[o];if(!this._shallow){const c=Aa(n);if(!Oa(r)&&!Aa(r)&&(n=Vt(n),r=Vt(r)),!Ge(t)&&Wt(n)&&!Wt(r))return c?!1:(n.value=r,!0)}const a=Ge(t)&&vp(o)?Number(o)e,zc=e=>Reflect.getPrototypeOf(e);function Mc(e,t,o=!1,r=!1){e=e.__v_raw;const l=Vt(e),n=Vt(t);o||(tn(t,n)&&rr(l,"get",t),rr(l,"get",n));const{has:a}=zc(l),i=r?$p:o?Mp:Ri;if(a.call(l,t))return i(e.get(t));if(a.call(l,n))return i(e.get(n));e!==l&&e.get(t)}function Ac(e,t=!1){const o=this.__v_raw,r=Vt(o),l=Vt(e);return t||(tn(e,l)&&rr(r,"has",e),rr(r,"has",l)),e===l?o.has(e):o.has(e)||o.has(l)}function Oc(e,t=!1){return e=e.__v_raw,!t&&rr(Vt(e),"iterate",Ln),Reflect.get(e,"size",e)}function Y2(e){e=Vt(e);const t=Vt(this);return zc(t).has.call(t,e)||(t.add(e),xl(t,"add",e,e)),this}function G2(e,t){t=Vt(t);const o=Vt(this),{has:r,get:l}=zc(o);let n=r.call(o,e);n||(e=Vt(e),n=r.call(o,e));const a=l.call(o,e);return o.set(e,t),n?tn(t,a)&&xl(o,"set",e,t):xl(o,"add",e,t),this}function X2(e){const t=Vt(this),{has:o,get:r}=zc(t);let l=o.call(t,e);l||(e=Vt(e),l=o.call(t,e)),r&&r.call(t,e);const n=t.delete(e);return l&&xl(t,"delete",e,void 0),n}function Z2(){const e=Vt(this),t=e.size!==0,o=e.clear();return t&&xl(e,"clear",void 0,void 0),o}function Ic(e,t){return function(r,l){const n=this,a=n.__v_raw,i=Vt(a),c=t?$p:e?Mp:Ri;return!e&&rr(i,"iterate",Ln),a.forEach((u,d)=>r.call(l,c(u),c(d),n))}}function Pc(e,t,o){return function(...r){const l=this.__v_raw,n=Vt(l),a=Ta(n),i=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=l[e](...r),d=o?$p:t?Mp:Ri;return!t&&rr(n,"iterate",c?Ep:Ln),{next(){const{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:i?[d(p[0]),d(p[1])]:d(p),done:f}},[Symbol.iterator](){return this}}}}function nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bx(){const e={get(n){return Mc(this,n)},get size(){return Oc(this)},has:Ac,add:Y2,set:G2,delete:X2,clear:Z2,forEach:Ic(!1,!1)},t={get(n){return Mc(this,n,!1,!0)},get size(){return Oc(this)},has:Ac,add:Y2,set:G2,delete:X2,clear:Z2,forEach:Ic(!1,!0)},o={get(n){return Mc(this,n,!0)},get size(){return Oc(this,!0)},has(n){return Ac.call(this,n,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:Ic(!0,!1)},r={get(n){return Mc(this,n,!0,!0)},get size(){return Oc(this,!0)},has(n){return Ac.call(this,n,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:Ic(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Pc(n,!1,!1),o[n]=Pc(n,!0,!1),t[n]=Pc(n,!1,!0),r[n]=Pc(n,!0,!0)}),[e,o,t,r]}const[Nx,Lx,Rx,Vx]=Bx();function Tp(e,t){const o=t?e?Vx:Rx:e?Lx:Nx;return(r,l,n)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?r:Reflect.get(It(o,l)&&l in r?o:r,l,n)}const Hx={get:Tp(!1,!1)},Fx={get:Tp(!1,!0)},Dx={get:Tp(!0,!1)},J2=new WeakMap,Q2=new WeakMap,em=new WeakMap,jx=new WeakMap;function Kx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wx(e){return e.__v_skip||!Object.isExtensible(e)?0:Kx(yc(e))}function Ft(e){return Aa(e)?e:zp(e,!1,Ox,Hx,J2)}function tm(e){return zp(e,!1,Px,Fx,Q2)}function Ma(e){return zp(e,!0,Ix,Dx,em)}function zp(e,t,o,r,l){if(!Ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=l.get(e);if(n)return n;const a=Wx(e);if(a===0)return e;const i=new Proxy(e,a===2?r:o);return l.set(e,i),i}function an(e){return Aa(e)?an(e.__v_raw):!!(e&&e.__v_isReactive)}function Aa(e){return!!(e&&e.__v_isReadonly)}function Oa(e){return!!(e&&e.__v_isShallow)}function om(e){return an(e)||Aa(e)}function Vt(e){const t=e&&e.__v_raw;return t?Vt(t):e}function kl(e){return $c(e,"__v_skip",!0),e}const Ri=e=>Ct(e)?Ft(e):e,Mp=e=>Ct(e)?Ma(e):e;class rm{constructor(t,o,r,l){this._setter=o,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new yp(()=>t(this._value),()=>Bc(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=r}get value(){const t=Vt(this);return nm(t),(!t._cacheable||t.effect.dirty)&&tn(t._value,t._value=t.effect.run())&&Bc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function lm(e,t,o=!1){let r,l;const n=ut(e);return n?(r=e,l=jt):(r=e.get,l=e.set),new rm(r,l,n||!l,o)}function nm(e){on&&Nn&&(e=Vt(e),F2(Nn,e.dep||(e.dep=j2(()=>e.dep=void 0,e instanceof rm?e:void 0))))}function Bc(e,t=3,o){e=Vt(e);const r=e.dep;r&&D2(r,t)}function Wt(e){return!!(e&&e.__v_isRef===!0)}function V(e){return am(e,!1)}function Yt(e){return am(e,!0)}function am(e,t){return Wt(e)?e:new Ux(e,t)}class Ux{constructor(t,o){this.__v_isShallow=o,this.dep=void 0,this.__v_isRef=!0,this._rawValue=o?t:Vt(t),this._value=o?t:Ri(t)}get value(){return nm(this),this._value}set value(t){const o=this.__v_isShallow||Oa(t)||Aa(t);t=o?t:Vt(t),tn(t,this._rawValue)&&(this._rawValue=t,this._value=o?t:Ri(t),Bc(this,3))}}function Vi(e){Bc(e,3)}function s(e){return Wt(e)?e.value:e}const qx={get:(e,t,o)=>s(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const l=e[t];return Wt(l)&&!Wt(o)?(l.value=o,!0):Reflect.set(e,t,o,r)}};function im(e){return an(e)?e:new Proxy(e,qx)}function Ao(e){const t=Ge(e)?new Array(e.length):{};for(const o in e)t[o]=sm(e,o);return t}class Yx{constructor(t,o,r){this._object=t,this._key=o,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return $x(Vt(this._object),this._key)}}class Gx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function so(e,t,o){return Wt(e)?e:ut(e)?new Gx(e):Ct(e)&&arguments.length>1?sm(e,t,o):V(e)}function sm(e,t,o){const r=e[t];return Wt(r)?r:new Yx(e,t,o)}const Hi=[];function Aue(e,...t){rn();const o=Hi.length?Hi[Hi.length-1].component:null,r=o&&o.appContext.config.warnHandler,l=Xx();if(r)Cl(r,o,11,[e+t.join(""),o&&o.proxy,l.map(({vnode:n})=>`at <${lg(o,n.type)}>`).join(` `),l]);else{const n=[`[Vue warn]: ${e}`,...t];l.length&&n.push(` -`,...Fx(l)),console.warn(...n)}ln()}function Hx(){let e=Vi[Vi.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Fx(e){const t=[];return e.forEach((o,r)=>{t.push(...r===0?[]:[` -`],...Dx(o))}),t}function Dx({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,l=` at <${Jm(e.component,e.type,r)}`,n=">"+o;return e.props?[l,...jx(e.props),n]:[l+n]}function jx(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(r=>{t.push(...rm(r,e[r]))}),o.length>3&&t.push(" ..."),t}function rm(e,t,o){return ft(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:Kt(t)?(t=rm(e,Vt(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):ut(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Vt(t),o?t:[`${e}=`,t])}function kl(e,t,o,r){let l;try{l=r?e(...r):e()}catch(n){Nc(n,t,o)}return l}function xr(e,t,o,r){if(ut(e)){const n=kl(e,t,o,r);return n&&Pi(n)&&n.catch(a=>{Nc(a,t,o)}),n}const l=[];for(let n=0;n>>1,l=Do[r],n=Fi(l);nZr&&Do.splice(t,1)}function qx(e){Ye(e)?Ia.push(...e):(!Cl||!Cl.includes(e,e.allowRecurse?Rn+1:Rn))&&Ia.push(e),nm()}function am(e,t,o=Hi?Zr+1:0){for(;oFi(o)-Fi(r)),Rn=0;Rne.id==null?1/0:e.id,Yx=(e,t)=>{const o=Fi(e)-Fi(t);if(o===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function sm(e){Tp=!1,Hi=!0,Do.sort(Yx);try{for(Zr=0;Zrft(v)?v.trim():v)),d&&(l=o.map(fp))}let i,c=r[i=Sc(t)]||r[i=Sc(yr(t))];!c&&n&&(c=r[i=Sc(en(t))]),c&&xr(c,e,6,l);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,xr(u,e,6,l)}}function cm(e,t,o=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const n=e.emits;let a={},i=!1;if(!ut(e)){const c=u=>{const p=cm(u,t,!0);p&&(i=!0,Mo(a,p))};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!n&&!i?(Ct(e)&&r.set(e,null),null):(Ye(n)?n.forEach(c=>a[c]=null):Mo(a,n),Ct(e)&&r.set(e,a),a)}function Lc(e,t){return!e||!_c(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,en(t))||Ot(e,t))}let Po=null,um=null;function Rc(e){const t=Po;return Po=e,um=e&&e.type.__scopeId||null,t}function ne(e,t=Po,o){if(!t||e._n)return e;const r=(...l)=>{r._d&&jm(-1);const n=Rc(t);let a;try{a=e(...l)}finally{Rc(n),r._d&&jm(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function uue(){}function Ap(e){const{type:t,vnode:o,proxy:r,withProxy:l,props:n,propsOptions:[a],slots:i,attrs:c,emit:u,render:p,renderCache:d,data:f,setupState:v,ctx:m,inheritAttrs:h}=e;let _,g;const y=Rc(e);try{if(o.shapeFlag&4){const x=l||r,M=x;_=Qr(p.call(M,x,d,n,v,f,m)),g=c}else{const x=t;_=Qr(x.length>1?x(n,{attrs:c,slots:i,emit:u}):x(n,null)),g=t.props?c:Xx(c)}}catch(x){Zi.length=0,Nc(x,e,1),_=oe(Yo)}let w=_;if(g&&h!==!1){const x=Object.keys(g),{shapeFlag:M}=w;x.length&&M&7&&(a&&x.some(up)&&(g=Zx(g,a)),w=Tl(w,g))}return o.dirs&&(w=Tl(w),w.dirs=w.dirs?w.dirs.concat(o.dirs):o.dirs),o.transition&&(w.transition=o.transition),_=w,Rc(y),_}const Xx=e=>{let t;for(const o in e)(o==="class"||o==="style"||_c(o))&&((t||(t={}))[o]=e[o]);return t},Zx=(e,t)=>{const o={};for(const r in e)(!up(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Jx(e,t,o){const{props:r,children:l,component:n}=e,{props:a,children:i,patchFlag:c}=t,u=n.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return r?dm(r,a,u):!!a;if(c&8){const p=t.dynamicProps;for(let d=0;de.__isSuspense;function o5(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):qx(e)}const r5=Symbol.for("v-scx"),l5=()=>Le(r5);function lr(e,t){return Pp(e,null,t)}const Vc={};function Te(e,t,o){return Pp(e,t,o)}function Pp(e,t,{immediate:o,deep:r,flush:l,once:n,onTrack:a,onTrigger:i}=vo){var c;if(t&&n){const M=t;t=(...T)=>{M(...T),x()}}const u=mp()===((c=Io)==null?void 0:c.scope)?Io:null;let p,d=!1,f=!1;if(Kt(e)?(p=()=>e.value,d=Aa(e)):an(e)?(p=Aa(e)||r===!1?()=>Sl(e,1):()=>Sl(e),d=!0):Ye(e)?(f=!0,d=e.some(M=>an(M)||Aa(M)),p=()=>e.map(M=>{if(Kt(M))return M.value;if(an(M))return Sl(M,Aa(M)||r===!1?1:void 0);if(ut(M))return kl(M,u,2)})):ut(e)?t?p=()=>kl(e,u,2):p=()=>{if(!(u&&u.isUnmounted))return v&&v(),xr(e,u,3,[m])}:p=Dt,t&&r){const M=p;p=()=>Sl(M())}let v,m=M=>{v=w.onStop=()=>{kl(M,u,4),v=w.onStop=void 0}},h;if(Xc)if(m=Dt,t?o&&xr(t,u,3,[p(),f?[]:void 0,m]):p(),l==="sync"){const M=l5();h=M.__watcherHandles||(M.__watcherHandles=[])}else return Dt;let _=f?new Array(e.length).fill(Vc):Vc;const g=()=>{if(!(!w.active||!w.dirty))if(t){const M=w.run();(r||d||(f?M.some((T,O)=>tn(T,_[O])):tn(M,_)))&&(v&&v(),xr(t,u,3,[M,_===Vc?void 0:f&&_[0]===Vc?[]:_,m]),_=M)}else w.run()};g.allowRecurse=!!t;let y;l==="sync"?y=g:l==="post"?y=()=>nr(g,u&&u.suspense):(g.pre=!0,u&&(g.id=u.uid),y=()=>Mp(g));const w=new bp(p,Dt,y),x=()=>{w.stop(),u&&u.scope&&dp(u.scope.effects,w)};return t?o?g():_=w.run():l==="post"?nr(w.run.bind(w),u&&u.suspense):w.run(),h&&h.push(x),x}function n5(e,t,o){const r=this.proxy,l=ft(e)?e.includes(".")?hm(r,e):()=>r[e]:e.bind(r,r);let n;ut(t)?n=t:(n=t.handler,o=t);const a=Io;Pa(this);const i=Pp(l,n.bind(r),o);return a?Pa(a):jn(),i}function hm(e,t){const o=t.split(".");return()=>{let r=e;for(let l=0;l0){if(o>=t)return e;o++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Kt(e))Sl(e.value,t,o,r);else if(Ye(e))for(let l=0;l{Sl(l,t,o,r)});else if(xc(e))for(const l in e)Sl(e[l],t,o,r);return e}function ht(e,t){const o=Po;if(o===null)return e;const r=Zc(o)||o.proxy,l=e.dirs||(e.dirs=[]);for(let n=0;n{e.isMounted=!0}),Zt(()=>{e.isUnmounting=!0}),e}const kr=[Function,Array],mm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kr,onEnter:kr,onAfterEnter:kr,onEnterCancelled:kr,onBeforeLeave:kr,onLeave:kr,onAfterLeave:kr,onLeaveCancelled:kr,onBeforeAppear:kr,onAppear:kr,onAfterAppear:kr,onAppearCancelled:kr},a5={name:"BaseTransition",props:mm,setup(e,{slots:t}){const o=_t(),r=vm();let l;return()=>{const n=t.default&&Np(t.default(),!0);if(!n||!n.length)return;let a=n[0];if(n.length>1){for(const h of n)if(h.type!==Yo){a=h;break}}const i=Vt(e),{mode:c}=i;if(r.isLeaving)return Bp(a);const u=bm(a);if(!u)return Bp(a);const p=ji(u,i,r,o);Ki(u,p);const d=o.subTree,f=d&&bm(d);let v=!1;const{getTransitionKey:m}=u.type;if(m){const h=m();l===void 0?l=h:h!==l&&(l=h,v=!0)}if(f&&f.type!==Yo&&(!Dn(u,f)||v)){const h=ji(f,i,r,o);if(Ki(f,h),c==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,o.update.active!==!1&&(o.effect.dirty=!0,o.update())},Bp(a);c==="in-out"&&u.type!==Yo&&(h.delayLeave=(_,g,y)=>{const w=gm(r,f);w[String(f.key)]=f,_[sn]=()=>{g(),_[sn]=void 0,delete p.delayedLeave},p.delayedLeave=y})}return a}}};function gm(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function ji(e,t,o,r){const{appear:l,mode:n,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:d,onLeave:f,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:h,onAppear:_,onAfterAppear:g,onAppearCancelled:y}=t,w=String(e.key),x=gm(o,e),M=(I,F)=>{I&&xr(I,r,9,F)},T=(I,F)=>{const K=F[1];M(I,F),Ye(I)?I.every(R=>R.length<=1)&&K():I.length<=1&&K()},O={mode:n,persisted:a,beforeEnter(I){let F=i;if(!o.isMounted)if(l)F=h||i;else return;I[sn]&&I[sn](!0);const K=x[w];K&&Dn(e,K)&&K.el[sn]&&K.el[sn](),M(F,[I])},enter(I){let F=c,K=u,R=p;if(!o.isMounted)if(l)F=_||c,K=g||u,R=y||p;else return;let D=!1;const j=I[Hc]=Z=>{D||(D=!0,Z?M(R,[I]):M(K,[I]),O.delayedLeave&&O.delayedLeave(),I[Hc]=void 0)};F?T(F,[I,j]):j()},leave(I,F){const K=String(e.key);if(I[Hc]&&I[Hc](!0),o.isUnmounting)return F();M(d,[I]);let R=!1;const D=I[sn]=j=>{R||(R=!0,F(),j?M(m,[I]):M(v,[I]),I[sn]=void 0,x[K]===e&&delete x[K])};x[K]=e,f?T(f,[I,D]):D()},clone(I){return ji(I,t,o,r)}};return O}function Bp(e){if(Fc(e))return e=Tl(e),e.children=null,e}function bm(e){return Fc(e)?e.children?e.children[0]:void 0:e}function Ki(e,t){e.shapeFlag&6&&e.component?Ki(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Np(e,t=!1,o){let r=[],l=0;for(let n=0;n1)for(let n=0;n!!e.type.__asyncLoader,Fc=e=>e.type.__isKeepAlive;function i5(e,t){wm(e,"a",t)}function _m(e,t){wm(e,"da",t)}function wm(e,t,o=Io){const r=e.__wdc||(e.__wdc=()=>{let l=o;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Dc(t,r,o),o){let l=o.parent;for(;l&&l.parent;)Fc(l.parent.vnode)&&s5(r,t,o,l),l=l.parent}}function s5(e,t,o,r){const l=Dc(t,e,r,!0);cn(()=>{dp(r[t],l)},o)}function Dc(e,t,o=Io,r=!1){if(o){const l=o[e]||(o[e]=[]),n=t.__weh||(t.__weh=(...a)=>{if(o.isUnmounted)return;rn(),Pa(o);const i=xr(t,o,e,a);return jn(),ln(),i});return r?l.unshift(n):l.push(n),n}}const El=e=>(t,o=Io)=>(!Xc||e==="sp")&&Dc(e,(...r)=>t(...r),o),jc=El("bm"),vt=El("m"),ym=El("bu"),$l=El("u"),Zt=El("bum"),cn=El("um"),c5=El("sp"),u5=El("rtg"),d5=El("rtc");function p5(e,t=Io){Dc("ec",e,t)}function Tt(e,t,o,r){let l;const n=o&&o[r];if(Ye(e)||ft(e)){l=new Array(e.length);for(let a=0,i=e.length;at(a,i,void 0,n&&n[i]));else{const a=Object.keys(e);l=new Array(a.length);for(let i=0,c=a.length;i{const n=r.fn(...l);return n&&(n.key=r.key),n}:r.fn)}return e}function be(e,t,o={},r,l){if(Po.isCE||Po.parent&&Wi(Po.parent)&&Po.parent.isCE)return t!=="default"&&(o.name=t),oe("slot",o,r&&r());let n=e[t];n&&n._c&&(n._d=!1),b();const a=n&&xm(n(o)),i=de(Ge,{key:o.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!l&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function xm(e){return e.some(t=>Qt(t)?!(t.type===Yo||t.type===Ge&&!xm(t.children)):!0)?e:null}function f5(e,t){const o={};for(const r in e)o[t&&/[A-Z]/.test(r)?`on:${r}`:Sc(r)]=e[r];return o}const Lp=e=>e?Um(e)?Zc(e)||e.proxy:Lp(e.parent):null,Ui=Mo(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Lp(e.parent),$root:e=>Lp(e.root),$emit:e=>e.emit,$options:e=>Hp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Mp(e.update)}),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>n5.bind(e)}),Rp=(e,t)=>e!==vo&&!e.__isScriptSetup&&Ot(e,t),h5={get({_:e},t){const{ctx:o,setupState:r,data:l,props:n,accessCache:a,type:i,appContext:c}=e;let u;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return l[t];case 4:return o[t];case 3:return n[t]}else{if(Rp(r,t))return a[t]=1,r[t];if(l!==vo&&Ot(l,t))return a[t]=2,l[t];if((u=e.propsOptions[0])&&Ot(u,t))return a[t]=3,n[t];if(o!==vo&&Ot(o,t))return a[t]=4,o[t];Vp&&(a[t]=0)}}const p=Ui[t];let d,f;if(p)return t==="$attrs"&&rr(e,"get",t),p(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(o!==vo&&Ot(o,t))return a[t]=4,o[t];if(f=c.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:l,ctx:n}=e;return Rp(l,t)?(l[t]=o,!0):r!==vo&&Ot(r,t)?(r[t]=o,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(n[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:l,propsOptions:n}},a){let i;return!!o[a]||e!==vo&&Ot(e,a)||Rp(t,a)||(i=n[0])&&Ot(i,a)||Ot(r,a)||Ot(Ui,a)||Ot(l.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Ot(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Bo(){return km().slots}function Hn(){return km().attrs}function km(){const e=_t();return e.setupContext||(e.setupContext=Xm(e))}function Cm(e){return Ye(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Vp=!0;function v5(e){const t=Hp(e),o=e.proxy,r=e.ctx;Vp=!1,t.beforeCreate&&Sm(t.beforeCreate,e,"bc");const{data:l,computed:n,methods:a,watch:i,provide:c,inject:u,created:p,beforeMount:d,mounted:f,beforeUpdate:v,updated:m,activated:h,deactivated:_,beforeDestroy:g,beforeUnmount:y,destroyed:w,unmounted:x,render:M,renderTracked:T,renderTriggered:O,errorCaptured:I,serverPrefetch:F,expose:K,inheritAttrs:R,components:D,directives:j,filters:Z}=t;if(u&&m5(u,r,null),a)for(const L in a){const X=a[L];ut(X)&&(r[L]=X.bind(o))}if(l){const L=l.call(o,o);Ct(L)&&(e.data=Ft(L))}if(Vp=!0,n)for(const L in n){const X=n[L],N=ut(X)?X.bind(o,o):ut(X.get)?X.get.bind(o,o):Dt,W=!ut(X)&&ut(X.set)?X.set.bind(o):Dt,re=$({get:N,set:W});Object.defineProperty(r,L,{enumerable:!0,configurable:!0,get:()=>re.value,set:ie=>re.value=ie})}if(i)for(const L in i)Em(i[L],r,o,L);if(c){const L=ut(c)?c.call(o):c;Reflect.ownKeys(L).forEach(X=>{zt(X,L[X])})}p&&Sm(p,e,"c");function J(L,X){Ye(X)?X.forEach(N=>L(N.bind(o))):X&&L(X.bind(o))}if(J(jc,d),J(vt,f),J(ym,v),J($l,m),J(i5,h),J(_m,_),J(p5,I),J(d5,T),J(u5,O),J(Zt,y),J(cn,x),J(c5,F),Ye(K))if(K.length){const L=e.exposed||(e.exposed={});K.forEach(X=>{Object.defineProperty(L,X,{get:()=>o[X],set:N=>o[X]=N})})}else e.exposed||(e.exposed={});M&&e.render===Dt&&(e.render=M),R!=null&&(e.inheritAttrs=R),D&&(e.components=D),j&&(e.directives=j)}function m5(e,t,o=Dt){Ye(e)&&(e=Fp(e));for(const r in e){const l=e[r];let n;Ct(l)?"default"in l?n=Le(l.from||r,l.default,!0):n=Le(l.from||r):n=Le(l),Kt(n)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[r]=n}}function Sm(e,t,o){xr(Ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Em(e,t,o,r){const l=r.includes(".")?hm(o,r):()=>o[r];if(ft(e)){const n=t[e];ut(n)&&Te(l,n)}else if(ut(e))Te(l,e.bind(o));else if(Ct(e))if(Ye(e))e.forEach(n=>Em(n,t,o,r));else{const n=ut(e.handler)?e.handler.bind(o):t[e.handler];ut(n)&&Te(l,n,e)}}function Hp(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:l,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,i=n.get(t);let c;return i?c=i:!l.length&&!o&&!r?c=t:(c={},l.length&&l.forEach(u=>Kc(c,u,a,!0)),Kc(c,t,a)),Ct(t)&&n.set(t,c),c}function Kc(e,t,o,r=!1){const{mixins:l,extends:n}=t;n&&Kc(e,n,o,!0),l&&l.forEach(a=>Kc(e,a,o,!0));for(const a in t)if(!(r&&a==="expose")){const i=g5[a]||o&&o[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const g5={data:$m,props:Tm,emits:Tm,methods:qi,computed:qi,beforeCreate:qo,created:qo,beforeMount:qo,mounted:qo,beforeUpdate:qo,updated:qo,beforeDestroy:qo,beforeUnmount:qo,destroyed:qo,unmounted:qo,activated:qo,deactivated:qo,errorCaptured:qo,serverPrefetch:qo,components:qi,directives:qi,watch:_5,provide:$m,inject:b5};function $m(e,t){return t?e?function(){return Mo(ut(e)?e.call(this,this):e,ut(t)?t.call(this,this):t)}:t:e}function b5(e,t){return qi(Fp(e),Fp(t))}function Fp(e){if(Ye(e)){const t={};for(let o=0;o1)return o&&ut(t)?t.call(r&&r.proxy):t}}function x5(){return!!(Io||Po||Yi)}function k5(e,t,o,r=!1){const l={},n={};$c(n,qc,1),e.propsDefaults=Object.create(null),Mm(e,t,l,n);for(const a in e.propsOptions[0])a in l||(l[a]=void 0);o?e.props=r?l:G2(l):e.type.props?e.props=l:e.props=n,e.attrs=n}function C5(e,t,o,r){const{props:l,attrs:n,vnode:{patchFlag:a}}=e,i=Vt(l),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[f,v]=Am(d,t,!0);Mo(a,f),v&&i.push(...v)};!o&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!n&&!c)return Ct(e)&&r.set(e,Ea),Ea;if(Ye(n))for(let p=0;p-1,v[1]=h<0||m-1||Ot(v,"default"))&&i.push(d)}}}const u=[a,i];return Ct(e)&&r.set(e,u),u}function Im(e){return e[0]!=="$"}function Om(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pm(e,t){return Om(e)===Om(t)}function Bm(e,t){return Ye(t)?t.findIndex(o=>Pm(o,e)):ut(t)&&Pm(t,e)?0:-1}const Nm=e=>e[0]==="_"||e==="$stable",jp=e=>Ye(e)?e.map(Qr):[Qr(e)],S5=(e,t,o)=>{if(t._n)return t;const r=ne((...l)=>jp(t(...l)),o);return r._c=!1,r},Lm=(e,t,o)=>{const r=e._ctx;for(const l in e){if(Nm(l))continue;const n=e[l];if(ut(n))t[l]=S5(l,n,r);else if(n!=null){const a=jp(n);t[l]=()=>a}}},Rm=(e,t)=>{const o=jp(t);e.slots.default=()=>o},E5=(e,t)=>{if(e.vnode.shapeFlag&32){const o=t._;o?(e.slots=Vt(t),$c(t,"_",o)):Lm(t,e.slots={})}else e.slots={},t&&Rm(e,t);$c(e.slots,qc,1)},$5=(e,t,o)=>{const{vnode:r,slots:l}=e;let n=!0,a=vo;if(r.shapeFlag&32){const i=t._;i?o&&i===1?n=!1:(Mo(l,t),!o&&i===1&&delete l._):(n=!t.$stable,Lm(t,l)),a=t}else t&&(Rm(e,t),a={default:1});if(n)for(const i in l)!Nm(i)&&a[i]==null&&delete l[i]};function Kp(e,t,o,r,l=!1){if(Ye(e)){e.forEach((f,v)=>Kp(f,t&&(Ye(t)?t[v]:t),o,r,l));return}if(Wi(r)&&!l)return;const n=r.shapeFlag&4?Zc(r.component)||r.component.proxy:r.el,a=l?null:n,{i,r:c}=e,u=t&&t.r,p=i.refs===vo?i.refs={}:i.refs,d=i.setupState;if(u!=null&&u!==c&&(ft(u)?(p[u]=null,Ot(d,u)&&(d[u]=null)):Kt(u)&&(u.value=null)),ut(c))kl(c,i,12,[a,p]);else{const f=ft(c),v=Kt(c);if(f||v){const m=()=>{if(e.f){const h=f?Ot(d,c)?d[c]:p[c]:c.value;l?Ye(h)&&dp(h,n):Ye(h)?h.includes(n)||h.push(n):f?(p[c]=[n],Ot(d,c)&&(d[c]=p[c])):(c.value=[n],e.k&&(p[e.k]=c.value))}else f?(p[c]=a,Ot(d,c)&&(d[c]=a)):v&&(c.value=a,e.k&&(p[e.k]=a))};a?(m.id=-1,nr(m,o)):m()}}}const nr=o5;function T5(e){return z5(e)}function z5(e,t){const o=E2();o.__VUE__=!0;const{insert:r,remove:l,patchProp:n,createElement:a,createText:i,createComment:c,setText:u,setElementText:p,parentNode:d,nextSibling:f,setScopeId:v=Dt,insertStaticContent:m}=e,h=(te,ce,we,Ae=null,Ie=null,xe=null,Ne=void 0,Se=null,ke=!!ce.dynamicChildren)=>{if(te===ce)return;te&&!Dn(te,ce)&&(Ae=_e(te),ie(te,Ie,xe,!0),te=null),ce.patchFlag===-2&&(ke=!1,ce.dynamicChildren=null);const{type:$e,ref:Pe,shapeFlag:qe}=ce;switch($e){case Oa:_(te,ce,we,Ae);break;case Yo:g(te,ce,we,Ae);break;case Uc:te==null&&y(ce,we,Ae,Ne);break;case Ge:D(te,ce,we,Ae,Ie,xe,Ne,Se,ke);break;default:qe&1?M(te,ce,we,Ae,Ie,xe,Ne,Se,ke):qe&6?j(te,ce,we,Ae,Ie,xe,Ne,Se,ke):(qe&64||qe&128)&&$e.process(te,ce,we,Ae,Ie,xe,Ne,Se,ke,Be)}Pe!=null&&Ie&&Kp(Pe,te&&te.ref,xe,ce||te,!ce)},_=(te,ce,we,Ae)=>{if(te==null)r(ce.el=i(ce.children),we,Ae);else{const Ie=ce.el=te.el;ce.children!==te.children&&u(Ie,ce.children)}},g=(te,ce,we,Ae)=>{te==null?r(ce.el=c(ce.children||""),we,Ae):ce.el=te.el},y=(te,ce,we,Ae)=>{[te.el,te.anchor]=m(te.children,ce,we,Ae,te.el,te.anchor)},w=({el:te,anchor:ce},we,Ae)=>{let Ie;for(;te&&te!==ce;)Ie=f(te),r(te,we,Ae),te=Ie;r(ce,we,Ae)},x=({el:te,anchor:ce})=>{let we;for(;te&&te!==ce;)we=f(te),l(te),te=we;l(ce)},M=(te,ce,we,Ae,Ie,xe,Ne,Se,ke)=>{ce.type==="svg"?Ne="svg":ce.type==="math"&&(Ne="mathml"),te==null?T(ce,we,Ae,Ie,xe,Ne,Se,ke):F(te,ce,Ie,xe,Ne,Se,ke)},T=(te,ce,we,Ae,Ie,xe,Ne,Se)=>{let ke,$e;const{props:Pe,shapeFlag:qe,transition:Ke,dirs:Ee}=te;if(ke=te.el=a(te.type,xe,Pe&&Pe.is,Pe),qe&8?p(ke,te.children):qe&16&&I(te.children,ke,null,Ae,Ie,Wp(te,xe),Ne,Se),Ee&&Vn(te,null,Ae,"created"),O(ke,te,te.scopeId,Ne,Ae),Pe){for(const nt in Pe)nt!=="value"&&!kc(nt)&&n(ke,nt,null,Pe[nt],xe,te.children,Ae,Ie,ge);"value"in Pe&&n(ke,"value",null,Pe.value,xe),($e=Pe.onVnodeBeforeMount)&&el($e,Ae,te)}Ee&&Vn(te,null,Ae,"beforeMount");const We=M5(Ie,Ke);We&&Ke.beforeEnter(ke),r(ke,ce,we),(($e=Pe&&Pe.onVnodeMounted)||We||Ee)&&nr(()=>{$e&&el($e,Ae,te),We&&Ke.enter(ke),Ee&&Vn(te,null,Ae,"mounted")},Ie)},O=(te,ce,we,Ae,Ie)=>{if(we&&v(te,we),Ae)for(let xe=0;xe{for(let $e=ke;$e{const Se=ce.el=te.el;let{patchFlag:ke,dynamicChildren:$e,dirs:Pe}=ce;ke|=te.patchFlag&16;const qe=te.props||vo,Ke=ce.props||vo;let Ee;if(we&&Fn(we,!1),(Ee=Ke.onVnodeBeforeUpdate)&&el(Ee,we,ce,te),Pe&&Vn(ce,te,we,"beforeUpdate"),we&&Fn(we,!0),$e?K(te.dynamicChildren,$e,Se,we,Ae,Wp(ce,Ie),xe):Ne||X(te,ce,Se,null,we,Ae,Wp(ce,Ie),xe,!1),ke>0){if(ke&16)R(Se,ce,qe,Ke,we,Ae,Ie);else if(ke&2&&qe.class!==Ke.class&&n(Se,"class",null,Ke.class,Ie),ke&4&&n(Se,"style",qe.style,Ke.style,Ie),ke&8){const We=ce.dynamicProps;for(let nt=0;nt{Ee&&el(Ee,we,ce,te),Pe&&Vn(ce,te,we,"updated")},Ae)},K=(te,ce,we,Ae,Ie,xe,Ne)=>{for(let Se=0;Se{if(we!==Ae){if(we!==vo)for(const Se in we)!kc(Se)&&!(Se in Ae)&&n(te,Se,we[Se],null,Ne,ce.children,Ie,xe,ge);for(const Se in Ae){if(kc(Se))continue;const ke=Ae[Se],$e=we[Se];ke!==$e&&Se!=="value"&&n(te,Se,$e,ke,Ne,ce.children,Ie,xe,ge)}"value"in Ae&&n(te,"value",we.value,Ae.value,Ne)}},D=(te,ce,we,Ae,Ie,xe,Ne,Se,ke)=>{const $e=ce.el=te?te.el:i(""),Pe=ce.anchor=te?te.anchor:i("");let{patchFlag:qe,dynamicChildren:Ke,slotScopeIds:Ee}=ce;Ee&&(Se=Se?Se.concat(Ee):Ee),te==null?(r($e,we,Ae),r(Pe,we,Ae),I(ce.children,we,Pe,Ie,xe,Ne,Se,ke)):qe>0&&qe&64&&Ke&&te.dynamicChildren?(K(te.dynamicChildren,Ke,we,Ie,xe,Ne,Se),(ce.key!=null||Ie&&ce===Ie.subTree)&&Up(te,ce,!0)):X(te,ce,we,Pe,Ie,xe,Ne,Se,ke)},j=(te,ce,we,Ae,Ie,xe,Ne,Se,ke)=>{ce.slotScopeIds=Se,te==null?ce.shapeFlag&512?Ie.ctx.activate(ce,we,Ae,Ne,ke):Z(ce,we,Ae,Ie,xe,Ne,ke):Q(te,ce,ke)},Z=(te,ce,we,Ae,Ie,xe,Ne)=>{const Se=te.component=H5(te,Ae,Ie);if(Fc(te)&&(Se.ctx.renderer=Be),F5(Se),Se.asyncDep){if(Ie&&Ie.registerDep(Se,J),!te.el){const ke=Se.subTree=oe(Yo);g(null,ke,ce,we)}}else J(Se,te,ce,we,Ie,xe,Ne)},Q=(te,ce,we)=>{const Ae=ce.component=te.component;if(Jx(te,ce,we))if(Ae.asyncDep&&!Ae.asyncResolved){L(Ae,ce,we);return}else Ae.next=ce,Ux(Ae.update),Ae.effect.dirty=!0,Ae.update();else ce.el=te.el,Ae.vnode=ce},J=(te,ce,we,Ae,Ie,xe,Ne)=>{const Se=()=>{if(te.isMounted){let{next:Pe,bu:qe,u:Ke,parent:Ee,vnode:We}=te;{const C=Vm(te);if(C){Pe&&(Pe.el=We.el,L(te,Pe,Ne)),C.asyncDep.then(()=>{te.isUnmounted||Se()});return}}let nt=Pe,dt;Fn(te,!1),Pe?(Pe.el=We.el,L(te,Pe,Ne)):Pe=We,qe&&Ec(qe),(dt=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&el(dt,Ee,Pe,We),Fn(te,!0);const gt=Ap(te),Y=te.subTree;te.subTree=gt,h(Y,gt,d(Y.el),_e(Y),te,Ie,xe),Pe.el=gt.el,nt===null&&Qx(te,gt.el),Ke&&nr(Ke,Ie),(dt=Pe.props&&Pe.props.onVnodeUpdated)&&nr(()=>el(dt,Ee,Pe,We),Ie)}else{let Pe;const{el:qe,props:Ke}=ce,{bm:Ee,m:We,parent:nt}=te,dt=Wi(ce);if(Fn(te,!1),Ee&&Ec(Ee),!dt&&(Pe=Ke&&Ke.onVnodeBeforeMount)&&el(Pe,nt,ce),Fn(te,!0),qe&&Me){const gt=()=>{te.subTree=Ap(te),Me(qe,te.subTree,te,Ie,null)};dt?ce.type.__asyncLoader().then(()=>!te.isUnmounted&>()):gt()}else{const gt=te.subTree=Ap(te);h(null,gt,we,Ae,te,Ie,xe),ce.el=gt.el}if(We&&nr(We,Ie),!dt&&(Pe=Ke&&Ke.onVnodeMounted)){const gt=ce;nr(()=>el(Pe,nt,gt),Ie)}(ce.shapeFlag&256||nt&&Wi(nt.vnode)&&nt.vnode.shapeFlag&256)&&te.a&&nr(te.a,Ie),te.isMounted=!0,ce=we=Ae=null}},ke=te.effect=new bp(Se,Dt,()=>Mp($e),te.scope),$e=te.update=()=>{ke.dirty&&ke.run()};$e.id=te.uid,Fn(te,!0),$e()},L=(te,ce,we)=>{ce.component=te;const Ae=te.vnode.props;te.vnode=ce,te.next=null,C5(te,ce.props,Ae,we),$5(te,ce.children,we),rn(),am(te),ln()},X=(te,ce,we,Ae,Ie,xe,Ne,Se,ke=!1)=>{const $e=te&&te.children,Pe=te?te.shapeFlag:0,qe=ce.children,{patchFlag:Ke,shapeFlag:Ee}=ce;if(Ke>0){if(Ke&128){W($e,qe,we,Ae,Ie,xe,Ne,Se,ke);return}else if(Ke&256){N($e,qe,we,Ae,Ie,xe,Ne,Se,ke);return}}Ee&8?(Pe&16&&ge($e,Ie,xe),qe!==$e&&p(we,qe)):Pe&16?Ee&16?W($e,qe,we,Ae,Ie,xe,Ne,Se,ke):ge($e,Ie,xe,!0):(Pe&8&&p(we,""),Ee&16&&I(qe,we,Ae,Ie,xe,Ne,Se,ke))},N=(te,ce,we,Ae,Ie,xe,Ne,Se,ke)=>{te=te||Ea,ce=ce||Ea;const $e=te.length,Pe=ce.length,qe=Math.min($e,Pe);let Ke;for(Ke=0;KePe?ge(te,Ie,xe,!0,!1,qe):I(ce,we,Ae,Ie,xe,Ne,Se,ke,qe)},W=(te,ce,we,Ae,Ie,xe,Ne,Se,ke)=>{let $e=0;const Pe=ce.length;let qe=te.length-1,Ke=Pe-1;for(;$e<=qe&&$e<=Ke;){const Ee=te[$e],We=ce[$e]=ke?un(ce[$e]):Qr(ce[$e]);if(Dn(Ee,We))h(Ee,We,we,null,Ie,xe,Ne,Se,ke);else break;$e++}for(;$e<=qe&&$e<=Ke;){const Ee=te[qe],We=ce[Ke]=ke?un(ce[Ke]):Qr(ce[Ke]);if(Dn(Ee,We))h(Ee,We,we,null,Ie,xe,Ne,Se,ke);else break;qe--,Ke--}if($e>qe){if($e<=Ke){const Ee=Ke+1,We=EeKe)for(;$e<=qe;)ie(te[$e],Ie,xe,!0),$e++;else{const Ee=$e,We=$e,nt=new Map;for($e=We;$e<=Ke;$e++){const U=ce[$e]=ke?un(ce[$e]):Qr(ce[$e]);U.key!=null&&nt.set(U.key,$e)}let dt,gt=0;const Y=Ke-We+1;let C=!1,S=0;const H=new Array(Y);for($e=0;$e=Y){ie(U,Ie,xe,!0);continue}let he;if(U.key!=null)he=nt.get(U.key);else for(dt=We;dt<=Ke;dt++)if(H[dt-We]===0&&Dn(U,ce[dt])){he=dt;break}he===void 0?ie(U,Ie,xe,!0):(H[he-We]=$e+1,he>=S?S=he:C=!0,h(U,ce[he],we,null,Ie,xe,Ne,Se,ke),gt++)}const ee=C?A5(H):Ea;for(dt=ee.length-1,$e=Y-1;$e>=0;$e--){const U=We+$e,he=ce[U],Ue=U+1{const{el:xe,type:Ne,transition:Se,children:ke,shapeFlag:$e}=te;if($e&6){re(te.component.subTree,ce,we,Ae);return}if($e&128){te.suspense.move(ce,we,Ae);return}if($e&64){Ne.move(te,ce,we,Be);return}if(Ne===Ge){r(xe,ce,we);for(let qe=0;qeSe.enter(xe),Ie);else{const{leave:qe,delayLeave:Ke,afterLeave:Ee}=Se,We=()=>r(xe,ce,we),nt=()=>{qe(xe,()=>{We(),Ee&&Ee()})};Ke?Ke(xe,We,nt):nt()}else r(xe,ce,we)},ie=(te,ce,we,Ae=!1,Ie=!1)=>{const{type:xe,props:Ne,ref:Se,children:ke,dynamicChildren:$e,shapeFlag:Pe,patchFlag:qe,dirs:Ke}=te;if(Se!=null&&Kp(Se,null,we,te,!0),Pe&256){ce.ctx.deactivate(te);return}const Ee=Pe&1&&Ke,We=!Wi(te);let nt;if(We&&(nt=Ne&&Ne.onVnodeBeforeUnmount)&&el(nt,ce,te),Pe&6)le(te.component,we,Ae);else{if(Pe&128){te.suspense.unmount(we,Ae);return}Ee&&Vn(te,null,ce,"beforeUnmount"),Pe&64?te.type.remove(te,ce,we,Ie,Be,Ae):$e&&(xe!==Ge||qe>0&&qe&64)?ge($e,ce,we,!1,!0):(xe===Ge&&qe&384||!Ie&&Pe&16)&&ge(ke,ce,we),Ae&&se(te)}(We&&(nt=Ne&&Ne.onVnodeUnmounted)||Ee)&&nr(()=>{nt&&el(nt,ce,te),Ee&&Vn(te,null,ce,"unmounted")},we)},se=te=>{const{type:ce,el:we,anchor:Ae,transition:Ie}=te;if(ce===Ge){ve(we,Ae);return}if(ce===Uc){x(te);return}const xe=()=>{l(we),Ie&&!Ie.persisted&&Ie.afterLeave&&Ie.afterLeave()};if(te.shapeFlag&1&&Ie&&!Ie.persisted){const{leave:Ne,delayLeave:Se}=Ie,ke=()=>Ne(we,xe);Se?Se(te.el,xe,ke):ke()}else xe()},ve=(te,ce)=>{let we;for(;te!==ce;)we=f(te),l(te),te=we;l(ce)},le=(te,ce,we)=>{const{bum:Ae,scope:Ie,update:xe,subTree:Ne,um:Se}=te;Ae&&Ec(Ae),Ie.stop(),xe&&(xe.active=!1,ie(Ne,te,ce,we)),Se&&nr(Se,ce),nr(()=>{te.isUnmounted=!0},ce),ce&&ce.pendingBranch&&!ce.isUnmounted&&te.asyncDep&&!te.asyncResolved&&te.suspenseId===ce.pendingId&&(ce.deps--,ce.deps===0&&ce.resolve())},ge=(te,ce,we,Ae=!1,Ie=!1,xe=0)=>{for(let Ne=xe;Nete.shapeFlag&6?_e(te.component.subTree):te.shapeFlag&128?te.suspense.next():f(te.anchor||te.el),me=(te,ce,we)=>{te==null?ce._vnode&&ie(ce._vnode,null,null,!0):h(ce._vnode||null,te,ce,null,null,null,we),am(),im(),ce._vnode=te},Be={p:h,um:ie,m:re,r:se,mt:Z,mc:I,pc:X,pbc:K,n:_e,o:e};let ye,Me;return t&&([ye,Me]=t(Be)),{render:me,hydrate:ye,createApp:y5(me,ye)}}function Wp({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Fn({effect:e,update:t},o){e.allowRecurse=t.allowRecurse=o}function M5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Up(e,t,o=!1){const r=e.children,l=t.children;if(Ye(r)&&Ye(l))for(let n=0;n>1,e[o[i]]0&&(t[r]=o[n-1]),o[n]=r)}}for(n=o.length,a=o[n-1];n-- >0;)o[n]=a,a=t[a];return o}function Vm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vm(t)}const I5=e=>e.__isTeleport,Gi=e=>e&&(e.disabled||e.disabled===""),Hm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Fm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qp=(e,t)=>{const o=e&&e.to;return ft(o)?t?t(o):null:o},O5={name:"Teleport",__isTeleport:!0,process(e,t,o,r,l,n,a,i,c,u){const{mc:p,pc:d,pbc:f,o:{insert:v,querySelector:m,createText:h,createComment:_}}=u,g=Gi(t.props);let{shapeFlag:y,children:w,dynamicChildren:x}=t;if(e==null){const M=t.el=h(""),T=t.anchor=h("");v(M,o,r),v(T,o,r);const O=t.target=qp(t.props,m),I=t.targetAnchor=h("");O&&(v(I,O),a==="svg"||Hm(O)?a="svg":(a==="mathml"||Fm(O))&&(a="mathml"));const F=(K,R)=>{y&16&&p(w,K,R,l,n,a,i,c)};g?F(o,T):O&&F(O,I)}else{t.el=e.el;const M=t.anchor=e.anchor,T=t.target=e.target,O=t.targetAnchor=e.targetAnchor,I=Gi(e.props),F=I?o:T,K=I?M:O;if(a==="svg"||Hm(T)?a="svg":(a==="mathml"||Fm(T))&&(a="mathml"),x?(f(e.dynamicChildren,x,F,l,n,a,i),Up(e,t,!0)):c||d(e,t,F,K,l,n,a,i,!1),g)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wc(t,o,M,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=qp(t.props,m);R&&Wc(t,R,null,u,0)}else I&&Wc(t,T,O,u,1)}Dm(t)},remove(e,t,o,r,{um:l,o:{remove:n}},a){const{shapeFlag:i,children:c,anchor:u,targetAnchor:p,target:d,props:f}=e;if(d&&n(p),a&&n(u),i&16){const v=a||!Gi(f);for(let m=0;m0?Vr||Ea:null,B5(),Ji>0&&Vr&&Vr.push(e),e}function z(e,t,o,r,l,n){return Km(E(e,t,o,r,l,n,!0))}function de(e,t,o,r,l){return Km(oe(e,t,o,r,l,!0))}function Qt(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const qc="__vInternal",Wm=({key:e})=>e??null,Yc=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||Kt(e)||ut(e)?{i:Po,r:e,k:t,f:!!o}:e:null);function E(e,t=null,o=null,r=0,l=null,n=e===Ge?0:1,a=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wm(t),ref:t&&Yc(t),scopeId:um,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Po};return i?(Yp(c,o),n&128&&e.normalize(c)):o&&(c.shapeFlag|=ft(o)?8:16),Ji>0&&!a&&Vr&&(c.patchFlag>0||n&6)&&c.patchFlag!==32&&Vr.push(c),c}const oe=N5;function N5(e,t=null,o=null,r=0,l=null,n=!1){if((!e||e===pm)&&(e=Yo),Qt(e)){const i=Tl(e,t,!0);return o&&Yp(i,o),Ji>0&&!n&&Vr&&(i.shapeFlag&6?Vr[Vr.indexOf(e)]=i:Vr.push(i)),i.patchFlag|=-2,i}if(U5(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:i,style:c}=t;i&&!ft(i)&&(t.class=P(i)),Ct(c)&&(X2(c)&&!Ye(c)&&(c=Mo({},c)),t.style=Qe(c))}const a=ft(e)?1:t5(e)?128:I5(e)?64:Ct(e)?4:ut(e)?2:0;return E(e,t,o,r,l,a,n,!0)}function Gc(e){return e?X2(e)||qc in e?Mo({},e):e:null}function Tl(e,t,o=!1){const{props:r,ref:l,patchFlag:n,children:a}=e,i=t?Et(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Wm(i),ref:t&&t.ref?o&&l?Ye(l)?l.concat(Yc(t)):[l,Yc(t)]:Yc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ge?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tl(e.ssContent),ssFallback:e.ssFallback&&Tl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function $t(e=" ",t=0){return oe(Oa,null,e,t)}function L5(e,t){const o=oe(Uc,null,e);return o.staticCount=t,o}function ue(e="",t=!1){return t?(b(),de(Yo,null,e)):oe(Yo,null,e)}function Qr(e){return e==null||typeof e=="boolean"?oe(Yo):Ye(e)?oe(Ge,null,e.slice()):typeof e=="object"?un(e):oe(Oa,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tl(e)}function Yp(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ye(t))o=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),Yp(e,l()),l._c&&(l._d=!0));return}else{o=32;const l=t._;!l&&!(qc in t)?t._ctx=Po:l===3&&Po&&(Po.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ut(t)?(t={default:t,_ctx:Po},o=32):(t=String(t),r&64?(o=16,t=[$t(t)]):o=8);e.children=t,e.shapeFlag|=o}function Et(...e){const t={};for(let o=0;oIo||Po;let Gp,Xp;{const e=E2(),t=(o,r)=>{let l;return(l=e[o])||(l=e[o]=[]),l.push(r),n=>{l.length>1?l.forEach(a=>a(n)):l[0](n)}};Gp=t("__VUE_INSTANCE_SETTERS__",o=>Io=o),Xp=t("__VUE_SSR_SETTERS__",o=>Xc=o)}const Pa=e=>{Gp(e),e.scope.on()},jn=()=>{Io&&Io.scope.off(),Gp(null)};function Um(e){return e.vnode.shapeFlag&4}let Xc=!1;function F5(e,t=!1){t&&Xp(t);const{props:o,children:r}=e.vnode,l=Um(e);k5(e,o,l,t),E5(e,r);const n=l?D5(e,t):void 0;return t&&Xp(!1),n}function D5(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=xl(new Proxy(e.ctx,h5));const{setup:r}=o;if(r){const l=e.setupContext=r.length>1?Xm(e):null;Pa(e),rn();const n=kl(r,e,0,[e.props,l]);if(ln(),jn(),Pi(n)){if(n.then(jn,jn),t)return n.then(a=>{qm(e,a,t)}).catch(a=>{Nc(a,e,0)});e.asyncDep=n}else qm(e,n,t)}else Gm(e,t)}function qm(e,t,o){ut(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ct(t)&&(e.setupState=tm(t)),Gm(e,o)}let Ym;function Gm(e,t,o){const r=e.type;if(!e.render){if(!t&&Ym&&!r.render){const l=r.template||Hp(e).template;if(l){const{isCustomElement:n,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:c}=r,u=Mo(Mo({isCustomElement:n,delimiters:i},a),c);r.render=Ym(l,u)}}e.render=r.render||Dt}{Pa(e),rn();try{v5(e)}finally{ln(),jn()}}}function j5(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,o){return rr(e,"get","$attrs"),t[o]}}))}function Xm(e){const t=o=>{e.exposed=o||{}};return{get attrs(){return j5(e)},slots:e.slots,emit:e.emit,expose:t}}function Zc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tm(xl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ui)return Ui[o](e)},has(t,o){return o in t||o in Ui}}))}const K5=/(?:^|[-_])(\w)/g,W5=e=>e.replace(K5,t=>t.toUpperCase()).replace(/[-_]/g,"");function Zm(e,t=!0){return ut(e)?e.displayName||e.name:e.name||t&&e.__name}function Jm(e,t,o=!1){let r=Zm(t);if(!r&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(r=l[1])}if(!r&&e&&e.parent){const l=n=>{for(const a in n)if(n[a]===t)return a};r=l(e.components||e.parent.type.components)||l(e.appContext.components)}return r?W5(r):o?"App":"Anonymous"}function U5(e){return ut(e)&&"__vccOpts"in e}const $=(e,t)=>J2(e,t,Xc);function rt(e,t,o){const r=arguments.length;return r===2?Ct(t)&&!Ye(t)?Qt(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Qt(o)&&(o=[o]),oe(e,t,o))}const q5="3.4.3",Y5=Dt,G5="http://www.w3.org/2000/svg",X5="http://www.w3.org/1998/Math/MathML",dn=typeof document<"u"?document:null,Qm=dn&&dn.createElement("template"),Z5={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const l=t==="svg"?dn.createElementNS(G5,e):t==="mathml"?dn.createElementNS(X5,e):dn.createElement(e,o?{is:o}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>dn.createTextNode(e),createComment:e=>dn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,l,n){const a=o?o.previousSibling:t.lastChild;if(l&&(l===n||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),o),!(l===n||!(l=l.nextSibling)););else{Qm.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const i=Qm.content;if(r==="svg"||r==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},pn="transition",Qi="animation",Ba=Symbol("_vtc"),_o=(e,{slots:t})=>rt(a5,og(e),t);_o.displayName="Transition";const eg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},J5=_o.props=Mo({},mm,eg),Kn=(e,t=[])=>{Ye(e)?e.forEach(o=>o(...t)):e&&e(...t)},tg=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function og(e){const t={};for(const D in e)D in eg||(t[D]=e[D]);if(e.css===!1)return t;const{name:o="v",type:r,duration:l,enterFromClass:n=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:i=`${o}-enter-to`,appearFromClass:c=n,appearActiveClass:u=a,appearToClass:p=i,leaveFromClass:d=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:v=`${o}-leave-to`}=e,m=Q5(l),h=m&&m[0],_=m&&m[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:w,onLeave:x,onLeaveCancelled:M,onBeforeAppear:T=g,onAppear:O=y,onAppearCancelled:I=w}=t,F=(D,j,Z)=>{fn(D,j?p:i),fn(D,j?u:a),Z&&Z()},K=(D,j)=>{D._isLeaving=!1,fn(D,d),fn(D,v),fn(D,f),j&&j()},R=D=>(j,Z)=>{const Q=D?O:y,J=()=>F(j,D,Z);Kn(Q,[j,J]),rg(()=>{fn(j,D?c:n),zl(j,D?p:i),tg(Q)||lg(j,r,h,J)})};return Mo(t,{onBeforeEnter(D){Kn(g,[D]),zl(D,n),zl(D,a)},onBeforeAppear(D){Kn(T,[D]),zl(D,c),zl(D,u)},onEnter:R(!1),onAppear:R(!0),onLeave(D,j){D._isLeaving=!0;const Z=()=>K(D,j);zl(D,d),sg(),zl(D,f),rg(()=>{D._isLeaving&&(fn(D,d),zl(D,v),tg(x)||lg(D,r,_,Z))}),Kn(x,[D,Z])},onEnterCancelled(D){F(D,!1),Kn(w,[D])},onAppearCancelled(D){F(D,!0),Kn(I,[D])},onLeaveCancelled(D){K(D),Kn(M,[D])}})}function Q5(e){if(e==null)return null;if(Ct(e))return[Zp(e.enter),Zp(e.leave)];{const t=Zp(e);return[t,t]}}function Zp(e){return sx(e)}function zl(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[Ba]||(e[Ba]=new Set)).add(t)}function fn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[Ba];o&&(o.delete(t),o.size||(e[Ba]=void 0))}function rg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ek=0;function lg(e,t,o,r){const l=e._endId=++ek,n=()=>{l===e._endId&&r()};if(o)return setTimeout(n,o);const{type:a,timeout:i,propCount:c}=ng(e,t);if(!a)return r();const u=a+"end";let p=0;const d=()=>{e.removeEventListener(u,f),n()},f=v=>{v.target===e&&++p>=c&&d()};setTimeout(()=>{p(o[m]||"").split(", "),l=r(`${pn}Delay`),n=r(`${pn}Duration`),a=ag(l,n),i=r(`${Qi}Delay`),c=r(`${Qi}Duration`),u=ag(i,c);let p=null,d=0,f=0;t===pn?a>0&&(p=pn,d=a,f=n.length):t===Qi?u>0&&(p=Qi,d=u,f=c.length):(d=Math.max(a,u),p=d>0?a>u?pn:Qi:null,f=p?p===pn?n.length:c.length:0);const v=p===pn&&/\b(transform|all)(,|$)/.test(r(`${pn}Property`).toString());return{type:p,timeout:d,propCount:f,hasTransform:v}}function ag(e,t){for(;e.lengthig(o)+ig(e[r])))}function ig(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sg(){return document.body.offsetHeight}function tk(e,t,o){const r=e[Ba];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const Jp=Symbol("_vod"),Pt={beforeMount(e,{value:t},{transition:o}){e[Jp]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):es(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),es(e,!0),r.enter(e)):r.leave(e,()=>{es(e,!1)}):es(e,t))},beforeUnmount(e,{value:t}){es(e,t)}};function es(e,t){e.style.display=t?e[Jp]:"none"}const ok=Symbol("");function rk(e,t,o){const r=e.style,l=ft(o);if(o&&!l){if(t&&!ft(t))for(const n in t)o[n]==null&&Qp(r,n,"");for(const n in o)Qp(r,n,o[n])}else{const n=r.display;if(l){if(t!==o){const a=r[ok];a&&(o+=";"+a),r.cssText=o}}else t&&e.removeAttribute("style");Jp in e&&(r.display=n)}}const cg=/\s*!important$/;function Qp(e,t,o){if(Ye(o))o.forEach(r=>Qp(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const r=lk(e,t);cg.test(o)?e.setProperty(en(r),o.replace(cg,""),"important"):e[r]=o}}const ug=["Webkit","Moz","ms"],ef={};function lk(e,t){const o=ef[t];if(o)return o;let r=yr(t);if(r!=="filter"&&r in e)return ef[t]=r;r=Ni(r);for(let l=0;ltf||(uk.then(()=>tf=0),tf=Date.now());function pk(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;xr(fk(r,o.value),t,5,[r])};return o.value=e,o.attached=dk(),o}function fk(e,t){if(Ye(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const hg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hk=(e,t,o,r,l,n,a,i,c)=>{const u=l==="svg";t==="class"?tk(e,r,u):t==="style"?rk(e,o,r):_c(t)?up(t)||sk(e,t,o,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vk(e,t,r,u))?ak(e,t,r,n,a,i,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nk(e,t,r,u))};function vk(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&hg(t)&&ut(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return hg(t)&&ft(o)?!1:t in e}const vg=new WeakMap,mg=new WeakMap,Jc=Symbol("_moveCb"),gg=Symbol("_enterCb"),bg={name:"TransitionGroup",props:Mo({},J5,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=_t(),r=vm();let l,n;return $l(()=>{if(!l.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!wk(l[0].el,o.vnode.el,a))return;l.forEach(gk),l.forEach(bk);const i=l.filter(_k);sg(),i.forEach(c=>{const u=c.el,p=u.style;zl(u,a),p.transform=p.webkitTransform=p.transitionDuration="";const d=u[Jc]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[Jc]=null,fn(u,a))};u.addEventListener("transitionend",d)})}),()=>{const a=Vt(e),i=og(a);let c=a.tag||Ge;l=n,n=t.default?Np(t.default()):[];for(let u=0;udelete e.mode;bg.props;const _g=bg;function gk(e){const t=e.el;t[Jc]&&t[Jc](),t[gg]&&t[gg]()}function bk(e){mg.set(e,e.el.getBoundingClientRect())}function _k(e){const t=vg.get(e),o=mg.get(e),r=t.left-o.left,l=t.top-o.top;if(r||l){const n=e.el.style;return n.transform=n.webkitTransform=`translate(${r}px,${l}px)`,n.transitionDuration="0s",e}}function wk(e,t,o){const r=e.cloneNode(),l=e[Ba];l&&l.forEach(i=>{i.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),o.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(r);const{hasTransform:a}=ng(r);return n.removeChild(r),a}const Na=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?o=>Ec(t,o):t};function yk(e){e.target.composing=!0}function wg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ml=Symbol("_assign"),of={created(e,{modifiers:{lazy:t,trim:o,number:r}},l){e[Ml]=Na(l);const n=r||l.props&&l.props.type==="number";hn(e,t?"change":"input",a=>{if(a.target.composing)return;let i=e.value;o&&(i=i.trim()),n&&(i=fp(i)),e[Ml](i)}),o&&hn(e,"change",()=>{e.value=e.value.trim()}),t||(hn(e,"compositionstart",yk),hn(e,"compositionend",wg),hn(e,"change",wg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:o,trim:r,number:l}},n){if(e[Ml]=Na(n),e.composing)return;const a=l||e.type==="number"?fp(e.value):e.value,i=t??"";a!==i&&(document.activeElement===e&&e.type!=="range"&&(o||r&&e.value.trim()===i)||(e.value=i))}},Qc={deep:!0,created(e,t,o){e[Ml]=Na(o),hn(e,"change",()=>{const r=e._modelValue,l=kg(e),n=e.checked,a=e[Ml];if(Ye(r)){const i=T2(r,l),c=i!==-1;if(n&&!c)a(r.concat(l));else if(!n&&c){const u=[...r];u.splice(i,1),a(u)}}else if(wc(r)){const i=new Set(r);n?i.add(l):i.delete(l),a(i)}else a(Cg(e,n))})},mounted:yg,beforeUpdate(e,t,o){e[Ml]=Na(o),yg(e,t,o)}};function yg(e,{value:t,oldValue:o},r){e._modelValue=t,Ye(t)?e.checked=T2(t,r.props.value)>-1:wc(t)?e.checked=t.has(r.props.value):t!==o&&(e.checked=Ta(t,Cg(e,!0)))}const xg={created(e,{value:t},o){e.checked=Ta(t,o.props.value),e[Ml]=Na(o),hn(e,"change",()=>{e[Ml](kg(e))})},beforeUpdate(e,{value:t,oldValue:o},r){e[Ml]=Na(r),t!==o&&(e.checked=Ta(t,r.props.value))}};function kg(e){return"_value"in e?e._value:e.value}function Cg(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const xk=["ctrl","shift","alt","meta"],kk={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xk.some(o=>e[`${o}Key`]&&!t.includes(o))},it=(e,t)=>{const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=(l,...n)=>{for(let a=0;a{const o=e._withKeys||(e._withKeys={}),r=t.join(".");return o[r]||(o[r]=l=>{if(!("key"in l))return;const n=en(l.key);if(t.some(a=>a===n||Ck[a]===n))return e(l)})},Sk=Mo({patchProp:hk},Z5);let Sg;function Eg(){return Sg||(Sg=T5(Sk))}const La=(...e)=>{Eg().render(...e)},$g=(...e)=>{const t=Eg().createApp(...e),{mount:o}=t;return t.mount=r=>{const l=$k(r);if(!l)return;const n=t._component;!ut(n)&&!n.render&&!n.template&&(n.template=l.innerHTML),l.innerHTML="";const a=o(l,!1,Ek(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),a},t};function Ek(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $k(e){return ft(e)?document.querySelector(e):e}function Tg(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tk}=Object.prototype,{getPrototypeOf:rf}=Object,eu=(e=>t=>{const o=Tk.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),tl=e=>(e=e.toLowerCase(),t=>eu(t)===e),tu=e=>t=>typeof t===e,{isArray:Ra}=Array,ts=tu("undefined");function zk(e){return e!==null&&!ts(e)&&e.constructor!==null&&!ts(e.constructor)&&Cr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zg=tl("ArrayBuffer");function Mk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zg(e.buffer),t}const Ak=tu("string"),Cr=tu("function"),Mg=tu("number"),ou=e=>e!==null&&typeof e=="object",Ik=e=>e===!0||e===!1,ru=e=>{if(eu(e)!=="object")return!1;const t=rf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ok=tl("Date"),Pk=tl("File"),Bk=tl("Blob"),Nk=tl("FileList"),Lk=e=>ou(e)&&Cr(e.pipe),Rk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Cr(e.append)&&((t=eu(e))==="formdata"||t==="object"&&Cr(e.toString)&&e.toString()==="[object FormData]"))},Vk=tl("URLSearchParams"),Hk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function os(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Ra(e))for(r=0,l=e.length;r0;)if(l=o[r],t===l.toLowerCase())return l;return null}const Ig=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wl,Og=e=>!ts(e)&&e!==Ig;function lf(){const{caseless:e}=Og(this)&&this||{},t={},o=(r,l)=>{const n=e&&Ag(t,l)||l;ru(t[n])&&ru(r)?t[n]=lf(t[n],r):ru(r)?t[n]=lf({},r):Ra(r)?t[n]=r.slice():t[n]=r};for(let r=0,l=arguments.length;r(os(t,(l,n)=>{o&&Cr(l)?e[n]=Tg(l,o):e[n]=l},{allOwnKeys:r}),e),Dk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jk=(e,t,o,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},Kk=(e,t,o,r)=>{let l,n,a;const i={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),n=l.length;n-- >0;)a=l[n],(!r||r(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=o!==!1&&rf(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},Wk=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const r=e.indexOf(t,o);return r!==-1&&r===o},Uk=e=>{if(!e)return null;if(Ra(e))return e;let t=e.length;if(!Mg(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},qk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rf(Uint8Array)),Yk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const n=l.value;t.call(e,n[0],n[1])}},Gk=(e,t)=>{let o;const r=[];for(;(o=e.exec(t))!==null;)r.push(o);return r},Xk=tl("HTMLFormElement"),Zk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,l){return r.toUpperCase()+l}),Pg=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),Jk=tl("RegExp"),Bg=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),r={};os(o,(l,n)=>{let a;(a=t(l,n,e))!==!1&&(r[n]=a||l)}),Object.defineProperties(e,r)},Qk=e=>{Bg(e,(t,o)=>{if(Cr(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=e[o];if(Cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},e9=(e,t)=>{const o={},r=l=>{l.forEach(n=>{o[n]=!0})};return Ra(e)?r(e):r(String(e).split(t)),o},t9=()=>{},o9=(e,t)=>(e=+e,Number.isFinite(e)?e:t),nf="abcdefghijklmnopqrstuvwxyz",Ng="0123456789",Lg={DIGIT:Ng,ALPHA:nf,ALPHA_DIGIT:nf+nf.toUpperCase()+Ng},r9=(e=16,t=Lg.ALPHA_DIGIT)=>{let o="";const{length:r}=t;for(;e--;)o+=t[Math.random()*r|0];return o};function l9(e){return!!(e&&Cr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const n9=e=>{const t=new Array(10),o=(r,l)=>{if(ou(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const n=Ra(r)?[]:{};return os(r,(a,i)=>{const c=o(a,l+1);!ts(c)&&(n[i]=c)}),t[l]=void 0,n}}return r};return o(e,0)},a9=tl("AsyncFunction"),Ze={isArray:Ra,isArrayBuffer:zg,isBuffer:zk,isFormData:Rk,isArrayBufferView:Mk,isString:Ak,isNumber:Mg,isBoolean:Ik,isObject:ou,isPlainObject:ru,isUndefined:ts,isDate:Ok,isFile:Pk,isBlob:Bk,isRegExp:Jk,isFunction:Cr,isStream:Lk,isURLSearchParams:Vk,isTypedArray:qk,isFileList:Nk,forEach:os,merge:lf,extend:Fk,trim:Hk,stripBOM:Dk,inherits:jk,toFlatObject:Kk,kindOf:eu,kindOfTest:tl,endsWith:Wk,toArray:Uk,forEachEntry:Yk,matchAll:Gk,isHTMLForm:Xk,hasOwnProperty:Pg,hasOwnProp:Pg,reduceDescriptors:Bg,freezeMethods:Qk,toObjectSet:e9,toCamelCase:Zk,noop:t9,toFiniteNumber:o9,findKey:Ag,global:Ig,isContextDefined:Og,ALPHABET:Lg,generateString:r9,isSpecCompliantForm:l9,toJSONObject:n9,isAsyncFn:a9,isThenable:e=>e&&(ou(e)||Cr(e))&&Cr(e.then)&&Cr(e.catch)};var Rg={},lu={};lu.byteLength=c9,lu.toByteArray=d9,lu.fromByteArray=h9;for(var ol=[],Sr=[],i9=typeof Uint8Array<"u"?Uint8Array:Array,af="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=0,s9=af.length;Va0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=t);var r=o===t?0:4-o%4;return[o,r]}function c9(e){var t=Vg(e),o=t[0],r=t[1];return(o+r)*3/4-r}function u9(e,t,o){return(t+o)*3/4-o}function d9(e){var t,o=Vg(e),r=o[0],l=o[1],n=new i9(u9(e,r,l)),a=0,i=l>0?r-4:r,c;for(c=0;c>16&255,n[a++]=t>>8&255,n[a++]=t&255;return l===2&&(t=Sr[e.charCodeAt(c)]<<2|Sr[e.charCodeAt(c+1)]>>4,n[a++]=t&255),l===1&&(t=Sr[e.charCodeAt(c)]<<10|Sr[e.charCodeAt(c+1)]<<4|Sr[e.charCodeAt(c+2)]>>2,n[a++]=t>>8&255,n[a++]=t&255),n}function p9(e){return ol[e>>18&63]+ol[e>>12&63]+ol[e>>6&63]+ol[e&63]}function f9(e,t,o){for(var r,l=[],n=t;ni?i:a+n));return r===1?(t=e[o-1],l.push(ol[t>>2]+ol[t<<4&63]+"==")):r===2&&(t=(e[o-2]<<8)+e[o-1],l.push(ol[t>>10]+ol[t>>4&63]+ol[t<<2&63]+"=")),l.join("")}var sf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */sf.read=function(e,t,o,r,l){var n,a,i=l*8-r-1,c=(1<>1,p=-7,d=o?l-1:0,f=o?-1:1,v=e[t+d];for(d+=f,n=v&(1<<-p)-1,v>>=-p,p+=i;p>0;n=n*256+e[t+d],d+=f,p-=8);for(a=n&(1<<-p)-1,n>>=-p,p+=r;p>0;a=a*256+e[t+d],d+=f,p-=8);if(n===0)n=1-u;else{if(n===c)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,r),n=n-u}return(v?-1:1)*a*Math.pow(2,n-r)},sf.write=function(e,t,o,r,l,n){var a,i,c,u=n*8-l-1,p=(1<>1,f=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:n-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+d>=1?t+=f/c:t+=f*Math.pow(2,1-d),t*c>=2&&(a++,c/=2),a+d>=p?(i=0,a=p):a+d>=1?(i=(t*c-1)*Math.pow(2,l),a=a+d):(i=t*Math.pow(2,d-1)*Math.pow(2,l),a=0));l>=8;e[o+v]=i&255,v+=m,i/=256,l-=8);for(a=a<0;e[o+v]=a&255,v+=m,a/=256,u-=8);e[o+v-m]|=h*128};/*! +`,...Zx(l)),console.warn(...n)}ln()}function Xx(){let e=Hi[Hi.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Zx(e){const t=[];return e.forEach((o,r)=>{t.push(...r===0?[]:[` +`],...Jx(o))}),t}function Jx({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,l=` at <${lg(e.component,e.type,r)}`,n=">"+o;return e.props?[l,...Qx(e.props),n]:[l+n]}function Qx(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(r=>{t.push(...cm(r,e[r]))}),o.length>3&&t.push(" ..."),t}function cm(e,t,o){return ft(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:Wt(t)?(t=cm(e,Vt(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):ut(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Vt(t),o?t:[`${e}=`,t])}function Cl(e,t,o,r){let l;try{l=r?e(...r):e()}catch(n){Nc(n,t,o)}return l}function xr(e,t,o,r){if(ut(e)){const n=Cl(e,t,o,r);return n&&Bi(n)&&n.catch(a=>{Nc(a,t,o)}),n}const l=[];for(let n=0;n>>1,l=Do[r],n=Di(l);nel&&Do.splice(t,1)}function r5(e){Ge(e)?Ia.push(...e):(!Sl||!Sl.includes(e,e.allowRecurse?Rn+1:Rn))&&Ia.push(e),dm()}function pm(e,t,o=Fi?el+1:0){for(;oDi(o)-Di(r)),Rn=0;Rne.id==null?1/0:e.id,l5=(e,t)=>{const o=Di(e)-Di(t);if(o===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function hm(e){Ap=!1,Fi=!0,Do.sort(l5);try{for(el=0;elft(v)?v.trim():v)),p&&(l=o.map(mp))}let i,c=r[i=Sc(t)]||r[i=Sc(yr(t))];!c&&n&&(c=r[i=Sc(en(t))]),c&&xr(c,e,6,l);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,xr(u,e,6,l)}}function vm(e,t,o=!1){const r=t.emitsCache,l=r.get(e);if(l!==void 0)return l;const n=e.emits;let a={},i=!1;if(!ut(e)){const c=u=>{const d=vm(u,t,!0);d&&(i=!0,Mo(a,d))};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!n&&!i?(Ct(e)&&r.set(e,null),null):(Ge(n)?n.forEach(c=>a[c]=null):Mo(a,n),Ct(e)&&r.set(e,a),a)}function Lc(e,t){return!e||!_c(t)?!1:(t=t.slice(2).replace(/Once$/,""),It(e,t[0].toLowerCase()+t.slice(1))||It(e,en(t))||It(e,t))}let Po=null,mm=null;function Rc(e){const t=Po;return Po=e,mm=e&&e.type.__scopeId||null,t}function ne(e,t=Po,o){if(!t||e._n)return e;const r=(...l)=>{r._d&&Gm(-1);const n=Rc(t);let a;try{a=e(...l)}finally{Rc(n),r._d&&Gm(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Oue(){}function Pp(e){const{type:t,vnode:o,proxy:r,withProxy:l,props:n,propsOptions:[a],slots:i,attrs:c,emit:u,render:d,renderCache:p,data:f,setupState:v,ctx:m,inheritAttrs:h}=e;let _,g;const y=Rc(e);try{if(o.shapeFlag&4){const x=l||r,M=x;_=ol(d.call(M,x,p,n,v,f,m)),g=c}else{const x=t;_=ol(x.length>1?x(n,{attrs:c,slots:i,emit:u}):x(n,null)),g=t.props?c:a5(c)}}catch(x){Ji.length=0,Nc(x,e,1),_=oe(Yo)}let w=_;if(g&&h!==!1){const x=Object.keys(g),{shapeFlag:M}=w;x.length&&M&7&&(a&&x.some(fp)&&(g=i5(g,a)),w=zl(w,g))}return o.dirs&&(w=zl(w),w.dirs=w.dirs?w.dirs.concat(o.dirs):o.dirs),o.transition&&(w.transition=o.transition),_=w,Rc(y),_}const a5=e=>{let t;for(const o in e)(o==="class"||o==="style"||_c(o))&&((t||(t={}))[o]=e[o]);return t},i5=(e,t)=>{const o={};for(const r in e)(!fp(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function s5(e,t,o){const{props:r,children:l,component:n}=e,{props:a,children:i,patchFlag:c}=t,u=n.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&c>=0){if(c&1024)return!0;if(c&16)return r?gm(r,a,u):!!a;if(c&8){const d=t.dynamicProps;for(let p=0;pe.__isSuspense;function p5(e,t){t&&t.pendingBranch?Ge(e)?t.effects.push(...e):t.effects.push(e):r5(e)}const f5=Symbol.for("v-scx"),h5=()=>Le(f5);function lr(e,t){return Lp(e,null,t)}const Vc={};function Te(e,t,o){return Lp(e,t,o)}function Lp(e,t,{immediate:o,deep:r,flush:l,once:n,onTrack:a,onTrigger:i}=vo){var c;if(t&&n){const M=t;t=(...E)=>{M(...E),x()}}const u=_p()===((c=Oo)==null?void 0:c.scope)?Oo:null;let d,p=!1,f=!1;if(Wt(e)?(d=()=>e.value,p=Oa(e)):an(e)?(d=Oa(e)||r===!1?()=>El(e,1):()=>El(e),p=!0):Ge(e)?(f=!0,p=e.some(M=>an(M)||Oa(M)),d=()=>e.map(M=>{if(Wt(M))return M.value;if(an(M))return El(M,Oa(M)||r===!1?1:void 0);if(ut(M))return Cl(M,u,2)})):ut(e)?t?d=()=>Cl(e,u,2):d=()=>{if(!(u&&u.isUnmounted))return v&&v(),xr(e,u,3,[m])}:d=jt,t&&r){const M=d;d=()=>El(M())}let v,m=M=>{v=w.onStop=()=>{Cl(M,u,4),v=w.onStop=void 0}},h;if(Xc)if(m=jt,t?o&&xr(t,u,3,[d(),f?[]:void 0,m]):d(),l==="sync"){const M=h5();h=M.__watcherHandles||(M.__watcherHandles=[])}else return jt;let _=f?new Array(e.length).fill(Vc):Vc;const g=()=>{if(!(!w.active||!w.dirty))if(t){const M=w.run();(r||p||(f?M.some((E,I)=>tn(E,_[I])):tn(M,_)))&&(v&&v(),xr(t,u,3,[M,_===Vc?void 0:f&&_[0]===Vc?[]:_,m]),_=M)}else w.run()};g.allowRecurse=!!t;let y;l==="sync"?y=g:l==="post"?y=()=>nr(g,u&&u.suspense):(g.pre=!0,u&&(g.id=u.uid),y=()=>Ip(g));const w=new yp(d,jt,y),x=()=>{w.stop(),u&&u.scope&&hp(u.scope.effects,w)};return t?o?g():_=w.run():l==="post"?nr(w.run.bind(w),u&&u.suspense):w.run(),h&&h.push(x),x}function v5(e,t,o){const r=this.proxy,l=ft(e)?e.includes(".")?wm(r,e):()=>r[e]:e.bind(r,r);let n;ut(t)?n=t:(n=t.handler,o=t);const a=Oo;Ba(this);const i=Lp(l,n.bind(r),o);return a?Ba(a):jn(),i}function wm(e,t){const o=t.split(".");return()=>{let r=e;for(let l=0;l0){if(o>=t)return e;o++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Wt(e))El(e.value,t,o,r);else if(Ge(e))for(let l=0;l{El(l,t,o,r)});else if(xc(e))for(const l in e)El(e[l],t,o,r);return e}function ht(e,t){const o=Po;if(o===null)return e;const r=Zc(o)||o.proxy,l=e.dirs||(e.dirs=[]);for(let n=0;n{e.isMounted=!0}),Zt(()=>{e.isUnmounting=!0}),e}const kr=[Function,Array],xm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kr,onEnter:kr,onAfterEnter:kr,onEnterCancelled:kr,onBeforeLeave:kr,onLeave:kr,onAfterLeave:kr,onLeaveCancelled:kr,onBeforeAppear:kr,onAppear:kr,onAfterAppear:kr,onAppearCancelled:kr},m5={name:"BaseTransition",props:xm,setup(e,{slots:t}){const o=_t(),r=ym();let l;return()=>{const n=t.default&&Vp(t.default(),!0);if(!n||!n.length)return;let a=n[0];if(n.length>1){for(const h of n)if(h.type!==Yo){a=h;break}}const i=Vt(e),{mode:c}=i;if(r.isLeaving)return Rp(a);const u=Cm(a);if(!u)return Rp(a);const d=Ki(u,i,r,o);Wi(u,d);const p=o.subTree,f=p&&Cm(p);let v=!1;const{getTransitionKey:m}=u.type;if(m){const h=m();l===void 0?l=h:h!==l&&(l=h,v=!0)}if(f&&f.type!==Yo&&(!Dn(u,f)||v)){const h=Ki(f,i,r,o);if(Wi(f,h),c==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,o.update.active!==!1&&(o.effect.dirty=!0,o.update())},Rp(a);c==="in-out"&&u.type!==Yo&&(h.delayLeave=(_,g,y)=>{const w=km(r,f);w[String(f.key)]=f,_[sn]=()=>{g(),_[sn]=void 0,delete d.delayedLeave},d.delayedLeave=y})}return a}}};function km(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Ki(e,t,o,r){const{appear:l,mode:n,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:f,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:h,onAppear:_,onAfterAppear:g,onAppearCancelled:y}=t,w=String(e.key),x=km(o,e),M=(O,F)=>{O&&xr(O,r,9,F)},E=(O,F)=>{const K=F[1];M(O,F),Ge(O)?O.every(R=>R.length<=1)&&K():O.length<=1&&K()},I={mode:n,persisted:a,beforeEnter(O){let F=i;if(!o.isMounted)if(l)F=h||i;else return;O[sn]&&O[sn](!0);const K=x[w];K&&Dn(e,K)&&K.el[sn]&&K.el[sn](),M(F,[O])},enter(O){let F=c,K=u,R=d;if(!o.isMounted)if(l)F=_||c,K=g||u,R=y||d;else return;let D=!1;const j=O[Hc]=Z=>{D||(D=!0,Z?M(R,[O]):M(K,[O]),I.delayedLeave&&I.delayedLeave(),O[Hc]=void 0)};F?E(F,[O,j]):j()},leave(O,F){const K=String(e.key);if(O[Hc]&&O[Hc](!0),o.isUnmounting)return F();M(p,[O]);let R=!1;const D=O[sn]=j=>{R||(R=!0,F(),j?M(m,[O]):M(v,[O]),O[sn]=void 0,x[K]===e&&delete x[K])};x[K]=e,f?E(f,[O,D]):D()},clone(O){return Ki(O,t,o,r)}};return I}function Rp(e){if(Fc(e))return e=zl(e),e.children=null,e}function Cm(e){return Fc(e)?e.children?e.children[0]:void 0:e}function Wi(e,t){e.shapeFlag&6&&e.component?Wi(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vp(e,t=!1,o){let r=[],l=0;for(let n=0;n1)for(let n=0;n!!e.type.__asyncLoader,Fc=e=>e.type.__isKeepAlive;function g5(e,t){Em(e,"a",t)}function Sm(e,t){Em(e,"da",t)}function Em(e,t,o=Oo){const r=e.__wdc||(e.__wdc=()=>{let l=o;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Dc(t,r,o),o){let l=o.parent;for(;l&&l.parent;)Fc(l.parent.vnode)&&b5(r,t,o,l),l=l.parent}}function b5(e,t,o,r){const l=Dc(t,e,r,!0);cn(()=>{hp(r[t],l)},o)}function Dc(e,t,o=Oo,r=!1){if(o){const l=o[e]||(o[e]=[]),n=t.__weh||(t.__weh=(...a)=>{if(o.isUnmounted)return;rn(),Ba(o);const i=xr(t,o,e,a);return jn(),ln(),i});return r?l.unshift(n):l.push(n),n}}const $l=e=>(t,o=Oo)=>(!Xc||e==="sp")&&Dc(e,(...r)=>t(...r),o),jc=$l("bm"),vt=$l("m"),$m=$l("bu"),Tl=$l("u"),Zt=$l("bum"),cn=$l("um"),_5=$l("sp"),w5=$l("rtg"),y5=$l("rtc");function x5(e,t=Oo){Dc("ec",e,t)}function Tt(e,t,o,r){let l;const n=o&&o[r];if(Ge(e)||ft(e)){l=new Array(e.length);for(let a=0,i=e.length;at(a,i,void 0,n&&n[i]));else{const a=Object.keys(e);l=new Array(a.length);for(let i=0,c=a.length;i{const n=r.fn(...l);return n&&(n.key=r.key),n}:r.fn)}return e}function be(e,t,o={},r,l){if(Po.isCE||Po.parent&&Ui(Po.parent)&&Po.parent.isCE)return t!=="default"&&(o.name=t),oe("slot",o,r&&r());let n=e[t];n&&n._c&&(n._d=!1),b();const a=n&&Tm(n(o)),i=de(Xe,{key:o.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&e._===1?64:-2);return!l&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function Tm(e){return e.some(t=>Qt(t)?!(t.type===Yo||t.type===Xe&&!Tm(t.children)):!0)?e:null}function k5(e,t){const o={};for(const r in e)o[t&&/[A-Z]/.test(r)?`on:${r}`:Sc(r)]=e[r];return o}const Hp=e=>e?Jm(e)?Zc(e)||e.proxy:Hp(e.parent):null,qi=Mo(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Hp(e.parent),$root:e=>Hp(e.root),$emit:e=>e.emit,$options:e=>jp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ip(e.update)}),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>v5.bind(e)}),Fp=(e,t)=>e!==vo&&!e.__isScriptSetup&&It(e,t),C5={get({_:e},t){const{ctx:o,setupState:r,data:l,props:n,accessCache:a,type:i,appContext:c}=e;let u;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return r[t];case 2:return l[t];case 4:return o[t];case 3:return n[t]}else{if(Fp(r,t))return a[t]=1,r[t];if(l!==vo&&It(l,t))return a[t]=2,l[t];if((u=e.propsOptions[0])&&It(u,t))return a[t]=3,n[t];if(o!==vo&&It(o,t))return a[t]=4,o[t];Dp&&(a[t]=0)}}const d=qi[t];let p,f;if(d)return t==="$attrs"&&rr(e,"get",t),d(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(o!==vo&&It(o,t))return a[t]=4,o[t];if(f=c.config.globalProperties,It(f,t))return f[t]},set({_:e},t,o){const{data:r,setupState:l,ctx:n}=e;return Fp(l,t)?(l[t]=o,!0):r!==vo&&It(r,t)?(r[t]=o,!0):It(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(n[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:l,propsOptions:n}},a){let i;return!!o[a]||e!==vo&&It(e,a)||Fp(t,a)||(i=n[0])&&It(i,a)||It(r,a)||It(qi,a)||It(l.config.globalProperties,a)},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:It(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Bo(){return zm().slots}function Hn(){return zm().attrs}function zm(){const e=_t();return e.setupContext||(e.setupContext=og(e))}function Mm(e){return Ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Dp=!0;function S5(e){const t=jp(e),o=e.proxy,r=e.ctx;Dp=!1,t.beforeCreate&&Am(t.beforeCreate,e,"bc");const{data:l,computed:n,methods:a,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:v,updated:m,activated:h,deactivated:_,beforeDestroy:g,beforeUnmount:y,destroyed:w,unmounted:x,render:M,renderTracked:E,renderTriggered:I,errorCaptured:O,serverPrefetch:F,expose:K,inheritAttrs:R,components:D,directives:j,filters:Z}=t;if(u&&E5(u,r,null),a)for(const L in a){const X=a[L];ut(X)&&(r[L]=X.bind(o))}if(l){const L=l.call(o,o);Ct(L)&&(e.data=Ft(L))}if(Dp=!0,n)for(const L in n){const X=n[L],N=ut(X)?X.bind(o,o):ut(X.get)?X.get.bind(o,o):jt,W=!ut(X)&&ut(X.set)?X.set.bind(o):jt,re=T({get:N,set:W});Object.defineProperty(r,L,{enumerable:!0,configurable:!0,get:()=>re.value,set:ie=>re.value=ie})}if(i)for(const L in i)Om(i[L],r,o,L);if(c){const L=ut(c)?c.call(o):c;Reflect.ownKeys(L).forEach(X=>{zt(X,L[X])})}d&&Am(d,e,"c");function J(L,X){Ge(X)?X.forEach(N=>L(N.bind(o))):X&&L(X.bind(o))}if(J(jc,p),J(vt,f),J($m,v),J(Tl,m),J(g5,h),J(Sm,_),J(x5,O),J(y5,E),J(w5,I),J(Zt,y),J(cn,x),J(_5,F),Ge(K))if(K.length){const L=e.exposed||(e.exposed={});K.forEach(X=>{Object.defineProperty(L,X,{get:()=>o[X],set:N=>o[X]=N})})}else e.exposed||(e.exposed={});M&&e.render===jt&&(e.render=M),R!=null&&(e.inheritAttrs=R),D&&(e.components=D),j&&(e.directives=j)}function E5(e,t,o=jt){Ge(e)&&(e=Kp(e));for(const r in e){const l=e[r];let n;Ct(l)?"default"in l?n=Le(l.from||r,l.default,!0):n=Le(l.from||r):n=Le(l),Wt(n)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[r]=n}}function Am(e,t,o){xr(Ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function Om(e,t,o,r){const l=r.includes(".")?wm(o,r):()=>o[r];if(ft(e)){const n=t[e];ut(n)&&Te(l,n)}else if(ut(e))Te(l,e.bind(o));else if(Ct(e))if(Ge(e))e.forEach(n=>Om(n,t,o,r));else{const n=ut(e.handler)?e.handler.bind(o):t[e.handler];ut(n)&&Te(l,n,e)}}function jp(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:l,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,i=n.get(t);let c;return i?c=i:!l.length&&!o&&!r?c=t:(c={},l.length&&l.forEach(u=>Kc(c,u,a,!0)),Kc(c,t,a)),Ct(t)&&n.set(t,c),c}function Kc(e,t,o,r=!1){const{mixins:l,extends:n}=t;n&&Kc(e,n,o,!0),l&&l.forEach(a=>Kc(e,a,o,!0));for(const a in t)if(!(r&&a==="expose")){const i=$5[a]||o&&o[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const $5={data:Im,props:Pm,emits:Pm,methods:Yi,computed:Yi,beforeCreate:qo,created:qo,beforeMount:qo,mounted:qo,beforeUpdate:qo,updated:qo,beforeDestroy:qo,beforeUnmount:qo,destroyed:qo,unmounted:qo,activated:qo,deactivated:qo,errorCaptured:qo,serverPrefetch:qo,components:Yi,directives:Yi,watch:z5,provide:Im,inject:T5};function Im(e,t){return t?e?function(){return Mo(ut(e)?e.call(this,this):e,ut(t)?t.call(this,this):t)}:t:e}function T5(e,t){return Yi(Kp(e),Kp(t))}function Kp(e){if(Ge(e)){const t={};for(let o=0;o1)return o&&ut(t)?t.call(r&&r.proxy):t}}function O5(){return!!(Oo||Po||Gi)}function I5(e,t,o,r=!1){const l={},n={};$c(n,qc,1),e.propsDefaults=Object.create(null),Nm(e,t,l,n);for(const a in e.propsOptions[0])a in l||(l[a]=void 0);o?e.props=r?l:tm(l):e.type.props?e.props=l:e.props=n,e.attrs=n}function P5(e,t,o,r){const{props:l,attrs:n,vnode:{patchFlag:a}}=e,i=Vt(l),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[f,v]=Lm(p,t,!0);Mo(a,f),v&&i.push(...v)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!n&&!c)return Ct(e)&&r.set(e,$a),$a;if(Ge(n))for(let d=0;d-1,v[1]=h<0||m-1||It(v,"default"))&&i.push(p)}}}const u=[a,i];return Ct(e)&&r.set(e,u),u}function Rm(e){return e[0]!=="$"}function Vm(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Hm(e,t){return Vm(e)===Vm(t)}function Fm(e,t){return Ge(t)?t.findIndex(o=>Hm(o,e)):ut(t)&&Hm(t,e)?0:-1}const Dm=e=>e[0]==="_"||e==="$stable",Up=e=>Ge(e)?e.map(ol):[ol(e)],B5=(e,t,o)=>{if(t._n)return t;const r=ne((...l)=>Up(t(...l)),o);return r._c=!1,r},jm=(e,t,o)=>{const r=e._ctx;for(const l in e){if(Dm(l))continue;const n=e[l];if(ut(n))t[l]=B5(l,n,r);else if(n!=null){const a=Up(n);t[l]=()=>a}}},Km=(e,t)=>{const o=Up(t);e.slots.default=()=>o},N5=(e,t)=>{if(e.vnode.shapeFlag&32){const o=t._;o?(e.slots=Vt(t),$c(t,"_",o)):jm(t,e.slots={})}else e.slots={},t&&Km(e,t);$c(e.slots,qc,1)},L5=(e,t,o)=>{const{vnode:r,slots:l}=e;let n=!0,a=vo;if(r.shapeFlag&32){const i=t._;i?o&&i===1?n=!1:(Mo(l,t),!o&&i===1&&delete l._):(n=!t.$stable,jm(t,l)),a=t}else t&&(Km(e,t),a={default:1});if(n)for(const i in l)!Dm(i)&&a[i]==null&&delete l[i]};function qp(e,t,o,r,l=!1){if(Ge(e)){e.forEach((f,v)=>qp(f,t&&(Ge(t)?t[v]:t),o,r,l));return}if(Ui(r)&&!l)return;const n=r.shapeFlag&4?Zc(r.component)||r.component.proxy:r.el,a=l?null:n,{i,r:c}=e,u=t&&t.r,d=i.refs===vo?i.refs={}:i.refs,p=i.setupState;if(u!=null&&u!==c&&(ft(u)?(d[u]=null,It(p,u)&&(p[u]=null)):Wt(u)&&(u.value=null)),ut(c))Cl(c,i,12,[a,d]);else{const f=ft(c),v=Wt(c);if(f||v){const m=()=>{if(e.f){const h=f?It(p,c)?p[c]:d[c]:c.value;l?Ge(h)&&hp(h,n):Ge(h)?h.includes(n)||h.push(n):f?(d[c]=[n],It(p,c)&&(p[c]=d[c])):(c.value=[n],e.k&&(d[e.k]=c.value))}else f?(d[c]=a,It(p,c)&&(p[c]=a)):v&&(c.value=a,e.k&&(d[e.k]=a))};a?(m.id=-1,nr(m,o)):m()}}}const nr=p5;function R5(e){return V5(e)}function V5(e,t){const o=O2();o.__VUE__=!0;const{insert:r,remove:l,patchProp:n,createElement:a,createText:i,createComment:c,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:v=jt,insertStaticContent:m}=e,h=(te,ce,we,Ae=null,Oe=null,xe=null,Ne=void 0,Se=null,ke=!!ce.dynamicChildren)=>{if(te===ce)return;te&&!Dn(te,ce)&&(Ae=_e(te),ie(te,Oe,xe,!0),te=null),ce.patchFlag===-2&&(ke=!1,ce.dynamicChildren=null);const{type:$e,ref:Pe,shapeFlag:Ye}=ce;switch($e){case Pa:_(te,ce,we,Ae);break;case Yo:g(te,ce,we,Ae);break;case Uc:te==null&&y(ce,we,Ae,Ne);break;case Xe:D(te,ce,we,Ae,Oe,xe,Ne,Se,ke);break;default:Ye&1?M(te,ce,we,Ae,Oe,xe,Ne,Se,ke):Ye&6?j(te,ce,we,Ae,Oe,xe,Ne,Se,ke):(Ye&64||Ye&128)&&$e.process(te,ce,we,Ae,Oe,xe,Ne,Se,ke,Be)}Pe!=null&&Oe&&qp(Pe,te&&te.ref,xe,ce||te,!ce)},_=(te,ce,we,Ae)=>{if(te==null)r(ce.el=i(ce.children),we,Ae);else{const Oe=ce.el=te.el;ce.children!==te.children&&u(Oe,ce.children)}},g=(te,ce,we,Ae)=>{te==null?r(ce.el=c(ce.children||""),we,Ae):ce.el=te.el},y=(te,ce,we,Ae)=>{[te.el,te.anchor]=m(te.children,ce,we,Ae,te.el,te.anchor)},w=({el:te,anchor:ce},we,Ae)=>{let Oe;for(;te&&te!==ce;)Oe=f(te),r(te,we,Ae),te=Oe;r(ce,we,Ae)},x=({el:te,anchor:ce})=>{let we;for(;te&&te!==ce;)we=f(te),l(te),te=we;l(ce)},M=(te,ce,we,Ae,Oe,xe,Ne,Se,ke)=>{ce.type==="svg"?Ne="svg":ce.type==="math"&&(Ne="mathml"),te==null?E(ce,we,Ae,Oe,xe,Ne,Se,ke):F(te,ce,Oe,xe,Ne,Se,ke)},E=(te,ce,we,Ae,Oe,xe,Ne,Se)=>{let ke,$e;const{props:Pe,shapeFlag:Ye,transition:Ke,dirs:Ee}=te;if(ke=te.el=a(te.type,xe,Pe&&Pe.is,Pe),Ye&8?d(ke,te.children):Ye&16&&O(te.children,ke,null,Ae,Oe,Yp(te,xe),Ne,Se),Ee&&Vn(te,null,Ae,"created"),I(ke,te,te.scopeId,Ne,Ae),Pe){for(const nt in Pe)nt!=="value"&&!kc(nt)&&n(ke,nt,null,Pe[nt],xe,te.children,Ae,Oe,ge);"value"in Pe&&n(ke,"value",null,Pe.value,xe),($e=Pe.onVnodeBeforeMount)&&rl($e,Ae,te)}Ee&&Vn(te,null,Ae,"beforeMount");const Ue=H5(Oe,Ke);Ue&&Ke.beforeEnter(ke),r(ke,ce,we),(($e=Pe&&Pe.onVnodeMounted)||Ue||Ee)&&nr(()=>{$e&&rl($e,Ae,te),Ue&&Ke.enter(ke),Ee&&Vn(te,null,Ae,"mounted")},Oe)},I=(te,ce,we,Ae,Oe)=>{if(we&&v(te,we),Ae)for(let xe=0;xe{for(let $e=ke;$e{const Se=ce.el=te.el;let{patchFlag:ke,dynamicChildren:$e,dirs:Pe}=ce;ke|=te.patchFlag&16;const Ye=te.props||vo,Ke=ce.props||vo;let Ee;if(we&&Fn(we,!1),(Ee=Ke.onVnodeBeforeUpdate)&&rl(Ee,we,ce,te),Pe&&Vn(ce,te,we,"beforeUpdate"),we&&Fn(we,!0),$e?K(te.dynamicChildren,$e,Se,we,Ae,Yp(ce,Oe),xe):Ne||X(te,ce,Se,null,we,Ae,Yp(ce,Oe),xe,!1),ke>0){if(ke&16)R(Se,ce,Ye,Ke,we,Ae,Oe);else if(ke&2&&Ye.class!==Ke.class&&n(Se,"class",null,Ke.class,Oe),ke&4&&n(Se,"style",Ye.style,Ke.style,Oe),ke&8){const Ue=ce.dynamicProps;for(let nt=0;nt{Ee&&rl(Ee,we,ce,te),Pe&&Vn(ce,te,we,"updated")},Ae)},K=(te,ce,we,Ae,Oe,xe,Ne)=>{for(let Se=0;Se{if(we!==Ae){if(we!==vo)for(const Se in we)!kc(Se)&&!(Se in Ae)&&n(te,Se,we[Se],null,Ne,ce.children,Oe,xe,ge);for(const Se in Ae){if(kc(Se))continue;const ke=Ae[Se],$e=we[Se];ke!==$e&&Se!=="value"&&n(te,Se,$e,ke,Ne,ce.children,Oe,xe,ge)}"value"in Ae&&n(te,"value",we.value,Ae.value,Ne)}},D=(te,ce,we,Ae,Oe,xe,Ne,Se,ke)=>{const $e=ce.el=te?te.el:i(""),Pe=ce.anchor=te?te.anchor:i("");let{patchFlag:Ye,dynamicChildren:Ke,slotScopeIds:Ee}=ce;Ee&&(Se=Se?Se.concat(Ee):Ee),te==null?(r($e,we,Ae),r(Pe,we,Ae),O(ce.children,we,Pe,Oe,xe,Ne,Se,ke)):Ye>0&&Ye&64&&Ke&&te.dynamicChildren?(K(te.dynamicChildren,Ke,we,Oe,xe,Ne,Se),(ce.key!=null||Oe&&ce===Oe.subTree)&&Gp(te,ce,!0)):X(te,ce,we,Pe,Oe,xe,Ne,Se,ke)},j=(te,ce,we,Ae,Oe,xe,Ne,Se,ke)=>{ce.slotScopeIds=Se,te==null?ce.shapeFlag&512?Oe.ctx.activate(ce,we,Ae,Ne,ke):Z(ce,we,Ae,Oe,xe,Ne,ke):Q(te,ce,ke)},Z=(te,ce,we,Ae,Oe,xe,Ne)=>{const Se=te.component=X5(te,Ae,Oe);if(Fc(te)&&(Se.ctx.renderer=Be),Z5(Se),Se.asyncDep){if(Oe&&Oe.registerDep(Se,J),!te.el){const ke=Se.subTree=oe(Yo);g(null,ke,ce,we)}}else J(Se,te,ce,we,Oe,xe,Ne)},Q=(te,ce,we)=>{const Ae=ce.component=te.component;if(s5(te,ce,we))if(Ae.asyncDep&&!Ae.asyncResolved){L(Ae,ce,we);return}else Ae.next=ce,o5(Ae.update),Ae.effect.dirty=!0,Ae.update();else ce.el=te.el,Ae.vnode=ce},J=(te,ce,we,Ae,Oe,xe,Ne)=>{const Se=()=>{if(te.isMounted){let{next:Pe,bu:Ye,u:Ke,parent:Ee,vnode:Ue}=te;{const C=Wm(te);if(C){Pe&&(Pe.el=Ue.el,L(te,Pe,Ne)),C.asyncDep.then(()=>{te.isUnmounted||Se()});return}}let nt=Pe,dt;Fn(te,!1),Pe?(Pe.el=Ue.el,L(te,Pe,Ne)):Pe=Ue,Ye&&Ec(Ye),(dt=Pe.props&&Pe.props.onVnodeBeforeUpdate)&&rl(dt,Ee,Pe,Ue),Fn(te,!0);const gt=Pp(te),Y=te.subTree;te.subTree=gt,h(Y,gt,p(Y.el),_e(Y),te,Oe,xe),Pe.el=gt.el,nt===null&&c5(te,gt.el),Ke&&nr(Ke,Oe),(dt=Pe.props&&Pe.props.onVnodeUpdated)&&nr(()=>rl(dt,Ee,Pe,Ue),Oe)}else{let Pe;const{el:Ye,props:Ke}=ce,{bm:Ee,m:Ue,parent:nt}=te,dt=Ui(ce);if(Fn(te,!1),Ee&&Ec(Ee),!dt&&(Pe=Ke&&Ke.onVnodeBeforeMount)&&rl(Pe,nt,ce),Fn(te,!0),Ye&&Me){const gt=()=>{te.subTree=Pp(te),Me(Ye,te.subTree,te,Oe,null)};dt?ce.type.__asyncLoader().then(()=>!te.isUnmounted&>()):gt()}else{const gt=te.subTree=Pp(te);h(null,gt,we,Ae,te,Oe,xe),ce.el=gt.el}if(Ue&&nr(Ue,Oe),!dt&&(Pe=Ke&&Ke.onVnodeMounted)){const gt=ce;nr(()=>rl(Pe,nt,gt),Oe)}(ce.shapeFlag&256||nt&&Ui(nt.vnode)&&nt.vnode.shapeFlag&256)&&te.a&&nr(te.a,Oe),te.isMounted=!0,ce=we=Ae=null}},ke=te.effect=new yp(Se,jt,()=>Ip($e),te.scope),$e=te.update=()=>{ke.dirty&&ke.run()};$e.id=te.uid,Fn(te,!0),$e()},L=(te,ce,we)=>{ce.component=te;const Ae=te.vnode.props;te.vnode=ce,te.next=null,P5(te,ce.props,Ae,we),L5(te,ce.children,we),rn(),pm(te),ln()},X=(te,ce,we,Ae,Oe,xe,Ne,Se,ke=!1)=>{const $e=te&&te.children,Pe=te?te.shapeFlag:0,Ye=ce.children,{patchFlag:Ke,shapeFlag:Ee}=ce;if(Ke>0){if(Ke&128){W($e,Ye,we,Ae,Oe,xe,Ne,Se,ke);return}else if(Ke&256){N($e,Ye,we,Ae,Oe,xe,Ne,Se,ke);return}}Ee&8?(Pe&16&&ge($e,Oe,xe),Ye!==$e&&d(we,Ye)):Pe&16?Ee&16?W($e,Ye,we,Ae,Oe,xe,Ne,Se,ke):ge($e,Oe,xe,!0):(Pe&8&&d(we,""),Ee&16&&O(Ye,we,Ae,Oe,xe,Ne,Se,ke))},N=(te,ce,we,Ae,Oe,xe,Ne,Se,ke)=>{te=te||$a,ce=ce||$a;const $e=te.length,Pe=ce.length,Ye=Math.min($e,Pe);let Ke;for(Ke=0;KePe?ge(te,Oe,xe,!0,!1,Ye):O(ce,we,Ae,Oe,xe,Ne,Se,ke,Ye)},W=(te,ce,we,Ae,Oe,xe,Ne,Se,ke)=>{let $e=0;const Pe=ce.length;let Ye=te.length-1,Ke=Pe-1;for(;$e<=Ye&&$e<=Ke;){const Ee=te[$e],Ue=ce[$e]=ke?un(ce[$e]):ol(ce[$e]);if(Dn(Ee,Ue))h(Ee,Ue,we,null,Oe,xe,Ne,Se,ke);else break;$e++}for(;$e<=Ye&&$e<=Ke;){const Ee=te[Ye],Ue=ce[Ke]=ke?un(ce[Ke]):ol(ce[Ke]);if(Dn(Ee,Ue))h(Ee,Ue,we,null,Oe,xe,Ne,Se,ke);else break;Ye--,Ke--}if($e>Ye){if($e<=Ke){const Ee=Ke+1,Ue=EeKe)for(;$e<=Ye;)ie(te[$e],Oe,xe,!0),$e++;else{const Ee=$e,Ue=$e,nt=new Map;for($e=Ue;$e<=Ke;$e++){const U=ce[$e]=ke?un(ce[$e]):ol(ce[$e]);U.key!=null&&nt.set(U.key,$e)}let dt,gt=0;const Y=Ke-Ue+1;let C=!1,S=0;const H=new Array(Y);for($e=0;$e=Y){ie(U,Oe,xe,!0);continue}let he;if(U.key!=null)he=nt.get(U.key);else for(dt=Ue;dt<=Ke;dt++)if(H[dt-Ue]===0&&Dn(U,ce[dt])){he=dt;break}he===void 0?ie(U,Oe,xe,!0):(H[he-Ue]=$e+1,he>=S?S=he:C=!0,h(U,ce[he],we,null,Oe,xe,Ne,Se,ke),gt++)}const ee=C?F5(H):$a;for(dt=ee.length-1,$e=Y-1;$e>=0;$e--){const U=Ue+$e,he=ce[U],qe=U+1{const{el:xe,type:Ne,transition:Se,children:ke,shapeFlag:$e}=te;if($e&6){re(te.component.subTree,ce,we,Ae);return}if($e&128){te.suspense.move(ce,we,Ae);return}if($e&64){Ne.move(te,ce,we,Be);return}if(Ne===Xe){r(xe,ce,we);for(let Ye=0;YeSe.enter(xe),Oe);else{const{leave:Ye,delayLeave:Ke,afterLeave:Ee}=Se,Ue=()=>r(xe,ce,we),nt=()=>{Ye(xe,()=>{Ue(),Ee&&Ee()})};Ke?Ke(xe,Ue,nt):nt()}else r(xe,ce,we)},ie=(te,ce,we,Ae=!1,Oe=!1)=>{const{type:xe,props:Ne,ref:Se,children:ke,dynamicChildren:$e,shapeFlag:Pe,patchFlag:Ye,dirs:Ke}=te;if(Se!=null&&qp(Se,null,we,te,!0),Pe&256){ce.ctx.deactivate(te);return}const Ee=Pe&1&&Ke,Ue=!Ui(te);let nt;if(Ue&&(nt=Ne&&Ne.onVnodeBeforeUnmount)&&rl(nt,ce,te),Pe&6)le(te.component,we,Ae);else{if(Pe&128){te.suspense.unmount(we,Ae);return}Ee&&Vn(te,null,ce,"beforeUnmount"),Pe&64?te.type.remove(te,ce,we,Oe,Be,Ae):$e&&(xe!==Xe||Ye>0&&Ye&64)?ge($e,ce,we,!1,!0):(xe===Xe&&Ye&384||!Oe&&Pe&16)&&ge(ke,ce,we),Ae&&se(te)}(Ue&&(nt=Ne&&Ne.onVnodeUnmounted)||Ee)&&nr(()=>{nt&&rl(nt,ce,te),Ee&&Vn(te,null,ce,"unmounted")},we)},se=te=>{const{type:ce,el:we,anchor:Ae,transition:Oe}=te;if(ce===Xe){ve(we,Ae);return}if(ce===Uc){x(te);return}const xe=()=>{l(we),Oe&&!Oe.persisted&&Oe.afterLeave&&Oe.afterLeave()};if(te.shapeFlag&1&&Oe&&!Oe.persisted){const{leave:Ne,delayLeave:Se}=Oe,ke=()=>Ne(we,xe);Se?Se(te.el,xe,ke):ke()}else xe()},ve=(te,ce)=>{let we;for(;te!==ce;)we=f(te),l(te),te=we;l(ce)},le=(te,ce,we)=>{const{bum:Ae,scope:Oe,update:xe,subTree:Ne,um:Se}=te;Ae&&Ec(Ae),Oe.stop(),xe&&(xe.active=!1,ie(Ne,te,ce,we)),Se&&nr(Se,ce),nr(()=>{te.isUnmounted=!0},ce),ce&&ce.pendingBranch&&!ce.isUnmounted&&te.asyncDep&&!te.asyncResolved&&te.suspenseId===ce.pendingId&&(ce.deps--,ce.deps===0&&ce.resolve())},ge=(te,ce,we,Ae=!1,Oe=!1,xe=0)=>{for(let Ne=xe;Nete.shapeFlag&6?_e(te.component.subTree):te.shapeFlag&128?te.suspense.next():f(te.anchor||te.el),me=(te,ce,we)=>{te==null?ce._vnode&&ie(ce._vnode,null,null,!0):h(ce._vnode||null,te,ce,null,null,null,we),pm(),fm(),ce._vnode=te},Be={p:h,um:ie,m:re,r:se,mt:Z,mc:O,pc:X,pbc:K,n:_e,o:e};let ye,Me;return t&&([ye,Me]=t(Be)),{render:me,hydrate:ye,createApp:A5(me,ye)}}function Yp({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Fn({effect:e,update:t},o){e.allowRecurse=t.allowRecurse=o}function H5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gp(e,t,o=!1){const r=e.children,l=t.children;if(Ge(r)&&Ge(l))for(let n=0;n>1,e[o[i]]0&&(t[r]=o[n-1]),o[n]=r)}}for(n=o.length,a=o[n-1];n-- >0;)o[n]=a,a=t[a];return o}function Wm(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wm(t)}const D5=e=>e.__isTeleport,Xi=e=>e&&(e.disabled||e.disabled===""),Um=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Xp=(e,t)=>{const o=e&&e.to;return ft(o)?t?t(o):null:o},j5={name:"Teleport",__isTeleport:!0,process(e,t,o,r,l,n,a,i,c,u){const{mc:d,pc:p,pbc:f,o:{insert:v,querySelector:m,createText:h,createComment:_}}=u,g=Xi(t.props);let{shapeFlag:y,children:w,dynamicChildren:x}=t;if(e==null){const M=t.el=h(""),E=t.anchor=h("");v(M,o,r),v(E,o,r);const I=t.target=Xp(t.props,m),O=t.targetAnchor=h("");I&&(v(O,I),a==="svg"||Um(I)?a="svg":(a==="mathml"||qm(I))&&(a="mathml"));const F=(K,R)=>{y&16&&d(w,K,R,l,n,a,i,c)};g?F(o,E):I&&F(I,O)}else{t.el=e.el;const M=t.anchor=e.anchor,E=t.target=e.target,I=t.targetAnchor=e.targetAnchor,O=Xi(e.props),F=O?o:E,K=O?M:I;if(a==="svg"||Um(E)?a="svg":(a==="mathml"||qm(E))&&(a="mathml"),x?(f(e.dynamicChildren,x,F,l,n,a,i),Gp(e,t,!0)):c||p(e,t,F,K,l,n,a,i,!1),g)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Wc(t,o,M,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=Xp(t.props,m);R&&Wc(t,R,null,u,0)}else O&&Wc(t,E,I,u,1)}Ym(t)},remove(e,t,o,r,{um:l,o:{remove:n}},a){const{shapeFlag:i,children:c,anchor:u,targetAnchor:d,target:p,props:f}=e;if(p&&n(d),a&&n(u),i&16){const v=a||!Xi(f);for(let m=0;m0?Vr||$a:null,W5(),Qi>0&&Vr&&Vr.push(e),e}function z(e,t,o,r,l,n){return Xm($(e,t,o,r,l,n,!0))}function de(e,t,o,r,l){return Xm(oe(e,t,o,r,l,!0))}function Qt(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const qc="__vInternal",Zm=({key:e})=>e??null,Yc=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||Wt(e)||ut(e)?{i:Po,r:e,k:t,f:!!o}:e:null);function $(e,t=null,o=null,r=0,l=null,n=e===Xe?0:1,a=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zm(t),ref:t&&Yc(t),scopeId:mm,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Po};return i?(Zp(c,o),n&128&&e.normalize(c)):o&&(c.shapeFlag|=ft(o)?8:16),Qi>0&&!a&&Vr&&(c.patchFlag>0||n&6)&&c.patchFlag!==32&&Vr.push(c),c}const oe=U5;function U5(e,t=null,o=null,r=0,l=null,n=!1){if((!e||e===bm)&&(e=Yo),Qt(e)){const i=zl(e,t,!0);return o&&Zp(i,o),Qi>0&&!n&&Vr&&(i.shapeFlag&6?Vr[Vr.indexOf(e)]=i:Vr.push(i)),i.patchFlag|=-2,i}if(ok(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:i,style:c}=t;i&&!ft(i)&&(t.class=P(i)),Ct(c)&&(om(c)&&!Ge(c)&&(c=Mo({},c)),t.style=Qe(c))}const a=ft(e)?1:d5(e)?128:D5(e)?64:Ct(e)?4:ut(e)?2:0;return $(e,t,o,r,l,a,n,!0)}function Gc(e){return e?om(e)||qc in e?Mo({},e):e:null}function zl(e,t,o=!1){const{props:r,ref:l,patchFlag:n,children:a}=e,i=t?Et(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Zm(i),ref:t&&t.ref?o&&l?Ge(l)?l.concat(Yc(t)):[l,Yc(t)]:Yc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xe?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zl(e.ssContent),ssFallback:e.ssFallback&&zl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function $t(e=" ",t=0){return oe(Pa,null,e,t)}function q5(e,t){const o=oe(Uc,null,e);return o.staticCount=t,o}function ue(e="",t=!1){return t?(b(),de(Yo,null,e)):oe(Yo,null,e)}function ol(e){return e==null||typeof e=="boolean"?oe(Yo):Ge(e)?oe(Xe,null,e.slice()):typeof e=="object"?un(e):oe(Pa,null,String(e))}function un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zl(e)}function Zp(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ge(t))o=16;else if(typeof t=="object")if(r&65){const l=t.default;l&&(l._c&&(l._d=!1),Zp(e,l()),l._c&&(l._d=!0));return}else{o=32;const l=t._;!l&&!(qc in t)?t._ctx=Po:l===3&&Po&&(Po.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ut(t)?(t={default:t,_ctx:Po},o=32):(t=String(t),r&64?(o=16,t=[$t(t)]):o=8);e.children=t,e.shapeFlag|=o}function Et(...e){const t={};for(let o=0;oOo||Po;let Jp,Qp;{const e=O2(),t=(o,r)=>{let l;return(l=e[o])||(l=e[o]=[]),l.push(r),n=>{l.length>1?l.forEach(a=>a(n)):l[0](n)}};Jp=t("__VUE_INSTANCE_SETTERS__",o=>Oo=o),Qp=t("__VUE_SSR_SETTERS__",o=>Xc=o)}const Ba=e=>{Jp(e),e.scope.on()},jn=()=>{Oo&&Oo.scope.off(),Jp(null)};function Jm(e){return e.vnode.shapeFlag&4}let Xc=!1;function Z5(e,t=!1){t&&Qp(t);const{props:o,children:r}=e.vnode,l=Jm(e);I5(e,o,l,t),N5(e,r);const n=l?J5(e,t):void 0;return t&&Qp(!1),n}function J5(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=kl(new Proxy(e.ctx,C5));const{setup:r}=o;if(r){const l=e.setupContext=r.length>1?og(e):null;Ba(e),rn();const n=Cl(r,e,0,[e.props,l]);if(ln(),jn(),Bi(n)){if(n.then(jn,jn),t)return n.then(a=>{Qm(e,a,t)}).catch(a=>{Nc(a,e,0)});e.asyncDep=n}else Qm(e,n,t)}else tg(e,t)}function Qm(e,t,o){ut(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ct(t)&&(e.setupState=im(t)),tg(e,o)}let eg;function tg(e,t,o){const r=e.type;if(!e.render){if(!t&&eg&&!r.render){const l=r.template||jp(e).template;if(l){const{isCustomElement:n,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:c}=r,u=Mo(Mo({isCustomElement:n,delimiters:i},a),c);r.render=eg(l,u)}}e.render=r.render||jt}{Ba(e),rn();try{S5(e)}finally{ln(),jn()}}}function Q5(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,o){return rr(e,"get","$attrs"),t[o]}}))}function og(e){const t=o=>{e.exposed=o||{}};return{get attrs(){return Q5(e)},slots:e.slots,emit:e.emit,expose:t}}function Zc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(im(kl(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in qi)return qi[o](e)},has(t,o){return o in t||o in qi}}))}const ek=/(?:^|[-_])(\w)/g,tk=e=>e.replace(ek,t=>t.toUpperCase()).replace(/[-_]/g,"");function rg(e,t=!0){return ut(e)?e.displayName||e.name:e.name||t&&e.__name}function lg(e,t,o=!1){let r=rg(t);if(!r&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(r=l[1])}if(!r&&e&&e.parent){const l=n=>{for(const a in n)if(n[a]===t)return a};r=l(e.components||e.parent.type.components)||l(e.appContext.components)}return r?tk(r):o?"App":"Anonymous"}function ok(e){return ut(e)&&"__vccOpts"in e}const T=(e,t)=>lm(e,t,Xc);function rt(e,t,o){const r=arguments.length;return r===2?Ct(t)&&!Ge(t)?Qt(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Qt(o)&&(o=[o]),oe(e,t,o))}const rk="3.4.3",lk=jt,nk="http://www.w3.org/2000/svg",ak="http://www.w3.org/1998/Math/MathML",dn=typeof document<"u"?document:null,ng=dn&&dn.createElement("template"),ik={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const l=t==="svg"?dn.createElementNS(nk,e):t==="mathml"?dn.createElementNS(ak,e):dn.createElement(e,o?{is:o}:void 0);return e==="select"&&r&&r.multiple!=null&&l.setAttribute("multiple",r.multiple),l},createText:e=>dn.createTextNode(e),createComment:e=>dn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,l,n){const a=o?o.previousSibling:t.lastChild;if(l&&(l===n||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),o),!(l===n||!(l=l.nextSibling)););else{ng.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const i=ng.content;if(r==="svg"||r==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},pn="transition",es="animation",Na=Symbol("_vtc"),_o=(e,{slots:t})=>rt(m5,sg(e),t);_o.displayName="Transition";const ag={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sk=_o.props=Mo({},xm,ag),Kn=(e,t=[])=>{Ge(e)?e.forEach(o=>o(...t)):e&&e(...t)},ig=e=>e?Ge(e)?e.some(t=>t.length>1):e.length>1:!1;function sg(e){const t={};for(const D in e)D in ag||(t[D]=e[D]);if(e.css===!1)return t;const{name:o="v",type:r,duration:l,enterFromClass:n=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:i=`${o}-enter-to`,appearFromClass:c=n,appearActiveClass:u=a,appearToClass:d=i,leaveFromClass:p=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:v=`${o}-leave-to`}=e,m=ck(l),h=m&&m[0],_=m&&m[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:w,onLeave:x,onLeaveCancelled:M,onBeforeAppear:E=g,onAppear:I=y,onAppearCancelled:O=w}=t,F=(D,j,Z)=>{fn(D,j?d:i),fn(D,j?u:a),Z&&Z()},K=(D,j)=>{D._isLeaving=!1,fn(D,p),fn(D,v),fn(D,f),j&&j()},R=D=>(j,Z)=>{const Q=D?I:y,J=()=>F(j,D,Z);Kn(Q,[j,J]),cg(()=>{fn(j,D?c:n),Ml(j,D?d:i),ig(Q)||ug(j,r,h,J)})};return Mo(t,{onBeforeEnter(D){Kn(g,[D]),Ml(D,n),Ml(D,a)},onBeforeAppear(D){Kn(E,[D]),Ml(D,c),Ml(D,u)},onEnter:R(!1),onAppear:R(!0),onLeave(D,j){D._isLeaving=!0;const Z=()=>K(D,j);Ml(D,p),hg(),Ml(D,f),cg(()=>{D._isLeaving&&(fn(D,p),Ml(D,v),ig(x)||ug(D,r,_,Z))}),Kn(x,[D,Z])},onEnterCancelled(D){F(D,!1),Kn(w,[D])},onAppearCancelled(D){F(D,!0),Kn(O,[D])},onLeaveCancelled(D){K(D),Kn(M,[D])}})}function ck(e){if(e==null)return null;if(Ct(e))return[ef(e.enter),ef(e.leave)];{const t=ef(e);return[t,t]}}function ef(e){return bx(e)}function Ml(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[Na]||(e[Na]=new Set)).add(t)}function fn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[Na];o&&(o.delete(t),o.size||(e[Na]=void 0))}function cg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let uk=0;function ug(e,t,o,r){const l=e._endId=++uk,n=()=>{l===e._endId&&r()};if(o)return setTimeout(n,o);const{type:a,timeout:i,propCount:c}=dg(e,t);if(!a)return r();const u=a+"end";let d=0;const p=()=>{e.removeEventListener(u,f),n()},f=v=>{v.target===e&&++d>=c&&p()};setTimeout(()=>{d(o[m]||"").split(", "),l=r(`${pn}Delay`),n=r(`${pn}Duration`),a=pg(l,n),i=r(`${es}Delay`),c=r(`${es}Duration`),u=pg(i,c);let d=null,p=0,f=0;t===pn?a>0&&(d=pn,p=a,f=n.length):t===es?u>0&&(d=es,p=u,f=c.length):(p=Math.max(a,u),d=p>0?a>u?pn:es:null,f=d?d===pn?n.length:c.length:0);const v=d===pn&&/\b(transform|all)(,|$)/.test(r(`${pn}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:v}}function pg(e,t){for(;e.lengthfg(o)+fg(e[r])))}function fg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function hg(){return document.body.offsetHeight}function dk(e,t,o){const r=e[Na];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const tf=Symbol("_vod"),Pt={beforeMount(e,{value:t},{transition:o}){e[tf]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):ts(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),ts(e,!0),r.enter(e)):r.leave(e,()=>{ts(e,!1)}):ts(e,t))},beforeUnmount(e,{value:t}){ts(e,t)}};function ts(e,t){e.style.display=t?e[tf]:"none"}const pk=Symbol("");function fk(e,t,o){const r=e.style,l=ft(o);if(o&&!l){if(t&&!ft(t))for(const n in t)o[n]==null&&of(r,n,"");for(const n in o)of(r,n,o[n])}else{const n=r.display;if(l){if(t!==o){const a=r[pk];a&&(o+=";"+a),r.cssText=o}}else t&&e.removeAttribute("style");tf in e&&(r.display=n)}}const vg=/\s*!important$/;function of(e,t,o){if(Ge(o))o.forEach(r=>of(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const r=hk(e,t);vg.test(o)?e.setProperty(en(r),o.replace(vg,""),"important"):e[r]=o}}const mg=["Webkit","Moz","ms"],rf={};function hk(e,t){const o=rf[t];if(o)return o;let r=yr(t);if(r!=="filter"&&r in e)return rf[t]=r;r=Li(r);for(let l=0;llf||(wk.then(()=>lf=0),lf=Date.now());function xk(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;xr(kk(r,o.value),t,5,[r])};return o.value=e,o.attached=yk(),o}function kk(e,t){if(Ge(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(r=>l=>!l._stopped&&r&&r(l))}else return t}const wg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ck=(e,t,o,r,l,n,a,i,c)=>{const u=l==="svg";t==="class"?dk(e,r,u):t==="style"?fk(e,o,r):_c(t)?fp(t)||bk(e,t,o,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sk(e,t,r,u))?mk(e,t,r,n,a,i,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vk(e,t,r,u))};function Sk(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wg(t)&&ut(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return wg(t)&&ft(o)?!1:t in e}const yg=new WeakMap,xg=new WeakMap,Jc=Symbol("_moveCb"),kg=Symbol("_enterCb"),Cg={name:"TransitionGroup",props:Mo({},sk,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=_t(),r=ym();let l,n;return Tl(()=>{if(!l.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!Mk(l[0].el,o.vnode.el,a))return;l.forEach($k),l.forEach(Tk);const i=l.filter(zk);hg(),i.forEach(c=>{const u=c.el,d=u.style;Ml(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const p=u[Jc]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",p),u[Jc]=null,fn(u,a))};u.addEventListener("transitionend",p)})}),()=>{const a=Vt(e),i=sg(a);let c=a.tag||Xe;l=n,n=t.default?Vp(t.default()):[];for(let u=0;udelete e.mode;Cg.props;const Sg=Cg;function $k(e){const t=e.el;t[Jc]&&t[Jc](),t[kg]&&t[kg]()}function Tk(e){xg.set(e,e.el.getBoundingClientRect())}function zk(e){const t=yg.get(e),o=xg.get(e),r=t.left-o.left,l=t.top-o.top;if(r||l){const n=e.el.style;return n.transform=n.webkitTransform=`translate(${r}px,${l}px)`,n.transitionDuration="0s",e}}function Mk(e,t,o){const r=e.cloneNode(),l=e[Na];l&&l.forEach(i=>{i.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),o.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const n=t.nodeType===1?t:t.parentNode;n.appendChild(r);const{hasTransform:a}=dg(r);return n.removeChild(r),a}const La=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ge(t)?o=>Ec(t,o):t};function Ak(e){e.target.composing=!0}function Eg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Al=Symbol("_assign"),nf={created(e,{modifiers:{lazy:t,trim:o,number:r}},l){e[Al]=La(l);const n=r||l.props&&l.props.type==="number";hn(e,t?"change":"input",a=>{if(a.target.composing)return;let i=e.value;o&&(i=i.trim()),n&&(i=mp(i)),e[Al](i)}),o&&hn(e,"change",()=>{e.value=e.value.trim()}),t||(hn(e,"compositionstart",Ak),hn(e,"compositionend",Eg),hn(e,"change",Eg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:o,trim:r,number:l}},n){if(e[Al]=La(n),e.composing)return;const a=l||e.type==="number"?mp(e.value):e.value,i=t??"";a!==i&&(document.activeElement===e&&e.type!=="range"&&(o||r&&e.value.trim()===i)||(e.value=i))}},Qc={deep:!0,created(e,t,o){e[Al]=La(o),hn(e,"change",()=>{const r=e._modelValue,l=zg(e),n=e.checked,a=e[Al];if(Ge(r)){const i=P2(r,l),c=i!==-1;if(n&&!c)a(r.concat(l));else if(!n&&c){const u=[...r];u.splice(i,1),a(u)}}else if(wc(r)){const i=new Set(r);n?i.add(l):i.delete(l),a(i)}else a(Mg(e,n))})},mounted:$g,beforeUpdate(e,t,o){e[Al]=La(o),$g(e,t,o)}};function $g(e,{value:t,oldValue:o},r){e._modelValue=t,Ge(t)?e.checked=P2(t,r.props.value)>-1:wc(t)?e.checked=t.has(r.props.value):t!==o&&(e.checked=za(t,Mg(e,!0)))}const Tg={created(e,{value:t},o){e.checked=za(t,o.props.value),e[Al]=La(o),hn(e,"change",()=>{e[Al](zg(e))})},beforeUpdate(e,{value:t,oldValue:o},r){e[Al]=La(r),t!==o&&(e.checked=za(t,r.props.value))}};function zg(e){return"_value"in e?e._value:e.value}function Mg(e,t){const o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}const Ok=["ctrl","shift","alt","meta"],Ik={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ok.some(o=>e[`${o}Key`]&&!t.includes(o))},it=(e,t)=>{const o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=(l,...n)=>{for(let a=0;a{const o=e._withKeys||(e._withKeys={}),r=t.join(".");return o[r]||(o[r]=l=>{if(!("key"in l))return;const n=en(l.key);if(t.some(a=>a===n||Pk[a]===n))return e(l)})},Bk=Mo({patchProp:Ck},ik);let Ag;function Og(){return Ag||(Ag=R5(Bk))}const Ra=(...e)=>{Og().render(...e)},Ig=(...e)=>{const t=Og().createApp(...e),{mount:o}=t;return t.mount=r=>{const l=Lk(r);if(!l)return;const n=t._component;!ut(n)&&!n.render&&!n.template&&(n.template=l.innerHTML),l.innerHTML="";const a=o(l,!1,Nk(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),a},t};function Nk(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Lk(e){return ft(e)?document.querySelector(e):e}function Pg(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rk}=Object.prototype,{getPrototypeOf:af}=Object,eu=(e=>t=>{const o=Rk.call(t);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Hr=e=>(e=e.toLowerCase(),t=>eu(t)===e),tu=e=>t=>typeof t===e,{isArray:Va}=Array,os=tu("undefined");function Vk(e){return e!==null&&!os(e)&&e.constructor!==null&&!os(e.constructor)&&Cr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bg=Hr("ArrayBuffer");function Hk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bg(e.buffer),t}const Fk=tu("string"),Cr=tu("function"),Ng=tu("number"),ou=e=>e!==null&&typeof e=="object",Dk=e=>e===!0||e===!1,ru=e=>{if(eu(e)!=="object")return!1;const t=af(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jk=Hr("Date"),Kk=Hr("File"),Wk=Hr("Blob"),Uk=Hr("FileList"),qk=e=>ou(e)&&Cr(e.pipe),Yk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Cr(e.append)&&((t=eu(e))==="formdata"||t==="object"&&Cr(e.toString)&&e.toString()==="[object FormData]"))},Gk=Hr("URLSearchParams"),[Xk,Zk,Jk,Qk]=["ReadableStream","Request","Response","Headers"].map(Hr),e9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rs(e,t,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Va(e))for(r=0,l=e.length;r0;)if(l=o[r],t===l.toLowerCase())return l;return null}const Rg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:yl,Vg=e=>!os(e)&&e!==Rg;function sf(){const{caseless:e}=Vg(this)&&this||{},t={},o=(r,l)=>{const n=e&&Lg(t,l)||l;ru(t[n])&&ru(r)?t[n]=sf(t[n],r):ru(r)?t[n]=sf({},r):Va(r)?t[n]=r.slice():t[n]=r};for(let r=0,l=arguments.length;r(rs(t,(l,n)=>{o&&Cr(l)?e[n]=Pg(l,o):e[n]=l},{allOwnKeys:r}),e),o9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r9=(e,t,o,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),o&&Object.assign(e.prototype,o)},l9=(e,t,o,r)=>{let l,n,a;const i={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),n=l.length;n-- >0;)a=l[n],(!r||r(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=o!==!1&&af(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},n9=(e,t,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=t.length;const r=e.indexOf(t,o);return r!==-1&&r===o},a9=e=>{if(!e)return null;if(Va(e))return e;let t=e.length;if(!Ng(t))return null;const o=new Array(t);for(;t-- >0;)o[t]=e[t];return o},i9=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&af(Uint8Array)),s9=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const n=l.value;t.call(e,n[0],n[1])}},c9=(e,t)=>{let o;const r=[];for(;(o=e.exec(t))!==null;)r.push(o);return r},u9=Hr("HTMLFormElement"),d9=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,r,l){return r.toUpperCase()+l}),Hg=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),p9=Hr("RegExp"),Fg=(e,t)=>{const o=Object.getOwnPropertyDescriptors(e),r={};rs(o,(l,n)=>{let a;(a=t(l,n,e))!==!1&&(r[n]=a||l)}),Object.defineProperties(e,r)},f9=e=>{Fg(e,(t,o)=>{if(Cr(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const r=e[o];if(Cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},h9=(e,t)=>{const o={},r=l=>{l.forEach(n=>{o[n]=!0})};return Va(e)?r(e):r(String(e).split(t)),o},v9=()=>{},m9=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,cf="abcdefghijklmnopqrstuvwxyz",Dg="0123456789",jg={DIGIT:Dg,ALPHA:cf,ALPHA_DIGIT:cf+cf.toUpperCase()+Dg},g9=(e=16,t=jg.ALPHA_DIGIT)=>{let o="";const{length:r}=t;for(;e--;)o+=t[Math.random()*r|0];return o};function b9(e){return!!(e&&Cr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _9=e=>{const t=new Array(10),o=(r,l)=>{if(ou(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const n=Va(r)?[]:{};return rs(r,(a,i)=>{const c=o(a,l+1);!os(c)&&(n[i]=c)}),t[l]=void 0,n}}return r};return o(e,0)},w9=Hr("AsyncFunction"),We={isArray:Va,isArrayBuffer:Bg,isBuffer:Vk,isFormData:Yk,isArrayBufferView:Hk,isString:Fk,isNumber:Ng,isBoolean:Dk,isObject:ou,isPlainObject:ru,isReadableStream:Xk,isRequest:Zk,isResponse:Jk,isHeaders:Qk,isUndefined:os,isDate:jk,isFile:Kk,isBlob:Wk,isRegExp:p9,isFunction:Cr,isStream:qk,isURLSearchParams:Gk,isTypedArray:i9,isFileList:Uk,forEach:rs,merge:sf,extend:t9,trim:e9,stripBOM:o9,inherits:r9,toFlatObject:l9,kindOf:eu,kindOfTest:Hr,endsWith:n9,toArray:a9,forEachEntry:s9,matchAll:c9,isHTMLForm:u9,hasOwnProperty:Hg,hasOwnProp:Hg,reduceDescriptors:Fg,freezeMethods:f9,toObjectSet:h9,toCamelCase:d9,noop:v9,toFiniteNumber:m9,findKey:Lg,global:Rg,isContextDefined:Vg,ALPHABET:jg,generateString:g9,isSpecCompliantForm:b9,toJSONObject:_9,isAsyncFn:w9,isThenable:e=>e&&(ou(e)||Cr(e))&&Cr(e.then)&&Cr(e.catch)};var Kg={},lu={};lu.byteLength=k9,lu.toByteArray=S9,lu.fromByteArray=T9;for(var ll=[],Sr=[],y9=typeof Uint8Array<"u"?Uint8Array:Array,uf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ha=0,x9=uf.length;Ha0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=t);var r=o===t?0:4-o%4;return[o,r]}function k9(e){var t=Wg(e),o=t[0],r=t[1];return(o+r)*3/4-r}function C9(e,t,o){return(t+o)*3/4-o}function S9(e){var t,o=Wg(e),r=o[0],l=o[1],n=new y9(C9(e,r,l)),a=0,i=l>0?r-4:r,c;for(c=0;c>16&255,n[a++]=t>>8&255,n[a++]=t&255;return l===2&&(t=Sr[e.charCodeAt(c)]<<2|Sr[e.charCodeAt(c+1)]>>4,n[a++]=t&255),l===1&&(t=Sr[e.charCodeAt(c)]<<10|Sr[e.charCodeAt(c+1)]<<4|Sr[e.charCodeAt(c+2)]>>2,n[a++]=t>>8&255,n[a++]=t&255),n}function E9(e){return ll[e>>18&63]+ll[e>>12&63]+ll[e>>6&63]+ll[e&63]}function $9(e,t,o){for(var r,l=[],n=t;ni?i:a+n));return r===1?(t=e[o-1],l.push(ll[t>>2]+ll[t<<4&63]+"==")):r===2&&(t=(e[o-2]<<8)+e[o-1],l.push(ll[t>>10]+ll[t>>4&63]+ll[t<<2&63]+"=")),l.join("")}var df={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */df.read=function(e,t,o,r,l){var n,a,i=l*8-r-1,c=(1<>1,d=-7,p=o?l-1:0,f=o?-1:1,v=e[t+p];for(p+=f,n=v&(1<<-d)-1,v>>=-d,d+=i;d>0;n=n*256+e[t+p],p+=f,d-=8);for(a=n&(1<<-d)-1,n>>=-d,d+=r;d>0;a=a*256+e[t+p],p+=f,d-=8);if(n===0)n=1-u;else{if(n===c)return a?NaN:(v?-1:1)*(1/0);a=a+Math.pow(2,r),n=n-u}return(v?-1:1)*a*Math.pow(2,n-r)},df.write=function(e,t,o,r,l,n){var a,i,c,u=n*8-l-1,d=(1<>1,f=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:n-1,m=r?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+p>=1?t+=f/c:t+=f*Math.pow(2,1-p),t*c>=2&&(a++,c/=2),a+p>=d?(i=0,a=d):a+p>=1?(i=(t*c-1)*Math.pow(2,l),a=a+p):(i=t*Math.pow(2,p-1)*Math.pow(2,l),a=0));l>=8;e[o+v]=i&255,v+=m,i/=256,l-=8);for(a=a<0;e[o+v]=a&255,v+=m,a/=256,u-=8);e[o+v-m]|=h*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(e){const t=lu,o=sf,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=M,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:n,ArrayBuffer:a,SharedArrayBuffer:i}=globalThis;p.TYPED_ARRAY_SUPPORT=c(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function c(){try{const Y=new n(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,n.prototype),Object.setPrototypeOf(Y,C),Y.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function u(Y){if(Y>l)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const C=new n(Y);return Object.setPrototypeOf(C,p.prototype),C}function p(Y,C,S){if(typeof Y=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(Y)}return d(Y,C,S)}p.poolSize=8192;function d(Y,C,S){if(typeof Y=="string")return h(Y,C);if(a.isView(Y))return g(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Ee(Y,a)||Y&&Ee(Y.buffer,a)||typeof i<"u"&&(Ee(Y,i)||Y&&Ee(Y.buffer,i)))return y(Y,C,S);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=Y.valueOf&&Y.valueOf();if(H!=null&&H!==Y)return p.from(H,C,S);const ee=w(Y);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return p.from(Y[Symbol.toPrimitive]("string"),C,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}p.from=function(Y,C,S){return d(Y,C,S)},Object.setPrototypeOf(p.prototype,n.prototype),Object.setPrototypeOf(p,n);function f(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function v(Y,C,S){return f(Y),Y<=0?u(Y):C!==void 0?typeof S=="string"?u(Y).fill(C,S):u(Y).fill(C):u(Y)}p.alloc=function(Y,C,S){return v(Y,C,S)};function m(Y){return f(Y),u(Y<0?0:x(Y)|0)}p.allocUnsafe=function(Y){return m(Y)},p.allocUnsafeSlow=function(Y){return m(Y)};function h(Y,C){if((typeof C!="string"||C==="")&&(C="utf8"),!p.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const S=T(Y,C)|0;let H=u(S);const ee=H.write(Y,C);return ee!==S&&(H=H.slice(0,ee)),H}function _(Y){const C=Y.length<0?0:x(Y.length)|0,S=u(C);for(let H=0;H=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return Y|0}function M(Y){return+Y!=Y&&(Y=0),p.alloc(+Y)}p.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==p.prototype},p.compare=function(C,S){if(Ee(C,n)&&(C=p.from(C,C.offset,C.byteLength)),Ee(S,n)&&(S=p.from(S,S.offset,S.byteLength)),!p.isBuffer(C)||!p.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===S)return 0;let H=C.length,ee=S.length;for(let U=0,he=Math.min(H,ee);Uee.length?(p.isBuffer(he)||(he=p.from(he)),he.copy(ee,U)):n.prototype.set.call(ee,he,U);else if(p.isBuffer(he))he.copy(ee,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=he.length}return ee};function T(Y,C){if(p.isBuffer(Y))return Y.length;if(a.isView(Y)||Ee(Y,a))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const S=Y.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&S===0)return 0;let ee=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return ke(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return qe(Y).length;default:if(ee)return H?-1:ke(Y).length;C=(""+C).toLowerCase(),ee=!0}}p.byteLength=T;function O(Y,C,S){let H=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,C>>>=0,S<=C))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return ie(this,C,S);case"utf8":case"utf-8":return L(this,C,S);case"ascii":return W(this,C,S);case"latin1":case"binary":return re(this,C,S);case"base64":return J(this,C,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,C,S);default:if(H)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),H=!0}}p.prototype._isBuffer=!0;function I(Y,C,S){const H=Y[C];Y[C]=Y[S],Y[S]=H}p.prototype.swap16=function(){const C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(C+=" ... "),""},r&&(p.prototype[r]=p.prototype.inspect),p.prototype.compare=function(C,S,H,ee,U){if(Ee(C,n)&&(C=p.from(C,C.offset,C.byteLength)),!p.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(S===void 0&&(S=0),H===void 0&&(H=C?C.length:0),ee===void 0&&(ee=0),U===void 0&&(U=this.length),S<0||H>C.length||ee<0||U>this.length)throw new RangeError("out of range index");if(ee>=U&&S>=H)return 0;if(ee>=U)return-1;if(S>=H)return 1;if(S>>>=0,H>>>=0,ee>>>=0,U>>>=0,this===C)return 0;let he=U-ee,Ue=H-S;const st=Math.min(he,Ue),At=this.slice(ee,U),Mt=C.slice(S,H);for(let Lt=0;Lt2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,We(S)&&(S=ee?0:Y.length-1),S<0&&(S=Y.length+S),S>=Y.length){if(ee)return-1;S=Y.length-1}else if(S<0)if(ee)S=0;else return-1;if(typeof C=="string"&&(C=p.from(C,H)),p.isBuffer(C))return C.length===0?-1:K(Y,C,S,H,ee);if(typeof C=="number")return C=C&255,typeof n.prototype.indexOf=="function"?ee?n.prototype.indexOf.call(Y,C,S):n.prototype.lastIndexOf.call(Y,C,S):K(Y,[C],S,H,ee);throw new TypeError("val must be string, number or Buffer")}function K(Y,C,S,H,ee){let U=1,he=Y.length,Ue=C.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(Y.length<2||C.length<2)return-1;U=2,he/=2,Ue/=2,S/=2}function st(Mt,Lt){return U===1?Mt[Lt]:Mt.readUInt16BE(Lt*U)}let At;if(ee){let Mt=-1;for(At=S;Athe&&(S=he-Ue),At=S;At>=0;At--){let Mt=!0;for(let Lt=0;Ltee&&(H=ee)):H=ee;const U=C.length;H>U/2&&(H=U/2);let he;for(he=0;he>>0,isFinite(H)?(H=H>>>0,ee===void 0&&(ee="utf8")):(ee=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-S;if((H===void 0||H>U)&&(H=U),C.length>0&&(H<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let he=!1;for(;;)switch(ee){case"hex":return R(this,C,S,H);case"utf8":case"utf-8":return D(this,C,S,H);case"ascii":case"latin1":case"binary":return j(this,C,S,H);case"base64":return Z(this,C,S,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,C,S,H);default:if(he)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),he=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function J(Y,C,S){return C===0&&S===Y.length?t.fromByteArray(Y):t.fromByteArray(Y.slice(C,S))}function L(Y,C,S){S=Math.min(Y.length,S);const H=[];let ee=C;for(;ee239?4:U>223?3:U>191?2:1;if(ee+Ue<=S){let st,At,Mt,Lt;switch(Ue){case 1:U<128&&(he=U);break;case 2:st=Y[ee+1],(st&192)===128&&(Lt=(U&31)<<6|st&63,Lt>127&&(he=Lt));break;case 3:st=Y[ee+1],At=Y[ee+2],(st&192)===128&&(At&192)===128&&(Lt=(U&15)<<12|(st&63)<<6|At&63,Lt>2047&&(Lt<55296||Lt>57343)&&(he=Lt));break;case 4:st=Y[ee+1],At=Y[ee+2],Mt=Y[ee+3],(st&192)===128&&(At&192)===128&&(Mt&192)===128&&(Lt=(U&15)<<18|(st&63)<<12|(At&63)<<6|Mt&63,Lt>65535&&Lt<1114112&&(he=Lt))}}he===null?(he=65533,Ue=1):he>65535&&(he-=65536,H.push(he>>>10&1023|55296),he=56320|he&1023),H.push(he),ee+=Ue}return N(H)}const X=4096;function N(Y){const C=Y.length;if(C<=X)return String.fromCharCode.apply(String,Y);let S="",H=0;for(;HH)&&(S=H);let ee="";for(let U=C;UH&&(C=H),S<0?(S+=H,S<0&&(S=0)):S>H&&(S=H),SS)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(C,S,H){C=C>>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C],U=1,he=0;for(;++he>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C+--S],U=1;for(;S>0&&(U*=256);)ee+=this[C+--S]*U;return ee},p.prototype.readUint8=p.prototype.readUInt8=function(C,S){return C=C>>>0,S||ve(C,1,this.length),this[C]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(C,S){return C=C>>>0,S||ve(C,2,this.length),this[C]|this[C+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(C,S){return C=C>>>0,S||ve(C,2,this.length),this[C]<<8|this[C+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},p.prototype.readBigUInt64LE=dt(function(C){C=C>>>0,Ie(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=S+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,U=this[++C]+this[++C]*2**8+this[++C]*2**16+H*2**24;return BigInt(ee)+(BigInt(U)<>>0,Ie(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=S*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],U=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+H;return(BigInt(ee)<>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C],U=1,he=0;for(;++he=U&&(ee-=Math.pow(2,8*S)),ee},p.prototype.readIntBE=function(C,S,H){C=C>>>0,S=S>>>0,H||ve(C,S,this.length);let ee=S,U=1,he=this[C+--ee];for(;ee>0&&(U*=256);)he+=this[C+--ee]*U;return U*=128,he>=U&&(he-=Math.pow(2,8*S)),he},p.prototype.readInt8=function(C,S){return C=C>>>0,S||ve(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},p.prototype.readInt16LE=function(C,S){C=C>>>0,S||ve(C,2,this.length);const H=this[C]|this[C+1]<<8;return H&32768?H|4294901760:H},p.prototype.readInt16BE=function(C,S){C=C>>>0,S||ve(C,2,this.length);const H=this[C+1]|this[C]<<8;return H&32768?H|4294901760:H},p.prototype.readInt32LE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},p.prototype.readInt32BE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},p.prototype.readBigInt64LE=dt(function(C){C=C>>>0,Ie(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(H<<24);return(BigInt(ee)<>>0,Ie(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=(S<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(ee)<>>0,S||ve(C,4,this.length),o.read(this,C,!0,23,4)},p.prototype.readFloatBE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),o.read(this,C,!1,23,4)},p.prototype.readDoubleLE=function(C,S){return C=C>>>0,S||ve(C,8,this.length),o.read(this,C,!0,52,8)},p.prototype.readDoubleBE=function(C,S){return C=C>>>0,S||ve(C,8,this.length),o.read(this,C,!1,52,8)};function le(Y,C,S,H,ee,U){if(!p.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>ee||CY.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(C,S,H,ee){if(C=+C,S=S>>>0,H=H>>>0,!ee){const Ue=Math.pow(2,8*H)-1;le(this,C,S,H,Ue,0)}let U=1,he=0;for(this[S]=C&255;++he>>0,H=H>>>0,!ee){const Ue=Math.pow(2,8*H)-1;le(this,C,S,H,Ue,0)}let U=H-1,he=1;for(this[S+U]=C&255;--U>=0&&(he*=256);)this[S+U]=C/he&255;return S+H},p.prototype.writeUint8=p.prototype.writeUInt8=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,1,255,0),this[S]=C&255,S+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,65535,0),this[S]=C&255,this[S+1]=C>>>8,S+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,65535,0),this[S]=C>>>8,this[S+1]=C&255,S+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,4294967295,0),this[S+3]=C>>>24,this[S+2]=C>>>16,this[S+1]=C>>>8,this[S]=C&255,S+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,4294967295,0),this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255,S+4};function ge(Y,C,S,H,ee){Ae(C,H,ee,Y,S,7);let U=Number(C&BigInt(4294967295));Y[S++]=U,U=U>>8,Y[S++]=U,U=U>>8,Y[S++]=U,U=U>>8,Y[S++]=U;let he=Number(C>>BigInt(32)&BigInt(4294967295));return Y[S++]=he,he=he>>8,Y[S++]=he,he=he>>8,Y[S++]=he,he=he>>8,Y[S++]=he,S}function _e(Y,C,S,H,ee){Ae(C,H,ee,Y,S,7);let U=Number(C&BigInt(4294967295));Y[S+7]=U,U=U>>8,Y[S+6]=U,U=U>>8,Y[S+5]=U,U=U>>8,Y[S+4]=U;let he=Number(C>>BigInt(32)&BigInt(4294967295));return Y[S+3]=he,he=he>>8,Y[S+2]=he,he=he>>8,Y[S+1]=he,he=he>>8,Y[S]=he,S+8}p.prototype.writeBigUInt64LE=dt(function(C,S=0){return ge(this,C,S,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=dt(function(C,S=0){return _e(this,C,S,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(C,S,H,ee){if(C=+C,S=S>>>0,!ee){const st=Math.pow(2,8*H-1);le(this,C,S,H,st-1,-st)}let U=0,he=1,Ue=0;for(this[S]=C&255;++U>0)-Ue&255;return S+H},p.prototype.writeIntBE=function(C,S,H,ee){if(C=+C,S=S>>>0,!ee){const st=Math.pow(2,8*H-1);le(this,C,S,H,st-1,-st)}let U=H-1,he=1,Ue=0;for(this[S+U]=C&255;--U>=0&&(he*=256);)C<0&&Ue===0&&this[S+U+1]!==0&&(Ue=1),this[S+U]=(C/he>>0)-Ue&255;return S+H},p.prototype.writeInt8=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,1,127,-128),C<0&&(C=255+C+1),this[S]=C&255,S+1},p.prototype.writeInt16LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,32767,-32768),this[S]=C&255,this[S+1]=C>>>8,S+2},p.prototype.writeInt16BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,32767,-32768),this[S]=C>>>8,this[S+1]=C&255,S+2},p.prototype.writeInt32LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,2147483647,-2147483648),this[S]=C&255,this[S+1]=C>>>8,this[S+2]=C>>>16,this[S+3]=C>>>24,S+4},p.prototype.writeInt32BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255,S+4},p.prototype.writeBigInt64LE=dt(function(C,S=0){return ge(this,C,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=dt(function(C,S=0){return _e(this,C,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function me(Y,C,S,H,ee,U){if(S+H>Y.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Be(Y,C,S,H,ee){return C=+C,S=S>>>0,ee||me(Y,C,S,4),o.write(Y,C,S,H,23,4),S+4}p.prototype.writeFloatLE=function(C,S,H){return Be(this,C,S,!0,H)},p.prototype.writeFloatBE=function(C,S,H){return Be(this,C,S,!1,H)};function ye(Y,C,S,H,ee){return C=+C,S=S>>>0,ee||me(Y,C,S,8),o.write(Y,C,S,H,52,8),S+8}p.prototype.writeDoubleLE=function(C,S,H){return ye(this,C,S,!0,H)},p.prototype.writeDoubleBE=function(C,S,H){return ye(this,C,S,!1,H)},p.prototype.copy=function(C,S,H,ee){if(!p.isBuffer(C))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ee&&ee!==0&&(ee=this.length),S>=C.length&&(S=C.length),S||(S=0),ee>0&&ee=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),C.length-S>>0,H=H===void 0?this.length:H>>>0,C||(C=0);let U;if(typeof C=="number")for(U=S;U2**32?ee=ce(String(S)):typeof S=="bigint"&&(ee=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(ee=ce(ee)),ee+="n"),H+=` It must be ${C}. Received ${ee}`,H},RangeError);function ce(Y){let C="",S=Y.length;const H=Y[0]==="-"?1:0;for(;S>=H+4;S-=3)C=`_${Y.slice(S-3,S)}${C}`;return`${Y.slice(0,S)}${C}`}function we(Y,C,S){Ie(C,"offset"),(Y[C]===void 0||Y[C+S]===void 0)&&xe(C,Y.length-(S+1))}function Ae(Y,C,S,H,ee,U){if(Y>S||Y3?C===0||C===BigInt(0)?Ue=`>= 0${he} and < 2${he} ** ${(U+1)*8}${he}`:Ue=`>= -(2${he} ** ${(U+1)*8-1}${he}) and < 2 ** ${(U+1)*8-1}${he}`:Ue=`>= ${C}${he} and <= ${S}${he}`,new Me.ERR_OUT_OF_RANGE("value",Ue,Y)}we(H,ee,U)}function Ie(Y,C){if(typeof Y!="number")throw new Me.ERR_INVALID_ARG_TYPE(C,"number",Y)}function xe(Y,C,S){throw Math.floor(Y)!==Y?(Ie(Y,S),new Me.ERR_OUT_OF_RANGE(S||"offset","an integer",Y)):C<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE(S||"offset",`>= ${S?1:0} and <= ${C}`,Y)}const Ne=/[^+/0-9A-Za-z-_]/g;function Se(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(Ne,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function ke(Y,C){C=C||1/0;let S;const H=Y.length;let ee=null;const U=[];for(let he=0;he55295&&S<57344){if(!ee){if(S>56319){(C-=3)>-1&&U.push(239,191,189);continue}else if(he+1===H){(C-=3)>-1&&U.push(239,191,189);continue}ee=S;continue}if(S<56320){(C-=3)>-1&&U.push(239,191,189),ee=S;continue}S=(ee-55296<<10|S-56320)+65536}else ee&&(C-=3)>-1&&U.push(239,191,189);if(ee=null,S<128){if((C-=1)<0)break;U.push(S)}else if(S<2048){if((C-=2)<0)break;U.push(S>>6|192,S&63|128)}else if(S<65536){if((C-=3)<0)break;U.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((C-=4)<0)break;U.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return U}function $e(Y){const C=[];for(let S=0;S>8,ee=S%256,U.push(ee),U.push(H);return U}function qe(Y){return t.toByteArray(Se(Y))}function Ke(Y,C,S,H){let ee;for(ee=0;ee=C.length||ee>=Y.length);++ee)C[ee+S]=Y[ee];return ee}function Ee(Y,C){return Y instanceof C||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===C.name}function We(Y){return Y!==Y}const nt=function(){const Y="0123456789abcdef",C=new Array(256);for(let S=0;S<16;++S){const H=S*16;for(let ee=0;ee<16;++ee)C[H+ee]=Y[S]+Y[ee]}return C}();function dt(Y){return typeof BigInt>"u"?gt:Y}function gt(){throw new Error("BigInt not supported")}})(Rg);const v9=Rg.Buffer;function Yt(e,t,o,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),r&&(this.request=r),l&&(this.response=l)}Ze.inherits(Yt,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:Ze.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hg=Yt.prototype,Fg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fg[e]={value:e}}),Object.defineProperties(Yt,Fg),Object.defineProperty(Hg,"isAxiosError",{value:!0}),Yt.from=(e,t,o,r,l,n)=>{const a=Object.create(Hg);return Ze.toFlatObject(e,a,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),Yt.call(a,e.message,t,o,r,l),a.cause=e,a.name=e.name,n&&Object.assign(a,n),a};const m9=null;function cf(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function Dg(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function jg(e,t,o){return e?e.concat(t).map(function(l,n){return l=Dg(l),!o&&n?"["+l+"]":l}).join(o?".":""):t}function g9(e){return Ze.isArray(e)&&!e.some(cf)}const b9=Ze.toFlatObject(Ze,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,o){if(!Ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=Ze.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!Ze.isUndefined(_[h])});const r=o.metaTokens,l=o.visitor||p,n=o.dots,a=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&Ze.isSpecCompliantForm(t);if(!Ze.isFunction(l))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(Ze.isDate(m))return m.toISOString();if(!c&&Ze.isBlob(m))throw new Yt("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(m)||Ze.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):v9.from(m):m}function p(m,h,_){let g=m;if(m&&!_&&typeof m=="object"){if(Ze.endsWith(h,"{}"))h=r?h:h.slice(0,-2),m=JSON.stringify(m);else if(Ze.isArray(m)&&g9(m)||(Ze.isFileList(m)||Ze.endsWith(h,"[]"))&&(g=Ze.toArray(m)))return h=Dg(h),g.forEach(function(w,x){!(Ze.isUndefined(w)||w===null)&&t.append(a===!0?jg([h],x,n):a===null?h:h+"[]",u(w))}),!1}return cf(m)?!0:(t.append(jg(_,h,n),u(m)),!1)}const d=[],f=Object.assign(b9,{defaultVisitor:p,convertValue:u,isVisitable:cf});function v(m,h){if(!Ze.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(m),Ze.forEach(m,function(g,y){(!(Ze.isUndefined(g)||g===null)&&l.call(t,g,Ze.isString(y)?y.trim():y,h,f))===!0&&v(g,h?h.concat(y):[y])}),d.pop()}}if(!Ze.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Kg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uf(e,t){this._pairs=[],e&&nu(e,this,t)}const Wg=uf.prototype;Wg.append=function(t,o){this._pairs.push([t,o])},Wg.toString=function(t){const o=t?function(r){return t.call(this,r,Kg)}:Kg;return this._pairs.map(function(l){return o(l[0])+"="+o(l[1])},"").join("&")};function _9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ug(e,t,o){if(!t)return e;const r=o&&o.encode||_9,l=o&&o.serialize;let n;if(l?n=l(t,o):n=Ze.isURLSearchParams(t)?t.toString():new uf(t,o).toString(r),n){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class qg{constructor(){this.handlers=[]}use(t,o,r){return this.handlers.push({fulfilled:t,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ze.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Yg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w9={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:uf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Gg=typeof window<"u"&&typeof document<"u",y9=(e=>Gg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),x9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rl={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gg,hasStandardBrowserEnv:y9,hasStandardBrowserWebWorkerEnv:x9},Symbol.toStringTag,{value:"Module"})),...w9};function k9(e,t){return nu(e,new rl.classes.URLSearchParams,Object.assign({visitor:function(o,r,l,n){return rl.isNode&&Ze.isBuffer(o)?(this.append(r,o.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function C9(e){return Ze.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function S9(e){const t={},o=Object.keys(e);let r;const l=o.length;let n;for(r=0;r=o.length;return a=!a&&Ze.isArray(l)?l.length:a,c?(Ze.hasOwnProp(l,a)?l[a]=[l[a],r]:l[a]=r,!i):((!l[a]||!Ze.isObject(l[a]))&&(l[a]=[]),t(o,r,l[a],n)&&Ze.isArray(l[a])&&(l[a]=S9(l[a])),!i)}if(Ze.isFormData(e)&&Ze.isFunction(e.entries)){const o={};return Ze.forEachEntry(e,(r,l)=>{t(C9(r),l,o,0)}),o}return null}function E9(e,t,o){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(o||JSON.stringify)(e)}const df={transitional:Yg,adapter:["xhr","http"],transformRequest:[function(t,o){const r=o.getContentType()||"",l=r.indexOf("application/json")>-1,n=Ze.isObject(t);if(n&&Ze.isHTMLForm(t)&&(t=new FormData(t)),Ze.isFormData(t))return l&&l?JSON.stringify(Xg(t)):t;if(Ze.isArrayBuffer(t)||Ze.isBuffer(t)||Ze.isStream(t)||Ze.isFile(t)||Ze.isBlob(t))return t;if(Ze.isArrayBufferView(t))return t.buffer;if(Ze.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return k9(t,this.formSerializer).toString();if((i=Ze.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return nu(i?{"files[]":t}:t,c&&new c,this.formSerializer)}}return n||l?(o.setContentType("application/json",!1),E9(t)):t}],transformResponse:[function(t){const o=this.transitional||df.transitional,r=o&&o.forcedJSONParsing,l=this.responseType==="json";if(t&&Ze.isString(t)&&(r&&!this.responseType||l)){const a=!(o&&o.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?Yt.from(i,Yt.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rl.classes.FormData,Blob:rl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],e=>{df.headers[e]={}});const pf=df,$9=Ze.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"]),T9=e=>{const t={};let o,r,l;return e&&e.split(` -`).forEach(function(a){l=a.indexOf(":"),o=a.substring(0,l).trim().toLowerCase(),r=a.substring(l+1).trim(),!(!o||t[o]&&$9[o])&&(o==="set-cookie"?t[o]?t[o].push(r):t[o]=[r]:t[o]=t[o]?t[o]+", "+r:r)}),t},Zg=Symbol("internals");function rs(e){return e&&String(e).trim().toLowerCase()}function au(e){return e===!1||e==null?e:Ze.isArray(e)?e.map(au):String(e)}function z9(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(e);)t[r[1]]=r[2];return t}const M9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ff(e,t,o,r,l){if(Ze.isFunction(r))return r.call(this,t,o);if(l&&(t=o),!!Ze.isString(t)){if(Ze.isString(r))return t.indexOf(r)!==-1;if(Ze.isRegExp(r))return r.test(t)}}function A9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,r)=>o.toUpperCase()+r)}function I9(e,t){const o=Ze.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+o,{value:function(l,n,a){return this[r].call(this,t,l,n,a)},configurable:!0})})}class iu{constructor(t){t&&this.set(t)}set(t,o,r){const l=this;function n(i,c,u){const p=rs(c);if(!p)throw new Error("header name must be a non-empty string");const d=Ze.findKey(l,p);(!d||l[d]===void 0||u===!0||u===void 0&&l[d]!==!1)&&(l[d||c]=au(i))}const a=(i,c)=>Ze.forEach(i,(u,p)=>n(u,p,c));return Ze.isPlainObject(t)||t instanceof this.constructor?a(t,o):Ze.isString(t)&&(t=t.trim())&&!M9(t)?a(T9(t),o):t!=null&&n(o,t,r),this}get(t,o){if(t=rs(t),t){const r=Ze.findKey(this,t);if(r){const l=this[r];if(!o)return l;if(o===!0)return z9(l);if(Ze.isFunction(o))return o.call(this,l,r);if(Ze.isRegExp(o))return o.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=rs(t),t){const r=Ze.findKey(this,t);return!!(r&&this[r]!==void 0&&(!o||ff(this,this[r],r,o)))}return!1}delete(t,o){const r=this;let l=!1;function n(a){if(a=rs(a),a){const i=Ze.findKey(r,a);i&&(!o||ff(r,r[i],i,o))&&(delete r[i],l=!0)}}return Ze.isArray(t)?t.forEach(n):n(t),l}clear(t){const o=Object.keys(this);let r=o.length,l=!1;for(;r--;){const n=o[r];(!t||ff(this,this[n],n,t,!0))&&(delete this[n],l=!0)}return l}normalize(t){const o=this,r={};return Ze.forEach(this,(l,n)=>{const a=Ze.findKey(r,n);if(a){o[a]=au(l),delete o[n];return}const i=t?A9(n):String(n).trim();i!==n&&delete o[n],o[i]=au(l),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return Ze.forEach(this,(r,l)=>{r!=null&&r!==!1&&(o[l]=t&&Ze.isArray(r)?r.join(", "):r)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Zg]=this[Zg]={accessors:{}}).accessors,l=this.prototype;function n(a){const i=rs(a);r[i]||(I9(l,a),r[i]=!0)}return Ze.isArray(t)?t.forEach(n):n(t),this}}iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ze.reduceDescriptors(iu.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}}),Ze.freezeMethods(iu);const Al=iu;function hf(e,t){const o=this||pf,r=t||o,l=Al.from(r.headers);let n=r.data;return Ze.forEach(e,function(i){n=i.call(o,n,l.normalize(),t?t.status:void 0)}),l.normalize(),n}function Jg(e){return!!(e&&e.__CANCEL__)}function ls(e,t,o){Yt.call(this,e??"canceled",Yt.ERR_CANCELED,t,o),this.name="CanceledError"}Ze.inherits(ls,Yt,{__CANCEL__:!0});function O9(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new Yt("Request failed with status code "+o.status,[Yt.ERR_BAD_REQUEST,Yt.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const P9=rl.hasStandardBrowserEnv?{write(e,t,o,r,l,n){const a=[e+"="+encodeURIComponent(t)];Ze.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),Ze.isString(r)&&a.push("path="+r),Ze.isString(l)&&a.push("domain="+l),n===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function B9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function N9(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Qg(e,t){return e&&!B9(t)?N9(e,t):t}const L9=rl.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let r;function l(n){let a=n;return t&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return r=l(window.location.href),function(a){const i=Ze.isString(a)?l(a):a;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function R9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function V9(e,t){e=e||10;const o=new Array(e),r=new Array(e);let l=0,n=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),p=r[n];a||(a=u),o[l]=c,r[l]=u;let d=n,f=0;for(;d!==l;)f+=o[d++],d=d%e;if(l=(l+1)%e,l===n&&(n=(n+1)%e),u-a{const n=l.loaded,a=l.lengthComputable?l.total:void 0,i=n-o,c=r(i),u=n<=a;o=n;const p={loaded:n,total:a,progress:a?n/a:void 0,bytes:i,rate:c||void 0,estimated:c&&a&&u?(a-n)/c:void 0,event:l};p[t?"download":"upload"]=!0,e(p)}}const vf={http:m9,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,r){let l=e.data;const n=Al.from(e.headers).normalize();let{responseType:a,withXSRFToken:i}=e,c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let p;if(Ze.isFormData(l)){if(rl.hasStandardBrowserEnv||rl.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((p=n.getContentType())!==!1){const[h,..._]=p?p.split(";").map(g=>g.trim()).filter(Boolean):[];n.setContentType([h||"multipart/form-data",..._].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(h+":"+_))}const f=Qg(e.baseURL,e.url);d.open(e.method.toUpperCase(),Ug(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function v(){if(!d)return;const h=Al.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};O9(function(w){o(w),u()},function(w){r(w),u()},g),d=null}if("onloadend"in d?d.onloadend=v:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(v)},d.onabort=function(){d&&(r(new Yt("Request aborted",Yt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new Yt("Network Error",Yt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let _=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Yg;e.timeoutErrorMessage&&(_=e.timeoutErrorMessage),r(new Yt(_,g.clarifyTimeoutError?Yt.ETIMEDOUT:Yt.ECONNABORTED,e,d)),d=null},rl.hasStandardBrowserEnv&&(i&&Ze.isFunction(i)&&(i=i(e)),i||i!==!1&&L9(f))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&P9.read(e.xsrfCookieName);h&&n.set(e.xsrfHeaderName,h)}l===void 0&&n.setContentType(null),"setRequestHeader"in d&&Ze.forEach(n.toJSON(),function(_,g){d.setRequestHeader(g,_)}),Ze.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&a!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",e1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",e1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=h=>{d&&(r(!h||h.type?new ls(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const m=R9(f);if(m&&rl.protocols.indexOf(m)===-1){r(new Yt("Unsupported protocol "+m+":",Yt.ERR_BAD_REQUEST,e));return}d.send(l||null)})}};Ze.forEach(vf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const t1=e=>`- ${e}`,H9=e=>Ze.isFunction(e)||e===null||e===!1,o1={getAdapter:e=>{e=Ze.isArray(e)?e:[e];const{length:t}=e;let o,r;const l={};for(let n=0;n`adapter ${i} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?n.length>1?`since : -`+n.map(t1).join(` -`):" "+t1(n[0]):"as no adapter specified";throw new Yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:vf};function mf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ls(null,e)}function r1(e){return mf(e),e.headers=Al.from(e.headers),e.data=hf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),o1.getAdapter(e.adapter||pf.adapter)(e).then(function(r){return mf(e),r.data=hf.call(e,e.transformResponse,r),r.headers=Al.from(r.headers),r},function(r){return Jg(r)||(mf(e),r&&r.response&&(r.response.data=hf.call(e,e.transformResponse,r.response),r.response.headers=Al.from(r.response.headers))),Promise.reject(r)})}const l1=e=>e instanceof Al?e.toJSON():e;function Ha(e,t){t=t||{};const o={};function r(u,p,d){return Ze.isPlainObject(u)&&Ze.isPlainObject(p)?Ze.merge.call({caseless:d},u,p):Ze.isPlainObject(p)?Ze.merge({},p):Ze.isArray(p)?p.slice():p}function l(u,p,d){if(Ze.isUndefined(p)){if(!Ze.isUndefined(u))return r(void 0,u,d)}else return r(u,p,d)}function n(u,p){if(!Ze.isUndefined(p))return r(void 0,p)}function a(u,p){if(Ze.isUndefined(p)){if(!Ze.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function i(u,p,d){if(d in t)return r(u,p);if(d in e)return r(void 0,u)}const c={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(u,p)=>l(l1(u),l1(p),!0)};return Ze.forEach(Object.keys(Object.assign({},e,t)),function(p){const d=c[p]||l,f=d(e[p],t[p],p);Ze.isUndefined(f)&&d!==i||(o[p]=f)}),o}const n1="1.6.3",gf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const a1={};gf.transitional=function(t,o,r){function l(n,a){return"[Axios v"+n1+"] Transitional option '"+n+"'"+a+(r?". "+r:"")}return(n,a,i)=>{if(t===!1)throw new Yt(l(a," has been removed"+(o?" in "+o:"")),Yt.ERR_DEPRECATED);return o&&!a1[a]&&(a1[a]=!0,console.warn(l(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(n,a,i):!0}};function F9(e,t,o){if(typeof e!="object")throw new Yt("options must be an object",Yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const n=r[l],a=t[n];if(a){const i=e[n],c=i===void 0||a(i,n,e);if(c!==!0)throw new Yt("option "+n+" must be "+c,Yt.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Yt("Unknown option "+n,Yt.ERR_BAD_OPTION)}}const bf={assertOptions:F9,validators:gf},vn=bf.validators;class su{constructor(t){this.defaults=t,this.interceptors={request:new qg,response:new qg}}request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Ha(this.defaults,o);const{transitional:r,paramsSerializer:l,headers:n}=o;r!==void 0&&bf.assertOptions(r,{silentJSONParsing:vn.transitional(vn.boolean),forcedJSONParsing:vn.transitional(vn.boolean),clarifyTimeoutError:vn.transitional(vn.boolean)},!1),l!=null&&(Ze.isFunction(l)?o.paramsSerializer={serialize:l}:bf.assertOptions(l,{encode:vn.function,serialize:vn.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=n&&Ze.merge(n.common,n[o.method]);n&&Ze.forEach(["delete","get","head","post","put","patch","common"],m=>{delete n[m]}),o.headers=Al.concat(a,n);const i=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(c=c&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let p,d=0,f;if(!c){const m=[r1.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,u),f=m.length,p=Promise.resolve(o);d{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](l);r._listeners=null}),this.promise.then=l=>{let n;const a=new Promise(i=>{r.subscribe(i),n=i}).then(l);return a.cancel=function(){r.unsubscribe(n)},a},t(function(n,a,i){r.reason||(r.reason=new ls(n,a,i),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new _f(function(l){t=l}),cancel:t}}}const D9=_f;function j9(e){return function(o){return e.apply(null,o)}}function K9(e){return Ze.isObject(e)&&e.isAxiosError===!0}const wf={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(wf).forEach(([e,t])=>{wf[t]=e});const W9=wf;function i1(e){const t=new cu(e),o=Tg(cu.prototype.request,t);return Ze.extend(o,cu.prototype,t,{allOwnKeys:!0}),Ze.extend(o,t,null,{allOwnKeys:!0}),o.create=function(l){return i1(Ha(e,l))},o}const co=i1(pf);co.Axios=cu,co.CanceledError=ls,co.CancelToken=D9,co.isCancel=Jg,co.VERSION=n1,co.toFormData=nu,co.AxiosError=Yt,co.Cancel=co.CanceledError,co.all=function(t){return Promise.all(t)},co.spread=j9,co.isAxiosError=K9,co.mergeConfig=Ha,co.AxiosHeaders=Al,co.formToJSON=e=>Xg(Ze.isHTMLForm(e)?new FormData(e):e),co.getAdapter=o1.getAdapter,co.HttpStatusCode=W9,co.default=co;let Fa=null;function U9(e){Fa=e}function _ue(e){}const q9=["innerHTML"],Y9={__name:"PaymentAmount",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$store"),l=Le("$events"),n=Le("$helpers"),a=r.config,i=r.payment,c=i.get.order,u=i.get.network,p=$(()=>{if(i.isPaymentAmountUpdating)return"...";if(o.discountRates[c.paymentCurrency.symbol]){let _=c.paymentAmount||0,y=o.discountRates[c.paymentCurrency.symbol];return` + */(function(e){const t=lu,o=df,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=d,e.SlowBuffer=M,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:n,ArrayBuffer:a,SharedArrayBuffer:i}=globalThis;d.TYPED_ARRAY_SUPPORT=c(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function c(){try{const Y=new n(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,n.prototype),Object.setPrototypeOf(Y,C),Y.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function u(Y){if(Y>l)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const C=new n(Y);return Object.setPrototypeOf(C,d.prototype),C}function d(Y,C,S){if(typeof Y=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(Y)}return p(Y,C,S)}d.poolSize=8192;function p(Y,C,S){if(typeof Y=="string")return h(Y,C);if(a.isView(Y))return g(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Ee(Y,a)||Y&&Ee(Y.buffer,a)||typeof i<"u"&&(Ee(Y,i)||Y&&Ee(Y.buffer,i)))return y(Y,C,S);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=Y.valueOf&&Y.valueOf();if(H!=null&&H!==Y)return d.from(H,C,S);const ee=w(Y);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return d.from(Y[Symbol.toPrimitive]("string"),C,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}d.from=function(Y,C,S){return p(Y,C,S)},Object.setPrototypeOf(d.prototype,n.prototype),Object.setPrototypeOf(d,n);function f(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function v(Y,C,S){return f(Y),Y<=0?u(Y):C!==void 0?typeof S=="string"?u(Y).fill(C,S):u(Y).fill(C):u(Y)}d.alloc=function(Y,C,S){return v(Y,C,S)};function m(Y){return f(Y),u(Y<0?0:x(Y)|0)}d.allocUnsafe=function(Y){return m(Y)},d.allocUnsafeSlow=function(Y){return m(Y)};function h(Y,C){if((typeof C!="string"||C==="")&&(C="utf8"),!d.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const S=E(Y,C)|0;let H=u(S);const ee=H.write(Y,C);return ee!==S&&(H=H.slice(0,ee)),H}function _(Y){const C=Y.length<0?0:x(Y.length)|0,S=u(C);for(let H=0;H=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return Y|0}function M(Y){return+Y!=Y&&(Y=0),d.alloc(+Y)}d.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==d.prototype},d.compare=function(C,S){if(Ee(C,n)&&(C=d.from(C,C.offset,C.byteLength)),Ee(S,n)&&(S=d.from(S,S.offset,S.byteLength)),!d.isBuffer(C)||!d.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===S)return 0;let H=C.length,ee=S.length;for(let U=0,he=Math.min(H,ee);Uee.length?(d.isBuffer(he)||(he=d.from(he)),he.copy(ee,U)):n.prototype.set.call(ee,he,U);else if(d.isBuffer(he))he.copy(ee,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=he.length}return ee};function E(Y,C){if(d.isBuffer(Y))return Y.length;if(a.isView(Y)||Ee(Y,a))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const S=Y.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&S===0)return 0;let ee=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return ke(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ye(Y).length;default:if(ee)return H?-1:ke(Y).length;C=(""+C).toLowerCase(),ee=!0}}d.byteLength=E;function I(Y,C,S){let H=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,C>>>=0,S<=C))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return ie(this,C,S);case"utf8":case"utf-8":return L(this,C,S);case"ascii":return W(this,C,S);case"latin1":case"binary":return re(this,C,S);case"base64":return J(this,C,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,C,S);default:if(H)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),H=!0}}d.prototype._isBuffer=!0;function O(Y,C,S){const H=Y[C];Y[C]=Y[S],Y[S]=H}d.prototype.swap16=function(){const C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(C+=" ... "),""},r&&(d.prototype[r]=d.prototype.inspect),d.prototype.compare=function(C,S,H,ee,U){if(Ee(C,n)&&(C=d.from(C,C.offset,C.byteLength)),!d.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(S===void 0&&(S=0),H===void 0&&(H=C?C.length:0),ee===void 0&&(ee=0),U===void 0&&(U=this.length),S<0||H>C.length||ee<0||U>this.length)throw new RangeError("out of range index");if(ee>=U&&S>=H)return 0;if(ee>=U)return-1;if(S>=H)return 1;if(S>>>=0,H>>>=0,ee>>>=0,U>>>=0,this===C)return 0;let he=U-ee,qe=H-S;const st=Math.min(he,qe),At=this.slice(ee,U),Mt=C.slice(S,H);for(let Lt=0;Lt2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ue(S)&&(S=ee?0:Y.length-1),S<0&&(S=Y.length+S),S>=Y.length){if(ee)return-1;S=Y.length-1}else if(S<0)if(ee)S=0;else return-1;if(typeof C=="string"&&(C=d.from(C,H)),d.isBuffer(C))return C.length===0?-1:K(Y,C,S,H,ee);if(typeof C=="number")return C=C&255,typeof n.prototype.indexOf=="function"?ee?n.prototype.indexOf.call(Y,C,S):n.prototype.lastIndexOf.call(Y,C,S):K(Y,[C],S,H,ee);throw new TypeError("val must be string, number or Buffer")}function K(Y,C,S,H,ee){let U=1,he=Y.length,qe=C.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(Y.length<2||C.length<2)return-1;U=2,he/=2,qe/=2,S/=2}function st(Mt,Lt){return U===1?Mt[Lt]:Mt.readUInt16BE(Lt*U)}let At;if(ee){let Mt=-1;for(At=S;Athe&&(S=he-qe),At=S;At>=0;At--){let Mt=!0;for(let Lt=0;Ltee&&(H=ee)):H=ee;const U=C.length;H>U/2&&(H=U/2);let he;for(he=0;he>>0,isFinite(H)?(H=H>>>0,ee===void 0&&(ee="utf8")):(ee=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-S;if((H===void 0||H>U)&&(H=U),C.length>0&&(H<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let he=!1;for(;;)switch(ee){case"hex":return R(this,C,S,H);case"utf8":case"utf-8":return D(this,C,S,H);case"ascii":case"latin1":case"binary":return j(this,C,S,H);case"base64":return Z(this,C,S,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,C,S,H);default:if(he)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),he=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function J(Y,C,S){return C===0&&S===Y.length?t.fromByteArray(Y):t.fromByteArray(Y.slice(C,S))}function L(Y,C,S){S=Math.min(Y.length,S);const H=[];let ee=C;for(;ee239?4:U>223?3:U>191?2:1;if(ee+qe<=S){let st,At,Mt,Lt;switch(qe){case 1:U<128&&(he=U);break;case 2:st=Y[ee+1],(st&192)===128&&(Lt=(U&31)<<6|st&63,Lt>127&&(he=Lt));break;case 3:st=Y[ee+1],At=Y[ee+2],(st&192)===128&&(At&192)===128&&(Lt=(U&15)<<12|(st&63)<<6|At&63,Lt>2047&&(Lt<55296||Lt>57343)&&(he=Lt));break;case 4:st=Y[ee+1],At=Y[ee+2],Mt=Y[ee+3],(st&192)===128&&(At&192)===128&&(Mt&192)===128&&(Lt=(U&15)<<18|(st&63)<<12|(At&63)<<6|Mt&63,Lt>65535&&Lt<1114112&&(he=Lt))}}he===null?(he=65533,qe=1):he>65535&&(he-=65536,H.push(he>>>10&1023|55296),he=56320|he&1023),H.push(he),ee+=qe}return N(H)}const X=4096;function N(Y){const C=Y.length;if(C<=X)return String.fromCharCode.apply(String,Y);let S="",H=0;for(;HH)&&(S=H);let ee="";for(let U=C;UH&&(C=H),S<0?(S+=H,S<0&&(S=0)):S>H&&(S=H),SS)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(C,S,H){C=C>>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C],U=1,he=0;for(;++he>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C+--S],U=1;for(;S>0&&(U*=256);)ee+=this[C+--S]*U;return ee},d.prototype.readUint8=d.prototype.readUInt8=function(C,S){return C=C>>>0,S||ve(C,1,this.length),this[C]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(C,S){return C=C>>>0,S||ve(C,2,this.length),this[C]|this[C+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(C,S){return C=C>>>0,S||ve(C,2,this.length),this[C]<<8|this[C+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},d.prototype.readBigUInt64LE=dt(function(C){C=C>>>0,Oe(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=S+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,U=this[++C]+this[++C]*2**8+this[++C]*2**16+H*2**24;return BigInt(ee)+(BigInt(U)<>>0,Oe(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=S*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],U=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+H;return(BigInt(ee)<>>0,S=S>>>0,H||ve(C,S,this.length);let ee=this[C],U=1,he=0;for(;++he=U&&(ee-=Math.pow(2,8*S)),ee},d.prototype.readIntBE=function(C,S,H){C=C>>>0,S=S>>>0,H||ve(C,S,this.length);let ee=S,U=1,he=this[C+--ee];for(;ee>0&&(U*=256);)he+=this[C+--ee]*U;return U*=128,he>=U&&(he-=Math.pow(2,8*S)),he},d.prototype.readInt8=function(C,S){return C=C>>>0,S||ve(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},d.prototype.readInt16LE=function(C,S){C=C>>>0,S||ve(C,2,this.length);const H=this[C]|this[C+1]<<8;return H&32768?H|4294901760:H},d.prototype.readInt16BE=function(C,S){C=C>>>0,S||ve(C,2,this.length);const H=this[C+1]|this[C]<<8;return H&32768?H|4294901760:H},d.prototype.readInt32LE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},d.prototype.readInt32BE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},d.prototype.readBigInt64LE=dt(function(C){C=C>>>0,Oe(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(H<<24);return(BigInt(ee)<>>0,Oe(C,"offset");const S=this[C],H=this[C+7];(S===void 0||H===void 0)&&xe(C,this.length-8);const ee=(S<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(ee)<>>0,S||ve(C,4,this.length),o.read(this,C,!0,23,4)},d.prototype.readFloatBE=function(C,S){return C=C>>>0,S||ve(C,4,this.length),o.read(this,C,!1,23,4)},d.prototype.readDoubleLE=function(C,S){return C=C>>>0,S||ve(C,8,this.length),o.read(this,C,!0,52,8)},d.prototype.readDoubleBE=function(C,S){return C=C>>>0,S||ve(C,8,this.length),o.read(this,C,!1,52,8)};function le(Y,C,S,H,ee,U){if(!d.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>ee||CY.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(C,S,H,ee){if(C=+C,S=S>>>0,H=H>>>0,!ee){const qe=Math.pow(2,8*H)-1;le(this,C,S,H,qe,0)}let U=1,he=0;for(this[S]=C&255;++he>>0,H=H>>>0,!ee){const qe=Math.pow(2,8*H)-1;le(this,C,S,H,qe,0)}let U=H-1,he=1;for(this[S+U]=C&255;--U>=0&&(he*=256);)this[S+U]=C/he&255;return S+H},d.prototype.writeUint8=d.prototype.writeUInt8=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,1,255,0),this[S]=C&255,S+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,65535,0),this[S]=C&255,this[S+1]=C>>>8,S+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,65535,0),this[S]=C>>>8,this[S+1]=C&255,S+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,4294967295,0),this[S+3]=C>>>24,this[S+2]=C>>>16,this[S+1]=C>>>8,this[S]=C&255,S+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,4294967295,0),this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255,S+4};function ge(Y,C,S,H,ee){Ae(C,H,ee,Y,S,7);let U=Number(C&BigInt(4294967295));Y[S++]=U,U=U>>8,Y[S++]=U,U=U>>8,Y[S++]=U,U=U>>8,Y[S++]=U;let he=Number(C>>BigInt(32)&BigInt(4294967295));return Y[S++]=he,he=he>>8,Y[S++]=he,he=he>>8,Y[S++]=he,he=he>>8,Y[S++]=he,S}function _e(Y,C,S,H,ee){Ae(C,H,ee,Y,S,7);let U=Number(C&BigInt(4294967295));Y[S+7]=U,U=U>>8,Y[S+6]=U,U=U>>8,Y[S+5]=U,U=U>>8,Y[S+4]=U;let he=Number(C>>BigInt(32)&BigInt(4294967295));return Y[S+3]=he,he=he>>8,Y[S+2]=he,he=he>>8,Y[S+1]=he,he=he>>8,Y[S]=he,S+8}d.prototype.writeBigUInt64LE=dt(function(C,S=0){return ge(this,C,S,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=dt(function(C,S=0){return _e(this,C,S,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(C,S,H,ee){if(C=+C,S=S>>>0,!ee){const st=Math.pow(2,8*H-1);le(this,C,S,H,st-1,-st)}let U=0,he=1,qe=0;for(this[S]=C&255;++U>0)-qe&255;return S+H},d.prototype.writeIntBE=function(C,S,H,ee){if(C=+C,S=S>>>0,!ee){const st=Math.pow(2,8*H-1);le(this,C,S,H,st-1,-st)}let U=H-1,he=1,qe=0;for(this[S+U]=C&255;--U>=0&&(he*=256);)C<0&&qe===0&&this[S+U+1]!==0&&(qe=1),this[S+U]=(C/he>>0)-qe&255;return S+H},d.prototype.writeInt8=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,1,127,-128),C<0&&(C=255+C+1),this[S]=C&255,S+1},d.prototype.writeInt16LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,32767,-32768),this[S]=C&255,this[S+1]=C>>>8,S+2},d.prototype.writeInt16BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,2,32767,-32768),this[S]=C>>>8,this[S+1]=C&255,S+2},d.prototype.writeInt32LE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,2147483647,-2147483648),this[S]=C&255,this[S+1]=C>>>8,this[S+2]=C>>>16,this[S+3]=C>>>24,S+4},d.prototype.writeInt32BE=function(C,S,H){return C=+C,S=S>>>0,H||le(this,C,S,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[S]=C>>>24,this[S+1]=C>>>16,this[S+2]=C>>>8,this[S+3]=C&255,S+4},d.prototype.writeBigInt64LE=dt(function(C,S=0){return ge(this,C,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=dt(function(C,S=0){return _e(this,C,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function me(Y,C,S,H,ee,U){if(S+H>Y.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function Be(Y,C,S,H,ee){return C=+C,S=S>>>0,ee||me(Y,C,S,4),o.write(Y,C,S,H,23,4),S+4}d.prototype.writeFloatLE=function(C,S,H){return Be(this,C,S,!0,H)},d.prototype.writeFloatBE=function(C,S,H){return Be(this,C,S,!1,H)};function ye(Y,C,S,H,ee){return C=+C,S=S>>>0,ee||me(Y,C,S,8),o.write(Y,C,S,H,52,8),S+8}d.prototype.writeDoubleLE=function(C,S,H){return ye(this,C,S,!0,H)},d.prototype.writeDoubleBE=function(C,S,H){return ye(this,C,S,!1,H)},d.prototype.copy=function(C,S,H,ee){if(!d.isBuffer(C))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ee&&ee!==0&&(ee=this.length),S>=C.length&&(S=C.length),S||(S=0),ee>0&&ee=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),C.length-S>>0,H=H===void 0?this.length:H>>>0,C||(C=0);let U;if(typeof C=="number")for(U=S;U2**32?ee=ce(String(S)):typeof S=="bigint"&&(ee=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(ee=ce(ee)),ee+="n"),H+=` It must be ${C}. Received ${ee}`,H},RangeError);function ce(Y){let C="",S=Y.length;const H=Y[0]==="-"?1:0;for(;S>=H+4;S-=3)C=`_${Y.slice(S-3,S)}${C}`;return`${Y.slice(0,S)}${C}`}function we(Y,C,S){Oe(C,"offset"),(Y[C]===void 0||Y[C+S]===void 0)&&xe(C,Y.length-(S+1))}function Ae(Y,C,S,H,ee,U){if(Y>S||Y3?C===0||C===BigInt(0)?qe=`>= 0${he} and < 2${he} ** ${(U+1)*8}${he}`:qe=`>= -(2${he} ** ${(U+1)*8-1}${he}) and < 2 ** ${(U+1)*8-1}${he}`:qe=`>= ${C}${he} and <= ${S}${he}`,new Me.ERR_OUT_OF_RANGE("value",qe,Y)}we(H,ee,U)}function Oe(Y,C){if(typeof Y!="number")throw new Me.ERR_INVALID_ARG_TYPE(C,"number",Y)}function xe(Y,C,S){throw Math.floor(Y)!==Y?(Oe(Y,S),new Me.ERR_OUT_OF_RANGE(S||"offset","an integer",Y)):C<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE(S||"offset",`>= ${S?1:0} and <= ${C}`,Y)}const Ne=/[^+/0-9A-Za-z-_]/g;function Se(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(Ne,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function ke(Y,C){C=C||1/0;let S;const H=Y.length;let ee=null;const U=[];for(let he=0;he55295&&S<57344){if(!ee){if(S>56319){(C-=3)>-1&&U.push(239,191,189);continue}else if(he+1===H){(C-=3)>-1&&U.push(239,191,189);continue}ee=S;continue}if(S<56320){(C-=3)>-1&&U.push(239,191,189),ee=S;continue}S=(ee-55296<<10|S-56320)+65536}else ee&&(C-=3)>-1&&U.push(239,191,189);if(ee=null,S<128){if((C-=1)<0)break;U.push(S)}else if(S<2048){if((C-=2)<0)break;U.push(S>>6|192,S&63|128)}else if(S<65536){if((C-=3)<0)break;U.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((C-=4)<0)break;U.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return U}function $e(Y){const C=[];for(let S=0;S>8,ee=S%256,U.push(ee),U.push(H);return U}function Ye(Y){return t.toByteArray(Se(Y))}function Ke(Y,C,S,H){let ee;for(ee=0;ee=C.length||ee>=Y.length);++ee)C[ee+S]=Y[ee];return ee}function Ee(Y,C){return Y instanceof C||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===C.name}function Ue(Y){return Y!==Y}const nt=function(){const Y="0123456789abcdef",C=new Array(256);for(let S=0;S<16;++S){const H=S*16;for(let ee=0;ee<16;++ee)C[H+ee]=Y[S]+Y[ee]}return C}();function dt(Y){return typeof BigInt>"u"?gt:Y}function gt(){throw new Error("BigInt not supported")}})(Kg);const z9=Kg.Buffer;function Dt(e,t,o,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),o&&(this.config=o),r&&(this.request=r),l&&(this.response=l)}We.inherits(Dt,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:We.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ug=Dt.prototype,qg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qg[e]={value:e}}),Object.defineProperties(Dt,qg),Object.defineProperty(Ug,"isAxiosError",{value:!0}),Dt.from=(e,t,o,r,l,n)=>{const a=Object.create(Ug);return We.toFlatObject(e,a,function(c){return c!==Error.prototype},i=>i!=="isAxiosError"),Dt.call(a,e.message,t,o,r,l),a.cause=e,a.name=e.name,n&&Object.assign(a,n),a};const M9=null;function pf(e){return We.isPlainObject(e)||We.isArray(e)}function Yg(e){return We.endsWith(e,"[]")?e.slice(0,-2):e}function Gg(e,t,o){return e?e.concat(t).map(function(l,n){return l=Yg(l),!o&&n?"["+l+"]":l}).join(o?".":""):t}function A9(e){return We.isArray(e)&&!e.some(pf)}const O9=We.toFlatObject(We,{},null,function(t){return/^is[A-Z]/.test(t)});function nu(e,t,o){if(!We.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,o=We.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,_){return!We.isUndefined(_[h])});const r=o.metaTokens,l=o.visitor||d,n=o.dots,a=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&We.isSpecCompliantForm(t);if(!We.isFunction(l))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(We.isDate(m))return m.toISOString();if(!c&&We.isBlob(m))throw new Dt("Blob is not supported. Use a Buffer instead.");return We.isArrayBuffer(m)||We.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):z9.from(m):m}function d(m,h,_){let g=m;if(m&&!_&&typeof m=="object"){if(We.endsWith(h,"{}"))h=r?h:h.slice(0,-2),m=JSON.stringify(m);else if(We.isArray(m)&&A9(m)||(We.isFileList(m)||We.endsWith(h,"[]"))&&(g=We.toArray(m)))return h=Yg(h),g.forEach(function(w,x){!(We.isUndefined(w)||w===null)&&t.append(a===!0?Gg([h],x,n):a===null?h:h+"[]",u(w))}),!1}return pf(m)?!0:(t.append(Gg(_,h,n),u(m)),!1)}const p=[],f=Object.assign(O9,{defaultVisitor:d,convertValue:u,isVisitable:pf});function v(m,h){if(!We.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(m),We.forEach(m,function(g,y){(!(We.isUndefined(g)||g===null)&&l.call(t,g,We.isString(y)?y.trim():y,h,f))===!0&&v(g,h?h.concat(y):[y])}),p.pop()}}if(!We.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Xg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ff(e,t){this._pairs=[],e&&nu(e,this,t)}const Zg=ff.prototype;Zg.append=function(t,o){this._pairs.push([t,o])},Zg.toString=function(t){const o=t?function(r){return t.call(this,r,Xg)}:Xg;return this._pairs.map(function(l){return o(l[0])+"="+o(l[1])},"").join("&")};function I9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jg(e,t,o){if(!t)return e;const r=o&&o.encode||I9,l=o&&o.serialize;let n;if(l?n=l(t,o):n=We.isURLSearchParams(t)?t.toString():new ff(t,o).toString(r),n){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class Qg{constructor(){this.handlers=[]}use(t,o,r){return this.handlers.push({fulfilled:t,rejected:o,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){We.forEach(this.handlers,function(r){r!==null&&t(r)})}}const e1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},P9={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ff,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},hf=typeof window<"u"&&typeof document<"u",B9=(e=>hf&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),N9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L9=hf&&window.location.href||"http://localhost",Fr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hf,hasStandardBrowserEnv:B9,hasStandardBrowserWebWorkerEnv:N9,origin:L9},Symbol.toStringTag,{value:"Module"})),...P9};function R9(e,t){return nu(e,new Fr.classes.URLSearchParams,Object.assign({visitor:function(o,r,l,n){return Fr.isNode&&We.isBuffer(o)?(this.append(r,o.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function V9(e){return We.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H9(e){const t={},o=Object.keys(e);let r;const l=o.length;let n;for(r=0;r=o.length;return a=!a&&We.isArray(l)?l.length:a,c?(We.hasOwnProp(l,a)?l[a]=[l[a],r]:l[a]=r,!i):((!l[a]||!We.isObject(l[a]))&&(l[a]=[]),t(o,r,l[a],n)&&We.isArray(l[a])&&(l[a]=H9(l[a])),!i)}if(We.isFormData(e)&&We.isFunction(e.entries)){const o={};return We.forEachEntry(e,(r,l)=>{t(V9(r),l,o,0)}),o}return null}function F9(e,t,o){if(We.isString(e))try{return(t||JSON.parse)(e),We.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(o||JSON.stringify)(e)}const vf={transitional:e1,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const r=o.getContentType()||"",l=r.indexOf("application/json")>-1,n=We.isObject(t);if(n&&We.isHTMLForm(t)&&(t=new FormData(t)),We.isFormData(t))return l?JSON.stringify(t1(t)):t;if(We.isArrayBuffer(t)||We.isBuffer(t)||We.isStream(t)||We.isFile(t)||We.isBlob(t)||We.isReadableStream(t))return t;if(We.isArrayBufferView(t))return t.buffer;if(We.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return R9(t,this.formSerializer).toString();if((i=We.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return nu(i?{"files[]":t}:t,c&&new c,this.formSerializer)}}return n||l?(o.setContentType("application/json",!1),F9(t)):t}],transformResponse:[function(t){const o=this.transitional||vf.transitional,r=o&&o.forcedJSONParsing,l=this.responseType==="json";if(We.isResponse(t)||We.isReadableStream(t))return t;if(t&&We.isString(t)&&(r&&!this.responseType||l)){const a=!(o&&o.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(i){if(a)throw i.name==="SyntaxError"?Dt.from(i,Dt.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fr.classes.FormData,Blob:Fr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};We.forEach(["delete","get","head","post","put","patch"],e=>{vf.headers[e]={}});const mf=vf,D9=We.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"]),j9=e=>{const t={};let o,r,l;return e&&e.split(` +`).forEach(function(a){l=a.indexOf(":"),o=a.substring(0,l).trim().toLowerCase(),r=a.substring(l+1).trim(),!(!o||t[o]&&D9[o])&&(o==="set-cookie"?t[o]?t[o].push(r):t[o]=[r]:t[o]=t[o]?t[o]+", "+r:r)}),t},o1=Symbol("internals");function ls(e){return e&&String(e).trim().toLowerCase()}function au(e){return e===!1||e==null?e:We.isArray(e)?e.map(au):String(e)}function K9(e){const t=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=o.exec(e);)t[r[1]]=r[2];return t}const W9=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gf(e,t,o,r,l){if(We.isFunction(r))return r.call(this,t,o);if(l&&(t=o),!!We.isString(t)){if(We.isString(r))return t.indexOf(r)!==-1;if(We.isRegExp(r))return r.test(t)}}function U9(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,o,r)=>o.toUpperCase()+r)}function q9(e,t){const o=We.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+o,{value:function(l,n,a){return this[r].call(this,t,l,n,a)},configurable:!0})})}class iu{constructor(t){t&&this.set(t)}set(t,o,r){const l=this;function n(i,c,u){const d=ls(c);if(!d)throw new Error("header name must be a non-empty string");const p=We.findKey(l,d);(!p||l[p]===void 0||u===!0||u===void 0&&l[p]!==!1)&&(l[p||c]=au(i))}const a=(i,c)=>We.forEach(i,(u,d)=>n(u,d,c));if(We.isPlainObject(t)||t instanceof this.constructor)a(t,o);else if(We.isString(t)&&(t=t.trim())&&!W9(t))a(j9(t),o);else if(We.isHeaders(t))for(const[i,c]of t.entries())n(c,i,r);else t!=null&&n(o,t,r);return this}get(t,o){if(t=ls(t),t){const r=We.findKey(this,t);if(r){const l=this[r];if(!o)return l;if(o===!0)return K9(l);if(We.isFunction(o))return o.call(this,l,r);if(We.isRegExp(o))return o.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=ls(t),t){const r=We.findKey(this,t);return!!(r&&this[r]!==void 0&&(!o||gf(this,this[r],r,o)))}return!1}delete(t,o){const r=this;let l=!1;function n(a){if(a=ls(a),a){const i=We.findKey(r,a);i&&(!o||gf(r,r[i],i,o))&&(delete r[i],l=!0)}}return We.isArray(t)?t.forEach(n):n(t),l}clear(t){const o=Object.keys(this);let r=o.length,l=!1;for(;r--;){const n=o[r];(!t||gf(this,this[n],n,t,!0))&&(delete this[n],l=!0)}return l}normalize(t){const o=this,r={};return We.forEach(this,(l,n)=>{const a=We.findKey(r,n);if(a){o[a]=au(l),delete o[n];return}const i=t?U9(n):String(n).trim();i!==n&&delete o[n],o[i]=au(l),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return We.forEach(this,(r,l)=>{r!=null&&r!==!1&&(o[l]=t&&We.isArray(r)?r.join(", "):r)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const r=new this(t);return o.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[o1]=this[o1]={accessors:{}}).accessors,l=this.prototype;function n(a){const i=ls(a);r[i]||(q9(l,a),r[i]=!0)}return We.isArray(t)?t.forEach(n):n(t),this}}iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),We.reduceDescriptors(iu.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[o]=r}}}),We.freezeMethods(iu);const Dr=iu;function bf(e,t){const o=this||mf,r=t||o,l=Dr.from(r.headers);let n=r.data;return We.forEach(e,function(i){n=i.call(o,n,l.normalize(),t?t.status:void 0)}),l.normalize(),n}function r1(e){return!!(e&&e.__CANCEL__)}function Fa(e,t,o){Dt.call(this,e??"canceled",Dt.ERR_CANCELED,t,o),this.name="CanceledError"}We.inherits(Fa,Dt,{__CANCEL__:!0});function l1(e,t,o){const r=o.config.validateStatus;!o.status||!r||r(o.status)?e(o):t(new Dt("Request failed with status code "+o.status,[Dt.ERR_BAD_REQUEST,Dt.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function Y9(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function G9(e,t){e=e||10;const o=new Array(e),r=new Array(e);let l=0,n=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=r[n];a||(a=u),o[l]=c,r[l]=u;let p=n,f=0;for(;p!==l;)f+=o[p++],p=p%e;if(l=(l+1)%e,l===n&&(n=(n+1)%e),u-ar)return l&&(clearTimeout(l),l=null),o=i,e.apply(null,arguments);l||(l=setTimeout(()=>(l=null,o=Date.now(),e.apply(null,arguments)),r-(i-o)))}}const su=(e,t,o=3)=>{let r=0;const l=G9(50,250);return X9(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,c=a-r,u=l(c),d=a<=i;r=a;const p={loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i&&d?(i-a)/u:void 0,event:n,lengthComputable:i!=null};p[t?"download":"upload"]=!0,e(p)},o)},Z9=Fr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let r;function l(n){let a=n;return t&&(o.setAttribute("href",a),a=o.href),o.setAttribute("href",a),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return r=l(window.location.href),function(a){const i=We.isString(a)?l(a):a;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}(),J9=Fr.hasStandardBrowserEnv?{write(e,t,o,r,l,n){const a=[e+"="+encodeURIComponent(t)];We.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),We.isString(r)&&a.push("path="+r),We.isString(l)&&a.push("domain="+l),n===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Q9(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function n1(e,t){return e&&!Q9(t)?eC(e,t):t}const a1=e=>e instanceof Dr?{...e}:e;function Wn(e,t){t=t||{};const o={};function r(u,d,p){return We.isPlainObject(u)&&We.isPlainObject(d)?We.merge.call({caseless:p},u,d):We.isPlainObject(d)?We.merge({},d):We.isArray(d)?d.slice():d}function l(u,d,p){if(We.isUndefined(d)){if(!We.isUndefined(u))return r(void 0,u,p)}else return r(u,d,p)}function n(u,d){if(!We.isUndefined(d))return r(void 0,d)}function a(u,d){if(We.isUndefined(d)){if(!We.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function i(u,d,p){if(p in t)return r(u,d);if(p in e)return r(void 0,u)}const c={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(u,d)=>l(a1(u),a1(d),!0)};return We.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||l,f=p(e[d],t[d],d);We.isUndefined(f)&&p!==i||(o[d]=f)}),o}const i1=e=>{const t=Wn({},e);let{data:o,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:n,headers:a,auth:i}=t;t.headers=a=Dr.from(a),t.url=Jg(n1(t.baseURL,t.url),e.params,e.paramsSerializer),i&&a.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let c;if(We.isFormData(o)){if(Fr.hasStandardBrowserEnv||Fr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Fr.hasStandardBrowserEnv&&(r&&We.isFunction(r)&&(r=r(t)),r||r!==!1&&Z9(t.url))){const u=l&&n&&J9.read(n);u&&a.set(l,u)}return t},tC=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,r){const l=i1(e);let n=l.data;const a=Dr.from(l.headers).normalize();let{responseType:i}=l,c;function u(){l.cancelToken&&l.cancelToken.unsubscribe(c),l.signal&&l.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(l.method.toUpperCase(),l.url,!0),d.timeout=l.timeout;function p(){if(!d)return;const v=Dr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:v,config:e,request:d};l1(function(g){o(g),u()},function(g){r(g),u()},h),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(r(new Dt("Request aborted",Dt.ECONNABORTED,l,d)),d=null)},d.onerror=function(){r(new Dt("Network Error",Dt.ERR_NETWORK,l,d)),d=null},d.ontimeout=function(){let m=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const h=l.transitional||e1;l.timeoutErrorMessage&&(m=l.timeoutErrorMessage),r(new Dt(m,h.clarifyTimeoutError?Dt.ETIMEDOUT:Dt.ECONNABORTED,l,d)),d=null},n===void 0&&a.setContentType(null),"setRequestHeader"in d&&We.forEach(a.toJSON(),function(m,h){d.setRequestHeader(h,m)}),We.isUndefined(l.withCredentials)||(d.withCredentials=!!l.withCredentials),i&&i!=="json"&&(d.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&d.addEventListener("progress",su(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",su(l.onUploadProgress)),(l.cancelToken||l.signal)&&(c=v=>{d&&(r(!v||v.type?new Fa(null,e,d):v),d.abort(),d=null)},l.cancelToken&&l.cancelToken.subscribe(c),l.signal&&(l.signal.aborted?c():l.signal.addEventListener("abort",c)));const f=Y9(l.url);if(f&&Fr.protocols.indexOf(f)===-1){r(new Dt("Unsupported protocol "+f+":",Dt.ERR_BAD_REQUEST,e));return}d.send(n||null)})},oC=(e,t)=>{let o=new AbortController,r;const l=function(c){if(!r){r=!0,a();const u=c instanceof Error?c:this.reason;o.abort(u instanceof Dt?u:new Fa(u instanceof Error?u.message:u))}};let n=t&&setTimeout(()=>{l(new Dt(`timeout ${t} of ms exceeded`,Dt.ETIMEDOUT))},t);const a=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",l):c.unsubscribe(l))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",l));const{signal:i}=o;return i.unsubscribe=a,[i,()=>{n&&clearTimeout(n),n=null}]},rC=function*(e,t){let o=e.byteLength;if(!t||o{const n=lC(e,t,l);let a=0;return new ReadableStream({type:"bytes",async pull(i){const{done:c,value:u}=await n.next();if(c){i.close(),r();return}let d=u.byteLength;o&&o(a+=d),i.enqueue(new Uint8Array(u))},cancel(i){return r(i),n.return()}},{highWaterMark:2})},c1=(e,t)=>{const o=e!=null;return r=>setTimeout(()=>t({lengthComputable:o,total:e,loaded:r}))},cu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",u1=cu&&typeof ReadableStream=="function",_f=cu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),nC=u1&&(()=>{let e=!1;const t=new Request(Fr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),d1=64*1024,wf=u1&&!!(()=>{try{return We.isReadableStream(new Response("").body)}catch{}})(),uu={stream:wf&&(e=>e.body)};cu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!uu[t]&&(uu[t]=We.isFunction(e[t])?o=>o[t]():(o,r)=>{throw new Dt(`Response type '${t}' is not supported`,Dt.ERR_NOT_SUPPORT,r)})})})(new Response);const aC=async e=>{if(e==null)return 0;if(We.isBlob(e))return e.size;if(We.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(We.isArrayBufferView(e))return e.byteLength;if(We.isURLSearchParams(e)&&(e=e+""),We.isString(e))return(await _f(e)).byteLength},iC=async(e,t)=>{const o=We.toFiniteNumber(e.getContentLength());return o??aC(t)},yf={http:M9,xhr:tC,fetch:cu&&(async e=>{let{url:t,method:o,data:r,signal:l,cancelToken:n,timeout:a,onDownloadProgress:i,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:f}=i1(e);u=u?(u+"").toLowerCase():"text";let[v,m]=l||n||a?oC([l,n],a):[],h,_;const g=()=>{!h&&setTimeout(()=>{v&&v.unsubscribe()}),h=!0};let y;try{if(c&&nC&&o!=="get"&&o!=="head"&&(y=await iC(d,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),I;We.isFormData(r)&&(I=E.headers.get("content-type"))&&d.setContentType(I),E.body&&(r=s1(E.body,d1,c1(y,su(c)),null,_f))}We.isString(p)||(p=p?"cors":"omit"),_=new Request(t,{...f,signal:v,method:o.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:p});let w=await fetch(_);const x=wf&&(u==="stream"||u==="response");if(wf&&(i||x)){const E={};["status","statusText","headers"].forEach(O=>{E[O]=w[O]});const I=We.toFiniteNumber(w.headers.get("content-length"));w=new Response(s1(w.body,d1,i&&c1(I,su(i,!0)),x&&g,_f),E)}u=u||"text";let M=await uu[We.findKey(uu,u)||"text"](w,e);return!x&&g(),m&&m(),await new Promise((E,I)=>{l1(E,I,{data:M,headers:Dr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(w){throw g(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new Dt("Network Error",Dt.ERR_NETWORK,e,_),{cause:w.cause||w}):Dt.from(w,w&&w.code,e,_)}})};We.forEach(yf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const p1=e=>`- ${e}`,sC=e=>We.isFunction(e)||e===null||e===!1,f1={getAdapter:e=>{e=We.isArray(e)?e:[e];const{length:t}=e;let o,r;const l={};for(let n=0;n`adapter ${i} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?n.length>1?`since : +`+n.map(p1).join(` +`):" "+p1(n[0]):"as no adapter specified";throw new Dt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:yf};function xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fa(null,e)}function h1(e){return xf(e),e.headers=Dr.from(e.headers),e.data=bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),f1.getAdapter(e.adapter||mf.adapter)(e).then(function(r){return xf(e),r.data=bf.call(e,e.transformResponse,r),r.headers=Dr.from(r.headers),r},function(r){return r1(r)||(xf(e),r&&r.response&&(r.response.data=bf.call(e,e.transformResponse,r.response),r.response.headers=Dr.from(r.response.headers))),Promise.reject(r)})}const v1="1.7.2",kf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const m1={};kf.transitional=function(t,o,r){function l(n,a){return"[Axios v"+v1+"] Transitional option '"+n+"'"+a+(r?". "+r:"")}return(n,a,i)=>{if(t===!1)throw new Dt(l(a," has been removed"+(o?" in "+o:"")),Dt.ERR_DEPRECATED);return o&&!m1[a]&&(m1[a]=!0,console.warn(l(a," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(n,a,i):!0}};function cC(e,t,o){if(typeof e!="object")throw new Dt("options must be an object",Dt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const n=r[l],a=t[n];if(a){const i=e[n],c=i===void 0||a(i,n,e);if(c!==!0)throw new Dt("option "+n+" must be "+c,Dt.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Dt("Unknown option "+n,Dt.ERR_BAD_OPTION)}}const Cf={assertOptions:cC,validators:kf},vn=Cf.validators;class du{constructor(t){this.defaults=t,this.interceptors={request:new Qg,response:new Qg}}async request(t,o){try{return await this._request(t,o)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const n=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?n&&!String(r.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+n):r.stack=n}catch{}}throw r}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Wn(this.defaults,o);const{transitional:r,paramsSerializer:l,headers:n}=o;r!==void 0&&Cf.assertOptions(r,{silentJSONParsing:vn.transitional(vn.boolean),forcedJSONParsing:vn.transitional(vn.boolean),clarifyTimeoutError:vn.transitional(vn.boolean)},!1),l!=null&&(We.isFunction(l)?o.paramsSerializer={serialize:l}:Cf.assertOptions(l,{encode:vn.function,serialize:vn.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let a=n&&We.merge(n.common,n[o.method]);n&&We.forEach(["delete","get","head","post","put","patch","common"],m=>{delete n[m]}),o.headers=Dr.concat(a,n);const i=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(c=c&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,p=0,f;if(!c){const m=[h1.bind(this),void 0];for(m.unshift.apply(m,i),m.push.apply(m,u),f=m.length,d=Promise.resolve(o);p{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](l);r._listeners=null}),this.promise.then=l=>{let n;const a=new Promise(i=>{r.subscribe(i),n=i}).then(l);return a.cancel=function(){r.unsubscribe(n)},a},t(function(n,a,i){r.reason||(r.reason=new Fa(n,a,i),o(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const o=this._listeners.indexOf(t);o!==-1&&this._listeners.splice(o,1)}static source(){let t;return{token:new Sf(function(l){t=l}),cancel:t}}}const uC=Sf;function dC(e){return function(o){return e.apply(null,o)}}function pC(e){return We.isObject(e)&&e.isAxiosError===!0}const Ef={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(Ef).forEach(([e,t])=>{Ef[t]=e});const fC=Ef;function g1(e){const t=new pu(e),o=Pg(pu.prototype.request,t);return We.extend(o,pu.prototype,t,{allOwnKeys:!0}),We.extend(o,t,null,{allOwnKeys:!0}),o.create=function(l){return g1(Wn(e,l))},o}const co=g1(mf);co.Axios=pu,co.CanceledError=Fa,co.CancelToken=uC,co.isCancel=r1,co.VERSION=v1,co.toFormData=nu,co.AxiosError=Dt,co.Cancel=co.CanceledError,co.all=function(t){return Promise.all(t)},co.spread=dC,co.isAxiosError=pC,co.mergeConfig=Wn,co.AxiosHeaders=Dr,co.formToJSON=e=>t1(We.isHTMLForm(e)?new FormData(e):e),co.getAdapter=f1.getAdapter,co.HttpStatusCode=fC,co.default=co;let Da=null;function hC(e){Da=e}function Fue(e){}const vC=["innerHTML"],mC={__name:"PaymentAmount",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$store"),l=Le("$events"),n=Le("$helpers"),a=r.config,i=r.payment,c=i.get.order,u=i.get.network,d=T(()=>{if(i.isPaymentAmountUpdating)return"...";if(o.discountRates[c.paymentCurrency.symbol]){let _=c.paymentAmount||0,y=o.discountRates[c.paymentCurrency.symbol];return` ${n.fromPercent(_,y)+" "+c.paymentCurrency.symbol} ${_+" "+c.paymentCurrency.symbol} - `}else return(c.paymentAmount||0)+" "+c.paymentCurrency.symbol}),d=async _=>{if(c.amount==0)return 0;i.setOrderParam("paymentAmount",0);let g=await new Promise(y=>{co.get("/currency-converter",{params:{order:c,network:n.removeNoNeededParams(u)}}).then(w=>{w.data.success?y(w.data.data):y(!1)}).catch(()=>{y(!1)})});return await l.call("currencyConverter",{paymentCurrency:_,paymentAmount:g}),g?i.setOrderParams({paymentAmount:g}):(i.setOrderParam("paymentAmount",0),n.infoPopup(t.convertingError).then(()=>{n.disableScreen(),window.location.reload()})),g};let f=n.clone(c);Te(c,_=>{f&&f.amount!=_.amount&&d(c.paymentCurrency),f=n.clone(_)});const v=_=>{if(a.get.amountUpdateInterval)return;const g=setInterval(async()=>{h(c.paymentCurrency)},o.amountUpdateMin*60*1e3);n.debug.log("Start amount updater: ",g,"event: ",_),a.set("amountUpdateInterval",g)},m=_=>{if(!a.get.amountUpdateInterval)return;const g=a.get.amountUpdateInterval;n.debug.log("Stop amount updater: ",g,"event: ",_),a.stopAmountUpdateInterval()},h=async _=>(n.debug.log("Currency updating: ",_),m("interval"),await d(_),v("interval"),!0);return l.add("selectedCurrency",({newCurrency:_})=>(i.setOrderParams({paymentCurrency:_}),h(_)),"paymentAmount"),l.add("paymentReset",()=>{m("paymentReset")},"paymentAmount"),o.mode=="network"?(l.add("walletListOpened",({eventName:_})=>{m(_)},"paymentAmount"),l.add("walletListClosed",({eventName:_})=>{v(_)},"paymentAmount")):(l.add("walletConnectionRequest",({eventName:_})=>{m(_)},"paymentAmount"),l.add("walletPaymentDeclined, walletConnectionDecliend",({eventName:_})=>{v(_)},"paymentAmount")),vt(()=>{v("mounted")}),(_,g)=>(b(),z("div",{class:"amount-component",innerHTML:p.value},null,8,q9))}},G9=["data-disabled"],s1={__name:"TopHeader",setup(e){const{payment:t,config:o}=Le("$store"),r=t.get.order,l=t.get.network,n=o.get.networks;return(a,i)=>{const c=ot("el-col"),u=ot("el-row");return b(),de(u,{justify:"center",class:"information-row"},{default:ne(()=>[s(r).id?(b(),de(c,{key:0,span:12},{default:ne(()=>[$t(ze(a.$lang.orderId),1)]),_:1})):ue("",!0),s(r).id?(b(),de(c,{key:1,span:12},{default:ne(()=>[$t(ze(s(r).id),1)]),_:1})):ue("",!0),oe(c,{span:12},{default:ne(()=>[$t(ze(a.$lang.orderAmount),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[$t(ze(s(r).amount)+" "+ze(s(r).currency),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[$t(ze(a.$lang.amountToBePaid),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[oe(Y9)]),_:1}),s(l)?(b(),de(c,{key:2,span:12},{default:ne(()=>[$t(ze(a.$lang.selectedNetwork),1)]),_:1})):ue("",!0),s(l)?(b(),de(c,{key:3,span:12},{default:ne(()=>[$t(ze(s(l).name)+" ",1),s(n).length>1?(b(),z("span",{key:0,onClick:i[0]||(i[0]=p=>s(t).$reset()),class:"change-network disable-el","data-disabled":s(t).isPaymentAmountUpdating}," ("+ze(a.$lang.change)+")",9,G9)):ue("",!0)]),_:1})):ue("",!0)]),_:1})}}},X9={class:"currencies"},Z9=["onClick","data-disabled"],J9=["src","alt"],Q9={class:"currency-name"},eC={key:0,class:"discount"},tC={__name:"Payment",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$events"),{payment:l}=Le("$store"),n=Le("container"),a=l.get.order,i=l.get.network,c=i.currencies,u=V(t.payNow),p=f=>a.paymentCurrency.address==f.address?"selected":"",d=async f=>{l.isPaymentAmountUpdating||a.paymentCurrency.symbol==f.symbol||await r.call("selectedCurrency",{newCurrency:f,oldCurrency:a==null?void 0:a.paymentCurrency})};return vt(async()=>{let f=setInterval(()=>{var v;if((v=n==null?void 0:n.value)!=null&&v.querySelectorAll){const m=n.value.querySelectorAll(".list.wallets li");if(m.length==1){clearInterval(f);let h=m[0].getAttribute("data-key"),_=m[0].getAttribute("data-name");h=="web3modal"?u.value=t.payNow:u.value=t.payWith.replace("{name}",_)}}},1)}),(f,v)=>{const m=ot("el-col"),h=ot("el-row"),_=ot("el-button");return b(),z(Ge,null,[oe(s1),s(c).length>1?(b(),de(h,{key:0,class:"payment-currency"},{default:ne(()=>[oe(m,{span:24},{default:ne(()=>[E("ul",X9,[oe(h,{gutter:20},{default:ne(()=>[(b(!0),z(Ge,null,Tt(s(c),g=>(b(),de(m,{span:12,key:g.address},{default:ne(()=>[E("li",{class:P(["disable-el",p(g)]),onClick:y=>d(g),"data-disabled":s(l).isPaymentAmountUpdating},[E("span",null,[E("img",{class:"icon",src:f.$getCoinIcon(g,g.symbol),alt:g.symbol},null,8,J9),E("span",Q9,ze(g.symbol),1)]),s(o).discountRates[g.symbol]?(b(),z("span",eC," ("+ze(s(o).discountRates[g.symbol])+"% "+ze(s(t).discount)+") ",1)):ue("",!0)],10,Z9)]),_:2},1024))),128))]),_:1})])]),_:1})]),_:1})):ue("",!0),oe(_,{type:"primary",class:"pay-now",disabled:s(l).isPaymentAmountUpdating,onClick:v[0]||(v[0]=g=>s(r).call("payNow",{order:s(a),network:s(i)}))},{default:ne(()=>[$t(ze(u.value),1)]),_:1},8,["disabled"])],64)}}};let Wn={};const ns={add:e=>{Wn=Object.assign(Wn,e)},set:(e,t)=>{Wn[e]=t},remove:e=>{delete Wn[e]},get:e=>Wn[e],getAll:()=>Wn,removeAll:()=>{Wn={}}},oC={key:0},rC={key:0},lC={key:1},nC={__name:"ConfirmationProcess",props:{transactionHash:{type:String,required:!0}},setup(e){const t=e,o=Le("$vars"),r=Le("$lang"),l=Le("$events"),n=Le("$helpers"),{payment:a,config:i}=Le("$store"),c=a.get.order,u=a.get.network,p=a.get.receiver,d=V(1),f=V(!0),v=V(null),m=V(null),h=async w=>{v.value=w,n.waitingPopup(r.pleaseWait),await co.post("set-reminder-email",{email:w,hash:t.transactionHash}),n.ongoingProcessEnded();const x=ns.get("redirectUrls");x&&(window.location.href=x.reminderEmail||x.success)},_=()=>{n.Swal.fire({title:r.importantInformation,html:r.setReminderEmailMsg,showCancelButton:!0,confirmButtonText:r.continue}).then(async w=>{if(w.isConfirmed){if(o.userEmail!="")return h(o.userEmail);const{value:x}=await n.Swal.fire({title:r.enterYourEmailAddress,input:"email",inputPlaceholder:r.email,showCancelButton:!0,confirmButtonText:r.save});x&&h(x)}})};let g;const y=()=>{window.open(g.getUrl(),"_blank")};return vt(async()=>{var M;n.ongoingProcess(),g=Fa.Transaction(t.transactionHash),await l.call("confirmationStarted",{order:c,network:u,transaction:g});let w=u.code=="bitcoin"?30:5,x;g.setTimer&&g.setTimer(w);try{x=await g.verifyTransferWithData({receiver:p,amount:c.paymentAmount,tokenAddress:(M=c.paymentCurrency)==null?void 0:M.address}),x&&g.getConfirmations&&i.get.blockConfirmationCount>0&&(x=await new Promise(T=>{let O=setInterval(async()=>{m.value=await g.getConfirmations(),m.value>=i.get.blockConfirmationCount&&(T(!0),clearInterval(O))},w*1e3)}))}catch(T){x=!1,n.debug.error(T)}d.value=2,o.createTransaction&&await co.post("payment-finished",{order:c,status:x,hash:t.transactionHash,dynamicData:ns.getAll(),network:n.removeNoNeededParams(u)}).then(async T=>{let O,I=T.data;return I.success?O=n.successPopup(I.message):O=n.errorPopup(I.message),n.ongoingProcessEnded(),O.then(()=>{n.disableScreen(),n.waitingPopup(r.redirecting),I.data.redirect=="reload"?window.location.reload():window.location.href=I.data.redirect}),!0}).catch(async T=>{let I=(T.response.data||{}).message||T.message;return n.errorPopup(I).then(()=>{n.disableScreen(),window.location.reload(),n.waitingPopup(r.redirecting)}),!1}),f.value=!1,n.ongoingProcessEnded(),l.call("confirmationCompleted",{order:c,network:u,transaction:g})}),(w,x)=>{const M=ot("cp-loading"),T=ot("el-col"),O=ot("el-button"),I=ot("el-row"),F=ot("cp-modal");return b(),de(F,{show:f.value,title:s(r).waitingConfirmation},{default:ne(()=>[oe(M),oe(I,{justify:"center",class:"confirmation-row"},{default:ne(()=>[d.value==1?(b(),z("div",oC,[oe(T,{span:24},{default:ne(()=>[m.value!=null?(b(),z("div",rC,ze(s(r).waitingBlockConfirmations)+" "+ze(m.value)+" / "+ze(w.$store.config.get.blockConfirmationCount),1)):(b(),z("div",lC,ze(s(r).waitingTransactionConfirmations),1))]),_:1}),oe(T,{span:24},{default:ne(()=>[oe(O,{class:"explorer-btn",type:"primary",onClick:x[0]||(x[0]=K=>y())},{default:ne(()=>[$t(ze(s(r).openInExplorer),1)]),_:1})]),_:1}),s(o).reminderEmail&&!v.value?(b(),de(O,{key:0,class:"set-reminder-email",type:"default",onClick:x[1]||(x[1]=K=>_())},{default:ne(()=>[$t(ze(s(r).setReminderEmail),1)]),_:1})):ue("",!0)])):(b(),de(T,{key:1,span:24},{default:ne(()=>[$t(ze(s(r).paymentCompleting),1)]),_:1}))]),_:1})]),_:1},8,["show","title"])}}},aC={__name:"TransactionProcess",props:{transactionHash:{type:String,required:!0}},setup(e){const t=e,o=Le("$lang"),r=Le("$vars"),l=Le("$events"),n=Le("$helpers"),{payment:a}=Le("$store"),i=V(!1),c=V(!1);return vt(async()=>{try{i.value=!0;const u=a.get.order,p=a.get.network,d=Fa.Transaction(t.transactionHash);let f=await l.call("transactionReceived",{order:u,network:p,transaction:d});if(!l.check(f))return i.value=!1;if(r.createTransaction){let v=u.paymentCurrency;v.symbol==p.nativeCurrency.symbol?v.decimals=p.nativeCurrency.decimals:v.decimals=await Fa.Token(v.address).getDecimals(),a.setOrderParams({paymentCurrency:v});let m=await co.post("create-transaction",{order:u,hash:t.transactionHash,dynamicData:ns.getAll(),network:n.removeNoNeededParams(p)}).then(h=>h.data).catch(h=>h.response&&h.response.data||h);if(m.success)m.data&&ns.add(m.data);else return await l.call("transactionCreateFail",{order:u,network:p,transaction:d}),n.errorPopup(m.message||o.anyError).then(()=>{n.disableScreen(),m.data&&m.data.redirect?m.data.redirect=="reload"?window.location.reload():window.location.href=m.data.redirect:window.location.reload()});await l.call("transactionCreated",{order:u,network:p,transaction:d})}i.value=!1,c.value=r.confirmation}catch(u){return n.debug.error(u),!1}}),(u,p)=>{const d=ot("cp-loading"),f=ot("cp-modal");return b(),z(Ge,null,[i.value?(b(),de(f,{key:0,title:s(o).processing},{default:ne(()=>[oe(d)]),_:1},8,["title"])):ue("",!0),c.value?(b(),de(nC,{key:1,transactionHash:e.transactionHash},null,8,["transactionHash"])):ue("",!0)],64)}}},iC={__name:"PaymentProcess",setup(e,{expose:t}){const o=Le("$lang"),r=Le("$events"),l=Le("$helpers"),{payment:n}=Le("$store"),a=n.get.order,i=n.get.network,c=n.get.receiver,u=V(!1),p=V(null);return t({start:async f=>{var v;u.value=!0,await r.call("walletPaymentRequest",{order:a,wallet:f,network:i});try{f.transfer(c,a.paymentAmount,(v=a.paymentCurrency)==null?void 0:v.address).then(async m=>{await r.call("walletPaymentApproved",{order:a,wallet:f,network:i}),u.value=!1,p.value=m.hash}).catch(async m=>{l.debug.error(m),await r.call("walletPaymentDeclined",{order:a,wallet:f,network:i}),u.value=!1,m!="closed-walletconnect-modal"&&(m=="transaction-create-fail"?l.errorPopup(o.transactionCreateFail,o.pleaseTryAgain):m=="insufficient-balance"?l.infoPopup(o.insufficientBalance):m=="transfer-amount-error"?l.infoPopup(o.transferAmountError):m=="request-rejected"?l.warningPopup(o.paymentRejected):m=="rpc-access-forbidden"?l.errorPopup(o.rpcAccessForbidden):m=="not-accepted-chain"||m=="invalid-rpc-error"?l.errorPopup(o.connectionError,l.getWrongNetworkMsg(i)):m=="rpc-timeout"?l.errorPopup(o.rpcTimeout):o[m]?l.errorPopup(o[m]):l.errorPopup(o.anyError))})}catch(m){l.debug.error(m)}}}),(f,v)=>{const m=ot("cp-loading"),h=ot("cp-modal");return b(),z(Ge,null,[u.value?(b(),de(h,{key:0,title:s(o).waitingApproval},{default:ne(()=>[oe(m)]),_:1},8,["title"])):ue("",!0),p.value?(b(),de(aC,{key:1,transactionHash:p.value},null,8,["transactionHash"])):ue("",!0)],64)}}},sC=["data-name","data-key","onClick"],cC=["src","alt"],uC={class:"name"},dC={class:"status"},pC={key:0},fC={key:1,class:"detected"},hC={key:2,class:"download"},vC={key:3,class:"onlyDesktop"},mC={key:4,class:"openInApp"},gC={key:5,class:"openInAppManual"},bC={key:3,class:"no-found"},_C=E("br",null,null,-1),wC={__name:"WalletList",emits:["statusChanged"],setup(e,{emit:t}){const o=Le("$vars"),r=Le("$lang"),l=Le("$events"),n=Le("$helpers"),{payment:a}=Le("$store"),i=a.get.order,c=a.get.network,u=V(null),p=V(!1),d=V([]),f=V(!1),v=V(!1),m=V(["currency"].includes(o.mode)),h=t;h("statusChanged",m.value),Te(m,R=>{h("statusChanged",R)});const _=V(null),g=V(null),y=$(()=>p.value?r.connectionWallet:r.selectWallet);l.add("payNow",()=>{w()},"walletList");const w=async()=>{m.value=!0,l.call("walletListOpened",{network:c,order:i}),Object.values(d.value).length==1&&_.value.querySelector("li").click()},x=()=>{a.isPaymentAmountUpdating||p.value||M()},M=()=>{m.value=!1,clearTimeout(u.value),l.call("walletListClosed",{network:c,order:i})};l.add("paymentReset",()=>{clearTimeout(u.value)},"walletList");const T=()=>{let R=Fa.getSupportedWallets(c.wallets);return R=Object.keys(R).sort(function(j,Z){const Q={true:1,undefined:2,false:3},J=R[j].isDetected(),L=R[Z].isDetected();return Q[J]-Q[L]}).reduce((j,Z)=>(j[Z]=R[Z],j),{}),n.isWebview()&&Object.values(R).forEach(j=>{if(j.isDetected())return R={},R[j.getKey()]=j,!0}),R},O=()=>Object.keys(d.value).length===0&&!o.webSocketUrl,I=()=>{clearTimeout(u.value),u.value=setTimeout(()=>{p.value=!1,n.errorPopup(r.walletConnectionTimedOut)},30*1e3)},F=R=>!(R=="closed-web3modal"||R=="closed-walletconnect-modal"||String(R.message).indexOf("Connection request reset. Please try again.")>-1);l.add("walletConnectionDeclined, walletPaymentDeclined",()=>{o.mode=="network"?Object.values(d.value).length>1?w():M():w(),p.value=!1,clearTimeout(u.value),v.value=!1},"walletList"),l.add("walletPaymentApproved",()=>{f.value=!0},"walletList");const K=async R=>{if(R=Fa.supportedWallets[R.getKey()],R.isDetected()===!1)if(n.isMobile())if(R.getSupports().includes("mobile"))if(R.getDeepLink()){let D=R.getDeepLink();return D=D.replaceAll("{siteUrl}",window.location.origin),n.infoPopup(r.openInAppMsg),window.open(D,"_blank")}else return n.infoPopup(r.openInAppManualMsg);else return n.infoPopup(r.onlyDesktopMsg);else return R.getDownloadLink()?(window.open(R.getDownloadLink(),"_blank"),n.infoPopup(r.downloadMsg)):n.infoPopup(r.downloadManualMsg);await l.call("walletConnectionRequest",{network:c,order:i,wallet:R}),["walletconnect","web3modal"].includes(R.getKey())||I();try{p.value=!0,R.connect().then(async()=>{p.value=!1,clearTimeout(u.value),await l.call("walletConnectionApproved",{network:c,order:i,wallet:R}),g.value.start(R),v.value=!0}).catch(async D=>{p.value=!1,clearTimeout(u.value),n.debug.error(D),await l.call("walletConnectionDeclined",{network:c,order:i,wallet:R}),F(D)&&(D=="request-rejected"||D=="switch-chain-rejected"?n.warningPopup(r.connectionRejected):D=="already-processing"?n.errorPopup(r.alreadyProcessing):D=="not-accepted-chain"?n.errorPopup(r.connectionError,n.getWrongNetworkMsg(c)):D=="rpc-access-forbidden"?n.errorPopup(r.rpcAccessForbidden):D=="invalid-rpc-error"?n.errorPopup(r.connectionError,n.getWrongNetworkMsg(c)):D=="rpc-timeout"?n.errorPopup(r.rpcTimeout):r[D]?n.errorPopup(r[D]):typeof D=="object"?D.message.includes("Proposal expired")&&n.errorPopup(r.walletConnectionTimedOut):n.errorPopup(r.anyError))})}catch(D){n.debug.error(D)}};return vt(()=>{d.value=T()}),(R,D)=>{const j=ot("cp-loading"),Z=ot("cp-modal");return b(),z(Ge,null,[f.value?ue("",!0):ht((b(),de(Z,{key:0,show:m.value,onClose:D[1]||(D[1]=Q=>x()),title:y.value},{default:ne(()=>[s(o).mode=="currency"?ht((b(),de(s1,{key:0},null,512)),[[Pt,!p.value]]):ue("",!0),p.value?(b(),de(j,{key:1})):(b(),z("ul",{key:2,ref_key:"walletListEl",ref:_,class:P(["list wallets",s(a).isPaymentAmountUpdating?"disabled":""])},[(b(!0),z(Ge,null,Tt(d.value,Q=>(b(),z("li",{key:Q.getKey(),"data-name":Q.getName(),"data-key":Q.getKey(),onClick:J=>K(Q)},[E("img",{class:"img-icon",src:s(o).walletImages[Q.getKey()],alt:Q.getName()},null,8,cC),E("span",uC,ze(Q.getName()),1),E("span",dC,[typeof Q.isDetected()>"u"?(b(),z("span",pC)):Q.isDetected()===!0?(b(),z("span",fC,ze(s(r).detected),1)):!s(n).isMobile()&&Q.isDetected()===!1?(b(),z("span",hC,ze(s(r).download),1)):s(n).isMobile()&&!Q.getSupports().includes("mobile")?(b(),z("span",vC,ze(s(r).onlyDesktop),1)):s(n).isMobile()&&Q.getDeepLink()?(b(),z("span",mC,ze(s(r).openInApp),1)):s(n).isMobile()&&!Q.getDeepLink()?(b(),z("span",gC,ze(s(r).openInAppManual),1)):ue("",!0)])],8,sC))),128))],2)),O()?(b(),z("div",bC,[$t(ze(s(r).notFoundAnyWallet.replace("{networkName}",s(c).name))+" ",1),_C,E("span",{class:"change-network",onClick:D[0]||(D[0]=Q=>s(a).$reset())}," ("+ze(s(r).changeNetwork)+")",1)])):ue("",!0)]),_:1},8,["show","title"])),[[Pt,!v.value]]),oe(iC,{ref_key:"paymentProcess",ref:g},null,512)],64)}}};var yC=!1;let c1;const uu=e=>c1=e,u1=Symbol();function yf(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var as;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(as||(as={}));function xC(){const e=vp(!0),t=e.run(()=>V({}));let o=[],r=[];const l=xl({install(n){uu(l),l._a=n,n.provide(u1,l),n.config.globalProperties.$pinia=l,r.forEach(a=>o.push(a)),r=[]},use(n){return!this._a&&!yC?r.push(n):o.push(n),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return l}const d1=()=>{};function p1(e,t,o,r=d1){e.push(t);const l=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!o&&mp()&&gp(l),l}function Da(e,...t){e.slice().forEach(o=>{o(...t)})}const kC=e=>e();function xf(e,t){e instanceof Map&&t instanceof Map&&t.forEach((o,r)=>e.set(r,o)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],l=e[o];yf(l)&&yf(r)&&e.hasOwnProperty(o)&&!Kt(r)&&!an(r)?e[o]=xf(l,r):e[o]=r}return e}const CC=Symbol();function SC(e){return!yf(e)||!e.hasOwnProperty(CC)}const{assign:mn}=Object;function EC(e){return!!(Kt(e)&&e.effect)}function $C(e,t,o,r){const{state:l,actions:n,getters:a}=t,i=o.state.value[e];let c;function u(){i||(o.state.value[e]=l?l():{});const p=Ao(o.state.value[e]);return mn(p,n,Object.keys(a||{}).reduce((d,f)=>(d[f]=xl($(()=>{uu(o);const v=o._s.get(e);return a[f].call(v,v)})),d),{}))}return c=f1(e,u,t,o,r,!0),c}function f1(e,t,o={},r,l,n){let a;const i=mn({actions:{}},o),c={deep:!0};let u,p,d=[],f=[],v;const m=r.state.value[e];!n&&!m&&(r.state.value[e]={}),V({});let h;function _(I){let F;u=p=!1,typeof I=="function"?(I(r.state.value[e]),F={type:as.patchFunction,storeId:e,events:v}):(xf(r.state.value[e],I),F={type:as.patchObject,payload:I,storeId:e,events:v});const K=h=Symbol();et().then(()=>{h===K&&(u=!0)}),p=!0,Da(d,F,r.state.value[e])}const g=n?function(){const{state:F}=o,K=F?F():{};this.$patch(R=>{mn(R,K)})}:d1;function y(){a.stop(),d=[],f=[],r._s.delete(e)}function w(I,F){return function(){uu(r);const K=Array.from(arguments),R=[],D=[];function j(J){R.push(J)}function Z(J){D.push(J)}Da(f,{args:K,name:I,store:M,after:j,onError:Z});let Q;try{Q=F.apply(this&&this.$id===e?this:M,K)}catch(J){throw Da(D,J),J}return Q instanceof Promise?Q.then(J=>(Da(R,J),J)).catch(J=>(Da(D,J),Promise.reject(J))):(Da(R,Q),Q)}}const x={_p:r,$id:e,$onAction:p1.bind(null,f),$patch:_,$reset:g,$subscribe(I,F={}){const K=p1(d,I,F.detached,()=>R()),R=a.run(()=>Te(()=>r.state.value[e],D=>{(F.flush==="sync"?p:u)&&I({storeId:e,type:as.direct,events:v},D)},mn({},c,F)));return K},$dispose:y},M=Ft(x);r._s.set(e,M);const O=(r._a&&r._a.runWithContext||kC)(()=>r._e.run(()=>(a=vp()).run(t)));for(const I in O){const F=O[I];if(Kt(F)&&!EC(F)||an(F))n||(m&&SC(F)&&(Kt(F)?F.value=m[I]:xf(F,m[I])),r.state.value[e][I]=F);else if(typeof F=="function"){const K=w(I,F);O[I]=K,i.actions[I]=F}}return mn(M,O),mn(Vt(M),O),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:I=>{_(F=>{mn(F,I)})}}),r._p.forEach(I=>{mn(M,a.run(()=>I({store:M,app:r._a,pinia:r,options:i})))}),m&&n&&o.hydrate&&o.hydrate(M.$state,m),u=!0,p=!0,M}function h1(e,t,o){let r,l;const n=typeof t=="function";typeof e=="string"?(r=e,l=n?o:t):(l=e,r=e.id);function a(i,c){const u=x5();return i=i||(u?Le(u1,null):null),i&&uu(i),i=c1,i._s.has(r)||(n?f1(r,t,l,i):$C(r,l,i)),i._s.get(r)}return a.$id=r,a}const v1=h1("payment",()=>{const e=Le("$events"),t=V({order:{id:null,amount:0,currency:null,paymentAmount:0,paymentCurrency:null},network:{},receiver:null}),o=(i,c)=>{if(typeof t.value.order[i]>"u")throw new Error(`Order param "${i}" not found`);t.value.order[i]=c},r=i=>{Object.entries(i).forEach(([c,u])=>{o(c,u)})},l=i=>{t.value.network=i},n=i=>{t.value.receiver=i},a=$(()=>t.value.order.paymentAmount==0);return lr(()=>{t.value.receiver||e.call("paymentReset")}),{get:t,setNetwork:l,setReceiver:n,setOrderParam:o,setOrderParams:r,isPaymentAmountUpdating:a}}),TC={key:0},zC={class:"title"},MC={class:"search network"},AC=["onClick"],IC=["alt","src"],OC={class:"name"},PC={key:0,class:"discount"},BC={__name:"NetworkMode",props:{modalStyle:{type:Boolean,required:!1,default:!0}},setup(e){const t=Le("$init"),o=Le("$vars"),r=Le("$events"),{config:l}=Le("$store"),n=V(""),a=V({}),i=V(l.get.networks);i.value.forEach(d=>{d.currencies.forEach(f=>{o.discountRates[f.symbol]&&(a.value[d.id||d.code]||(a.value[d.id||d.code]=[]),a.value[d.id||d.code].push({currency:f.symbol,rate:o.discountRates[f.symbol]}))})}),Object.entries(a.value).forEach(([d,f])=>{a.value[d]=f.sort((v,m)=>m.rate-v.rate)[0].rate});const c=d=>a.value[d.id||d.code],u=async d=>{var f;await r.call("selectedNetwork",{newNetwork:d,oldNetwork:(f=v1.get)==null?void 0:f.network}),t(d,d.currencies[0])},p=$(()=>n.value?i.value.filter(d=>d.name.toLowerCase().includes(n.value.toLowerCase())||d.nativeCurrency.symbol.toLowerCase().includes(n.value.toLowerCase())):i.value);return vt(()=>{i.value.length==1&&u(i.value[0])}),(d,f)=>{const v=ot("Search"),m=ot("el-icon"),h=ot("el-input"),_=ot("Right"),g=ot("cp-list");return b(),z(Ge,null,[e.modalStyle?(b(),z("div",TC,[E("div",zC,ze(d.$lang.selectNetwork),1),E("div",MC,[oe(h,{placeholder:d.$lang.search,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=y=>n.value=y),clearable:"",onClear:f[1]||(f[1]=y=>n.value="")},{prepend:ne(()=>[oe(m,{size:25},{default:ne(()=>[oe(v)]),_:1})]),_:1},8,["placeholder","modelValue"])]),oe(g,{foundStatus:p.value.length>0,noFoundMsg:d.$lang.notFoundAnyNetworkForPayment},{default:ne(()=>[(b(!0),z(Ge,null,Tt(p.value,(y,w)=>(b(),z("li",{class:"network",key:w,onClick:x=>u(y)},[E("img",{class:"img-icon",alt:y.nativeCurrency.symbol,src:d.$getCoinIcon(y,y.nativeCurrency.symbol)},null,8,IC),E("span",OC,ze(y.name),1),c(y)?(b(),z("span",PC,ze(c(y))+"% "+ze(d.$lang.discount),1)):ue("",!0),oe(m,{size:25},{default:ne(()=>[oe(_)]),_:1})],8,AC))),128))]),_:1},8,["foundStatus","noFoundMsg"])])):ue("",!0),be(d.$slots,"default")],64)}}},NC={key:0},LC={class:"title"},RC={class:"currency-search"},VC=["onClick"],HC={class:"img"},FC=["src","alt"],DC=["alt","src"],jC={class:"name"},KC={class:"network-name"},WC={key:0,class:"discount"},UC={__name:"CurrencyMode",props:{modalStyle:{type:Boolean,required:!1,default:!0}},setup(e){const t=Le("$init"),o=Le("$vars"),r=Le("$events"),l=Le("$helpers"),{payment:n,config:a}=Le("$store"),i=Le("$getCoinIcon"),c=V(""),u=V([]);a.get.networks.forEach(f=>{f.currencies.forEach(v=>{u.value.push(Object.assign(v,{network:{name:f.name,id:f.id||f.code,image:i(f,f.nativeCurrency.symbol)}}))})});const p=async f=>{const v=a.get.networks.find(h=>h.id==f.network.id||h.code==f.network.id),m=l.clone(f);delete m.network,await t(v,m)};r.add("walletListClosed",()=>{n.$reset()},"currencyMode");const d=$(()=>c.value?u.value.filter(f=>f.symbol.toLowerCase().includes(c.value.toLowerCase())||f.network.name.toLowerCase().includes(c.value.toLowerCase())):u.value);return(f,v)=>{const m=ot("Search"),h=ot("el-icon"),_=ot("el-input"),g=ot("Right"),y=ot("cp-list");return b(),z(Ge,null,[e.modalStyle?(b(),z("div",NC,[E("div",LC,ze(f.$lang.selectCurrency),1),E("div",RC,[oe(_,{placeholder:f.$lang.search,modelValue:c.value,"onUpdate:modelValue":v[0]||(v[0]=w=>c.value=w),clearable:"",onClear:v[1]||(v[1]=w=>c.value="")},{prepend:ne(()=>[oe(h,{size:25},{default:ne(()=>[oe(m)]),_:1})]),_:1},8,["placeholder","modelValue"])]),oe(y,{foundStatus:d.value.length>0,noFoundMsg:f.$lang.notFoundAnyCurrencyForPayment},{default:ne(()=>[(b(!0),z(Ge,null,Tt(d.value,(w,x)=>(b(),z("li",{class:"currency",key:x,onClick:M=>p(w)},[E("div",HC,[E("img",{class:"img-icon",src:s(i)(w,w.symbol),alt:w.symbol},null,8,FC),E("img",{class:"network-icon",alt:w.network.name,src:w.network.image},null,8,DC)]),E("span",jC,ze(w.symbol),1),E("span",KC,ze(w.network.name),1),s(o).discountRates[w.symbol]?(b(),z("span",WC,ze(s(o).discountRates[w.symbol])+"% "+ze(f.$lang.discount),1)):ue("",!0),oe(h,{size:25},{default:ne(()=>[oe(g)]),_:1})],8,VC))),128))]),_:1},8,["foundStatus","noFoundMsg"])])):ue("",!0),be(f.$slots,"default")],64)}}},qC={key:0},YC={__name:"App",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$events"),l=Le("$helpers"),{payment:n,config:a}=Le("$store"),i=V(!1),c=V(!1),u=V(!0),p=$(()=>!!(n.get.receiver&&!i.value)),d=$(()=>i.value||c.value?!0:o.mode=="network"?a.get.networks.length!=1:!0),f=()=>({network:BC,currency:UC})[o.mode],v=()=>{n.isPaymentAmountUpdating||n.$reset()},m=h=>Object.keys(h).length===0;return zt("$init",async(h,_)=>{if(_)c.value=!1;else return c.value=!0,l.errorPopup(t.notFoundAnyCurrency);i.value=!0,n.setOrderParams({...a.get.order,paymentCurrency:_});let g=await r.call("init",{network:h,currency:_});if(l.debug.log("Init context",g),!r.check(g))return i.value=!1;let y={success:!0};try{const w=async x=>{const M=Object.assign({network:l.removeNoNeededParams(h,["wsUrl"])},x.providerConfig,o.providerConfig);a.set("providerConfig",M),a.set("blockConfirmationCount",x.blockConfirmationCount);const T=new window.EvmChains(M),O=T.getSupportedWallets(h.wallets);return m(O)?{success:!1,message:new Error(t.notFoundAnyWallet.replace("{networkName}",h.name))}:(U9(T),n.setNetwork(h),n.setReceiver(x.receiver),n.setOrderParams(x.order),{success:!0})};l.debug.log("init","get init data from api"),y=await co.get("init",{params:{order:n.get.order,network:l.removeNoNeededParams(h)}}).then(async function(x){if(x.data.success){const M=x.data.data;if(M.redirect)return M.redirect=="reload"?window.location.reload():window.location.href=M.redirect;if(y=await w(M),!y.success)return y}return x.data}).catch(function(x){return x.response&&x.response.data||x})}catch(w){y={success:!1,message:w.message}}i.value=!1,y.success||l.errorPopup(y.message).then(()=>{if(y.data){const w=y.data;l.disableScreen(),w.redirect?window.location.href=w.redirect:w.redirect=="reload"&&window.location.reload()}})}),(h,_)=>{const g=ot("cp-modal"),y=ot("cp-loading"),w=ot("cp-container");return s(a).isAppStarted?(b(),de(w,{key:0},{default:ne(()=>[(b(),de(St(f()),{modalStyle:d.value},{default:ne(()=>[p.value?(b(),de(g,{key:0,modalStyle:d.value,onClose:_[1]||(_[1]=x=>v())},{default:ne(()=>[!u.value||!d.value?(b(),z("div",qC,[oe(tC)])):ue("",!0),oe(wC,{onStatusChanged:_[0]||(_[0]=x=>u.value=x)})]),_:1},8,["modalStyle"])):ue("",!0)]),_:1},8,["modalStyle"])),i.value?(b(),de(g,{key:0,title:s(t).loading},{default:ne(()=>[oe(y)]),_:1},8,["title"])):ue("",!0)]),_:1})):ue("",!0)}}};var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var du={exports:{}};du.exports,function(e,t){var o=200,r="__lodash_hash_undefined__",l=9007199254740991,n="[object Arguments]",a="[object Array]",i="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",d="[object GeneratorFunction]",f="[object Map]",v="[object Number]",m="[object Object]",h="[object Promise]",_="[object RegExp]",g="[object Set]",y="[object String]",w="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",T="[object DataView]",O="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",K="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",Z="[object Uint16Array]",Q="[object Uint32Array]",J=/[\\^$.*+?()[\]{}|]/g,L=/\w*$/,X=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,W={};W[n]=W[a]=W[M]=W[T]=W[i]=W[c]=W[O]=W[I]=W[F]=W[K]=W[R]=W[f]=W[v]=W[m]=W[_]=W[g]=W[y]=W[w]=W[D]=W[j]=W[Z]=W[Q]=!0,W[u]=W[p]=W[x]=!1;var re=typeof xo=="object"&&xo&&xo.Object===Object&&xo,ie=typeof self=="object"&&self&&self.Object===Object&&self,se=re||ie||Function("return this")(),ve=t&&!t.nodeType&&t,le=ve&&!0&&e&&!e.nodeType&&e,ge=le&&le.exports===ve;function _e(ae,Ve){return ae.set(Ve[0],Ve[1]),ae}function me(ae,Ve){return ae.add(Ve),ae}function Be(ae,Ve){for(var Xe=-1,yt=ae?ae.length:0;++Xe-1}function Rv(ae,Ve){var Xe=this.__data__,yt=$i(Xe,ae);return yt<0?Xe.push([ae,Ve]):Xe[yt][1]=Ve,this}ho.prototype.clear=uc,ho.prototype.delete=Ud,ho.prototype.get=ya,ho.prototype.has=or,ho.prototype.set=Rv;function Gl(ae){var Ve=-1,Xe=ae?ae.length:0;for(this.clear();++Ve-1&&ae%1==0&&ae-1&&ae%1==0&&ae<=l}function ka(ae){var Ve=typeof ae;return!!ae&&(Ve=="object"||Ve=="function")}function v2(ae){return!!ae&&typeof ae=="object"}function Ti(ae){return Jd(ae)?Wv(ae):Xv(ae)}function m2(){return[]}function g2(){return!1}e.exports=u2}(du,du.exports);var GC=du.exports;const m1=Er(GC);function XC({store:e}){const t=m1(e.$state);e.$reset=()=>e.$patch(m1(t))}const ZC=e=>({list:{},check(t){return t&&(t.error||t.info||t.warning)?(t.message&&(t.error?e.errorPopup(t.message):t.warning?e.warningPopup(t.message):t.info&&e.infoPopup(t.message)),!1):!0},getIds(){return{paymentAmount:["paymentReset","updateCurrency","walletListClosed","walletListOpened"],walletList:["paymentReset","paymentDeclined","connectionDeclined"]}},add(t,o,r=null,l=0){const n=t.split(",");if(n.length>1){n.forEach(i=>{this.add(i.trim(),o,r,l)});return}this.list[t]||(this.list[t]=[]);const a=this.list[t].findIndex(i=>i.customId==r);r&&this.list[t][a]?this.list[t][a]={callback:o,customId:r,priority:l}:this.list[t].push({callback:o,customId:r,priority:l}),this.list[t].sort((i,c)=>i.priority-c.priority)},remove(t,o=null){if(this.list[t])if(o){const r=this.list[t].findIndex(l=>l.customId==o);r>-1&&this.list[t].splice(r,1)}else this.list[t]=[]},call(t,o={}){if(typeof o!="object")throw new Error("Event context must be an object.");return new Promise(async r=>{var l;if(this.list[t])for(let n=0;n{if(c.amount==0)return 0;i.setOrderParam("paymentAmount",0);let g=await new Promise(y=>{co.get("/currency-converter",{params:{order:c,network:n.removeNoNeededParams(u)}}).then(w=>{w.data.success?y(w.data.data):y(!1)}).catch(()=>{y(!1)})});return await l.call("currencyConverter",{paymentCurrency:_,paymentAmount:g}),g?i.setOrderParams({paymentAmount:g}):(i.setOrderParam("paymentAmount",0),n.infoPopup(t.convertingError).then(()=>{n.disableScreen(),window.location.reload()})),g};let f=n.clone(c);Te(c,_=>{f&&f.amount!=_.amount&&p(c.paymentCurrency),f=n.clone(_)});const v=_=>{if(a.get.amountUpdateInterval)return;const g=setInterval(async()=>{h(c.paymentCurrency)},o.amountUpdateMin*60*1e3);n.debug.log("Start amount updater: ",g,"event: ",_),a.set("amountUpdateInterval",g)},m=_=>{if(!a.get.amountUpdateInterval)return;const g=a.get.amountUpdateInterval;n.debug.log("Stop amount updater: ",g,"event: ",_),a.stopAmountUpdateInterval()},h=async _=>(n.debug.log("Currency updating: ",_),m("interval"),await p(_),v("interval"),!0);return l.add("selectedCurrency",({newCurrency:_})=>(i.setOrderParams({paymentCurrency:_}),h(_)),"paymentAmount"),l.add("paymentReset",()=>{m("paymentReset")},"paymentAmount"),o.mode=="network"?(l.add("walletListOpened",({eventName:_})=>{m(_)},"paymentAmount"),l.add("walletListClosed",({eventName:_})=>{v(_)},"paymentAmount")):(l.add("walletConnectionRequest",({eventName:_})=>{m(_)},"paymentAmount"),l.add("walletPaymentDeclined, walletConnectionDecliend",({eventName:_})=>{v(_)},"paymentAmount")),vt(()=>{v("mounted")}),(_,g)=>(b(),z("div",{class:"amount-component",innerHTML:d.value},null,8,vC))}},gC=["data-disabled"],b1={__name:"TopHeader",setup(e){const{payment:t,config:o}=Le("$store"),r=t.get.order,l=t.get.network,n=o.get.networks;return(a,i)=>{const c=ot("el-col"),u=ot("el-row");return b(),de(u,{justify:"center",class:"information-row"},{default:ne(()=>[s(r).id?(b(),de(c,{key:0,span:12},{default:ne(()=>[$t(ze(a.$lang.orderId),1)]),_:1})):ue("",!0),s(r).id?(b(),de(c,{key:1,span:12},{default:ne(()=>[$t(ze(s(r).id),1)]),_:1})):ue("",!0),oe(c,{span:12},{default:ne(()=>[$t(ze(a.$lang.orderAmount),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[$t(ze(s(r).amount)+" "+ze(s(r).currency),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[$t(ze(a.$lang.amountToBePaid),1)]),_:1}),oe(c,{span:12},{default:ne(()=>[oe(mC)]),_:1}),s(l)?(b(),de(c,{key:2,span:12},{default:ne(()=>[$t(ze(a.$lang.selectedNetwork),1)]),_:1})):ue("",!0),s(l)?(b(),de(c,{key:3,span:12},{default:ne(()=>[$t(ze(s(l).name)+" ",1),s(n).length>1?(b(),z("span",{key:0,onClick:i[0]||(i[0]=d=>s(t).$reset()),class:"change-network disable-el","data-disabled":s(t).isPaymentAmountUpdating}," ("+ze(a.$lang.change)+")",9,gC)):ue("",!0)]),_:1})):ue("",!0)]),_:1})}}},bC={class:"currencies"},_C=["onClick","data-disabled"],wC=["src","alt"],yC={class:"currency-name"},xC={key:0,class:"discount"},kC={__name:"Payment",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$events"),{payment:l}=Le("$store"),n=Le("container"),a=l.get.order,i=l.get.network,c=i.currencies,u=V(t.payNow),d=f=>a.paymentCurrency.address==f.address?"selected":"",p=async f=>{l.isPaymentAmountUpdating||a.paymentCurrency.symbol==f.symbol||await r.call("selectedCurrency",{newCurrency:f,oldCurrency:a==null?void 0:a.paymentCurrency})};return vt(async()=>{let f=setInterval(()=>{var v;if((v=n==null?void 0:n.value)!=null&&v.querySelectorAll){const m=n.value.querySelectorAll(".list.wallets li");if(m.length==1){clearInterval(f);let h=m[0].getAttribute("data-key"),_=m[0].getAttribute("data-name");h=="web3modal"?u.value=t.payNow:u.value=t.payWith.replace("{name}",_)}}},1)}),(f,v)=>{const m=ot("el-col"),h=ot("el-row"),_=ot("el-button");return b(),z(Xe,null,[oe(b1),s(c).length>1?(b(),de(h,{key:0,class:"payment-currency"},{default:ne(()=>[oe(m,{span:24},{default:ne(()=>[$("ul",bC,[oe(h,{gutter:20},{default:ne(()=>[(b(!0),z(Xe,null,Tt(s(c),g=>(b(),de(m,{span:12,key:g.address},{default:ne(()=>[$("li",{class:P(["disable-el",d(g)]),onClick:y=>p(g),"data-disabled":s(l).isPaymentAmountUpdating},[$("span",null,[$("img",{class:"icon",src:f.$getCoinIcon(g,g.symbol),alt:g.symbol},null,8,wC),$("span",yC,ze(g.symbol),1)]),s(o).discountRates[g.symbol]?(b(),z("span",xC," ("+ze(s(o).discountRates[g.symbol])+"% "+ze(s(t).discount)+") ",1)):ue("",!0)],10,_C)]),_:2},1024))),128))]),_:1})])]),_:1})]),_:1})):ue("",!0),oe(_,{type:"primary",class:"pay-now",disabled:s(l).isPaymentAmountUpdating,onClick:v[0]||(v[0]=g=>s(r).call("payNow",{order:s(a),network:s(i)}))},{default:ne(()=>[$t(ze(u.value),1)]),_:1},8,["disabled"])],64)}}};let Un={};const ns={add:e=>{Un=Object.assign(Un,e)},set:(e,t)=>{Un[e]=t},remove:e=>{delete Un[e]},get:e=>Un[e],getAll:()=>Un,removeAll:()=>{Un={}}},CC={key:0},SC={key:0},EC={key:1},$C={__name:"ConfirmationProcess",props:{transactionHash:{type:String,required:!0}},setup(e){const t=e,o=Le("$vars"),r=Le("$lang"),l=Le("$events"),n=Le("$helpers"),{payment:a,config:i}=Le("$store"),c=a.get.order,u=a.get.network,d=a.get.receiver,p=V(1),f=V(!0),v=V(null),m=V(null),h=async w=>{v.value=w,n.waitingPopup(r.pleaseWait),await co.post("set-reminder-email",{email:w,hash:t.transactionHash}),n.ongoingProcessEnded();const x=ns.get("redirectUrls");x&&(window.location.href=x.reminderEmail||x.success)},_=()=>{n.Swal.fire({title:r.importantInformation,html:r.setReminderEmailMsg,showCancelButton:!0,confirmButtonText:r.continue}).then(async w=>{if(w.isConfirmed){if(o.userEmail!="")return h(o.userEmail);const{value:x}=await n.Swal.fire({title:r.enterYourEmailAddress,input:"email",inputPlaceholder:r.email,showCancelButton:!0,confirmButtonText:r.save});x&&h(x)}})};let g;const y=()=>{window.open(g.getUrl(),"_blank")};return vt(async()=>{var M;n.ongoingProcess(),g=Da.Transaction(t.transactionHash),await l.call("confirmationStarted",{order:c,network:u,transaction:g});let w=u.code=="bitcoin"?30:5,x;g.setTimer&&g.setTimer(w);try{x=await g.verifyTransferWithData({receiver:d,amount:c.paymentAmount,tokenAddress:(M=c.paymentCurrency)==null?void 0:M.address}),x&&g.getConfirmations&&i.get.blockConfirmationCount>0&&(x=await new Promise(E=>{let I=setInterval(async()=>{m.value=await g.getConfirmations(),m.value>=i.get.blockConfirmationCount&&(E(!0),clearInterval(I))},w*1e3)}))}catch(E){x=!1,n.debug.error(E)}p.value=2,o.createTransaction&&await co.post("payment-finished",{order:c,status:x,hash:t.transactionHash,dynamicData:ns.getAll(),network:n.removeNoNeededParams(u)}).then(async E=>{let I,O=E.data;return O.success?I=n.successPopup(O.message):I=n.errorPopup(O.message),n.ongoingProcessEnded(),I.then(()=>{n.disableScreen(),n.waitingPopup(r.redirecting),O.data.redirect=="reload"?window.location.reload():window.location.href=O.data.redirect}),!0}).catch(async E=>{let O=(E.response.data||{}).message||E.message;return n.errorPopup(O).then(()=>{n.disableScreen(),window.location.reload(),n.waitingPopup(r.redirecting)}),!1}),f.value=!1,n.ongoingProcessEnded(),l.call("confirmationCompleted",{order:c,network:u,transaction:g})}),(w,x)=>{const M=ot("cp-loading"),E=ot("el-col"),I=ot("el-button"),O=ot("el-row"),F=ot("cp-modal");return b(),de(F,{show:f.value,title:s(r).waitingConfirmation},{default:ne(()=>[oe(M),oe(O,{justify:"center",class:"confirmation-row"},{default:ne(()=>[p.value==1?(b(),z("div",CC,[oe(E,{span:24},{default:ne(()=>[m.value!=null?(b(),z("div",SC,ze(s(r).waitingBlockConfirmations)+" "+ze(m.value)+" / "+ze(w.$store.config.get.blockConfirmationCount),1)):(b(),z("div",EC,ze(s(r).waitingTransactionConfirmations),1))]),_:1}),oe(E,{span:24},{default:ne(()=>[oe(I,{class:"explorer-btn",type:"primary",onClick:x[0]||(x[0]=K=>y())},{default:ne(()=>[$t(ze(s(r).openInExplorer),1)]),_:1})]),_:1}),s(o).reminderEmail&&!v.value?(b(),de(I,{key:0,class:"set-reminder-email",type:"default",onClick:x[1]||(x[1]=K=>_())},{default:ne(()=>[$t(ze(s(r).setReminderEmail),1)]),_:1})):ue("",!0)])):(b(),de(E,{key:1,span:24},{default:ne(()=>[$t(ze(s(r).paymentCompleting),1)]),_:1}))]),_:1})]),_:1},8,["show","title"])}}},TC={__name:"TransactionProcess",props:{transactionHash:{type:String,required:!0}},setup(e){const t=e,o=Le("$lang"),r=Le("$vars"),l=Le("$events"),n=Le("$helpers"),{payment:a}=Le("$store"),i=V(!1),c=V(!1);return vt(async()=>{try{i.value=!0;const u=a.get.order,d=a.get.network,p=Da.Transaction(t.transactionHash);let f=await l.call("transactionReceived",{order:u,network:d,transaction:p});if(!l.check(f))return i.value=!1;if(r.createTransaction){let v=u.paymentCurrency;v.symbol==d.nativeCurrency.symbol?v.decimals=d.nativeCurrency.decimals:v.decimals=await Da.Token(v.address).getDecimals(),a.setOrderParams({paymentCurrency:v});let m=await co.post("create-transaction",{order:u,hash:t.transactionHash,dynamicData:ns.getAll(),network:n.removeNoNeededParams(d)}).then(h=>h.data).catch(h=>h.response&&h.response.data||h);if(m.success)m.data&&ns.add(m.data);else return await l.call("transactionCreateFail",{order:u,network:d,transaction:p}),n.errorPopup(m.message||o.anyError).then(()=>{n.disableScreen(),m.data&&m.data.redirect?m.data.redirect=="reload"?window.location.reload():window.location.href=m.data.redirect:window.location.reload()});await l.call("transactionCreated",{order:u,network:d,transaction:p})}i.value=!1,c.value=r.confirmation}catch(u){return n.debug.error(u),!1}}),(u,d)=>{const p=ot("cp-loading"),f=ot("cp-modal");return b(),z(Xe,null,[i.value?(b(),de(f,{key:0,title:s(o).processing},{default:ne(()=>[oe(p)]),_:1},8,["title"])):ue("",!0),c.value?(b(),de($C,{key:1,transactionHash:e.transactionHash},null,8,["transactionHash"])):ue("",!0)],64)}}},zC={__name:"PaymentProcess",setup(e,{expose:t}){const o=Le("$lang"),r=Le("$events"),l=Le("$helpers"),{payment:n}=Le("$store"),a=n.get.order,i=n.get.network,c=n.get.receiver,u=V(!1),d=V(null);return t({start:async f=>{var v;u.value=!0,await r.call("walletPaymentRequest",{order:a,wallet:f,network:i});try{f.transfer(c,a.paymentAmount,(v=a.paymentCurrency)==null?void 0:v.address).then(async m=>{await r.call("walletPaymentApproved",{order:a,wallet:f,network:i}),u.value=!1,d.value=m.hash}).catch(async m=>{l.debug.error(m),await r.call("walletPaymentDeclined",{order:a,wallet:f,network:i}),u.value=!1,m!="closed-walletconnect-modal"&&(m=="transaction-create-fail"?l.errorPopup(o.transactionCreateFail,o.pleaseTryAgain):m=="insufficient-balance"?l.infoPopup(o.insufficientBalance):m=="transfer-amount-error"?l.infoPopup(o.transferAmountError):m=="request-rejected"?l.warningPopup(o.paymentRejected):m=="rpc-access-forbidden"?l.errorPopup(o.rpcAccessForbidden):m=="not-accepted-chain"||m=="invalid-rpc-error"?l.errorPopup(o.connectionError,l.getWrongNetworkMsg(i)):m=="rpc-timeout"?l.errorPopup(o.rpcTimeout):o[m]?l.errorPopup(o[m]):l.errorPopup(o.anyError))})}catch(m){l.debug.error(m)}}}),(f,v)=>{const m=ot("cp-loading"),h=ot("cp-modal");return b(),z(Xe,null,[u.value?(b(),de(h,{key:0,title:s(o).waitingApproval},{default:ne(()=>[oe(m)]),_:1},8,["title"])):ue("",!0),d.value?(b(),de(TC,{key:1,transactionHash:d.value},null,8,["transactionHash"])):ue("",!0)],64)}}},MC=["data-name","data-key","onClick"],AC=["src","alt"],OC={class:"name"},IC={class:"status"},PC={key:0},BC={key:1,class:"detected"},NC={key:2,class:"download"},LC={key:3,class:"onlyDesktop"},RC={key:4,class:"openInApp"},VC={key:5,class:"openInAppManual"},HC={key:3,class:"no-found"},FC=$("br",null,null,-1),DC={__name:"WalletList",emits:["statusChanged"],setup(e,{emit:t}){const o=Le("$vars"),r=Le("$lang"),l=Le("$events"),n=Le("$helpers"),{payment:a}=Le("$store"),i=a.get.order,c=a.get.network,u=V(null),d=V(!1),p=V([]),f=V(!1),v=V(!1),m=V(["currency"].includes(o.mode)),h=t;h("statusChanged",m.value),Te(m,R=>{h("statusChanged",R)});const _=V(null),g=V(null),y=T(()=>d.value?r.connectionWallet:r.selectWallet);l.add("payNow",()=>{w()},"walletList");const w=async()=>{m.value=!0,l.call("walletListOpened",{network:c,order:i}),Object.values(p.value).length==1&&_.value.querySelector("li").click()},x=()=>{a.isPaymentAmountUpdating||d.value||M()},M=()=>{m.value=!1,clearTimeout(u.value),l.call("walletListClosed",{network:c,order:i})};l.add("paymentReset",()=>{clearTimeout(u.value)},"walletList");const E=()=>{let R=Da.getSupportedWallets(c.wallets);return R=Object.keys(R).sort(function(j,Z){const Q={true:1,undefined:2,false:3},J=R[j].isDetected(),L=R[Z].isDetected();return Q[J]-Q[L]}).reduce((j,Z)=>(j[Z]=R[Z],j),{}),n.isWebview()&&Object.values(R).forEach(j=>{if(j.isDetected())return R={},R[j.getKey()]=j,!0}),R},I=()=>Object.keys(p.value).length===0&&!o.webSocketUrl,O=()=>{clearTimeout(u.value),u.value=setTimeout(()=>{d.value=!1,n.errorPopup(r.walletConnectionTimedOut)},30*1e3)},F=R=>!(R=="closed-web3modal"||R=="closed-walletconnect-modal"||String(R.message).indexOf("Connection request reset. Please try again.")>-1);l.add("walletConnectionDeclined, walletPaymentDeclined",()=>{o.mode=="network"?Object.values(p.value).length>1?w():M():w(),d.value=!1,clearTimeout(u.value),v.value=!1},"walletList"),l.add("walletPaymentApproved",()=>{f.value=!0},"walletList");const K=async R=>{if(R=Da.supportedWallets[R.getKey()],R.isDetected()===!1)if(n.isMobile())if(R.getSupports().includes("mobile"))if(R.getDeepLink()){let D=R.getDeepLink();return D=D.replaceAll("{siteUrl}",window.location.origin),n.infoPopup(r.openInAppMsg),window.open(D,"_blank")}else return n.infoPopup(r.openInAppManualMsg);else return n.infoPopup(r.onlyDesktopMsg);else return R.getDownloadLink()?(window.open(R.getDownloadLink(),"_blank"),n.infoPopup(r.downloadMsg)):n.infoPopup(r.downloadManualMsg);await l.call("walletConnectionRequest",{network:c,order:i,wallet:R}),["walletconnect","web3modal"].includes(R.getKey())||O();try{d.value=!0,R.connect().then(async()=>{d.value=!1,clearTimeout(u.value),await l.call("walletConnectionApproved",{network:c,order:i,wallet:R}),g.value.start(R),v.value=!0}).catch(async D=>{d.value=!1,clearTimeout(u.value),n.debug.error(D),await l.call("walletConnectionDeclined",{network:c,order:i,wallet:R}),F(D)&&(D=="request-rejected"||D=="switch-chain-rejected"?n.warningPopup(r.connectionRejected):D=="already-processing"?n.errorPopup(r.alreadyProcessing):D=="not-accepted-chain"?n.errorPopup(r.connectionError,n.getWrongNetworkMsg(c)):D=="rpc-access-forbidden"?n.errorPopup(r.rpcAccessForbidden):D=="invalid-rpc-error"?n.errorPopup(r.connectionError,n.getWrongNetworkMsg(c)):D=="rpc-timeout"?n.errorPopup(r.rpcTimeout):r[D]?n.errorPopup(r[D]):typeof D=="object"?D.message.includes("Proposal expired")&&n.errorPopup(r.walletConnectionTimedOut):n.errorPopup(r.anyError))})}catch(D){n.debug.error(D)}};return vt(()=>{p.value=E()}),(R,D)=>{const j=ot("cp-loading"),Z=ot("cp-modal");return b(),z(Xe,null,[f.value?ue("",!0):ht((b(),de(Z,{key:0,show:m.value,onClose:D[1]||(D[1]=Q=>x()),title:y.value},{default:ne(()=>[s(o).mode=="currency"?ht((b(),de(b1,{key:0},null,512)),[[Pt,!d.value]]):ue("",!0),d.value?(b(),de(j,{key:1})):(b(),z("ul",{key:2,ref_key:"walletListEl",ref:_,class:P(["list wallets",s(a).isPaymentAmountUpdating?"disabled":""])},[(b(!0),z(Xe,null,Tt(p.value,Q=>(b(),z("li",{key:Q.getKey(),"data-name":Q.getName(),"data-key":Q.getKey(),onClick:J=>K(Q)},[$("img",{class:"img-icon",src:s(o).walletImages[Q.getKey()],alt:Q.getName()},null,8,AC),$("span",OC,ze(Q.getName()),1),$("span",IC,[typeof Q.isDetected()>"u"?(b(),z("span",PC)):Q.isDetected()===!0?(b(),z("span",BC,ze(s(r).detected),1)):!s(n).isMobile()&&Q.isDetected()===!1?(b(),z("span",NC,ze(s(r).download),1)):s(n).isMobile()&&!Q.getSupports().includes("mobile")?(b(),z("span",LC,ze(s(r).onlyDesktop),1)):s(n).isMobile()&&Q.getDeepLink()?(b(),z("span",RC,ze(s(r).openInApp),1)):s(n).isMobile()&&!Q.getDeepLink()?(b(),z("span",VC,ze(s(r).openInAppManual),1)):ue("",!0)])],8,MC))),128))],2)),I()?(b(),z("div",HC,[$t(ze(s(r).notFoundAnyWallet.replace("{networkName}",s(c).name))+" ",1),FC,$("span",{class:"change-network",onClick:D[0]||(D[0]=Q=>s(a).$reset())}," ("+ze(s(r).changeNetwork)+")",1)])):ue("",!0)]),_:1},8,["show","title"])),[[Pt,!v.value]]),oe(zC,{ref_key:"paymentProcess",ref:g},null,512)],64)}}};var jC=!1;let _1;const fu=e=>_1=e,w1=Symbol();function $f(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var as;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(as||(as={}));function KC(){const e=bp(!0),t=e.run(()=>V({}));let o=[],r=[];const l=kl({install(n){fu(l),l._a=n,n.provide(w1,l),n.config.globalProperties.$pinia=l,r.forEach(a=>o.push(a)),r=[]},use(n){return!this._a&&!jC?r.push(n):o.push(n),this},_p:o,_a:null,_e:e,_s:new Map,state:t});return l}const y1=()=>{};function x1(e,t,o,r=y1){e.push(t);const l=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!o&&_p()&&wp(l),l}function ja(e,...t){e.slice().forEach(o=>{o(...t)})}const WC=e=>e();function Tf(e,t){e instanceof Map&&t instanceof Map&&t.forEach((o,r)=>e.set(r,o)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){if(!t.hasOwnProperty(o))continue;const r=t[o],l=e[o];$f(l)&&$f(r)&&e.hasOwnProperty(o)&&!Wt(r)&&!an(r)?e[o]=Tf(l,r):e[o]=r}return e}const UC=Symbol();function qC(e){return!$f(e)||!e.hasOwnProperty(UC)}const{assign:mn}=Object;function YC(e){return!!(Wt(e)&&e.effect)}function GC(e,t,o,r){const{state:l,actions:n,getters:a}=t,i=o.state.value[e];let c;function u(){i||(o.state.value[e]=l?l():{});const d=Ao(o.state.value[e]);return mn(d,n,Object.keys(a||{}).reduce((p,f)=>(p[f]=kl(T(()=>{fu(o);const v=o._s.get(e);return a[f].call(v,v)})),p),{}))}return c=k1(e,u,t,o,r,!0),c}function k1(e,t,o={},r,l,n){let a;const i=mn({actions:{}},o),c={deep:!0};let u,d,p=[],f=[],v;const m=r.state.value[e];!n&&!m&&(r.state.value[e]={}),V({});let h;function _(O){let F;u=d=!1,typeof O=="function"?(O(r.state.value[e]),F={type:as.patchFunction,storeId:e,events:v}):(Tf(r.state.value[e],O),F={type:as.patchObject,payload:O,storeId:e,events:v});const K=h=Symbol();et().then(()=>{h===K&&(u=!0)}),d=!0,ja(p,F,r.state.value[e])}const g=n?function(){const{state:F}=o,K=F?F():{};this.$patch(R=>{mn(R,K)})}:y1;function y(){a.stop(),p=[],f=[],r._s.delete(e)}function w(O,F){return function(){fu(r);const K=Array.from(arguments),R=[],D=[];function j(J){R.push(J)}function Z(J){D.push(J)}ja(f,{args:K,name:O,store:M,after:j,onError:Z});let Q;try{Q=F.apply(this&&this.$id===e?this:M,K)}catch(J){throw ja(D,J),J}return Q instanceof Promise?Q.then(J=>(ja(R,J),J)).catch(J=>(ja(D,J),Promise.reject(J))):(ja(R,Q),Q)}}const x={_p:r,$id:e,$onAction:x1.bind(null,f),$patch:_,$reset:g,$subscribe(O,F={}){const K=x1(p,O,F.detached,()=>R()),R=a.run(()=>Te(()=>r.state.value[e],D=>{(F.flush==="sync"?d:u)&&O({storeId:e,type:as.direct,events:v},D)},mn({},c,F)));return K},$dispose:y},M=Ft(x);r._s.set(e,M);const I=(r._a&&r._a.runWithContext||WC)(()=>r._e.run(()=>(a=bp()).run(t)));for(const O in I){const F=I[O];if(Wt(F)&&!YC(F)||an(F))n||(m&&qC(F)&&(Wt(F)?F.value=m[O]:Tf(F,m[O])),r.state.value[e][O]=F);else if(typeof F=="function"){const K=w(O,F);I[O]=K,i.actions[O]=F}}return mn(M,I),mn(Vt(M),I),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:O=>{_(F=>{mn(F,O)})}}),r._p.forEach(O=>{mn(M,a.run(()=>O({store:M,app:r._a,pinia:r,options:i})))}),m&&n&&o.hydrate&&o.hydrate(M.$state,m),u=!0,d=!0,M}function C1(e,t,o){let r,l;const n=typeof t=="function";typeof e=="string"?(r=e,l=n?o:t):(l=e,r=e.id);function a(i,c){const u=O5();return i=i||(u?Le(w1,null):null),i&&fu(i),i=_1,i._s.has(r)||(n?k1(r,t,l,i):GC(r,l,i)),i._s.get(r)}return a.$id=r,a}const S1=C1("payment",()=>{const e=Le("$events"),t=V({order:{id:null,amount:0,currency:null,paymentAmount:0,paymentCurrency:null},network:{},receiver:null}),o=(i,c)=>{if(typeof t.value.order[i]>"u")throw new Error(`Order param "${i}" not found`);t.value.order[i]=c},r=i=>{Object.entries(i).forEach(([c,u])=>{o(c,u)})},l=i=>{t.value.network=i},n=i=>{t.value.receiver=i},a=T(()=>t.value.order.paymentAmount==0);return lr(()=>{t.value.receiver||e.call("paymentReset")}),{get:t,setNetwork:l,setReceiver:n,setOrderParam:o,setOrderParams:r,isPaymentAmountUpdating:a}}),XC={key:0},ZC={class:"title"},JC={class:"search network"},QC=["onClick"],e7=["alt","src"],t7={class:"name"},o7={key:0,class:"discount"},r7={__name:"NetworkMode",props:{modalStyle:{type:Boolean,required:!1,default:!0}},setup(e){const t=Le("$init"),o=Le("$vars"),r=Le("$events"),{config:l}=Le("$store"),n=V(""),a=V({}),i=V(l.get.networks);i.value.forEach(p=>{p.currencies.forEach(f=>{o.discountRates[f.symbol]&&(a.value[p.id||p.code]||(a.value[p.id||p.code]=[]),a.value[p.id||p.code].push({currency:f.symbol,rate:o.discountRates[f.symbol]}))})}),Object.entries(a.value).forEach(([p,f])=>{a.value[p]=f.sort((v,m)=>m.rate-v.rate)[0].rate});const c=p=>a.value[p.id||p.code],u=async p=>{var f;await r.call("selectedNetwork",{newNetwork:p,oldNetwork:(f=S1.get)==null?void 0:f.network}),t(p,p.currencies[0])},d=T(()=>n.value?i.value.filter(p=>p.name.toLowerCase().includes(n.value.toLowerCase())||p.nativeCurrency.symbol.toLowerCase().includes(n.value.toLowerCase())):i.value);return vt(()=>{i.value.length==1&&u(i.value[0])}),(p,f)=>{const v=ot("Search"),m=ot("el-icon"),h=ot("el-input"),_=ot("Right"),g=ot("cp-list");return b(),z(Xe,null,[e.modalStyle?(b(),z("div",XC,[$("div",ZC,ze(p.$lang.selectNetwork),1),$("div",JC,[oe(h,{placeholder:p.$lang.search,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=y=>n.value=y),clearable:"",onClear:f[1]||(f[1]=y=>n.value="")},{prepend:ne(()=>[oe(m,{size:25},{default:ne(()=>[oe(v)]),_:1})]),_:1},8,["placeholder","modelValue"])]),oe(g,{foundStatus:d.value.length>0,noFoundMsg:p.$lang.notFoundAnyNetworkForPayment},{default:ne(()=>[(b(!0),z(Xe,null,Tt(d.value,(y,w)=>(b(),z("li",{class:"network",key:w,onClick:x=>u(y)},[$("img",{class:"img-icon",alt:y.nativeCurrency.symbol,src:p.$getCoinIcon(y,y.nativeCurrency.symbol)},null,8,e7),$("span",t7,ze(y.name),1),c(y)?(b(),z("span",o7,ze(c(y))+"% "+ze(p.$lang.discount),1)):ue("",!0),oe(m,{size:25},{default:ne(()=>[oe(_)]),_:1})],8,QC))),128))]),_:1},8,["foundStatus","noFoundMsg"])])):ue("",!0),be(p.$slots,"default")],64)}}},l7={key:0},n7={class:"title"},a7={class:"currency-search"},i7=["onClick"],s7={class:"img"},c7=["src","alt"],u7=["alt","src"],d7={class:"name"},p7={class:"network-name"},f7={key:0,class:"discount"},h7={__name:"CurrencyMode",props:{modalStyle:{type:Boolean,required:!1,default:!0}},setup(e){const t=Le("$init"),o=Le("$vars"),r=Le("$events"),l=Le("$helpers"),{payment:n,config:a}=Le("$store"),i=Le("$getCoinIcon"),c=V(""),u=V([]);a.get.networks.forEach(f=>{f.currencies.forEach(v=>{u.value.push(Object.assign(v,{network:{name:f.name,id:f.id||f.code,image:i(f,f.nativeCurrency.symbol)}}))})});const d=async f=>{const v=a.get.networks.find(h=>h.id==f.network.id||h.code==f.network.id),m=l.clone(f);delete m.network,await t(v,m)};r.add("walletListClosed",()=>{n.$reset()},"currencyMode");const p=T(()=>c.value?u.value.filter(f=>f.symbol.toLowerCase().includes(c.value.toLowerCase())||f.network.name.toLowerCase().includes(c.value.toLowerCase())):u.value);return(f,v)=>{const m=ot("Search"),h=ot("el-icon"),_=ot("el-input"),g=ot("Right"),y=ot("cp-list");return b(),z(Xe,null,[e.modalStyle?(b(),z("div",l7,[$("div",n7,ze(f.$lang.selectCurrency),1),$("div",a7,[oe(_,{placeholder:f.$lang.search,modelValue:c.value,"onUpdate:modelValue":v[0]||(v[0]=w=>c.value=w),clearable:"",onClear:v[1]||(v[1]=w=>c.value="")},{prepend:ne(()=>[oe(h,{size:25},{default:ne(()=>[oe(m)]),_:1})]),_:1},8,["placeholder","modelValue"])]),oe(y,{foundStatus:p.value.length>0,noFoundMsg:f.$lang.notFoundAnyCurrencyForPayment},{default:ne(()=>[(b(!0),z(Xe,null,Tt(p.value,(w,x)=>(b(),z("li",{class:"currency",key:x,onClick:M=>d(w)},[$("div",s7,[$("img",{class:"img-icon",src:s(i)(w,w.symbol),alt:w.symbol},null,8,c7),$("img",{class:"network-icon",alt:w.network.name,src:w.network.image},null,8,u7)]),$("span",d7,ze(w.symbol),1),$("span",p7,ze(w.network.name),1),s(o).discountRates[w.symbol]?(b(),z("span",f7,ze(s(o).discountRates[w.symbol])+"% "+ze(f.$lang.discount),1)):ue("",!0),oe(h,{size:25},{default:ne(()=>[oe(g)]),_:1})],8,i7))),128))]),_:1},8,["foundStatus","noFoundMsg"])])):ue("",!0),be(f.$slots,"default")],64)}}},v7={key:0},m7={__name:"App",setup(e){const t=Le("$lang"),o=Le("$vars"),r=Le("$events"),l=Le("$helpers"),{payment:n,config:a}=Le("$store"),i=V(!1),c=V(!1),u=V(!0),d=T(()=>!!(n.get.receiver&&!i.value)),p=T(()=>i.value||c.value?!0:o.mode=="network"?a.get.networks.length!=1:!0),f=()=>({network:r7,currency:h7})[o.mode],v=()=>{n.isPaymentAmountUpdating||n.$reset()},m=h=>Object.keys(h).length===0;return zt("$init",async(h,_)=>{if(_)c.value=!1;else return c.value=!0,l.errorPopup(t.notFoundAnyCurrency);i.value=!0,n.setOrderParams({...a.get.order,paymentCurrency:_});let g=await r.call("init",{network:h,currency:_});if(l.debug.log("Init context",g),!r.check(g))return i.value=!1;let y={success:!0};try{const w=async x=>{const M=Object.assign({wcProjectId:o.wcProjectId,network:l.removeNoNeededParams(h,["wsUrl"])},x.providerConfig,o.providerConfig);a.set("providerConfig",M),a.set("blockConfirmationCount",x.blockConfirmationCount);const E=new window.EvmChains(M),I=E.getSupportedWallets(h.wallets);return m(I)?{success:!1,message:new Error(t.notFoundAnyWallet.replace("{networkName}",h.name))}:(hC(E),n.setNetwork(h),n.setReceiver(x.receiver),n.setOrderParams(x.order),{success:!0})};l.debug.log("init","get init data from api"),y=await co.get("init",{params:{order:n.get.order,network:l.removeNoNeededParams(h)}}).then(async function(x){if(x.data.success){const M=x.data.data;if(M.redirect)return M.redirect=="reload"?window.location.reload():window.location.href=M.redirect;if(y=await w(M),!y.success)return y}return x.data}).catch(function(x){return x.response&&x.response.data||x})}catch(w){y={success:!1,message:w.message}}i.value=!1,y.success||l.errorPopup(y.message).then(()=>{if(y.data){const w=y.data;l.disableScreen(),w.redirect?window.location.href=w.redirect:w.redirect=="reload"&&window.location.reload()}})}),(h,_)=>{const g=ot("cp-modal"),y=ot("cp-loading"),w=ot("cp-container");return s(a).isAppStarted?(b(),de(w,{key:0},{default:ne(()=>[(b(),de(St(f()),{modalStyle:p.value},{default:ne(()=>[d.value?(b(),de(g,{key:0,modalStyle:p.value,onClose:_[1]||(_[1]=x=>v())},{default:ne(()=>[!u.value||!p.value?(b(),z("div",v7,[oe(kC)])):ue("",!0),oe(DC,{onStatusChanged:_[0]||(_[0]=x=>u.value=x)})]),_:1},8,["modalStyle"])):ue("",!0)]),_:1},8,["modalStyle"])),i.value?(b(),de(g,{key:0,title:s(t).loading},{default:ne(()=>[oe(y)]),_:1},8,["title"])):ue("",!0)]),_:1})):ue("",!0)}}};var xo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}};hu.exports,function(e,t){var o=200,r="__lodash_hash_undefined__",l=9007199254740991,n="[object Arguments]",a="[object Array]",i="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",f="[object Map]",v="[object Number]",m="[object Object]",h="[object Promise]",_="[object RegExp]",g="[object Set]",y="[object String]",w="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",E="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",F="[object Int8Array]",K="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",j="[object Uint8ClampedArray]",Z="[object Uint16Array]",Q="[object Uint32Array]",J=/[\\^$.*+?()[\]{}|]/g,L=/\w*$/,X=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,W={};W[n]=W[a]=W[M]=W[E]=W[i]=W[c]=W[I]=W[O]=W[F]=W[K]=W[R]=W[f]=W[v]=W[m]=W[_]=W[g]=W[y]=W[w]=W[D]=W[j]=W[Z]=W[Q]=!0,W[u]=W[d]=W[x]=!1;var re=typeof xo=="object"&&xo&&xo.Object===Object&&xo,ie=typeof self=="object"&&self&&self.Object===Object&&self,se=re||ie||Function("return this")(),ve=t&&!t.nodeType&&t,le=ve&&!0&&e&&!e.nodeType&&e,ge=le&&le.exports===ve;function _e(ae,Ve){return ae.set(Ve[0],Ve[1]),ae}function me(ae,Ve){return ae.add(Ve),ae}function Be(ae,Ve){for(var Ze=-1,yt=ae?ae.length:0;++Ze-1}function Kv(ae,Ve){var Ze=this.__data__,yt=Ti(Ze,ae);return yt<0?Ze.push([ae,Ve]):Ze[yt][1]=Ve,this}ho.prototype.clear=uc,ho.prototype.delete=Gd,ho.prototype.get=xa,ho.prototype.has=or,ho.prototype.set=Kv;function Gl(ae){var Ve=-1,Ze=ae?ae.length:0;for(this.clear();++Ve-1&&ae%1==0&&ae-1&&ae%1==0&&ae<=l}function Ca(ae){var Ve=typeof ae;return!!ae&&(Ve=="object"||Ve=="function")}function y2(ae){return!!ae&&typeof ae=="object"}function zi(ae){return tp(ae)?Zv(ae):o2(ae)}function x2(){return[]}function k2(){return!1}e.exports=m2}(hu,hu.exports);var g7=hu.exports;const E1=Er(g7);function b7({store:e}){const t=E1(e.$state);e.$reset=()=>e.$patch(E1(t))}const _7=e=>({list:{},check(t){return t&&(t.error||t.info||t.warning)?(t.message&&(t.error?e.errorPopup(t.message):t.warning?e.warningPopup(t.message):t.info&&e.infoPopup(t.message)),!1):!0},getIds(){return{paymentAmount:["paymentReset","updateCurrency","walletListClosed","walletListOpened"],walletList:["paymentReset","paymentDeclined","connectionDeclined"]}},add(t,o,r=null,l=0){const n=t.split(",");if(n.length>1){n.forEach(i=>{this.add(i.trim(),o,r,l)});return}this.list[t]||(this.list[t]=[]);const a=this.list[t].findIndex(i=>i.customId==r);r&&this.list[t][a]?this.list[t][a]={callback:o,customId:r,priority:l}:this.list[t].push({callback:o,customId:r,priority:l}),this.list[t].sort((i,c)=>i.priority-c.priority)},remove(t,o=null){if(this.list[t])if(o){const r=this.list[t].findIndex(l=>l.customId==o);r>-1&&this.list[t].splice(r,1)}else this.list[t]=[]},call(t,o={}){if(typeof o!="object")throw new Error("Event context must be an object.");return new Promise(async r=>{var l;if(this.list[t])for(let n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(G,k,A){return f()?v=Reflect.construct.bind():v=function(fe,je,mt){var Ht=[null];Ht.push.apply(Ht,je);var jt=Function.bind.apply(fe,Ht),go=new jt;return mt&&d(go,mt.prototype),go},v.apply(null,arguments)}function m(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function h(G,k){if(k&&(typeof k=="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(G)}function _(G){var k=f();return function(){var q=p(G),fe;if(k){var je=p(this).constructor;fe=Reflect.construct(q,arguments,je)}else fe=q.apply(this,arguments);return h(this,fe)}}function g(G,k){for(;!Object.prototype.hasOwnProperty.call(G,k)&&(G=p(G),G!==null););return G}function y(){return typeof Reflect<"u"&&Reflect.get?y=Reflect.get.bind():y=function(k,A,q){var fe=g(k,A);if(fe){var je=Object.getOwnPropertyDescriptor(fe,A);return je.get?je.get.call(arguments.length<3?k:q):je.value}},y.apply(this,arguments)}function w(G,k){return T(G)||o(G,k)||I(G,k)||R()}function x(G){return M(G)||O(G)||I(G)||K()}function M(G){if(Array.isArray(G))return F(G)}function T(G){if(Array.isArray(G))return G}function O(G){if(typeof Symbol<"u"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}function I(G,k){if(G){if(typeof G=="string")return F(G,k);var A=Object.prototype.toString.call(G).slice(8,-1);if(A==="Object"&&G.constructor&&(A=G.constructor.name),A==="Map"||A==="Set")return Array.from(G);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return F(G,k)}}function F(G,k){(k==null||k>G.length)&&(k=G.length);for(var A=0,q=new Array(k);A"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(G,k,A){return f()?v=Reflect.construct.bind():v=function(fe,je,mt){var Ht=[null];Ht.push.apply(Ht,je);var Kt=Function.bind.apply(fe,Ht),go=new Kt;return mt&&p(go,mt.prototype),go},v.apply(null,arguments)}function m(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function h(G,k){if(k&&(typeof k=="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m(G)}function _(G){var k=f();return function(){var q=d(G),fe;if(k){var je=d(this).constructor;fe=Reflect.construct(q,arguments,je)}else fe=q.apply(this,arguments);return h(this,fe)}}function g(G,k){for(;!Object.prototype.hasOwnProperty.call(G,k)&&(G=d(G),G!==null););return G}function y(){return typeof Reflect<"u"&&Reflect.get?y=Reflect.get.bind():y=function(k,A,q){var fe=g(k,A);if(fe){var je=Object.getOwnPropertyDescriptor(fe,A);return je.get?je.get.call(arguments.length<3?k:q):je.value}},y.apply(this,arguments)}function w(G,k){return E(G)||o(G,k)||O(G,k)||R()}function x(G){return M(G)||I(G)||O(G)||K()}function M(G){if(Array.isArray(G))return F(G)}function E(G){if(Array.isArray(G))return G}function I(G){if(typeof Symbol<"u"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}function O(G,k){if(G){if(typeof G=="string")return F(G,k);var A=Object.prototype.toString.call(G).slice(8,-1);if(A==="Object"&&G.constructor&&(A=G.constructor.name),A==="Map"||A==="Set")return Array.from(G);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return F(G,k)}}function F(G,k){(k==null||k>G.length)&&(k=G.length);for(var A=0,q=new Array(k);Ago?1:jt .").concat(le[A]));case"checkbox":return k.querySelector(".".concat(le.popup," > .").concat(le.checkbox," input"));case"radio":return k.querySelector(".".concat(le.popup," > .").concat(le.radio," input:checked"))||k.querySelector(".".concat(le.popup," > .").concat(le.radio," input:first-child"));case"range":return k.querySelector(".".concat(le.popup," > .").concat(le.range," input"));default:return k.querySelector(".".concat(le.popup," > .").concat(le.input))}},at=function(k){if(k.focus(),k.type!=="file"){var A=k.value;k.value="",k.value=A}},bt=function(k,A,q){!k||!A||(typeof A=="string"&&(A=A.split(/\s+/).filter(Boolean)),A.forEach(function(fe){Array.isArray(k)?k.forEach(function(je){q?je.classList.add(fe):je.classList.remove(fe)}):q?k.classList.add(fe):k.classList.remove(fe)}))},pt=function(k,A){bt(k,A,!0)},Xt=function(k,A){bt(k,A,!1)},yo=function(k,A){for(var q=Array.from(k.children),fe=0;fe1&&arguments[1]!==void 0?arguments[1]:"flex";k&&(k.style.display=A)},ho=function(k){k&&(k.style.display="none")},uc=function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";k&&new MutationObserver(function(){ya(k,k.innerHTML,A)}).observe(k,{childList:!0,subtree:!0})},Ud=function(k,A,q,fe){var je=k.querySelector(A);je&&je.style.setProperty(q,fe)},ya=function(k,A){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";A?ao(k,q):ho(k)},or=function(k){return!!(k&&(k.offsetWidth||k.offsetHeight||k.getClientRects().length))},Rv=function(){return!or(Y())&&!or(S())&&!or(C())},Gl=function(k){return k.scrollHeight>k.clientHeight},qd=function(k){var A=window.getComputedStyle(k),q=parseFloat(A.getPropertyValue("animation-duration")||"0"),fe=parseFloat(A.getPropertyValue("transition-duration")||"0");return q>0||fe>0},dc=function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=Ue();q&&or(q)&&(A&&(q.style.transition="none",q.style.width="100%"),setTimeout(function(){q.style.transition="width ".concat(k/1e3,"s linear"),q.style.width="0%"},10))},Vv=function(){var k=Ue();if(k){var A=parseInt(window.getComputedStyle(k).width);k.style.removeProperty("transition"),k.style.width="100%";var q=parseInt(window.getComputedStyle(k).width),fe=A/q*100;k.style.width="".concat(fe,"%")}},Yd=function(){return typeof window>"u"||typeof document>"u"},Hv=` +`,Mt=function(){var k=Pe();if(!k)return[];var A=k.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),q=Array.from(A).sort(function(mt,Ht){var Kt=parseInt(mt.getAttribute("tabindex")||"0"),go=parseInt(Ht.getAttribute("tabindex")||"0");return Kt>go?1:Kt .").concat(le[A]));case"checkbox":return k.querySelector(".".concat(le.popup," > .").concat(le.checkbox," input"));case"radio":return k.querySelector(".".concat(le.popup," > .").concat(le.radio," input:checked"))||k.querySelector(".".concat(le.popup," > .").concat(le.radio," input:first-child"));case"range":return k.querySelector(".".concat(le.popup," > .").concat(le.range," input"));default:return k.querySelector(".".concat(le.popup," > .").concat(le.input))}},at=function(k){if(k.focus(),k.type!=="file"){var A=k.value;k.value="",k.value=A}},bt=function(k,A,q){!k||!A||(typeof A=="string"&&(A=A.split(/\s+/).filter(Boolean)),A.forEach(function(fe){Array.isArray(k)?k.forEach(function(je){q?je.classList.add(fe):je.classList.remove(fe)}):q?k.classList.add(fe):k.classList.remove(fe)}))},pt=function(k,A){bt(k,A,!0)},Xt=function(k,A){bt(k,A,!1)},yo=function(k,A){for(var q=Array.from(k.children),fe=0;fe1&&arguments[1]!==void 0?arguments[1]:"flex";k&&(k.style.display=A)},ho=function(k){k&&(k.style.display="none")},uc=function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";k&&new MutationObserver(function(){xa(k,k.innerHTML,A)}).observe(k,{childList:!0,subtree:!0})},Gd=function(k,A,q,fe){var je=k.querySelector(A);je&&je.style.setProperty(q,fe)},xa=function(k,A){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";A?ao(k,q):ho(k)},or=function(k){return!!(k&&(k.offsetWidth||k.offsetHeight||k.getClientRects().length))},Kv=function(){return!or(Y())&&!or(S())&&!or(C())},Gl=function(k){return k.scrollHeight>k.clientHeight},Xd=function(k){var A=window.getComputedStyle(k),q=parseFloat(A.getPropertyValue("animation-duration")||"0"),fe=parseFloat(A.getPropertyValue("transition-duration")||"0");return q>0||fe>0},dc=function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=qe();q&&or(q)&&(A&&(q.style.transition="none",q.style.width="100%"),setTimeout(function(){q.style.transition="width ".concat(k/1e3,"s linear"),q.style.width="0%"},10))},Wv=function(){var k=qe();if(k){var A=parseInt(window.getComputedStyle(k).width);k.style.removeProperty("transition"),k.style.width="100%";var q=parseInt(window.getComputedStyle(k).width),fe=A/q*100;k.style.width="".concat(fe,"%")}},Zd=function(){return typeof window>"u"||typeof document>"u"},Uv=`
    @@ -69,20 +70,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    -`).replace(/(^|\n)\s*/g,""),In=function(){var k=Se();return k?(k.remove(),Xt([document.documentElement,document.body],[le["no-backdrop"],le["toast-shown"],le["has-column"]]),!0):!1},Xl=function(){W.currentInstance.resetValidationMessage()},Fv=function(){var k=Pe(),A=yo(k,le.input),q=yo(k,le.file),fe=k.querySelector(".".concat(le.range," input")),je=k.querySelector(".".concat(le.range," output")),mt=yo(k,le.select),Ht=k.querySelector(".".concat(le.checkbox," input")),jt=yo(k,le.textarea);A.oninput=Xl,q.onchange=Xl,mt.onchange=Xl,Ht.onchange=Xl,jt.oninput=Xl,fe.oninput=function(){Xl(),je.value=fe.value},fe.onchange=function(){Xl(),je.value=fe.value}},Dv=function(k){return typeof k=="string"?document.querySelector(k):k},jv=function(k){var A=Pe();A.setAttribute("role",k.toast?"alert":"dialog"),A.setAttribute("aria-live",k.toast?"polite":"assertive"),k.toast||A.setAttribute("aria-modal","true")},Kv=function(k){window.getComputedStyle(k).direction==="rtl"&&pt(Se(),le.rtl)},Wv=function(k){var A=In();if(Yd()){Me("SweetAlert2 requires document to initialize");return}var q=document.createElement("div");q.className=le.container,A&&pt(q,le["no-transition"]),De(q,Hv);var fe=Dv(k.target);fe.appendChild(q),jv(k),Kv(fe),Fv()},Ei=function(k,A){k instanceof HTMLElement?A.appendChild(k):n(k)==="object"?$i(k,A):k&&De(A,k)},$i=function(k,A){k.jquery?Uv(A,k):De(A,k.toString())},Uv=function(k,A){if(k.textContent="",0 in A)for(var q=0;q in A;q++)k.appendChild(A[q].cloneNode(!0));else k.appendChild(A.cloneNode(!0))},Xr=function(){if(Yd())return!1;var G=document.createElement("div");return typeof G.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof G.style.animation<"u"?"animationend":!1}(),qv=function(k,A){var q=U(),fe=ee();!q||!fe||(!A.showConfirmButton&&!A.showDenyButton&&!A.showCancelButton?ho(q):ao(q),Gt(q,A,"actions"),Yv(q,fe,A),De(fe,A.loaderHtml||""),Gt(fe,A,"loader"))};function Yv(G,k,A){var q=Y(),fe=S(),je=C();!q||!fe||!je||(pc(q,"confirm",A),pc(fe,"deny",A),pc(je,"cancel",A),Gv(q,fe,je,A),A.reverseButtons&&(A.toast?(G.insertBefore(je,q),G.insertBefore(fe,q)):(G.insertBefore(je,k),G.insertBefore(fe,k),G.insertBefore(q,k))))}function Gv(G,k,A,q){if(!q.buttonsStyling){Xt([G,k,A],le.styled);return}pt([G,k,A],le.styled),q.confirmButtonColor&&(G.style.backgroundColor=q.confirmButtonColor,pt(G,le["default-outline"])),q.denyButtonColor&&(k.style.backgroundColor=q.denyButtonColor,pt(k,le["default-outline"])),q.cancelButtonColor&&(A.style.backgroundColor=q.cancelButtonColor,pt(A,le["default-outline"]))}function pc(G,k,A){var q=Be(k);ya(G,A["show".concat(q,"Button")],"inline-block"),De(G,A["".concat(k,"ButtonText")]||""),G.setAttribute("aria-label",A["".concat(k,"ButtonAriaLabel")]||""),G.className=le[k],Gt(G,A,"".concat(k,"Button"))}var Xv=function(k,A){var q=st();q&&(De(q,A.closeButtonHtml||""),Gt(q,A,"closeButton"),ya(q,A.showCloseButton),q.setAttribute("aria-label",A.closeButtonAriaLabel||""))},Zv=function(k,A){var q=Se();q&&(fc(q,A.backdrop),Jv(q,A.position),Qv(q,A.grow),Gt(q,A,"container"))};function fc(G,k){typeof k=="string"?G.style.background=k:k||pt([document.documentElement,document.body],le["no-backdrop"])}function Jv(G,k){k&&(k in le?pt(G,le[k]):(ye('The "position" parameter is not valid, defaulting to "center"'),pt(G,le.center)))}function Qv(G,k){k&&pt(G,le["grow-".concat(k)])}var io={innerParams:new WeakMap,domCache:new WeakMap},e2=["input","file","range","select","radio","checkbox","textarea"],t2=function(k,A){var q=Pe();if(q){var fe=io.innerParams.get(k),je=!fe||A.input!==fe.input;e2.forEach(function(mt){var Ht=yo(q,le[mt]);Ht&&(Gd(mt,A.inputAttributes),Ht.className=le[mt],je&&ho(Ht))}),A.input&&(je&&o2(A),l2(A))}},o2=function(k){if(k.input){if(!to[k.input]){Me("Unexpected type of input! Expected ".concat(Object.keys(to).join(" | "),', got "').concat(k.input,'"'));return}var A=Zl(k.input),q=to[k.input](A,k);ao(A),k.inputAutoFocus&&setTimeout(function(){at(q)})}},r2=function(k){for(var A=0;Aq?Pe().style.width="".concat(mt,"px"):no(Pe(),"width",k.width)}};new MutationObserver(fe).observe(G,{attributes:!0,attributeFilter:["style"]})}}),G};var n2=function(k,A){var q=We();q&&(uc(q),Gt(q,A,"htmlContainer"),A.html?(Ei(A.html,q),ao(q,"block")):A.text?(q.textContent=A.text,ao(q,"block")):ho(q),t2(k,A))},a2=function(k,A){var q=he();q&&(uc(q),ya(q,A.footer,"block"),A.footer&&Ei(A.footer,q),Gt(q,A,"footer"))},i2=function(k,A){var q=io.innerParams.get(k),fe=qe();if(fe){if(q&&A.icon===q.icon){bl(fe,A),Xd(fe,A);return}if(!A.icon&&!A.iconHtml){ho(fe);return}if(A.icon&&Object.keys(_e).indexOf(A.icon)===-1){Me('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(A.icon,'"')),ho(fe);return}ao(fe),bl(fe,A),Xd(fe,A),pt(fe,A.showClass&&A.showClass.icon)}},Xd=function(k,A){for(var q=0,fe=Object.entries(_e);qq?Pe().style.width="".concat(mt,"px"):no(Pe(),"width",k.width)}};new MutationObserver(fe).observe(G,{attributes:!0,attributeFilter:["style"]})}}),G};var d2=function(k,A){var q=Ue();q&&(uc(q),Gt(q,A,"htmlContainer"),A.html?($i(A.html,q),ao(q,"block")):A.text?(q.textContent=A.text,ao(q,"block")):ho(q),i2(k,A))},p2=function(k,A){var q=he();q&&(uc(q),xa(q,A.footer,"block"),A.footer&&$i(A.footer,q),Gt(q,A,"footer"))},f2=function(k,A){var q=io.innerParams.get(k),fe=Ye();if(fe){if(q&&A.icon===q.icon){_l(fe,A),Qd(fe,A);return}if(!A.icon&&!A.iconHtml){ho(fe);return}if(A.icon&&Object.keys(_e).indexOf(A.icon)===-1){Me('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(A.icon,'"')),ho(fe);return}ao(fe),_l(fe,A),Qd(fe,A),pt(fe,A.showClass&&A.showClass.icon)}},Qd=function(k,A){for(var q=0,fe=Object.entries(_e);q
    -`,Zd=` +`,ep=` -`,bl=function(k,A){if(!(!A.icon&&!A.iconHtml)){var q=k.innerHTML,fe="";if(A.iconHtml)fe=vc(A.iconHtml);else if(A.icon==="success")fe=c2,q=q.replace(/ style=".*?"/g,"");else if(A.icon==="error")fe=Zd;else if(A.icon){var je={question:"?",warning:"!",info:"i"};fe=vc(je[A.icon])}q.trim()!==fe.trim()&&De(k,fe)}},u2=function(k,A){if(A.iconColor){k.style.color=A.iconColor,k.style.borderColor=A.iconColor;for(var q=0,fe=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];q').concat(k,"")},d2=function(k,A){var q=nt();if(q){if(!A.imageUrl){ho(q);return}ao(q,""),q.setAttribute("src",A.imageUrl),q.setAttribute("alt",A.imageAlt||""),no(q,"width",A.imageWidth),no(q,"height",A.imageHeight),q.className=le.image,Gt(q,A,"image")}},mc=function(k,A){var q=Se(),fe=Pe();if(!(!q||!fe)){if(A.toast){no(q,"width",A.width),fe.style.width="100%";var je=ee();je&&fe.insertBefore(je,qe())}else no(fe,"width",A.width);no(fe,"padding",A.padding),A.color&&(fe.style.color=A.color),A.background&&(fe.style.background=A.background),ho(gt()),Jd(fe,A)}},Jd=function(k,A){var q=A.showClass||{};k.className="".concat(le.popup," ").concat(or(k)?q.popup:""),A.toast?(pt([document.documentElement,document.body],le["toast-shown"]),pt(k,le.toast)):pt(k,le.modal),Gt(k,A,"popup"),typeof A.customClass=="string"&&pt(k,A.customClass),A.icon&&pt(k,le["icon-".concat(A.icon)])},p2=function(k,A){var q=dt();if(q){var fe=A.progressSteps,je=A.currentProgressStep;if(!fe||fe.length===0||je===void 0){ho(q);return}ao(q),q.textContent="",je>=fe.length&&ye("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),fe.forEach(function(mt,Ht){var jt=f2(mt);if(q.appendChild(jt),Ht===je&&pt(jt,le["active-progress-step"]),Ht!==fe.length-1){var go=Qd(A);q.appendChild(go)}})}},f2=function(k){var A=document.createElement("li");return pt(A,le["progress-step"]),De(A,k),A},Qd=function(k){var A=document.createElement("li");return pt(A,le["progress-step-line"]),k.progressStepsDistance&&no(A,"width",k.progressStepsDistance),A},h2=function(k,A){var q=Ee();q&&(uc(q),ya(q,A.title||A.titleText,"block"),A.title&&Ei(A.title,q),A.titleText&&(q.innerText=A.titleText),Gt(q,A,"title"))},ka=function(k,A){mc(k,A),Zv(k,A),p2(k,A),i2(k,A),d2(k,A),h2(k,A),Xv(k,A),n2(k,A),qv(k,A),a2(k,A);var q=Pe();typeof A.didRender=="function"&&q&&A.didRender(q)},v2=function(){return or(Pe())},Ti=function(){var k;return(k=Y())===null||k===void 0?void 0:k.click()},m2=function(){var k;return(k=S())===null||k===void 0?void 0:k.click()},g2=function(){var k;return(k=C())===null||k===void 0?void 0:k.click()},ae=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ve=function(k){k.keydownTarget&&k.keydownHandlerAdded&&(k.keydownTarget.removeEventListener("keydown",k.keydownHandler,{capture:k.keydownListenerCapture}),k.keydownHandlerAdded=!1)},Xe=function(k,A,q){Ve(k),A.toast||(k.keydownHandler=function(fe){return vr(A,fe,q)},k.keydownTarget=A.keydownListenerCapture?window:Pe(),k.keydownListenerCapture=A.keydownListenerCapture,k.keydownTarget.addEventListener("keydown",k.keydownHandler,{capture:k.keydownListenerCapture}),k.keydownHandlerAdded=!0)},yt=function(k,A){var q,fe=Mt();if(fe.length){k=k+A,k===fe.length?k=0:k===-1&&(k=fe.length-1),fe[k].focus();return}(q=Pe())===null||q===void 0||q.focus()},To=["ArrowRight","ArrowDown"],Fo=["ArrowLeft","ArrowUp"],vr=function(k,A,q){k&&(A.isComposing||A.keyCode===229||(k.stopKeydownPropagation&&A.stopPropagation(),A.key==="Enter"?Uo(A,k):A.key==="Tab"?ep(A):[].concat(To,Fo).includes(A.key)?On(A.key):A.key==="Escape"&&tp(A,k,q)))},Uo=function(k,A){if(Ae(A.allowEnterKey)){var q=Re(Pe(),A.input);if(k.target&&q&&k.target instanceof HTMLElement&&k.target.outerHTML===q.outerHTML){if(["textarea","file"].includes(A.input))return;Ti(),k.preventDefault()}}},ep=function(k){for(var A=k.target,q=Mt(),fe=-1,je=0;je1},Hse=function(){if(lt(document.body,le.iosfix)){var k=parseInt(document.body.style.top,10);Xt(document.body,le.iosfix),document.body.style.top="",document.body.scrollTop=k*-1}},Fse=function(){var k=document.createElement("div");k.className=le["scrollbar-measure"],document.body.appendChild(k);var A=k.getBoundingClientRect().width-k.clientWidth;return document.body.removeChild(k),A},Mi=null,Dse=function(k){Mi===null&&(document.body.scrollHeight>window.innerHeight||k==="scroll")&&(Mi=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Mi+Fse(),"px"))},jse=function(){Mi!==null&&(document.body.style.paddingRight="".concat(Mi,"px"),Mi=null)};function x8(G,k,A,q){lo()?C8(G,q):(ie(A).then(function(){return C8(G,q)}),Ve(W)),Ca?(k.setAttribute("style","display:none !important"),k.removeAttribute("class"),k.innerHTML=""):k.remove(),Lt()&&(jse(),Hse(),zi()),Kse()}function Kse(){Xt([document.documentElement,document.body],[le.shown,le["height-auto"],le["no-backdrop"],le["toast-shown"]])}function Pn(G){G=Use(G);var k=Jl.swalPromiseResolve.get(this),A=Wse(this);this.isAwaitingPromise?G.isDismissed||(gc(this),k(G)):A&&k(G)}var Wse=function(k){var A=Pe();if(!A)return!1;var q=io.innerParams.get(k);if(!q||lt(A,q.hideClass.popup))return!1;Xt(A,q.showClass.popup),pt(A,q.hideClass.popup);var fe=Se();return Xt(fe,q.showClass.backdrop),pt(fe,q.hideClass.backdrop),qse(k,A,q),!0};function k8(G){var k=Jl.swalPromiseReject.get(this);gc(this),k&&k(G)}var gc=function(k){k.isAwaitingPromise&&(delete k.isAwaitingPromise,io.innerParams.get(k)||k._destroy())},Use=function(k){return typeof k>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},k)},qse=function(k,A,q){var fe=Se(),je=Xr&&qd(A);typeof q.willClose=="function"&&q.willClose(A),je?Yse(k,A,fe,q.returnFocus,q.didClose):x8(k,fe,q.returnFocus,q.didClose)},Yse=function(k,A,q,fe,je){Xr&&(W.swalCloseEventFinishedCallback=x8.bind(null,k,q,fe,je),A.addEventListener(Xr,function(mt){mt.target===A&&(W.swalCloseEventFinishedCallback(),delete W.swalCloseEventFinishedCallback)}))},C8=function(k,A){setTimeout(function(){typeof A=="function"&&A.bind(k.params)(),k._destroy&&k._destroy()})},Ai=function(k){var A=Pe();if(A||new ip,A=Pe(),!!A){var q=ee();lo()?ho(qe()):Gse(A,k),ao(q),A.setAttribute("data-loading","true"),A.setAttribute("aria-busy","true"),A.focus()}},Gse=function(k,A){var q=U(),fe=ee();!q||!fe||(!A&&or(Y())&&(A=Y()),ao(q),A&&(ho(A),fe.setAttribute("data-button-to-replace",A.className),q.insertBefore(fe,A)),pt([k,q],le.loading))},Xse=function(k,A){A.input==="select"||A.input==="radio"?tce(k,A):["text","email","number","tel","textarea"].some(function(q){return q===A.input})&&(Ie(A.inputValue)||Ne(A.inputValue))&&(Ai(Y()),oce(k,A))},Zse=function(k,A){var q=k.getInput();if(!q)return null;switch(A.input){case"checkbox":return Jse(q);case"radio":return Qse(q);case"file":return ece(q);default:return A.inputAutoTrim?q.value.trim():q.value}},Jse=function(k){return k.checked?1:0},Qse=function(k){return k.checked?k.value:null},ece=function(k){return k.files&&k.files.length?k.getAttribute("multiple")!==null?k.files:k.files[0]:null},tce=function(k,A){var q=Pe();if(q){var fe=function(mt){A.input==="select"?rce(q,S8(mt),A):A.input==="radio"&&lce(q,S8(mt),A)};Ie(A.inputOptions)||Ne(A.inputOptions)?(Ai(Y()),xe(A.inputOptions).then(function(je){k.hideLoading(),fe(je)})):n(A.inputOptions)==="object"?fe(A.inputOptions):Me("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(n(A.inputOptions)))}},oce=function(k,A){var q=k.getInput();q&&(ho(q),xe(A.inputValue).then(function(fe){q.value=A.input==="number"?"".concat(parseFloat(fe)||0):"".concat(fe),ao(q),q.focus(),k.hideLoading()}).catch(function(fe){Me("Error in inputValue promise: ".concat(fe)),q.value="",ao(q),q.focus(),k.hideLoading()}))};function rce(G,k,A){var q=yo(G,le.select);if(q){var fe=function(mt,Ht,jt){var go=document.createElement("option");go.value=jt,De(go,Ht),go.selected=E8(jt,A.inputValue),mt.appendChild(go)};k.forEach(function(je){var mt=je[0],Ht=je[1];if(Array.isArray(Ht)){var jt=document.createElement("optgroup");jt.label=mt,jt.disabled=!1,q.appendChild(jt),Ht.forEach(function(go){return fe(jt,go[1],go[0])})}else fe(q,Ht,mt)}),q.focus()}}function lce(G,k,A){var q=yo(G,le.radio);if(q){k.forEach(function(je){var mt=je[0],Ht=je[1],jt=document.createElement("input"),go=document.createElement("label");jt.type="radio",jt.name=le.radio,jt.value=mt,E8(mt,A.inputValue)&&(jt.checked=!0);var bc=document.createElement("span");De(bc,Ht),bc.className=le.label,go.appendChild(jt),go.appendChild(bc),q.appendChild(go)});var fe=q.querySelectorAll("input");fe.length&&fe[0].focus()}}var S8=function G(k){var A=[];return k instanceof Map?k.forEach(function(q,fe){var je=q;n(je)==="object"&&(je=G(je)),A.push([fe,je])}):Object.keys(k).forEach(function(q){var fe=k[q];n(fe)==="object"&&(fe=G(fe)),A.push([q,fe])}),A},E8=function(k,A){return!!A&&A.toString()===k.toString()},rp=void 0,nce=function(k){var A=io.innerParams.get(k);k.disableButtons(),A.input?$8(k,"confirm"):_2(k,!0)},ace=function(k){var A=io.innerParams.get(k);k.disableButtons(),A.returnInputValueOnDeny?$8(k,"deny"):b2(k,!1)},ice=function(k,A){k.disableButtons(),A(ae.cancel)},$8=function(k,A){var q=io.innerParams.get(k);if(!q.input){Me('The "input" parameter is needed to be set when using returnInputValueOn'.concat(Be(A)));return}var fe=k.getInput(),je=Zse(k,q);q.inputValidator?sce(k,je,A):fe&&!fe.checkValidity()?(k.enableButtons(),k.showValidationMessage(q.validationMessage)):A==="deny"?b2(k,je):_2(k,je)},sce=function(k,A,q){var fe=io.innerParams.get(k);k.disableInput();var je=Promise.resolve().then(function(){return xe(fe.inputValidator(A,fe.validationMessage))});je.then(function(mt){k.enableButtons(),k.enableInput(),mt?k.showValidationMessage(mt):q==="deny"?b2(k,A):_2(k,A)})},b2=function(k,A){var q=io.innerParams.get(k||rp);if(q.showLoaderOnDeny&&Ai(S()),q.preDeny){k.isAwaitingPromise=!0;var fe=Promise.resolve().then(function(){return xe(q.preDeny(A,q.validationMessage))});fe.then(function(je){je===!1?(k.hideLoading(),gc(k)):k.close({isDenied:!0,value:typeof je>"u"?A:je})}).catch(function(je){return z8(k||rp,je)})}else k.close({isDenied:!0,value:A})},T8=function(k,A){k.close({isConfirmed:!0,value:A})},z8=function(k,A){k.rejectPromise(A)},_2=function(k,A){var q=io.innerParams.get(k||rp);if(q.showLoaderOnConfirm&&Ai(),q.preConfirm){k.resetValidationMessage(),k.isAwaitingPromise=!0;var fe=Promise.resolve().then(function(){return xe(q.preConfirm(A,q.validationMessage))});fe.then(function(je){or(gt())||je===!1?(k.hideLoading(),gc(k)):T8(k,typeof je>"u"?A:je)}).catch(function(je){return z8(k||rp,je)})}else T8(k,A)};function lp(){var G=io.innerParams.get(this);if(G){var k=io.domCache.get(this);ho(k.loader),lo()?G.icon&&ao(qe()):cce(k),Xt([k.popup,k.actions],le.loading),k.popup.removeAttribute("aria-busy"),k.popup.removeAttribute("data-loading"),k.confirmButton.disabled=!1,k.denyButton.disabled=!1,k.cancelButton.disabled=!1}}var cce=function(k){var A=k.popup.getElementsByClassName(k.loader.getAttribute("data-button-to-replace"));A.length?ao(A[0],"inline-block"):Rv()&&ho(k.actions)};function M8(){var G=io.innerParams.get(this),k=io.domCache.get(this);return k?Re(k.popup,G.input):null}function A8(G,k,A){var q=io.domCache.get(G);k.forEach(function(fe){q[fe].disabled=A})}function I8(G,k){var A=Pe();if(!(!A||!G))if(G.type==="radio")for(var q=A.querySelectorAll('[name="'.concat(le.radio,'"]')),fe=0;fe0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";y2[G]=this,Y8||(document.body.addEventListener("click",Bce),Y8=!0)}var Bce=function(k){for(var A=k.target;A&&A!==document;A=A.parentNode)for(var q in y2){var fe=A.getAttribute(q);if(fe){y2[q].fire({template:fe});return}}},Nce=Object.freeze({__proto__:null,argsToParams:$ce,bindClickHandler:Pce,clickCancel:g2,clickConfirm:Ti,clickDeny:m2,enableLoading:Ai,fire:Tce,getActions:U,getCancelButton:C,getCloseButton:st,getConfirmButton:Y,getContainer:Se,getDenyButton:S,getFocusableElements:Mt,getFooter:he,getHtmlContainer:We,getIcon:qe,getIconContent:Ke,getImage:nt,getInputLabel:H,getLoader:ee,getPopup:Pe,getProgressSteps:dt,getTimerLeft:Mce,getTimerProgressBar:Ue,getTitle:Ee,getValidationMessage:gt,increaseTimer:Ice,isDeprecatedParameter:F8,isLoading:Ce,isTimerRunning:Oce,isUpdatableParameter:H8,isValidParameter:V8,isVisible:v2,mixin:zce,resumeTimer:q8,showLoading:Ai,stopTimer:U8,toggleTimer:Ace}),Lce=function(){function G(k,A){a(this,G),this.callback=k,this.remaining=A,this.running=!1,this.start()}return c(G,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(A){var q=this.running;return q&&this.stop(),this.remaining+=A,q&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),G}(),G8=["swal-title","swal-html","swal-footer"],Rce=function(k){var A=typeof k.template=="string"?document.querySelector(k.template):k.template;if(!A)return{};var q=A.content;Uce(q);var fe=Object.assign(Vce(q),Hce(q),Fce(q),Dce(q),jce(q),Kce(q),Wce(q,G8));return fe},Vce=function(k){var A={},q=Array.from(k.querySelectorAll("swal-param"));return q.forEach(function(fe){Sa(fe,["name","value"]);var je=fe.getAttribute("name"),mt=fe.getAttribute("value");typeof Ii[je]=="boolean"?A[je]=mt!=="false":n(Ii[je])==="object"?A[je]=JSON.parse(mt):A[je]=mt}),A},Hce=function(k){var A={},q=Array.from(k.querySelectorAll("swal-function-param"));return q.forEach(function(fe){var je=fe.getAttribute("name"),mt=fe.getAttribute("value");A[je]=new Function("return ".concat(mt))()}),A},Fce=function(k){var A={},q=Array.from(k.querySelectorAll("swal-button"));return q.forEach(function(fe){Sa(fe,["type","color","aria-label"]);var je=fe.getAttribute("type");A["".concat(je,"ButtonText")]=fe.innerHTML,A["show".concat(Be(je),"Button")]=!0,fe.hasAttribute("color")&&(A["".concat(je,"ButtonColor")]=fe.getAttribute("color")),fe.hasAttribute("aria-label")&&(A["".concat(je,"ButtonAriaLabel")]=fe.getAttribute("aria-label"))}),A},Dce=function(k){var A={},q=k.querySelector("swal-image");return q&&(Sa(q,["src","width","height","alt"]),q.hasAttribute("src")&&(A.imageUrl=q.getAttribute("src")),q.hasAttribute("width")&&(A.imageWidth=q.getAttribute("width")),q.hasAttribute("height")&&(A.imageHeight=q.getAttribute("height")),q.hasAttribute("alt")&&(A.imageAlt=q.getAttribute("alt"))),A},jce=function(k){var A={},q=k.querySelector("swal-icon");return q&&(Sa(q,["type","color"]),q.hasAttribute("type")&&(A.icon=q.getAttribute("type")),q.hasAttribute("color")&&(A.iconColor=q.getAttribute("color")),A.iconHtml=q.innerHTML),A},Kce=function(k){var A={},q=k.querySelector("swal-input");q&&(Sa(q,["type","label","placeholder","value"]),A.input=q.getAttribute("type")||"text",q.hasAttribute("label")&&(A.inputLabel=q.getAttribute("label")),q.hasAttribute("placeholder")&&(A.inputPlaceholder=q.getAttribute("placeholder")),q.hasAttribute("value")&&(A.inputValue=q.getAttribute("value")));var fe=Array.from(k.querySelectorAll("swal-input-option"));return fe.length&&(A.inputOptions={},fe.forEach(function(je){Sa(je,["value"]);var mt=je.getAttribute("value"),Ht=je.innerHTML;A.inputOptions[mt]=Ht})),A},Wce=function(k,A){var q={};for(var fe in A){var je=A[fe],mt=k.querySelector(je);mt&&(Sa(mt,[]),q[je.replace(/^swal-/,"")]=mt.innerHTML.trim())}return q},Uce=function(k){var A=G8.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(k.children).forEach(function(q){var fe=q.tagName.toLowerCase();A.includes(fe)||ye("Unrecognized element <".concat(fe,">"))})},Sa=function(k,A){Array.from(k.attributes).forEach(function(q){A.indexOf(q.name)===-1&&ye(['Unrecognized attribute "'.concat(q.name,'" on <').concat(k.tagName.toLowerCase(),">."),"".concat(A.length?"Allowed attributes are: ".concat(A.join(", ")):"To set the value, use HTML within the element.")])})},X8=10,qce=function(k){var A=Se(),q=Pe();typeof k.willOpen=="function"&&k.willOpen(q);var fe=window.getComputedStyle(document.body),je=fe.overflowY;Zce(A,q,k),setTimeout(function(){Gce(A,q)},X8),Lt()&&(Xce(A,k.scrollbarPadding,je),op()),!lo()&&!W.previousActiveElement&&(W.previousActiveElement=document.activeElement),typeof k.didOpen=="function"&&setTimeout(function(){return k.didOpen(q)}),Xt(A,le["no-transition"])},Yce=function G(k){var A=Pe();if(!(k.target!==A||!Xr)){var q=Se();A.removeEventListener(Xr,G),q.style.overflowY="auto"}},Gce=function(k,A){Xr&&qd(A)?(k.style.overflowY="hidden",A.addEventListener(Xr,Yce)):k.style.overflowY="auto"},Xce=function(k,A,q){Bse(),A&&q!=="hidden"&&Dse(q),setTimeout(function(){k.scrollTop=0})},Zce=function(k,A,q){pt(k,q.showClass.backdrop),q.animation?(A.style.setProperty("opacity","0","important"),ao(A,"grid"),setTimeout(function(){pt(A,q.showClass.popup),A.style.removeProperty("opacity")},X8)):ao(A,"grid"),pt([document.documentElement,document.body],le.shown),q.heightAuto&&q.backdrop&&!q.toast&&pt([document.documentElement,document.body],le["height-auto"])},Z8={email:function(k,A){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(k)?Promise.resolve():Promise.resolve(A||"Invalid email address")},url:function(k,A){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(k)?Promise.resolve():Promise.resolve(A||"Invalid URL")}};function Jce(G){G.inputValidator||(G.input==="email"&&(G.inputValidator=Z8.email),G.input==="url"&&(G.inputValidator=Z8.url))}function Qce(G){(!G.target||typeof G.target=="string"&&!document.querySelector(G.target)||typeof G.target!="string"&&!G.target.appendChild)&&(ye('Target parameter is not valid, defaulting to "body"'),G.target="body")}function eue(G){Jce(G),G.showLoaderOnConfirm&&!G.preConfirm&&ye(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +`,_l=function(k,A){if(!(!A.icon&&!A.iconHtml)){var q=k.innerHTML,fe="";if(A.iconHtml)fe=vc(A.iconHtml);else if(A.icon==="success")fe=v2,q=q.replace(/ style=".*?"/g,"");else if(A.icon==="error")fe=ep;else if(A.icon){var je={question:"?",warning:"!",info:"i"};fe=vc(je[A.icon])}q.trim()!==fe.trim()&&De(k,fe)}},m2=function(k,A){if(A.iconColor){k.style.color=A.iconColor,k.style.borderColor=A.iconColor;for(var q=0,fe=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];q').concat(k,"")},g2=function(k,A){var q=nt();if(q){if(!A.imageUrl){ho(q);return}ao(q,""),q.setAttribute("src",A.imageUrl),q.setAttribute("alt",A.imageAlt||""),no(q,"width",A.imageWidth),no(q,"height",A.imageHeight),q.className=le.image,Gt(q,A,"image")}},mc=function(k,A){var q=Se(),fe=Pe();if(!(!q||!fe)){if(A.toast){no(q,"width",A.width),fe.style.width="100%";var je=ee();je&&fe.insertBefore(je,Ye())}else no(fe,"width",A.width);no(fe,"padding",A.padding),A.color&&(fe.style.color=A.color),A.background&&(fe.style.background=A.background),ho(gt()),tp(fe,A)}},tp=function(k,A){var q=A.showClass||{};k.className="".concat(le.popup," ").concat(or(k)?q.popup:""),A.toast?(pt([document.documentElement,document.body],le["toast-shown"]),pt(k,le.toast)):pt(k,le.modal),Gt(k,A,"popup"),typeof A.customClass=="string"&&pt(k,A.customClass),A.icon&&pt(k,le["icon-".concat(A.icon)])},b2=function(k,A){var q=dt();if(q){var fe=A.progressSteps,je=A.currentProgressStep;if(!fe||fe.length===0||je===void 0){ho(q);return}ao(q),q.textContent="",je>=fe.length&&ye("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),fe.forEach(function(mt,Ht){var Kt=_2(mt);if(q.appendChild(Kt),Ht===je&&pt(Kt,le["active-progress-step"]),Ht!==fe.length-1){var go=op(A);q.appendChild(go)}})}},_2=function(k){var A=document.createElement("li");return pt(A,le["progress-step"]),De(A,k),A},op=function(k){var A=document.createElement("li");return pt(A,le["progress-step-line"]),k.progressStepsDistance&&no(A,"width",k.progressStepsDistance),A},w2=function(k,A){var q=Ee();q&&(uc(q),xa(q,A.title||A.titleText,"block"),A.title&&$i(A.title,q),A.titleText&&(q.innerText=A.titleText),Gt(q,A,"title"))},Ca=function(k,A){mc(k,A),r2(k,A),b2(k,A),f2(k,A),g2(k,A),w2(k,A),o2(k,A),d2(k,A),Qv(k,A),p2(k,A);var q=Pe();typeof A.didRender=="function"&&q&&A.didRender(q)},y2=function(){return or(Pe())},zi=function(){var k;return(k=Y())===null||k===void 0?void 0:k.click()},x2=function(){var k;return(k=S())===null||k===void 0?void 0:k.click()},k2=function(){var k;return(k=C())===null||k===void 0?void 0:k.click()},ae=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ve=function(k){k.keydownTarget&&k.keydownHandlerAdded&&(k.keydownTarget.removeEventListener("keydown",k.keydownHandler,{capture:k.keydownListenerCapture}),k.keydownHandlerAdded=!1)},Ze=function(k,A,q){Ve(k),A.toast||(k.keydownHandler=function(fe){return vr(A,fe,q)},k.keydownTarget=A.keydownListenerCapture?window:Pe(),k.keydownListenerCapture=A.keydownListenerCapture,k.keydownTarget.addEventListener("keydown",k.keydownHandler,{capture:k.keydownListenerCapture}),k.keydownHandlerAdded=!0)},yt=function(k,A){var q,fe=Mt();if(fe.length){k=k+A,k===fe.length?k=0:k===-1&&(k=fe.length-1),fe[k].focus();return}(q=Pe())===null||q===void 0||q.focus()},To=["ArrowRight","ArrowDown"],Fo=["ArrowLeft","ArrowUp"],vr=function(k,A,q){k&&(A.isComposing||A.keyCode===229||(k.stopKeydownPropagation&&A.stopPropagation(),A.key==="Enter"?Uo(A,k):A.key==="Tab"?rp(A):[].concat(To,Fo).includes(A.key)?In(A.key):A.key==="Escape"&&lp(A,k,q)))},Uo=function(k,A){if(Ae(A.allowEnterKey)){var q=Re(Pe(),A.input);if(k.target&&q&&k.target instanceof HTMLElement&&k.target.outerHTML===q.outerHTML){if(["textarea","file"].includes(A.input))return;zi(),k.preventDefault()}}},rp=function(k){for(var A=k.target,q=Mt(),fe=-1,je=0;je1},sce=function(){if(lt(document.body,le.iosfix)){var k=parseInt(document.body.style.top,10);Xt(document.body,le.iosfix),document.body.style.top="",document.body.scrollTop=k*-1}},cce=function(){var k=document.createElement("div");k.className=le["scrollbar-measure"],document.body.appendChild(k);var A=k.getBoundingClientRect().width-k.clientWidth;return document.body.removeChild(k),A},Ai=null,uce=function(k){Ai===null&&(document.body.scrollHeight>window.innerHeight||k==="scroll")&&(Ai=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Ai+cce(),"px"))},dce=function(){Ai!==null&&(document.body.style.paddingRight="".concat(Ai,"px"),Ai=null)};function O8(G,k,A,q){lo()?P8(G,q):(ie(A).then(function(){return P8(G,q)}),Ve(W)),Sa?(k.setAttribute("style","display:none !important"),k.removeAttribute("class"),k.innerHTML=""):k.remove(),Lt()&&(dce(),sce(),Mi()),pce()}function pce(){Xt([document.documentElement,document.body],[le.shown,le["height-auto"],le["no-backdrop"],le["toast-shown"]])}function Pn(G){G=hce(G);var k=Jl.swalPromiseResolve.get(this),A=fce(this);this.isAwaitingPromise?G.isDismissed||(gc(this),k(G)):A&&k(G)}var fce=function(k){var A=Pe();if(!A)return!1;var q=io.innerParams.get(k);if(!q||lt(A,q.hideClass.popup))return!1;Xt(A,q.showClass.popup),pt(A,q.hideClass.popup);var fe=Se();return Xt(fe,q.showClass.backdrop),pt(fe,q.hideClass.backdrop),vce(k,A,q),!0};function I8(G){var k=Jl.swalPromiseReject.get(this);gc(this),k&&k(G)}var gc=function(k){k.isAwaitingPromise&&(delete k.isAwaitingPromise,io.innerParams.get(k)||k._destroy())},hce=function(k){return typeof k>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},k)},vce=function(k,A,q){var fe=Se(),je=Qr&&Xd(A);typeof q.willClose=="function"&&q.willClose(A),je?mce(k,A,fe,q.returnFocus,q.didClose):O8(k,fe,q.returnFocus,q.didClose)},mce=function(k,A,q,fe,je){Qr&&(W.swalCloseEventFinishedCallback=O8.bind(null,k,q,fe,je),A.addEventListener(Qr,function(mt){mt.target===A&&(W.swalCloseEventFinishedCallback(),delete W.swalCloseEventFinishedCallback)}))},P8=function(k,A){setTimeout(function(){typeof A=="function"&&A.bind(k.params)(),k._destroy&&k._destroy()})},Oi=function(k){var A=Pe();if(A||new up,A=Pe(),!!A){var q=ee();lo()?ho(Ye()):gce(A,k),ao(q),A.setAttribute("data-loading","true"),A.setAttribute("aria-busy","true"),A.focus()}},gce=function(k,A){var q=U(),fe=ee();!q||!fe||(!A&&or(Y())&&(A=Y()),ao(q),A&&(ho(A),fe.setAttribute("data-button-to-replace",A.className),q.insertBefore(fe,A)),pt([k,q],le.loading))},bce=function(k,A){A.input==="select"||A.input==="radio"?kce(k,A):["text","email","number","tel","textarea"].some(function(q){return q===A.input})&&(Oe(A.inputValue)||Ne(A.inputValue))&&(Oi(Y()),Cce(k,A))},_ce=function(k,A){var q=k.getInput();if(!q)return null;switch(A.input){case"checkbox":return wce(q);case"radio":return yce(q);case"file":return xce(q);default:return A.inputAutoTrim?q.value.trim():q.value}},wce=function(k){return k.checked?1:0},yce=function(k){return k.checked?k.value:null},xce=function(k){return k.files&&k.files.length?k.getAttribute("multiple")!==null?k.files:k.files[0]:null},kce=function(k,A){var q=Pe();if(q){var fe=function(mt){A.input==="select"?Sce(q,B8(mt),A):A.input==="radio"&&Ece(q,B8(mt),A)};Oe(A.inputOptions)||Ne(A.inputOptions)?(Oi(Y()),xe(A.inputOptions).then(function(je){k.hideLoading(),fe(je)})):n(A.inputOptions)==="object"?fe(A.inputOptions):Me("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(n(A.inputOptions)))}},Cce=function(k,A){var q=k.getInput();q&&(ho(q),xe(A.inputValue).then(function(fe){q.value=A.input==="number"?"".concat(parseFloat(fe)||0):"".concat(fe),ao(q),q.focus(),k.hideLoading()}).catch(function(fe){Me("Error in inputValue promise: ".concat(fe)),q.value="",ao(q),q.focus(),k.hideLoading()}))};function Sce(G,k,A){var q=yo(G,le.select);if(q){var fe=function(mt,Ht,Kt){var go=document.createElement("option");go.value=Kt,De(go,Ht),go.selected=N8(Kt,A.inputValue),mt.appendChild(go)};k.forEach(function(je){var mt=je[0],Ht=je[1];if(Array.isArray(Ht)){var Kt=document.createElement("optgroup");Kt.label=mt,Kt.disabled=!1,q.appendChild(Kt),Ht.forEach(function(go){return fe(Kt,go[1],go[0])})}else fe(q,Ht,mt)}),q.focus()}}function Ece(G,k,A){var q=yo(G,le.radio);if(q){k.forEach(function(je){var mt=je[0],Ht=je[1],Kt=document.createElement("input"),go=document.createElement("label");Kt.type="radio",Kt.name=le.radio,Kt.value=mt,N8(mt,A.inputValue)&&(Kt.checked=!0);var bc=document.createElement("span");De(bc,Ht),bc.className=le.label,go.appendChild(Kt),go.appendChild(bc),q.appendChild(go)});var fe=q.querySelectorAll("input");fe.length&&fe[0].focus()}}var B8=function G(k){var A=[];return k instanceof Map?k.forEach(function(q,fe){var je=q;n(je)==="object"&&(je=G(je)),A.push([fe,je])}):Object.keys(k).forEach(function(q){var fe=k[q];n(fe)==="object"&&(fe=G(fe)),A.push([q,fe])}),A},N8=function(k,A){return!!A&&A.toString()===k.toString()},ap=void 0,$ce=function(k){var A=io.innerParams.get(k);k.disableButtons(),A.input?L8(k,"confirm"):S2(k,!0)},Tce=function(k){var A=io.innerParams.get(k);k.disableButtons(),A.returnInputValueOnDeny?L8(k,"deny"):C2(k,!1)},zce=function(k,A){k.disableButtons(),A(ae.cancel)},L8=function(k,A){var q=io.innerParams.get(k);if(!q.input){Me('The "input" parameter is needed to be set when using returnInputValueOn'.concat(Be(A)));return}var fe=k.getInput(),je=_ce(k,q);q.inputValidator?Mce(k,je,A):fe&&!fe.checkValidity()?(k.enableButtons(),k.showValidationMessage(q.validationMessage)):A==="deny"?C2(k,je):S2(k,je)},Mce=function(k,A,q){var fe=io.innerParams.get(k);k.disableInput();var je=Promise.resolve().then(function(){return xe(fe.inputValidator(A,fe.validationMessage))});je.then(function(mt){k.enableButtons(),k.enableInput(),mt?k.showValidationMessage(mt):q==="deny"?C2(k,A):S2(k,A)})},C2=function(k,A){var q=io.innerParams.get(k||ap);if(q.showLoaderOnDeny&&Oi(S()),q.preDeny){k.isAwaitingPromise=!0;var fe=Promise.resolve().then(function(){return xe(q.preDeny(A,q.validationMessage))});fe.then(function(je){je===!1?(k.hideLoading(),gc(k)):k.close({isDenied:!0,value:typeof je>"u"?A:je})}).catch(function(je){return V8(k||ap,je)})}else k.close({isDenied:!0,value:A})},R8=function(k,A){k.close({isConfirmed:!0,value:A})},V8=function(k,A){k.rejectPromise(A)},S2=function(k,A){var q=io.innerParams.get(k||ap);if(q.showLoaderOnConfirm&&Oi(),q.preConfirm){k.resetValidationMessage(),k.isAwaitingPromise=!0;var fe=Promise.resolve().then(function(){return xe(q.preConfirm(A,q.validationMessage))});fe.then(function(je){or(gt())||je===!1?(k.hideLoading(),gc(k)):R8(k,typeof je>"u"?A:je)}).catch(function(je){return V8(k||ap,je)})}else R8(k,A)};function ip(){var G=io.innerParams.get(this);if(G){var k=io.domCache.get(this);ho(k.loader),lo()?G.icon&&ao(Ye()):Ace(k),Xt([k.popup,k.actions],le.loading),k.popup.removeAttribute("aria-busy"),k.popup.removeAttribute("data-loading"),k.confirmButton.disabled=!1,k.denyButton.disabled=!1,k.cancelButton.disabled=!1}}var Ace=function(k){var A=k.popup.getElementsByClassName(k.loader.getAttribute("data-button-to-replace"));A.length?ao(A[0],"inline-block"):Kv()&&ho(k.actions)};function H8(){var G=io.innerParams.get(this),k=io.domCache.get(this);return k?Re(k.popup,G.input):null}function F8(G,k,A){var q=io.domCache.get(G);k.forEach(function(fe){q[fe].disabled=A})}function D8(G,k){var A=Pe();if(!(!A||!G))if(G.type==="radio")for(var q=A.querySelectorAll('[name="'.concat(le.radio,'"]')),fe=0;fe0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";$2[G]=this,lx||(document.body.addEventListener("click",rue),lx=!0)}var rue=function(k){for(var A=k.target;A&&A!==document;A=A.parentNode)for(var q in $2){var fe=A.getAttribute(q);if(fe){$2[q].fire({template:fe});return}}},lue=Object.freeze({__proto__:null,argsToParams:Gce,bindClickHandler:oue,clickCancel:k2,clickConfirm:zi,clickDeny:x2,enableLoading:Oi,fire:Xce,getActions:U,getCancelButton:C,getCloseButton:st,getConfirmButton:Y,getContainer:Se,getDenyButton:S,getFocusableElements:Mt,getFooter:he,getHtmlContainer:Ue,getIcon:Ye,getIconContent:Ke,getImage:nt,getInputLabel:H,getLoader:ee,getPopup:Pe,getProgressSteps:dt,getTimerLeft:Jce,getTimerProgressBar:qe,getTitle:Ee,getValidationMessage:gt,increaseTimer:eue,isDeprecatedParameter:Z8,isLoading:Ce,isTimerRunning:tue,isUpdatableParameter:X8,isValidParameter:G8,isVisible:y2,mixin:Zce,resumeTimer:rx,showLoading:Oi,stopTimer:ox,toggleTimer:Qce}),nue=function(){function G(k,A){a(this,G),this.callback=k,this.remaining=A,this.running=!1,this.start()}return c(G,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(A){var q=this.running;return q&&this.stop(),this.remaining+=A,q&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),G}(),nx=["swal-title","swal-html","swal-footer"],aue=function(k){var A=typeof k.template=="string"?document.querySelector(k.template):k.template;if(!A)return{};var q=A.content;hue(q);var fe=Object.assign(iue(q),sue(q),cue(q),uue(q),due(q),pue(q),fue(q,nx));return fe},iue=function(k){var A={},q=Array.from(k.querySelectorAll("swal-param"));return q.forEach(function(fe){Ea(fe,["name","value"]);var je=fe.getAttribute("name"),mt=fe.getAttribute("value");typeof Ii[je]=="boolean"?A[je]=mt!=="false":n(Ii[je])==="object"?A[je]=JSON.parse(mt):A[je]=mt}),A},sue=function(k){var A={},q=Array.from(k.querySelectorAll("swal-function-param"));return q.forEach(function(fe){var je=fe.getAttribute("name"),mt=fe.getAttribute("value");A[je]=new Function("return ".concat(mt))()}),A},cue=function(k){var A={},q=Array.from(k.querySelectorAll("swal-button"));return q.forEach(function(fe){Ea(fe,["type","color","aria-label"]);var je=fe.getAttribute("type");A["".concat(je,"ButtonText")]=fe.innerHTML,A["show".concat(Be(je),"Button")]=!0,fe.hasAttribute("color")&&(A["".concat(je,"ButtonColor")]=fe.getAttribute("color")),fe.hasAttribute("aria-label")&&(A["".concat(je,"ButtonAriaLabel")]=fe.getAttribute("aria-label"))}),A},uue=function(k){var A={},q=k.querySelector("swal-image");return q&&(Ea(q,["src","width","height","alt"]),q.hasAttribute("src")&&(A.imageUrl=q.getAttribute("src")),q.hasAttribute("width")&&(A.imageWidth=q.getAttribute("width")),q.hasAttribute("height")&&(A.imageHeight=q.getAttribute("height")),q.hasAttribute("alt")&&(A.imageAlt=q.getAttribute("alt"))),A},due=function(k){var A={},q=k.querySelector("swal-icon");return q&&(Ea(q,["type","color"]),q.hasAttribute("type")&&(A.icon=q.getAttribute("type")),q.hasAttribute("color")&&(A.iconColor=q.getAttribute("color")),A.iconHtml=q.innerHTML),A},pue=function(k){var A={},q=k.querySelector("swal-input");q&&(Ea(q,["type","label","placeholder","value"]),A.input=q.getAttribute("type")||"text",q.hasAttribute("label")&&(A.inputLabel=q.getAttribute("label")),q.hasAttribute("placeholder")&&(A.inputPlaceholder=q.getAttribute("placeholder")),q.hasAttribute("value")&&(A.inputValue=q.getAttribute("value")));var fe=Array.from(k.querySelectorAll("swal-input-option"));return fe.length&&(A.inputOptions={},fe.forEach(function(je){Ea(je,["value"]);var mt=je.getAttribute("value"),Ht=je.innerHTML;A.inputOptions[mt]=Ht})),A},fue=function(k,A){var q={};for(var fe in A){var je=A[fe],mt=k.querySelector(je);mt&&(Ea(mt,[]),q[je.replace(/^swal-/,"")]=mt.innerHTML.trim())}return q},hue=function(k){var A=nx.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(k.children).forEach(function(q){var fe=q.tagName.toLowerCase();A.includes(fe)||ye("Unrecognized element <".concat(fe,">"))})},Ea=function(k,A){Array.from(k.attributes).forEach(function(q){A.indexOf(q.name)===-1&&ye(['Unrecognized attribute "'.concat(q.name,'" on <').concat(k.tagName.toLowerCase(),">."),"".concat(A.length?"Allowed attributes are: ".concat(A.join(", ")):"To set the value, use HTML within the element.")])})},ax=10,vue=function(k){var A=Se(),q=Pe();typeof k.willOpen=="function"&&k.willOpen(q);var fe=window.getComputedStyle(document.body),je=fe.overflowY;_ue(A,q,k),setTimeout(function(){gue(A,q)},ax),Lt()&&(bue(A,k.scrollbarPadding,je),np()),!lo()&&!W.previousActiveElement&&(W.previousActiveElement=document.activeElement),typeof k.didOpen=="function"&&setTimeout(function(){return k.didOpen(q)}),Xt(A,le["no-transition"])},mue=function G(k){var A=Pe();if(!(k.target!==A||!Qr)){var q=Se();A.removeEventListener(Qr,G),q.style.overflowY="auto"}},gue=function(k,A){Qr&&Xd(A)?(k.style.overflowY="hidden",A.addEventListener(Qr,mue)):k.style.overflowY="auto"},bue=function(k,A,q){rce(),A&&q!=="hidden"&&uce(q),setTimeout(function(){k.scrollTop=0})},_ue=function(k,A,q){pt(k,q.showClass.backdrop),q.animation?(A.style.setProperty("opacity","0","important"),ao(A,"grid"),setTimeout(function(){pt(A,q.showClass.popup),A.style.removeProperty("opacity")},ax)):ao(A,"grid"),pt([document.documentElement,document.body],le.shown),q.heightAuto&&q.backdrop&&!q.toast&&pt([document.documentElement,document.body],le["height-auto"])},ix={email:function(k,A){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(k)?Promise.resolve():Promise.resolve(A||"Invalid email address")},url:function(k,A){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(k)?Promise.resolve():Promise.resolve(A||"Invalid URL")}};function wue(G){G.inputValidator||(G.input==="email"&&(G.inputValidator=ix.email),G.input==="url"&&(G.inputValidator=ix.url))}function yue(G){(!G.target||typeof G.target=="string"&&!document.querySelector(G.target)||typeof G.target!="string"&&!G.target.appendChild)&&(ye('Target parameter is not valid, defaulting to "body"'),G.target="body")}function xue(G){wue(G),G.showLoaderOnConfirm&&!G.preConfirm&&ye(`showLoaderOnConfirm is set to true, but preConfirm is not defined. showLoaderOnConfirm should be used together with preConfirm, see usage example: -https://sweetalert2.github.io/#ajax-request`),Qce(G),typeof G.title=="string"&&(G.title=G.title.split(` -`).join("
    ")),Wv(G)}var _l,ap=new WeakMap,zo=function(){function G(){if(a(this,G),X(this,ap,{writable:!0,value:void 0}),!(typeof window>"u")){_l=this;for(var k=arguments.length,A=new Array(k),q=0;q1&&arguments[1]!==void 0?arguments[1]:{};if(mce(Object.assign({},q,A)),W.currentInstance){var fe=Jl.swalPromiseResolve.get(W.currentInstance),je=W.currentInstance.isAwaitingPromise;W.currentInstance._destroy(),je||fe({isDismissed:!0}),Lt()&&zi()}W.currentInstance=_l;var mt=oue(A,q);eue(mt),Object.freeze(mt),W.timeout&&(W.timeout.stop(),delete W.timeout),clearTimeout(W.restoreFocusTimeout);var Ht=rue(_l);return ka(_l,mt),io.innerParams.set(_l,mt),tue(_l,Ht,mt)}},{key:"then",value:function(A){return D(this,ap).then(A)}},{key:"finally",value:function(A){return D(this,ap).finally(A)}}]),G}(),tue=function(k,A,q){return new Promise(function(fe,je){var mt=function(jt){k.close({isDismissed:!0,dismiss:jt})};Jl.swalPromiseResolve.set(k,fe),Jl.swalPromiseReject.set(k,je),A.confirmButton.onclick=function(){nce(k)},A.denyButton.onclick=function(){ace(k)},A.cancelButton.onclick=function(){ice(k,mt)},A.closeButton.onclick=function(){mt(ae.close)},wce(q,A,mt),Xe(W,q,mt),Xse(k,q),qce(q),lue(W,q,mt),nue(A,q),setTimeout(function(){A.container.scrollTop=0})})},oue=function(k,A){var q=Rce(k),fe=Object.assign({},Ii,A,q,k);return fe.showClass=Object.assign({},Ii.showClass,fe.showClass),fe.hideClass=Object.assign({},Ii.hideClass,fe.hideClass),fe.animation===!1&&(fe.showClass={backdrop:"swal2-noanimation"},fe.hideClass={}),fe},rue=function(k){var A={popup:Pe(),container:Se(),actions:U(),confirmButton:Y(),denyButton:S(),cancelButton:C(),loader:ee(),closeButton:st(),validationMessage:gt(),progressSteps:dt()};return io.domCache.set(k,A),A},lue=function(k,A,q){var fe=Ue();ho(fe),A.timer&&(k.timeout=new Lce(function(){q("timer"),delete k.timeout},A.timer),A.timerProgressBar&&(ao(fe),Gt(fe,A,"timerProgressBar"),setTimeout(function(){k.timeout&&k.timeout.running&&dc(A.timer)})))},nue=function(k,A){if(!A.toast){if(!Ae(A.allowEnterKey)){iue();return}aue(k,A)||yt(-1,1)}},aue=function(k,A){return A.focusDeny&&or(k.denyButton)?(k.denyButton.focus(),!0):A.focusCancel&&or(k.cancelButton)?(k.cancelButton.focus(),!0):A.focusConfirm&&or(k.confirmButton)?(k.confirmButton.focus(),!0):!1},iue=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var J8=new Date,Q8=localStorage.getItem("swal-initiation");Q8?(J8.getTime()-Date.parse(Q8))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var G=document.createElement("audio");G.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",G.loop=!0,document.body.appendChild(G),setTimeout(function(){G.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(J8))}zo.prototype.disableButtons=P8,zo.prototype.enableButtons=O8,zo.prototype.getInput=M8,zo.prototype.disableInput=N8,zo.prototype.enableInput=B8,zo.prototype.hideLoading=lp,zo.prototype.disableLoading=lp,zo.prototype.showValidationMessage=L8,zo.prototype.resetValidationMessage=R8,zo.prototype.close=Pn,zo.prototype.closePopup=Pn,zo.prototype.closeModal=Pn,zo.prototype.closeToast=Pn,zo.prototype.rejectPromise=k8,zo.prototype.update=D8,zo.prototype._destroy=j8,Object.assign(zo,Nce),Object.keys(_ce).forEach(function(G){zo[G]=function(){if(_l&&_l[G]){var k;return(k=_l)[G].apply(k,arguments)}return null}}),zo.DismissReason=ae,zo.version="11.10.2";var ip=zo;return ip.default=ip,ip}),typeof xo<"u"&&xo.Sweetalert2&&(xo.swal=xo.sweetAlert=xo.Swal=xo.SweetAlert=xo.Sweetalert2),typeof document<"u"&&function(o,r){var l=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(l),l.styleSheet)l.styleSheet.disabled||(l.styleSheet.cssText=r);else try{l.innerHTML=r}catch{l.innerText=r}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(g1);var JC=g1.exports;const gr=Er(JC),QC=e=>{function t(){gr.close()}function o(T,O=null){return gr.fire({title:T,html:O,icon:"info",didOpen:()=>{gr.hideLoading()}})}function r(T,O=null){return gr.fire({title:T,html:O,icon:"warning",didOpen:()=>{gr.hideLoading()}})}function l(T,O=null){return gr.fire({title:T,html:O,icon:"error",didOpen:()=>{gr.hideLoading()}})}function n(T,O=null){return gr.fire({title:T,html:O,icon:"success",didOpen:()=>{gr.hideLoading()}})}function a(T,O=null){gr.fire({title:T,html:O,allowOutsideClick:!1,didOpen:()=>{gr.showLoading()}})}function i(){var T=document.createElement("div");T.className+="overlay",T.style.backgroundColor="#EFEFEF",T.style.position="fixed",T.style.width="100%",T.style.height="100%",T.style.zIndex="99999999999",T.style.top="0px",T.style.left="0px",T.style.opacity=".5",document.body.appendChild(T)}function c(){window.onbeforeunload=()=>"There is an ongoing process, please do not close the browser."}function u(){window.onbeforeunload=!1}function p(T,O){for(const I of O)T&&Object.prototype.hasOwnProperty.call(T,I)&&delete T[I];return T}const d=T=>JSON.parse(JSON.stringify(T));function f(T,O=[]){return p(d(T),["wallets","currencies","image","wsUrl","network","web3Domain"].filter(I=>!O.includes(I)))}function v(T){const O=document.querySelector(T),I=new FormData(O),F={};return I.forEach((K,R)=>{const D=R.split("[");let j=F;for(let Q=0;Q"u")return!1;let T=window.navigator;if(window.WebViewJavascriptBridge||window.webkit&&window.webkit.messageHandlers||T.userAgent.match(/WebView/i))return!0;const O=T.standalone,I=T.userAgent.toLowerCase(),F=/safari/.test(I);return/iphone|ipod|ipad/.test(I)?!O&&!F:I.includes("wv")}function _(){var T=new Date,O=T.getTime()+T.getTimezoneOffset()*6e4,I=new Date(O+36e5*0);return Math.floor(I.getTime()/1e3)}function g(T){return new Promise(O=>setTimeout(O,T))}function y(T,O){return parseFloat(parseFloat(T/(1-O/100)).toFixed(6))}function w(T){return e.lang.pleaseTryToConnectAgain.replace("{networkName}",T.name)}const x=(T,O)=>{if(e.debug)try{console[T](...O)}catch(I){console.error(I,O)}};return{Swal:gr,debug:{log:(...T)=>x("log",T),info:(...T)=>x("info",T),warn:(...T)=>x("warn",T),error:(...T)=>x("error",T)},sleep:g,clone:d,getUTCTime:_,isMobile:m,formToObj:v,isWebview:h,fromPercent:y,closePopup:t,infoPopup:o,errorPopup:l,warningPopup:r,successPopup:n,waitingPopup:a,disableScreen:i,ongoingProcess:c,ongoingProcessEnded:u,removeNoNeededParams:f,deletePropInObject:p,getWrongNetworkMsg:w}},e7='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',t7=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,b1=e=>Array.from(e.querySelectorAll(e7)).filter(t=>o7(t)&&t7(t)),o7=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},pu=function(e,t,...o){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const l=document.createEvent(r);return l.initEvent(t,...o),e.dispatchEvent(l),e},_1=e=>!e.getAttribute("aria-owns"),w1=(e,t,o)=>{const{parentNode:r}=e;if(!r)return null;const l=r.querySelectorAll(o),n=Array.prototype.indexOf.call(l,e);return l[n+t]||null},fu=e=>{e&&(e.focus(),!_1(e)&&e.click())},uo=(e,t,{checkForDefaultPrevented:o=!0}={})=>l=>{const n=e==null?void 0:e(l);if(o===!1||!n)return t==null?void 0:t(l)},y1=e=>t=>t.pointerType==="mouse"?e(t):void 0;var r7=Object.defineProperty,l7=Object.defineProperties,n7=Object.getOwnPropertyDescriptors,x1=Object.getOwnPropertySymbols,a7=Object.prototype.hasOwnProperty,i7=Object.prototype.propertyIsEnumerable,k1=(e,t,o)=>t in e?r7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,s7=(e,t)=>{for(var o in t||(t={}))a7.call(t,o)&&k1(e,o,t[o]);if(x1)for(var o of x1(t))i7.call(t,o)&&k1(e,o,t[o]);return e},c7=(e,t)=>l7(e,n7(t));function C1(e,t){var o;const r=qt();return lr(()=>{r.value=e()},c7(s7({},t),{flush:(o=t==null?void 0:t.flush)!=null?o:"sync"})),za(r)}var S1;const Bt=typeof window<"u",u7=e=>typeof e<"u",d7=e=>typeof e=="function",p7=e=>typeof e=="string",ja=()=>{},E1=Bt&&((S1=window==null?void 0:window.navigator)==null?void 0:S1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gn(e){return typeof e=="function"?e():s(e)}function $1(e,t){function o(...r){return new Promise((l,n)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(n)})}return o}function f7(e,t={}){let o,r,l=ja;const n=i=>{clearTimeout(i),l(),l=ja};return i=>{const c=gn(e),u=gn(t.maxWait);return o&&n(o),c<=0||u!==void 0&&u<=0?(r&&(n(r),r=null),Promise.resolve(i())):new Promise((p,d)=>{l=t.rejectOnCancel?d:p,u&&!r&&(r=setTimeout(()=>{o&&n(o),r=null,p(i())},u)),o=setTimeout(()=>{r&&n(r),r=null,p(i())},c)})}}function h7(e,t=!0,o=!0,r=!1){let l=0,n,a=!0,i=ja,c;const u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=ja)};return d=>{const f=gn(e),v=Date.now()-l,m=()=>c=d();return u(),f<=0?(l=Date.now(),m()):(v>f&&(o||!a)?(l=Date.now(),m()):t&&(c=new Promise((h,_)=>{i=r?_:h,n=setTimeout(()=>{l=Date.now(),a=!0,h(m()),u()},Math.max(0,f-v))})),!o&&!n&&(n=setTimeout(()=>a=!0,f)),a=!1,c)}}function v7(e){return e}function is(e){return mp()?(gp(e),!0):!1}function m7(e,t=200,o={}){return $1(f7(t,o),e)}function g7(e,t=200,o={}){const r=V(e.value),l=m7(()=>{r.value=e.value},t,o);return Te(e,()=>l()),r}function T1(e,t=200,o=!1,r=!0,l=!1){return $1(h7(t,o,r,l),e)}function kf(e,t=!0){_t()?vt(e):t?e():et(e)}function Un(e,t,o={}){const{immediate:r=!0}=o,l=V(!1);let n=null;function a(){n&&(clearTimeout(n),n=null)}function i(){l.value=!1,a()}function c(...u){a(),l.value=!0,n=setTimeout(()=>{l.value=!1,n=null,e(...u)},gn(t))}return r&&(l.value=!0,Bt&&c()),is(i),{isPending:za(l),start:c,stop:i}}function ar(e){var t;const o=gn(e);return(t=o==null?void 0:o.$el)!=null?t:o}const qn=Bt?window:void 0,b7=Bt?window.document:void 0;function eo(...e){let t,o,r,l;if(p7(e[0])||Array.isArray(e[0])?([o,r,l]=e,t=qn):[t,o,r,l]=e,!t)return ja;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const n=[],a=()=>{n.forEach(p=>p()),n.length=0},i=(p,d,f,v)=>(p.addEventListener(d,f,v),()=>p.removeEventListener(d,f,v)),c=Te(()=>[ar(t),gn(l)],([p,d])=>{a(),p&&n.push(...o.flatMap(f=>r.map(v=>i(p,f,v,d))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return is(u),u}let z1=!1;function Cf(e,t,o={}){const{window:r=qn,ignore:l=[],capture:n=!0,detectIframe:a=!1}=o;if(!r)return;E1&&!z1&&(z1=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",ja)));let i=!0;const c=f=>l.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(m=>m===f.target||f.composedPath().includes(m));{const m=ar(v);return m&&(f.target===m||f.composedPath().includes(m))}}),p=[eo(r,"click",f=>{const v=ar(e);if(!(!v||v===f.target||f.composedPath().includes(v))){if(f.detail===0&&(i=!c(f)),!i){i=!0;return}t(f)}},{passive:!0,capture:n}),eo(r,"pointerdown",f=>{const v=ar(e);v&&(i=!f.composedPath().includes(v)&&!c(f))},{passive:!0}),a&&eo(r,"blur",f=>{var v;const m=ar(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(f)})].filter(Boolean);return()=>p.forEach(f=>f())}function M1(e,t=!1){const o=V(),r=()=>o.value=!!e();return r(),kf(r,t),o}function _7(e){return JSON.parse(JSON.stringify(e))}const Sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof wl<"u"?wl:typeof self<"u"?self:{},Ef="__vueuse_ssr_handlers__";Sf[Ef]=Sf[Ef]||{},Sf[Ef];function w7(e,t,{window:o=qn,initialValue:r=""}={}){const l=V(r),n=$(()=>{var a;return ar(t)||((a=o==null?void 0:o.document)==null?void 0:a.documentElement)});return Te([n,()=>gn(e)],([a,i])=>{var c;if(a&&o){const u=(c=o.getComputedStyle(a).getPropertyValue(i))==null?void 0:c.trim();l.value=u||r}},{immediate:!0}),Te(l,a=>{var i;(i=n.value)!=null&&i.style&&n.value.style.setProperty(gn(e),a)}),l}function y7({document:e=b7}={}){if(!e)return V("visible");const t=V(e.visibilityState);return eo(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var A1=Object.getOwnPropertySymbols,x7=Object.prototype.hasOwnProperty,k7=Object.prototype.propertyIsEnumerable,C7=(e,t)=>{var o={};for(var r in e)x7.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&A1)for(var r of A1(e))t.indexOf(r)<0&&k7.call(e,r)&&(o[r]=e[r]);return o};function jo(e,t,o={}){const r=o,{window:l=qn}=r,n=C7(r,["window"]);let a;const i=M1(()=>l&&"ResizeObserver"in l),c=()=>{a&&(a.disconnect(),a=void 0)},u=Te(()=>ar(e),d=>{c(),i.value&&l&&d&&(a=new ResizeObserver(t),a.observe(d,n))},{immediate:!0,flush:"post"}),p=()=>{c(),u()};return is(p),{isSupported:i,stop:p}}function I1(e,t={}){const{reset:o=!0,windowResize:r=!0,windowScroll:l=!0,immediate:n=!0}=t,a=V(0),i=V(0),c=V(0),u=V(0),p=V(0),d=V(0),f=V(0),v=V(0);function m(){const h=ar(e);if(!h){o&&(a.value=0,i.value=0,c.value=0,u.value=0,p.value=0,d.value=0,f.value=0,v.value=0);return}const _=h.getBoundingClientRect();a.value=_.height,i.value=_.bottom,c.value=_.left,u.value=_.right,p.value=_.top,d.value=_.width,f.value=_.x,v.value=_.y}return jo(e,m),Te(()=>ar(e),h=>!h&&m()),l&&eo("scroll",m,{capture:!0,passive:!0}),r&&eo("resize",m,{passive:!0}),kf(()=>{n&&m()}),{height:a,bottom:i,left:c,right:u,top:p,width:d,x:f,y:v,update:m}}var O1=Object.getOwnPropertySymbols,S7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,$7=(e,t)=>{var o={};for(var r in e)S7.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&O1)for(var r of O1(e))t.indexOf(r)<0&&E7.call(e,r)&&(o[r]=e[r]);return o};function T7(e,t,o={}){const r=o,{window:l=qn}=r,n=$7(r,["window"]);let a;const i=M1(()=>l&&"MutationObserver"in l),c=()=>{a&&(a.disconnect(),a=void 0)},u=Te(()=>ar(e),d=>{c(),i.value&&l&&d&&(a=new MutationObserver(t),a.observe(d,n))},{immediate:!0}),p=()=>{c(),u()};return is(p),{isSupported:i,stop:p}}var P1;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(P1||(P1={}));var z7=Object.defineProperty,B1=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,N1=(e,t,o)=>t in e?z7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,I7=(e,t)=>{for(var o in t||(t={}))M7.call(t,o)&&N1(e,o,t[o]);if(B1)for(var o of B1(t))A7.call(t,o)&&N1(e,o,t[o]);return e};I7({linear:v7},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function O7(e,t,o,r={}){var l,n,a;const{clone:i=!1,passive:c=!1,eventName:u,deep:p=!1,defaultValue:d}=r,f=_t(),v=o||(f==null?void 0:f.emit)||((l=f==null?void 0:f.$emit)==null?void 0:l.bind(f))||((a=(n=f==null?void 0:f.proxy)==null?void 0:n.$emit)==null?void 0:a.bind(f==null?void 0:f.proxy));let m=u;t||(t="modelValue"),m=u||m||`update:${t.toString()}`;const h=g=>i?d7(i)?i(g):_7(g):g,_=()=>u7(e[t])?h(e[t]):d;if(c){const g=_(),y=V(g);return Te(()=>e[t],w=>y.value=h(w)),Te(y,w=>{(w!==e[t]||p)&&v(m,w)},{deep:p}),y}else return $({get(){return _()},set(g){v(m,g)}})}function P7({window:e=qn}={}){if(!e)return V(!1);const t=V(e.document.hasFocus());return eo(e,"blur",()=>{t.value=!1}),eo(e,"focus",()=>{t.value=!0}),t}function B7(e={}){const{window:t=qn,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:l=!0,includeScrollbar:n=!0}=e,a=V(o),i=V(r),c=()=>{t&&(n?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return c(),kf(c),eo("resize",c,{passive:!0}),l&&eo("orientationchange",c,{passive:!0}),{width:a,height:i}}const L1=()=>Bt&&/firefox/i.test(window.navigator.userAgent),N7=(e,t)=>{if(!Bt||!e||!t)return!1;const o=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},o.topr.top&&o.right>r.left&&o.left{let t=0,o=e;for(;o;)t+=o.offsetTop,o=o.offsetParent;return t},L7=(e,t)=>Math.abs(R1(e)-R1(t)),$f=e=>{let t,o;return e.type==="touchend"?(o=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(o=e.touches[0].clientY,t=e.touches[0].clientX):(o=e.clientY,t=e.clientX),{clientX:t,clientY:o}};var V1=typeof wl=="object"&&wl&&wl.Object===Object&&wl,R7=typeof self=="object"&&self&&self.Object===Object&&self,Hr=V1||R7||Function("return this")(),$r=Hr.Symbol,H1=Object.prototype,V7=H1.hasOwnProperty,H7=H1.toString,ss=$r?$r.toStringTag:void 0;function F7(e){var t=V7.call(e,ss),o=e[ss];try{e[ss]=void 0;var r=!0}catch{}var l=H7.call(e);return r&&(t?e[ss]=o:delete e[ss]),l}var D7=Object.prototype,j7=D7.toString;function K7(e){return j7.call(e)}var W7="[object Null]",U7="[object Undefined]",F1=$r?$r.toStringTag:void 0;function Yn(e){return e==null?e===void 0?U7:W7:F1&&F1 in Object(e)?F7(e):K7(e)}function ll(e){return e!=null&&typeof e=="object"}var q7="[object Symbol]";function hu(e){return typeof e=="symbol"||ll(e)&&Yn(e)==q7}function D1(e,t){for(var o=-1,r=e==null?0:e.length,l=Array(r);++o0){if(++t>=SS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zS(e){return function(){return e}}var vu=function(){try{var e=Xn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),MS=vu?function(e,t){return vu(e,"toString",{configurable:!0,enumerable:!1,value:zS(t),writable:!0})}:zf,Z1=TS(MS);function AS(e,t){for(var o=-1,r=e==null?0:e.length;++o-1}var NS=9007199254740991,LS=/^(?:0|[1-9]\d*)$/;function mu(e,t){var o=typeof e;return t=t??NS,!!t&&(o=="number"||o!="symbol"&&LS.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=HS}function Ka(e){return e!=null&&Bf(e.length)&&!Mf(e)}function FS(e,t,o){if(!Xo(o))return!1;var r=typeof t;return(r=="number"?Ka(o)&&mu(t,o.length):r=="string"&&t in o)?cs(o[t],e):!1}function DS(e){return tb(function(t,o){var r=-1,l=o.length,n=l>1?o[l-1]:void 0,a=l>2?o[2]:void 0;for(n=e.length>3&&typeof n=="function"?(l--,n):void 0,a&&FS(o[0],o[1],a)&&(n=l<3?void 0:n,l=1),t=Object(t);++r-1}function JE(e,t){var o=this.__data__,r=gu(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function Il(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t0&&o(i)?t>1?_s(i,t-1,o,r,l):Df(l,i):r||(l[l.length]=i)}return l}function pb(e){var t=e==null?0:e.length;return t?_s(e,1):[]}function h$(e){return Z1(eb(e,void 0,pb),e+"")}var v$=ub(Object.getPrototypeOf,Object);const jf=v$;var m$="[object Object]",g$=Function.prototype,b$=Object.prototype,fb=g$.toString,_$=b$.hasOwnProperty,w$=fb.call(Object);function y$(e){if(!ll(e)||Yn(e)!=m$)return!1;var t=jf(e);if(t===null)return!0;var o=_$.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&fb.call(o)==w$}function Jn(){if(!arguments.length)return[];var e=arguments[0];return Go(e)?e:[e]}function x$(){this.__data__=new Il,this.size=0}function k$(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function C$(e){return this.__data__.get(e)}function S$(e){return this.__data__.has(e)}var E$=200;function $$(e,t){var o=this.__data__;if(o instanceof Il){var r=o.__data__;if(!gs||r.lengthi))return!1;var u=n.get(e),p=n.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,v=o&rz?new xs:void 0;for(n.set(e,t),n.set(t,e);++d=t||O<0||d&&I>=n}function g(){var T=Zf();if(_(T))return y(T);i=setTimeout(g,h(T))}function y(T){return i=void 0,f&&r?v(T):(r=l=void 0,a)}function w(){i!==void 0&&clearTimeout(i),u=0,r=c=l=i=void 0}function x(){return i===void 0?a:y(Zf())}function M(){var T=Zf(),O=_(T);if(r=arguments,l=this,c=T,O){if(i===void 0)return m(c);if(d)return clearTimeout(i),i=setTimeout(g,t),v(c)}return i===void 0&&(i=setTimeout(g,t)),a}return M.cancel=w,M.flush=x,M}function Jf(e,t,o){(o!==void 0&&!cs(e[t],o)||o===void 0&&!(t in e))&&Of(e,t,o)}function Gb(e){return ll(e)&&Ka(e)}function Qf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Uz(e){return us(e,vs(e))}function qz(e,t,o,r,l,n,a){var i=Qf(e,o),c=Qf(t,o),u=a.get(c);if(u){Jf(e,o,u);return}var p=n?n(i,c,o+"",e,t,a):void 0,d=p===void 0;if(d){var f=Go(c),v=!f&&ps(c),m=!f&&!v&&Vf(c);p=c,f||v||m?Go(i)?p=i:Gb(i)?p=X1(i):v?(d=!1,p=bb(c,!0)):m?(d=!1,p=Mb(c,!0)):p=[]:y$(c)||ds(c)?(p=i,ds(i)?p=Uz(i):(!Xo(i)||Mf(i))&&(p=Ab(c))):d=!1}d&&(a.set(c,p),l(p,c,r,n,a),a.delete(c)),Jf(e,o,p)}function Xb(e,t,o,r,l){e!==t&&Yb(t,function(n,a){if(l||(l=new Fr),Xo(n))qz(e,t,a,o,Xb,r,l);else{var i=r?r(Qf(e,a),n,a+"",e,t,l):void 0;i===void 0&&(i=n),Jf(e,a,i)}},vs)}function Yz(e,t,o){for(var r=-1,l=e==null?0:e.length;++r=uM){var u=t?null:cM(e);if(u)return Gf(u);a=!1,l=Rb,c=new xs}else c=t?[]:i;e:for(;++re===void 0,Co=e=>typeof e=="boolean",ct=e=>typeof e=="number",Tr=e=>!e&&e!==0||Ye(e)&&e.length===0||Ct(e)&&!Object.keys(e).length,zr=e=>typeof Element>"u"?!1:e instanceof Element,pM=e=>wo(e),fM=e=>ft(e)?!Number.isNaN(Number(e)):!1,e3=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),nl=e=>Ni(e),ks=e=>Object.keys(e),hM=e=>Object.entries(e),Eu=(e,t,o)=>({get value(){return oo(e,t,o)},set value(r){aM(e,t,r)}});class vM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function So(e,t){throw new vM(`[${e}] ${t}`)}function Tue(e,t){}const t3=(e="")=>e.split(" ").filter(t=>!!t.trim()),Dr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},al=(e,t)=>{!e||!t.trim()||e.classList.add(...t3(t))},sr=(e,t)=>{!e||!t.trim()||e.classList.remove(...t3(t))},bn=(e,t)=>{var o;if(!Bt||!e||!t)return"";let r=yr(t);r==="float"&&(r="cssFloat");try{const l=e.style[r];if(l)return l;const n=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return n?n[r]:""}catch{return e.style[r]}};function bo(e,t="px"){if(!e)return"";if(ct(e)||fM(e))return`${e}${t}`;if(ft(e))return e}const mM=(e,t)=>{if(!Bt)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=bn(e,o);return["scroll","auto","overlay"].some(l=>r.includes(l))},t0=(e,t)=>{if(!Bt)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(mM(o,t))return o;o=o.parentNode}return o};let $u;const o3=e=>{var t;if(!Bt)return 0;if($u!==void 0)return $u;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",o.appendChild(l);const n=l.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),$u=r-n,$u};function r3(e,t){if(!Bt)return;if(!t){e.scrollTop=0;return}const o=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)o.push(r),r=r.offsetParent;const l=t.offsetTop+o.reduce((c,u)=>c+u.offsetTop,0),n=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;li&&(e.scrollTop=n-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var gM=B({name:"AddLocation",__name:"add-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),bM=gM,_M=B({name:"Aim",__name:"aim",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),wM=_M,yM=B({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),xM=yM,kM=B({name:"Apple",__name:"apple",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),CM=kM,SM=B({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),EM=SM,$M=B({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Bl=$M,TM=B({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),zM=TM,MM=B({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Nl=MM,AM=B({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),IM=AM,OM=B({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ko=OM,PM=B({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),BM=PM,NM=B({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Cs=NM,LM=B({name:"Avatar",__name:"avatar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),RM=LM,VM=B({name:"Back",__name:"back",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),l3=VM,HM=B({name:"Baseball",__name:"baseball",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),FM=HM,DM=B({name:"Basketball",__name:"basketball",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),jM=DM,KM=B({name:"BellFilled",__name:"bell-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),WM=KM,UM=B({name:"Bell",__name:"bell",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),qM=UM,YM=B({name:"Bicycle",__name:"bicycle",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),GM=YM,XM=B({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),ZM=XM,JM=B({name:"BottomRight",__name:"bottom-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),QM=JM,eA=B({name:"Bottom",__name:"bottom",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),tA=eA,oA=B({name:"Bowl",__name:"bowl",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),rA=oA,lA=B({name:"Box",__name:"box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),nA=lA,aA=B({name:"Briefcase",__name:"briefcase",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),iA=aA,sA=B({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),cA=sA,uA=B({name:"Brush",__name:"brush",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),dA=uA,pA=B({name:"Burger",__name:"burger",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),fA=pA,hA=B({name:"Calendar",__name:"calendar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),n3=hA,vA=B({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),mA=vA,gA=B({name:"Camera",__name:"camera",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),bA=gA,_A=B({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),wA=_A,yA=B({name:"CaretLeft",__name:"caret-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),xA=yA,kA=B({name:"CaretRight",__name:"caret-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),o0=kA,CA=B({name:"CaretTop",__name:"caret-top",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),a3=CA,SA=B({name:"Cellphone",__name:"cellphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),EA=SA,$A=B({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),TA=$A,zA=B({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),MA=zA,AA=B({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),IA=AA,OA=B({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),PA=OA,BA=B({name:"ChatRound",__name:"chat-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),NA=BA,LA=B({name:"ChatSquare",__name:"chat-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),RA=LA,VA=B({name:"Check",__name:"check",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),qa=VA,HA=B({name:"Checked",__name:"checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),FA=HA,DA=B({name:"Cherry",__name:"cherry",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),jA=DA,KA=B({name:"Chicken",__name:"chicken",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),WA=KA,UA=B({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),qA=UA,YA=B({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),i3=YA,GA=B({name:"CircleCheck",__name:"circle-check",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Tu=GA,XA=B({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),zu=XA,ZA=B({name:"CircleClose",__name:"circle-close",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ll=ZA,JA=B({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),QA=JA,eI=B({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tI=eI,oI=B({name:"Clock",__name:"clock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),r0=oI,rI=B({name:"CloseBold",__name:"close-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),lI=rI,nI=B({name:"Close",__name:"close",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Mr=nI,aI=B({name:"Cloudy",__name:"cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),iI=aI,sI=B({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),cI=sI,uI=B({name:"Coffee",__name:"coffee",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),dI=uI,pI=B({name:"Coin",__name:"coin",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),fI=pI,hI=B({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),vI=hI,mI=B({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),gI=mI,bI=B({name:"Collection",__name:"collection",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),_I=bI,wI=B({name:"Comment",__name:"comment",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),yI=wI,xI=B({name:"Compass",__name:"compass",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),kI=xI,CI=B({name:"Connection",__name:"connection",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),SI=CI,EI=B({name:"Coordinate",__name:"coordinate",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),$I=EI,TI=B({name:"CopyDocument",__name:"copy-document",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),zI=TI,MI=B({name:"Cpu",__name:"cpu",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),AI=MI,II=B({name:"CreditCard",__name:"credit-card",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),OI=II,PI=B({name:"Crop",__name:"crop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),BI=PI,NI=B({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),ta=NI,LI=B({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),oa=LI,RI=B({name:"DCaret",__name:"d-caret",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),VI=RI,HI=B({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),FI=HI,DI=B({name:"DataBoard",__name:"data-board",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),jI=DI,KI=B({name:"DataLine",__name:"data-line",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),WI=KI,UI=B({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),qI=UI,YI=B({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),GI=YI,XI=B({name:"Delete",__name:"delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),s3=XI,ZI=B({name:"Dessert",__name:"dessert",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),JI=ZI,QI=B({name:"Discount",__name:"discount",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),eO=QI,tO=B({name:"DishDot",__name:"dish-dot",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),oO=tO,rO=B({name:"Dish",__name:"dish",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),lO=rO,nO=B({name:"DocumentAdd",__name:"document-add",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),aO=nO,iO=B({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),sO=iO,cO=B({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),uO=cO,dO=B({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),pO=dO,fO=B({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),hO=fO,vO=B({name:"Document",__name:"document",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),c3=vO,mO=B({name:"Download",__name:"download",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),gO=mO,bO=B({name:"Drizzling",__name:"drizzling",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),_O=bO,wO=B({name:"EditPen",__name:"edit-pen",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),yO=wO,xO=B({name:"Edit",__name:"edit",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),kO=xO,CO=B({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),SO=CO,EO=B({name:"Eleme",__name:"eleme",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),$O=EO,TO=B({name:"ElementPlus",__name:"element-plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),zO=TO,MO=B({name:"Expand",__name:"expand",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),AO=MO,IO=B({name:"Failed",__name:"failed",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),OO=IO,PO=B({name:"Female",__name:"female",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),BO=PO,NO=B({name:"Files",__name:"files",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),LO=NO,RO=B({name:"Film",__name:"film",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),VO=RO,HO=B({name:"Filter",__name:"filter",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),FO=HO,DO=B({name:"Finished",__name:"finished",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),jO=DO,KO=B({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),WO=KO,UO=B({name:"Flag",__name:"flag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),qO=UO,YO=B({name:"Fold",__name:"fold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),GO=YO,XO=B({name:"FolderAdd",__name:"folder-add",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),ZO=XO,JO=B({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),QO=JO,eP=B({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),tP=eP,oP=B({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),rP=oP,lP=B({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),nP=lP,aP=B({name:"Folder",__name:"folder",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),iP=aP,sP=B({name:"Food",__name:"food",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),cP=sP,uP=B({name:"Football",__name:"football",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),dP=uP,pP=B({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),fP=pP,hP=B({name:"Fries",__name:"fries",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),vP=hP,mP=B({name:"FullScreen",__name:"full-screen",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),u3=mP,gP=B({name:"GobletFull",__name:"goblet-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),bP=gP,_P=B({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),wP=_P,yP=B({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),xP=yP,kP=B({name:"Goblet",__name:"goblet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),CP=kP,SP=B({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),EP=SP,$P=B({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),TP=$P,zP=B({name:"Goods",__name:"goods",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),MP=zP,AP=B({name:"Grape",__name:"grape",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),IP=AP,OP=B({name:"Grid",__name:"grid",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),PP=OP,BP=B({name:"Guide",__name:"guide",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),NP=BP,LP=B({name:"Handbag",__name:"handbag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),RP=LP,VP=B({name:"Headset",__name:"headset",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),HP=VP,FP=B({name:"HelpFilled",__name:"help-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),DP=FP,jP=B({name:"Help",__name:"help",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),KP=jP,WP=B({name:"Hide",__name:"hide",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),d3=WP,UP=B({name:"Histogram",__name:"histogram",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),qP=UP,YP=B({name:"HomeFilled",__name:"home-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),GP=YP,XP=B({name:"HotWater",__name:"hot-water",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),ZP=XP,JP=B({name:"House",__name:"house",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),QP=JP,eB=B({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),tB=eB,oB=B({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),rB=oB,lB=B({name:"IceCream",__name:"ice-cream",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),nB=lB,aB=B({name:"IceDrink",__name:"ice-drink",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),iB=aB,sB=B({name:"IceTea",__name:"ice-tea",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),cB=sB,uB=B({name:"InfoFilled",__name:"info-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Mu=uB,dB=B({name:"Iphone",__name:"iphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),pB=dB,fB=B({name:"Key",__name:"key",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),hB=fB,vB=B({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),mB=vB,gB=B({name:"Lightning",__name:"lightning",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),bB=gB,_B=B({name:"Link",__name:"link",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),wB=_B,yB=B({name:"List",__name:"list",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),xB=yB,kB=B({name:"Loading",__name:"loading",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Rl=kB,CB=B({name:"LocationFilled",__name:"location-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),SB=CB,EB=B({name:"LocationInformation",__name:"location-information",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),$B=EB,TB=B({name:"Location",__name:"location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),zB=TB,MB=B({name:"Lock",__name:"lock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),AB=MB,IB=B({name:"Lollipop",__name:"lollipop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),OB=IB,PB=B({name:"MagicStick",__name:"magic-stick",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),BB=PB,NB=B({name:"Magnet",__name:"magnet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),LB=NB,RB=B({name:"Male",__name:"male",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),VB=RB,HB=B({name:"Management",__name:"management",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),FB=HB,DB=B({name:"MapLocation",__name:"map-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),jB=DB,KB=B({name:"Medal",__name:"medal",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),WB=KB,UB=B({name:"Memo",__name:"memo",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),qB=UB,YB=B({name:"Menu",__name:"menu",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),GB=YB,XB=B({name:"MessageBox",__name:"message-box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),ZB=XB,JB=B({name:"Message",__name:"message",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),QB=JB,eN=B({name:"Mic",__name:"mic",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),tN=eN,oN=B({name:"Microphone",__name:"microphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),rN=oN,lN=B({name:"MilkTea",__name:"milk-tea",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),nN=lN,aN=B({name:"Minus",__name:"minus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),p3=aN,iN=B({name:"Money",__name:"money",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),sN=iN,cN=B({name:"Monitor",__name:"monitor",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),uN=cN,dN=B({name:"MoonNight",__name:"moon-night",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),pN=dN,fN=B({name:"Moon",__name:"moon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),hN=fN,vN=B({name:"MoreFilled",__name:"more-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),l0=vN,mN=B({name:"More",__name:"more",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),f3=mN,gN=B({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),bN=gN,_N=B({name:"Mouse",__name:"mouse",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),wN=_N,yN=B({name:"Mug",__name:"mug",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),xN=yN,kN=B({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),CN=kN,SN=B({name:"Mute",__name:"mute",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),EN=SN,$N=B({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),TN=$N,zN=B({name:"Notebook",__name:"notebook",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),MN=zN,AN=B({name:"Notification",__name:"notification",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),IN=AN,ON=B({name:"Odometer",__name:"odometer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),PN=ON,BN=B({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),NN=BN,LN=B({name:"Open",__name:"open",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),RN=LN,VN=B({name:"Operation",__name:"operation",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),HN=VN,FN=B({name:"Opportunity",__name:"opportunity",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),DN=FN,jN=B({name:"Orange",__name:"orange",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),KN=jN,WN=B({name:"Paperclip",__name:"paperclip",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),UN=WN,qN=B({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),YN=qN,GN=B({name:"Pear",__name:"pear",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),XN=GN,ZN=B({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),JN=ZN,QN=B({name:"Phone",__name:"phone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),eL=QN,tL=B({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),h3=tL,oL=B({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),rL=oL,lL=B({name:"Picture",__name:"picture",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),nL=lL,aL=B({name:"PieChart",__name:"pie-chart",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),iL=aL,sL=B({name:"Place",__name:"place",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),cL=sL,uL=B({name:"Platform",__name:"platform",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),dL=uL,pL=B({name:"Plus",__name:"plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),n0=pL,fL=B({name:"Pointer",__name:"pointer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),hL=fL,vL=B({name:"Position",__name:"position",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),mL=vL,gL=B({name:"Postcard",__name:"postcard",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),bL=gL,_L=B({name:"Pouring",__name:"pouring",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),wL=_L,yL=B({name:"Present",__name:"present",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),xL=yL,kL=B({name:"PriceTag",__name:"price-tag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),CL=kL,SL=B({name:"Printer",__name:"printer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),EL=SL,$L=B({name:"Promotion",__name:"promotion",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),TL=$L,zL=B({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),ML=zL,AL=B({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),v3=AL,IL=B({name:"Rank",__name:"rank",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),OL=IL,PL=B({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),BL=PL,NL=B({name:"Reading",__name:"reading",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),LL=NL,RL=B({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),m3=RL,VL=B({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),g3=VL,HL=B({name:"Refresh",__name:"refresh",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),FL=HL,DL=B({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),jL=DL,KL=B({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),WL=KL,UL=B({name:"Remove",__name:"remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),qL=UL,YL=B({name:"Right",__name:"right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),GL=YL,XL=B({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),b3=XL,ZL=B({name:"School",__name:"school",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),JL=ZL,QL=B({name:"Scissor",__name:"scissor",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),eR=QL,tR=B({name:"Search",__name:"search",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),_3=tR,oR=B({name:"Select",__name:"select",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),rR=oR,lR=B({name:"Sell",__name:"sell",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),nR=lR,aR=B({name:"SemiSelect",__name:"semi-select",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),iR=aR,sR=B({name:"Service",__name:"service",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),cR=sR,uR=B({name:"SetUp",__name:"set-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),dR=uR,pR=B({name:"Setting",__name:"setting",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),fR=pR,hR=B({name:"Share",__name:"share",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),vR=hR,mR=B({name:"Ship",__name:"ship",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),gR=mR,bR=B({name:"Shop",__name:"shop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),_R=bR,wR=B({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),yR=wR,xR=B({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),kR=xR,CR=B({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),SR=CR,ER=B({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),$R=ER,TR=B({name:"Smoking",__name:"smoking",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),zR=TR,MR=B({name:"Soccer",__name:"soccer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),AR=MR,IR=B({name:"SoldOut",__name:"sold-out",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),OR=IR,PR=B({name:"SortDown",__name:"sort-down",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),w3=PR,BR=B({name:"SortUp",__name:"sort-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),y3=BR,NR=B({name:"Sort",__name:"sort",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),LR=NR,RR=B({name:"Stamp",__name:"stamp",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),VR=RR,HR=B({name:"StarFilled",__name:"star-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Ss=HR,FR=B({name:"Star",__name:"star",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),x3=FR,DR=B({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),jR=DR,KR=B({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),a0=KR,WR=B({name:"Sugar",__name:"sugar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),UR=WR,qR=B({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),YR=qR,GR=B({name:"Suitcase",__name:"suitcase",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),XR=GR,ZR=B({name:"Sunny",__name:"sunny",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),JR=ZR,QR=B({name:"Sunrise",__name:"sunrise",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),eV=QR,tV=B({name:"Sunset",__name:"sunset",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),oV=tV,rV=B({name:"SwitchButton",__name:"switch-button",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),lV=rV,nV=B({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),aV=nV,iV=B({name:"Switch",__name:"switch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),sV=iV,cV=B({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),uV=cV,dV=B({name:"Ticket",__name:"ticket",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),pV=dV,fV=B({name:"Tickets",__name:"tickets",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),hV=fV,vV=B({name:"Timer",__name:"timer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),mV=vV,gV=B({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),bV=gV,_V=B({name:"Tools",__name:"tools",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),wV=_V,yV=B({name:"TopLeft",__name:"top-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),xV=yV,kV=B({name:"TopRight",__name:"top-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),CV=kV,SV=B({name:"Top",__name:"top",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),EV=SV,$V=B({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),TV=$V,zV=B({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),MV=zV,AV=B({name:"Trophy",__name:"trophy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),IV=AV,OV=B({name:"TurnOff",__name:"turn-off",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),PV=OV,BV=B({name:"Umbrella",__name:"umbrella",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),NV=BV,LV=B({name:"Unlock",__name:"unlock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),RV=LV,VV=B({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),HV=VV,FV=B({name:"Upload",__name:"upload",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),DV=FV,jV=B({name:"UserFilled",__name:"user-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),KV=jV,WV=B({name:"User",__name:"user",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),UV=WV,qV=B({name:"Van",__name:"van",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),YV=qV,GV=B({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),XV=GV,ZV=B({name:"VideoCamera",__name:"video-camera",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),JV=ZV,QV=B({name:"VideoPause",__name:"video-pause",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),eH=QV,tH=B({name:"VideoPlay",__name:"video-play",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),oH=tH,rH=B({name:"View",__name:"view",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),k3=rH,lH=B({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),nH=lH,aH=B({name:"Wallet",__name:"wallet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),iH=aH,sH=B({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),cH=sH,uH=B({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Es=uH,dH=B({name:"Warning",__name:"warning",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),pH=dH,fH=B({name:"Watch",__name:"watch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),hH=fH,vH=B({name:"Watermelon",__name:"watermelon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),mH=vH,gH=B({name:"WindPower",__name:"wind-power",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),bH=gH,_H=B({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),i0=_H,wH=B({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),C3=wH;const yH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:bM,Aim:wM,AlarmClock:xM,Apple:CM,ArrowDown:Bl,ArrowDownBold:EM,ArrowLeft:Nl,ArrowLeftBold:zM,ArrowRight:Ko,ArrowRightBold:IM,ArrowUp:Cs,ArrowUpBold:BM,Avatar:RM,Back:l3,Baseball:FM,Basketball:jM,Bell:qM,BellFilled:WM,Bicycle:GM,Bottom:tA,BottomLeft:ZM,BottomRight:QM,Bowl:rA,Box:nA,Briefcase:iA,Brush:dA,BrushFilled:cA,Burger:fA,Calendar:n3,Camera:bA,CameraFilled:mA,CaretBottom:wA,CaretLeft:xA,CaretRight:o0,CaretTop:a3,Cellphone:EA,ChatDotRound:TA,ChatDotSquare:MA,ChatLineRound:IA,ChatLineSquare:PA,ChatRound:NA,ChatSquare:RA,Check:qa,Checked:FA,Cherry:jA,Chicken:WA,ChromeFilled:qA,CircleCheck:Tu,CircleCheckFilled:i3,CircleClose:Ll,CircleCloseFilled:zu,CirclePlus:tI,CirclePlusFilled:QA,Clock:r0,Close:Mr,CloseBold:lI,Cloudy:iI,Coffee:dI,CoffeeCup:cI,Coin:fI,ColdDrink:vI,Collection:_I,CollectionTag:gI,Comment:yI,Compass:kI,Connection:SI,Coordinate:$I,CopyDocument:zI,Cpu:AI,CreditCard:OI,Crop:BI,DArrowLeft:ta,DArrowRight:oa,DCaret:VI,DataAnalysis:FI,DataBoard:jI,DataLine:WI,Delete:s3,DeleteFilled:qI,DeleteLocation:GI,Dessert:JI,Discount:eO,Dish:lO,DishDot:oO,Document:c3,DocumentAdd:aO,DocumentChecked:sO,DocumentCopy:uO,DocumentDelete:pO,DocumentRemove:hO,Download:gO,Drizzling:_O,Edit:kO,EditPen:yO,Eleme:$O,ElemeFilled:SO,ElementPlus:zO,Expand:AO,Failed:OO,Female:BO,Files:LO,Film:VO,Filter:FO,Finished:jO,FirstAidKit:WO,Flag:qO,Fold:GO,Folder:iP,FolderAdd:ZO,FolderChecked:QO,FolderDelete:tP,FolderOpened:rP,FolderRemove:nP,Food:cP,Football:dP,ForkSpoon:fP,Fries:vP,FullScreen:u3,Goblet:CP,GobletFull:bP,GobletSquare:xP,GobletSquareFull:wP,GoldMedal:EP,Goods:MP,GoodsFilled:TP,Grape:IP,Grid:PP,Guide:NP,Handbag:RP,Headset:HP,Help:KP,HelpFilled:DP,Hide:d3,Histogram:qP,HomeFilled:GP,HotWater:ZP,House:QP,IceCream:nB,IceCreamRound:tB,IceCreamSquare:rB,IceDrink:iB,IceTea:cB,InfoFilled:Mu,Iphone:pB,Key:hB,KnifeFork:mB,Lightning:bB,Link:wB,List:xB,Loading:Rl,Location:zB,LocationFilled:SB,LocationInformation:$B,Lock:AB,Lollipop:OB,MagicStick:BB,Magnet:LB,Male:VB,Management:FB,MapLocation:jB,Medal:WB,Memo:qB,Menu:GB,Message:QB,MessageBox:ZB,Mic:tN,Microphone:rN,MilkTea:nN,Minus:p3,Money:sN,Monitor:uN,Moon:hN,MoonNight:pN,More:f3,MoreFilled:l0,MostlyCloudy:bN,Mouse:wN,Mug:xN,Mute:EN,MuteNotification:CN,NoSmoking:TN,Notebook:MN,Notification:IN,Odometer:PN,OfficeBuilding:NN,Open:RN,Operation:HN,Opportunity:DN,Orange:KN,Paperclip:UN,PartlyCloudy:YN,Pear:XN,Phone:eL,PhoneFilled:JN,Picture:nL,PictureFilled:h3,PictureRounded:rL,PieChart:iL,Place:cL,Platform:dL,Plus:n0,Pointer:hL,Position:mL,Postcard:bL,Pouring:wL,Present:xL,PriceTag:CL,Printer:EL,Promotion:TL,QuartzWatch:ML,QuestionFilled:v3,Rank:OL,Reading:LL,ReadingLamp:BL,Refresh:FL,RefreshLeft:m3,RefreshRight:g3,Refrigerator:jL,Remove:qL,RemoveFilled:WL,Right:GL,ScaleToOriginal:b3,School:JL,Scissor:eR,Search:_3,Select:rR,Sell:nR,SemiSelect:iR,Service:cR,SetUp:dR,Setting:fR,Share:vR,Ship:gR,Shop:_R,ShoppingBag:yR,ShoppingCart:SR,ShoppingCartFull:kR,ShoppingTrolley:$R,Smoking:zR,Soccer:AR,SoldOut:OR,Sort:LR,SortDown:w3,SortUp:y3,Stamp:VR,Star:x3,StarFilled:Ss,Stopwatch:jR,SuccessFilled:a0,Sugar:UR,Suitcase:XR,SuitcaseLine:YR,Sunny:JR,Sunrise:eV,Sunset:oV,Switch:sV,SwitchButton:lV,SwitchFilled:aV,TakeawayBox:uV,Ticket:pV,Tickets:hV,Timer:mV,ToiletPaper:bV,Tools:wV,Top:EV,TopLeft:xV,TopRight:CV,TrendCharts:TV,Trophy:IV,TrophyBase:MV,TurnOff:PV,Umbrella:NV,Unlock:RV,Upload:DV,UploadFilled:HV,User:UV,UserFilled:KV,Van:YV,VideoCamera:JV,VideoCameraFilled:XV,VideoPause:eH,VideoPlay:oH,View:k3,Wallet:iH,WalletFilled:nH,WarnTriangleFilled:cH,Warning:pH,WarningFilled:Es,Watch:hH,Watermelon:mH,WindPower:bH,ZoomIn:i0,ZoomOut:C3},Symbol.toStringTag,{value:"Module"})),S3="__epPropKey",pe=e=>e,xH=e=>Ct(e)&&!!e[S3],jr=(e,t)=>{if(!Ct(e)||xH(e))return e;const{values:o,required:r,default:l,type:n,validator:a}=e,c={type:n,required:!!r,validator:o||a?u=>{let p=!1,d=[];if(o&&(d=Array.from(o),Ot(e,"default")&&d.push(l),p||(p=d.includes(u))),a&&(p||(p=a(u))),!p&&d.length>0){const f=[...new Set(d)].map(v=>JSON.stringify(v)).join(", ");Y5(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return p}:void 0,[S3]:!0};return Ot(e,"default")&&(c.default=l),c},He=e=>Su(Object.entries(e).map(([t,o])=>[t,jr(o,t)])),Ut=pe([String,Object,Function]),E3={Close:Mr},s0={Close:Mr,SuccessFilled:a0,InfoFilled:Mu,WarningFilled:Es,CircleCloseFilled:zu},_n={success:a0,warning:Es,error:zu,info:Mu},c0={validating:Rl,success:Tu,error:Ll},xt=(e,t)=>{if(e.install=o=>{for(const r of[e,...Object.values(t??{})])o.component(r.name,r)},t)for(const[o,r]of Object.entries(t))e[o]=r;return e},$3=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e),kH=(e,t)=>(e.install=o=>{o.directive(t,e)},e),fo=e=>(e.install=Dt,e),Au=(...e)=>t=>{e.forEach(o=>{ut(o)?o(t):o.value=t})},tt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},CH=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],u0=["sun","mon","tue","wed","thu","fri","sat"],kt="update:modelValue",Jt="change",Jo="input",T3=Symbol("INSTALLED_KEY"),il=["","default","small","large"],SH={large:40,default:32,small:24},EH=e=>SH[e||"default"],d0=e=>["",...il].includes(e);var Ar=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ar||{});function p0(e){return Qt(e)&&e.type===Ge}function $H(e){return Qt(e)&&e.type===Yo}function TH(e){return Qt(e)&&!p0(e)&&!$H(e)}const zH=e=>{if(!Qt(e))return{};const t=e.props||{},o=(Qt(e.type)?e.type.props:void 0)||{},r={};return Object.keys(o).forEach(l=>{Ot(o[l],"default")&&(r[l]=o[l].default)}),Object.keys(t).forEach(l=>{r[yr(l)]=t[l]}),r},MH=e=>{if(!Ye(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},ra=e=>{const t=Ye(e)?e:[e],o=[];return t.forEach(r=>{var l;Ye(r)?o.push(...ra(r)):Qt(r)&&Ye(r.children)?o.push(...ra(r.children)):(o.push(r),Qt(r)&&((l=r.component)!=null&&l.subTree)&&o.push(...ra(r.component.subTree)))}),o},z3=e=>[...new Set(e)],Vl=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Iu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ya=e=>Bt?window.requestAnimationFrame(e):setTimeout(e,16),Ou=e=>Bt?window.cancelAnimationFrame(e):clearTimeout(e),Pu=()=>Math.floor(Math.random()*1e4),ro=e=>e,AH=["class","style"],IH=/^on[A-Z]/,f0=(e={})=>{const{excludeListeners:t=!1,excludeKeys:o}=e,r=$(()=>((o==null?void 0:o.value)||[]).concat(AH)),l=_t();return $(l?()=>{var n;return Su(Object.entries((n=l.proxy)==null?void 0:n.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&IH.test(a))))}:()=>({}))},sl=({from:e,replacement:t,scope:o,version:r,ref:l,type:n="API"},a)=>{Te(()=>s(a),i=>{},{immediate:!0})},M3=(e,t,o)=>{let r={offsetX:0,offsetY:0};const l=i=>{const c=i.clientX,u=i.clientY,{offsetX:p,offsetY:d}=r,f=e.value.getBoundingClientRect(),v=f.left,m=f.top,h=f.width,_=f.height,g=document.documentElement.clientWidth,y=document.documentElement.clientHeight,w=-v+p,x=-m+d,M=g-v-h+p,T=y-m-_+d,O=F=>{const K=Math.min(Math.max(p+F.clientX-c,w),M),R=Math.min(Math.max(d+F.clientY-u,x),T);r={offsetX:K,offsetY:R},e.value&&(e.value.style.transform=`translate(${bo(K)}, ${bo(R)})`)},I=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)},n=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};vt(()=>{lr(()=>{o.value?n():a()})}),Zt(()=>{a()})};var OH={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const PH=e=>(t,o)=>BH(t,o,s(e)),BH=(e,t,o)=>oo(o,e,e).replace(/\{(\w+)\}/g,(r,l)=>{var n;return`${(n=t==null?void 0:t[l])!=null?n:`{${l}}`}`}),NH=e=>{const t=$(()=>s(e).name),o=Kt(e)?e:V(e);return{lang:t,locale:o,t:PH(e)}},A3=Symbol("localeContextKey"),Nt=e=>{const t=e||Le(A3,V());return NH($(()=>t.value||OH))},$s="el",LH="is-",la=(e,t,o,r,l)=>{let n=`${e}-${t}`;return o&&(n+=`-${o}`),r&&(n+=`__${r}`),l&&(n+=`--${l}`),n},I3=Symbol("namespaceContextKey"),h0=e=>{const t=e||(_t()?Le(I3,V($s)):V($s));return $(()=>s(t)||$s)},Oe=(e,t)=>{const o=h0(t);return{namespace:o,b:(h="")=>la(o.value,e,h,"",""),e:h=>h?la(o.value,e,"",h,""):"",m:h=>h?la(o.value,e,"","",h):"",be:(h,_)=>h&&_?la(o.value,e,h,_,""):"",em:(h,_)=>h&&_?la(o.value,e,"",h,_):"",bm:(h,_)=>h&&_?la(o.value,e,h,"",_):"",bem:(h,_,g)=>h&&_&&g?la(o.value,e,h,_,g):"",is:(h,..._)=>{const g=_.length>=1?_[0]:!0;return h&&g?`${LH}${h}`:""},cssVar:h=>{const _={};for(const g in h)h[g]&&(_[`--${o.value}-${g}`]=h[g]);return _},cssVarName:h=>`--${o.value}-${h}`,cssVarBlock:h=>{const _={};for(const g in h)h[g]&&(_[`--${o.value}-${e}-${g}`]=h[g]);return _},cssVarBlockName:h=>`--${o.value}-${e}-${h}`}},O3=(e,t={})=>{Kt(e)||So("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||Oe("popup"),r=J2(()=>o.bm("parent","hidden"));if(!Bt||Dr(document.body,r.value))return;let l=0,n=!1,a="0";const i=()=>{setTimeout(()=>{sr(document==null?void 0:document.body,r.value),n&&document&&(document.body.style.width=a)},200)};Te(e,c=>{if(!c){i();return}n=!Dr(document.body,r.value),n&&(a=document.body.style.width),l=o3(o.namespace.value);const u=document.documentElement.clientHeight0&&(u||p==="scroll")&&n&&(document.body.style.width=`calc(100% - ${l}px)`),al(document.body,r.value)}),gp(()=>i())},RH=jr({type:pe(Boolean),default:null}),VH=jr({type:pe(Function)}),P3=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,r=[t],l={[e]:RH,[o]:VH};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:p,onHide:d})=>{const f=_t(),{emit:v}=f,m=f.props,h=$(()=>ut(m[o])),_=$(()=>m[e]===null),g=O=>{a.value!==!0&&(a.value=!0,i&&(i.value=O),ut(p)&&p(O))},y=O=>{a.value!==!1&&(a.value=!1,i&&(i.value=O),ut(d)&&d(O))},w=O=>{if(m.disabled===!0||ut(u)&&!u())return;const I=h.value&&Bt;I&&v(t,!0),(_.value||!I)&&g(O)},x=O=>{if(m.disabled===!0||!Bt)return;const I=h.value&&Bt;I&&v(t,!1),(_.value||!I)&&y(O)},M=O=>{Co(O)&&(m.disabled&&O?h.value&&v(t,!1):a.value!==O&&(O?g():y()))},T=()=>{a.value?x():w()};return Te(()=>m[e],M),c&&f.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...f.proxy.$route}),()=>{c.value&&a.value&&x()}),vt(()=>{M(m[e])}),{hide:x,show:w,toggle:T,hasUpdateHandler:h}},useModelToggleProps:l,useModelToggleEmits:r}};P3("modelValue");const B3=e=>{const t=_t();return $(()=>{var o,r;return(r=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:r[e]})};var cr="top",Ir="bottom",Or="right",ur="left",v0="auto",Ts=[cr,Ir,Or,ur],Ga="start",zs="end",HH="clippingParents",N3="viewport",Ms="popper",FH="reference",L3=Ts.reduce(function(e,t){return e.concat([t+"-"+Ga,t+"-"+zs])},[]),na=[].concat(Ts,[v0]).reduce(function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+zs])},[]),DH="beforeRead",jH="read",KH="afterRead",WH="beforeMain",UH="main",qH="afterMain",YH="beforeWrite",GH="write",XH="afterWrite",ZH=[DH,jH,KH,WH,UH,qH,YH,GH,XH];function cl(e){return e?(e.nodeName||"").toLowerCase():null}function Kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xa(e){var t=Kr(e).Element;return e instanceof t||e instanceof Element}function Pr(e){var t=Kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function m0(e){if(typeof ShadowRoot>"u")return!1;var t=Kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JH(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},l=t.attributes[o]||{},n=t.elements[o];!Pr(n)||!cl(n)||(Object.assign(n.style,r),Object.keys(l).forEach(function(a){var i=l[a];i===!1?n.removeAttribute(a):n.setAttribute(a,i===!0?"":i)}))})}function QH(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],n=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),i=a.reduce(function(c,u){return c[u]="",c},{});!Pr(l)||!cl(l)||(Object.assign(l.style,i),Object.keys(n).forEach(function(c){l.removeAttribute(c)}))})}}var R3={name:"applyStyles",enabled:!0,phase:"write",fn:JH,effect:QH,requires:["computeStyles"]};function ul(e){return e.split("-")[0]}var aa=Math.max,Bu=Math.min,Za=Math.round;function Ja(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),r=1,l=1;if(Pr(e)&&t){var n=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Za(o.width)/a||1),n>0&&(l=Za(o.height)/n||1)}return{width:o.width/r,height:o.height/l,top:o.top/l,right:o.right/r,bottom:o.bottom/l,left:o.left/r,x:o.left/r,y:o.top/l}}function g0(e){var t=Ja(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function V3(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&m0(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hl(e){return Kr(e).getComputedStyle(e)}function eF(e){return["table","td","th"].indexOf(cl(e))>=0}function wn(e){return((Xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nu(e){return cl(e)==="html"?e:e.assignedSlot||e.parentNode||(m0(e)?e.host:null)||wn(e)}function H3(e){return!Pr(e)||Hl(e).position==="fixed"?null:e.offsetParent}function tF(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Pr(e)){var r=Hl(e);if(r.position==="fixed")return null}var l=Nu(e);for(m0(l)&&(l=l.host);Pr(l)&&["html","body"].indexOf(cl(l))<0;){var n=Hl(l);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return l;l=l.parentNode}return null}function As(e){for(var t=Kr(e),o=H3(e);o&&eF(o)&&Hl(o).position==="static";)o=H3(o);return o&&(cl(o)==="html"||cl(o)==="body"&&Hl(o).position==="static")?t:o||tF(e)||t}function b0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Is(e,t,o){return aa(e,Bu(t,o))}function oF(e,t,o){var r=Is(e,t,o);return r>o?o:r}function F3(){return{top:0,right:0,bottom:0,left:0}}function D3(e){return Object.assign({},F3(),e)}function j3(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var rF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,D3(typeof e!="number"?e:j3(e,Ts))};function lF(e){var t,o=e.state,r=e.name,l=e.options,n=o.elements.arrow,a=o.modifiersData.popperOffsets,i=ul(o.placement),c=b0(i),u=[ur,Or].indexOf(i)>=0,p=u?"height":"width";if(!(!n||!a)){var d=rF(l.padding,o),f=g0(n),v=c==="y"?cr:ur,m=c==="y"?Ir:Or,h=o.rects.reference[p]+o.rects.reference[c]-a[c]-o.rects.popper[p],_=a[c]-o.rects.reference[c],g=As(n),y=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,w=h/2-_/2,x=d[v],M=y-f[p]-d[m],T=y/2-f[p]/2+w,O=Is(x,T,M),I=c;o.modifiersData[r]=(t={},t[I]=O,t.centerOffset=O-T,t)}}function nF(e){var t=e.state,o=e.options,r=o.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!V3(t.elements.popper,l)||(t.elements.arrow=l))}var aF={name:"arrow",enabled:!0,phase:"main",fn:lF,effect:nF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qa(e){return e.split("-")[1]}var iF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sF(e){var t=e.x,o=e.y,r=window,l=r.devicePixelRatio||1;return{x:Za(t*l)/l||0,y:Za(o*l)/l||0}}function K3(e){var t,o=e.popper,r=e.popperRect,l=e.placement,n=e.variation,a=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,d=e.isFixed,f=a.x,v=f===void 0?0:f,m=a.y,h=m===void 0?0:m,_=typeof p=="function"?p({x:v,y:h}):{x:v,y:h};v=_.x,h=_.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=ur,x=cr,M=window;if(u){var T=As(o),O="clientHeight",I="clientWidth";if(T===Kr(o)&&(T=wn(o),Hl(T).position!=="static"&&i==="absolute"&&(O="scrollHeight",I="scrollWidth")),T=T,l===cr||(l===ur||l===Or)&&n===zs){x=Ir;var F=d&&T===M&&M.visualViewport?M.visualViewport.height:T[O];h-=F-r.height,h*=c?1:-1}if(l===ur||(l===cr||l===Ir)&&n===zs){w=Or;var K=d&&T===M&&M.visualViewport?M.visualViewport.width:T[I];v-=K-r.width,v*=c?1:-1}}var R=Object.assign({position:i},u&&iF),D=p===!0?sF({x:v,y:h}):{x:v,y:h};if(v=D.x,h=D.y,c){var j;return Object.assign({},R,(j={},j[x]=y?"0":"",j[w]=g?"0":"",j.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+h+"px)":"translate3d("+v+"px, "+h+"px, 0)",j))}return Object.assign({},R,(t={},t[x]=y?h+"px":"",t[w]=g?v+"px":"",t.transform="",t))}function cF(e){var t=e.state,o=e.options,r=o.gpuAcceleration,l=r===void 0?!0:r,n=o.adaptive,a=n===void 0?!0:n,i=o.roundOffsets,c=i===void 0?!0:i,u={placement:ul(t.placement),variation:Qa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,K3(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,K3(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var W3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cF,data:{}},Lu={passive:!0};function uF(e){var t=e.state,o=e.instance,r=e.options,l=r.scroll,n=l===void 0?!0:l,a=r.resize,i=a===void 0?!0:a,c=Kr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&u.forEach(function(p){p.addEventListener("scroll",o.update,Lu)}),i&&c.addEventListener("resize",o.update,Lu),function(){n&&u.forEach(function(p){p.removeEventListener("scroll",o.update,Lu)}),i&&c.removeEventListener("resize",o.update,Lu)}}var U3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uF,data:{}},dF={left:"right",right:"left",bottom:"top",top:"bottom"};function Ru(e){return e.replace(/left|right|bottom|top/g,function(t){return dF[t]})}var pF={start:"end",end:"start"};function q3(e){return e.replace(/start|end/g,function(t){return pF[t]})}function _0(e){var t=Kr(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function w0(e){return Ja(wn(e)).left+_0(e).scrollLeft}function fF(e){var t=Kr(e),o=wn(e),r=t.visualViewport,l=o.clientWidth,n=o.clientHeight,a=0,i=0;return r&&(l=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:l,height:n,x:a+w0(e),y:i}}function hF(e){var t,o=wn(e),r=_0(e),l=(t=e.ownerDocument)==null?void 0:t.body,n=aa(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),a=aa(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-r.scrollLeft+w0(e),c=-r.scrollTop;return Hl(l||o).direction==="rtl"&&(i+=aa(o.clientWidth,l?l.clientWidth:0)-n),{width:n,height:a,x:i,y:c}}function y0(e){var t=Hl(e),o=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+l+r)}function Y3(e){return["html","body","#document"].indexOf(cl(e))>=0?e.ownerDocument.body:Pr(e)&&y0(e)?e:Y3(Nu(e))}function Os(e,t){var o;t===void 0&&(t=[]);var r=Y3(e),l=r===((o=e.ownerDocument)==null?void 0:o.body),n=Kr(r),a=l?[n].concat(n.visualViewport||[],y0(r)?r:[]):r,i=t.concat(a);return l?i:i.concat(Os(Nu(a)))}function x0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vF(e){var t=Ja(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function G3(e,t){return t===N3?x0(fF(e)):Xa(t)?vF(t):x0(hF(wn(e)))}function mF(e){var t=Os(Nu(e)),o=["absolute","fixed"].indexOf(Hl(e).position)>=0,r=o&&Pr(e)?As(e):e;return Xa(r)?t.filter(function(l){return Xa(l)&&V3(l,r)&&cl(l)!=="body"}):[]}function gF(e,t,o){var r=t==="clippingParents"?mF(e):[].concat(t),l=[].concat(r,[o]),n=l[0],a=l.reduce(function(i,c){var u=G3(e,c);return i.top=aa(u.top,i.top),i.right=Bu(u.right,i.right),i.bottom=Bu(u.bottom,i.bottom),i.left=aa(u.left,i.left),i},G3(e,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function X3(e){var t=e.reference,o=e.element,r=e.placement,l=r?ul(r):null,n=r?Qa(r):null,a=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,c;switch(l){case cr:c={x:a,y:t.y-o.height};break;case Ir:c={x:a,y:t.y+t.height};break;case Or:c={x:t.x+t.width,y:i};break;case ur:c={x:t.x-o.width,y:i};break;default:c={x:t.x,y:t.y}}var u=l?b0(l):null;if(u!=null){var p=u==="y"?"height":"width";switch(n){case Ga:c[u]=c[u]-(t[p]/2-o[p]/2);break;case zs:c[u]=c[u]+(t[p]/2-o[p]/2);break}}return c}function Ps(e,t){t===void 0&&(t={});var o=t,r=o.placement,l=r===void 0?e.placement:r,n=o.boundary,a=n===void 0?HH:n,i=o.rootBoundary,c=i===void 0?N3:i,u=o.elementContext,p=u===void 0?Ms:u,d=o.altBoundary,f=d===void 0?!1:d,v=o.padding,m=v===void 0?0:v,h=D3(typeof m!="number"?m:j3(m,Ts)),_=p===Ms?FH:Ms,g=e.rects.popper,y=e.elements[f?_:p],w=gF(Xa(y)?y:y.contextElement||wn(e.elements.popper),a,c),x=Ja(e.elements.reference),M=X3({reference:x,element:g,strategy:"absolute",placement:l}),T=x0(Object.assign({},g,M)),O=p===Ms?T:x,I={top:w.top-O.top+h.top,bottom:O.bottom-w.bottom+h.bottom,left:w.left-O.left+h.left,right:O.right-w.right+h.right},F=e.modifiersData.offset;if(p===Ms&&F){var K=F[l];Object.keys(I).forEach(function(R){var D=[Or,Ir].indexOf(R)>=0?1:-1,j=[cr,Ir].indexOf(R)>=0?"y":"x";I[R]+=K[j]*D})}return I}function bF(e,t){t===void 0&&(t={});var o=t,r=o.placement,l=o.boundary,n=o.rootBoundary,a=o.padding,i=o.flipVariations,c=o.allowedAutoPlacements,u=c===void 0?na:c,p=Qa(r),d=p?i?L3:L3.filter(function(m){return Qa(m)===p}):Ts,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var v=f.reduce(function(m,h){return m[h]=Ps(e,{placement:h,boundary:l,rootBoundary:n,padding:a})[ul(h)],m},{});return Object.keys(v).sort(function(m,h){return v[m]-v[h]})}function _F(e){if(ul(e)===v0)return[];var t=Ru(e);return[q3(e),t,q3(t)]}function wF(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=o.mainAxis,n=l===void 0?!0:l,a=o.altAxis,i=a===void 0?!0:a,c=o.fallbackPlacements,u=o.padding,p=o.boundary,d=o.rootBoundary,f=o.altBoundary,v=o.flipVariations,m=v===void 0?!0:v,h=o.allowedAutoPlacements,_=t.options.placement,g=ul(_),y=g===_,w=c||(y||!m?[Ru(_)]:_F(_)),x=[_].concat(w).reduce(function(ve,le){return ve.concat(ul(le)===v0?bF(t,{placement:le,boundary:p,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):le)},[]),M=t.rects.reference,T=t.rects.popper,O=new Map,I=!0,F=x[0],K=0;K=0,Q=Z?"width":"height",J=Ps(t,{placement:R,boundary:p,rootBoundary:d,altBoundary:f,padding:u}),L=Z?j?Or:ur:j?Ir:cr;M[Q]>T[Q]&&(L=Ru(L));var X=Ru(L),N=[];if(n&&N.push(J[D]<=0),i&&N.push(J[L]<=0,J[X]<=0),N.every(function(ve){return ve})){F=R,I=!1;break}O.set(R,N)}if(I)for(var W=m?3:1,re=function(ve){var le=x.find(function(ge){var _e=O.get(ge);if(_e)return _e.slice(0,ve).every(function(me){return me})});if(le)return F=le,"break"},ie=W;ie>0;ie--){var se=re(ie);if(se==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}var yF={name:"flip",enabled:!0,phase:"main",fn:wF,requiresIfExists:["offset"],data:{_skip:!1}};function Z3(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function J3(e){return[cr,Or,Ir,ur].some(function(t){return e[t]>=0})}function xF(e){var t=e.state,o=e.name,r=t.rects.reference,l=t.rects.popper,n=t.modifiersData.preventOverflow,a=Ps(t,{elementContext:"reference"}),i=Ps(t,{altBoundary:!0}),c=Z3(a,r),u=Z3(i,l,n),p=J3(c),d=J3(u);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}var kF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xF};function CF(e,t,o){var r=ul(e),l=[ur,cr].indexOf(r)>=0?-1:1,n=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=n[0],i=n[1];return a=a||0,i=(i||0)*l,[ur,Or].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function SF(e){var t=e.state,o=e.options,r=e.name,l=o.offset,n=l===void 0?[0,0]:l,a=na.reduce(function(p,d){return p[d]=CF(d,t.rects,n),p},{}),i=a[t.placement],c=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var EF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SF};function $F(e){var t=e.state,o=e.name;t.modifiersData[o]=X3({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Q3={name:"popperOffsets",enabled:!0,phase:"read",fn:$F,data:{}};function TF(e){return e==="x"?"y":"x"}function zF(e){var t=e.state,o=e.options,r=e.name,l=o.mainAxis,n=l===void 0?!0:l,a=o.altAxis,i=a===void 0?!1:a,c=o.boundary,u=o.rootBoundary,p=o.altBoundary,d=o.padding,f=o.tether,v=f===void 0?!0:f,m=o.tetherOffset,h=m===void 0?0:m,_=Ps(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:p}),g=ul(t.placement),y=Qa(t.placement),w=!y,x=b0(g),M=TF(x),T=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,F=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,K=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(T){if(n){var j,Z=x==="y"?cr:ur,Q=x==="y"?Ir:Or,J=x==="y"?"height":"width",L=T[x],X=L+_[Z],N=L-_[Q],W=v?-I[J]/2:0,re=y===Ga?O[J]:I[J],ie=y===Ga?-I[J]:-O[J],se=t.elements.arrow,ve=v&&se?g0(se):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:F3(),ge=le[Z],_e=le[Q],me=Is(0,O[J],ve[J]),Be=w?O[J]/2-W-me-ge-K.mainAxis:re-me-ge-K.mainAxis,ye=w?-O[J]/2+W+me+_e+K.mainAxis:ie+me+_e+K.mainAxis,Me=t.elements.arrow&&As(t.elements.arrow),te=Me?x==="y"?Me.clientTop||0:Me.clientLeft||0:0,ce=(j=R==null?void 0:R[x])!=null?j:0,we=L+Be-ce-te,Ae=L+ye-ce,Ie=Is(v?Bu(X,we):X,L,v?aa(N,Ae):N);T[x]=Ie,D[x]=Ie-L}if(i){var xe,Ne=x==="x"?cr:ur,Se=x==="x"?Ir:Or,ke=T[M],$e=M==="y"?"height":"width",Pe=ke+_[Ne],qe=ke-_[Se],Ke=[cr,ur].indexOf(g)!==-1,Ee=(xe=R==null?void 0:R[M])!=null?xe:0,We=Ke?Pe:ke-O[$e]-I[$e]-Ee+K.altAxis,nt=Ke?ke+O[$e]+I[$e]-Ee-K.altAxis:qe,dt=v&&Ke?oF(We,ke,nt):Is(v?We:Pe,ke,v?nt:qe);T[M]=dt,D[M]=dt-ke}t.modifiersData[r]=D}}var MF={name:"preventOverflow",enabled:!0,phase:"main",fn:zF,requiresIfExists:["offset"]};function AF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IF(e){return e===Kr(e)||!Pr(e)?_0(e):AF(e)}function OF(e){var t=e.getBoundingClientRect(),o=Za(t.width)/e.offsetWidth||1,r=Za(t.height)/e.offsetHeight||1;return o!==1||r!==1}function PF(e,t,o){o===void 0&&(o=!1);var r=Pr(t),l=Pr(t)&&OF(t),n=wn(t),a=Ja(e,l),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!o)&&((cl(t)!=="body"||y0(n))&&(i=IF(t)),Pr(t)?(c=Ja(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):n&&(c.x=w0(n))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function BF(e){var t=new Map,o=new Set,r=[];e.forEach(function(n){t.set(n.name,n)});function l(n){o.add(n.name);var a=[].concat(n.requires||[],n.requiresIfExists||[]);a.forEach(function(i){if(!o.has(i)){var c=t.get(i);c&&l(c)}}),r.push(n)}return e.forEach(function(n){o.has(n.name)||l(n)}),r}function NF(e){var t=BF(e);return ZH.reduce(function(o,r){return o.concat(t.filter(function(l){return l.phase===r}))},[])}function LF(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function RF(e){var t=e.reduce(function(o,r){var l=o[r.name];return o[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var e_={placement:"bottom",modifiers:[],strategy:"absolute"};function t_(){for(var e=arguments.length,t=new Array(e),o=0;o{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=DF(c);Object.assign(a.value,u)},requires:["computeStyles"]},l=$(()=>{const{onFirstUpdate:c,placement:u,strategy:p,modifiers:d}=s(o);return{onFirstUpdate:c,placement:u||"bottom",strategy:p||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),n=qt(),a=V({styles:{popper:{position:s(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{n.value&&(n.value.destroy(),n.value=void 0)};return Te(l,c=>{const u=s(n);u&&u.setOptions(c)},{deep:!0}),Te([e,t],([c,u])=>{i(),!(!c||!u)&&(n.value=o_(c,u,s(l)))}),Zt(()=>{i()}),{state:$(()=>{var c;return{...((c=s(n))==null?void 0:c.state)||{}}}),styles:$(()=>s(a).styles),attributes:$(()=>s(a).attributes),update:()=>{var c;return(c=s(n))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=s(n))==null?void 0:c.forceUpdate()},instanceRef:$(()=>s(n))}};function DF(e){const t=Object.keys(e.elements),o=Su(t.map(l=>[l,e.styles[l]||{}])),r=Su(t.map(l=>[l,e.attributes[l]]));return{styles:o,attributes:r}}const C0=e=>{if(!e)return{onClick:Dt,onMousedown:Dt,onMouseup:Dt};let t=!1,o=!1;return{onClick:a=>{t&&o&&e(a),t=o=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{o=a.target===a.currentTarget}}},jF=(e,t=0)=>{if(t===0)return e;const o=V(!1);let r=0;const l=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{o.value=e.value},t)};return vt(l),Te(()=>e.value,n=>{n?l():o.value=n}),o};function r_(){let e;const t=(r,l)=>{o(),e=window.setTimeout(r,l)},o=()=>window.clearTimeout(e);return is(()=>o()),{registerTimeout:t,cancelTimeout:o}}const l_={prefix:Math.floor(Math.random()*1e4),current:0},KF=Symbol("elIdInjection"),n_=()=>_t()?Le(KF,l_):l_,dr=e=>{const t=n_(),o=h0();return $(()=>s(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let ei=[];const a_=e=>{const t=e;t.key===tt.esc&&ei.forEach(o=>o(t))},WF=e=>{vt(()=>{ei.length===0&&document.addEventListener("keydown",a_),Bt&&ei.push(e)}),Zt(()=>{ei=ei.filter(t=>t!==e),ei.length===0&&Bt&&document.removeEventListener("keydown",a_)})};let i_;const s_=()=>{const e=h0(),t=n_(),o=$(()=>`${e.value}-popper-container-${t.prefix}`),r=$(()=>`#${o.value}`);return{id:o,selector:r}},UF=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},qF=()=>{const{id:e,selector:t}=s_();return jc(()=>{Bt&&!i_&&!document.body.querySelector(t.value)&&(i_=UF(e.value))}),{id:e,selector:t}},YF=He({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),c_=({showAfter:e,hideAfter:t,autoClose:o,open:r,close:l})=>{const{registerTimeout:n}=r_(),{registerTimeout:a,cancelTimeout:i}=r_();return{onOpen:p=>{n(()=>{r(p);const d=s(o);ct(d)&&d>0&&a(()=>{l(p)},d)},s(e))},onClose:p=>{i(),n(()=>{l(p)},s(t))}}},u_=Symbol("elForwardRef"),GF=e=>{zt(u_,{setForwardRef:o=>{e.value=o}})},XF=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),d_=V(0),p_=2e3,f_=Symbol("zIndexContextKey"),ti=e=>{const t=e||(_t()?Le(f_,void 0):void 0),o=$(()=>{const n=s(t);return ct(n)?n:p_}),r=$(()=>o.value+d_.value);return{initialZIndex:o,currentZIndex:r,nextZIndex:()=>(d_.value++,r.value)}},Bs=Math.min,oi=Math.max,Vu=Math.round,yn=e=>({x:e,y:e});function ZF(e,t,o){return oi(e,Bs(t,o))}function h_(e,t){return typeof e=="function"?e(t):e}function S0(e){return e.split("-")[0]}function E0(e){return e.split("-")[1]}function JF(e){return e==="x"?"y":"x"}function v_(e){return e==="y"?"height":"width"}function $0(e){return["top","bottom"].includes(S0(e))?"y":"x"}function m_(e){return JF($0(e))}function QF(e){return{top:0,right:0,bottom:0,left:0,...e}}function eD(e){return typeof e!="number"?QF(e):{top:e,right:e,bottom:e,left:e}}function g_(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function b_(e,t,o){let{reference:r,floating:l}=e;const n=$0(t),a=m_(t),i=v_(a),c=S0(t),u=n==="y",p=r.x+r.width/2-l.width/2,d=r.y+r.height/2-l.height/2,f=r[i]/2-l[i]/2;let v;switch(c){case"top":v={x:p,y:r.y-l.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-l.width,y:d};break;default:v={x:r.x,y:r.y}}switch(E0(t)){case"start":v[a]-=f*(o&&u?-1:1);break;case"end":v[a]+=f*(o&&u?-1:1);break}return v}const tD=async(e,t,o)=>{const{placement:r="bottom",strategy:l="absolute",middleware:n=[],platform:a}=o,i=n.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:p,y:d}=b_(u,r,c),f=r,v={},m=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:l,rects:n,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:p=0}=h_(e,t)||{};if(u==null)return{};const d=eD(p),f={x:o,y:r},v=m_(l),m=v_(v),h=await a.getDimensions(u),_=v==="y",g=_?"top":"left",y=_?"bottom":"right",w=_?"clientHeight":"clientWidth",x=n.reference[m]+n.reference[v]-f[v]-n.floating[m],M=f[v]-n.reference[v],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let O=T?T[w]:0;(!O||!await(a.isElement==null?void 0:a.isElement(T)))&&(O=i.floating[w]||n.floating[m]);const I=x/2-M/2,F=O/2-h[m]/2-1,K=Bs(d[g],F),R=Bs(d[y],F),D=K,j=O-h[m]-R,Z=O/2-h[m]/2+I,Q=ZF(D,Z,j),J=!c.arrow&&E0(l)!=null&&Z!=Q&&n.reference[m]/2-(Z"u"?!1:e instanceof ShadowRoot||e instanceof br(e).ShadowRoot}function Ns(e){const{overflow:t,overflowX:o,overflowY:r,display:l}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(l)}function nD(e){return["table","td","th"].includes(xn(e))}function T0(e){const t=z0(),o=Br(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function aD(e){let t=ri(e);for(;dl(t)&&!Hu(t);){if(T0(t))return t;t=ri(t)}return null}function z0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Hu(e){return["html","body","#document"].includes(xn(e))}function Br(e){return br(e).getComputedStyle(e)}function Fu(e){return Fl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ri(e){if(xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||w_(e)&&e.host||kn(e);return w_(t)?t.host:t}function y_(e){const t=ri(e);return Hu(t)?e.ownerDocument?e.ownerDocument.body:e.body:dl(t)&&Ns(t)?t:y_(t)}function M0(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);const l=y_(e),n=l===((r=e.ownerDocument)==null?void 0:r.body),a=br(l);return n?t.concat(a,a.visualViewport||[],Ns(l)?l:[],a.frameElement&&o?M0(a.frameElement):[]):t.concat(l,M0(l,[],o))}function x_(e){const t=Br(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=dl(e),n=l?e.offsetWidth:o,a=l?e.offsetHeight:r,i=Vu(o)!==n||Vu(r)!==a;return i&&(o=n,r=a),{width:o,height:r,$:i}}function k_(e){return Fl(e)?e:e.contextElement}function li(e){const t=k_(e);if(!dl(t))return yn(1);const o=t.getBoundingClientRect(),{width:r,height:l,$:n}=x_(t);let a=(n?Vu(o.width):o.width)/r,i=(n?Vu(o.height):o.height)/l;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const iD=yn(0);function C_(e){const t=br(e);return!z0()||!t.visualViewport?iD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==br(e)?!1:t}function Ls(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const l=e.getBoundingClientRect(),n=k_(e);let a=yn(1);t&&(r?Fl(r)&&(a=li(r)):a=li(e));const i=sD(n,o,r)?C_(n):yn(0);let c=(l.left+i.x)/a.x,u=(l.top+i.y)/a.y,p=l.width/a.x,d=l.height/a.y;if(n){const f=br(n),v=r&&Fl(r)?br(r):r;let m=f.frameElement;for(;m&&r&&v!==f;){const h=li(m),_=m.getBoundingClientRect(),g=Br(m),y=_.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,w=_.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;c*=h.x,u*=h.y,p*=h.x,d*=h.y,c+=y,u+=w,m=br(m).frameElement}}return g_({width:p,height:d,x:c,y:u})}function cD(e){let{rect:t,offsetParent:o,strategy:r}=e;const l=dl(o),n=kn(o);if(o===n)return t;let a={scrollLeft:0,scrollTop:0},i=yn(1);const c=yn(0);if((l||!l&&r!=="fixed")&&((xn(o)!=="body"||Ns(n))&&(a=Fu(o)),dl(o))){const u=Ls(o);i=li(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-a.scrollLeft*i.x+c.x,y:t.y*i.y-a.scrollTop*i.y+c.y}}function uD(e){return Array.from(e.getClientRects())}function S_(e){return Ls(kn(e)).left+Fu(e).scrollLeft}function dD(e){const t=kn(e),o=Fu(e),r=e.ownerDocument.body,l=oi(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=oi(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+S_(e);const i=-o.scrollTop;return Br(r).direction==="rtl"&&(a+=oi(t.clientWidth,r.clientWidth)-l),{width:l,height:n,x:a,y:i}}function pD(e,t){const o=br(e),r=kn(e),l=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,i=0,c=0;if(l){n=l.width,a=l.height;const u=z0();(!u||u&&t==="fixed")&&(i=l.offsetLeft,c=l.offsetTop)}return{width:n,height:a,x:i,y:c}}function fD(e,t){const o=Ls(e,!0,t==="fixed"),r=o.top+e.clientTop,l=o.left+e.clientLeft,n=dl(e)?li(e):yn(1),a=e.clientWidth*n.x,i=e.clientHeight*n.y,c=l*n.x,u=r*n.y;return{width:a,height:i,x:c,y:u}}function E_(e,t,o){let r;if(t==="viewport")r=pD(e,o);else if(t==="document")r=dD(kn(e));else if(Fl(t))r=fD(t,o);else{const l=C_(e);r={...t,x:t.x-l.x,y:t.y-l.y}}return g_(r)}function $_(e,t){const o=ri(e);return o===t||!Fl(o)||Hu(o)?!1:Br(o).position==="fixed"||$_(o,t)}function hD(e,t){const o=t.get(e);if(o)return o;let r=M0(e,[],!1).filter(i=>Fl(i)&&xn(i)!=="body"),l=null;const n=Br(e).position==="fixed";let a=n?ri(e):e;for(;Fl(a)&&!Hu(a);){const i=Br(a),c=T0(a);!c&&i.position==="fixed"&&(l=null),(n?!c&&!l:!c&&i.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Ns(a)&&!c&&$_(e,a))?r=r.filter(p=>p!==a):l=i,a=ri(a)}return t.set(e,r),r}function vD(e){let{element:t,boundary:o,rootBoundary:r,strategy:l}=e;const a=[...o==="clippingAncestors"?hD(t,this._c):[].concat(o),r],i=a[0],c=a.reduce((u,p)=>{const d=E_(t,p,l);return u.top=oi(d.top,u.top),u.right=Bs(d.right,u.right),u.bottom=Bs(d.bottom,u.bottom),u.left=oi(d.left,u.left),u},E_(t,i,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function mD(e){return x_(e)}function gD(e,t,o){const r=dl(t),l=kn(t),n=o==="fixed",a=Ls(e,!0,n,t);let i={scrollLeft:0,scrollTop:0};const c=yn(0);if(r||!r&&!n)if((xn(t)!=="body"||Ns(l))&&(i=Fu(t)),r){const u=Ls(t,!0,n,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else l&&(c.x=S_(l));return{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function T_(e,t){return!dl(e)||Br(e).position==="fixed"?null:t?t(e):e.offsetParent}function z_(e,t){const o=br(e);if(!dl(e))return o;let r=T_(e,t);for(;r&&nD(r)&&Br(r).position==="static";)r=T_(r,t);return r&&(xn(r)==="html"||xn(r)==="body"&&Br(r).position==="static"&&!T0(r))?o:r||aD(e)||o}const bD=async function(e){let{reference:t,floating:o,strategy:r}=e;const l=this.getOffsetParent||z_,n=this.getDimensions;return{reference:gD(t,await l(o),r),floating:{x:0,y:0,...await n(o)}}};function _D(e){return Br(e).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:cD,getDocumentElement:kn,getClippingRect:vD,getOffsetParent:z_,getElementRects:bD,getClientRects:uD,getDimensions:mD,getScale:li,isElement:Fl,isRTL:_D},yD=(e,t,o)=>{const r=new Map,l={platform:wD,...o},n={...l.platform,_c:r};return tD(e,t,{...l,platform:n})};He({});const xD=e=>{if(!Bt)return;if(!e)return e;const t=ar(e);return t||(Kt(e)?t:e)},kD=({middleware:e,placement:t,strategy:o})=>{const r=V(),l=V(),n=V(),a=V(),i=V({}),c={x:n,y:a,placement:t,strategy:o,middlewareData:i},u=async()=>{if(!Bt)return;const p=xD(r),d=ar(l);if(!p||!d)return;const f=await yD(p,d,{placement:s(t),strategy:s(o),middleware:s(e)});ks(c).forEach(v=>{c[v].value=f[v]})};return vt(()=>{lr(()=>{u()})}),{...c,update:u,referenceRef:r,contentRef:l}},CD=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(o){const r=s(e);return r?oD({element:r,padding:t}).fn(o):{}}});function SD(e){const t=V();function o(){if(e.value==null)return;const{selectionStart:l,selectionEnd:n,value:a}=e.value;if(l==null||n==null)return;const i=a.slice(0,Math.max(0,l)),c=a.slice(Math.max(0,n));t.value={selectionStart:l,selectionEnd:n,value:a,beforeTxt:i,afterTxt:c}}function r(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:n,afterTxt:a,selectionStart:i}=t.value;if(n==null||a==null||i==null)return;let c=l.length;if(l.endsWith(a))c=l.length-a.length;else if(l.startsWith(n))c=n.length;else{const u=n[i-1],p=l.indexOf(u,i-1);p!==-1&&(c=p+1)}e.value.setSelectionRange(c,c)}return[o,r]}const ED=(e,t,o)=>ra(e.subTree).filter(n=>{var a;return Qt(n)&&((a=n.type)==null?void 0:a.name)===t&&!!n.component}).map(n=>n.component.uid).map(n=>o[n]).filter(n=>!!n),A0=(e,t)=>{const o={},r=qt([]);return{children:r,addChild:a=>{o[a.uid]=a,r.value=ED(e,t,o)},removeChild:a=>{delete o[a],r.value=r.value.filter(i=>i.uid!==a)}}},No=jr({type:String,values:il,required:!1}),M_=Symbol("size"),$D=()=>{const e=Le(M_,{});return $(()=>s(e.size)||"")};function A_(e,{afterFocus:t,beforeBlur:o,afterBlur:r}={}){const l=_t(),{emit:n}=l,a=qt(),i=V(!1),c=d=>{i.value||(i.value=!0,n("focus",d),t==null||t())},u=d=>{var f;ut(o)&&o(d)||d.relatedTarget&&((f=a.value)!=null&&f.contains(d.relatedTarget))||(i.value=!1,n("blur",d),r==null||r())},p=()=>{var d;(d=e.value)==null||d.focus()};return Te(a,d=>{d&&d.setAttribute("tabindex","-1")}),eo(a,"click",p),{wrapperRef:a,isFocused:i,handleFocus:c,handleBlur:u}}const I_=Symbol(),Du=V();function ju(e,t=void 0){const o=_t()?Le(I_,Du):Du;return e?$(()=>{var r,l;return(l=(r=o.value)==null?void 0:r[e])!=null?l:t}):o}function Ku(e,t){const o=ju(),r=Oe(e,$(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||$s})),l=Nt($(()=>{var i;return(i=o.value)==null?void 0:i.locale})),n=ti($(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||p_})),a=$(()=>{var i;return s(t)||((i=o.value)==null?void 0:i.size)||""});return I0($(()=>s(o)||{})),{ns:r,locale:l,zIndex:n,size:a}}const I0=(e,t,o=!1)=>{var r;const l=!!_t(),n=l?ju():void 0,a=(r=t==null?void 0:t.provide)!=null?r:l?zt:void 0;if(!a)return;const i=$(()=>{const c=s(e);return n!=null&&n.value?TD(n.value,c):c});return a(I_,i),a(A3,$(()=>i.value.locale)),a(I3,$(()=>i.value.namespace)),a(f_,$(()=>i.value.zIndex)),a(M_,{size:$(()=>i.value.size||"")}),(o||!Du.value)&&(Du.value=i.value),i},TD=(e,t)=>{var o;const r=[...new Set([...ks(e),...ks(t)])],l={};for(const n of r)l[n]=(o=t[n])!=null?o:e[n];return l},zD=He({a11y:{type:Boolean,default:!0},locale:{type:pe(Object)},size:No,button:{type:pe(Object)},experimentalFeatures:{type:pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),O0={},MD=xt(B({name:"ElConfigProvider",props:zD,setup(e,{slots:t}){Te(()=>e.message,r=>{Object.assign(O0,r??{})},{immediate:!0,deep:!0});const o=I0(e);return()=>be(t,"default",{config:o==null?void 0:o.value})}})),AD="2.4.4",ID=(e=[])=>({version:AD,install:(o,r)=>{o[T3]||(o[T3]=!0,e.forEach(l=>o.use(l)),r&&I0(r,o,!0))}}),OD=He({zIndex:{type:pe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),PD={scroll:({scrollTop:e,fixed:t})=>ct(e)&&Co(t),[Jt]:e=>Co(e)};var Fe=(e,t)=>{const o=e.__vccOpts||e;for(const[r,l]of t)o[r]=l;return o};const O_="ElAffix",BD=B({...B({name:O_}),props:OD,emits:PD,setup(e,{expose:t,emit:o}){const r=e,l=Oe("affix"),n=qt(),a=qt(),i=qt(),{height:c}=B7(),{height:u,width:p,top:d,bottom:f,update:v}=I1(a,{windowScroll:!1}),m=I1(n),h=V(!1),_=V(0),g=V(0),y=$(()=>({height:h.value?`${u.value}px`:"",width:h.value?`${p.value}px`:""})),w=$(()=>{if(!h.value)return{};const T=r.offset?bo(r.offset):0;return{height:`${u.value}px`,width:`${p.value}px`,top:r.position==="top"?T:"",bottom:r.position==="bottom"?T:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:r.zIndex}}),x=()=>{if(i.value)if(_.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,r.position==="top")if(r.target){const T=m.bottom.value-r.offset-u.value;h.value=r.offset>d.value&&m.bottom.value>0,g.value=T<0?T:0}else h.value=r.offset>d.value;else if(r.target){const T=c.value-m.top.value-r.offset-u.value;h.value=c.value-r.offsetm.top.value,g.value=T<0?-T:0}else h.value=c.value-r.offset{v(),o("scroll",{scrollTop:_.value,fixed:h.value})};return Te(h,T=>o("change",T)),vt(()=>{var T;r.target?(n.value=(T=document.querySelector(r.target))!=null?T:void 0,n.value||So(O_,`Target is not existed: ${r.target}`)):n.value=document.documentElement,i.value=t0(a.value,!0),v()}),eo(i,"scroll",M),lr(x),t({update:x,updateRoot:v}),(T,O)=>(b(),z("div",{ref_key:"root",ref:a,class:P(s(l).b()),style:Qe(s(y))},[E("div",{class:P({[s(l).m("fixed")]:h.value}),style:Qe(s(w))},[be(T.$slots,"default")],6)],6))}});var ND=Fe(BD,[["__file","affix.vue"]]);const LD=xt(ND),RD=He({size:{type:pe([Number,String])},color:{type:String}}),VD=B({...B({name:"ElIcon",inheritAttrs:!1}),props:RD,setup(e){const t=e,o=Oe("icon"),r=$(()=>{const{size:l,color:n}=t;return!l&&!n?{}:{fontSize:ko(l)?void 0:bo(l),"--color":n}});return(l,n)=>(b(),z("i",Et({class:s(o).b(),style:s(r)},l.$attrs),[be(l.$slots,"default")],16))}});var HD=Fe(VD,[["__file","icon.vue"]]);const Je=xt(HD),FD=["light","dark"],DD=He({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ks(_n),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:FD,default:"light"}}),jD=B({...B({name:"ElAlert"}),props:DD,emits:{close:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,{Close:r}=s0,l=Bo(),n=Oe("alert"),a=V(!0),i=$(()=>_n[o.type]),c=$(()=>[n.e("icon"),{[n.is("big")]:!!o.description||!!l.default}]),u=$(()=>({[n.is("bold")]:o.description||l.default})),p=d=>{a.value=!1,t("close",d)};return(d,f)=>(b(),de(_o,{name:s(n).b("fade"),persisted:""},{default:ne(()=>[ht(E("div",{class:P([s(n).b(),s(n).m(d.type),s(n).is("center",d.center),s(n).is(d.effect)]),role:"alert"},[d.showIcon&&s(i)?(b(),de(s(Je),{key:0,class:P(s(c))},{default:ne(()=>[(b(),de(St(s(i))))]),_:1},8,["class"])):ue("v-if",!0),E("div",{class:P(s(n).e("content"))},[d.title||d.$slots.title?(b(),z("span",{key:0,class:P([s(n).e("title"),s(u)])},[be(d.$slots,"title",{},()=>[$t(ze(d.title),1)])],2)):ue("v-if",!0),d.$slots.default||d.description?(b(),z("p",{key:1,class:P(s(n).e("description"))},[be(d.$slots,"default",{},()=>[$t(ze(d.description),1)])],2)):ue("v-if",!0),d.closable?(b(),z(Ge,{key:2},[d.closeText?(b(),z("div",{key:0,class:P([s(n).e("close-btn"),s(n).is("customed")]),onClick:p},ze(d.closeText),3)):(b(),de(s(Je),{key:1,class:P(s(n).e("close-btn")),onClick:p},{default:ne(()=>[oe(s(r))]),_:1},8,["class"]))],64)):ue("v-if",!0)],2)],2),[[Pt,a.value]])]),_:3},8,["name"]))}});var KD=Fe(jD,[["__file","alert.vue"]]);const WD=xt(KD),ia=Symbol("formContextKey"),pl=Symbol("formItemContextKey"),Eo=(e,t={})=>{const o=V(void 0),r=t.prop?o:B3("size"),l=t.global?o:$D(),n=t.form?{size:void 0}:Le(ia,void 0),a=t.formItem?{size:void 0}:Le(pl,void 0);return $(()=>r.value||s(e)||(a==null?void 0:a.size)||(n==null?void 0:n.size)||l.value||"")},pr=e=>{const t=B3("disabled"),o=Le(ia,void 0);return $(()=>t.value||s(e)||(o==null?void 0:o.disabled)||!1)},Qo=()=>{const e=Le(ia,void 0),t=Le(pl,void 0);return{form:e,formItem:t}},Cn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:r})=>{o||(o=V(!1)),r||(r=V(!1));const l=V();let n;const a=$(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return vt(()=>{n=Te([so(e,"id"),o],([i,c])=>{const u=i??(c?void 0:dr().value);u!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),l.value=u)},{immediate:!0})}),cn(()=>{n&&n(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:a,inputId:l}},UD=He({size:{type:String,values:il},disabled:Boolean}),qD=He({...UD,model:Object,rules:{type:pe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),YD={validate:(e,t,o)=>(Ye(e)||ft(e))&&Co(t)&&ft(o)};function GD(){const e=V([]),t=$(()=>{if(!e.value.length)return"0";const n=Math.max(...e.value);return n?`${n}px`:""});function o(n){const a=e.value.indexOf(n);return a===-1&&t.value,a}function r(n,a){if(n&&a){const i=o(a);e.value.splice(i,1,n)}else n&&e.value.push(n)}function l(n){const a=o(n);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:l}}const Wu=(e,t)=>{const o=Jn(t);return o.length>0?e.filter(r=>r.prop&&o.includes(r.prop)):e},XD=B({...B({name:"ElForm"}),props:qD,emits:YD,setup(e,{expose:t,emit:o}){const r=e,l=[],n=Eo(),a=Oe("form"),i=$(()=>{const{labelPosition:y,inline:w}=r;return[a.b(),a.m(n.value||"default"),{[a.m(`label-${y}`)]:y,[a.m("inline")]:w}]}),c=y=>{l.push(y)},u=y=>{y.prop&&l.splice(l.indexOf(y),1)},p=(y=[])=>{r.model&&Wu(l,y).forEach(w=>w.resetField())},d=(y=[])=>{Wu(l,y).forEach(w=>w.clearValidate())},f=$(()=>!!r.model),v=y=>{if(l.length===0)return[];const w=Wu(l,y);return w.length?w:[]},m=async y=>_(void 0,y),h=async(y=[])=>{if(!f.value)return!1;const w=v(y);if(w.length===0)return!0;let x={};for(const M of w)try{await M.validate("")}catch(T){x={...x,...T}}return Object.keys(x).length===0?!0:Promise.reject(x)},_=async(y=[],w)=>{const x=!ut(w);try{const M=await h(y);return M===!0&&(w==null||w(M)),M}catch(M){if(M instanceof Error)throw M;const T=M;return r.scrollToError&&g(Object.keys(T)[0]),w==null||w(!1,T),x&&Promise.reject(T)}},g=y=>{var w;const x=Wu(l,y)[0];x&&((w=x.$el)==null||w.scrollIntoView(r.scrollIntoViewOptions))};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(y=>void 0)},{deep:!0}),zt(ia,Ft({...Ao(r),emit:o,resetFields:p,clearValidate:d,validateField:_,addField:c,removeField:u,...GD()})),t({validate:m,validateField:_,resetFields:p,clearValidate:d,scrollToField:g}),(y,w)=>(b(),z("form",{class:P(s(i))},[be(y.$slots,"default")],2))}});var ZD=Fe(XD,[["__file","form.vue"]]);function JD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P_={exports:{}},$o=P_.exports={},fl,hl;function P0(){throw new Error("setTimeout has not been defined")}function B0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?fl=setTimeout:fl=P0}catch{fl=P0}try{typeof clearTimeout=="function"?hl=clearTimeout:hl=B0}catch{hl=B0}})();function B_(e){if(fl===setTimeout)return setTimeout(e,0);if((fl===P0||!fl)&&setTimeout)return fl=setTimeout,setTimeout(e,0);try{return fl(e,0)}catch{try{return fl.call(null,e,0)}catch{return fl.call(this,e,0)}}}function QD(e){if(hl===clearTimeout)return clearTimeout(e);if((hl===B0||!hl)&&clearTimeout)return hl=clearTimeout,clearTimeout(e);try{return hl(e)}catch{try{return hl.call(null,e)}catch{return hl.call(this,e)}}}var Dl=[],ni=!1,sa,Uu=-1;function ej(){!ni||!sa||(ni=!1,sa.length?Dl=sa.concat(Dl):Uu=-1,Dl.length&&N_())}function N_(){if(!ni){var e=B_(ej);ni=!0;for(var t=Dl.length;t;){for(sa=Dl,Dl=[];++Uu1)for(var o=1;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e,t,o){return nj()?qu=Reflect.construct.bind():qu=function(l,n,a){var i=[null];i.push.apply(i,n);var c=Function.bind.apply(l,i),u=new c;return a&&Rs(u,a.prototype),u},qu.apply(null,arguments)}function aj(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function L0(e){var t=typeof Map=="function"?new Map:void 0;return L0=function(r){if(r===null||!aj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,l)}function l(){return qu(r,arguments,N0(this).constructor)}return l.prototype=Object.create(r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Rs(l,r)},L0(e)}var ij=/%[sdj%]/g,sj=function(){};typeof oj<"u";function R0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var r=o.field;t[r]=t[r]||[],t[r].push(o)}),t}function _r(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r=n)return i;switch(i){case"%s":return String(o[l++]);case"%d":return Number(o[l++]);case"%j":try{return JSON.stringify(o[l++])}catch{return"[Circular]"}break;default:return i}});return a}return e}function cj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Oo(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||cj(t)&&typeof e=="string"&&!e)}function uj(e,t,o){var r=[],l=0,n=e.length;function a(i){r.push.apply(r,i||[]),l++,l===n&&o(r)}e.forEach(function(i){t(i,a)})}function R_(e,t,o){var r=0,l=e.length;function n(a){if(a&&a.length){o(a);return}var i=r;r=r+1,i")),Zv(G)}var wl,cp=new WeakMap,zo=function(){function G(){if(a(this,G),X(this,cp,{writable:!0,value:void 0}),!(typeof window>"u")){wl=this;for(var k=arguments.length,A=new Array(k),q=0;q1&&arguments[1]!==void 0?arguments[1]:{};if(Rce(Object.assign({},q,A)),W.currentInstance){var fe=Jl.swalPromiseResolve.get(W.currentInstance),je=W.currentInstance.isAwaitingPromise;W.currentInstance._destroy(),je||fe({isDismissed:!0}),Lt()&&Mi()}W.currentInstance=wl;var mt=Cue(A,q);xue(mt),Object.freeze(mt),W.timeout&&(W.timeout.stop(),delete W.timeout),clearTimeout(W.restoreFocusTimeout);var Ht=Sue(wl);return Ca(wl,mt),io.innerParams.set(wl,mt),kue(wl,Ht,mt)}},{key:"then",value:function(A){return D(this,cp).then(A)}},{key:"finally",value:function(A){return D(this,cp).finally(A)}}]),G}(),kue=function(k,A,q){return new Promise(function(fe,je){var mt=function(Kt){k.close({isDismissed:!0,dismiss:Kt})};Jl.swalPromiseResolve.set(k,fe),Jl.swalPromiseReject.set(k,je),A.confirmButton.onclick=function(){$ce(k)},A.denyButton.onclick=function(){Tce(k)},A.cancelButton.onclick=function(){zce(k,mt)},A.closeButton.onclick=function(){mt(ae.close)},Dce(q,A,mt),Ze(W,q,mt),bce(k,q),vue(q),Eue(W,q,mt),$ue(A,q),setTimeout(function(){A.container.scrollTop=0})})},Cue=function(k,A){var q=aue(k),fe=Object.assign({},Ii,A,q,k);return fe.showClass=Object.assign({},Ii.showClass,fe.showClass),fe.hideClass=Object.assign({},Ii.hideClass,fe.hideClass),fe.animation===!1&&(fe.showClass={backdrop:"swal2-noanimation"},fe.hideClass={}),fe},Sue=function(k){var A={popup:Pe(),container:Se(),actions:U(),confirmButton:Y(),denyButton:S(),cancelButton:C(),loader:ee(),closeButton:st(),validationMessage:gt(),progressSteps:dt()};return io.domCache.set(k,A),A},Eue=function(k,A,q){var fe=qe();ho(fe),A.timer&&(k.timeout=new nue(function(){q("timer"),delete k.timeout},A.timer),A.timerProgressBar&&(ao(fe),Gt(fe,A,"timerProgressBar"),setTimeout(function(){k.timeout&&k.timeout.running&&dc(A.timer)})))},$ue=function(k,A){if(!A.toast){if(!Ae(A.allowEnterKey)){zue();return}Tue(k,A)||yt(-1,1)}},Tue=function(k,A){return A.focusDeny&&or(k.denyButton)?(k.denyButton.focus(),!0):A.focusCancel&&or(k.cancelButton)?(k.cancelButton.focus(),!0):A.focusConfirm&&or(k.confirmButton)?(k.confirmButton.focus(),!0):!1},zue=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var sx=new Date,cx=localStorage.getItem("swal-initiation");cx?(sx.getTime()-Date.parse(cx))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var G=document.createElement("audio");G.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",G.loop=!0,document.body.appendChild(G),setTimeout(function(){G.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(sx))}zo.prototype.disableButtons=K8,zo.prototype.enableButtons=j8,zo.prototype.getInput=H8,zo.prototype.disableInput=U8,zo.prototype.enableInput=W8,zo.prototype.hideLoading=ip,zo.prototype.disableLoading=ip,zo.prototype.showValidationMessage=q8,zo.prototype.resetValidationMessage=Y8,zo.prototype.close=Pn,zo.prototype.closePopup=Pn,zo.prototype.closeModal=Pn,zo.prototype.closeToast=Pn,zo.prototype.rejectPromise=I8,zo.prototype.update=J8,zo.prototype._destroy=Q8,Object.assign(zo,lue),Object.keys(Fce).forEach(function(G){zo[G]=function(){if(wl&&wl[G]){var k;return(k=wl)[G].apply(k,arguments)}return null}}),zo.DismissReason=ae,zo.version="11.10.2";var up=zo;return up.default=up,up}),typeof xo<"u"&&xo.Sweetalert2&&(xo.swal=xo.sweetAlert=xo.Swal=xo.SweetAlert=xo.Sweetalert2),typeof document<"u"&&function(o,r){var l=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(l),l.styleSheet)l.styleSheet.disabled||(l.styleSheet.cssText=r);else try{l.innerHTML=r}catch{l.innerText=r}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})($1);var w7=$1.exports;const gr=Er(w7),y7=e=>{function t(){gr.close()}function o(E,I=null){return gr.fire({title:E,html:I,icon:"info",didOpen:()=>{gr.hideLoading()}})}function r(E,I=null){return gr.fire({title:E,html:I,icon:"warning",didOpen:()=>{gr.hideLoading()}})}function l(E,I=null){return gr.fire({title:E,html:I,icon:"error",didOpen:()=>{gr.hideLoading()}})}function n(E,I=null){return gr.fire({title:E,html:I,icon:"success",didOpen:()=>{gr.hideLoading()}})}function a(E,I=null){gr.fire({title:E,html:I,allowOutsideClick:!1,didOpen:()=>{gr.showLoading()}})}function i(){var E=document.createElement("div");E.className+="overlay",E.style.backgroundColor="#EFEFEF",E.style.position="fixed",E.style.width="100%",E.style.height="100%",E.style.zIndex="99999999999",E.style.top="0px",E.style.left="0px",E.style.opacity=".5",document.body.appendChild(E)}function c(){window.onbeforeunload=()=>"There is an ongoing process, please do not close the browser."}function u(){window.onbeforeunload=!1}function d(E,I){for(const O of I)E&&Object.prototype.hasOwnProperty.call(E,O)&&delete E[O];return E}const p=E=>JSON.parse(JSON.stringify(E));function f(E,I=[]){return d(p(E),["wallets","currencies","image","wsUrl","network","web3Domain"].filter(O=>!I.includes(O)))}function v(E){const I=document.querySelector(E),O=new FormData(I),F={};return O.forEach((K,R)=>{const D=R.split("[");let j=F;for(let Q=0;Q"u")return!1;let E=window.navigator;if(window.WebViewJavascriptBridge||window.webkit&&window.webkit.messageHandlers||E.userAgent.match(/WebView/i))return!0;const I=E.standalone,O=E.userAgent.toLowerCase(),F=/safari/.test(O);return/iphone|ipod|ipad/.test(O)?!I&&!F:O.includes("wv")}function _(){var E=new Date,I=E.getTime()+E.getTimezoneOffset()*6e4,O=new Date(I+36e5*0);return Math.floor(O.getTime()/1e3)}function g(E){return new Promise(I=>setTimeout(I,E))}function y(E,I){return parseFloat(parseFloat(E/(1-I/100)).toFixed(6))}function w(E){return e.lang.pleaseTryToConnectAgain.replace("{networkName}",E.name)}const x=(E,I)=>{if(e.debug)try{console[E](...I)}catch(O){console.error(O,I)}};return{Swal:gr,debug:{log:(...E)=>x("log",E),info:(...E)=>x("info",E),warn:(...E)=>x("warn",E),error:(...E)=>x("error",E)},sleep:g,clone:p,getUTCTime:_,isMobile:m,formToObj:v,isWebview:h,fromPercent:y,closePopup:t,infoPopup:o,errorPopup:l,warningPopup:r,successPopup:n,waitingPopup:a,disableScreen:i,ongoingProcess:c,ongoingProcessEnded:u,removeNoNeededParams:f,deletePropInObject:d,getWrongNetworkMsg:w}},x7='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',k7=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,T1=e=>Array.from(e.querySelectorAll(x7)).filter(t=>C7(t)&&k7(t)),C7=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},vu=function(e,t,...o){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const l=document.createEvent(r);return l.initEvent(t,...o),e.dispatchEvent(l),e},z1=e=>!e.getAttribute("aria-owns"),M1=(e,t,o)=>{const{parentNode:r}=e;if(!r)return null;const l=r.querySelectorAll(o),n=Array.prototype.indexOf.call(l,e);return l[n+t]||null},mu=e=>{e&&(e.focus(),!z1(e)&&e.click())},uo=(e,t,{checkForDefaultPrevented:o=!0}={})=>l=>{const n=e==null?void 0:e(l);if(o===!1||!n)return t==null?void 0:t(l)},A1=e=>t=>t.pointerType==="mouse"?e(t):void 0;var S7=Object.defineProperty,E7=Object.defineProperties,$7=Object.getOwnPropertyDescriptors,O1=Object.getOwnPropertySymbols,T7=Object.prototype.hasOwnProperty,z7=Object.prototype.propertyIsEnumerable,I1=(e,t,o)=>t in e?S7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,M7=(e,t)=>{for(var o in t||(t={}))T7.call(t,o)&&I1(e,o,t[o]);if(O1)for(var o of O1(t))z7.call(t,o)&&I1(e,o,t[o]);return e},A7=(e,t)=>E7(e,$7(t));function P1(e,t){var o;const r=Yt();return lr(()=>{r.value=e()},A7(M7({},t),{flush:(o=t==null?void 0:t.flush)!=null?o:"sync"})),Ma(r)}var B1;const Bt=typeof window<"u",O7=e=>typeof e<"u",I7=e=>typeof e=="function",P7=e=>typeof e=="string",Ka=()=>{},N1=Bt&&((B1=window==null?void 0:window.navigator)==null?void 0:B1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gn(e){return typeof e=="function"?e():s(e)}function L1(e,t){function o(...r){return new Promise((l,n)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(l).catch(n)})}return o}function B7(e,t={}){let o,r,l=Ka;const n=i=>{clearTimeout(i),l(),l=Ka};return i=>{const c=gn(e),u=gn(t.maxWait);return o&&n(o),c<=0||u!==void 0&&u<=0?(r&&(n(r),r=null),Promise.resolve(i())):new Promise((d,p)=>{l=t.rejectOnCancel?p:d,u&&!r&&(r=setTimeout(()=>{o&&n(o),r=null,d(i())},u)),o=setTimeout(()=>{r&&n(r),r=null,d(i())},c)})}}function N7(e,t=!0,o=!0,r=!1){let l=0,n,a=!0,i=Ka,c;const u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=Ka)};return p=>{const f=gn(e),v=Date.now()-l,m=()=>c=p();return u(),f<=0?(l=Date.now(),m()):(v>f&&(o||!a)?(l=Date.now(),m()):t&&(c=new Promise((h,_)=>{i=r?_:h,n=setTimeout(()=>{l=Date.now(),a=!0,h(m()),u()},Math.max(0,f-v))})),!o&&!n&&(n=setTimeout(()=>a=!0,f)),a=!1,c)}}function L7(e){return e}function is(e){return _p()?(wp(e),!0):!1}function R7(e,t=200,o={}){return L1(B7(t,o),e)}function V7(e,t=200,o={}){const r=V(e.value),l=R7(()=>{r.value=e.value},t,o);return Te(e,()=>l()),r}function R1(e,t=200,o=!1,r=!0,l=!1){return L1(N7(t,o,r,l),e)}function zf(e,t=!0){_t()?vt(e):t?e():et(e)}function qn(e,t,o={}){const{immediate:r=!0}=o,l=V(!1);let n=null;function a(){n&&(clearTimeout(n),n=null)}function i(){l.value=!1,a()}function c(...u){a(),l.value=!0,n=setTimeout(()=>{l.value=!1,n=null,e(...u)},gn(t))}return r&&(l.value=!0,Bt&&c()),is(i),{isPending:Ma(l),start:c,stop:i}}function ar(e){var t;const o=gn(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Yn=Bt?window:void 0,H7=Bt?window.document:void 0;function eo(...e){let t,o,r,l;if(P7(e[0])||Array.isArray(e[0])?([o,r,l]=e,t=Yn):[t,o,r,l]=e,!t)return Ka;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const n=[],a=()=>{n.forEach(d=>d()),n.length=0},i=(d,p,f,v)=>(d.addEventListener(p,f,v),()=>d.removeEventListener(p,f,v)),c=Te(()=>[ar(t),gn(l)],([d,p])=>{a(),d&&n.push(...o.flatMap(f=>r.map(v=>i(d,f,v,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return is(u),u}let V1=!1;function Mf(e,t,o={}){const{window:r=Yn,ignore:l=[],capture:n=!0,detectIframe:a=!1}=o;if(!r)return;N1&&!V1&&(V1=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Ka)));let i=!0;const c=f=>l.some(v=>{if(typeof v=="string")return Array.from(r.document.querySelectorAll(v)).some(m=>m===f.target||f.composedPath().includes(m));{const m=ar(v);return m&&(f.target===m||f.composedPath().includes(m))}}),d=[eo(r,"click",f=>{const v=ar(e);if(!(!v||v===f.target||f.composedPath().includes(v))){if(f.detail===0&&(i=!c(f)),!i){i=!0;return}t(f)}},{passive:!0,capture:n}),eo(r,"pointerdown",f=>{const v=ar(e);v&&(i=!f.composedPath().includes(v)&&!c(f))},{passive:!0}),a&&eo(r,"blur",f=>{var v;const m=ar(e);((v=r.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(f)})].filter(Boolean);return()=>d.forEach(f=>f())}function H1(e,t=!1){const o=V(),r=()=>o.value=!!e();return r(),zf(r,t),o}function F7(e){return JSON.parse(JSON.stringify(e))}const Af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof yl<"u"?yl:typeof self<"u"?self:{},Of="__vueuse_ssr_handlers__";Af[Of]=Af[Of]||{},Af[Of];function D7(e,t,{window:o=Yn,initialValue:r=""}={}){const l=V(r),n=T(()=>{var a;return ar(t)||((a=o==null?void 0:o.document)==null?void 0:a.documentElement)});return Te([n,()=>gn(e)],([a,i])=>{var c;if(a&&o){const u=(c=o.getComputedStyle(a).getPropertyValue(i))==null?void 0:c.trim();l.value=u||r}},{immediate:!0}),Te(l,a=>{var i;(i=n.value)!=null&&i.style&&n.value.style.setProperty(gn(e),a)}),l}function j7({document:e=H7}={}){if(!e)return V("visible");const t=V(e.visibilityState);return eo(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var F1=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,W7=Object.prototype.propertyIsEnumerable,U7=(e,t)=>{var o={};for(var r in e)K7.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&F1)for(var r of F1(e))t.indexOf(r)<0&&W7.call(e,r)&&(o[r]=e[r]);return o};function jo(e,t,o={}){const r=o,{window:l=Yn}=r,n=U7(r,["window"]);let a;const i=H1(()=>l&&"ResizeObserver"in l),c=()=>{a&&(a.disconnect(),a=void 0)},u=Te(()=>ar(e),p=>{c(),i.value&&l&&p&&(a=new ResizeObserver(t),a.observe(p,n))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return is(d),{isSupported:i,stop:d}}function D1(e,t={}){const{reset:o=!0,windowResize:r=!0,windowScroll:l=!0,immediate:n=!0}=t,a=V(0),i=V(0),c=V(0),u=V(0),d=V(0),p=V(0),f=V(0),v=V(0);function m(){const h=ar(e);if(!h){o&&(a.value=0,i.value=0,c.value=0,u.value=0,d.value=0,p.value=0,f.value=0,v.value=0);return}const _=h.getBoundingClientRect();a.value=_.height,i.value=_.bottom,c.value=_.left,u.value=_.right,d.value=_.top,p.value=_.width,f.value=_.x,v.value=_.y}return jo(e,m),Te(()=>ar(e),h=>!h&&m()),l&&eo("scroll",m,{capture:!0,passive:!0}),r&&eo("resize",m,{passive:!0}),zf(()=>{n&&m()}),{height:a,bottom:i,left:c,right:u,top:d,width:p,x:f,y:v,update:m}}var j1=Object.getOwnPropertySymbols,q7=Object.prototype.hasOwnProperty,Y7=Object.prototype.propertyIsEnumerable,G7=(e,t)=>{var o={};for(var r in e)q7.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(e!=null&&j1)for(var r of j1(e))t.indexOf(r)<0&&Y7.call(e,r)&&(o[r]=e[r]);return o};function X7(e,t,o={}){const r=o,{window:l=Yn}=r,n=G7(r,["window"]);let a;const i=H1(()=>l&&"MutationObserver"in l),c=()=>{a&&(a.disconnect(),a=void 0)},u=Te(()=>ar(e),p=>{c(),i.value&&l&&p&&(a=new MutationObserver(t),a.observe(p,n))},{immediate:!0}),d=()=>{c(),u()};return is(d),{isSupported:i,stop:d}}var K1;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(K1||(K1={}));var Z7=Object.defineProperty,W1=Object.getOwnPropertySymbols,J7=Object.prototype.hasOwnProperty,Q7=Object.prototype.propertyIsEnumerable,U1=(e,t,o)=>t in e?Z7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,eS=(e,t)=>{for(var o in t||(t={}))J7.call(t,o)&&U1(e,o,t[o]);if(W1)for(var o of W1(t))Q7.call(t,o)&&U1(e,o,t[o]);return e};eS({linear:L7},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function tS(e,t,o,r={}){var l,n,a;const{clone:i=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p}=r,f=_t(),v=o||(f==null?void 0:f.emit)||((l=f==null?void 0:f.$emit)==null?void 0:l.bind(f))||((a=(n=f==null?void 0:f.proxy)==null?void 0:n.$emit)==null?void 0:a.bind(f==null?void 0:f.proxy));let m=u;t||(t="modelValue"),m=u||m||`update:${t.toString()}`;const h=g=>i?I7(i)?i(g):F7(g):g,_=()=>O7(e[t])?h(e[t]):p;if(c){const g=_(),y=V(g);return Te(()=>e[t],w=>y.value=h(w)),Te(y,w=>{(w!==e[t]||d)&&v(m,w)},{deep:d}),y}else return T({get(){return _()},set(g){v(m,g)}})}function oS({window:e=Yn}={}){if(!e)return V(!1);const t=V(e.document.hasFocus());return eo(e,"blur",()=>{t.value=!1}),eo(e,"focus",()=>{t.value=!0}),t}function rS(e={}){const{window:t=Yn,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:l=!0,includeScrollbar:n=!0}=e,a=V(o),i=V(r),c=()=>{t&&(n?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return c(),zf(c),eo("resize",c,{passive:!0}),l&&eo("orientationchange",c,{passive:!0}),{width:a,height:i}}const q1=()=>Bt&&/firefox/i.test(window.navigator.userAgent),lS=(e,t)=>{if(!Bt||!e||!t)return!1;const o=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},o.topr.top&&o.right>r.left&&o.left{let t=0,o=e;for(;o;)t+=o.offsetTop,o=o.offsetParent;return t},nS=(e,t)=>Math.abs(Y1(e)-Y1(t)),If=e=>{let t,o;return e.type==="touchend"?(o=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(o=e.touches[0].clientY,t=e.touches[0].clientX):(o=e.clientY,t=e.clientX),{clientX:t,clientY:o}};var G1=typeof yl=="object"&&yl&&yl.Object===Object&&yl,aS=typeof self=="object"&&self&&self.Object===Object&&self,jr=G1||aS||Function("return this")(),$r=jr.Symbol,X1=Object.prototype,iS=X1.hasOwnProperty,sS=X1.toString,ss=$r?$r.toStringTag:void 0;function cS(e){var t=iS.call(e,ss),o=e[ss];try{e[ss]=void 0;var r=!0}catch{}var l=sS.call(e);return r&&(t?e[ss]=o:delete e[ss]),l}var uS=Object.prototype,dS=uS.toString;function pS(e){return dS.call(e)}var fS="[object Null]",hS="[object Undefined]",Z1=$r?$r.toStringTag:void 0;function Gn(e){return e==null?e===void 0?hS:fS:Z1&&Z1 in Object(e)?cS(e):pS(e)}function nl(e){return e!=null&&typeof e=="object"}var vS="[object Symbol]";function gu(e){return typeof e=="symbol"||nl(e)&&Gn(e)==vS}function J1(e,t){for(var o=-1,r=e==null?0:e.length,l=Array(r);++o0){if(++t>=qS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZS(e){return function(){return e}}var bu=function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),JS=bu?function(e,t){return bu(e,"toString",{configurable:!0,enumerable:!1,value:ZS(t),writable:!0})}:Bf,ib=XS(JS);function QS(e,t){for(var o=-1,r=e==null?0:e.length;++o-1}var lE=9007199254740991,nE=/^(?:0|[1-9]\d*)$/;function _u(e,t){var o=typeof e;return t=t??lE,!!t&&(o=="number"||o!="symbol"&&nE.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=sE}function Wa(e){return e!=null&&Ff(e.length)&&!Nf(e)}function cE(e,t,o){if(!Xo(o))return!1;var r=typeof t;return(r=="number"?Wa(o)&&_u(t,o.length):r=="string"&&t in o)?cs(o[t],e):!1}function uE(e){return db(function(t,o){var r=-1,l=o.length,n=l>1?o[l-1]:void 0,a=l>2?o[2]:void 0;for(n=e.length>3&&typeof n=="function"?(l--,n):void 0,a&&cE(o[0],o[1],a)&&(n=l<3?void 0:n,l=1),t=Object(t);++r-1}function w$(e,t){var o=this.__data__,r=wu(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function Ol(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t0&&o(i)?t>1?_s(i,t-1,o,r,l):Yf(l,i):r||(l[l.length]=i)}return l}function xb(e){var t=e==null?0:e.length;return t?_s(e,1):[]}function N$(e){return ib(ub(e,void 0,xb),e+"")}var L$=wb(Object.getPrototypeOf,Object);const Gf=L$;var R$="[object Object]",V$=Function.prototype,H$=Object.prototype,kb=V$.toString,F$=H$.hasOwnProperty,D$=kb.call(Object);function j$(e){if(!nl(e)||Gn(e)!=R$)return!1;var t=Gf(e);if(t===null)return!0;var o=F$.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&kb.call(o)==D$}function Qn(){if(!arguments.length)return[];var e=arguments[0];return Go(e)?e:[e]}function K$(){this.__data__=new Ol,this.size=0}function W$(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function U$(e){return this.__data__.get(e)}function q$(e){return this.__data__.has(e)}var Y$=200;function G$(e,t){var o=this.__data__;if(o instanceof Ol){var r=o.__data__;if(!gs||r.lengthi))return!1;var u=n.get(e),d=n.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,v=o&Sz?new xs:void 0;for(n.set(e,t),n.set(t,e);++p=t||I<0||p&&O>=n}function g(){var E=r0();if(_(E))return y(E);i=setTimeout(g,h(E))}function y(E){return i=void 0,f&&r?v(E):(r=l=void 0,a)}function w(){i!==void 0&&clearTimeout(i),u=0,r=c=l=i=void 0}function x(){return i===void 0?a:y(r0())}function M(){var E=r0(),I=_(E);if(r=arguments,l=this,c=E,I){if(i===void 0)return m(c);if(p)return clearTimeout(i),i=setTimeout(g,t),v(c)}return i===void 0&&(i=setTimeout(g,t)),a}return M.cancel=w,M.flush=x,M}function l0(e,t,o){(o!==void 0&&!cs(e[t],o)||o===void 0&&!(t in e))&&Vf(e,t,o)}function n3(e){return nl(e)&&Wa(e)}function n0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function hM(e){return us(e,vs(e))}function vM(e,t,o,r,l,n,a){var i=n0(e,o),c=n0(t,o),u=a.get(c);if(u){l0(e,o,u);return}var d=n?n(i,c,o+"",e,t,a):void 0,p=d===void 0;if(p){var f=Go(c),v=!f&&ps(c),m=!f&&!v&&Wf(c);d=c,f||v||m?Go(i)?d=i:n3(i)?d=ab(i):v?(p=!1,d=Tb(c,!0)):m?(p=!1,d=Hb(c,!0)):d=[]:j$(c)||ds(c)?(d=i,ds(i)?d=hM(i):(!Xo(i)||Nf(i))&&(d=Fb(c))):p=!1}p&&(a.set(c,d),l(d,c,r,n,a),a.delete(c)),l0(e,o,d)}function a3(e,t,o,r,l){e!==t&&l3(t,function(n,a){if(l||(l=new Kr),Xo(n))vM(e,t,a,o,a3,r,l);else{var i=r?r(n0(e,a),n,a+"",e,t,l):void 0;i===void 0&&(i=n),l0(e,a,i)}},vs)}function mM(e,t,o){for(var r=-1,l=e==null?0:e.length;++r=OM){var u=t?null:AM(e);if(u)return t0(u);a=!1,l=Yb,c=new xs}else c=t?[]:i;e:for(;++re===void 0,Co=e=>typeof e=="boolean",ct=e=>typeof e=="number",Tr=e=>!e&&e!==0||Ge(e)&&e.length===0||Ct(e)&&!Object.keys(e).length,zr=e=>typeof Element>"u"?!1:e instanceof Element,PM=e=>wo(e),BM=e=>ft(e)?!Number.isNaN(Number(e)):!1,u3=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),al=e=>Li(e),ks=e=>Object.keys(e),NM=e=>Object.entries(e),zu=(e,t,o)=>({get value(){return oo(e,t,o)},set value(r){TM(e,t,r)}});class LM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function So(e,t){throw new LM(`[${e}] ${t}`)}function Xue(e,t){}const d3=(e="")=>e.split(" ").filter(t=>!!t.trim()),Wr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},il=(e,t)=>{!e||!t.trim()||e.classList.add(...d3(t))},sr=(e,t)=>{!e||!t.trim()||e.classList.remove(...d3(t))},bn=(e,t)=>{var o;if(!Bt||!e||!t)return"";let r=yr(t);r==="float"&&(r="cssFloat");try{const l=e.style[r];if(l)return l;const n=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return n?n[r]:""}catch{return e.style[r]}};function bo(e,t="px"){if(!e)return"";if(ct(e)||BM(e))return`${e}${t}`;if(ft(e))return e}const RM=(e,t)=>{if(!Bt)return!1;const o={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=bn(e,o);return["scroll","auto","overlay"].some(l=>r.includes(l))},i0=(e,t)=>{if(!Bt)return;let o=e;for(;o;){if([window,document,document.documentElement].includes(o))return window;if(RM(o,t))return o;o=o.parentNode}return o};let Mu;const p3=e=>{var t;if(!Bt)return 0;if(Mu!==void 0)return Mu;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",o.appendChild(l);const n=l.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),Mu=r-n,Mu};function f3(e,t){if(!Bt)return;if(!t){e.scrollTop=0;return}const o=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)o.push(r),r=r.offsetParent;const l=t.offsetTop+o.reduce((c,u)=>c+u.offsetTop,0),n=l+t.offsetHeight,a=e.scrollTop,i=a+e.clientHeight;li&&(e.scrollTop=n-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var VM=B({name:"AddLocation",__name:"add-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),$("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),$("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),HM=VM,FM=B({name:"Aim",__name:"aim",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),DM=FM,jM=B({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),$("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),KM=jM,WM=B({name:"Apple",__name:"apple",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M599.872 203.776a189.44 189.44 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a426.624 426.624 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664zm-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688 63.552 0 81.28 34.688 136.96 33.536 56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152z"})]))}}),UM=WM,qM=B({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"})]))}}),YM=qM,GM=B({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Bl=GM,XM=B({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),ZM=XM,JM=B({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Nl=JM,QM=B({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),eA=QM,tA=B({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ko=tA,oA=B({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"})]))}}),rA=oA,lA=B({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Cs=lA,nA=B({name:"Avatar",__name:"avatar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),aA=nA,iA=B({name:"Back",__name:"back",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),$("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),h3=iA,sA=B({name:"Baseball",__name:"baseball",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6zm45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),$("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896zM108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1736.64 1736.64 0 0 1-11.392-65.728z"})]))}}),cA=sA,uA=B({name:"Basketball",__name:"basketball",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M778.752 788.224a382.464 382.464 0 0 0 116.032-245.632 256.512 256.512 0 0 0-241.728-13.952 762.88 762.88 0 0 1 125.696 259.584zm-55.04 44.224a699.648 699.648 0 0 0-125.056-269.632 256.128 256.128 0 0 0-56.064 331.968 382.72 382.72 0 0 0 181.12-62.336m-254.08 61.248A320.128 320.128 0 0 1 557.76 513.6a715.84 715.84 0 0 0-48.192-48.128 320.128 320.128 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.128 256.128 0 0 0 331.072-56.448 699.648 699.648 0 0 0-268.8-124.352 382.656 382.656 0 0 0-62.272 180.8m106.56-235.84a762.88 762.88 0 0 1 258.688 125.056 256.512 256.512 0 0 0-13.44-241.088A382.464 382.464 0 0 0 235.84 245.248zm318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a779.84 779.84 0 0 1 66.176 66.112 320.832 320.832 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),dA=uA,pA=B({name:"BellFilled",__name:"bell-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),fA=pA,hA=B({name:"Bell",__name:"bell",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),$("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),$("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),vA=hA,mA=B({name:"Bicycle",__name:"bicycle",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),$("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),$("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),$("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),$("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),gA=mA,bA=B({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),$("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312l-544 544z"})]))}}),_A=bA,wA=B({name:"BottomRight",__name:"bottom-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),$("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),yA=wA,xA=B({name:"Bottom",__name:"bottom",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),kA=xA,CA=B({name:"Bowl",__name:"bowl",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M714.432 704a351.744 351.744 0 0 0 148.16-256H161.408a351.744 351.744 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),SA=CA,EA=B({name:"Box",__name:"box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64z"}),$("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),$("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),$A=EA,TA=B({name:"Briefcase",__name:"briefcase",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),zA=TA,MA=B({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),AA=MA,OA=B({name:"Brush",__name:"brush",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a663.872 663.872 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384h61.248zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168z"})]))}}),IA=OA,PA=B({name:"Burger",__name:"burger",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),BA=PA,NA=B({name:"Calendar",__name:"calendar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),v3=NA,LA=B({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),RA=LA,VA=B({name:"Camera",__name:"camera",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),HA=VA,FA=B({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),DA=FA,jA=B({name:"CaretLeft",__name:"caret-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),KA=jA,WA=B({name:"CaretRight",__name:"caret-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),s0=WA,UA=B({name:"CaretTop",__name:"caret-top",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),m3=UA,qA=B({name:"Cellphone",__name:"cellphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),YA=qA,GA=B({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),$("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),XA=GA,ZA=B({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),$("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4zm-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4z"})]))}}),JA=ZA,QA=B({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.056 461.056 0 0 1-206.912-48.384l-175.616 58.56z"}),$("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),eO=QA,tO=B({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),$("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),oO=tO,rO=B({name:"ChatRound",__name:"chat-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),lO=rO,nO=B({name:"ChatSquare",__name:"chat-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),aO=nO,iO=B({name:"Check",__name:"check",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Ya=iO,sO=B({name:"Checked",__name:"checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),cO=sO,uO=B({name:"Cherry",__name:"cherry",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6zM288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),dO=uO,pO=B({name:"Chicken",__name:"chicken",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.688 106.688 0 0 1-26.176-19.072 106.688 106.688 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112zm57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52-3.52 56.32z"})]))}}),fO=pO,hO=B({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.372 212.372 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67z"}),$("path",{fill:"currentColor",d:"M576.79 401.63a127.92 127.92 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128.005 128.005 0 0 0-2.16 127.44l1.24 2.13a127.906 127.906 0 0 0 46.36 46.61 127.907 127.907 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.984 127.984 0 0 0 .29-127.46 127.957 127.957 0 0 0-46.36-46.91"}),$("path",{fill:"currentColor",d:"M394.45 333.96A213.336 213.336 0 0 1 512 298.67h369.58A426.503 426.503 0 0 0 512 85.34a425.598 425.598 0 0 0-171.74 35.98 425.644 425.644 0 0 0-142.62 102.22l118.14 204.63a213.397 213.397 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.284 213.284 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.315 213.315 0 0 1-122.77-21.91z"})]))}}),vO=hO,mO=B({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),g3=mO,gO=B({name:"CircleCheck",__name:"circle-check",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Au=gO,bO=B({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Ou=bO,_O=B({name:"CircleClose",__name:"circle-close",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Ll=_O,wO=B({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0v147.2z"})]))}}),yO=wO,xO=B({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),$("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),kO=xO,CO=B({name:"Clock",__name:"clock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),c0=CO,SO=B({name:"CloseBold",__name:"close-bold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"})]))}}),EO=SO,$O=B({name:"Close",__name:"close",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Mr=$O,TO=B({name:"Cloudy",__name:"cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),zO=TO,MO=B({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),AO=MO,OO=B({name:"Coffee",__name:"coffee",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),IO=OO,PO=B({name:"Coin",__name:"coin",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264z"}),$("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264z"}),$("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),BO=PO,NO=B({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.064 192.064 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),LO=NO,RO=B({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),VO=RO,HO=B({name:"Collection",__name:"collection",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),$("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),FO=HO,DO=B({name:"Comment",__name:"comment",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),jO=DO,KO=B({name:"Compass",__name:"compass",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),WO=KO,UO=B({name:"Connection",__name:"connection",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),$("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.064 192.064 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),qO=UO,YO=B({name:"Coordinate",__name:"coordinate",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),$("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),GO=YO,XO=B({name:"CopyDocument",__name:"copy-document",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),$("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),ZO=XO,JO=B({name:"Cpu",__name:"cpu",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),$("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),QO=JO,eI=B({name:"CreditCard",__name:"credit-card",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.352 52.352 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.352 52.352 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.352 52.352 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.352 52.352 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448-20.864 11.136-41.6 17.088-98.56 17.088H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.288 116.288 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448 20.864-11.136 41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384 11.136 20.864 17.088 41.6 17.088 98.56z"}),$("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),tI=eI,oI=B({name:"Crop",__name:"crop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),$("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),rI=oI,lI=B({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),oa=lI,nI=B({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),ra=nI,aI=B({name:"DCaret",__name:"d-caret",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),iI=aI,sI=B({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),cI=sI,uI=B({name:"DataBoard",__name:"data-board",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),$("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),$("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),dI=uI,pI=B({name:"DataLine",__name:"data-line",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),fI=pI,hI=B({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),vI=hI,mI=B({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),$("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),$("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),gI=mI,bI=B({name:"Delete",__name:"delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),b3=bI,_I=B({name:"Dessert",__name:"dessert",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.808 143.808 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.808 143.808 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0h140.48m339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),wI=_I,yI=B({name:"Discount",__name:"discount",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),$("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),xI=yI,kI=B({name:"DishDot",__name:"dish-dot",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.192 448.192 0 0 1 955.392 768H68.544A448.192 448.192 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),CI=kI,SI=B({name:"Dish",__name:"dish",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),EI=SI,$I=B({name:"DocumentAdd",__name:"document-add",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),TI=$I,zI=B({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),MI=zI,AI=B({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),OI=AI,II=B({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),PI=II,BI=B({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),NI=BI,LI=B({name:"Document",__name:"document",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),_3=LI,RI=B({name:"Download",__name:"download",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),VI=RI,HI=B({name:"Drizzling",__name:"drizzling",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),FI=HI,DI=B({name:"EditPen",__name:"edit-pen",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),jI=DI,KI=B({name:"Edit",__name:"edit",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),$("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),WI=KI,UI=B({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.688 330.688 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.552 47.552 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.304 234.304 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.552 47.552 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),qI=UI,YI=B({name:"Eleme",__name:"eleme",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24zm526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.232 63.232 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8l71.04-46.08z"})]))}}),GI=YI,XI=B({name:"ElementPlus",__name:"element-plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6c12.8-5.1 25.6-5.1 38.4 0 0 0 279 161.3 309.8 179.2 17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4l220.1-128zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64l-2.5-38.4z"})]))}}),ZI=XI,JI=B({name:"Expand",__name:"expand",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),QI=JI,eP=B({name:"Failed",__name:"failed",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),tP=eP,oP=B({name:"Female",__name:"female",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),$("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),$("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),rP=oP,lP=B({name:"Files",__name:"files",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),nP=lP,aP=B({name:"Film",__name:"film",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),iP=aP,sP=B({name:"Filter",__name:"filter",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),cP=sP,uP=B({name:"Finished",__name:"finished",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),dP=uP,pP=B({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),$("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),fP=pP,hP=B({name:"Flag",__name:"flag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),vP=hP,mP=B({name:"Fold",__name:"fold",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),gP=mP,bP=B({name:"FolderAdd",__name:"folder-add",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),_P=bP,wP=B({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),yP=wP,xP=B({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),kP=xP,CP=B({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),SP=CP,EP=B({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),$P=EP,TP=B({name:"Folder",__name:"folder",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),zP=TP,MP=B({name:"Food",__name:"food",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),AP=MP,OP=B({name:"Football",__name:"football",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),$("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a385.984 385.984 0 0 1-80.448-91.648zm653.696-5.312a385.92 385.92 0 0 1-83.776 96.96l-32.512-56.384a322.923 322.923 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184zM465.984 445.248l11.136-63.104a323.584 323.584 0 0 0 69.76 0l11.136 63.104a387.968 387.968 0 0 1-92.032 0m-62.72-12.8A381.824 381.824 0 0 1 320 396.544l32-55.424a319.885 319.885 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.824 381.824 0 0 1-83.328 35.84l-11.2-63.552A319.885 319.885 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.92 385.92 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072zm657.536.128a1442.759 1442.759 0 0 1-49.024 43.072 321.408 321.408 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408zM465.92 578.752a387.968 387.968 0 0 1 92.032 0l-11.136 63.104a323.584 323.584 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a319.885 319.885 0 0 0-62.464 27.712L320 627.392a381.824 381.824 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.272 318.272 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),IP=OP,PP=B({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56zM672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),BP=PP,NP=B({name:"Fries",__name:"fries",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.744 95.744 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128.128 128.128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132.405 132.405 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),LP=NP,RP=B({name:"FullScreen",__name:"full-screen",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),w3=RP,VP=B({name:"GobletFull",__name:"goblet-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0zM544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),HP=VP,FP=B({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256v142.912zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952.32 952.32 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),DP=FP,jP=B({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),KP=jP,WP=B({name:"Goblet",__name:"goblet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),UP=WP,qP=B({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16zM640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128h.01zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a359.844 359.844 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98z"}),$("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),YP=qP,GP=B({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),XP=GP,ZP=B({name:"Goods",__name:"goods",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),JP=ZP,QP=B({name:"Grape",__name:"grape",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),eB=QP,tB=B({name:"Grid",__name:"grid",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),oB=tB,rB=B({name:"Guide",__name:"guide",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),$("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),lB=rB,nB=B({name:"Handbag",__name:"handbag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),aB=nB,iB=B({name:"Headset",__name:"headset",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),sB=iB,cB=B({name:"HelpFilled",__name:"help-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M926.784 480H701.312A192.512 192.512 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.512 192.512 0 0 0 701.312 544zM97.28 544h225.472A192.512 192.512 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.512 192.512 0 0 0 322.688 480H97.216z"})]))}}),uB=cB,dB=B({name:"Help",__name:"help",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),pB=dB,fB=B({name:"Hide",__name:"hide",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),$("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),y3=fB,hB=B({name:"Histogram",__name:"histogram",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),vB=hB,mB=B({name:"HomeFilled",__name:"home-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),gB=mB,bB=B({name:"HotWater",__name:"hot-water",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2H273.067zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134zM512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133zM375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267z"})]))}}),_B=bB,wB=B({name:"House",__name:"house",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),yB=wB,xB=B({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0z"})]))}}),kB=xB,CB=B({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),SB=CB,EB=B({name:"IceCream",__name:"ice-cream",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.128 208.128 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0zm351.36 0h286.272a144 144 0 0 0-286.272 0zm-294.848 64 271.808 396.608L778.24 512H249.408zM511.68 352.64a207.872 207.872 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),$B=EB,TB=B({name:"IceDrink",__name:"ice-drink",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.128 256.128 0 0 0 512 192.64m-64 8.064A256.448 256.448 0 0 0 264.256 384H448zm64-72.064A320.128 320.128 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.384 320.384 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),zB=TB,MB=B({name:"IceTea",__name:"ice-tea",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),AB=MB,OB=B({name:"InfoFilled",__name:"info-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Iu=OB,IB=B({name:"Iphone",__name:"iphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),PB=IB,BB=B({name:"Key",__name:"key",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),NB=BB,LB=B({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256 21.312 81.152 32 177.152 32 288z"})]))}}),RB=LB,VB=B({name:"Lightning",__name:"lightning",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 671.36v64.128A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),$("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),HB=VB,FB=B({name:"Link",__name:"link",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),DB=FB,jB=B({name:"List",__name:"list",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),KB=jB,WB=B({name:"Loading",__name:"loading",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Rl=WB,UB=B({name:"LocationFilled",__name:"location-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),qB=UB,YB=B({name:"LocationInformation",__name:"location-information",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),$("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),$("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),GB=YB,XB=B({name:"Location",__name:"location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),$("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),ZB=XB,JB=B({name:"Lock",__name:"lock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),$("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),QB=JB,eN=B({name:"Lollipop",__name:"lollipop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),tN=eN,oN=B({name:"MagicStick",__name:"magic-stick",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),rN=oN,lN=B({name:"Magnet",__name:"magnet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),nN=lN,aN=B({name:"Male",__name:"male",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),$("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),$("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),iN=aN,sN=B({name:"Management",__name:"management",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),cN=sN,uN=B({name:"MapLocation",__name:"map-location",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),$("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),dN=uN,pN=B({name:"Medal",__name:"medal",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),$("path",{fill:"currentColor",d:"M576 128H448v200a286.72 286.72 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92V128zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96-56.896 0-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),fN=pN,hN=B({name:"Memo",__name:"memo",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),$("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),$("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),vN=hN,mN=B({name:"Menu",__name:"menu",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),gN=mN,bN=B({name:"MessageBox",__name:"message-box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128z"})]))}}),_N=bN,wN=B({name:"Message",__name:"message",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),$("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),yN=wN,xN=B({name:"Mic",__name:"mic",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),kN=xN,CN=B({name:"Microphone",__name:"microphone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),SN=CN,EN=B({name:"MilkTea",__name:"milk-tea",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),$N=EN,TN=B({name:"Minus",__name:"minus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),x3=TN,zN=B({name:"Money",__name:"money",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),$("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),$("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),MN=zN,AN=B({name:"Monitor",__name:"monitor",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),ON=AN,IN=B({name:"MoonNight",__name:"moon-night",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.256 448.256 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),$("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),PN=IN,BN=B({name:"Moon",__name:"moon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),NN=BN,LN=B({name:"MoreFilled",__name:"more-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),u0=LN,RN=B({name:"More",__name:"more",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),k3=RN,VN=B({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.808 207.808 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.808 271.808 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),HN=VN,FN=B({name:"Mouse",__name:"mouse",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112-20.096 10.752-35.52 26.176-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76 10.752 20.096 26.176 35.52 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112 20.096-10.752 35.52-26.176 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.464 110.464 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.464 174.464 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.464 174.464 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.464 174.464 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),$("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),DN=FN,jN=B({name:"Mug",__name:"mug",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),KN=jN,WN=B({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.128 320.128 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.552 319.552 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),$("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),UN=WN,qN=B({name:"Mute",__name:"mute",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.232 191.232 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A222.976 222.976 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.976 286.976 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),$("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056l-704 708.544z"})]))}}),YN=qN,GN=B({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),XN=GN,ZN=B({name:"Notebook",__name:"notebook",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),JN=ZN,QN=B({name:"Notification",__name:"notification",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),$("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),eL=QN,tL=B({name:"Odometer",__name:"odometer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),$("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),oL=tL,rL=B({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),$("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),lL=rL,nL=B({name:"Open",__name:"open",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),$("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),aL=nL,iL=B({name:"Operation",__name:"operation",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),sL=iL,cL=B({name:"Opportunity",__name:"opportunity",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.656 350.656 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.552 351.552 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),uL=cL,dL=B({name:"Orange",__name:"orange",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 894.72a382.336 382.336 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.336 382.336 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024l182.976 182.912zM894.656 480a382.336 382.336 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024h258.688zm-134.72-261.248A382.336 382.336 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.336 382.336 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.336 382.336 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.336 382.336 0 0 0 89.408 215.936l182.976-182.912A127.232 127.232 0 0 1 388.032 544zm134.72 261.248A382.336 382.336 0 0 0 480 894.656V635.968a127.232 127.232 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),pL=dL,fL=B({name:"Paperclip",__name:"paperclip",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"})]))}}),hL=fL,vL=B({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),$("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6003.84 6003.84 0 0 0-49.28 41.408z"})]))}}),mL=vL,gL=B({name:"Pear",__name:"pear",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M542.336 258.816a443.255 443.255 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.688 162.688 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.688 162.688 0 0 0-130.112-133.12zm-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a316.608 316.608 0 0 0-9.792 15.104 226.688 226.688 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),bL=gL,_L=B({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048z"})]))}}),wL=_L,yL=B({name:"Phone",__name:"phone",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472L139.84 402.304zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),xL=yL,kL=B({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),C3=kL,CL=B({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),$("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64q-64 0-64-64t64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),SL=CL,EL=B({name:"Picture",__name:"picture",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64q-64 0-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),$L=EL,TL=B({name:"PieChart",__name:"pie-chart",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.128 384.128 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.128 448.128 0 0 1 448 68.48z"}),$("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28zM512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),zL=TL,ML=B({name:"Place",__name:"place",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),$("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),AL=ML,OL=B({name:"Platform",__name:"platform",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),IL=OL,PL=B({name:"Plus",__name:"plus",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),d0=PL,BL=B({name:"Pointer",__name:"pointer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.272 94.272 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.272 158.272 0 0 1 185.984 8.32z"})]))}}),NL=BL,LL=B({name:"Position",__name:"position",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"})]))}}),RL=LL,VL=B({name:"Postcard",__name:"postcard",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),$("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),HL=VL,FL=B({name:"Pouring",__name:"pouring",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672zM959.552 480a256 256 0 0 1-256 256h-400A239.808 239.808 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),DL=FL,jL=B({name:"Present",__name:"present",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),$("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),$("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),$("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),KL=jL,WL=B({name:"PriceTag",__name:"price-tag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),$("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),UL=WL,qL=B({name:"Printer",__name:"printer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.296 23.296 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.296 23.296 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),YL=qL,GL=B({name:"Promotion",__name:"promotion",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),XL=GL,ZL=B({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51-8.67.32-16.17 3.66-22.5 10.02-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5c3.01-11.65.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01-.32-8.67-3.66-16.16-10.02-22.5-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01 3.35 11.99 10.85 19.49 22.5 22.5zm242.94 0c11.67-3.03 19.01-10.37 22.02-22.02 3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5c-6.36 6.34-9.7 13.84-10.02 22.5-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),$("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),$("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01 0 9.35 3 17.02 8.99 23.01 6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01 0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),JL=ZL,QL=B({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),S3=QL,eR=B({name:"Rank",__name:"rank",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544H186.496z"})]))}}),tR=eR,oR=B({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),$("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),rR=oR,lR=B({name:"Reading",__name:"reading",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36z"}),$("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),nR=lR,aR=B({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),E3=aR,iR=B({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),$3=iR,sR=B({name:"Refresh",__name:"refresh",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),cR=sR,uR=B({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),dR=uR,pR=B({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),fR=pR,hR=B({name:"Remove",__name:"remove",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),vR=hR,mR=B({name:"Right",__name:"right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),gR=mR,bR=B({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),T3=bR,_R=B({name:"School",__name:"school",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),$("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),wR=_R,yR=B({name:"Scissor",__name:"scissor",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),xR=yR,kR=B({name:"Search",__name:"search",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),z3=kR,CR=B({name:"Select",__name:"select",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496z"})]))}}),SR=CR,ER=B({name:"Sell",__name:"sell",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248z"})]))}}),$R=ER,TR=B({name:"SemiSelect",__name:"semi-select",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),zR=TR,MR=B({name:"Service",__name:"service",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),AR=MR,OR=B({name:"SetUp",__name:"set-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),$("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),$("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),$("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),IR=OR,PR=B({name:"Setting",__name:"setting",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),BR=PR,NR=B({name:"Share",__name:"share",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),LR=NR,RR=B({name:"Ship",__name:"ship",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2H185.408"})]))}}),VR=RR,HR=B({name:"Shop",__name:"shop",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),FR=HR,DR=B({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),$("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),jR=DR,KR=B({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"}),$("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256h183.296zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648l179.2-215.04"})]))}}),WR=KR,UR=B({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44l76.8 384z"})]))}}),qR=UR,YR=B({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),GR=YR,XR=B({name:"Smoking",__name:"smoking",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),ZR=XR,JR=B({name:"Soccer",__name:"soccer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.056 573.056 0 0 0 224.832-137.216 573.12 573.12 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.68 567.68 0 0 0 170.432 532.48l320.384 320.384zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944-199.936 199.936-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248l45.248 45.248z"})]))}}),QR=JR,eV=B({name:"SoldOut",__name:"sold-out",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128c-70.272 0-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),tV=eV,oV=B({name:"SortDown",__name:"sort-down",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),M3=oV,rV=B({name:"SortUp",__name:"sort-up",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),A3=rV,lV=B({name:"Sort",__name:"sort",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0V141.248z"})]))}}),nV=lV,aV=B({name:"Stamp",__name:"stamp",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),iV=aV,sV=B({name:"StarFilled",__name:"star-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Ss=sV,cV=B({name:"Star",__name:"star",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),O3=cV,uV=B({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),$("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),dV=uV,pV=B({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),p0=pV,fV=B({name:"Sugar",__name:"sugar",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16l-109.248 19.2zm-548.8 198.72h447.168v2.24l60.8-60.8a63.808 63.808 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64.064 64.064 0 0 0-10.24 13.248zm0 64c2.752 4.736 6.144 9.152 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632l-137.6 24.256zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),hV=fV,vV=B({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5C77.16 253.82 64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),mV=vV,gV=B({name:"Suitcase",__name:"suitcase",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),$("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),bV=gV,_V=B({name:"Sunny",__name:"sunny",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),wV=_V,yV=B({name:"Sunrise",__name:"sunrise",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0h-64.32zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0zm-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),xV=yV,kV=B({name:"Sunset",__name:"sunset",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),CV=kV,SV=B({name:"SwitchButton",__name:"switch-button",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),$("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),EV=SV,$V=B({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36z"}),$("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.655 196.655 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.67 196.67 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42zm-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.695 131.695 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.655 196.655 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.69 196.69 0 0 0 139.08-57.61A196.655 196.655 0 0 0 896 699.31V325.29a196.69 196.69 0 0 0-57.61-139.08zm-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82z"})]))}}),TV=$V,zV=B({name:"Switch",__name:"switch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344zM64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),MV=zV,AV=B({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),OV=AV,IV=B({name:"Ticket",__name:"ticket",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),PV=IV,BV=B({name:"Tickets",__name:"tickets",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),NV=BV,LV=B({name:"Timer",__name:"timer",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),$("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),RV=LV,VV=B({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),$("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),HV=VV,FV=B({name:"Tools",__name:"tools",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),DV=FV,jV=B({name:"TopLeft",__name:"top-left",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),$("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312l-544-544z"})]))}}),KV=jV,WV=B({name:"TopRight",__name:"top-right",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),$("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312l544-544z"})]))}}),UV=WV,qV=B({name:"Top",__name:"top",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),YV=qV,GV=B({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624 139.84-156.608zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),XV=GV,ZV=B({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4C752 67.2 745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6C259.2 80 256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 16-9.6 22.4 3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4zM256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6C342.4 480 320 438.4 320 384V128h384v256c0 54.4-19.2 99.2-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2zM768 896H256c-9.6 0-16 3.2-22.4 9.6-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4c6.4 6.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6 6.4-6.4 9.6-12.8 9.6-22.4s-3.2-16-9.6-22.4c-6.4-6.4-12.8-9.6-22.4-9.6"})]))}}),JV=ZV,QV=B({name:"Trophy",__name:"trophy",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M480 896V702.08A256.256 256.256 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.256 256.256 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),eH=QV,tH=B({name:"TurnOff",__name:"turn-off",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36z"}),$("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),oH=tH,rH=B({name:"Umbrella",__name:"umbrella",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),lH=rH,nH=B({name:"Unlock",__name:"unlock",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),$("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),aH=nH,iH=B({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),sH=iH,cH=B({name:"Upload",__name:"upload",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),uH=cH,dH=B({name:"UserFilled",__name:"user-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),pH=dH,fH=B({name:"User",__name:"user",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),hH=fH,vH=B({name:"Van",__name:"van",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96h151.872M688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),mH=vH,gH=B({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),bH=gH,_H=B({name:"VideoCamera",__name:"video-camera",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),wH=_H,yH=B({name:"VideoPause",__name:"video-pause",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),xH=yH,kH=B({name:"VideoPlay",__name:"video-play",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),CH=kH,SH=B({name:"View",__name:"view",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),I3=SH,EH=B({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),$H=EH,TH=B({name:"Wallet",__name:"wallet",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),$("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),zH=TH,MH=B({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),AH=MH,OH=B({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Es=OH,IH=B({name:"Warning",__name:"warning",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),PH=IH,BH=B({name:"Watch",__name:"watch",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),$("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),$("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),NH=BH,LH=B({name:"Watermelon",__name:"watermelon",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632l632 632"})]))}}),RH=LH,VH=B({name:"WindPower",__name:"wind-power",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),HH=VH,FH=B({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),f0=FH,DH=B({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,o)=>(b(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[$("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),P3=DH;const jH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:HM,Aim:DM,AlarmClock:KM,Apple:UM,ArrowDown:Bl,ArrowDownBold:YM,ArrowLeft:Nl,ArrowLeftBold:ZM,ArrowRight:Ko,ArrowRightBold:eA,ArrowUp:Cs,ArrowUpBold:rA,Avatar:aA,Back:h3,Baseball:cA,Basketball:dA,Bell:vA,BellFilled:fA,Bicycle:gA,Bottom:kA,BottomLeft:_A,BottomRight:yA,Bowl:SA,Box:$A,Briefcase:zA,Brush:IA,BrushFilled:AA,Burger:BA,Calendar:v3,Camera:HA,CameraFilled:RA,CaretBottom:DA,CaretLeft:KA,CaretRight:s0,CaretTop:m3,Cellphone:YA,ChatDotRound:XA,ChatDotSquare:JA,ChatLineRound:eO,ChatLineSquare:oO,ChatRound:lO,ChatSquare:aO,Check:Ya,Checked:cO,Cherry:dO,Chicken:fO,ChromeFilled:vO,CircleCheck:Au,CircleCheckFilled:g3,CircleClose:Ll,CircleCloseFilled:Ou,CirclePlus:kO,CirclePlusFilled:yO,Clock:c0,Close:Mr,CloseBold:EO,Cloudy:zO,Coffee:IO,CoffeeCup:AO,Coin:BO,ColdDrink:LO,Collection:FO,CollectionTag:VO,Comment:jO,Compass:WO,Connection:qO,Coordinate:GO,CopyDocument:ZO,Cpu:QO,CreditCard:tI,Crop:rI,DArrowLeft:oa,DArrowRight:ra,DCaret:iI,DataAnalysis:cI,DataBoard:dI,DataLine:fI,Delete:b3,DeleteFilled:vI,DeleteLocation:gI,Dessert:wI,Discount:xI,Dish:EI,DishDot:CI,Document:_3,DocumentAdd:TI,DocumentChecked:MI,DocumentCopy:OI,DocumentDelete:PI,DocumentRemove:NI,Download:VI,Drizzling:FI,Edit:WI,EditPen:jI,Eleme:GI,ElemeFilled:qI,ElementPlus:ZI,Expand:QI,Failed:tP,Female:rP,Files:nP,Film:iP,Filter:cP,Finished:dP,FirstAidKit:fP,Flag:vP,Fold:gP,Folder:zP,FolderAdd:_P,FolderChecked:yP,FolderDelete:kP,FolderOpened:SP,FolderRemove:$P,Food:AP,Football:IP,ForkSpoon:BP,Fries:LP,FullScreen:w3,Goblet:UP,GobletFull:HP,GobletSquare:KP,GobletSquareFull:DP,GoldMedal:YP,Goods:JP,GoodsFilled:XP,Grape:eB,Grid:oB,Guide:lB,Handbag:aB,Headset:sB,Help:pB,HelpFilled:uB,Hide:y3,Histogram:vB,HomeFilled:gB,HotWater:_B,House:yB,IceCream:$B,IceCreamRound:kB,IceCreamSquare:SB,IceDrink:zB,IceTea:AB,InfoFilled:Iu,Iphone:PB,Key:NB,KnifeFork:RB,Lightning:HB,Link:DB,List:KB,Loading:Rl,Location:ZB,LocationFilled:qB,LocationInformation:GB,Lock:QB,Lollipop:tN,MagicStick:rN,Magnet:nN,Male:iN,Management:cN,MapLocation:dN,Medal:fN,Memo:vN,Menu:gN,Message:yN,MessageBox:_N,Mic:kN,Microphone:SN,MilkTea:$N,Minus:x3,Money:MN,Monitor:ON,Moon:NN,MoonNight:PN,More:k3,MoreFilled:u0,MostlyCloudy:HN,Mouse:DN,Mug:KN,Mute:YN,MuteNotification:UN,NoSmoking:XN,Notebook:JN,Notification:eL,Odometer:oL,OfficeBuilding:lL,Open:aL,Operation:sL,Opportunity:uL,Orange:pL,Paperclip:hL,PartlyCloudy:mL,Pear:bL,Phone:xL,PhoneFilled:wL,Picture:$L,PictureFilled:C3,PictureRounded:SL,PieChart:zL,Place:AL,Platform:IL,Plus:d0,Pointer:NL,Position:RL,Postcard:HL,Pouring:DL,Present:KL,PriceTag:UL,Printer:YL,Promotion:XL,QuartzWatch:JL,QuestionFilled:S3,Rank:tR,Reading:nR,ReadingLamp:rR,Refresh:cR,RefreshLeft:E3,RefreshRight:$3,Refrigerator:dR,Remove:vR,RemoveFilled:fR,Right:gR,ScaleToOriginal:T3,School:wR,Scissor:xR,Search:z3,Select:SR,Sell:$R,SemiSelect:zR,Service:AR,SetUp:IR,Setting:BR,Share:LR,Ship:VR,Shop:FR,ShoppingBag:jR,ShoppingCart:qR,ShoppingCartFull:WR,ShoppingTrolley:GR,Smoking:ZR,Soccer:QR,SoldOut:tV,Sort:nV,SortDown:M3,SortUp:A3,Stamp:iV,Star:O3,StarFilled:Ss,Stopwatch:dV,SuccessFilled:p0,Sugar:hV,Suitcase:bV,SuitcaseLine:mV,Sunny:wV,Sunrise:xV,Sunset:CV,Switch:MV,SwitchButton:EV,SwitchFilled:TV,TakeawayBox:OV,Ticket:PV,Tickets:NV,Timer:RV,ToiletPaper:HV,Tools:DV,Top:YV,TopLeft:KV,TopRight:UV,TrendCharts:XV,Trophy:eH,TrophyBase:JV,TurnOff:oH,Umbrella:lH,Unlock:aH,Upload:uH,UploadFilled:sH,User:hH,UserFilled:pH,Van:mH,VideoCamera:wH,VideoCameraFilled:bH,VideoPause:xH,VideoPlay:CH,View:I3,Wallet:zH,WalletFilled:$H,WarnTriangleFilled:AH,Warning:PH,WarningFilled:Es,Watch:NH,Watermelon:RH,WindPower:HH,ZoomIn:f0,ZoomOut:P3},Symbol.toStringTag,{value:"Module"})),B3="__epPropKey",pe=e=>e,KH=e=>Ct(e)&&!!e[B3],Ur=(e,t)=>{if(!Ct(e)||KH(e))return e;const{values:o,required:r,default:l,type:n,validator:a}=e,c={type:n,required:!!r,validator:o||a?u=>{let d=!1,p=[];if(o&&(p=Array.from(o),It(e,"default")&&p.push(l),d||(d=p.includes(u))),a&&(d||(d=a(u))),!d&&p.length>0){const f=[...new Set(p)].map(v=>JSON.stringify(v)).join(", ");lk(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[B3]:!0};return It(e,"default")&&(c.default=l),c},He=e=>Tu(Object.entries(e).map(([t,o])=>[t,Ur(o,t)])),qt=pe([String,Object,Function]),N3={Close:Mr},h0={Close:Mr,SuccessFilled:p0,InfoFilled:Iu,WarningFilled:Es,CircleCloseFilled:Ou},_n={success:p0,warning:Es,error:Ou,info:Iu},v0={validating:Rl,success:Au,error:Ll},xt=(e,t)=>{if(e.install=o=>{for(const r of[e,...Object.values(t??{})])o.component(r.name,r)},t)for(const[o,r]of Object.entries(t))e[o]=r;return e},L3=(e,t)=>(e.install=o=>{e._context=o._context,o.config.globalProperties[t]=e},e),WH=(e,t)=>(e.install=o=>{o.directive(t,e)},e),fo=e=>(e.install=jt,e),Pu=(...e)=>t=>{e.forEach(o=>{ut(o)?o(t):o.value=t})},tt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},UH=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],m0=["sun","mon","tue","wed","thu","fri","sat"],kt="update:modelValue",Jt="change",Jo="input",R3=Symbol("INSTALLED_KEY"),sl=["","default","small","large"],qH={large:40,default:32,small:24},YH=e=>qH[e||"default"],g0=e=>["",...sl].includes(e);var Ar=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ar||{});function b0(e){return Qt(e)&&e.type===Xe}function GH(e){return Qt(e)&&e.type===Yo}function XH(e){return Qt(e)&&!b0(e)&&!GH(e)}const ZH=e=>{if(!Qt(e))return{};const t=e.props||{},o=(Qt(e.type)?e.type.props:void 0)||{},r={};return Object.keys(o).forEach(l=>{It(o[l],"default")&&(r[l]=o[l].default)}),Object.keys(t).forEach(l=>{r[yr(l)]=t[l]}),r},JH=e=>{if(!Ge(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},la=e=>{const t=Ge(e)?e:[e],o=[];return t.forEach(r=>{var l;Ge(r)?o.push(...la(r)):Qt(r)&&Ge(r.children)?o.push(...la(r.children)):(o.push(r),Qt(r)&&((l=r.component)!=null&&l.subTree)&&o.push(...la(r.component.subTree)))}),o},V3=e=>[...new Set(e)],Vl=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Bu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ga=e=>Bt?window.requestAnimationFrame(e):setTimeout(e,16),Nu=e=>Bt?window.cancelAnimationFrame(e):clearTimeout(e),Lu=()=>Math.floor(Math.random()*1e4),ro=e=>e,QH=["class","style"],eF=/^on[A-Z]/,_0=(e={})=>{const{excludeListeners:t=!1,excludeKeys:o}=e,r=T(()=>((o==null?void 0:o.value)||[]).concat(QH)),l=_t();return T(l?()=>{var n;return Tu(Object.entries((n=l.proxy)==null?void 0:n.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&eF.test(a))))}:()=>({}))},cl=({from:e,replacement:t,scope:o,version:r,ref:l,type:n="API"},a)=>{Te(()=>s(a),i=>{},{immediate:!0})},H3=(e,t,o)=>{let r={offsetX:0,offsetY:0};const l=i=>{const c=i.clientX,u=i.clientY,{offsetX:d,offsetY:p}=r,f=e.value.getBoundingClientRect(),v=f.left,m=f.top,h=f.width,_=f.height,g=document.documentElement.clientWidth,y=document.documentElement.clientHeight,w=-v+d,x=-m+p,M=g-v-h+d,E=y-m-_+p,I=F=>{const K=Math.min(Math.max(d+F.clientX-c,w),M),R=Math.min(Math.max(p+F.clientY-u,x),E);r={offsetX:K,offsetY:R},e.value&&(e.value.style.transform=`translate(${bo(K)}, ${bo(R)})`)},O=()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",O)},n=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",l)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",l)};vt(()=>{lr(()=>{o.value?n():a()})}),Zt(()=>{a()})};var tF={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const oF=e=>(t,o)=>rF(t,o,s(e)),rF=(e,t,o)=>oo(o,e,e).replace(/\{(\w+)\}/g,(r,l)=>{var n;return`${(n=t==null?void 0:t[l])!=null?n:`{${l}}`}`}),lF=e=>{const t=T(()=>s(e).name),o=Wt(e)?e:V(e);return{lang:t,locale:o,t:oF(e)}},F3=Symbol("localeContextKey"),Nt=e=>{const t=e||Le(F3,V());return lF(T(()=>t.value||tF))},$s="el",nF="is-",na=(e,t,o,r,l)=>{let n=`${e}-${t}`;return o&&(n+=`-${o}`),r&&(n+=`__${r}`),l&&(n+=`--${l}`),n},D3=Symbol("namespaceContextKey"),w0=e=>{const t=e||(_t()?Le(D3,V($s)):V($s));return T(()=>s(t)||$s)},Ie=(e,t)=>{const o=w0(t);return{namespace:o,b:(h="")=>na(o.value,e,h,"",""),e:h=>h?na(o.value,e,"",h,""):"",m:h=>h?na(o.value,e,"","",h):"",be:(h,_)=>h&&_?na(o.value,e,h,_,""):"",em:(h,_)=>h&&_?na(o.value,e,"",h,_):"",bm:(h,_)=>h&&_?na(o.value,e,h,"",_):"",bem:(h,_,g)=>h&&_&&g?na(o.value,e,h,_,g):"",is:(h,..._)=>{const g=_.length>=1?_[0]:!0;return h&&g?`${nF}${h}`:""},cssVar:h=>{const _={};for(const g in h)h[g]&&(_[`--${o.value}-${g}`]=h[g]);return _},cssVarName:h=>`--${o.value}-${h}`,cssVarBlock:h=>{const _={};for(const g in h)h[g]&&(_[`--${o.value}-${e}-${g}`]=h[g]);return _},cssVarBlockName:h=>`--${o.value}-${e}-${h}`}},j3=(e,t={})=>{Wt(e)||So("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||Ie("popup"),r=lm(()=>o.bm("parent","hidden"));if(!Bt||Wr(document.body,r.value))return;let l=0,n=!1,a="0";const i=()=>{setTimeout(()=>{sr(document==null?void 0:document.body,r.value),n&&document&&(document.body.style.width=a)},200)};Te(e,c=>{if(!c){i();return}n=!Wr(document.body,r.value),n&&(a=document.body.style.width),l=p3(o.namespace.value);const u=document.documentElement.clientHeight0&&(u||d==="scroll")&&n&&(document.body.style.width=`calc(100% - ${l}px)`),il(document.body,r.value)}),wp(()=>i())},aF=Ur({type:pe(Boolean),default:null}),iF=Ur({type:pe(Function)}),K3=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,r=[t],l={[e]:aF,[o]:iF};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:p})=>{const f=_t(),{emit:v}=f,m=f.props,h=T(()=>ut(m[o])),_=T(()=>m[e]===null),g=I=>{a.value!==!0&&(a.value=!0,i&&(i.value=I),ut(d)&&d(I))},y=I=>{a.value!==!1&&(a.value=!1,i&&(i.value=I),ut(p)&&p(I))},w=I=>{if(m.disabled===!0||ut(u)&&!u())return;const O=h.value&&Bt;O&&v(t,!0),(_.value||!O)&&g(I)},x=I=>{if(m.disabled===!0||!Bt)return;const O=h.value&&Bt;O&&v(t,!1),(_.value||!O)&&y(I)},M=I=>{Co(I)&&(m.disabled&&I?h.value&&v(t,!1):a.value!==I&&(I?g():y()))},E=()=>{a.value?x():w()};return Te(()=>m[e],M),c&&f.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...f.proxy.$route}),()=>{c.value&&a.value&&x()}),vt(()=>{M(m[e])}),{hide:x,show:w,toggle:E,hasUpdateHandler:h}},useModelToggleProps:l,useModelToggleEmits:r}};K3("modelValue");const W3=e=>{const t=_t();return T(()=>{var o,r;return(r=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:r[e]})};var cr="top",Or="bottom",Ir="right",ur="left",y0="auto",Ts=[cr,Or,Ir,ur],Xa="start",zs="end",sF="clippingParents",U3="viewport",Ms="popper",cF="reference",q3=Ts.reduce(function(e,t){return e.concat([t+"-"+Xa,t+"-"+zs])},[]),aa=[].concat(Ts,[y0]).reduce(function(e,t){return e.concat([t,t+"-"+Xa,t+"-"+zs])},[]),uF="beforeRead",dF="read",pF="afterRead",fF="beforeMain",hF="main",vF="afterMain",mF="beforeWrite",gF="write",bF="afterWrite",_F=[uF,dF,pF,fF,hF,vF,mF,gF,bF];function ul(e){return e?(e.nodeName||"").toLowerCase():null}function qr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Za(e){var t=qr(e).Element;return e instanceof t||e instanceof Element}function Pr(e){var t=qr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function x0(e){if(typeof ShadowRoot>"u")return!1;var t=qr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wF(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},l=t.attributes[o]||{},n=t.elements[o];!Pr(n)||!ul(n)||(Object.assign(n.style,r),Object.keys(l).forEach(function(a){var i=l[a];i===!1?n.removeAttribute(a):n.setAttribute(a,i===!0?"":i)}))})}function yF(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],n=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),i=a.reduce(function(c,u){return c[u]="",c},{});!Pr(l)||!ul(l)||(Object.assign(l.style,i),Object.keys(n).forEach(function(c){l.removeAttribute(c)}))})}}var Y3={name:"applyStyles",enabled:!0,phase:"write",fn:wF,effect:yF,requires:["computeStyles"]};function dl(e){return e.split("-")[0]}var ia=Math.max,Ru=Math.min,Ja=Math.round;function Qa(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),r=1,l=1;if(Pr(e)&&t){var n=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ja(o.width)/a||1),n>0&&(l=Ja(o.height)/n||1)}return{width:o.width/r,height:o.height/l,top:o.top/l,right:o.right/r,bottom:o.bottom/l,left:o.left/r,x:o.left/r,y:o.top/l}}function k0(e){var t=Qa(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function G3(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&x0(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hl(e){return qr(e).getComputedStyle(e)}function xF(e){return["table","td","th"].indexOf(ul(e))>=0}function wn(e){return((Za(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vu(e){return ul(e)==="html"?e:e.assignedSlot||e.parentNode||(x0(e)?e.host:null)||wn(e)}function X3(e){return!Pr(e)||Hl(e).position==="fixed"?null:e.offsetParent}function kF(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Pr(e)){var r=Hl(e);if(r.position==="fixed")return null}var l=Vu(e);for(x0(l)&&(l=l.host);Pr(l)&&["html","body"].indexOf(ul(l))<0;){var n=Hl(l);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return l;l=l.parentNode}return null}function As(e){for(var t=qr(e),o=X3(e);o&&xF(o)&&Hl(o).position==="static";)o=X3(o);return o&&(ul(o)==="html"||ul(o)==="body"&&Hl(o).position==="static")?t:o||kF(e)||t}function C0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Os(e,t,o){return ia(e,Ru(t,o))}function CF(e,t,o){var r=Os(e,t,o);return r>o?o:r}function Z3(){return{top:0,right:0,bottom:0,left:0}}function J3(e){return Object.assign({},Z3(),e)}function Q3(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var SF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,J3(typeof e!="number"?e:Q3(e,Ts))};function EF(e){var t,o=e.state,r=e.name,l=e.options,n=o.elements.arrow,a=o.modifiersData.popperOffsets,i=dl(o.placement),c=C0(i),u=[ur,Ir].indexOf(i)>=0,d=u?"height":"width";if(!(!n||!a)){var p=SF(l.padding,o),f=k0(n),v=c==="y"?cr:ur,m=c==="y"?Or:Ir,h=o.rects.reference[d]+o.rects.reference[c]-a[c]-o.rects.popper[d],_=a[c]-o.rects.reference[c],g=As(n),y=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,w=h/2-_/2,x=p[v],M=y-f[d]-p[m],E=y/2-f[d]/2+w,I=Os(x,E,M),O=c;o.modifiersData[r]=(t={},t[O]=I,t.centerOffset=I-E,t)}}function $F(e){var t=e.state,o=e.options,r=o.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!G3(t.elements.popper,l)||(t.elements.arrow=l))}var TF={name:"arrow",enabled:!0,phase:"main",fn:EF,effect:$F,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var zF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MF(e){var t=e.x,o=e.y,r=window,l=r.devicePixelRatio||1;return{x:Ja(t*l)/l||0,y:Ja(o*l)/l||0}}function e_(e){var t,o=e.popper,r=e.popperRect,l=e.placement,n=e.variation,a=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,v=f===void 0?0:f,m=a.y,h=m===void 0?0:m,_=typeof d=="function"?d({x:v,y:h}):{x:v,y:h};v=_.x,h=_.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=ur,x=cr,M=window;if(u){var E=As(o),I="clientHeight",O="clientWidth";if(E===qr(o)&&(E=wn(o),Hl(E).position!=="static"&&i==="absolute"&&(I="scrollHeight",O="scrollWidth")),E=E,l===cr||(l===ur||l===Ir)&&n===zs){x=Or;var F=p&&E===M&&M.visualViewport?M.visualViewport.height:E[I];h-=F-r.height,h*=c?1:-1}if(l===ur||(l===cr||l===Or)&&n===zs){w=Ir;var K=p&&E===M&&M.visualViewport?M.visualViewport.width:E[O];v-=K-r.width,v*=c?1:-1}}var R=Object.assign({position:i},u&&zF),D=d===!0?MF({x:v,y:h}):{x:v,y:h};if(v=D.x,h=D.y,c){var j;return Object.assign({},R,(j={},j[x]=y?"0":"",j[w]=g?"0":"",j.transform=(M.devicePixelRatio||1)<=1?"translate("+v+"px, "+h+"px)":"translate3d("+v+"px, "+h+"px, 0)",j))}return Object.assign({},R,(t={},t[x]=y?h+"px":"",t[w]=g?v+"px":"",t.transform="",t))}function AF(e){var t=e.state,o=e.options,r=o.gpuAcceleration,l=r===void 0?!0:r,n=o.adaptive,a=n===void 0?!0:n,i=o.roundOffsets,c=i===void 0?!0:i,u={placement:dl(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,e_(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,e_(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var t_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AF,data:{}},Hu={passive:!0};function OF(e){var t=e.state,o=e.instance,r=e.options,l=r.scroll,n=l===void 0?!0:l,a=r.resize,i=a===void 0?!0:a,c=qr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&u.forEach(function(d){d.addEventListener("scroll",o.update,Hu)}),i&&c.addEventListener("resize",o.update,Hu),function(){n&&u.forEach(function(d){d.removeEventListener("scroll",o.update,Hu)}),i&&c.removeEventListener("resize",o.update,Hu)}}var o_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OF,data:{}},IF={left:"right",right:"left",bottom:"top",top:"bottom"};function Fu(e){return e.replace(/left|right|bottom|top/g,function(t){return IF[t]})}var PF={start:"end",end:"start"};function r_(e){return e.replace(/start|end/g,function(t){return PF[t]})}function S0(e){var t=qr(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function E0(e){return Qa(wn(e)).left+S0(e).scrollLeft}function BF(e){var t=qr(e),o=wn(e),r=t.visualViewport,l=o.clientWidth,n=o.clientHeight,a=0,i=0;return r&&(l=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:l,height:n,x:a+E0(e),y:i}}function NF(e){var t,o=wn(e),r=S0(e),l=(t=e.ownerDocument)==null?void 0:t.body,n=ia(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),a=ia(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-r.scrollLeft+E0(e),c=-r.scrollTop;return Hl(l||o).direction==="rtl"&&(i+=ia(o.clientWidth,l?l.clientWidth:0)-n),{width:n,height:a,x:i,y:c}}function $0(e){var t=Hl(e),o=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+l+r)}function l_(e){return["html","body","#document"].indexOf(ul(e))>=0?e.ownerDocument.body:Pr(e)&&$0(e)?e:l_(Vu(e))}function Is(e,t){var o;t===void 0&&(t=[]);var r=l_(e),l=r===((o=e.ownerDocument)==null?void 0:o.body),n=qr(r),a=l?[n].concat(n.visualViewport||[],$0(r)?r:[]):r,i=t.concat(a);return l?i:i.concat(Is(Vu(a)))}function T0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LF(e){var t=Qa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function n_(e,t){return t===U3?T0(BF(e)):Za(t)?LF(t):T0(NF(wn(e)))}function RF(e){var t=Is(Vu(e)),o=["absolute","fixed"].indexOf(Hl(e).position)>=0,r=o&&Pr(e)?As(e):e;return Za(r)?t.filter(function(l){return Za(l)&&G3(l,r)&&ul(l)!=="body"}):[]}function VF(e,t,o){var r=t==="clippingParents"?RF(e):[].concat(t),l=[].concat(r,[o]),n=l[0],a=l.reduce(function(i,c){var u=n_(e,c);return i.top=ia(u.top,i.top),i.right=Ru(u.right,i.right),i.bottom=Ru(u.bottom,i.bottom),i.left=ia(u.left,i.left),i},n_(e,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function a_(e){var t=e.reference,o=e.element,r=e.placement,l=r?dl(r):null,n=r?ei(r):null,a=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,c;switch(l){case cr:c={x:a,y:t.y-o.height};break;case Or:c={x:a,y:t.y+t.height};break;case Ir:c={x:t.x+t.width,y:i};break;case ur:c={x:t.x-o.width,y:i};break;default:c={x:t.x,y:t.y}}var u=l?C0(l):null;if(u!=null){var d=u==="y"?"height":"width";switch(n){case Xa:c[u]=c[u]-(t[d]/2-o[d]/2);break;case zs:c[u]=c[u]+(t[d]/2-o[d]/2);break}}return c}function Ps(e,t){t===void 0&&(t={});var o=t,r=o.placement,l=r===void 0?e.placement:r,n=o.boundary,a=n===void 0?sF:n,i=o.rootBoundary,c=i===void 0?U3:i,u=o.elementContext,d=u===void 0?Ms:u,p=o.altBoundary,f=p===void 0?!1:p,v=o.padding,m=v===void 0?0:v,h=J3(typeof m!="number"?m:Q3(m,Ts)),_=d===Ms?cF:Ms,g=e.rects.popper,y=e.elements[f?_:d],w=VF(Za(y)?y:y.contextElement||wn(e.elements.popper),a,c),x=Qa(e.elements.reference),M=a_({reference:x,element:g,strategy:"absolute",placement:l}),E=T0(Object.assign({},g,M)),I=d===Ms?E:x,O={top:w.top-I.top+h.top,bottom:I.bottom-w.bottom+h.bottom,left:w.left-I.left+h.left,right:I.right-w.right+h.right},F=e.modifiersData.offset;if(d===Ms&&F){var K=F[l];Object.keys(O).forEach(function(R){var D=[Ir,Or].indexOf(R)>=0?1:-1,j=[cr,Or].indexOf(R)>=0?"y":"x";O[R]+=K[j]*D})}return O}function HF(e,t){t===void 0&&(t={});var o=t,r=o.placement,l=o.boundary,n=o.rootBoundary,a=o.padding,i=o.flipVariations,c=o.allowedAutoPlacements,u=c===void 0?aa:c,d=ei(r),p=d?i?q3:q3.filter(function(m){return ei(m)===d}):Ts,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p);var v=f.reduce(function(m,h){return m[h]=Ps(e,{placement:h,boundary:l,rootBoundary:n,padding:a})[dl(h)],m},{});return Object.keys(v).sort(function(m,h){return v[m]-v[h]})}function FF(e){if(dl(e)===y0)return[];var t=Fu(e);return[r_(e),t,r_(t)]}function DF(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=o.mainAxis,n=l===void 0?!0:l,a=o.altAxis,i=a===void 0?!0:a,c=o.fallbackPlacements,u=o.padding,d=o.boundary,p=o.rootBoundary,f=o.altBoundary,v=o.flipVariations,m=v===void 0?!0:v,h=o.allowedAutoPlacements,_=t.options.placement,g=dl(_),y=g===_,w=c||(y||!m?[Fu(_)]:FF(_)),x=[_].concat(w).reduce(function(ve,le){return ve.concat(dl(le)===y0?HF(t,{placement:le,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):le)},[]),M=t.rects.reference,E=t.rects.popper,I=new Map,O=!0,F=x[0],K=0;K=0,Q=Z?"width":"height",J=Ps(t,{placement:R,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),L=Z?j?Ir:ur:j?Or:cr;M[Q]>E[Q]&&(L=Fu(L));var X=Fu(L),N=[];if(n&&N.push(J[D]<=0),i&&N.push(J[L]<=0,J[X]<=0),N.every(function(ve){return ve})){F=R,O=!1;break}I.set(R,N)}if(O)for(var W=m?3:1,re=function(ve){var le=x.find(function(ge){var _e=I.get(ge);if(_e)return _e.slice(0,ve).every(function(me){return me})});if(le)return F=le,"break"},ie=W;ie>0;ie--){var se=re(ie);if(se==="break")break}t.placement!==F&&(t.modifiersData[r]._skip=!0,t.placement=F,t.reset=!0)}}var jF={name:"flip",enabled:!0,phase:"main",fn:DF,requiresIfExists:["offset"],data:{_skip:!1}};function i_(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function s_(e){return[cr,Ir,Or,ur].some(function(t){return e[t]>=0})}function KF(e){var t=e.state,o=e.name,r=t.rects.reference,l=t.rects.popper,n=t.modifiersData.preventOverflow,a=Ps(t,{elementContext:"reference"}),i=Ps(t,{altBoundary:!0}),c=i_(a,r),u=i_(i,l,n),d=s_(c),p=s_(u);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var WF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:KF};function UF(e,t,o){var r=dl(e),l=[ur,cr].indexOf(r)>=0?-1:1,n=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,a=n[0],i=n[1];return a=a||0,i=(i||0)*l,[ur,Ir].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function qF(e){var t=e.state,o=e.options,r=e.name,l=o.offset,n=l===void 0?[0,0]:l,a=aa.reduce(function(d,p){return d[p]=UF(p,t.rects,n),d},{}),i=a[t.placement],c=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var YF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qF};function GF(e){var t=e.state,o=e.name;t.modifiersData[o]=a_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var c_={name:"popperOffsets",enabled:!0,phase:"read",fn:GF,data:{}};function XF(e){return e==="x"?"y":"x"}function ZF(e){var t=e.state,o=e.options,r=e.name,l=o.mainAxis,n=l===void 0?!0:l,a=o.altAxis,i=a===void 0?!1:a,c=o.boundary,u=o.rootBoundary,d=o.altBoundary,p=o.padding,f=o.tether,v=f===void 0?!0:f,m=o.tetherOffset,h=m===void 0?0:m,_=Ps(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),g=dl(t.placement),y=ei(t.placement),w=!y,x=C0(g),M=XF(x),E=t.modifiersData.popperOffsets,I=t.rects.reference,O=t.rects.popper,F=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,K=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(E){if(n){var j,Z=x==="y"?cr:ur,Q=x==="y"?Or:Ir,J=x==="y"?"height":"width",L=E[x],X=L+_[Z],N=L-_[Q],W=v?-O[J]/2:0,re=y===Xa?I[J]:O[J],ie=y===Xa?-O[J]:-I[J],se=t.elements.arrow,ve=v&&se?k0(se):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z3(),ge=le[Z],_e=le[Q],me=Os(0,I[J],ve[J]),Be=w?I[J]/2-W-me-ge-K.mainAxis:re-me-ge-K.mainAxis,ye=w?-I[J]/2+W+me+_e+K.mainAxis:ie+me+_e+K.mainAxis,Me=t.elements.arrow&&As(t.elements.arrow),te=Me?x==="y"?Me.clientTop||0:Me.clientLeft||0:0,ce=(j=R==null?void 0:R[x])!=null?j:0,we=L+Be-ce-te,Ae=L+ye-ce,Oe=Os(v?Ru(X,we):X,L,v?ia(N,Ae):N);E[x]=Oe,D[x]=Oe-L}if(i){var xe,Ne=x==="x"?cr:ur,Se=x==="x"?Or:Ir,ke=E[M],$e=M==="y"?"height":"width",Pe=ke+_[Ne],Ye=ke-_[Se],Ke=[cr,ur].indexOf(g)!==-1,Ee=(xe=R==null?void 0:R[M])!=null?xe:0,Ue=Ke?Pe:ke-I[$e]-O[$e]-Ee+K.altAxis,nt=Ke?ke+I[$e]+O[$e]-Ee-K.altAxis:Ye,dt=v&&Ke?CF(Ue,ke,nt):Os(v?Ue:Pe,ke,v?nt:Ye);E[M]=dt,D[M]=dt-ke}t.modifiersData[r]=D}}var JF={name:"preventOverflow",enabled:!0,phase:"main",fn:ZF,requiresIfExists:["offset"]};function QF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eD(e){return e===qr(e)||!Pr(e)?S0(e):QF(e)}function tD(e){var t=e.getBoundingClientRect(),o=Ja(t.width)/e.offsetWidth||1,r=Ja(t.height)/e.offsetHeight||1;return o!==1||r!==1}function oD(e,t,o){o===void 0&&(o=!1);var r=Pr(t),l=Pr(t)&&tD(t),n=wn(t),a=Qa(e,l),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!o)&&((ul(t)!=="body"||$0(n))&&(i=eD(t)),Pr(t)?(c=Qa(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):n&&(c.x=E0(n))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function rD(e){var t=new Map,o=new Set,r=[];e.forEach(function(n){t.set(n.name,n)});function l(n){o.add(n.name);var a=[].concat(n.requires||[],n.requiresIfExists||[]);a.forEach(function(i){if(!o.has(i)){var c=t.get(i);c&&l(c)}}),r.push(n)}return e.forEach(function(n){o.has(n.name)||l(n)}),r}function lD(e){var t=rD(e);return _F.reduce(function(o,r){return o.concat(t.filter(function(l){return l.phase===r}))},[])}function nD(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function aD(e){var t=e.reduce(function(o,r){var l=o[r.name];return o[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var u_={placement:"bottom",modifiers:[],strategy:"absolute"};function d_(){for(var e=arguments.length,t=new Array(e),o=0;o{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=uD(c);Object.assign(a.value,u)},requires:["computeStyles"]},l=T(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:p}=s(o);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...p||[],r,{name:"applyStyles",enabled:!1}]}}),n=Yt(),a=V({styles:{popper:{position:s(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{n.value&&(n.value.destroy(),n.value=void 0)};return Te(l,c=>{const u=s(n);u&&u.setOptions(c)},{deep:!0}),Te([e,t],([c,u])=>{i(),!(!c||!u)&&(n.value=p_(c,u,s(l)))}),Zt(()=>{i()}),{state:T(()=>{var c;return{...((c=s(n))==null?void 0:c.state)||{}}}),styles:T(()=>s(a).styles),attributes:T(()=>s(a).attributes),update:()=>{var c;return(c=s(n))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=s(n))==null?void 0:c.forceUpdate()},instanceRef:T(()=>s(n))}};function uD(e){const t=Object.keys(e.elements),o=Tu(t.map(l=>[l,e.styles[l]||{}])),r=Tu(t.map(l=>[l,e.attributes[l]]));return{styles:o,attributes:r}}const M0=e=>{if(!e)return{onClick:jt,onMousedown:jt,onMouseup:jt};let t=!1,o=!1;return{onClick:a=>{t&&o&&e(a),t=o=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{o=a.target===a.currentTarget}}},dD=(e,t=0)=>{if(t===0)return e;const o=V(!1);let r=0;const l=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{o.value=e.value},t)};return vt(l),Te(()=>e.value,n=>{n?l():o.value=n}),o};function f_(){let e;const t=(r,l)=>{o(),e=window.setTimeout(r,l)},o=()=>window.clearTimeout(e);return is(()=>o()),{registerTimeout:t,cancelTimeout:o}}const h_={prefix:Math.floor(Math.random()*1e4),current:0},pD=Symbol("elIdInjection"),v_=()=>_t()?Le(pD,h_):h_,dr=e=>{const t=v_(),o=w0();return T(()=>s(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let ti=[];const m_=e=>{const t=e;t.key===tt.esc&&ti.forEach(o=>o(t))},fD=e=>{vt(()=>{ti.length===0&&document.addEventListener("keydown",m_),Bt&&ti.push(e)}),Zt(()=>{ti=ti.filter(t=>t!==e),ti.length===0&&Bt&&document.removeEventListener("keydown",m_)})};let g_;const b_=()=>{const e=w0(),t=v_(),o=T(()=>`${e.value}-popper-container-${t.prefix}`),r=T(()=>`#${o.value}`);return{id:o,selector:r}},hD=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},vD=()=>{const{id:e,selector:t}=b_();return jc(()=>{Bt&&!g_&&!document.body.querySelector(t.value)&&(g_=hD(e.value))}),{id:e,selector:t}},mD=He({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),__=({showAfter:e,hideAfter:t,autoClose:o,open:r,close:l})=>{const{registerTimeout:n}=f_(),{registerTimeout:a,cancelTimeout:i}=f_();return{onOpen:d=>{n(()=>{r(d);const p=s(o);ct(p)&&p>0&&a(()=>{l(d)},p)},s(e))},onClose:d=>{i(),n(()=>{l(d)},s(t))}}},w_=Symbol("elForwardRef"),gD=e=>{zt(w_,{setForwardRef:o=>{e.value=o}})},bD=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),y_=V(0),x_=2e3,k_=Symbol("zIndexContextKey"),oi=e=>{const t=e||(_t()?Le(k_,void 0):void 0),o=T(()=>{const n=s(t);return ct(n)?n:x_}),r=T(()=>o.value+y_.value);return{initialZIndex:o,currentZIndex:r,nextZIndex:()=>(y_.value++,r.value)}},Bs=Math.min,ri=Math.max,Du=Math.round,yn=e=>({x:e,y:e});function _D(e,t,o){return ri(e,Bs(t,o))}function C_(e,t){return typeof e=="function"?e(t):e}function A0(e){return e.split("-")[0]}function O0(e){return e.split("-")[1]}function wD(e){return e==="x"?"y":"x"}function S_(e){return e==="y"?"height":"width"}function I0(e){return["top","bottom"].includes(A0(e))?"y":"x"}function E_(e){return wD(I0(e))}function yD(e){return{top:0,right:0,bottom:0,left:0,...e}}function xD(e){return typeof e!="number"?yD(e):{top:e,right:e,bottom:e,left:e}}function $_(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function T_(e,t,o){let{reference:r,floating:l}=e;const n=I0(t),a=E_(t),i=S_(a),c=A0(t),u=n==="y",d=r.x+r.width/2-l.width/2,p=r.y+r.height/2-l.height/2,f=r[i]/2-l[i]/2;let v;switch(c){case"top":v={x:d,y:r.y-l.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-l.width,y:p};break;default:v={x:r.x,y:r.y}}switch(O0(t)){case"start":v[a]-=f*(o&&u?-1:1);break;case"end":v[a]+=f*(o&&u?-1:1);break}return v}const kD=async(e,t,o)=>{const{placement:r="bottom",strategy:l="absolute",middleware:n=[],platform:a}=o,i=n.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:p}=T_(u,r,c),f=r,v={},m=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:l,rects:n,platform:a,elements:i,middlewareData:c}=t,{element:u,padding:d=0}=C_(e,t)||{};if(u==null)return{};const p=xD(d),f={x:o,y:r},v=E_(l),m=S_(v),h=await a.getDimensions(u),_=v==="y",g=_?"top":"left",y=_?"bottom":"right",w=_?"clientHeight":"clientWidth",x=n.reference[m]+n.reference[v]-f[v]-n.floating[m],M=f[v]-n.reference[v],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let I=E?E[w]:0;(!I||!await(a.isElement==null?void 0:a.isElement(E)))&&(I=i.floating[w]||n.floating[m]);const O=x/2-M/2,F=I/2-h[m]/2-1,K=Bs(p[g],F),R=Bs(p[y],F),D=K,j=I-h[m]-R,Z=I/2-h[m]/2+O,Q=_D(D,Z,j),J=!c.arrow&&O0(l)!=null&&Z!=Q&&n.reference[m]/2-(Z"u"?!1:e instanceof ShadowRoot||e instanceof br(e).ShadowRoot}function Ns(e){const{overflow:t,overflowX:o,overflowY:r,display:l}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(l)}function $D(e){return["table","td","th"].includes(xn(e))}function P0(e){const t=B0(),o=Br(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function TD(e){let t=li(e);for(;pl(t)&&!ju(t);){if(P0(t))return t;t=li(t)}return null}function B0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ju(e){return["html","body","#document"].includes(xn(e))}function Br(e){return br(e).getComputedStyle(e)}function Ku(e){return Fl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function li(e){if(xn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||M_(e)&&e.host||kn(e);return M_(t)?t.host:t}function A_(e){const t=li(e);return ju(t)?e.ownerDocument?e.ownerDocument.body:e.body:pl(t)&&Ns(t)?t:A_(t)}function N0(e,t,o){var r;t===void 0&&(t=[]),o===void 0&&(o=!0);const l=A_(e),n=l===((r=e.ownerDocument)==null?void 0:r.body),a=br(l);return n?t.concat(a,a.visualViewport||[],Ns(l)?l:[],a.frameElement&&o?N0(a.frameElement):[]):t.concat(l,N0(l,[],o))}function O_(e){const t=Br(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=pl(e),n=l?e.offsetWidth:o,a=l?e.offsetHeight:r,i=Du(o)!==n||Du(r)!==a;return i&&(o=n,r=a),{width:o,height:r,$:i}}function I_(e){return Fl(e)?e:e.contextElement}function ni(e){const t=I_(e);if(!pl(t))return yn(1);const o=t.getBoundingClientRect(),{width:r,height:l,$:n}=O_(t);let a=(n?Du(o.width):o.width)/r,i=(n?Du(o.height):o.height)/l;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const zD=yn(0);function P_(e){const t=br(e);return!B0()||!t.visualViewport?zD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==br(e)?!1:t}function Ls(e,t,o,r){t===void 0&&(t=!1),o===void 0&&(o=!1);const l=e.getBoundingClientRect(),n=I_(e);let a=yn(1);t&&(r?Fl(r)&&(a=ni(r)):a=ni(e));const i=MD(n,o,r)?P_(n):yn(0);let c=(l.left+i.x)/a.x,u=(l.top+i.y)/a.y,d=l.width/a.x,p=l.height/a.y;if(n){const f=br(n),v=r&&Fl(r)?br(r):r;let m=f.frameElement;for(;m&&r&&v!==f;){const h=ni(m),_=m.getBoundingClientRect(),g=Br(m),y=_.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,w=_.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;c*=h.x,u*=h.y,d*=h.x,p*=h.y,c+=y,u+=w,m=br(m).frameElement}}return $_({width:d,height:p,x:c,y:u})}function AD(e){let{rect:t,offsetParent:o,strategy:r}=e;const l=pl(o),n=kn(o);if(o===n)return t;let a={scrollLeft:0,scrollTop:0},i=yn(1);const c=yn(0);if((l||!l&&r!=="fixed")&&((xn(o)!=="body"||Ns(n))&&(a=Ku(o)),pl(o))){const u=Ls(o);i=ni(o),c.x=u.x+o.clientLeft,c.y=u.y+o.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-a.scrollLeft*i.x+c.x,y:t.y*i.y-a.scrollTop*i.y+c.y}}function OD(e){return Array.from(e.getClientRects())}function B_(e){return Ls(kn(e)).left+Ku(e).scrollLeft}function ID(e){const t=kn(e),o=Ku(e),r=e.ownerDocument.body,l=ri(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=ri(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+B_(e);const i=-o.scrollTop;return Br(r).direction==="rtl"&&(a+=ri(t.clientWidth,r.clientWidth)-l),{width:l,height:n,x:a,y:i}}function PD(e,t){const o=br(e),r=kn(e),l=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,i=0,c=0;if(l){n=l.width,a=l.height;const u=B0();(!u||u&&t==="fixed")&&(i=l.offsetLeft,c=l.offsetTop)}return{width:n,height:a,x:i,y:c}}function BD(e,t){const o=Ls(e,!0,t==="fixed"),r=o.top+e.clientTop,l=o.left+e.clientLeft,n=pl(e)?ni(e):yn(1),a=e.clientWidth*n.x,i=e.clientHeight*n.y,c=l*n.x,u=r*n.y;return{width:a,height:i,x:c,y:u}}function N_(e,t,o){let r;if(t==="viewport")r=PD(e,o);else if(t==="document")r=ID(kn(e));else if(Fl(t))r=BD(t,o);else{const l=P_(e);r={...t,x:t.x-l.x,y:t.y-l.y}}return $_(r)}function L_(e,t){const o=li(e);return o===t||!Fl(o)||ju(o)?!1:Br(o).position==="fixed"||L_(o,t)}function ND(e,t){const o=t.get(e);if(o)return o;let r=N0(e,[],!1).filter(i=>Fl(i)&&xn(i)!=="body"),l=null;const n=Br(e).position==="fixed";let a=n?li(e):e;for(;Fl(a)&&!ju(a);){const i=Br(a),c=P0(a);!c&&i.position==="fixed"&&(l=null),(n?!c&&!l:!c&&i.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Ns(a)&&!c&&L_(e,a))?r=r.filter(d=>d!==a):l=i,a=li(a)}return t.set(e,r),r}function LD(e){let{element:t,boundary:o,rootBoundary:r,strategy:l}=e;const a=[...o==="clippingAncestors"?ND(t,this._c):[].concat(o),r],i=a[0],c=a.reduce((u,d)=>{const p=N_(t,d,l);return u.top=ri(p.top,u.top),u.right=Bs(p.right,u.right),u.bottom=Bs(p.bottom,u.bottom),u.left=ri(p.left,u.left),u},N_(t,i,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function RD(e){return O_(e)}function VD(e,t,o){const r=pl(t),l=kn(t),n=o==="fixed",a=Ls(e,!0,n,t);let i={scrollLeft:0,scrollTop:0};const c=yn(0);if(r||!r&&!n)if((xn(t)!=="body"||Ns(l))&&(i=Ku(t)),r){const u=Ls(t,!0,n,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else l&&(c.x=B_(l));return{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function R_(e,t){return!pl(e)||Br(e).position==="fixed"?null:t?t(e):e.offsetParent}function V_(e,t){const o=br(e);if(!pl(e))return o;let r=R_(e,t);for(;r&&$D(r)&&Br(r).position==="static";)r=R_(r,t);return r&&(xn(r)==="html"||xn(r)==="body"&&Br(r).position==="static"&&!P0(r))?o:r||TD(e)||o}const HD=async function(e){let{reference:t,floating:o,strategy:r}=e;const l=this.getOffsetParent||V_,n=this.getDimensions;return{reference:VD(t,await l(o),r),floating:{x:0,y:0,...await n(o)}}};function FD(e){return Br(e).direction==="rtl"}const DD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:kn,getClippingRect:LD,getOffsetParent:V_,getElementRects:HD,getClientRects:OD,getDimensions:RD,getScale:ni,isElement:Fl,isRTL:FD},jD=(e,t,o)=>{const r=new Map,l={platform:DD,...o},n={...l.platform,_c:r};return kD(e,t,{...l,platform:n})};He({});const KD=e=>{if(!Bt)return;if(!e)return e;const t=ar(e);return t||(Wt(e)?t:e)},WD=({middleware:e,placement:t,strategy:o})=>{const r=V(),l=V(),n=V(),a=V(),i=V({}),c={x:n,y:a,placement:t,strategy:o,middlewareData:i},u=async()=>{if(!Bt)return;const d=KD(r),p=ar(l);if(!d||!p)return;const f=await jD(d,p,{placement:s(t),strategy:s(o),middleware:s(e)});ks(c).forEach(v=>{c[v].value=f[v]})};return vt(()=>{lr(()=>{u()})}),{...c,update:u,referenceRef:r,contentRef:l}},UD=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(o){const r=s(e);return r?CD({element:r,padding:t}).fn(o):{}}});function qD(e){const t=V();function o(){if(e.value==null)return;const{selectionStart:l,selectionEnd:n,value:a}=e.value;if(l==null||n==null)return;const i=a.slice(0,Math.max(0,l)),c=a.slice(Math.max(0,n));t.value={selectionStart:l,selectionEnd:n,value:a,beforeTxt:i,afterTxt:c}}function r(){if(e.value==null||t.value==null)return;const{value:l}=e.value,{beforeTxt:n,afterTxt:a,selectionStart:i}=t.value;if(n==null||a==null||i==null)return;let c=l.length;if(l.endsWith(a))c=l.length-a.length;else if(l.startsWith(n))c=n.length;else{const u=n[i-1],d=l.indexOf(u,i-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[o,r]}const YD=(e,t,o)=>la(e.subTree).filter(n=>{var a;return Qt(n)&&((a=n.type)==null?void 0:a.name)===t&&!!n.component}).map(n=>n.component.uid).map(n=>o[n]).filter(n=>!!n),L0=(e,t)=>{const o={},r=Yt([]);return{children:r,addChild:a=>{o[a.uid]=a,r.value=YD(e,t,o)},removeChild:a=>{delete o[a],r.value=r.value.filter(i=>i.uid!==a)}}},No=Ur({type:String,values:sl,required:!1}),H_=Symbol("size"),GD=()=>{const e=Le(H_,{});return T(()=>s(e.size)||"")};function F_(e,{afterFocus:t,beforeBlur:o,afterBlur:r}={}){const l=_t(),{emit:n}=l,a=Yt(),i=V(!1),c=p=>{i.value||(i.value=!0,n("focus",p),t==null||t())},u=p=>{var f;ut(o)&&o(p)||p.relatedTarget&&((f=a.value)!=null&&f.contains(p.relatedTarget))||(i.value=!1,n("blur",p),r==null||r())},d=()=>{var p;(p=e.value)==null||p.focus()};return Te(a,p=>{p&&p.setAttribute("tabindex","-1")}),eo(a,"click",d),{wrapperRef:a,isFocused:i,handleFocus:c,handleBlur:u}}const D_=Symbol(),Wu=V();function Uu(e,t=void 0){const o=_t()?Le(D_,Wu):Wu;return e?T(()=>{var r,l;return(l=(r=o.value)==null?void 0:r[e])!=null?l:t}):o}function qu(e,t){const o=Uu(),r=Ie(e,T(()=>{var i;return((i=o.value)==null?void 0:i.namespace)||$s})),l=Nt(T(()=>{var i;return(i=o.value)==null?void 0:i.locale})),n=oi(T(()=>{var i;return((i=o.value)==null?void 0:i.zIndex)||x_})),a=T(()=>{var i;return s(t)||((i=o.value)==null?void 0:i.size)||""});return R0(T(()=>s(o)||{})),{ns:r,locale:l,zIndex:n,size:a}}const R0=(e,t,o=!1)=>{var r;const l=!!_t(),n=l?Uu():void 0,a=(r=t==null?void 0:t.provide)!=null?r:l?zt:void 0;if(!a)return;const i=T(()=>{const c=s(e);return n!=null&&n.value?XD(n.value,c):c});return a(D_,i),a(F3,T(()=>i.value.locale)),a(D3,T(()=>i.value.namespace)),a(k_,T(()=>i.value.zIndex)),a(H_,{size:T(()=>i.value.size||"")}),(o||!Wu.value)&&(Wu.value=i.value),i},XD=(e,t)=>{var o;const r=[...new Set([...ks(e),...ks(t)])],l={};for(const n of r)l[n]=(o=t[n])!=null?o:e[n];return l},ZD=He({a11y:{type:Boolean,default:!0},locale:{type:pe(Object)},size:No,button:{type:pe(Object)},experimentalFeatures:{type:pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),V0={},JD=xt(B({name:"ElConfigProvider",props:ZD,setup(e,{slots:t}){Te(()=>e.message,r=>{Object.assign(V0,r??{})},{immediate:!0,deep:!0});const o=R0(e);return()=>be(t,"default",{config:o==null?void 0:o.value})}})),QD="2.4.4",ej=(e=[])=>({version:QD,install:(o,r)=>{o[R3]||(o[R3]=!0,e.forEach(l=>o.use(l)),r&&R0(r,o,!0))}}),tj=He({zIndex:{type:pe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),oj={scroll:({scrollTop:e,fixed:t})=>ct(e)&&Co(t),[Jt]:e=>Co(e)};var Fe=(e,t)=>{const o=e.__vccOpts||e;for(const[r,l]of t)o[r]=l;return o};const j_="ElAffix",rj=B({...B({name:j_}),props:tj,emits:oj,setup(e,{expose:t,emit:o}){const r=e,l=Ie("affix"),n=Yt(),a=Yt(),i=Yt(),{height:c}=rS(),{height:u,width:d,top:p,bottom:f,update:v}=D1(a,{windowScroll:!1}),m=D1(n),h=V(!1),_=V(0),g=V(0),y=T(()=>({height:h.value?`${u.value}px`:"",width:h.value?`${d.value}px`:""})),w=T(()=>{if(!h.value)return{};const E=r.offset?bo(r.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:r.position==="top"?E:"",bottom:r.position==="bottom"?E:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:r.zIndex}}),x=()=>{if(i.value)if(_.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0,r.position==="top")if(r.target){const E=m.bottom.value-r.offset-u.value;h.value=r.offset>p.value&&m.bottom.value>0,g.value=E<0?E:0}else h.value=r.offset>p.value;else if(r.target){const E=c.value-m.top.value-r.offset-u.value;h.value=c.value-r.offsetm.top.value,g.value=E<0?-E:0}else h.value=c.value-r.offset{v(),o("scroll",{scrollTop:_.value,fixed:h.value})};return Te(h,E=>o("change",E)),vt(()=>{var E;r.target?(n.value=(E=document.querySelector(r.target))!=null?E:void 0,n.value||So(j_,`Target is not existed: ${r.target}`)):n.value=document.documentElement,i.value=i0(a.value,!0),v()}),eo(i,"scroll",M),lr(x),t({update:x,updateRoot:v}),(E,I)=>(b(),z("div",{ref_key:"root",ref:a,class:P(s(l).b()),style:Qe(s(y))},[$("div",{class:P({[s(l).m("fixed")]:h.value}),style:Qe(s(w))},[be(E.$slots,"default")],6)],6))}});var lj=Fe(rj,[["__file","affix.vue"]]);const nj=xt(lj),aj=He({size:{type:pe([Number,String])},color:{type:String}}),ij=B({...B({name:"ElIcon",inheritAttrs:!1}),props:aj,setup(e){const t=e,o=Ie("icon"),r=T(()=>{const{size:l,color:n}=t;return!l&&!n?{}:{fontSize:ko(l)?void 0:bo(l),"--color":n}});return(l,n)=>(b(),z("i",Et({class:s(o).b(),style:s(r)},l.$attrs),[be(l.$slots,"default")],16))}});var sj=Fe(ij,[["__file","icon.vue"]]);const Je=xt(sj),cj=["light","dark"],uj=He({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ks(_n),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:cj,default:"light"}}),dj=B({...B({name:"ElAlert"}),props:uj,emits:{close:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,{Close:r}=h0,l=Bo(),n=Ie("alert"),a=V(!0),i=T(()=>_n[o.type]),c=T(()=>[n.e("icon"),{[n.is("big")]:!!o.description||!!l.default}]),u=T(()=>({[n.is("bold")]:o.description||l.default})),d=p=>{a.value=!1,t("close",p)};return(p,f)=>(b(),de(_o,{name:s(n).b("fade"),persisted:""},{default:ne(()=>[ht($("div",{class:P([s(n).b(),s(n).m(p.type),s(n).is("center",p.center),s(n).is(p.effect)]),role:"alert"},[p.showIcon&&s(i)?(b(),de(s(Je),{key:0,class:P(s(c))},{default:ne(()=>[(b(),de(St(s(i))))]),_:1},8,["class"])):ue("v-if",!0),$("div",{class:P(s(n).e("content"))},[p.title||p.$slots.title?(b(),z("span",{key:0,class:P([s(n).e("title"),s(u)])},[be(p.$slots,"title",{},()=>[$t(ze(p.title),1)])],2)):ue("v-if",!0),p.$slots.default||p.description?(b(),z("p",{key:1,class:P(s(n).e("description"))},[be(p.$slots,"default",{},()=>[$t(ze(p.description),1)])],2)):ue("v-if",!0),p.closable?(b(),z(Xe,{key:2},[p.closeText?(b(),z("div",{key:0,class:P([s(n).e("close-btn"),s(n).is("customed")]),onClick:d},ze(p.closeText),3)):(b(),de(s(Je),{key:1,class:P(s(n).e("close-btn")),onClick:d},{default:ne(()=>[oe(s(r))]),_:1},8,["class"]))],64)):ue("v-if",!0)],2)],2),[[Pt,a.value]])]),_:3},8,["name"]))}});var pj=Fe(dj,[["__file","alert.vue"]]);const fj=xt(pj),sa=Symbol("formContextKey"),fl=Symbol("formItemContextKey"),Eo=(e,t={})=>{const o=V(void 0),r=t.prop?o:W3("size"),l=t.global?o:GD(),n=t.form?{size:void 0}:Le(sa,void 0),a=t.formItem?{size:void 0}:Le(fl,void 0);return T(()=>r.value||s(e)||(a==null?void 0:a.size)||(n==null?void 0:n.size)||l.value||"")},pr=e=>{const t=W3("disabled"),o=Le(sa,void 0);return T(()=>t.value||s(e)||(o==null?void 0:o.disabled)||!1)},Qo=()=>{const e=Le(sa,void 0),t=Le(fl,void 0);return{form:e,formItem:t}},Cn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:r})=>{o||(o=V(!1)),r||(r=V(!1));const l=V();let n;const a=T(()=>{var i;return!!(!e.label&&t&&t.inputIds&&((i=t.inputIds)==null?void 0:i.length)<=1)});return vt(()=>{n=Te([so(e,"id"),o],([i,c])=>{const u=i??(c?void 0:dr().value);u!==l.value&&(t!=null&&t.removeInputId&&(l.value&&t.removeInputId(l.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),l.value=u)},{immediate:!0})}),cn(()=>{n&&n(),t!=null&&t.removeInputId&&l.value&&t.removeInputId(l.value)}),{isLabeledByFormItem:a,inputId:l}},hj=He({size:{type:String,values:sl},disabled:Boolean}),vj=He({...hj,model:Object,rules:{type:pe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),mj={validate:(e,t,o)=>(Ge(e)||ft(e))&&Co(t)&&ft(o)};function gj(){const e=V([]),t=T(()=>{if(!e.value.length)return"0";const n=Math.max(...e.value);return n?`${n}px`:""});function o(n){const a=e.value.indexOf(n);return a===-1&&t.value,a}function r(n,a){if(n&&a){const i=o(a);e.value.splice(i,1,n)}else n&&e.value.push(n)}function l(n){const a=o(n);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:l}}const Yu=(e,t)=>{const o=Qn(t);return o.length>0?e.filter(r=>r.prop&&o.includes(r.prop)):e},bj=B({...B({name:"ElForm"}),props:vj,emits:mj,setup(e,{expose:t,emit:o}){const r=e,l=[],n=Eo(),a=Ie("form"),i=T(()=>{const{labelPosition:y,inline:w}=r;return[a.b(),a.m(n.value||"default"),{[a.m(`label-${y}`)]:y,[a.m("inline")]:w}]}),c=y=>{l.push(y)},u=y=>{y.prop&&l.splice(l.indexOf(y),1)},d=(y=[])=>{r.model&&Yu(l,y).forEach(w=>w.resetField())},p=(y=[])=>{Yu(l,y).forEach(w=>w.clearValidate())},f=T(()=>!!r.model),v=y=>{if(l.length===0)return[];const w=Yu(l,y);return w.length?w:[]},m=async y=>_(void 0,y),h=async(y=[])=>{if(!f.value)return!1;const w=v(y);if(w.length===0)return!0;let x={};for(const M of w)try{await M.validate("")}catch(E){x={...x,...E}}return Object.keys(x).length===0?!0:Promise.reject(x)},_=async(y=[],w)=>{const x=!ut(w);try{const M=await h(y);return M===!0&&(w==null||w(M)),M}catch(M){if(M instanceof Error)throw M;const E=M;return r.scrollToError&&g(Object.keys(E)[0]),w==null||w(!1,E),x&&Promise.reject(E)}},g=y=>{var w;const x=Yu(l,y)[0];x&&((w=x.$el)==null||w.scrollIntoView(r.scrollIntoViewOptions))};return Te(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(y=>void 0)},{deep:!0}),zt(sa,Ft({...Ao(r),emit:o,resetFields:d,clearValidate:p,validateField:_,addField:c,removeField:u,...gj()})),t({validate:m,validateField:_,resetFields:d,clearValidate:p,scrollToField:g}),(y,w)=>(b(),z("form",{class:P(s(i))},[be(y.$slots,"default")],2))}});var _j=Fe(bj,[["__file","form.vue"]]);function wj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var K_={exports:{}},$o=K_.exports={},hl,vl;function H0(){throw new Error("setTimeout has not been defined")}function F0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?hl=setTimeout:hl=H0}catch{hl=H0}try{typeof clearTimeout=="function"?vl=clearTimeout:vl=F0}catch{vl=F0}})();function W_(e){if(hl===setTimeout)return setTimeout(e,0);if((hl===H0||!hl)&&setTimeout)return hl=setTimeout,setTimeout(e,0);try{return hl(e,0)}catch{try{return hl.call(null,e,0)}catch{return hl.call(this,e,0)}}}function yj(e){if(vl===clearTimeout)return clearTimeout(e);if((vl===F0||!vl)&&clearTimeout)return vl=clearTimeout,clearTimeout(e);try{return vl(e)}catch{try{return vl.call(null,e)}catch{return vl.call(this,e)}}}var Dl=[],ai=!1,ca,Gu=-1;function xj(){!ai||!ca||(ai=!1,ca.length?Dl=ca.concat(Dl):Gu=-1,Dl.length&&U_())}function U_(){if(!ai){var e=W_(xj);ai=!0;for(var t=Dl.length;t;){for(ca=Dl,Dl=[];++Gu1)for(var o=1;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xu(e,t,o){return $j()?Xu=Reflect.construct.bind():Xu=function(l,n,a){var i=[null];i.push.apply(i,n);var c=Function.bind.apply(l,i),u=new c;return a&&Rs(u,a.prototype),u},Xu.apply(null,arguments)}function Tj(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function j0(e){var t=typeof Map=="function"?new Map:void 0;return j0=function(r){if(r===null||!Tj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,l)}function l(){return Xu(r,arguments,D0(this).constructor)}return l.prototype=Object.create(r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),Rs(l,r)},j0(e)}var zj=/%[sdj%]/g,Mj=function(){};typeof Cj<"u";function K0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(o){var r=o.field;t[r]=t[r]||[],t[r].push(o)}),t}function _r(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r=n)return i;switch(i){case"%s":return String(o[l++]);case"%d":return Number(o[l++]);case"%j":try{return JSON.stringify(o[l++])}catch{return"[Circular]"}break;default:return i}});return a}return e}function Aj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Io(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Aj(t)&&typeof e=="string"&&!e)}function Oj(e,t,o){var r=[],l=0,n=e.length;function a(i){r.push.apply(r,i||[]),l++,l===n&&o(r)}e.forEach(function(i){t(i,a)})}function Y_(e,t,o){var r=0,l=e.length;function n(a){if(a&&a.length){o(a);return}var i=r;r=r+1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Vs={integer:function(t){return Vs.number(t)&&parseInt(t,10)===t},float:function(t){return Vs.number(t)&&!Vs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Vs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(j_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(mj())},hex:function(t){return typeof t=="string"&&!!t.match(j_.hex)}},gj=function(t,o,r,l,n){if(t.required&&o===void 0){D_(t,o,r,l,n);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;a.indexOf(i)>-1?Vs[i](o)||l.push(_r(n.messages.types[i],t.fullField,t.type)):i&&typeof o!==t.type&&l.push(_r(n.messages.types[i],t.fullField,t.type))},bj=function(t,o,r,l,n){var a=typeof t.len=="number",i=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=o,d=null,f=typeof o=="number",v=typeof o=="string",m=Array.isArray(o);if(f?d="number":v?d="string":m&&(d="array"),!d)return!1;m&&(p=o.length),v&&(p=o.replace(u,"_").length),a?p!==t.len&&l.push(_r(n.messages[d].len,t.fullField,t.len)):i&&!c&&pt.max?l.push(_r(n.messages[d].max,t.fullField,t.max)):i&&c&&(pt.max)&&l.push(_r(n.messages[d].range,t.fullField,t.min,t.max))},ai="enum",_j=function(t,o,r,l,n){t[ai]=Array.isArray(t[ai])?t[ai]:[],t[ai].indexOf(o)===-1&&l.push(_r(n.messages[ai],t.fullField,t[ai].join(", ")))},wj=function(t,o,r,l,n){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||l.push(_r(n.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(o)||l.push(_r(n.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},Wt={required:D_,whitespace:vj,type:gj,range:bj,enum:_j,pattern:wj},yj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o,"string")&&!t.required)return r();Wt.required(t,o,l,a,n,"string"),Oo(o,"string")||(Wt.type(t,o,l,a,n),Wt.range(t,o,l,a,n),Wt.pattern(t,o,l,a,n),t.whitespace===!0&&Wt.whitespace(t,o,l,a,n))}r(a)},xj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&Wt.type(t,o,l,a,n)}r(a)},kj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(o===""&&(o=void 0),Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&(Wt.type(t,o,l,a,n),Wt.range(t,o,l,a,n))}r(a)},Cj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&Wt.type(t,o,l,a,n)}r(a)},Sj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),Oo(o)||Wt.type(t,o,l,a,n)}r(a)},Ej=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&(Wt.type(t,o,l,a,n),Wt.range(t,o,l,a,n))}r(a)},$j=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&(Wt.type(t,o,l,a,n),Wt.range(t,o,l,a,n))}r(a)},Tj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(o==null&&!t.required)return r();Wt.required(t,o,l,a,n,"array"),o!=null&&(Wt.type(t,o,l,a,n),Wt.range(t,o,l,a,n))}r(a)},zj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&Wt.type(t,o,l,a,n)}r(a)},Mj="enum",Aj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n),o!==void 0&&Wt[Mj](t,o,l,a,n)}r(a)},Ij=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o,"string")&&!t.required)return r();Wt.required(t,o,l,a,n),Oo(o,"string")||Wt.pattern(t,o,l,a,n)}r(a)},Oj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o,"date")&&!t.required)return r();if(Wt.required(t,o,l,a,n),!Oo(o,"date")){var c;o instanceof Date?c=o:c=new Date(o),Wt.type(t,c,l,a,n),c&&Wt.range(t,c.getTime(),l,a,n)}}r(a)},Pj=function(t,o,r,l,n){var a=[],i=Array.isArray(o)?"array":typeof o;Wt.required(t,o,l,a,n,i),r(a)},V0=function(t,o,r,l,n){var a=t.type,i=[],c=t.required||!t.required&&l.hasOwnProperty(t.field);if(c){if(Oo(o,a)&&!t.required)return r();Wt.required(t,o,l,i,n,a),Oo(o,a)||Wt.type(t,o,l,i,n)}r(i)},Bj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Oo(o)&&!t.required)return r();Wt.required(t,o,l,a,n)}r(a)},Hs={string:yj,method:xj,number:kj,boolean:Cj,regexp:Sj,integer:Ej,float:$j,array:Tj,object:zj,enum:Aj,pattern:Ij,date:Oj,url:V0,hex:V0,email:V0,required:Pj,any:Bj};function H0(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var F0=H0(),Fs=function(){function e(o){this.rules=null,this._messages=F0,this.define(o)}var t=e.prototype;return t.define=function(r){var l=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var a=r[n];l.rules[n]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=F_(H0(),r)),this._messages},t.validate=function(r,l,n){var a=this;l===void 0&&(l={}),n===void 0&&(n=function(){});var i=r,c=l,u=n;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function p(h){var _=[],g={};function y(x){if(Array.isArray(x)){var M;_=(M=_).concat.apply(M,x)}else _.push(x)}for(var w=0;w");const l=Oe("form"),n=V(),a=V(0),i=()=>{var p;if((p=n.value)!=null&&p.firstElementChild){const d=window.getComputedStyle(n.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},c=(p="update")=>{et(()=>{t.default&&e.isAutoWidth&&(p==="update"?a.value=i():p==="remove"&&(o==null||o.deregisterLabelWidth(a.value)))})},u=()=>c("update");return vt(()=>{u()}),Zt(()=>{c("remove")}),$l(()=>u()),Te(a,(p,d)=>{e.updateAll&&(o==null||o.registerLabelWidth(p,d))}),jo($(()=>{var p,d;return(d=(p=n.value)==null?void 0:p.firstElementChild)!=null?d:null}),u),()=>{var p,d;if(!t)return null;const{isAutoWidth:f}=e;if(f){const v=o==null?void 0:o.autoLabelWidth,m=r==null?void 0:r.hasLabel,h={};if(m&&v&&v!=="auto"){const _=Math.max(0,Number.parseInt(v,10)-a.value),g=o.labelPosition==="left"?"marginRight":"marginLeft";_&&(h[g]=`${_}px`)}return oe("div",{ref:n,class:[l.be("item","label-wrap")],style:h},[(p=t.default)==null?void 0:p.call(t)])}else return oe(Ge,{ref:n},[(d=t.default)==null?void 0:d.call(t)])}}});const Vj=["role","aria-labelledby"],Hj=B({...B({name:"ElFormItem"}),props:Lj,setup(e,{expose:t}){const o=e,r=Bo(),l=Le(ia,void 0),n=Le(pl,void 0),a=Eo(void 0,{formItem:!1}),i=Oe("form-item"),c=dr().value,u=V([]),p=V(""),d=g7(p,100),f=V(""),v=V();let m,h=!1;const _=$(()=>{if((l==null?void 0:l.labelPosition)==="top")return{};const _e=bo(o.labelWidth||(l==null?void 0:l.labelWidth)||"");return _e?{width:_e}:{}}),g=$(()=>{if((l==null?void 0:l.labelPosition)==="top"||l!=null&&l.inline)return{};if(!o.label&&!o.labelWidth&&F)return{};const _e=bo(o.labelWidth||(l==null?void 0:l.labelWidth)||"");return!o.label&&!r.label?{marginLeft:_e}:{}}),y=$(()=>[i.b(),i.m(a.value),i.is("error",p.value==="error"),i.is("validating",p.value==="validating"),i.is("success",p.value==="success"),i.is("required",Z.value||o.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon}]),w=$(()=>Co(o.inlineMessage)?o.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),x=$(()=>[i.e("error"),{[i.em("error","inline")]:w.value}]),M=$(()=>o.prop?ft(o.prop)?o.prop:o.prop.join("."):""),T=$(()=>!!(o.label||r.label)),O=$(()=>o.for||(u.value.length===1?u.value[0]:void 0)),I=$(()=>!O.value&&T.value),F=!!n,K=$(()=>{const _e=l==null?void 0:l.model;if(!(!_e||!o.prop))return Eu(_e,o.prop).value}),R=$(()=>{const{required:_e}=o,me=[];o.rules&&me.push(...Jn(o.rules));const Be=l==null?void 0:l.rules;if(Be&&o.prop){const ye=Eu(Be,o.prop).value;ye&&me.push(...Jn(ye))}if(_e!==void 0){const ye=me.map((Me,te)=>[Me,te]).filter(([Me])=>Object.keys(Me).includes("required"));if(ye.length>0)for(const[Me,te]of ye)Me.required!==_e&&(me[te]={...Me,required:_e});else me.push({required:_e})}return me}),D=$(()=>R.value.length>0),j=_e=>R.value.filter(Be=>!Be.trigger||!_e?!0:Array.isArray(Be.trigger)?Be.trigger.includes(_e):Be.trigger===_e).map(({trigger:Be,...ye})=>ye),Z=$(()=>R.value.some(_e=>_e.required)),Q=$(()=>{var _e;return d.value==="error"&&o.showMessage&&((_e=l==null?void 0:l.showMessage)!=null?_e:!0)}),J=$(()=>`${o.label||""}${(l==null?void 0:l.labelSuffix)||""}`),L=_e=>{p.value=_e},X=_e=>{var me,Be;const{errors:ye,fields:Me}=_e;(!ye||!Me)&&console.error(_e),L("error"),f.value=ye?(Be=(me=ye==null?void 0:ye[0])==null?void 0:me.message)!=null?Be:`${o.prop} is required`:"",l==null||l.emit("validate",o.prop,!1,f.value)},N=()=>{L("success"),l==null||l.emit("validate",o.prop,!0,"")},W=async _e=>{const me=M.value;return new Fs({[me]:_e}).validate({[me]:K.value},{firstFields:!0}).then(()=>(N(),!0)).catch(ye=>(X(ye),Promise.reject(ye)))},re=async(_e,me)=>{if(h||!o.prop)return!1;const Be=ut(me);if(!D.value)return me==null||me(!1),!1;const ye=j(_e);return ye.length===0?(me==null||me(!0),!0):(L("validating"),W(ye).then(()=>(me==null||me(!0),!0)).catch(Me=>{const{fields:te}=Me;return me==null||me(!1,te),Be?!1:Promise.reject(te)}))},ie=()=>{L(""),f.value="",h=!1},se=async()=>{const _e=l==null?void 0:l.model;if(!_e||!o.prop)return;const me=Eu(_e,o.prop);h=!0,me.value=Lb(m),await et(),ie(),h=!1},ve=_e=>{u.value.includes(_e)||u.value.push(_e)},le=_e=>{u.value=u.value.filter(me=>me!==_e)};Te(()=>o.error,_e=>{f.value=_e||"",L(_e?"error":"")},{immediate:!0}),Te(()=>o.validateStatus,_e=>L(_e||""));const ge=Ft({...Ao(o),$el:v,size:a,validateState:p,labelId:c,inputIds:u,isGroup:I,hasLabel:T,addInputId:ve,removeInputId:le,resetField:se,clearValidate:ie,validate:re});return zt(pl,ge),vt(()=>{o.prop&&(l==null||l.addField(ge),m=Lb(K.value))}),Zt(()=>{l==null||l.removeField(ge)}),t({size:a,validateMessage:f,validateState:p,validate:re,clearValidate:ie,resetField:se}),(_e,me)=>{var Be;return b(),z("div",{ref_key:"formItemRef",ref:v,class:P(s(y)),role:s(I)?"group":void 0,"aria-labelledby":s(I)?s(c):void 0},[oe(s(Rj),{"is-auto-width":s(_).width==="auto","update-all":((Be=s(l))==null?void 0:Be.labelWidth)==="auto"},{default:ne(()=>[s(T)?(b(),de(St(s(O)?"label":"div"),{key:0,id:s(c),for:s(O),class:P(s(i).e("label")),style:Qe(s(_))},{default:ne(()=>[be(_e.$slots,"label",{label:s(J)},()=>[$t(ze(s(J)),1)])]),_:3},8,["id","for","class","style"])):ue("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:P(s(i).e("content")),style:Qe(s(g))},[be(_e.$slots,"default"),oe(_g,{name:`${s(i).namespace.value}-zoom-in-top`},{default:ne(()=>[s(Q)?be(_e.$slots,"error",{key:0,error:f.value},()=>[E("div",{class:P(s(x))},ze(f.value),3)]):ue("v-if",!0)]),_:3},8,["name"])],6)],10,Vj)}}});var W_=Fe(Hj,[["__file","form-item.vue"]]);const Fj=xt(ZD,{FormItem:W_}),Dj=fo(W_);let Wr;const jj=` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),n=new RegExp("(?:^"+o+"$)|(?:^"+l+"$)"),a=new RegExp("^"+o+"$"),i=new RegExp("^"+l+"$"),c=function(x){return x&&x.exact?n:new RegExp("(?:"+t(x)+o+t(x)+")|(?:"+t(x)+l+t(x)+")","g")};c.v4=function(w){return w&&w.exact?a:new RegExp(""+t(w)+o+t(w),"g")},c.v6=function(w){return w&&w.exact?i:new RegExp(""+t(w)+l+t(w),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",p=c.v4().source,f=c.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+d+"(?:localhost|"+p+"|"+f+"|"+v+m+h+")"+_+g;return Zu=new RegExp("(?:^"+y+"$)","i"),Zu},Q_={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Vs={integer:function(t){return Vs.number(t)&&parseInt(t,10)===t},float:function(t){return Vs.number(t)&&!Vs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Vs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Q_.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Rj())},hex:function(t){return typeof t=="string"&&!!t.match(Q_.hex)}},Vj=function(t,o,r,l,n){if(t.required&&o===void 0){J_(t,o,r,l,n);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],i=t.type;a.indexOf(i)>-1?Vs[i](o)||l.push(_r(n.messages.types[i],t.fullField,t.type)):i&&typeof o!==t.type&&l.push(_r(n.messages.types[i],t.fullField,t.type))},Hj=function(t,o,r,l,n){var a=typeof t.len=="number",i=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=o,p=null,f=typeof o=="number",v=typeof o=="string",m=Array.isArray(o);if(f?p="number":v?p="string":m&&(p="array"),!p)return!1;m&&(d=o.length),v&&(d=o.replace(u,"_").length),a?d!==t.len&&l.push(_r(n.messages[p].len,t.fullField,t.len)):i&&!c&&dt.max?l.push(_r(n.messages[p].max,t.fullField,t.max)):i&&c&&(dt.max)&&l.push(_r(n.messages[p].range,t.fullField,t.min,t.max))},ii="enum",Fj=function(t,o,r,l,n){t[ii]=Array.isArray(t[ii])?t[ii]:[],t[ii].indexOf(o)===-1&&l.push(_r(n.messages[ii],t.fullField,t[ii].join(", ")))},Dj=function(t,o,r,l,n){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(o)||l.push(_r(n.messages.pattern.mismatch,t.fullField,o,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(o)||l.push(_r(n.messages.pattern.mismatch,t.fullField,o,t.pattern))}}},Ut={required:J_,whitespace:Lj,type:Vj,range:Hj,enum:Fj,pattern:Dj},jj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o,"string")&&!t.required)return r();Ut.required(t,o,l,a,n,"string"),Io(o,"string")||(Ut.type(t,o,l,a,n),Ut.range(t,o,l,a,n),Ut.pattern(t,o,l,a,n),t.whitespace===!0&&Ut.whitespace(t,o,l,a,n))}r(a)},Kj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&Ut.type(t,o,l,a,n)}r(a)},Wj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(o===""&&(o=void 0),Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&(Ut.type(t,o,l,a,n),Ut.range(t,o,l,a,n))}r(a)},Uj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&Ut.type(t,o,l,a,n)}r(a)},qj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),Io(o)||Ut.type(t,o,l,a,n)}r(a)},Yj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&(Ut.type(t,o,l,a,n),Ut.range(t,o,l,a,n))}r(a)},Gj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&(Ut.type(t,o,l,a,n),Ut.range(t,o,l,a,n))}r(a)},Xj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(o==null&&!t.required)return r();Ut.required(t,o,l,a,n,"array"),o!=null&&(Ut.type(t,o,l,a,n),Ut.range(t,o,l,a,n))}r(a)},Zj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&Ut.type(t,o,l,a,n)}r(a)},Jj="enum",Qj=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n),o!==void 0&&Ut[Jj](t,o,l,a,n)}r(a)},eK=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o,"string")&&!t.required)return r();Ut.required(t,o,l,a,n),Io(o,"string")||Ut.pattern(t,o,l,a,n)}r(a)},tK=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o,"date")&&!t.required)return r();if(Ut.required(t,o,l,a,n),!Io(o,"date")){var c;o instanceof Date?c=o:c=new Date(o),Ut.type(t,c,l,a,n),c&&Ut.range(t,c.getTime(),l,a,n)}}r(a)},oK=function(t,o,r,l,n){var a=[],i=Array.isArray(o)?"array":typeof o;Ut.required(t,o,l,a,n,i),r(a)},W0=function(t,o,r,l,n){var a=t.type,i=[],c=t.required||!t.required&&l.hasOwnProperty(t.field);if(c){if(Io(o,a)&&!t.required)return r();Ut.required(t,o,l,i,n,a),Io(o,a)||Ut.type(t,o,l,i,n)}r(i)},rK=function(t,o,r,l,n){var a=[],i=t.required||!t.required&&l.hasOwnProperty(t.field);if(i){if(Io(o)&&!t.required)return r();Ut.required(t,o,l,a,n)}r(a)},Hs={string:jj,method:Kj,number:Wj,boolean:Uj,regexp:qj,integer:Yj,float:Gj,array:Xj,object:Zj,enum:Qj,pattern:eK,date:tK,url:W0,hex:W0,email:W0,required:oK,any:rK};function U0(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var q0=U0(),Fs=function(){function e(o){this.rules=null,this._messages=q0,this.define(o)}var t=e.prototype;return t.define=function(r){var l=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var a=r[n];l.rules[n]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Z_(U0(),r)),this._messages},t.validate=function(r,l,n){var a=this;l===void 0&&(l={}),n===void 0&&(n=function(){});var i=r,c=l,u=n;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,i),Promise.resolve(i);function d(h){var _=[],g={};function y(x){if(Array.isArray(x)){var M;_=(M=_).concat.apply(M,x)}else _.push(x)}for(var w=0;w");const l=Ie("form"),n=V(),a=V(0),i=()=>{var d;if((d=n.value)!=null&&d.firstElementChild){const p=window.getComputedStyle(n.value.firstElementChild).width;return Math.ceil(Number.parseFloat(p))}else return 0},c=(d="update")=>{et(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=i():d==="remove"&&(o==null||o.deregisterLabelWidth(a.value)))})},u=()=>c("update");return vt(()=>{u()}),Zt(()=>{c("remove")}),Tl(()=>u()),Te(a,(d,p)=>{e.updateAll&&(o==null||o.registerLabelWidth(d,p))}),jo(T(()=>{var d,p;return(p=(d=n.value)==null?void 0:d.firstElementChild)!=null?p:null}),u),()=>{var d,p;if(!t)return null;const{isAutoWidth:f}=e;if(f){const v=o==null?void 0:o.autoLabelWidth,m=r==null?void 0:r.hasLabel,h={};if(m&&v&&v!=="auto"){const _=Math.max(0,Number.parseInt(v,10)-a.value),g=o.labelPosition==="left"?"marginRight":"marginLeft";_&&(h[g]=`${_}px`)}return oe("div",{ref:n,class:[l.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return oe(Xe,{ref:n},[(p=t.default)==null?void 0:p.call(t)])}}});const iK=["role","aria-labelledby"],sK=B({...B({name:"ElFormItem"}),props:nK,setup(e,{expose:t}){const o=e,r=Bo(),l=Le(sa,void 0),n=Le(fl,void 0),a=Eo(void 0,{formItem:!1}),i=Ie("form-item"),c=dr().value,u=V([]),d=V(""),p=V7(d,100),f=V(""),v=V();let m,h=!1;const _=T(()=>{if((l==null?void 0:l.labelPosition)==="top")return{};const _e=bo(o.labelWidth||(l==null?void 0:l.labelWidth)||"");return _e?{width:_e}:{}}),g=T(()=>{if((l==null?void 0:l.labelPosition)==="top"||l!=null&&l.inline)return{};if(!o.label&&!o.labelWidth&&F)return{};const _e=bo(o.labelWidth||(l==null?void 0:l.labelWidth)||"");return!o.label&&!r.label?{marginLeft:_e}:{}}),y=T(()=>[i.b(),i.m(a.value),i.is("error",d.value==="error"),i.is("validating",d.value==="validating"),i.is("success",d.value==="success"),i.is("required",Z.value||o.required),i.is("no-asterisk",l==null?void 0:l.hideRequiredAsterisk),(l==null?void 0:l.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[i.m("feedback")]:l==null?void 0:l.statusIcon}]),w=T(()=>Co(o.inlineMessage)?o.inlineMessage:(l==null?void 0:l.inlineMessage)||!1),x=T(()=>[i.e("error"),{[i.em("error","inline")]:w.value}]),M=T(()=>o.prop?ft(o.prop)?o.prop:o.prop.join("."):""),E=T(()=>!!(o.label||r.label)),I=T(()=>o.for||(u.value.length===1?u.value[0]:void 0)),O=T(()=>!I.value&&E.value),F=!!n,K=T(()=>{const _e=l==null?void 0:l.model;if(!(!_e||!o.prop))return zu(_e,o.prop).value}),R=T(()=>{const{required:_e}=o,me=[];o.rules&&me.push(...Qn(o.rules));const Be=l==null?void 0:l.rules;if(Be&&o.prop){const ye=zu(Be,o.prop).value;ye&&me.push(...Qn(ye))}if(_e!==void 0){const ye=me.map((Me,te)=>[Me,te]).filter(([Me])=>Object.keys(Me).includes("required"));if(ye.length>0)for(const[Me,te]of ye)Me.required!==_e&&(me[te]={...Me,required:_e});else me.push({required:_e})}return me}),D=T(()=>R.value.length>0),j=_e=>R.value.filter(Be=>!Be.trigger||!_e?!0:Array.isArray(Be.trigger)?Be.trigger.includes(_e):Be.trigger===_e).map(({trigger:Be,...ye})=>ye),Z=T(()=>R.value.some(_e=>_e.required)),Q=T(()=>{var _e;return p.value==="error"&&o.showMessage&&((_e=l==null?void 0:l.showMessage)!=null?_e:!0)}),J=T(()=>`${o.label||""}${(l==null?void 0:l.labelSuffix)||""}`),L=_e=>{d.value=_e},X=_e=>{var me,Be;const{errors:ye,fields:Me}=_e;(!ye||!Me)&&console.error(_e),L("error"),f.value=ye?(Be=(me=ye==null?void 0:ye[0])==null?void 0:me.message)!=null?Be:`${o.prop} is required`:"",l==null||l.emit("validate",o.prop,!1,f.value)},N=()=>{L("success"),l==null||l.emit("validate",o.prop,!0,"")},W=async _e=>{const me=M.value;return new Fs({[me]:_e}).validate({[me]:K.value},{firstFields:!0}).then(()=>(N(),!0)).catch(ye=>(X(ye),Promise.reject(ye)))},re=async(_e,me)=>{if(h||!o.prop)return!1;const Be=ut(me);if(!D.value)return me==null||me(!1),!1;const ye=j(_e);return ye.length===0?(me==null||me(!0),!0):(L("validating"),W(ye).then(()=>(me==null||me(!0),!0)).catch(Me=>{const{fields:te}=Me;return me==null||me(!1,te),Be?!1:Promise.reject(te)}))},ie=()=>{L(""),f.value="",h=!1},se=async()=>{const _e=l==null?void 0:l.model;if(!_e||!o.prop)return;const me=zu(_e,o.prop);h=!0,me.value=qb(m),await et(),ie(),h=!1},ve=_e=>{u.value.includes(_e)||u.value.push(_e)},le=_e=>{u.value=u.value.filter(me=>me!==_e)};Te(()=>o.error,_e=>{f.value=_e||"",L(_e?"error":"")},{immediate:!0}),Te(()=>o.validateStatus,_e=>L(_e||""));const ge=Ft({...Ao(o),$el:v,size:a,validateState:d,labelId:c,inputIds:u,isGroup:O,hasLabel:E,addInputId:ve,removeInputId:le,resetField:se,clearValidate:ie,validate:re});return zt(fl,ge),vt(()=>{o.prop&&(l==null||l.addField(ge),m=qb(K.value))}),Zt(()=>{l==null||l.removeField(ge)}),t({size:a,validateMessage:f,validateState:d,validate:re,clearValidate:ie,resetField:se}),(_e,me)=>{var Be;return b(),z("div",{ref_key:"formItemRef",ref:v,class:P(s(y)),role:s(O)?"group":void 0,"aria-labelledby":s(O)?s(c):void 0},[oe(s(aK),{"is-auto-width":s(_).width==="auto","update-all":((Be=s(l))==null?void 0:Be.labelWidth)==="auto"},{default:ne(()=>[s(E)?(b(),de(St(s(I)?"label":"div"),{key:0,id:s(c),for:s(I),class:P(s(i).e("label")),style:Qe(s(_))},{default:ne(()=>[be(_e.$slots,"label",{label:s(J)},()=>[$t(ze(s(J)),1)])]),_:3},8,["id","for","class","style"])):ue("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),$("div",{class:P(s(i).e("content")),style:Qe(s(g))},[be(_e.$slots,"default"),oe(Sg,{name:`${s(i).namespace.value}-zoom-in-top`},{default:ne(()=>[s(Q)?be(_e.$slots,"error",{key:0,error:f.value},()=>[$("div",{class:P(s(x))},ze(f.value),3)]):ue("v-if",!0)]),_:3},8,["name"])],6)],10,iK)}}});var t6=Fe(sK,[["__file","form-item.vue"]]);const cK=xt(_j,{FormItem:t6}),uK=fo(t6);let Yr;const dK=` height:0 !important; visibility:hidden !important; - ${L1()?"":"overflow:hidden !important;"} + ${q1()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; -`,Kj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Wj(e){const t=window.getComputedStyle(e),o=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Kj.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:l,boxSizing:o}}function U_(e,t=1,o){var r;Wr||(Wr=document.createElement("textarea"),document.body.appendChild(Wr));const{paddingSize:l,borderSize:n,boxSizing:a,contextStyle:i}=Wj(e);Wr.setAttribute("style",`${i};${jj}`),Wr.value=e.value||e.placeholder||"";let c=Wr.scrollHeight;const u={};a==="border-box"?c=c+n:a==="content-box"&&(c=c-l),Wr.value="";const p=Wr.scrollHeight-l;if(ct(t)){let d=p*t;a==="border-box"&&(d=d+l+n),c=Math.max(d,c),u.minHeight=`${d}px`}if(ct(o)){let d=p*o;a==="border-box"&&(d=d+l+n),c=Math.min(d,c)}return u.height=`${c}px`,(r=Wr.parentNode)==null||r.removeChild(Wr),Wr=void 0,u}const Uj=He({id:{type:String,default:void 0},size:No,disabled:Boolean,modelValue:{type:pe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:pe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ut},prefixIcon:{type:Ut},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:pe([Object,Array,String]),default:()=>ro({})},autofocus:{type:Boolean,default:!1}}),qj={[kt]:e=>ft(e),input:e=>ft(e),change:e=>ft(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Yj=["role"],Gj=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Xj=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Zj=B({...B({name:"ElInput",inheritAttrs:!1}),props:Uj,emits:qj,setup(e,{expose:t,emit:o}){const r=e,l=Hn(),n=Bo(),a=$(()=>{const Ee={};return r.containerRole==="combobox"&&(Ee["aria-haspopup"]=l["aria-haspopup"],Ee["aria-owns"]=l["aria-owns"],Ee["aria-expanded"]=l["aria-expanded"]),Ee}),i=$(()=>[r.type==="textarea"?_.b():h.b(),h.m(v.value),h.is("disabled",m.value),h.is("exceed",ve.value),{[h.b("group")]:n.prepend||n.append,[h.bm("group","append")]:n.append,[h.bm("group","prepend")]:n.prepend,[h.m("prefix")]:n.prefix||r.prefixIcon,[h.m("suffix")]:n.suffix||r.suffixIcon||r.clearable||r.showPassword,[h.bm("suffix","password-clear")]:W.value&&re.value},l.class]),c=$(()=>[h.e("wrapper"),h.is("focus",K.value)]),u=f0({excludeKeys:$(()=>Object.keys(a.value))}),{form:p,formItem:d}=Qo(),{inputId:f}=Cn(r,{formItemContext:d}),v=Eo(),m=pr(),h=Oe("input"),_=Oe("textarea"),g=qt(),y=qt(),w=V(!1),x=V(!1),M=V(!1),T=V(),O=qt(r.inputStyle),I=$(()=>g.value||y.value),{wrapperRef:F,isFocused:K,handleFocus:R,handleBlur:D}=A_(I,{afterBlur(){var Ee;r.validateEvent&&((Ee=d==null?void 0:d.validate)==null||Ee.call(d,"blur").catch(We=>void 0))}}),j=$(()=>{var Ee;return(Ee=p==null?void 0:p.statusIcon)!=null?Ee:!1}),Z=$(()=>(d==null?void 0:d.validateState)||""),Q=$(()=>Z.value&&c0[Z.value]),J=$(()=>M.value?k3:d3),L=$(()=>[l.style,r.inputStyle]),X=$(()=>[r.inputStyle,O.value,{resize:r.resize}]),N=$(()=>wo(r.modelValue)?"":String(r.modelValue)),W=$(()=>r.clearable&&!m.value&&!r.readonly&&!!N.value&&(K.value||w.value)),re=$(()=>r.showPassword&&!m.value&&!r.readonly&&!!N.value&&(!!N.value||K.value)),ie=$(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),se=$(()=>N.value.length),ve=$(()=>!!ie.value&&se.value>Number(u.value.maxlength)),le=$(()=>!!n.suffix||!!r.suffixIcon||W.value||r.showPassword||ie.value||!!Z.value&&j.value),[ge,_e]=SD(g);jo(y,Ee=>{if(ye(),!ie.value||r.resize!=="both")return;const We=Ee[0],{width:nt}=We.contentRect;T.value={right:`calc(100% - ${nt+15+6}px)`}});const me=()=>{const{type:Ee,autosize:We}=r;if(!(!Bt||Ee!=="textarea"||!y.value))if(We){const nt=Ct(We)?We.minRows:void 0,dt=Ct(We)?We.maxRows:void 0,gt=U_(y.value,nt,dt);O.value={overflowY:"hidden",...gt},et(()=>{y.value.offsetHeight,O.value=gt})}else O.value={minHeight:U_(y.value).minHeight}},ye=(Ee=>{let We=!1;return()=>{var nt;if(We||!r.autosize)return;((nt=y.value)==null?void 0:nt.offsetParent)===null||(Ee(),We=!0)}})(me),Me=()=>{const Ee=I.value,We=r.formatter?r.formatter(N.value):N.value;!Ee||Ee.value===We||(Ee.value=We)},te=async Ee=>{ge();let{value:We}=Ee.target;if(r.formatter&&(We=r.parser?r.parser(We):We),!x.value){if(We===N.value){Me();return}o(kt,We),o("input",We),await et(),Me(),_e()}},ce=Ee=>{o("change",Ee.target.value)},we=Ee=>{o("compositionstart",Ee),x.value=!0},Ae=Ee=>{var We;o("compositionupdate",Ee);const nt=(We=Ee.target)==null?void 0:We.value,dt=nt[nt.length-1]||"";x.value=!Iu(dt)},Ie=Ee=>{o("compositionend",Ee),x.value&&(x.value=!1,te(Ee))},xe=()=>{M.value=!M.value,Ne()},Ne=async()=>{var Ee;await et(),(Ee=I.value)==null||Ee.focus()},Se=()=>{var Ee;return(Ee=I.value)==null?void 0:Ee.blur()},ke=Ee=>{w.value=!1,o("mouseleave",Ee)},$e=Ee=>{w.value=!0,o("mouseenter",Ee)},Pe=Ee=>{o("keydown",Ee)},qe=()=>{var Ee;(Ee=I.value)==null||Ee.select()},Ke=()=>{o(kt,""),o("change",""),o("clear"),o("input","")};return Te(()=>r.modelValue,()=>{var Ee;et(()=>me()),r.validateEvent&&((Ee=d==null?void 0:d.validate)==null||Ee.call(d,"change").catch(We=>void 0))}),Te(N,()=>Me()),Te(()=>r.type,async()=>{await et(),Me(),me()}),vt(()=>{!r.formatter&&r.parser,Me(),et(me)}),t({input:g,textarea:y,ref:I,textareaStyle:X,autosize:so(r,"autosize"),focus:Ne,blur:Se,select:qe,clear:Ke,resizeTextarea:me}),(Ee,We)=>ht((b(),z("div",Et(s(a),{class:s(i),style:s(L),role:Ee.containerRole,onMouseenter:$e,onMouseleave:ke}),[ue(" input "),Ee.type!=="textarea"?(b(),z(Ge,{key:0},[ue(" prepend slot "),Ee.$slots.prepend?(b(),z("div",{key:0,class:P(s(h).be("group","prepend"))},[be(Ee.$slots,"prepend")],2)):ue("v-if",!0),E("div",{ref_key:"wrapperRef",ref:F,class:P(s(c))},[ue(" prefix slot "),Ee.$slots.prefix||Ee.prefixIcon?(b(),z("span",{key:0,class:P(s(h).e("prefix"))},[E("span",{class:P(s(h).e("prefix-inner"))},[be(Ee.$slots,"prefix"),Ee.prefixIcon?(b(),de(s(Je),{key:0,class:P(s(h).e("icon"))},{default:ne(()=>[(b(),de(St(Ee.prefixIcon)))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)):ue("v-if",!0),E("input",Et({id:s(f),ref_key:"input",ref:g,class:s(h).e("inner")},s(u),{type:Ee.showPassword?M.value?"text":"password":Ee.type,disabled:s(m),formatter:Ee.formatter,parser:Ee.parser,readonly:Ee.readonly,autocomplete:Ee.autocomplete,tabindex:Ee.tabindex,"aria-label":Ee.label,placeholder:Ee.placeholder,style:Ee.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:we,onCompositionupdate:Ae,onCompositionend:Ie,onInput:te,onFocus:We[0]||(We[0]=(...nt)=>s(R)&&s(R)(...nt)),onBlur:We[1]||(We[1]=(...nt)=>s(D)&&s(D)(...nt)),onChange:ce,onKeydown:Pe}),null,16,Gj),ue(" suffix slot "),s(le)?(b(),z("span",{key:1,class:P(s(h).e("suffix"))},[E("span",{class:P(s(h).e("suffix-inner"))},[!s(W)||!s(re)||!s(ie)?(b(),z(Ge,{key:0},[be(Ee.$slots,"suffix"),Ee.suffixIcon?(b(),de(s(Je),{key:0,class:P(s(h).e("icon"))},{default:ne(()=>[(b(),de(St(Ee.suffixIcon)))]),_:1},8,["class"])):ue("v-if",!0)],64)):ue("v-if",!0),s(W)?(b(),de(s(Je),{key:1,class:P([s(h).e("icon"),s(h).e("clear")]),onMousedown:it(s(Dt),["prevent"]),onClick:Ke},{default:ne(()=>[oe(s(Ll))]),_:1},8,["class","onMousedown"])):ue("v-if",!0),s(re)?(b(),de(s(Je),{key:2,class:P([s(h).e("icon"),s(h).e("password")]),onClick:xe},{default:ne(()=>[(b(),de(St(s(J))))]),_:1},8,["class"])):ue("v-if",!0),s(ie)?(b(),z("span",{key:3,class:P(s(h).e("count"))},[E("span",{class:P(s(h).e("count-inner"))},ze(s(se))+" / "+ze(s(u).maxlength),3)],2)):ue("v-if",!0),s(Z)&&s(Q)&&s(j)?(b(),de(s(Je),{key:4,class:P([s(h).e("icon"),s(h).e("validateIcon"),s(h).is("loading",s(Z)==="validating")])},{default:ne(()=>[(b(),de(St(s(Q))))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)):ue("v-if",!0)],2),ue(" append slot "),Ee.$slots.append?(b(),z("div",{key:1,class:P(s(h).be("group","append"))},[be(Ee.$slots,"append")],2)):ue("v-if",!0)],64)):(b(),z(Ge,{key:1},[ue(" textarea "),E("textarea",Et({id:s(f),ref_key:"textarea",ref:y,class:s(_).e("inner")},s(u),{tabindex:Ee.tabindex,disabled:s(m),readonly:Ee.readonly,autocomplete:Ee.autocomplete,style:s(X),"aria-label":Ee.label,placeholder:Ee.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:we,onCompositionupdate:Ae,onCompositionend:Ie,onInput:te,onFocus:We[2]||(We[2]=(...nt)=>s(R)&&s(R)(...nt)),onBlur:We[3]||(We[3]=(...nt)=>s(D)&&s(D)(...nt)),onChange:ce,onKeydown:Pe}),null,16,Xj),s(ie)?(b(),z("span",{key:0,style:Qe(T.value),class:P(s(h).e("count"))},ze(s(se))+" / "+ze(s(u).maxlength),7)):ue("v-if",!0)],64))],16,Yj)),[[Pt,Ee.type!=="hidden"]])}});var Jj=Fe(Zj,[["__file","input.vue"]]);const Wo=xt(Jj),ii=4,q_={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Qj=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Y_=Symbol("scrollbarContextKey"),eK=He({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),tK="Thumb";var G_=Fe(B({__name:"thumb",props:eK,setup(e){const t=e,o=Le(Y_),r=Oe("scrollbar");o||So(tK,"can not inject scrollbar context");const l=V(),n=V(),a=V({}),i=V(!1);let c=!1,u=!1,p=Bt?document.onselectstart:null;const d=$(()=>q_[t.vertical?"vertical":"horizontal"]),f=$(()=>Qj({size:t.size,move:t.move,bar:d.value})),v=$(()=>l.value[d.value.offset]**2/o.wrapElement[d.value.scrollSize]/t.ratio/n.value[d.value.offset]),m=T=>{var O;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(O=window.getSelection())==null||O.removeAllRanges(),_(T);const I=T.currentTarget;I&&(a.value[d.value.axis]=I[d.value.offset]-(T[d.value.client]-I.getBoundingClientRect()[d.value.direction]))},h=T=>{if(!n.value||!l.value||!o.wrapElement)return;const O=Math.abs(T.target.getBoundingClientRect()[d.value.direction]-T[d.value.client]),I=n.value[d.value.offset]/2,F=(O-I)*100*v.value/l.value[d.value.offset];o.wrapElement[d.value.scroll]=F*o.wrapElement[d.value.scrollSize]/100},_=T=>{T.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),p=document.onselectstart,document.onselectstart=()=>!1},g=T=>{if(!l.value||!n.value||c===!1)return;const O=a.value[d.value.axis];if(!O)return;const I=(l.value.getBoundingClientRect()[d.value.direction]-T[d.value.client])*-1,F=n.value[d.value.offset]-O,K=(I-F)*100*v.value/l.value[d.value.offset];o.wrapElement[d.value.scroll]=K*o.wrapElement[d.value.scrollSize]/100},y=()=>{c=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),M(),u&&(i.value=!1)},w=()=>{u=!1,i.value=!!t.size},x=()=>{u=!0,i.value=c};Zt(()=>{M(),document.removeEventListener("mouseup",y)});const M=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return eo(so(o,"scrollbarElement"),"mousemove",w),eo(so(o,"scrollbarElement"),"mouseleave",x),(T,O)=>(b(),de(_o,{name:s(r).b("fade"),persisted:""},{default:ne(()=>[ht(E("div",{ref_key:"instance",ref:l,class:P([s(r).e("bar"),s(r).is(s(d).key)]),onMousedown:h},[E("div",{ref_key:"thumb",ref:n,class:P(s(r).e("thumb")),style:Qe(s(f)),onMousedown:m},null,38)],34),[[Pt,T.always||i.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const oK=He({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var rK=Fe(B({__name:"bar",props:oK,setup(e,{expose:t}){const o=e,r=V(0),l=V(0);return t({handleScroll:a=>{if(a){const i=a.offsetHeight-ii,c=a.offsetWidth-ii;l.value=a.scrollTop*100/i*o.ratioY,r.value=a.scrollLeft*100/c*o.ratioX}}}),(a,i)=>(b(),z(Ge,null,[oe(G_,{move:r.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),oe(G_,{move:l.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const lK=He({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:pe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),nK=B({...B({name:"ElScrollbar"}),props:lK,emits:{scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ct)},setup(e,{expose:t,emit:o}){const r=e,l=Oe("scrollbar");let n,a;const i=V(),c=V(),u=V(),p=V("0"),d=V("0"),f=V(),v=V(1),m=V(1),h=$(()=>{const O={};return r.height&&(O.height=bo(r.height)),r.maxHeight&&(O.maxHeight=bo(r.maxHeight)),[r.wrapStyle,O]}),_=$(()=>[r.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!r.native}]),g=$(()=>[l.e("view"),r.viewClass]),y=()=>{var O;c.value&&((O=f.value)==null||O.handleScroll(c.value),o("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function w(O,I){Ct(O)?c.value.scrollTo(O):ct(O)&&ct(I)&&c.value.scrollTo(O,I)}const x=O=>{ct(O)&&(c.value.scrollTop=O)},M=O=>{ct(O)&&(c.value.scrollLeft=O)},T=()=>{if(!c.value)return;const O=c.value.offsetHeight-ii,I=c.value.offsetWidth-ii,F=O**2/c.value.scrollHeight,K=I**2/c.value.scrollWidth,R=Math.max(F,r.minSize),D=Math.max(K,r.minSize);v.value=F/(O-F)/(R/(O-R)),m.value=K/(I-K)/(D/(I-D)),d.value=R+iir.noresize,O=>{O?(n==null||n(),a==null||a()):({stop:n}=jo(u,T),a=eo("resize",T))},{immediate:!0}),Te(()=>[r.maxHeight,r.height],()=>{r.native||et(()=>{var O;T(),c.value&&((O=f.value)==null||O.handleScroll(c.value))})}),zt(Y_,Ft({scrollbarElement:i,wrapElement:c})),vt(()=>{r.native||et(()=>{T()})}),$l(()=>T()),t({wrapRef:c,update:T,scrollTo:w,setScrollTop:x,setScrollLeft:M,handleScroll:y}),(O,I)=>(b(),z("div",{ref_key:"scrollbarRef",ref:i,class:P(s(l).b())},[E("div",{ref_key:"wrapRef",ref:c,class:P(s(_)),style:Qe(s(h)),onScroll:y},[(b(),de(St(O.tag),{id:O.id,ref_key:"resizeRef",ref:u,class:P(s(g)),style:Qe(O.viewStyle),role:O.role,"aria-label":O.ariaLabel,"aria-orientation":O.ariaOrientation},{default:ne(()=>[be(O.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),O.native?ue("v-if",!0):(b(),de(rK,{key:0,ref_key:"barRef",ref:f,height:d.value,width:p.value,always:O.always,"ratio-x":m.value,"ratio-y":v.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var aK=Fe(nK,[["__file","scrollbar.vue"]]);const Kl=xt(aK),D0=Symbol("popper"),X_=Symbol("popperContent"),Z_=He({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),iK=B({...B({name:"ElPopper",inheritAttrs:!1}),props:Z_,setup(e,{expose:t}){const o=e,r=V(),l=V(),n=V(),a=V(),i=$(()=>o.role),c={triggerRef:r,popperInstanceRef:l,contentRef:n,referenceRef:a,role:i};return t(c),zt(D0,c),(u,p)=>be(u.$slots,"default")}});var sK=Fe(iK,[["__file","popper.vue"]]);const J_=He({arrowOffset:{type:Number,default:5}}),cK=B({...B({name:"ElPopperArrow",inheritAttrs:!1}),props:J_,setup(e,{expose:t}){const o=e,r=Oe("popper"),{arrowOffset:l,arrowRef:n,arrowStyle:a}=Le(X_,void 0);return Te(()=>o.arrowOffset,i=>{l.value=i}),Zt(()=>{n.value=void 0}),t({arrowRef:n}),(i,c)=>(b(),z("span",{ref_key:"arrowRef",ref:n,class:P(s(r).e("arrow")),style:Qe(s(a)),"data-popper-arrow":""},null,6))}});var uK=Fe(cK,[["__file","arrow.vue"]]);const Q_=B({name:"ElOnlyChild",setup(e,{slots:t,attrs:o}){var r;const l=Le(u_),n=XF((r=l==null?void 0:l.setForwardRef)!=null?r:Dt);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,o);if(!i||i.length>1)return null;const c=e6(i);return c?ht(Tl(c,o),[[n]]):null}}});function e6(e){if(!e)return null;const t=e;for(const o of t){if(Ct(o))switch(o.type){case Yo:continue;case Oa:case"svg":return t6(o);case Ge:return e6(o.children);default:return o}return t6(o)}return null}function t6(e){const t=Oe("only-child");return oe("span",{class:t.e("content")},[e])}const o6=He({virtualRef:{type:pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:pe(Function)},onMouseleave:{type:pe(Function)},onClick:{type:pe(Function)},onKeydown:{type:pe(Function)},onFocus:{type:pe(Function)},onBlur:{type:pe(Function)},onContextmenu:{type:pe(Function)},id:String,open:Boolean}),dK=B({...B({name:"ElPopperTrigger",inheritAttrs:!1}),props:o6,setup(e,{expose:t}){const o=e,{role:r,triggerRef:l}=Le(D0,void 0);GF(l);const n=$(()=>i.value?o.id:void 0),a=$(()=>{if(r&&r.value==="tooltip")return o.open&&o.id?o.id:void 0}),i=$(()=>{if(r&&r.value!=="tooltip")return r.value}),c=$(()=>i.value?`${o.open}`:void 0);let u;return vt(()=>{Te(()=>o.virtualRef,p=>{p&&(l.value=ar(p))},{immediate:!0}),Te(l,(p,d)=>{u==null||u(),u=void 0,zr(p)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var v;const m=o[f];m&&(p.addEventListener(f.slice(2).toLowerCase(),m),(v=d==null?void 0:d.removeEventListener)==null||v.call(d,f.slice(2).toLowerCase(),m))}),u=Te([n,a,i,c],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{wo(f[m])?p.removeAttribute(v):p.setAttribute(v,f[m])})},{immediate:!0})),zr(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),Zt(()=>{u==null||u(),u=void 0}),t({triggerRef:l}),(p,d)=>p.virtualTriggering?ue("v-if",!0):(b(),de(s(Q_),Et({key:0},p.$attrs,{"aria-controls":s(n),"aria-describedby":s(a),"aria-expanded":s(c),"aria-haspopup":s(i)}),{default:ne(()=>[be(p.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var pK=Fe(dK,[["__file","trigger.vue"]]);const j0="focus-trap.focus-after-trapped",K0="focus-trap.focus-after-released",fK="focus-trap.focusout-prevented",r6={cancelable:!0,bubbles:!1},hK={cancelable:!0,bubbles:!1},l6="focusAfterTrapped",n6="focusAfterReleased",W0=Symbol("elFocusTrap"),U0=V(),Gu=V(0),q0=V(0);let Xu=0;const a6=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const l=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||l?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},i6=(e,t)=>{for(const o of e)if(!vK(o,t))return o},vK=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},mK=e=>{const t=a6(e),o=i6(t,e),r=i6(t.reverse(),e);return[o,r]},gK=e=>e instanceof HTMLInputElement&&"select"in e,Sn=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),q0.value=window.performance.now(),e!==o&&gK(e)&&t&&e.select()}};function s6(e,t){const o=[...e],r=e.indexOf(t);return r!==-1&&o.splice(r,1),o}const bK=()=>{let e=[];return{push:r=>{const l=e[0];l&&r!==l&&l.pause(),e=s6(e,r),e.unshift(r)},remove:r=>{var l,n;e=s6(e,r),(n=(l=e[0])==null?void 0:l.resume)==null||n.call(l)}}},_K=(e,t=!1)=>{const o=document.activeElement;for(const r of e)if(Sn(r,t),document.activeElement!==o)return},c6=bK(),wK=()=>Gu.value>q0.value,Zu=()=>{U0.value="pointer",Gu.value=window.performance.now()},u6=()=>{U0.value="keyboard",Gu.value=window.performance.now()},yK=()=>(vt(()=>{Xu===0&&(document.addEventListener("mousedown",Zu),document.addEventListener("touchstart",Zu),document.addEventListener("keydown",u6)),Xu++}),Zt(()=>{Xu--,Xu<=0&&(document.removeEventListener("mousedown",Zu),document.removeEventListener("touchstart",Zu),document.removeEventListener("keydown",u6))}),{focusReason:U0,lastUserFocusTimestamp:Gu,lastAutomatedFocusTimestamp:q0}),Ju=e=>new CustomEvent(fK,{...hK,detail:e}),xK=B({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[l6,n6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=V();let r,l;const{focusReason:n}=yK();WF(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:h,altKey:_,ctrlKey:g,metaKey:y,currentTarget:w,shiftKey:x}=m,{loop:M}=e,T=h===tt.tab&&!_&&!g&&!y,O=document.activeElement;if(T&&O){const I=w,[F,K]=mK(I);if(F&&K){if(!x&&O===K){const D=Ju({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),M&&Sn(F,!0))}else if(x&&[F,I].includes(O)){const D=Ju({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),M&&Sn(K,!0))}}else if(O===I){const D=Ju({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||m.preventDefault()}}};zt(W0,{focusTrapRef:o,onKeydown:i}),Te(()=>e.focusTrapEl,m=>{m&&(o.value=m)},{immediate:!0}),Te([o],([m],[h])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",p),m.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",p),h.removeEventListener("focusout",d))});const c=m=>{t(l6,m)},u=m=>t(n6,m),p=m=>{const h=s(o);if(!h)return;const _=m.target,g=m.relatedTarget,y=_&&h.contains(_);e.trapped||g&&h.contains(g)||(r=g),y&&t("focusin",m),!a.paused&&e.trapped&&(y?l=_:Sn(l,!0))},d=m=>{const h=s(o);if(!(a.paused||!h))if(e.trapped){const _=m.relatedTarget;!wo(_)&&!h.contains(_)&&setTimeout(()=>{if(!a.paused&&e.trapped){const g=Ju({focusReason:n.value});t("focusout-prevented",g),g.defaultPrevented||Sn(l,!0)}},0)}else{const _=m.target;_&&h.contains(_)||t("focusout",m)}};async function f(){await et();const m=s(o);if(m){c6.push(a);const h=m.contains(document.activeElement)?r:document.activeElement;if(r=h,!m.contains(h)){const g=new Event(j0,r6);m.addEventListener(j0,c),m.dispatchEvent(g),g.defaultPrevented||et(()=>{let y=e.focusStartEl;ft(y)||(Sn(y),document.activeElement!==y&&(y="first")),y==="first"&&_K(a6(m),!0),(document.activeElement===h||y==="container")&&Sn(m)})}}}function v(){const m=s(o);if(m){m.removeEventListener(j0,c);const h=new CustomEvent(K0,{...r6,detail:{focusReason:n.value}});m.addEventListener(K0,u),m.dispatchEvent(h),!h.defaultPrevented&&(n.value=="keyboard"||!wK()||m.contains(document.activeElement))&&Sn(r??document.body),m.removeEventListener(K0,u),c6.remove(a)}}return vt(()=>{e.trapped&&f(),Te(()=>e.trapped,m=>{m?f():v()})}),Zt(()=>{e.trapped&&v()}),{onKeydown:i}}});function kK(e,t,o,r,l,n){return be(e.$slots,"default",{handleKeydown:e.onKeydown})}var Qu=Fe(xK,[["render",kK],["__file","focus-trap.vue"]]);const CK=["fixed","absolute"],SK=He({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:na,default:"bottom"},popperOptions:{type:pe(Object),default:()=>({})},strategy:{type:String,values:CK,default:"absolute"}}),d6=He({...SK,id:String,style:{type:pe([String,Array,Object])},className:{type:pe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:pe([String,Array,Object])},popperStyle:{type:pe([String,Array,Object])},referenceEl:{type:pe(Object)},triggerTargetEl:{type:pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),EK={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},$K=(e,t=[])=>{const{placement:o,strategy:r,popperOptions:l}=e,n={placement:o,strategy:r,...l,modifiers:[...zK(e),...t]};return MK(n,l==null?void 0:l.modifiers),n},TK=e=>{if(Bt)return ar(e)};function zK(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function MK(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const AK=0,IK=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:r,role:l}=Le(D0,void 0),n=V(),a=V(),i=$(()=>({name:"eventListeners",enabled:!!e.visible})),c=$(()=>{var g;const y=s(n),w=(g=s(a))!=null?g:AK;return{name:"arrow",enabled:!Zb(y),options:{element:y,padding:w}}}),u=$(()=>({onFirstUpdate:()=>{m()},...$K(e,[s(c),s(i)])})),p=$(()=>TK(e.referenceEl)||s(r)),{attributes:d,state:f,styles:v,update:m,forceUpdate:h,instanceRef:_}=FF(p,o,u);return Te(_,g=>t.value=g),vt(()=>{Te(()=>{var g;return(g=s(p))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:n,contentRef:o,instanceRef:_,state:f,styles:v,role:l,forceUpdate:h,update:m}},OK=(e,{attributes:t,styles:o,role:r})=>{const{nextZIndex:l}=ti(),n=Oe("popper"),a=$(()=>s(t).popper),i=V(ct(e.zIndex)?e.zIndex:l()),c=$(()=>[n.b(),n.is("pure",e.pure),n.is(e.effect),e.popperClass]),u=$(()=>[{zIndex:s(i)},s(o).popper,e.popperStyle||{}]),p=$(()=>r.value==="dialog"?"false":void 0),d=$(()=>s(o).arrow||{});return{ariaModal:p,arrowStyle:d,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=ct(e.zIndex)?e.zIndex:l()}}},PK=(e,t)=>{const o=V(!1),r=V();return{focusStartRef:r,trapped:o,onFocusAfterReleased:u=>{var p;((p=u.detail)==null?void 0:p.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!o.value&&(u.target&&(r.value=u.target),o.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},BK=B({...B({name:"ElPopperContent"}),props:d6,emits:EK,setup(e,{expose:t,emit:o}){const r=e,{focusStartRef:l,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:p}=PK(r,o),{attributes:d,arrowRef:f,contentRef:v,styles:m,instanceRef:h,role:_,update:g}=IK(r),{ariaModal:y,arrowStyle:w,contentAttrs:x,contentClass:M,contentStyle:T,updateZIndex:O}=OK(r,{styles:m,attributes:d,role:_}),I=Le(pl,void 0),F=V();zt(X_,{arrowStyle:w,arrowRef:f,arrowOffset:F}),I&&(I.addInputId||I.removeInputId)&&zt(pl,{...I,addInputId:Dt,removeInputId:Dt});let K;const R=(j=!0)=>{g(),j&&O()},D=()=>{R(!1),r.visible&&r.focusOnShow?n.value=!0:r.visible===!1&&(n.value=!1)};return vt(()=>{Te(()=>r.triggerTargetEl,(j,Z)=>{K==null||K(),K=void 0;const Q=s(j||v.value),J=s(Z||v.value);zr(Q)&&(K=Te([_,()=>r.ariaLabel,y,()=>r.id],L=>{["role","aria-label","aria-modal","id"].forEach((X,N)=>{wo(L[N])?Q.removeAttribute(X):Q.setAttribute(X,L[N])})},{immediate:!0})),J!==Q&&zr(J)&&["role","aria-label","aria-modal","id"].forEach(L=>{J.removeAttribute(L)})},{immediate:!0}),Te(()=>r.visible,D,{immediate:!0})}),Zt(()=>{K==null||K(),K=void 0}),t({popperContentRef:v,popperInstanceRef:h,updatePopper:R,contentStyle:T}),(j,Z)=>(b(),z("div",Et({ref_key:"contentRef",ref:v},s(x),{style:s(T),class:s(M),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=Q=>j.$emit("mouseenter",Q)),onMouseleave:Z[1]||(Z[1]=Q=>j.$emit("mouseleave",Q))}),[oe(s(Qu),{trapped:s(n),"trap-on-focus-in":!0,"focus-trap-el":s(v),"focus-start-el":s(l),onFocusAfterTrapped:s(i),onFocusAfterReleased:s(a),onFocusin:s(c),onFocusoutPrevented:s(u),onReleaseRequested:s(p)},{default:ne(()=>[be(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var NK=Fe(BK,[["__file","content.vue"]]);const p6=xt(sK),ed=Symbol("elTooltip"),Lo=He({...YF,...d6,appendTo:{type:pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:pe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Ds=He({...o6,disabled:Boolean,trigger:{type:pe([String,Array]),default:"hover"},triggerKeys:{type:pe(Array),default:()=>[tt.enter,tt.space]}}),{useModelToggleProps:LK,useModelToggleEmits:RK,useModelToggle:VK}=P3("visible"),HK=He({...Z_,...LK,...Lo,...Ds,...J_,showArrow:{type:Boolean,default:!0}}),FK=[...RK,"before-show","before-hide","show","hide","open","close"],DK=(e,t)=>Ye(e)?e.includes(t):e===t,si=(e,t,o)=>r=>{DK(s(e),t)&&o(r)},jK=B({...B({name:"ElTooltipTrigger"}),props:Ds,setup(e,{expose:t}){const o=e,r=Oe("tooltip"),{controlled:l,id:n,open:a,onOpen:i,onClose:c,onToggle:u}=Le(ed,void 0),p=V(null),d=()=>{if(s(l)||o.disabled)return!0},f=so(o,"trigger"),v=uo(d,si(f,"hover",i)),m=uo(d,si(f,"hover",c)),h=uo(d,si(f,"click",x=>{x.button===0&&u(x)})),_=uo(d,si(f,"focus",i)),g=uo(d,si(f,"focus",c)),y=uo(d,si(f,"contextmenu",x=>{x.preventDefault(),u(x)})),w=uo(d,x=>{const{code:M}=x;o.triggerKeys.includes(M)&&(x.preventDefault(),u(x))});return t({triggerRef:p}),(x,M)=>(b(),de(s(pK),{id:s(n),"virtual-ref":x.virtualRef,open:s(a),"virtual-triggering":x.virtualTriggering,class:P(s(r).e("trigger")),onBlur:s(g),onClick:s(h),onContextmenu:s(y),onFocus:s(_),onMouseenter:s(v),onMouseleave:s(m),onKeydown:s(w)},{default:ne(()=>[be(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var KK=Fe(jK,[["__file","trigger.vue"]]);const WK=B({...B({name:"ElTooltipContent",inheritAttrs:!1}),props:Lo,setup(e,{expose:t}){const o=e,{selector:r}=s_(),l=Oe("tooltip"),n=V(null),a=V(!1),{controlled:i,id:c,open:u,trigger:p,onClose:d,onOpen:f,onShow:v,onHide:m,onBeforeShow:h,onBeforeHide:_}=Le(ed,void 0),g=$(()=>o.transition||`${l.namespace.value}-fade-in-linear`),y=$(()=>o.persistent);Zt(()=>{a.value=!0});const w=$(()=>s(y)?!0:s(u)),x=$(()=>o.disabled?!1:s(u)),M=$(()=>o.appendTo||r.value),T=$(()=>{var L;return(L=o.style)!=null?L:{}}),O=$(()=>!s(u)),I=()=>{m()},F=()=>{if(s(i))return!0},K=uo(F,()=>{o.enterable&&s(p)==="hover"&&f()}),R=uo(F,()=>{s(p)==="hover"&&d()}),D=()=>{var L,X;(X=(L=n.value)==null?void 0:L.updatePopper)==null||X.call(L),h==null||h()},j=()=>{_==null||_()},Z=()=>{v(),J=Cf($(()=>{var L;return(L=n.value)==null?void 0:L.popperContentRef}),()=>{if(s(i))return;s(p)!=="hover"&&d()})},Q=()=>{o.virtualTriggering||d()};let J;return Te(()=>s(u),L=>{L||J==null||J()},{flush:"post"}),Te(()=>o.content,()=>{var L,X;(X=(L=n.value)==null?void 0:L.updatePopper)==null||X.call(L)}),t({contentRef:n}),(L,X)=>(b(),de(Xi,{disabled:!L.teleported,to:s(M)},[oe(_o,{name:s(g),onAfterLeave:I,onBeforeEnter:D,onAfterEnter:Z,onBeforeLeave:j},{default:ne(()=>[s(w)?ht((b(),de(s(NK),Et({key:0,id:s(c),ref_key:"contentRef",ref:n},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":s(O),"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,s(T)],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:s(x),"z-index":L.zIndex,onMouseenter:s(K),onMouseleave:s(R),onBlur:Q,onClose:s(d)}),{default:ne(()=>[a.value?ue("v-if",!0):be(L.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Pt,s(x)]]):ue("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var UK=Fe(WK,[["__file","content.vue"]]);const qK=["innerHTML"],YK={key:1},GK=B({...B({name:"ElTooltip"}),props:HK,emits:FK,setup(e,{expose:t,emit:o}){const r=e;qF();const l=dr(),n=V(),a=V(),i=()=>{var g;const y=s(n);y&&((g=y.popperInstanceRef)==null||g.update())},c=V(!1),u=V(),{show:p,hide:d,hasUpdateHandler:f}=VK({indicator:c,toggleReason:u}),{onOpen:v,onClose:m}=c_({showAfter:so(r,"showAfter"),hideAfter:so(r,"hideAfter"),autoClose:so(r,"autoClose"),open:p,close:d}),h=$(()=>Co(r.visible)&&!f.value);zt(ed,{controlled:h,id:l,open:za(c),trigger:so(r,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{s(c)?m(g):v(g)},onShow:()=>{o("show",u.value)},onHide:()=>{o("hide",u.value)},onBeforeShow:()=>{o("before-show",u.value)},onBeforeHide:()=>{o("before-hide",u.value)},updatePopper:i}),Te(()=>r.disabled,g=>{g&&c.value&&(c.value=!1)});const _=g=>{var y,w;const x=(w=(y=a.value)==null?void 0:y.contentRef)==null?void 0:w.popperContentRef,M=(g==null?void 0:g.relatedTarget)||document.activeElement;return x&&x.contains(M)};return _m(()=>c.value&&d()),t({popperRef:n,contentRef:a,isFocusInsideContent:_,updatePopper:i,onOpen:v,onClose:m,hide:d}),(g,y)=>(b(),de(s(p6),{ref_key:"popperRef",ref:n,role:g.role},{default:ne(()=>[oe(KK,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:ne(()=>[g.$slots.default?be(g.$slots,"default",{key:0}):ue("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),oe(UK,{ref_key:"contentRef",ref:a,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:ne(()=>[be(g.$slots,"content",{},()=>[g.rawContent?(b(),z("span",{key:0,innerHTML:g.content},null,8,qK)):(b(),z("span",YK,ze(g.content),1))]),g.showArrow?(b(),de(s(uK),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ue("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var XK=Fe(GK,[["__file","tooltip.vue"]]);const er=xt(XK),ZK=He({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:pe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:pe([Function,Array]),default:Dt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Lo.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),JK={[kt]:e=>ft(e),[Jo]:e=>ft(e),[Jt]:e=>ft(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Ct(e)},QK=["aria-expanded","aria-owns"],eW={key:0},tW=["id","aria-selected","onClick"],f6="ElAutocomplete",oW=B({...B({name:f6,inheritAttrs:!1}),props:ZK,emits:JK,setup(e,{expose:t,emit:o}){const r=e,l=f0(),n=Hn(),a=pr(),i=Oe("autocomplete"),c=V(),u=V(),p=V(),d=V();let f=!1,v=!1;const m=V([]),h=V(-1),_=V(""),g=V(!1),y=V(!1),w=V(!1),x=$(()=>i.b(String(Pu()))),M=$(()=>n.style),T=$(()=>(m.value.length>0||w.value)&&g.value),O=$(()=>!r.hideLoading&&w.value),I=$(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),F=()=>{T.value&&(_.value=`${c.value.$el.offsetWidth}px`)},K=()=>{h.value=-1},D=Zo(async ge=>{if(y.value)return;const _e=me=>{w.value=!1,!y.value&&(Ye(me)?(m.value=me,h.value=r.highlightFirstItem?0:-1):So(f6,"autocomplete suggestions must be an array"))};if(w.value=!0,Ye(r.fetchSuggestions))_e(r.fetchSuggestions);else{const me=await r.fetchSuggestions(ge,_e);Ye(me)&&_e(me)}},r.debounce),j=ge=>{const _e=!!ge;if(o(Jo,ge),o(kt,ge),y.value=!1,g.value||(g.value=_e),!r.triggerOnFocus&&!ge){y.value=!0,m.value=[];return}D(ge)},Z=ge=>{var _e;a.value||(((_e=ge.target)==null?void 0:_e.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(g.value=!0)},Q=ge=>{o(Jt,ge)},J=ge=>{v?v=!1:(g.value=!0,o("focus",ge),r.triggerOnFocus&&!f&&D(String(r.modelValue)))},L=ge=>{setTimeout(()=>{var _e;if((_e=p.value)!=null&&_e.isFocusInsideContent()){v=!0;return}g.value&&re(),o("blur",ge)})},X=()=>{g.value=!1,o(kt,""),o("clear")},N=async()=>{T.value&&h.value>=0&&h.value{T.value&&(ge.preventDefault(),ge.stopPropagation(),re())},re=()=>{g.value=!1},ie=()=>{var ge;(ge=c.value)==null||ge.focus()},se=()=>{var ge;(ge=c.value)==null||ge.blur()},ve=async ge=>{o(Jo,ge[r.valueKey]),o(kt,ge[r.valueKey]),o("select",ge),m.value=[],h.value=-1},le=ge=>{if(!T.value||w.value)return;if(ge<0){h.value=-1;return}ge>=m.value.length&&(ge=m.value.length-1);const _e=u.value.querySelector(`.${i.be("suggestion","wrap")}`),Be=_e.querySelectorAll(`.${i.be("suggestion","list")} li`)[ge],ye=_e.scrollTop,{offsetTop:Me,scrollHeight:te}=Be;Me+te>ye+_e.clientHeight&&(_e.scrollTop+=te),Me{T.value&&re()}),vt(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${x.value}-item-${h.value}`),f=c.value.ref.hasAttribute("readonly")}),t({highlightedIndex:h,activated:g,loading:w,inputRef:c,popperRef:p,suggestions:m,handleSelect:ve,handleKeyEnter:N,focus:ie,blur:se,close:re,highlight:le}),(ge,_e)=>(b(),de(s(er),{ref_key:"popperRef",ref:p,visible:s(T),placement:ge.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[s(i).e("popper"),ge.popperClass],teleported:ge.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${s(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:F,onHide:K},{content:ne(()=>[E("div",{ref_key:"regionRef",ref:u,class:P([s(i).b("suggestion"),s(i).is("loading",s(O))]),style:Qe({[ge.fitInputWidth?"width":"minWidth"]:_.value,outline:"none"}),role:"region"},[oe(s(Kl),{id:s(x),tag:"ul","wrap-class":s(i).be("suggestion","wrap"),"view-class":s(i).be("suggestion","list"),role:"listbox"},{default:ne(()=>[s(O)?(b(),z("li",eW,[oe(s(Je),{class:P(s(i).is("loading"))},{default:ne(()=>[oe(s(Rl))]),_:1},8,["class"])])):(b(!0),z(Ge,{key:1},Tt(m.value,(me,Be)=>(b(),z("li",{id:`${s(x)}-item-${Be}`,key:Be,class:P({highlighted:h.value===Be}),role:"option","aria-selected":h.value===Be,onClick:ye=>ve(me)},[be(ge.$slots,"default",{item:me},()=>[$t(ze(me[ge.valueKey]),1)])],10,tW))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ne(()=>[E("div",{ref_key:"listboxRef",ref:d,class:P([s(i).b(),ge.$attrs.class]),style:Qe(s(M)),role:"combobox","aria-haspopup":"listbox","aria-expanded":s(T),"aria-owns":s(x)},[oe(s(Wo),Et({ref_key:"inputRef",ref:c},s(l),{clearable:ge.clearable,disabled:s(a),name:ge.name,"model-value":ge.modelValue,onInput:j,onChange:Q,onFocus:J,onBlur:L,onClear:X,onKeydown:[_e[0]||(_e[0]=Rt(it(me=>le(h.value-1),["prevent"]),["up"])),_e[1]||(_e[1]=Rt(it(me=>le(h.value+1),["prevent"]),["down"])),Rt(N,["enter"]),Rt(re,["tab"]),Rt(W,["esc"])],onMousedown:Z}),Jr({_:2},[ge.$slots.prepend?{name:"prepend",fn:ne(()=>[be(ge.$slots,"prepend")])}:void 0,ge.$slots.append?{name:"append",fn:ne(()=>[be(ge.$slots,"append")])}:void 0,ge.$slots.prefix?{name:"prefix",fn:ne(()=>[be(ge.$slots,"prefix")])}:void 0,ge.$slots.suffix?{name:"suffix",fn:ne(()=>[be(ge.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,QK)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var rW=Fe(oW,[["__file","autocomplete.vue"]]);const lW=xt(rW),nW=He({size:{type:[Number,String],values:il,default:"",validator:e=>ct(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Ut},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:pe(String),default:"cover"}}),aW={error:e=>e instanceof Event},iW=["src","alt","srcset"],sW=B({...B({name:"ElAvatar"}),props:nW,emits:aW,setup(e,{emit:t}){const o=e,r=Oe("avatar"),l=V(!1),n=$(()=>{const{size:u,icon:p,shape:d}=o,f=[r.b()];return ft(u)&&f.push(r.m(u)),p&&f.push(r.m("icon")),d&&f.push(r.m(d)),f}),a=$(()=>{const{size:u}=o;return ct(u)?r.cssVarBlock({size:bo(u)||""}):void 0}),i=$(()=>({objectFit:o.fit}));Te(()=>o.src,()=>l.value=!1);function c(u){l.value=!0,t("error",u)}return(u,p)=>(b(),z("span",{class:P(s(n)),style:Qe(s(a))},[(u.src||u.srcSet)&&!l.value?(b(),z("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Qe(s(i)),onError:c},null,44,iW)):u.icon?(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(u.icon)))]),_:1})):be(u.$slots,"default",{key:2})],6))}});var cW=Fe(sW,[["__file","avatar.vue"]]);const uW=xt(cW),dW={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},pW={click:e=>e instanceof MouseEvent},fW=(e,t,o)=>{const r=qt(),l=qt(),n=V(!1),a=()=>{r.value&&(n.value=r.value.scrollTop>=e.visibilityHeight)},i=u=>{var p;(p=r.value)==null||p.scrollTo({top:0,behavior:"smooth"}),t("click",u)},c=T1(a,300,!0);return eo(l,"scroll",c),vt(()=>{var u;l.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||So(o,`target does not exist: ${e.target}`),l.value=r.value),a()}),{visible:n,handleClick:i}},h6="ElBacktop",hW=B({...B({name:h6}),props:dW,emits:pW,setup(e,{emit:t}){const o=e,r=Oe("backtop"),{handleClick:l,visible:n}=fW(o,t,h6),a=$(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(i,c)=>(b(),de(_o,{name:`${s(r).namespace.value}-fade-in`},{default:ne(()=>[s(n)?(b(),z("div",{key:0,style:Qe(s(a)),class:P(s(r).b()),onClick:c[0]||(c[0]=it((...u)=>s(l)&&s(l)(...u),["stop"]))},[be(i.$slots,"default",{},()=>[oe(s(Je),{class:P(s(r).e("icon"))},{default:ne(()=>[oe(s(a3))]),_:1},8,["class"])])],6)):ue("v-if",!0)]),_:3},8,["name"]))}});var vW=Fe(hW,[["__file","backtop.vue"]]);const mW=xt(vW),gW=He({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),bW=["textContent"],_W=B({...B({name:"ElBadge"}),props:gW,setup(e,{expose:t}){const o=e,r=Oe("badge"),l=$(()=>o.isDot?"":ct(o.value)&&ct(o.max)?o.max(b(),z("div",{class:P(s(r).b())},[be(n.$slots,"default"),oe(_o,{name:`${s(r).namespace.value}-zoom-in-center`,persisted:""},{default:ne(()=>[ht(E("sup",{class:P([s(r).e("content"),s(r).em("content",n.type),s(r).is("fixed",!!n.$slots.default),s(r).is("dot",n.isDot)]),textContent:ze(s(l))},null,10,bW),[[Pt,!n.hidden&&(s(l)||n.isDot)]])]),_:1},8,["name"])],2))}});var wW=Fe(_W,[["__file","badge.vue"]]);const v6=xt(wW),m6=Symbol("breadcrumbKey"),yW=He({separator:{type:String,default:"/"},separatorIcon:{type:Ut}}),xW=B({...B({name:"ElBreadcrumb"}),props:yW,setup(e){const t=e,o=Oe("breadcrumb"),r=V();return zt(m6,t),vt(()=>{const l=r.value.querySelectorAll(`.${o.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,n)=>(b(),z("div",{ref_key:"breadcrumb",ref:r,class:P(s(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[be(l.$slots,"default")],2))}});var kW=Fe(xW,[["__file","breadcrumb.vue"]]);const CW=He({to:{type:pe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),SW=B({...B({name:"ElBreadcrumbItem"}),props:CW,setup(e){const t=e,o=_t(),r=Le(m6,void 0),l=Oe("breadcrumb"),n=o.appContext.config.globalProperties.$router,a=V(),i=()=>{!t.to||!n||(t.replace?n.replace(t.to):n.push(t.to))};return(c,u)=>{var p,d;return b(),z("span",{class:P(s(l).e("item"))},[E("span",{ref_key:"link",ref:a,class:P([s(l).e("inner"),s(l).is("link",!!c.to)]),role:"link",onClick:i},[be(c.$slots,"default")],2),(p=s(r))!=null&&p.separatorIcon?(b(),de(s(Je),{key:0,class:P(s(l).e("separator"))},{default:ne(()=>[(b(),de(St(s(r).separatorIcon)))]),_:1},8,["class"])):(b(),z("span",{key:1,class:P(s(l).e("separator")),role:"presentation"},ze((d=s(r))==null?void 0:d.separator),3))],2)}}});var g6=Fe(SW,[["__file","breadcrumb-item.vue"]]);const EW=xt(kW,{BreadcrumbItem:g6}),$W=fo(g6),b6=Symbol("buttonGroupContextKey"),TW=(e,t)=>{sl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const o=Le(b6,void 0),r=ju("button"),{form:l}=Qo(),n=Eo($(()=>o==null?void 0:o.size)),a=pr(),i=V(),c=Bo(),u=$(()=>e.type||(o==null?void 0:o.type)||""),p=$(()=>{var m,h,_;return(_=(h=e.autoInsertSpace)!=null?h:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?_:!1}),d=$(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=$(()=>{var m;const h=(m=c.default)==null?void 0:m.call(c);if(p.value&&(h==null?void 0:h.length)===1){const _=h[0];if((_==null?void 0:_.type)===Oa){const g=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:a,_size:n,_type:u,_ref:i,_props:d,shouldAddSpace:f,handleClick:m=>{e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},Y0=["default","primary","success","warning","info","danger","text",""],G0=He({size:No,disabled:Boolean,type:{type:String,values:Y0,default:""},icon:{type:Ut},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ut,default:()=>Rl},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:pe([String,Object]),default:"button"}}),zW={click:e=>e instanceof MouseEvent};function Ro(e,t){MW(e)&&(e="100%");var o=AW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function td(e){return Math.min(1,Math.max(0,e))}function MW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function AW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function od(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ua(e){return e.length===1?"0"+e:String(e)}function IW(e,t,o){return{r:Ro(e,255)*255,g:Ro(t,255)*255,b:Ro(o,255)*255}}function w6(e,t,o){e=Ro(e,255),t=Ro(t,255),o=Ro(o,255);var r=Math.max(e,t,o),l=Math.min(e,t,o),n=0,a=0,i=(r+l)/2;if(r===l)a=0,n=0;else{var c=r-l;switch(a=i>.5?c/(2-r-l):c/(r+l),r){case e:n=(t-o)/c+(t1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function OW(e,t,o){var r,l,n;if(e=Ro(e,360),t=Ro(t,100),o=Ro(o,100),t===0)l=o,n=o,r=o;else{var a=o<.5?o*(1+t):o+t-o*t,i=2*o-a;r=X0(i,a,e+1/3),l=X0(i,a,e),n=X0(i,a,e-1/3)}return{r:r*255,g:l*255,b:n*255}}function y6(e,t,o){e=Ro(e,255),t=Ro(t,255),o=Ro(o,255);var r=Math.max(e,t,o),l=Math.min(e,t,o),n=0,a=r,i=r-l,c=r===0?0:i/r;if(r===l)n=0;else{switch(r){case e:n=(t-o)/i+(t>16,g:(e&65280)>>8,b:e&255}}var Z0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function RW(e){var t={r:0,g:0,b:0},o=1,r=null,l=null,n=null,a=!1,i=!1;return typeof e=="string"&&(e=FW(e)),typeof e=="object"&&(Wl(e.r)&&Wl(e.g)&&Wl(e.b)?(t=IW(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wl(e.h)&&Wl(e.s)&&Wl(e.v)?(r=od(e.s),l=od(e.v),t=PW(e.h,r,l),a=!0,i="hsv"):Wl(e.h)&&Wl(e.s)&&Wl(e.l)&&(r=od(e.s),n=od(e.l),t=OW(e.h,r,n),a=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=_6(o),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var VW="[-\\+]?\\d+%?",HW="[-\\+]?\\d*\\.\\d+%?",En="(?:".concat(HW,")|(?:").concat(VW,")"),J0="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),Q0="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),Ur={CSS_UNIT:new RegExp(En),rgb:new RegExp("rgb"+J0),rgba:new RegExp("rgba"+Q0),hsl:new RegExp("hsl"+J0),hsla:new RegExp("hsla"+Q0),hsv:new RegExp("hsv"+J0),hsva:new RegExp("hsva"+Q0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function FW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Z0[e])e=Z0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=Ur.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=Ur.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=Ur.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=Ur.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=Ur.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=Ur.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=Ur.hex8.exec(e),o?{r:wr(o[1]),g:wr(o[2]),b:wr(o[3]),a:k6(o[4]),format:t?"name":"hex8"}:(o=Ur.hex6.exec(e),o?{r:wr(o[1]),g:wr(o[2]),b:wr(o[3]),format:t?"name":"hex"}:(o=Ur.hex4.exec(e),o?{r:wr(o[1]+o[1]),g:wr(o[2]+o[2]),b:wr(o[3]+o[3]),a:k6(o[4]+o[4]),format:t?"name":"hex8"}:(o=Ur.hex3.exec(e),o?{r:wr(o[1]+o[1]),g:wr(o[2]+o[2]),b:wr(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Wl(e){return!!Ur.CSS_UNIT.exec(String(e))}var C6=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=LW(t)),this.originalInput=t;var l=RW(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=o.format)!==null&&r!==void 0?r:l.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,r,l,n=t.r/255,a=t.g/255,i=t.b/255;return n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*r+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_6(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=y6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=y6(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(r,"%, ").concat(l,"%)"):"hsva(".concat(o,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=w6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=w6(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(r,"%, ").concat(l,"%)"):"hsla(".concat(o,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),x6(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),BW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(r,")"):"rgba(".concat(t,", ").concat(o,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(Ro(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(Ro(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+x6(this.r,this.g,this.b,!1),o=0,r=Object.entries(Z0);o=0,n=!o&&l&&(t.startsWith("hex")||t==="name");return n?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=td(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=td(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=td(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=td(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),r=(o.h+t)%360;return o.h=r<0?360+r:r,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var r=this.toRgb(),l=new e(t).toRgb(),n=o/100,a={r:(l.r-r.r)*n+r.r,g:(l.g-r.g)*n+r.g,b:(l.b-r.b)*n+r.b,a:(l.a-r.a)*n+r.a};return new e(a)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var r=this.toHsl(),l=360/o,n=[this];for(r.h=(r.h-(l*t>>1)+720)%360;--t;)r.h=(r.h+l)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),r=o.h,l=o.s,n=o.v,a=[],i=1/t;t--;)a.push(new e({h:r,s:l,v:n})),n=(n+i)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),r=new e(t).toRgb(),l=o.a+r.a*(1-o.a);return new e({r:(o.r*o.a+r.r*r.a*(1-o.a))/l,g:(o.g*o.a+r.g*r.a*(1-o.a))/l,b:(o.b*o.a+r.b*r.a*(1-o.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),r=o.h,l=[this],n=360/t,a=1;a{let r={};const l=e.color;if(l){const n=new C6(l),a=e.dark?n.tint(20).toString():$n(n,20);if(e.plain)r=o.cssVarBlock({"bg-color":e.dark?$n(n,90):n.tint(90).toString(),"text-color":l,"border-color":e.dark?$n(n,50):n.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":a,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[o.cssVarBlockName("disabled-bg-color")]=e.dark?$n(n,90):n.tint(90).toString(),r[o.cssVarBlockName("disabled-text-color")]=e.dark?$n(n,50):n.tint(50).toString(),r[o.cssVarBlockName("disabled-border-color")]=e.dark?$n(n,80):n.tint(80).toString());else{const i=e.dark?$n(n,30):n.tint(30).toString(),c=n.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(r=o.cssVarBlock({"bg-color":l,"text-color":c,"border-color":l,"hover-bg-color":i,"hover-text-color":c,"hover-border-color":i,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?$n(n,50):n.tint(50).toString();r[o.cssVarBlockName("disabled-bg-color")]=u,r[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,r[o.cssVarBlockName("disabled-border-color")]=u}}}return r})}const jW=B({...B({name:"ElButton"}),props:G0,emits:zW,setup(e,{expose:t,emit:o}){const r=e,l=DW(r),n=Oe("button"),{_ref:a,_size:i,_type:c,_disabled:u,_props:p,shouldAddSpace:d,handleClick:f}=TW(r,o);return t({ref:a,size:i,type:c,disabled:u,shouldAddSpace:d}),(v,m)=>(b(),de(St(v.tag),Et({ref_key:"_ref",ref:a},s(p),{class:[s(n).b(),s(n).m(s(c)),s(n).m(s(i)),s(n).is("disabled",s(u)),s(n).is("loading",v.loading),s(n).is("plain",v.plain),s(n).is("round",v.round),s(n).is("circle",v.circle),s(n).is("text",v.text),s(n).is("link",v.link),s(n).is("has-bg",v.bg)],style:s(l),onClick:s(f)}),{default:ne(()=>[v.loading?(b(),z(Ge,{key:0},[v.$slots.loading?be(v.$slots,"loading",{key:0}):(b(),de(s(Je),{key:1,class:P(s(n).is("loading"))},{default:ne(()=>[(b(),de(St(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(b(),de(s(Je),{key:1},{default:ne(()=>[v.icon?(b(),de(St(v.icon),{key:0})):be(v.$slots,"icon",{key:1})]),_:3})):ue("v-if",!0),v.$slots.default?(b(),z("span",{key:2,class:P({[s(n).em("text","expand")]:s(d)})},[be(v.$slots,"default")],2)):ue("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var KW=Fe(jW,[["__file","button.vue"]]);const WW={size:G0.size,type:G0.type},UW=B({...B({name:"ElButtonGroup"}),props:WW,setup(e){const t=e;zt(b6,Ft({size:so(t,"size"),type:so(t,"type")}));const o=Oe("button");return(r,l)=>(b(),z("div",{class:P(`${s(o).b("group")}`)},[be(r.$slots,"default")],2))}});var S6=Fe(UW,[["__file","button-group.vue"]]);const Vo=xt(KW,{ButtonGroup:S6}),E6=fo(S6);var $6={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){var o=1e3,r=6e4,l=36e5,n="millisecond",a="second",i="minute",c="hour",u="day",p="week",d="month",f="quarter",v="year",m="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var Q=["th","st","nd","rd"],J=Z%100;return"["+Z+(Q[(J-20)%10]||Q[J]||Q[0])+"]"}},w=function(Z,Q,J){var L=String(Z);return!L||L.length>=Q?Z:""+Array(Q+1-L.length).join(J)+Z},x={s:w,z:function(Z){var Q=-Z.utcOffset(),J=Math.abs(Q),L=Math.floor(J/60),X=J%60;return(Q<=0?"+":"-")+w(L,2,"0")+":"+w(X,2,"0")},m:function Z(Q,J){if(Q.date()1)return Z(W[0])}else{var re=Q.name;T[re]=Q,X=re}return!L&&X&&(M=X),X||!L&&M},K=function(Z,Q){if(I(Z))return Z.clone();var J=typeof Q=="object"?Q:{};return J.date=Z,J.args=arguments,new D(J)},R=x;R.l=F,R.i=I,R.w=function(Z,Q){return K(Z,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var D=function(){function Z(J){this.$L=F(J.locale,null,!0),this.parse(J),this.$x=this.$x||J.x||{},this[O]=!0}var Q=Z.prototype;return Q.parse=function(J){this.$d=function(L){var X=L.date,N=L.utc;if(X===null)return new Date(NaN);if(R.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var W=X.match(_);if(W){var re=W[2]-1||0,ie=(W[7]||"0").substring(0,3);return N?new Date(Date.UTC(W[1],re,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ie)):new Date(W[1],re,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ie)}}return new Date(X)}(J),this.init()},Q.init=function(){var J=this.$d;this.$y=J.getFullYear(),this.$M=J.getMonth(),this.$D=J.getDate(),this.$W=J.getDay(),this.$H=J.getHours(),this.$m=J.getMinutes(),this.$s=J.getSeconds(),this.$ms=J.getMilliseconds()},Q.$utils=function(){return R},Q.isValid=function(){return this.$d.toString()!==h},Q.isSame=function(J,L){var X=K(J);return this.startOf(L)<=X&&X<=this.endOf(L)},Q.isAfter=function(J,L){return K(J)68?1900:2e3)},u=function(h){return function(_){this[h]=+_}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var g=_.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(h)}],d=function(h){var _=i[h];return _&&(_.indexOf?_:_.s.concat(_.f))},f=function(h,_){var g,y=i.meridiem;if(y){for(var w=1;w<=24;w+=1)if(h.indexOf(y(w,0,_))>-1){g=w>12;break}}else g=h===(_?"pm":"PM");return g},v={A:[a,function(h){this.afternoon=f(h,!1)}],a:[a,function(h){this.afternoon=f(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[l,u("day")],Do:[a,function(h){var _=i.ordinal,g=h.match(/\d+/);if(this.day=g[0],_)for(var y=1;y<=31;y+=1)_(y).replace(/\[|\]/g,"")===h&&(this.day=y)}],M:[n,u("month")],MM:[l,u("month")],MMM:[a,function(h){var _=d("months"),g=(d("monthsShort")||_.map(function(y){return y.slice(0,3)})).indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[a,function(h){var _=d("months").indexOf(h)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(h){this.year=c(h)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function m(h){var _,g;_=h,g=i&&i.formats;for(var y=(h=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,K,R){var D=R&&R.toUpperCase();return K||g[R]||o[R]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,Z,Q){return Z||Q.slice(1)})})).match(r),w=y.length,x=0;x-1)return new Date((L==="X"?1e3:1)*J);var N=m(L)(J),W=N.year,re=N.month,ie=N.day,se=N.hours,ve=N.minutes,le=N.seconds,ge=N.milliseconds,_e=N.zone,me=new Date,Be=ie||(W||re?1:me.getDate()),ye=W||me.getFullYear(),Me=0;W&&!re||(Me=re>0?re-1:me.getMonth());var te=se||0,ce=ve||0,we=le||0,Ae=ge||0;return _e?new Date(Date.UTC(ye,Me,Be,te,ce,we,Ae+60*_e.offset*1e3)):X?new Date(Date.UTC(ye,Me,Be,te,ce,we,Ae)):new Date(ye,Me,Be,te,ce,we,Ae)}catch{return new Date("")}}(M,I,T),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),R&&M!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var j=I.length,Z=1;Z<=j;Z+=1){O[1]=I[Z-1];var Q=g.apply(this,O);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}Z===j&&(this.$d=new Date(""))}else w.call(this,x)}}})})(T6);var YW=T6.exports;const eh=Er(YW),z6=["hours","minutes","seconds"],th="HH:mm:ss",ci="YYYY-MM-DD",GW={date:ci,dates:ci,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${ci} ${th}`,monthrange:"YYYY-MM",daterange:ci,datetimerange:`${ci} ${th}`},oh=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),M6=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),A6=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),I6=function(e,t){const o=Bn(e),r=Bn(t);return o&&r?e.getTime()===t.getTime():!o&&!r?e===t:!1},O6=function(e,t){const o=Ye(e),r=Ye(t);return o&&r?e.length!==t.length?!1:e.every((l,n)=>I6(l,t[n])):!o&&!r?I6(e,t):!1},P6=function(e,t,o){const r=Tr(t)||t==="x"?wt(e).locale(o):wt(e,t).locale(o);return r.isValid()?r:void 0},B6=function(e,t,o){return Tr(t)?e:t==="x"?+e:wt(e).locale(o).format(t)},rh=(e,t)=>{var o;const r=[],l=t==null?void 0:t();for(let n=0;n({})},modelValue:{type:pe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:pe([Date,Array])},defaultTime:{type:pe([Date,Array])},isRange:Boolean,...N6,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:pe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),XW=["id","name","placeholder","value","disabled","readonly"],ZW=["id","name","placeholder","value","disabled","readonly"],JW=B({...B({name:"Picker"}),props:lh,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:o}){const r=e,l=Hn(),{lang:n}=Nt(),a=Oe("date"),i=Oe("input"),c=Oe("range"),{form:u,formItem:p}=Qo(),d=Le("ElPopperOptions",{}),f=V(),v=V(),m=V(!1),h=V(!1),_=V(null);let g=!1,y=!1;const w=$(()=>[a.b("editor"),a.bm("editor",r.type),i.e("wrapper"),a.is("disabled",ie.value),a.is("active",m.value),c.b("editor"),xe?c.bm("editor",xe.value):"",l.class]),x=$(()=>[i.e("icon"),c.e("close-icon"),Be.value?"":c.e("close-icon--hidden")]);Te(m,U=>{U?et(()=>{U&&(_.value=r.modelValue)}):(ke.value=null,et(()=>{M(r.modelValue)}))});const M=(U,he)=>{(he||!O6(U,_.value))&&(o("change",U),r.validateEvent&&(p==null||p.validate("change").catch(Ue=>void 0)))},T=U=>{if(!O6(r.modelValue,U)){let he;Ye(U)?he=U.map(Ue=>B6(Ue,r.valueFormat,n.value)):U&&(he=B6(U,r.valueFormat,n.value)),o("update:modelValue",U&&he,n.value)}},O=U=>{o("keydown",U)},I=$(()=>{if(v.value){const U=Ie.value?v.value:v.value.$el;return Array.from(U.querySelectorAll("input"))}return[]}),F=(U,he,Ue)=>{const st=I.value;st.length&&(!Ue||Ue==="min"?(st[0].setSelectionRange(U,he),st[0].focus()):Ue==="max"&&(st[1].setSelectionRange(U,he),st[1].focus()))},K=()=>{X(!0,!0),et(()=>{y=!1})},R=(U="",he=!1)=>{he||(y=!0),m.value=he;let Ue;Ye(U)?Ue=U.map(st=>st.toDate()):Ue=U&&U.toDate(),ke.value=null,T(Ue)},D=()=>{h.value=!0},j=()=>{o("visible-change",!0)},Z=U=>{(U==null?void 0:U.key)===tt.esc&&X(!0,!0)},Q=()=>{h.value=!1,m.value=!1,y=!1,o("visible-change",!1)},J=()=>{m.value=!0},L=()=>{m.value=!1},X=(U=!0,he=!1)=>{y=he;const[Ue,st]=s(I);let At=Ue;!U&&Ie.value&&(At=st),At&&At.focus()},N=U=>{r.readonly||ie.value||m.value||y||(m.value=!0,o("focus",U))};let W;const re=U=>{const he=async()=>{setTimeout(()=>{var Ue;W===he&&(!((Ue=f.value)!=null&&Ue.isFocusInsideContent()&&!g)&&I.value.filter(st=>st.contains(document.activeElement)).length===0&&($e(),m.value=!1,o("blur",U),r.validateEvent&&(p==null||p.validate("blur").catch(st=>void 0))),g=!1)},0)};W=he,he()},ie=$(()=>r.disabled||(u==null?void 0:u.disabled)),se=$(()=>{let U;if(Me.value?C.value.getDefaultValue&&(U=C.value.getDefaultValue()):Ye(r.modelValue)?U=r.modelValue.map(he=>P6(he,r.valueFormat,n.value)):U=P6(r.modelValue,r.valueFormat,n.value),C.value.getRangeAvailableTime){const he=C.value.getRangeAvailableTime(U);ir(he,U)||(U=he,T(Ye(U)?U.map(Ue=>Ue.toDate()):U.toDate()))}return Ye(U)&&U.some(he=>!he)&&(U=[]),U}),ve=$(()=>{if(!C.value.panelReady)return"";const U=qe(se.value);return Ye(ke.value)?[ke.value[0]||U&&U[0]||"",ke.value[1]||U&&U[1]||""]:ke.value!==null?ke.value:!ge.value&&Me.value||!m.value&&Me.value?"":U?_e.value?U.join(", "):U:""}),le=$(()=>r.type.includes("time")),ge=$(()=>r.type.startsWith("time")),_e=$(()=>r.type==="dates"),me=$(()=>r.prefixIcon||(le.value?r0:n3)),Be=V(!1),ye=U=>{r.readonly||ie.value||Be.value&&(U.stopPropagation(),K(),T(null),M(null,!0),Be.value=!1,m.value=!1,C.value.handleClear&&C.value.handleClear())},Me=$(()=>{const{modelValue:U}=r;return!U||Ye(U)&&!U.filter(Boolean).length}),te=async U=>{var he;r.readonly||ie.value||(((he=U.target)==null?void 0:he.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(m.value=!0)},ce=()=>{r.readonly||ie.value||!Me.value&&r.clearable&&(Be.value=!0)},we=()=>{Be.value=!1},Ae=U=>{var he;r.readonly||ie.value||(((he=U.touches[0].target)==null?void 0:he.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(m.value=!0)},Ie=$(()=>r.type.includes("range")),xe=Eo(),Ne=$(()=>{var U,he;return(he=(U=s(f))==null?void 0:U.popperRef)==null?void 0:he.contentRef}),Se=$(()=>{var U;return s(Ie)?s(v):(U=s(v))==null?void 0:U.$el});Cf(Se,U=>{const he=s(Ne),Ue=s(Se);he&&(U.target===he||U.composedPath().includes(he))||U.target===Ue||U.composedPath().includes(Ue)||(m.value=!1)});const ke=V(null),$e=()=>{if(ke.value){const U=Pe(ve.value);U&&Ke(U)&&(T(Ye(U)?U.map(he=>he.toDate()):U.toDate()),ke.value=null)}ke.value===""&&(T(null),M(null),ke.value=null)},Pe=U=>U?C.value.parseUserInput(U):null,qe=U=>U?C.value.formatToString(U):null,Ke=U=>C.value.isValidValue(U),Ee=async U=>{if(r.readonly||ie.value)return;const{code:he}=U;if(O(U),he===tt.esc){m.value===!0&&(m.value=!1,U.preventDefault(),U.stopPropagation());return}if(he===tt.down&&(C.value.handleFocusPicker&&(U.preventDefault(),U.stopPropagation()),m.value===!1&&(m.value=!0,await et()),C.value.handleFocusPicker)){C.value.handleFocusPicker();return}if(he===tt.tab){g=!0;return}if(he===tt.enter||he===tt.numpadEnter){(ke.value===null||ke.value===""||Ke(Pe(ve.value)))&&($e(),m.value=!1),U.stopPropagation();return}if(ke.value){U.stopPropagation();return}C.value.handleKeydownInput&&C.value.handleKeydownInput(U)},We=U=>{ke.value=U,m.value||(m.value=!0)},nt=U=>{const he=U.target;ke.value?ke.value=[he.value,ke.value[1]]:ke.value=[he.value,null]},dt=U=>{const he=U.target;ke.value?ke.value=[ke.value[0],he.value]:ke.value=[null,he.value]},gt=()=>{var U;const he=ke.value,Ue=Pe(he&&he[0]),st=s(se);if(Ue&&Ue.isValid()){ke.value=[qe(Ue),((U=ve.value)==null?void 0:U[1])||null];const At=[Ue,st&&(st[1]||null)];Ke(At)&&(T(At),ke.value=null)}},Y=()=>{var U;const he=s(ke),Ue=Pe(he&&he[1]),st=s(se);if(Ue&&Ue.isValid()){ke.value=[((U=s(ve))==null?void 0:U[0])||null,qe(Ue)];const At=[st&&st[0],Ue];Ke(At)&&(T(At),ke.value=null)}},C=V({}),S=U=>{C.value[U[0]]=U[1],C.value.panelReady=!0},H=U=>{o("calendar-change",U)},ee=(U,he,Ue)=>{o("panel-change",U,he,Ue)};return zt("EP_PICKER_BASE",{props:r}),t({focus:X,handleFocusInput:N,handleBlurInput:re,handleOpen:J,handleClose:L,onPick:R}),(U,he)=>(b(),de(s(er),Et({ref_key:"refPopper",ref:f,visible:m.value,effect:"light",pure:"",trigger:"click"},U.$attrs,{role:"dialog",teleported:"",transition:`${s(a).namespace.value}-zoom-in-top`,"popper-class":[`${s(a).namespace.value}-picker__popper`,U.popperClass],"popper-options":s(d),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:j,onHide:Q}),{default:ne(()=>[s(Ie)?(b(),z("div",{key:1,ref_key:"inputRef",ref:v,class:P(s(w)),style:Qe(U.$attrs.style),onClick:N,onMouseenter:ce,onMouseleave:we,onTouchstart:Ae,onKeydown:Ee},[s(me)?(b(),de(s(Je),{key:0,class:P([s(i).e("icon"),s(c).e("icon")]),onMousedown:it(te,["prevent"]),onTouchstart:Ae},{default:ne(()=>[(b(),de(St(s(me))))]),_:1},8,["class","onMousedown"])):ue("v-if",!0),E("input",{id:U.id&&U.id[0],autocomplete:"off",name:U.name&&U.name[0],placeholder:U.startPlaceholder,value:s(ve)&&s(ve)[0],disabled:s(ie),readonly:!U.editable||U.readonly,class:P(s(c).b("input")),onMousedown:te,onInput:nt,onChange:gt,onFocus:N,onBlur:re},null,42,XW),be(U.$slots,"range-separator",{},()=>[E("span",{class:P(s(c).b("separator"))},ze(U.rangeSeparator),3)]),E("input",{id:U.id&&U.id[1],autocomplete:"off",name:U.name&&U.name[1],placeholder:U.endPlaceholder,value:s(ve)&&s(ve)[1],disabled:s(ie),readonly:!U.editable||U.readonly,class:P(s(c).b("input")),onMousedown:te,onFocus:N,onBlur:re,onInput:dt,onChange:Y},null,42,ZW),U.clearIcon?(b(),de(s(Je),{key:1,class:P(s(x)),onClick:ye},{default:ne(()=>[(b(),de(St(U.clearIcon)))]),_:1},8,["class"])):ue("v-if",!0)],38)):(b(),de(s(Wo),{key:0,id:U.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":s(ve),name:U.name,size:s(xe),disabled:s(ie),placeholder:U.placeholder,class:P([s(a).b("editor"),s(a).bm("editor",U.type),U.$attrs.class]),style:Qe(U.$attrs.style),readonly:!U.editable||U.readonly||s(_e)||U.type==="week",label:U.label,tabindex:U.tabindex,"validate-event":!1,onInput:We,onFocus:N,onBlur:re,onKeydown:Ee,onChange:$e,onMousedown:te,onMouseenter:ce,onMouseleave:we,onTouchstart:Ae,onClick:he[0]||(he[0]=it(()=>{},["stop"]))},{prefix:ne(()=>[s(me)?(b(),de(s(Je),{key:0,class:P(s(i).e("icon")),onMousedown:it(te,["prevent"]),onTouchstart:Ae},{default:ne(()=>[(b(),de(St(s(me))))]),_:1},8,["class","onMousedown"])):ue("v-if",!0)]),suffix:ne(()=>[Be.value&&U.clearIcon?(b(),de(s(Je),{key:0,class:P(`${s(i).e("icon")} clear-icon`),onClick:it(ye,["stop"])},{default:ne(()=>[(b(),de(St(U.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:ne(()=>[be(U.$slots,"default",{visible:m.value,actualVisible:h.value,parsedValue:s(se),format:U.format,dateFormat:U.dateFormat,timeFormat:U.timeFormat,unlinkPanels:U.unlinkPanels,type:U.type,defaultValue:U.defaultValue,onPick:R,onSelectRange:F,onSetPickerOption:S,onCalendarChange:H,onPanelChange:ee,onKeydown:Z,onMousedown:he[1]||(he[1]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var R6=Fe(JW,[["__file","picker.vue"]]);const QW=He({...L6,datetimeRole:String,parsedValue:{type:pe(Object)}}),V6=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:o})=>{const r=(a,i,c,u)=>{const p={hour:e,minute:t,second:o};let d=a;return["hour","minute","second"].forEach(f=>{if(p[f]){let v;const m=p[f];switch(f){case"minute":{v=m(d.hour(),i,u);break}case"second":{v=m(d.hour(),d.minute(),i,u);break}default:{v=m(i,u);break}}if(v!=null&&v.length&&!v.includes(d[f]())){const h=c?0:v.length-1;d=d[f](v[h])}}}),d},l={};return{timePickerOptions:l,getAvailableTime:r,onSetOption:([a,i])=>{l[a]=i}}},nh=e=>{const t=(r,l)=>r||l,o=r=>r!==!0;return e.map(t).filter(o)},H6=(e,t,o)=>({getHoursList:(a,i)=>rh(24,e&&(()=>e==null?void 0:e(a,i))),getMinutesList:(a,i,c)=>rh(60,t&&(()=>t==null?void 0:t(a,i,c))),getSecondsList:(a,i,c,u)=>rh(60,o&&(()=>o==null?void 0:o(a,i,c,u)))}),F6=(e,t,o)=>{const{getHoursList:r,getMinutesList:l,getSecondsList:n}=H6(e,t,o);return{getAvailableHours:(u,p)=>nh(r(u,p)),getAvailableMinutes:(u,p,d)=>nh(l(u,p,d)),getAvailableSeconds:(u,p,d,f)=>nh(n(u,p,d,f))}},D6=e=>{const t=V(e.parsedValue);return Te(()=>e.visible,o=>{o||(t.value=e.parsedValue)}),t},zn=new Map;let j6;Bt&&(document.addEventListener("mousedown",e=>j6=e),document.addEventListener("mouseup",e=>{for(const t of zn.values())for(const{documentHandler:o}of t)o(e,j6)}));function K6(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:zr(t.arg)&&o.push(t.arg),function(r,l){const n=t.instance.popperRef,a=r.target,i=l==null?void 0:l.target,c=!t||!t.instance,u=!a||!i,p=e.contains(a)||e.contains(i),d=e===a,f=o.length&&o.some(m=>m==null?void 0:m.contains(a))||o.length&&o.includes(i),v=n&&(n.contains(a)||n.contains(i));c||u||p||d||f||v||t.value(r,l)}}const Ul={beforeMount(e,t){zn.has(e)||zn.set(e,[]),zn.get(e).push({documentHandler:K6(e,t),bindingFn:t.value})},updated(e,t){zn.has(e)||zn.set(e,[]);const o=zn.get(e),r=o.findIndex(n=>n.bindingFn===t.oldValue),l={documentHandler:K6(e,t),bindingFn:t.value};r>=0?o.splice(r,1,l):o.push(l)},unmounted(e){zn.delete(e)}},eU=100,tU=600,rd={beforeMount(e,t){const o=t.value,{interval:r=eU,delay:l=tU}=ut(o)?{}:o;let n,a;const i=()=>ut(o)?o():o.handler(),c=()=>{a&&(clearTimeout(a),a=void 0),n&&(clearInterval(n),n=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(c(),i(),document.addEventListener("mouseup",()=>c(),{once:!0}),a=setTimeout(()=>{n=setInterval(()=>{i()},r)},l))})}},ah="_trap-focus-children",da=[],W6=e=>{if(da.length===0)return;const t=da[da.length-1][ah];if(t.length>0&&e.code===tt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const o=e.shiftKey,r=e.target===t[0],l=e.target===t[t.length-1];r&&o&&(e.preventDefault(),t[t.length-1].focus()),l&&!o&&(e.preventDefault(),t[0].focus())}},oU={beforeMount(e){e[ah]=b1(e),da.push(e),da.length<=1&&document.addEventListener("keydown",W6)},updated(e){et(()=>{e[ah]=b1(e)})},unmounted(){da.shift(),da.length===0&&document.removeEventListener("keydown",W6)}};var U6=!1,pa,ih,sh,ld,nd,q6,ad,ch,uh,dh,Y6,ph,fh,G6,X6;function fr(){if(!U6){U6=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(ph=/\b(iPhone|iP[ao]d)/.exec(e),fh=/\b(iP[ao]d)/.exec(e),dh=/Android/i.exec(e),G6=/FBAN\/\w+;/i.exec(e),X6=/Mobile/i.exec(e),Y6=!!/Win64/.exec(e),t){pa=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,pa&&document&&document.documentMode&&(pa=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);q6=r?parseFloat(r[1])+4:pa,ih=t[2]?parseFloat(t[2]):NaN,sh=t[3]?parseFloat(t[3]):NaN,ld=t[4]?parseFloat(t[4]):NaN,ld?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),nd=t&&t[1]?parseFloat(t[1]):NaN):nd=NaN}else pa=ih=sh=nd=ld=NaN;if(o){if(o[1]){var l=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);ad=l?parseFloat(l[1].replace("_",".")):!0}else ad=!1;ch=!!o[2],uh=!!o[3]}else ad=ch=uh=!1}}var hh={ie:function(){return fr()||pa},ieCompatibilityMode:function(){return fr()||q6>pa},ie64:function(){return hh.ie()&&Y6},firefox:function(){return fr()||ih},opera:function(){return fr()||sh},webkit:function(){return fr()||ld},safari:function(){return hh.webkit()},chrome:function(){return fr()||nd},windows:function(){return fr()||ch},osx:function(){return fr()||ad},linux:function(){return fr()||uh},iphone:function(){return fr()||ph},mobile:function(){return fr()||ph||fh||dh||X6},nativeApp:function(){return fr()||G6},android:function(){return fr()||dh},ipad:function(){return fr()||fh}},rU=hh,id=!!(typeof window<"u"&&window.document&&window.document.createElement),lU={canUseDOM:id,canUseWorkers:typeof Worker<"u",canUseEventListeners:id&&!!(window.addEventListener||window.attachEvent),canUseViewport:id&&!!window.screen,isInWorker:!id},Z6=lU,J6;Z6.canUseDOM&&(J6=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function nU(e,t){if(!Z6.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var l=document.createElement("div");l.setAttribute(o,"return;"),r=typeof l[o]=="function"}return!r&&J6&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var aU=nU,Q6=10,e4=40,t4=800;function o4(e){var t=0,o=0,r=0,l=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*Q6,l=o*Q6,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||l)&&e.deltaMode&&(e.deltaMode==1?(r*=e4,l*=e4):(r*=t4,l*=t4)),r&&!t&&(t=r<1?-1:1),l&&!o&&(o=l<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:l}}o4.getEventType=function(){return rU.firefox()?"DOMMouseScroll":aU("wheel")?"wheel":"mousewheel"};var iU=o4;/** +`,pK=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function fK(e){const t=window.getComputedStyle(e),o=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:pK.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:l,boxSizing:o}}function o6(e,t=1,o){var r;Yr||(Yr=document.createElement("textarea"),document.body.appendChild(Yr));const{paddingSize:l,borderSize:n,boxSizing:a,contextStyle:i}=fK(e);Yr.setAttribute("style",`${i};${dK}`),Yr.value=e.value||e.placeholder||"";let c=Yr.scrollHeight;const u={};a==="border-box"?c=c+n:a==="content-box"&&(c=c-l),Yr.value="";const d=Yr.scrollHeight-l;if(ct(t)){let p=d*t;a==="border-box"&&(p=p+l+n),c=Math.max(p,c),u.minHeight=`${p}px`}if(ct(o)){let p=d*o;a==="border-box"&&(p=p+l+n),c=Math.min(p,c)}return u.height=`${c}px`,(r=Yr.parentNode)==null||r.removeChild(Yr),Yr=void 0,u}const hK=He({id:{type:String,default:void 0},size:No,disabled:Boolean,modelValue:{type:pe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:pe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:qt},prefixIcon:{type:qt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:pe([Object,Array,String]),default:()=>ro({})},autofocus:{type:Boolean,default:!1}}),vK={[kt]:e=>ft(e),input:e=>ft(e),change:e=>ft(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},mK=["role"],gK=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],bK=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],_K=B({...B({name:"ElInput",inheritAttrs:!1}),props:hK,emits:vK,setup(e,{expose:t,emit:o}){const r=e,l=Hn(),n=Bo(),a=T(()=>{const Ee={};return r.containerRole==="combobox"&&(Ee["aria-haspopup"]=l["aria-haspopup"],Ee["aria-owns"]=l["aria-owns"],Ee["aria-expanded"]=l["aria-expanded"]),Ee}),i=T(()=>[r.type==="textarea"?_.b():h.b(),h.m(v.value),h.is("disabled",m.value),h.is("exceed",ve.value),{[h.b("group")]:n.prepend||n.append,[h.bm("group","append")]:n.append,[h.bm("group","prepend")]:n.prepend,[h.m("prefix")]:n.prefix||r.prefixIcon,[h.m("suffix")]:n.suffix||r.suffixIcon||r.clearable||r.showPassword,[h.bm("suffix","password-clear")]:W.value&&re.value},l.class]),c=T(()=>[h.e("wrapper"),h.is("focus",K.value)]),u=_0({excludeKeys:T(()=>Object.keys(a.value))}),{form:d,formItem:p}=Qo(),{inputId:f}=Cn(r,{formItemContext:p}),v=Eo(),m=pr(),h=Ie("input"),_=Ie("textarea"),g=Yt(),y=Yt(),w=V(!1),x=V(!1),M=V(!1),E=V(),I=Yt(r.inputStyle),O=T(()=>g.value||y.value),{wrapperRef:F,isFocused:K,handleFocus:R,handleBlur:D}=F_(O,{afterBlur(){var Ee;r.validateEvent&&((Ee=p==null?void 0:p.validate)==null||Ee.call(p,"blur").catch(Ue=>void 0))}}),j=T(()=>{var Ee;return(Ee=d==null?void 0:d.statusIcon)!=null?Ee:!1}),Z=T(()=>(p==null?void 0:p.validateState)||""),Q=T(()=>Z.value&&v0[Z.value]),J=T(()=>M.value?I3:y3),L=T(()=>[l.style,r.inputStyle]),X=T(()=>[r.inputStyle,I.value,{resize:r.resize}]),N=T(()=>wo(r.modelValue)?"":String(r.modelValue)),W=T(()=>r.clearable&&!m.value&&!r.readonly&&!!N.value&&(K.value||w.value)),re=T(()=>r.showPassword&&!m.value&&!r.readonly&&!!N.value&&(!!N.value||K.value)),ie=T(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!m.value&&!r.readonly&&!r.showPassword),se=T(()=>N.value.length),ve=T(()=>!!ie.value&&se.value>Number(u.value.maxlength)),le=T(()=>!!n.suffix||!!r.suffixIcon||W.value||r.showPassword||ie.value||!!Z.value&&j.value),[ge,_e]=qD(g);jo(y,Ee=>{if(ye(),!ie.value||r.resize!=="both")return;const Ue=Ee[0],{width:nt}=Ue.contentRect;E.value={right:`calc(100% - ${nt+15+6}px)`}});const me=()=>{const{type:Ee,autosize:Ue}=r;if(!(!Bt||Ee!=="textarea"||!y.value))if(Ue){const nt=Ct(Ue)?Ue.minRows:void 0,dt=Ct(Ue)?Ue.maxRows:void 0,gt=o6(y.value,nt,dt);I.value={overflowY:"hidden",...gt},et(()=>{y.value.offsetHeight,I.value=gt})}else I.value={minHeight:o6(y.value).minHeight}},ye=(Ee=>{let Ue=!1;return()=>{var nt;if(Ue||!r.autosize)return;((nt=y.value)==null?void 0:nt.offsetParent)===null||(Ee(),Ue=!0)}})(me),Me=()=>{const Ee=O.value,Ue=r.formatter?r.formatter(N.value):N.value;!Ee||Ee.value===Ue||(Ee.value=Ue)},te=async Ee=>{ge();let{value:Ue}=Ee.target;if(r.formatter&&(Ue=r.parser?r.parser(Ue):Ue),!x.value){if(Ue===N.value){Me();return}o(kt,Ue),o("input",Ue),await et(),Me(),_e()}},ce=Ee=>{o("change",Ee.target.value)},we=Ee=>{o("compositionstart",Ee),x.value=!0},Ae=Ee=>{var Ue;o("compositionupdate",Ee);const nt=(Ue=Ee.target)==null?void 0:Ue.value,dt=nt[nt.length-1]||"";x.value=!Bu(dt)},Oe=Ee=>{o("compositionend",Ee),x.value&&(x.value=!1,te(Ee))},xe=()=>{M.value=!M.value,Ne()},Ne=async()=>{var Ee;await et(),(Ee=O.value)==null||Ee.focus()},Se=()=>{var Ee;return(Ee=O.value)==null?void 0:Ee.blur()},ke=Ee=>{w.value=!1,o("mouseleave",Ee)},$e=Ee=>{w.value=!0,o("mouseenter",Ee)},Pe=Ee=>{o("keydown",Ee)},Ye=()=>{var Ee;(Ee=O.value)==null||Ee.select()},Ke=()=>{o(kt,""),o("change",""),o("clear"),o("input","")};return Te(()=>r.modelValue,()=>{var Ee;et(()=>me()),r.validateEvent&&((Ee=p==null?void 0:p.validate)==null||Ee.call(p,"change").catch(Ue=>void 0))}),Te(N,()=>Me()),Te(()=>r.type,async()=>{await et(),Me(),me()}),vt(()=>{!r.formatter&&r.parser,Me(),et(me)}),t({input:g,textarea:y,ref:O,textareaStyle:X,autosize:so(r,"autosize"),focus:Ne,blur:Se,select:Ye,clear:Ke,resizeTextarea:me}),(Ee,Ue)=>ht((b(),z("div",Et(s(a),{class:s(i),style:s(L),role:Ee.containerRole,onMouseenter:$e,onMouseleave:ke}),[ue(" input "),Ee.type!=="textarea"?(b(),z(Xe,{key:0},[ue(" prepend slot "),Ee.$slots.prepend?(b(),z("div",{key:0,class:P(s(h).be("group","prepend"))},[be(Ee.$slots,"prepend")],2)):ue("v-if",!0),$("div",{ref_key:"wrapperRef",ref:F,class:P(s(c))},[ue(" prefix slot "),Ee.$slots.prefix||Ee.prefixIcon?(b(),z("span",{key:0,class:P(s(h).e("prefix"))},[$("span",{class:P(s(h).e("prefix-inner"))},[be(Ee.$slots,"prefix"),Ee.prefixIcon?(b(),de(s(Je),{key:0,class:P(s(h).e("icon"))},{default:ne(()=>[(b(),de(St(Ee.prefixIcon)))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)):ue("v-if",!0),$("input",Et({id:s(f),ref_key:"input",ref:g,class:s(h).e("inner")},s(u),{type:Ee.showPassword?M.value?"text":"password":Ee.type,disabled:s(m),formatter:Ee.formatter,parser:Ee.parser,readonly:Ee.readonly,autocomplete:Ee.autocomplete,tabindex:Ee.tabindex,"aria-label":Ee.label,placeholder:Ee.placeholder,style:Ee.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:we,onCompositionupdate:Ae,onCompositionend:Oe,onInput:te,onFocus:Ue[0]||(Ue[0]=(...nt)=>s(R)&&s(R)(...nt)),onBlur:Ue[1]||(Ue[1]=(...nt)=>s(D)&&s(D)(...nt)),onChange:ce,onKeydown:Pe}),null,16,gK),ue(" suffix slot "),s(le)?(b(),z("span",{key:1,class:P(s(h).e("suffix"))},[$("span",{class:P(s(h).e("suffix-inner"))},[!s(W)||!s(re)||!s(ie)?(b(),z(Xe,{key:0},[be(Ee.$slots,"suffix"),Ee.suffixIcon?(b(),de(s(Je),{key:0,class:P(s(h).e("icon"))},{default:ne(()=>[(b(),de(St(Ee.suffixIcon)))]),_:1},8,["class"])):ue("v-if",!0)],64)):ue("v-if",!0),s(W)?(b(),de(s(Je),{key:1,class:P([s(h).e("icon"),s(h).e("clear")]),onMousedown:it(s(jt),["prevent"]),onClick:Ke},{default:ne(()=>[oe(s(Ll))]),_:1},8,["class","onMousedown"])):ue("v-if",!0),s(re)?(b(),de(s(Je),{key:2,class:P([s(h).e("icon"),s(h).e("password")]),onClick:xe},{default:ne(()=>[(b(),de(St(s(J))))]),_:1},8,["class"])):ue("v-if",!0),s(ie)?(b(),z("span",{key:3,class:P(s(h).e("count"))},[$("span",{class:P(s(h).e("count-inner"))},ze(s(se))+" / "+ze(s(u).maxlength),3)],2)):ue("v-if",!0),s(Z)&&s(Q)&&s(j)?(b(),de(s(Je),{key:4,class:P([s(h).e("icon"),s(h).e("validateIcon"),s(h).is("loading",s(Z)==="validating")])},{default:ne(()=>[(b(),de(St(s(Q))))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)):ue("v-if",!0)],2),ue(" append slot "),Ee.$slots.append?(b(),z("div",{key:1,class:P(s(h).be("group","append"))},[be(Ee.$slots,"append")],2)):ue("v-if",!0)],64)):(b(),z(Xe,{key:1},[ue(" textarea "),$("textarea",Et({id:s(f),ref_key:"textarea",ref:y,class:s(_).e("inner")},s(u),{tabindex:Ee.tabindex,disabled:s(m),readonly:Ee.readonly,autocomplete:Ee.autocomplete,style:s(X),"aria-label":Ee.label,placeholder:Ee.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:we,onCompositionupdate:Ae,onCompositionend:Oe,onInput:te,onFocus:Ue[2]||(Ue[2]=(...nt)=>s(R)&&s(R)(...nt)),onBlur:Ue[3]||(Ue[3]=(...nt)=>s(D)&&s(D)(...nt)),onChange:ce,onKeydown:Pe}),null,16,bK),s(ie)?(b(),z("span",{key:0,style:Qe(E.value),class:P(s(h).e("count"))},ze(s(se))+" / "+ze(s(u).maxlength),7)):ue("v-if",!0)],64))],16,mK)),[[Pt,Ee.type!=="hidden"]])}});var wK=Fe(_K,[["__file","input.vue"]]);const Wo=xt(wK),si=4,r6={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},yK=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),l6=Symbol("scrollbarContextKey"),xK=He({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),kK="Thumb";var n6=Fe(B({__name:"thumb",props:xK,setup(e){const t=e,o=Le(l6),r=Ie("scrollbar");o||So(kK,"can not inject scrollbar context");const l=V(),n=V(),a=V({}),i=V(!1);let c=!1,u=!1,d=Bt?document.onselectstart:null;const p=T(()=>r6[t.vertical?"vertical":"horizontal"]),f=T(()=>yK({size:t.size,move:t.move,bar:p.value})),v=T(()=>l.value[p.value.offset]**2/o.wrapElement[p.value.scrollSize]/t.ratio/n.value[p.value.offset]),m=E=>{var I;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(I=window.getSelection())==null||I.removeAllRanges(),_(E);const O=E.currentTarget;O&&(a.value[p.value.axis]=O[p.value.offset]-(E[p.value.client]-O.getBoundingClientRect()[p.value.direction]))},h=E=>{if(!n.value||!l.value||!o.wrapElement)return;const I=Math.abs(E.target.getBoundingClientRect()[p.value.direction]-E[p.value.client]),O=n.value[p.value.offset]/2,F=(I-O)*100*v.value/l.value[p.value.offset];o.wrapElement[p.value.scroll]=F*o.wrapElement[p.value.scrollSize]/100},_=E=>{E.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),d=document.onselectstart,document.onselectstart=()=>!1},g=E=>{if(!l.value||!n.value||c===!1)return;const I=a.value[p.value.axis];if(!I)return;const O=(l.value.getBoundingClientRect()[p.value.direction]-E[p.value.client])*-1,F=n.value[p.value.offset]-I,K=(O-F)*100*v.value/l.value[p.value.offset];o.wrapElement[p.value.scroll]=K*o.wrapElement[p.value.scrollSize]/100},y=()=>{c=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y),M(),u&&(i.value=!1)},w=()=>{u=!1,i.value=!!t.size},x=()=>{u=!0,i.value=c};Zt(()=>{M(),document.removeEventListener("mouseup",y)});const M=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return eo(so(o,"scrollbarElement"),"mousemove",w),eo(so(o,"scrollbarElement"),"mouseleave",x),(E,I)=>(b(),de(_o,{name:s(r).b("fade"),persisted:""},{default:ne(()=>[ht($("div",{ref_key:"instance",ref:l,class:P([s(r).e("bar"),s(r).is(s(p).key)]),onMousedown:h},[$("div",{ref_key:"thumb",ref:n,class:P(s(r).e("thumb")),style:Qe(s(f)),onMousedown:m},null,38)],34),[[Pt,E.always||i.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const CK=He({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var SK=Fe(B({__name:"bar",props:CK,setup(e,{expose:t}){const o=e,r=V(0),l=V(0);return t({handleScroll:a=>{if(a){const i=a.offsetHeight-si,c=a.offsetWidth-si;l.value=a.scrollTop*100/i*o.ratioY,r.value=a.scrollLeft*100/c*o.ratioX}}}),(a,i)=>(b(),z(Xe,null,[oe(n6,{move:r.value,ratio:a.ratioX,size:a.width,always:a.always},null,8,["move","ratio","size","always"]),oe(n6,{move:l.value,ratio:a.ratioY,size:a.height,vertical:"",always:a.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const EK=He({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:pe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),$K=B({...B({name:"ElScrollbar"}),props:EK,emits:{scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ct)},setup(e,{expose:t,emit:o}){const r=e,l=Ie("scrollbar");let n,a;const i=V(),c=V(),u=V(),d=V("0"),p=V("0"),f=V(),v=V(1),m=V(1),h=T(()=>{const I={};return r.height&&(I.height=bo(r.height)),r.maxHeight&&(I.maxHeight=bo(r.maxHeight)),[r.wrapStyle,I]}),_=T(()=>[r.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!r.native}]),g=T(()=>[l.e("view"),r.viewClass]),y=()=>{var I;c.value&&((I=f.value)==null||I.handleScroll(c.value),o("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function w(I,O){Ct(I)?c.value.scrollTo(I):ct(I)&&ct(O)&&c.value.scrollTo(I,O)}const x=I=>{ct(I)&&(c.value.scrollTop=I)},M=I=>{ct(I)&&(c.value.scrollLeft=I)},E=()=>{if(!c.value)return;const I=c.value.offsetHeight-si,O=c.value.offsetWidth-si,F=I**2/c.value.scrollHeight,K=O**2/c.value.scrollWidth,R=Math.max(F,r.minSize),D=Math.max(K,r.minSize);v.value=F/(I-F)/(R/(I-R)),m.value=K/(O-K)/(D/(O-D)),p.value=R+sir.noresize,I=>{I?(n==null||n(),a==null||a()):({stop:n}=jo(u,E),a=eo("resize",E))},{immediate:!0}),Te(()=>[r.maxHeight,r.height],()=>{r.native||et(()=>{var I;E(),c.value&&((I=f.value)==null||I.handleScroll(c.value))})}),zt(l6,Ft({scrollbarElement:i,wrapElement:c})),vt(()=>{r.native||et(()=>{E()})}),Tl(()=>E()),t({wrapRef:c,update:E,scrollTo:w,setScrollTop:x,setScrollLeft:M,handleScroll:y}),(I,O)=>(b(),z("div",{ref_key:"scrollbarRef",ref:i,class:P(s(l).b())},[$("div",{ref_key:"wrapRef",ref:c,class:P(s(_)),style:Qe(s(h)),onScroll:y},[(b(),de(St(I.tag),{id:I.id,ref_key:"resizeRef",ref:u,class:P(s(g)),style:Qe(I.viewStyle),role:I.role,"aria-label":I.ariaLabel,"aria-orientation":I.ariaOrientation},{default:ne(()=>[be(I.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),I.native?ue("v-if",!0):(b(),de(SK,{key:0,ref_key:"barRef",ref:f,height:p.value,width:d.value,always:I.always,"ratio-x":m.value,"ratio-y":v.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var TK=Fe($K,[["__file","scrollbar.vue"]]);const Kl=xt(TK),Y0=Symbol("popper"),a6=Symbol("popperContent"),i6=He({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),zK=B({...B({name:"ElPopper",inheritAttrs:!1}),props:i6,setup(e,{expose:t}){const o=e,r=V(),l=V(),n=V(),a=V(),i=T(()=>o.role),c={triggerRef:r,popperInstanceRef:l,contentRef:n,referenceRef:a,role:i};return t(c),zt(Y0,c),(u,d)=>be(u.$slots,"default")}});var MK=Fe(zK,[["__file","popper.vue"]]);const s6=He({arrowOffset:{type:Number,default:5}}),AK=B({...B({name:"ElPopperArrow",inheritAttrs:!1}),props:s6,setup(e,{expose:t}){const o=e,r=Ie("popper"),{arrowOffset:l,arrowRef:n,arrowStyle:a}=Le(a6,void 0);return Te(()=>o.arrowOffset,i=>{l.value=i}),Zt(()=>{n.value=void 0}),t({arrowRef:n}),(i,c)=>(b(),z("span",{ref_key:"arrowRef",ref:n,class:P(s(r).e("arrow")),style:Qe(s(a)),"data-popper-arrow":""},null,6))}});var OK=Fe(AK,[["__file","arrow.vue"]]);const c6=B({name:"ElOnlyChild",setup(e,{slots:t,attrs:o}){var r;const l=Le(w_),n=bD((r=l==null?void 0:l.setForwardRef)!=null?r:jt);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,o);if(!i||i.length>1)return null;const c=u6(i);return c?ht(zl(c,o),[[n]]):null}}});function u6(e){if(!e)return null;const t=e;for(const o of t){if(Ct(o))switch(o.type){case Yo:continue;case Pa:case"svg":return d6(o);case Xe:return u6(o.children);default:return o}return d6(o)}return null}function d6(e){const t=Ie("only-child");return oe("span",{class:t.e("content")},[e])}const p6=He({virtualRef:{type:pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:pe(Function)},onMouseleave:{type:pe(Function)},onClick:{type:pe(Function)},onKeydown:{type:pe(Function)},onFocus:{type:pe(Function)},onBlur:{type:pe(Function)},onContextmenu:{type:pe(Function)},id:String,open:Boolean}),IK=B({...B({name:"ElPopperTrigger",inheritAttrs:!1}),props:p6,setup(e,{expose:t}){const o=e,{role:r,triggerRef:l}=Le(Y0,void 0);gD(l);const n=T(()=>i.value?o.id:void 0),a=T(()=>{if(r&&r.value==="tooltip")return o.open&&o.id?o.id:void 0}),i=T(()=>{if(r&&r.value!=="tooltip")return r.value}),c=T(()=>i.value?`${o.open}`:void 0);let u;return vt(()=>{Te(()=>o.virtualRef,d=>{d&&(l.value=ar(d))},{immediate:!0}),Te(l,(d,p)=>{u==null||u(),u=void 0,zr(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var v;const m=o[f];m&&(d.addEventListener(f.slice(2).toLowerCase(),m),(v=p==null?void 0:p.removeEventListener)==null||v.call(p,f.slice(2).toLowerCase(),m))}),u=Te([n,a,i,c],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((v,m)=>{wo(f[m])?d.removeAttribute(v):d.setAttribute(v,f[m])})},{immediate:!0})),zr(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>p.removeAttribute(f))},{immediate:!0})}),Zt(()=>{u==null||u(),u=void 0}),t({triggerRef:l}),(d,p)=>d.virtualTriggering?ue("v-if",!0):(b(),de(s(c6),Et({key:0},d.$attrs,{"aria-controls":s(n),"aria-describedby":s(a),"aria-expanded":s(c),"aria-haspopup":s(i)}),{default:ne(()=>[be(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var PK=Fe(IK,[["__file","trigger.vue"]]);const G0="focus-trap.focus-after-trapped",X0="focus-trap.focus-after-released",BK="focus-trap.focusout-prevented",f6={cancelable:!0,bubbles:!1},NK={cancelable:!0,bubbles:!1},h6="focusAfterTrapped",v6="focusAfterReleased",Z0=Symbol("elFocusTrap"),J0=V(),Ju=V(0),Q0=V(0);let Qu=0;const m6=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const l=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||l?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},g6=(e,t)=>{for(const o of e)if(!LK(o,t))return o},LK=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},RK=e=>{const t=m6(e),o=g6(t,e),r=g6(t.reverse(),e);return[o,r]},VK=e=>e instanceof HTMLInputElement&&"select"in e,Sn=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Q0.value=window.performance.now(),e!==o&&VK(e)&&t&&e.select()}};function b6(e,t){const o=[...e],r=e.indexOf(t);return r!==-1&&o.splice(r,1),o}const HK=()=>{let e=[];return{push:r=>{const l=e[0];l&&r!==l&&l.pause(),e=b6(e,r),e.unshift(r)},remove:r=>{var l,n;e=b6(e,r),(n=(l=e[0])==null?void 0:l.resume)==null||n.call(l)}}},FK=(e,t=!1)=>{const o=document.activeElement;for(const r of e)if(Sn(r,t),document.activeElement!==o)return},_6=HK(),DK=()=>Ju.value>Q0.value,ed=()=>{J0.value="pointer",Ju.value=window.performance.now()},w6=()=>{J0.value="keyboard",Ju.value=window.performance.now()},jK=()=>(vt(()=>{Qu===0&&(document.addEventListener("mousedown",ed),document.addEventListener("touchstart",ed),document.addEventListener("keydown",w6)),Qu++}),Zt(()=>{Qu--,Qu<=0&&(document.removeEventListener("mousedown",ed),document.removeEventListener("touchstart",ed),document.removeEventListener("keydown",w6))}),{focusReason:J0,lastUserFocusTimestamp:Ju,lastAutomatedFocusTimestamp:Q0}),td=e=>new CustomEvent(BK,{...NK,detail:e}),KK=B({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[h6,v6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=V();let r,l;const{focusReason:n}=jK();fD(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:h,altKey:_,ctrlKey:g,metaKey:y,currentTarget:w,shiftKey:x}=m,{loop:M}=e,E=h===tt.tab&&!_&&!g&&!y,I=document.activeElement;if(E&&I){const O=w,[F,K]=RK(O);if(F&&K){if(!x&&I===K){const D=td({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),M&&Sn(F,!0))}else if(x&&[F,O].includes(I)){const D=td({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||(m.preventDefault(),M&&Sn(K,!0))}}else if(I===O){const D=td({focusReason:n.value});t("focusout-prevented",D),D.defaultPrevented||m.preventDefault()}}};zt(Z0,{focusTrapRef:o,onKeydown:i}),Te(()=>e.focusTrapEl,m=>{m&&(o.value=m)},{immediate:!0}),Te([o],([m],[h])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",d),h.removeEventListener("focusout",p))});const c=m=>{t(h6,m)},u=m=>t(v6,m),d=m=>{const h=s(o);if(!h)return;const _=m.target,g=m.relatedTarget,y=_&&h.contains(_);e.trapped||g&&h.contains(g)||(r=g),y&&t("focusin",m),!a.paused&&e.trapped&&(y?l=_:Sn(l,!0))},p=m=>{const h=s(o);if(!(a.paused||!h))if(e.trapped){const _=m.relatedTarget;!wo(_)&&!h.contains(_)&&setTimeout(()=>{if(!a.paused&&e.trapped){const g=td({focusReason:n.value});t("focusout-prevented",g),g.defaultPrevented||Sn(l,!0)}},0)}else{const _=m.target;_&&h.contains(_)||t("focusout",m)}};async function f(){await et();const m=s(o);if(m){_6.push(a);const h=m.contains(document.activeElement)?r:document.activeElement;if(r=h,!m.contains(h)){const g=new Event(G0,f6);m.addEventListener(G0,c),m.dispatchEvent(g),g.defaultPrevented||et(()=>{let y=e.focusStartEl;ft(y)||(Sn(y),document.activeElement!==y&&(y="first")),y==="first"&&FK(m6(m),!0),(document.activeElement===h||y==="container")&&Sn(m)})}}}function v(){const m=s(o);if(m){m.removeEventListener(G0,c);const h=new CustomEvent(X0,{...f6,detail:{focusReason:n.value}});m.addEventListener(X0,u),m.dispatchEvent(h),!h.defaultPrevented&&(n.value=="keyboard"||!DK()||m.contains(document.activeElement))&&Sn(r??document.body),m.removeEventListener(X0,u),_6.remove(a)}}return vt(()=>{e.trapped&&f(),Te(()=>e.trapped,m=>{m?f():v()})}),Zt(()=>{e.trapped&&v()}),{onKeydown:i}}});function WK(e,t,o,r,l,n){return be(e.$slots,"default",{handleKeydown:e.onKeydown})}var od=Fe(KK,[["render",WK],["__file","focus-trap.vue"]]);const UK=["fixed","absolute"],qK=He({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:aa,default:"bottom"},popperOptions:{type:pe(Object),default:()=>({})},strategy:{type:String,values:UK,default:"absolute"}}),y6=He({...qK,id:String,style:{type:pe([String,Array,Object])},className:{type:pe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:pe([String,Array,Object])},popperStyle:{type:pe([String,Array,Object])},referenceEl:{type:pe(Object)},triggerTargetEl:{type:pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),YK={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},GK=(e,t=[])=>{const{placement:o,strategy:r,popperOptions:l}=e,n={placement:o,strategy:r,...l,modifiers:[...ZK(e),...t]};return JK(n,l==null?void 0:l.modifiers),n},XK=e=>{if(Bt)return ar(e)};function ZK(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function JK(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const QK=0,eW=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:r,role:l}=Le(Y0,void 0),n=V(),a=V(),i=T(()=>({name:"eventListeners",enabled:!!e.visible})),c=T(()=>{var g;const y=s(n),w=(g=s(a))!=null?g:QK;return{name:"arrow",enabled:!i3(y),options:{element:y,padding:w}}}),u=T(()=>({onFirstUpdate:()=>{m()},...GK(e,[s(c),s(i)])})),d=T(()=>XK(e.referenceEl)||s(r)),{attributes:p,state:f,styles:v,update:m,forceUpdate:h,instanceRef:_}=cD(d,o,u);return Te(_,g=>t.value=g),vt(()=>{Te(()=>{var g;return(g=s(d))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:p,arrowRef:n,contentRef:o,instanceRef:_,state:f,styles:v,role:l,forceUpdate:h,update:m}},tW=(e,{attributes:t,styles:o,role:r})=>{const{nextZIndex:l}=oi(),n=Ie("popper"),a=T(()=>s(t).popper),i=V(ct(e.zIndex)?e.zIndex:l()),c=T(()=>[n.b(),n.is("pure",e.pure),n.is(e.effect),e.popperClass]),u=T(()=>[{zIndex:s(i)},s(o).popper,e.popperStyle||{}]),d=T(()=>r.value==="dialog"?"false":void 0),p=T(()=>s(o).arrow||{});return{ariaModal:d,arrowStyle:p,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=ct(e.zIndex)?e.zIndex:l()}}},oW=(e,t)=>{const o=V(!1),r=V();return{focusStartRef:r,trapped:o,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!o.value&&(u.target&&(r.value=u.target),o.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},rW=B({...B({name:"ElPopperContent"}),props:y6,emits:YK,setup(e,{expose:t,emit:o}){const r=e,{focusStartRef:l,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=oW(r,o),{attributes:p,arrowRef:f,contentRef:v,styles:m,instanceRef:h,role:_,update:g}=eW(r),{ariaModal:y,arrowStyle:w,contentAttrs:x,contentClass:M,contentStyle:E,updateZIndex:I}=tW(r,{styles:m,attributes:p,role:_}),O=Le(fl,void 0),F=V();zt(a6,{arrowStyle:w,arrowRef:f,arrowOffset:F}),O&&(O.addInputId||O.removeInputId)&&zt(fl,{...O,addInputId:jt,removeInputId:jt});let K;const R=(j=!0)=>{g(),j&&I()},D=()=>{R(!1),r.visible&&r.focusOnShow?n.value=!0:r.visible===!1&&(n.value=!1)};return vt(()=>{Te(()=>r.triggerTargetEl,(j,Z)=>{K==null||K(),K=void 0;const Q=s(j||v.value),J=s(Z||v.value);zr(Q)&&(K=Te([_,()=>r.ariaLabel,y,()=>r.id],L=>{["role","aria-label","aria-modal","id"].forEach((X,N)=>{wo(L[N])?Q.removeAttribute(X):Q.setAttribute(X,L[N])})},{immediate:!0})),J!==Q&&zr(J)&&["role","aria-label","aria-modal","id"].forEach(L=>{J.removeAttribute(L)})},{immediate:!0}),Te(()=>r.visible,D,{immediate:!0})}),Zt(()=>{K==null||K(),K=void 0}),t({popperContentRef:v,popperInstanceRef:h,updatePopper:R,contentStyle:E}),(j,Z)=>(b(),z("div",Et({ref_key:"contentRef",ref:v},s(x),{style:s(E),class:s(M),tabindex:"-1",onMouseenter:Z[0]||(Z[0]=Q=>j.$emit("mouseenter",Q)),onMouseleave:Z[1]||(Z[1]=Q=>j.$emit("mouseleave",Q))}),[oe(s(od),{trapped:s(n),"trap-on-focus-in":!0,"focus-trap-el":s(v),"focus-start-el":s(l),onFocusAfterTrapped:s(i),onFocusAfterReleased:s(a),onFocusin:s(c),onFocusoutPrevented:s(u),onReleaseRequested:s(d)},{default:ne(()=>[be(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var lW=Fe(rW,[["__file","content.vue"]]);const x6=xt(MK),rd=Symbol("elTooltip"),Lo=He({...mD,...y6,appendTo:{type:pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:pe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Ds=He({...p6,disabled:Boolean,trigger:{type:pe([String,Array]),default:"hover"},triggerKeys:{type:pe(Array),default:()=>[tt.enter,tt.space]}}),{useModelToggleProps:nW,useModelToggleEmits:aW,useModelToggle:iW}=K3("visible"),sW=He({...i6,...nW,...Lo,...Ds,...s6,showArrow:{type:Boolean,default:!0}}),cW=[...aW,"before-show","before-hide","show","hide","open","close"],uW=(e,t)=>Ge(e)?e.includes(t):e===t,ci=(e,t,o)=>r=>{uW(s(e),t)&&o(r)},dW=B({...B({name:"ElTooltipTrigger"}),props:Ds,setup(e,{expose:t}){const o=e,r=Ie("tooltip"),{controlled:l,id:n,open:a,onOpen:i,onClose:c,onToggle:u}=Le(rd,void 0),d=V(null),p=()=>{if(s(l)||o.disabled)return!0},f=so(o,"trigger"),v=uo(p,ci(f,"hover",i)),m=uo(p,ci(f,"hover",c)),h=uo(p,ci(f,"click",x=>{x.button===0&&u(x)})),_=uo(p,ci(f,"focus",i)),g=uo(p,ci(f,"focus",c)),y=uo(p,ci(f,"contextmenu",x=>{x.preventDefault(),u(x)})),w=uo(p,x=>{const{code:M}=x;o.triggerKeys.includes(M)&&(x.preventDefault(),u(x))});return t({triggerRef:d}),(x,M)=>(b(),de(s(PK),{id:s(n),"virtual-ref":x.virtualRef,open:s(a),"virtual-triggering":x.virtualTriggering,class:P(s(r).e("trigger")),onBlur:s(g),onClick:s(h),onContextmenu:s(y),onFocus:s(_),onMouseenter:s(v),onMouseleave:s(m),onKeydown:s(w)},{default:ne(()=>[be(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var pW=Fe(dW,[["__file","trigger.vue"]]);const fW=B({...B({name:"ElTooltipContent",inheritAttrs:!1}),props:Lo,setup(e,{expose:t}){const o=e,{selector:r}=b_(),l=Ie("tooltip"),n=V(null),a=V(!1),{controlled:i,id:c,open:u,trigger:d,onClose:p,onOpen:f,onShow:v,onHide:m,onBeforeShow:h,onBeforeHide:_}=Le(rd,void 0),g=T(()=>o.transition||`${l.namespace.value}-fade-in-linear`),y=T(()=>o.persistent);Zt(()=>{a.value=!0});const w=T(()=>s(y)?!0:s(u)),x=T(()=>o.disabled?!1:s(u)),M=T(()=>o.appendTo||r.value),E=T(()=>{var L;return(L=o.style)!=null?L:{}}),I=T(()=>!s(u)),O=()=>{m()},F=()=>{if(s(i))return!0},K=uo(F,()=>{o.enterable&&s(d)==="hover"&&f()}),R=uo(F,()=>{s(d)==="hover"&&p()}),D=()=>{var L,X;(X=(L=n.value)==null?void 0:L.updatePopper)==null||X.call(L),h==null||h()},j=()=>{_==null||_()},Z=()=>{v(),J=Mf(T(()=>{var L;return(L=n.value)==null?void 0:L.popperContentRef}),()=>{if(s(i))return;s(d)!=="hover"&&p()})},Q=()=>{o.virtualTriggering||p()};let J;return Te(()=>s(u),L=>{L||J==null||J()},{flush:"post"}),Te(()=>o.content,()=>{var L,X;(X=(L=n.value)==null?void 0:L.updatePopper)==null||X.call(L)}),t({contentRef:n}),(L,X)=>(b(),de(Zi,{disabled:!L.teleported,to:s(M)},[oe(_o,{name:s(g),onAfterLeave:O,onBeforeEnter:D,onAfterEnter:Z,onBeforeLeave:j},{default:ne(()=>[s(w)?ht((b(),de(s(lW),Et({key:0,id:s(c),ref_key:"contentRef",ref:n},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":s(I),"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,s(E)],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:s(x),"z-index":L.zIndex,onMouseenter:s(K),onMouseleave:s(R),onBlur:Q,onClose:s(p)}),{default:ne(()=>[a.value?ue("v-if",!0):be(L.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Pt,s(x)]]):ue("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var hW=Fe(fW,[["__file","content.vue"]]);const vW=["innerHTML"],mW={key:1},gW=B({...B({name:"ElTooltip"}),props:sW,emits:cW,setup(e,{expose:t,emit:o}){const r=e;vD();const l=dr(),n=V(),a=V(),i=()=>{var g;const y=s(n);y&&((g=y.popperInstanceRef)==null||g.update())},c=V(!1),u=V(),{show:d,hide:p,hasUpdateHandler:f}=iW({indicator:c,toggleReason:u}),{onOpen:v,onClose:m}=__({showAfter:so(r,"showAfter"),hideAfter:so(r,"hideAfter"),autoClose:so(r,"autoClose"),open:d,close:p}),h=T(()=>Co(r.visible)&&!f.value);zt(rd,{controlled:h,id:l,open:Ma(c),trigger:so(r,"trigger"),onOpen:g=>{v(g)},onClose:g=>{m(g)},onToggle:g=>{s(c)?m(g):v(g)},onShow:()=>{o("show",u.value)},onHide:()=>{o("hide",u.value)},onBeforeShow:()=>{o("before-show",u.value)},onBeforeHide:()=>{o("before-hide",u.value)},updatePopper:i}),Te(()=>r.disabled,g=>{g&&c.value&&(c.value=!1)});const _=g=>{var y,w;const x=(w=(y=a.value)==null?void 0:y.contentRef)==null?void 0:w.popperContentRef,M=(g==null?void 0:g.relatedTarget)||document.activeElement;return x&&x.contains(M)};return Sm(()=>c.value&&p()),t({popperRef:n,contentRef:a,isFocusInsideContent:_,updatePopper:i,onOpen:v,onClose:m,hide:p}),(g,y)=>(b(),de(s(x6),{ref_key:"popperRef",ref:n,role:g.role},{default:ne(()=>[oe(pW,{disabled:g.disabled,trigger:g.trigger,"trigger-keys":g.triggerKeys,"virtual-ref":g.virtualRef,"virtual-triggering":g.virtualTriggering},{default:ne(()=>[g.$slots.default?be(g.$slots,"default",{key:0}):ue("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),oe(hW,{ref_key:"contentRef",ref:a,"aria-label":g.ariaLabel,"boundaries-padding":g.boundariesPadding,content:g.content,disabled:g.disabled,effect:g.effect,enterable:g.enterable,"fallback-placements":g.fallbackPlacements,"hide-after":g.hideAfter,"gpu-acceleration":g.gpuAcceleration,offset:g.offset,persistent:g.persistent,"popper-class":g.popperClass,"popper-style":g.popperStyle,placement:g.placement,"popper-options":g.popperOptions,pure:g.pure,"raw-content":g.rawContent,"reference-el":g.referenceEl,"trigger-target-el":g.triggerTargetEl,"show-after":g.showAfter,strategy:g.strategy,teleported:g.teleported,transition:g.transition,"virtual-triggering":g.virtualTriggering,"z-index":g.zIndex,"append-to":g.appendTo},{default:ne(()=>[be(g.$slots,"content",{},()=>[g.rawContent?(b(),z("span",{key:0,innerHTML:g.content},null,8,vW)):(b(),z("span",mW,ze(g.content),1))]),g.showArrow?(b(),de(s(OK),{key:0,"arrow-offset":g.arrowOffset},null,8,["arrow-offset"])):ue("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var bW=Fe(gW,[["__file","tooltip.vue"]]);const er=xt(bW),_W=He({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:pe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:pe([Function,Array]),default:jt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Lo.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),wW={[kt]:e=>ft(e),[Jo]:e=>ft(e),[Jt]:e=>ft(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Ct(e)},yW=["aria-expanded","aria-owns"],xW={key:0},kW=["id","aria-selected","onClick"],k6="ElAutocomplete",CW=B({...B({name:k6,inheritAttrs:!1}),props:_W,emits:wW,setup(e,{expose:t,emit:o}){const r=e,l=_0(),n=Hn(),a=pr(),i=Ie("autocomplete"),c=V(),u=V(),d=V(),p=V();let f=!1,v=!1;const m=V([]),h=V(-1),_=V(""),g=V(!1),y=V(!1),w=V(!1),x=T(()=>i.b(String(Lu()))),M=T(()=>n.style),E=T(()=>(m.value.length>0||w.value)&&g.value),I=T(()=>!r.hideLoading&&w.value),O=T(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),F=()=>{E.value&&(_.value=`${c.value.$el.offsetWidth}px`)},K=()=>{h.value=-1},D=Zo(async ge=>{if(y.value)return;const _e=me=>{w.value=!1,!y.value&&(Ge(me)?(m.value=me,h.value=r.highlightFirstItem?0:-1):So(k6,"autocomplete suggestions must be an array"))};if(w.value=!0,Ge(r.fetchSuggestions))_e(r.fetchSuggestions);else{const me=await r.fetchSuggestions(ge,_e);Ge(me)&&_e(me)}},r.debounce),j=ge=>{const _e=!!ge;if(o(Jo,ge),o(kt,ge),y.value=!1,g.value||(g.value=_e),!r.triggerOnFocus&&!ge){y.value=!0,m.value=[];return}D(ge)},Z=ge=>{var _e;a.value||(((_e=ge.target)==null?void 0:_e.tagName)!=="INPUT"||O.value.includes(document.activeElement))&&(g.value=!0)},Q=ge=>{o(Jt,ge)},J=ge=>{v?v=!1:(g.value=!0,o("focus",ge),r.triggerOnFocus&&!f&&D(String(r.modelValue)))},L=ge=>{setTimeout(()=>{var _e;if((_e=d.value)!=null&&_e.isFocusInsideContent()){v=!0;return}g.value&&re(),o("blur",ge)})},X=()=>{g.value=!1,o(kt,""),o("clear")},N=async()=>{E.value&&h.value>=0&&h.value{E.value&&(ge.preventDefault(),ge.stopPropagation(),re())},re=()=>{g.value=!1},ie=()=>{var ge;(ge=c.value)==null||ge.focus()},se=()=>{var ge;(ge=c.value)==null||ge.blur()},ve=async ge=>{o(Jo,ge[r.valueKey]),o(kt,ge[r.valueKey]),o("select",ge),m.value=[],h.value=-1},le=ge=>{if(!E.value||w.value)return;if(ge<0){h.value=-1;return}ge>=m.value.length&&(ge=m.value.length-1);const _e=u.value.querySelector(`.${i.be("suggestion","wrap")}`),Be=_e.querySelectorAll(`.${i.be("suggestion","list")} li`)[ge],ye=_e.scrollTop,{offsetTop:Me,scrollHeight:te}=Be;Me+te>ye+_e.clientHeight&&(_e.scrollTop+=te),Me{E.value&&re()}),vt(()=>{c.value.ref.setAttribute("role","textbox"),c.value.ref.setAttribute("aria-autocomplete","list"),c.value.ref.setAttribute("aria-controls","id"),c.value.ref.setAttribute("aria-activedescendant",`${x.value}-item-${h.value}`),f=c.value.ref.hasAttribute("readonly")}),t({highlightedIndex:h,activated:g,loading:w,inputRef:c,popperRef:d,suggestions:m,handleSelect:ve,handleKeyEnter:N,focus:ie,blur:se,close:re,highlight:le}),(ge,_e)=>(b(),de(s(er),{ref_key:"popperRef",ref:d,visible:s(E),placement:ge.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[s(i).e("popper"),ge.popperClass],teleported:ge.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${s(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:F,onHide:K},{content:ne(()=>[$("div",{ref_key:"regionRef",ref:u,class:P([s(i).b("suggestion"),s(i).is("loading",s(I))]),style:Qe({[ge.fitInputWidth?"width":"minWidth"]:_.value,outline:"none"}),role:"region"},[oe(s(Kl),{id:s(x),tag:"ul","wrap-class":s(i).be("suggestion","wrap"),"view-class":s(i).be("suggestion","list"),role:"listbox"},{default:ne(()=>[s(I)?(b(),z("li",xW,[oe(s(Je),{class:P(s(i).is("loading"))},{default:ne(()=>[oe(s(Rl))]),_:1},8,["class"])])):(b(!0),z(Xe,{key:1},Tt(m.value,(me,Be)=>(b(),z("li",{id:`${s(x)}-item-${Be}`,key:Be,class:P({highlighted:h.value===Be}),role:"option","aria-selected":h.value===Be,onClick:ye=>ve(me)},[be(ge.$slots,"default",{item:me},()=>[$t(ze(me[ge.valueKey]),1)])],10,kW))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ne(()=>[$("div",{ref_key:"listboxRef",ref:p,class:P([s(i).b(),ge.$attrs.class]),style:Qe(s(M)),role:"combobox","aria-haspopup":"listbox","aria-expanded":s(E),"aria-owns":s(x)},[oe(s(Wo),Et({ref_key:"inputRef",ref:c},s(l),{clearable:ge.clearable,disabled:s(a),name:ge.name,"model-value":ge.modelValue,onInput:j,onChange:Q,onFocus:J,onBlur:L,onClear:X,onKeydown:[_e[0]||(_e[0]=Rt(it(me=>le(h.value-1),["prevent"]),["up"])),_e[1]||(_e[1]=Rt(it(me=>le(h.value+1),["prevent"]),["down"])),Rt(N,["enter"]),Rt(re,["tab"]),Rt(W,["esc"])],onMousedown:Z}),tl({_:2},[ge.$slots.prepend?{name:"prepend",fn:ne(()=>[be(ge.$slots,"prepend")])}:void 0,ge.$slots.append?{name:"append",fn:ne(()=>[be(ge.$slots,"append")])}:void 0,ge.$slots.prefix?{name:"prefix",fn:ne(()=>[be(ge.$slots,"prefix")])}:void 0,ge.$slots.suffix?{name:"suffix",fn:ne(()=>[be(ge.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,yW)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var SW=Fe(CW,[["__file","autocomplete.vue"]]);const EW=xt(SW),$W=He({size:{type:[Number,String],values:sl,default:"",validator:e=>ct(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:qt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:pe(String),default:"cover"}}),TW={error:e=>e instanceof Event},zW=["src","alt","srcset"],MW=B({...B({name:"ElAvatar"}),props:$W,emits:TW,setup(e,{emit:t}){const o=e,r=Ie("avatar"),l=V(!1),n=T(()=>{const{size:u,icon:d,shape:p}=o,f=[r.b()];return ft(u)&&f.push(r.m(u)),d&&f.push(r.m("icon")),p&&f.push(r.m(p)),f}),a=T(()=>{const{size:u}=o;return ct(u)?r.cssVarBlock({size:bo(u)||""}):void 0}),i=T(()=>({objectFit:o.fit}));Te(()=>o.src,()=>l.value=!1);function c(u){l.value=!0,t("error",u)}return(u,d)=>(b(),z("span",{class:P(s(n)),style:Qe(s(a))},[(u.src||u.srcSet)&&!l.value?(b(),z("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Qe(s(i)),onError:c},null,44,zW)):u.icon?(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(u.icon)))]),_:1})):be(u.$slots,"default",{key:2})],6))}});var AW=Fe(MW,[["__file","avatar.vue"]]);const OW=xt(AW),IW={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},PW={click:e=>e instanceof MouseEvent},BW=(e,t,o)=>{const r=Yt(),l=Yt(),n=V(!1),a=()=>{r.value&&(n.value=r.value.scrollTop>=e.visibilityHeight)},i=u=>{var d;(d=r.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},c=R1(a,300,!0);return eo(l,"scroll",c),vt(()=>{var u;l.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||So(o,`target does not exist: ${e.target}`),l.value=r.value),a()}),{visible:n,handleClick:i}},C6="ElBacktop",NW=B({...B({name:C6}),props:IW,emits:PW,setup(e,{emit:t}){const o=e,r=Ie("backtop"),{handleClick:l,visible:n}=BW(o,t,C6),a=T(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(i,c)=>(b(),de(_o,{name:`${s(r).namespace.value}-fade-in`},{default:ne(()=>[s(n)?(b(),z("div",{key:0,style:Qe(s(a)),class:P(s(r).b()),onClick:c[0]||(c[0]=it((...u)=>s(l)&&s(l)(...u),["stop"]))},[be(i.$slots,"default",{},()=>[oe(s(Je),{class:P(s(r).e("icon"))},{default:ne(()=>[oe(s(m3))]),_:1},8,["class"])])],6)):ue("v-if",!0)]),_:3},8,["name"]))}});var LW=Fe(NW,[["__file","backtop.vue"]]);const RW=xt(LW),VW=He({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),HW=["textContent"],FW=B({...B({name:"ElBadge"}),props:VW,setup(e,{expose:t}){const o=e,r=Ie("badge"),l=T(()=>o.isDot?"":ct(o.value)&&ct(o.max)?o.max(b(),z("div",{class:P(s(r).b())},[be(n.$slots,"default"),oe(_o,{name:`${s(r).namespace.value}-zoom-in-center`,persisted:""},{default:ne(()=>[ht($("sup",{class:P([s(r).e("content"),s(r).em("content",n.type),s(r).is("fixed",!!n.$slots.default),s(r).is("dot",n.isDot)]),textContent:ze(s(l))},null,10,HW),[[Pt,!n.hidden&&(s(l)||n.isDot)]])]),_:1},8,["name"])],2))}});var DW=Fe(FW,[["__file","badge.vue"]]);const S6=xt(DW),E6=Symbol("breadcrumbKey"),jW=He({separator:{type:String,default:"/"},separatorIcon:{type:qt}}),KW=B({...B({name:"ElBreadcrumb"}),props:jW,setup(e){const t=e,o=Ie("breadcrumb"),r=V();return zt(E6,t),vt(()=>{const l=r.value.querySelectorAll(`.${o.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,n)=>(b(),z("div",{ref_key:"breadcrumb",ref:r,class:P(s(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[be(l.$slots,"default")],2))}});var WW=Fe(KW,[["__file","breadcrumb.vue"]]);const UW=He({to:{type:pe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),qW=B({...B({name:"ElBreadcrumbItem"}),props:UW,setup(e){const t=e,o=_t(),r=Le(E6,void 0),l=Ie("breadcrumb"),n=o.appContext.config.globalProperties.$router,a=V(),i=()=>{!t.to||!n||(t.replace?n.replace(t.to):n.push(t.to))};return(c,u)=>{var d,p;return b(),z("span",{class:P(s(l).e("item"))},[$("span",{ref_key:"link",ref:a,class:P([s(l).e("inner"),s(l).is("link",!!c.to)]),role:"link",onClick:i},[be(c.$slots,"default")],2),(d=s(r))!=null&&d.separatorIcon?(b(),de(s(Je),{key:0,class:P(s(l).e("separator"))},{default:ne(()=>[(b(),de(St(s(r).separatorIcon)))]),_:1},8,["class"])):(b(),z("span",{key:1,class:P(s(l).e("separator")),role:"presentation"},ze((p=s(r))==null?void 0:p.separator),3))],2)}}});var $6=Fe(qW,[["__file","breadcrumb-item.vue"]]);const YW=xt(WW,{BreadcrumbItem:$6}),GW=fo($6),T6=Symbol("buttonGroupContextKey"),XW=(e,t)=>{cl({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},T(()=>e.type==="text"));const o=Le(T6,void 0),r=Uu("button"),{form:l}=Qo(),n=Eo(T(()=>o==null?void 0:o.size)),a=pr(),i=V(),c=Bo(),u=T(()=>e.type||(o==null?void 0:o.type)||""),d=T(()=>{var m,h,_;return(_=(h=e.autoInsertSpace)!=null?h:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?_:!1}),p=T(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=T(()=>{var m;const h=(m=c.default)==null?void 0:m.call(c);if(d.value&&(h==null?void 0:h.length)===1){const _=h[0];if((_==null?void 0:_.type)===Pa){const g=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return!1});return{_disabled:a,_size:n,_type:u,_ref:i,_props:p,shouldAddSpace:f,handleClick:m=>{e.nativeType==="reset"&&(l==null||l.resetFields()),t("click",m)}}},eh=["default","primary","success","warning","info","danger","text",""],th=He({size:No,disabled:Boolean,type:{type:String,values:eh,default:""},icon:{type:qt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:qt,default:()=>Rl},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:pe([String,Object]),default:"button"}}),ZW={click:e=>e instanceof MouseEvent};function Ro(e,t){JW(e)&&(e="100%");var o=QW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ld(e){return Math.min(1,Math.max(0,e))}function JW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function QW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function z6(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function da(e){return e.length===1?"0"+e:String(e)}function eU(e,t,o){return{r:Ro(e,255)*255,g:Ro(t,255)*255,b:Ro(o,255)*255}}function M6(e,t,o){e=Ro(e,255),t=Ro(t,255),o=Ro(o,255);var r=Math.max(e,t,o),l=Math.min(e,t,o),n=0,a=0,i=(r+l)/2;if(r===l)a=0,n=0;else{var c=r-l;switch(a=i>.5?c/(2-r-l):c/(r+l),r){case e:n=(t-o)/c+(t1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function tU(e,t,o){var r,l,n;if(e=Ro(e,360),t=Ro(t,100),o=Ro(o,100),t===0)l=o,n=o,r=o;else{var a=o<.5?o*(1+t):o+t-o*t,i=2*o-a;r=oh(i,a,e+1/3),l=oh(i,a,e),n=oh(i,a,e-1/3)}return{r:r*255,g:l*255,b:n*255}}function A6(e,t,o){e=Ro(e,255),t=Ro(t,255),o=Ro(o,255);var r=Math.max(e,t,o),l=Math.min(e,t,o),n=0,a=r,i=r-l,c=r===0?0:i/r;if(r===l)n=0;else{switch(r){case e:n=(t-o)/i+(t>16,g:(e&65280)>>8,b:e&255}}var rh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function aU(e){var t={r:0,g:0,b:0},o=1,r=null,l=null,n=null,a=!1,i=!1;return typeof e=="string"&&(e=cU(e)),typeof e=="object"&&(Wl(e.r)&&Wl(e.g)&&Wl(e.b)?(t=eU(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wl(e.h)&&Wl(e.s)&&Wl(e.v)?(r=nd(e.s),l=nd(e.v),t=oU(e.h,r,l),a=!0,i="hsv"):Wl(e.h)&&Wl(e.s)&&Wl(e.l)&&(r=nd(e.s),n=nd(e.l),t=tU(e.h,r,n),a=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=z6(o),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:o}}var iU="[-\\+]?\\d+%?",sU="[-\\+]?\\d*\\.\\d+%?",En="(?:".concat(sU,")|(?:").concat(iU,")"),lh="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),nh="[\\s|\\(]+(".concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")[,|\\s]+(").concat(En,")\\s*\\)?"),Gr={CSS_UNIT:new RegExp(En),rgb:new RegExp("rgb"+lh),rgba:new RegExp("rgba"+nh),hsl:new RegExp("hsl"+lh),hsla:new RegExp("hsla"+nh),hsv:new RegExp("hsv"+lh),hsva:new RegExp("hsva"+nh),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cU(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(rh[e])e=rh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=Gr.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=Gr.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=Gr.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=Gr.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=Gr.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=Gr.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=Gr.hex8.exec(e),o?{r:wr(o[1]),g:wr(o[2]),b:wr(o[3]),a:I6(o[4]),format:t?"name":"hex8"}:(o=Gr.hex6.exec(e),o?{r:wr(o[1]),g:wr(o[2]),b:wr(o[3]),format:t?"name":"hex"}:(o=Gr.hex4.exec(e),o?{r:wr(o[1]+o[1]),g:wr(o[2]+o[2]),b:wr(o[3]+o[3]),a:I6(o[4]+o[4]),format:t?"name":"hex8"}:(o=Gr.hex3.exec(e),o?{r:wr(o[1]+o[1]),g:wr(o[2]+o[2]),b:wr(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Wl(e){return!!Gr.CSS_UNIT.exec(String(e))}var P6=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=nU(t)),this.originalInput=t;var l=aU(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=o.format)!==null&&r!==void 0?r:l.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,r,l,n=t.r/255,a=t.g/255,i=t.b/255;return n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*r+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=z6(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=A6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=A6(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(r,"%, ").concat(l,"%)"):"hsva(".concat(o,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M6(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M6(this.r,this.g,this.b),o=Math.round(t.h*360),r=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(r,"%, ").concat(l,"%)"):"hsla(".concat(o,", ").concat(r,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),O6(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),rU(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(r,")"):"rgba(".concat(t,", ").concat(o,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(Ro(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(Ro(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+O6(this.r,this.g,this.b,!1),o=0,r=Object.entries(rh);o=0,n=!o&&l&&(t.startsWith("hex")||t==="name");return n?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=ld(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=ld(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=ld(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=ld(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),r=(o.h+t)%360;return o.h=r<0?360+r:r,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var r=this.toRgb(),l=new e(t).toRgb(),n=o/100,a={r:(l.r-r.r)*n+r.r,g:(l.g-r.g)*n+r.g,b:(l.b-r.b)*n+r.b,a:(l.a-r.a)*n+r.a};return new e(a)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var r=this.toHsl(),l=360/o,n=[this];for(r.h=(r.h-(l*t>>1)+720)%360;--t;)r.h=(r.h+l)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),r=o.h,l=o.s,n=o.v,a=[],i=1/t;t--;)a.push(new e({h:r,s:l,v:n})),n=(n+i)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),r=new e(t).toRgb(),l=o.a+r.a*(1-o.a);return new e({r:(o.r*o.a+r.r*r.a*(1-o.a))/l,g:(o.g*o.a+r.g*r.a*(1-o.a))/l,b:(o.b*o.a+r.b*r.a*(1-o.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),r=o.h,l=[this],n=360/t,a=1;a{let r={};const l=e.color;if(l){const n=new P6(l),a=e.dark?n.tint(20).toString():$n(n,20);if(e.plain)r=o.cssVarBlock({"bg-color":e.dark?$n(n,90):n.tint(90).toString(),"text-color":l,"border-color":e.dark?$n(n,50):n.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":a,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[o.cssVarBlockName("disabled-bg-color")]=e.dark?$n(n,90):n.tint(90).toString(),r[o.cssVarBlockName("disabled-text-color")]=e.dark?$n(n,50):n.tint(50).toString(),r[o.cssVarBlockName("disabled-border-color")]=e.dark?$n(n,80):n.tint(80).toString());else{const i=e.dark?$n(n,30):n.tint(30).toString(),c=n.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(r=o.cssVarBlock({"bg-color":l,"text-color":c,"border-color":l,"hover-bg-color":i,"hover-text-color":c,"hover-border-color":i,"active-bg-color":a,"active-border-color":a}),t.value){const u=e.dark?$n(n,50):n.tint(50).toString();r[o.cssVarBlockName("disabled-bg-color")]=u,r[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,r[o.cssVarBlockName("disabled-border-color")]=u}}}return r})}const dU=B({...B({name:"ElButton"}),props:th,emits:ZW,setup(e,{expose:t,emit:o}){const r=e,l=uU(r),n=Ie("button"),{_ref:a,_size:i,_type:c,_disabled:u,_props:d,shouldAddSpace:p,handleClick:f}=XW(r,o);return t({ref:a,size:i,type:c,disabled:u,shouldAddSpace:p}),(v,m)=>(b(),de(St(v.tag),Et({ref_key:"_ref",ref:a},s(d),{class:[s(n).b(),s(n).m(s(c)),s(n).m(s(i)),s(n).is("disabled",s(u)),s(n).is("loading",v.loading),s(n).is("plain",v.plain),s(n).is("round",v.round),s(n).is("circle",v.circle),s(n).is("text",v.text),s(n).is("link",v.link),s(n).is("has-bg",v.bg)],style:s(l),onClick:s(f)}),{default:ne(()=>[v.loading?(b(),z(Xe,{key:0},[v.$slots.loading?be(v.$slots,"loading",{key:0}):(b(),de(s(Je),{key:1,class:P(s(n).is("loading"))},{default:ne(()=>[(b(),de(St(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(b(),de(s(Je),{key:1},{default:ne(()=>[v.icon?(b(),de(St(v.icon),{key:0})):be(v.$slots,"icon",{key:1})]),_:3})):ue("v-if",!0),v.$slots.default?(b(),z("span",{key:2,class:P({[s(n).em("text","expand")]:s(p)})},[be(v.$slots,"default")],2)):ue("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var pU=Fe(dU,[["__file","button.vue"]]);const fU={size:th.size,type:th.type},hU=B({...B({name:"ElButtonGroup"}),props:fU,setup(e){const t=e;zt(T6,Ft({size:so(t,"size"),type:so(t,"type")}));const o=Ie("button");return(r,l)=>(b(),z("div",{class:P(`${s(o).b("group")}`)},[be(r.$slots,"default")],2))}});var B6=Fe(hU,[["__file","button-group.vue"]]);const Vo=xt(pU,{ButtonGroup:B6}),N6=fo(B6);var L6={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){var o=1e3,r=6e4,l=36e5,n="millisecond",a="second",i="minute",c="hour",u="day",d="week",p="month",f="quarter",v="year",m="date",h="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Z){var Q=["th","st","nd","rd"],J=Z%100;return"["+Z+(Q[(J-20)%10]||Q[J]||Q[0])+"]"}},w=function(Z,Q,J){var L=String(Z);return!L||L.length>=Q?Z:""+Array(Q+1-L.length).join(J)+Z},x={s:w,z:function(Z){var Q=-Z.utcOffset(),J=Math.abs(Q),L=Math.floor(J/60),X=J%60;return(Q<=0?"+":"-")+w(L,2,"0")+":"+w(X,2,"0")},m:function Z(Q,J){if(Q.date()1)return Z(W[0])}else{var re=Q.name;E[re]=Q,X=re}return!L&&X&&(M=X),X||!L&&M},K=function(Z,Q){if(O(Z))return Z.clone();var J=typeof Q=="object"?Q:{};return J.date=Z,J.args=arguments,new D(J)},R=x;R.l=F,R.i=O,R.w=function(Z,Q){return K(Z,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var D=function(){function Z(J){this.$L=F(J.locale,null,!0),this.parse(J),this.$x=this.$x||J.x||{},this[I]=!0}var Q=Z.prototype;return Q.parse=function(J){this.$d=function(L){var X=L.date,N=L.utc;if(X===null)return new Date(NaN);if(R.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var W=X.match(_);if(W){var re=W[2]-1||0,ie=(W[7]||"0").substring(0,3);return N?new Date(Date.UTC(W[1],re,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ie)):new Date(W[1],re,W[3]||1,W[4]||0,W[5]||0,W[6]||0,ie)}}return new Date(X)}(J),this.init()},Q.init=function(){var J=this.$d;this.$y=J.getFullYear(),this.$M=J.getMonth(),this.$D=J.getDate(),this.$W=J.getDay(),this.$H=J.getHours(),this.$m=J.getMinutes(),this.$s=J.getSeconds(),this.$ms=J.getMilliseconds()},Q.$utils=function(){return R},Q.isValid=function(){return this.$d.toString()!==h},Q.isSame=function(J,L){var X=K(J);return this.startOf(L)<=X&&X<=this.endOf(L)},Q.isAfter=function(J,L){return K(J)68?1900:2e3)},u=function(h){return function(_){this[h]=+_}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var g=_.match(/([+-]|\d\d)/g),y=60*g[1]+(+g[2]||0);return y===0?0:g[0]==="+"?-y:y}(h)}],p=function(h){var _=i[h];return _&&(_.indexOf?_:_.s.concat(_.f))},f=function(h,_){var g,y=i.meridiem;if(y){for(var w=1;w<=24;w+=1)if(h.indexOf(y(w,0,_))>-1){g=w>12;break}}else g=h===(_?"pm":"PM");return g},v={A:[a,function(h){this.afternoon=f(h,!1)}],a:[a,function(h){this.afternoon=f(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[l,u("day")],Do:[a,function(h){var _=i.ordinal,g=h.match(/\d+/);if(this.day=g[0],_)for(var y=1;y<=31;y+=1)_(y).replace(/\[|\]/g,"")===h&&(this.day=y)}],M:[n,u("month")],MM:[l,u("month")],MMM:[a,function(h){var _=p("months"),g=(p("monthsShort")||_.map(function(y){return y.slice(0,3)})).indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[a,function(h){var _=p("months").indexOf(h)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(h){this.year=c(h)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function m(h){var _,g;_=h,g=i&&i.formats;for(var y=(h=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,K,R){var D=R&&R.toUpperCase();return K||g[R]||o[R]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,Z,Q){return Z||Q.slice(1)})})).match(r),w=y.length,x=0;x-1)return new Date((L==="X"?1e3:1)*J);var N=m(L)(J),W=N.year,re=N.month,ie=N.day,se=N.hours,ve=N.minutes,le=N.seconds,ge=N.milliseconds,_e=N.zone,me=new Date,Be=ie||(W||re?1:me.getDate()),ye=W||me.getFullYear(),Me=0;W&&!re||(Me=re>0?re-1:me.getMonth());var te=se||0,ce=ve||0,we=le||0,Ae=ge||0;return _e?new Date(Date.UTC(ye,Me,Be,te,ce,we,Ae+60*_e.offset*1e3)):X?new Date(Date.UTC(ye,Me,Be,te,ce,we,Ae)):new Date(ye,Me,Be,te,ce,we,Ae)}catch{return new Date("")}}(M,O,E),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),R&&M!=this.format(O)&&(this.$d=new Date("")),i={}}else if(O instanceof Array)for(var j=O.length,Z=1;Z<=j;Z+=1){I[1]=O[Z-1];var Q=g.apply(this,I);if(Q.isValid()){this.$d=Q.$d,this.$L=Q.$L,this.init();break}Z===j&&(this.$d=new Date(""))}else w.call(this,x)}}})})(R6);var mU=R6.exports;const ah=Er(mU),V6=["hours","minutes","seconds"],ih="HH:mm:ss",ui="YYYY-MM-DD",gU={date:ui,dates:ui,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${ui} ${ih}`,monthrange:"YYYY-MM",daterange:ui,datetimerange:`${ui} ${ih}`},sh=(e,t)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),H6=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),F6=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),D6=function(e,t){const o=Bn(e),r=Bn(t);return o&&r?e.getTime()===t.getTime():!o&&!r?e===t:!1},j6=function(e,t){const o=Ge(e),r=Ge(t);return o&&r?e.length!==t.length?!1:e.every((l,n)=>D6(l,t[n])):!o&&!r?D6(e,t):!1},K6=function(e,t,o){const r=Tr(t)||t==="x"?wt(e).locale(o):wt(e,t).locale(o);return r.isValid()?r:void 0},W6=function(e,t,o){return Tr(t)?e:t==="x"?+e:wt(e).locale(o).format(t)},ch=(e,t)=>{var o;const r=[],l=t==null?void 0:t();for(let n=0;n({})},modelValue:{type:pe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:pe([Date,Array])},defaultTime:{type:pe([Date,Array])},isRange:Boolean,...U6,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:pe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),bU=["id","name","placeholder","value","disabled","readonly"],_U=["id","name","placeholder","value","disabled","readonly"],wU=B({...B({name:"Picker"}),props:uh,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:o}){const r=e,l=Hn(),{lang:n}=Nt(),a=Ie("date"),i=Ie("input"),c=Ie("range"),{form:u,formItem:d}=Qo(),p=Le("ElPopperOptions",{}),f=V(),v=V(),m=V(!1),h=V(!1),_=V(null);let g=!1,y=!1;const w=T(()=>[a.b("editor"),a.bm("editor",r.type),i.e("wrapper"),a.is("disabled",ie.value),a.is("active",m.value),c.b("editor"),xe?c.bm("editor",xe.value):"",l.class]),x=T(()=>[i.e("icon"),c.e("close-icon"),Be.value?"":c.e("close-icon--hidden")]);Te(m,U=>{U?et(()=>{U&&(_.value=r.modelValue)}):(ke.value=null,et(()=>{M(r.modelValue)}))});const M=(U,he)=>{(he||!j6(U,_.value))&&(o("change",U),r.validateEvent&&(d==null||d.validate("change").catch(qe=>void 0)))},E=U=>{if(!j6(r.modelValue,U)){let he;Ge(U)?he=U.map(qe=>W6(qe,r.valueFormat,n.value)):U&&(he=W6(U,r.valueFormat,n.value)),o("update:modelValue",U&&he,n.value)}},I=U=>{o("keydown",U)},O=T(()=>{if(v.value){const U=Oe.value?v.value:v.value.$el;return Array.from(U.querySelectorAll("input"))}return[]}),F=(U,he,qe)=>{const st=O.value;st.length&&(!qe||qe==="min"?(st[0].setSelectionRange(U,he),st[0].focus()):qe==="max"&&(st[1].setSelectionRange(U,he),st[1].focus()))},K=()=>{X(!0,!0),et(()=>{y=!1})},R=(U="",he=!1)=>{he||(y=!0),m.value=he;let qe;Ge(U)?qe=U.map(st=>st.toDate()):qe=U&&U.toDate(),ke.value=null,E(qe)},D=()=>{h.value=!0},j=()=>{o("visible-change",!0)},Z=U=>{(U==null?void 0:U.key)===tt.esc&&X(!0,!0)},Q=()=>{h.value=!1,m.value=!1,y=!1,o("visible-change",!1)},J=()=>{m.value=!0},L=()=>{m.value=!1},X=(U=!0,he=!1)=>{y=he;const[qe,st]=s(O);let At=qe;!U&&Oe.value&&(At=st),At&&At.focus()},N=U=>{r.readonly||ie.value||m.value||y||(m.value=!0,o("focus",U))};let W;const re=U=>{const he=async()=>{setTimeout(()=>{var qe;W===he&&(!((qe=f.value)!=null&&qe.isFocusInsideContent()&&!g)&&O.value.filter(st=>st.contains(document.activeElement)).length===0&&($e(),m.value=!1,o("blur",U),r.validateEvent&&(d==null||d.validate("blur").catch(st=>void 0))),g=!1)},0)};W=he,he()},ie=T(()=>r.disabled||(u==null?void 0:u.disabled)),se=T(()=>{let U;if(Me.value?C.value.getDefaultValue&&(U=C.value.getDefaultValue()):Ge(r.modelValue)?U=r.modelValue.map(he=>K6(he,r.valueFormat,n.value)):U=K6(r.modelValue,r.valueFormat,n.value),C.value.getRangeAvailableTime){const he=C.value.getRangeAvailableTime(U);ir(he,U)||(U=he,E(Ge(U)?U.map(qe=>qe.toDate()):U.toDate()))}return Ge(U)&&U.some(he=>!he)&&(U=[]),U}),ve=T(()=>{if(!C.value.panelReady)return"";const U=Ye(se.value);return Ge(ke.value)?[ke.value[0]||U&&U[0]||"",ke.value[1]||U&&U[1]||""]:ke.value!==null?ke.value:!ge.value&&Me.value||!m.value&&Me.value?"":U?_e.value?U.join(", "):U:""}),le=T(()=>r.type.includes("time")),ge=T(()=>r.type.startsWith("time")),_e=T(()=>r.type==="dates"),me=T(()=>r.prefixIcon||(le.value?c0:v3)),Be=V(!1),ye=U=>{r.readonly||ie.value||Be.value&&(U.stopPropagation(),K(),E(null),M(null,!0),Be.value=!1,m.value=!1,C.value.handleClear&&C.value.handleClear())},Me=T(()=>{const{modelValue:U}=r;return!U||Ge(U)&&!U.filter(Boolean).length}),te=async U=>{var he;r.readonly||ie.value||(((he=U.target)==null?void 0:he.tagName)!=="INPUT"||O.value.includes(document.activeElement))&&(m.value=!0)},ce=()=>{r.readonly||ie.value||!Me.value&&r.clearable&&(Be.value=!0)},we=()=>{Be.value=!1},Ae=U=>{var he;r.readonly||ie.value||(((he=U.touches[0].target)==null?void 0:he.tagName)!=="INPUT"||O.value.includes(document.activeElement))&&(m.value=!0)},Oe=T(()=>r.type.includes("range")),xe=Eo(),Ne=T(()=>{var U,he;return(he=(U=s(f))==null?void 0:U.popperRef)==null?void 0:he.contentRef}),Se=T(()=>{var U;return s(Oe)?s(v):(U=s(v))==null?void 0:U.$el});Mf(Se,U=>{const he=s(Ne),qe=s(Se);he&&(U.target===he||U.composedPath().includes(he))||U.target===qe||U.composedPath().includes(qe)||(m.value=!1)});const ke=V(null),$e=()=>{if(ke.value){const U=Pe(ve.value);U&&Ke(U)&&(E(Ge(U)?U.map(he=>he.toDate()):U.toDate()),ke.value=null)}ke.value===""&&(E(null),M(null),ke.value=null)},Pe=U=>U?C.value.parseUserInput(U):null,Ye=U=>U?C.value.formatToString(U):null,Ke=U=>C.value.isValidValue(U),Ee=async U=>{if(r.readonly||ie.value)return;const{code:he}=U;if(I(U),he===tt.esc){m.value===!0&&(m.value=!1,U.preventDefault(),U.stopPropagation());return}if(he===tt.down&&(C.value.handleFocusPicker&&(U.preventDefault(),U.stopPropagation()),m.value===!1&&(m.value=!0,await et()),C.value.handleFocusPicker)){C.value.handleFocusPicker();return}if(he===tt.tab){g=!0;return}if(he===tt.enter||he===tt.numpadEnter){(ke.value===null||ke.value===""||Ke(Pe(ve.value)))&&($e(),m.value=!1),U.stopPropagation();return}if(ke.value){U.stopPropagation();return}C.value.handleKeydownInput&&C.value.handleKeydownInput(U)},Ue=U=>{ke.value=U,m.value||(m.value=!0)},nt=U=>{const he=U.target;ke.value?ke.value=[he.value,ke.value[1]]:ke.value=[he.value,null]},dt=U=>{const he=U.target;ke.value?ke.value=[ke.value[0],he.value]:ke.value=[null,he.value]},gt=()=>{var U;const he=ke.value,qe=Pe(he&&he[0]),st=s(se);if(qe&&qe.isValid()){ke.value=[Ye(qe),((U=ve.value)==null?void 0:U[1])||null];const At=[qe,st&&(st[1]||null)];Ke(At)&&(E(At),ke.value=null)}},Y=()=>{var U;const he=s(ke),qe=Pe(he&&he[1]),st=s(se);if(qe&&qe.isValid()){ke.value=[((U=s(ve))==null?void 0:U[0])||null,Ye(qe)];const At=[st&&st[0],qe];Ke(At)&&(E(At),ke.value=null)}},C=V({}),S=U=>{C.value[U[0]]=U[1],C.value.panelReady=!0},H=U=>{o("calendar-change",U)},ee=(U,he,qe)=>{o("panel-change",U,he,qe)};return zt("EP_PICKER_BASE",{props:r}),t({focus:X,handleFocusInput:N,handleBlurInput:re,handleOpen:J,handleClose:L,onPick:R}),(U,he)=>(b(),de(s(er),Et({ref_key:"refPopper",ref:f,visible:m.value,effect:"light",pure:"",trigger:"click"},U.$attrs,{role:"dialog",teleported:"",transition:`${s(a).namespace.value}-zoom-in-top`,"popper-class":[`${s(a).namespace.value}-picker__popper`,U.popperClass],"popper-options":s(p),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:j,onHide:Q}),{default:ne(()=>[s(Oe)?(b(),z("div",{key:1,ref_key:"inputRef",ref:v,class:P(s(w)),style:Qe(U.$attrs.style),onClick:N,onMouseenter:ce,onMouseleave:we,onTouchstart:Ae,onKeydown:Ee},[s(me)?(b(),de(s(Je),{key:0,class:P([s(i).e("icon"),s(c).e("icon")]),onMousedown:it(te,["prevent"]),onTouchstart:Ae},{default:ne(()=>[(b(),de(St(s(me))))]),_:1},8,["class","onMousedown"])):ue("v-if",!0),$("input",{id:U.id&&U.id[0],autocomplete:"off",name:U.name&&U.name[0],placeholder:U.startPlaceholder,value:s(ve)&&s(ve)[0],disabled:s(ie),readonly:!U.editable||U.readonly,class:P(s(c).b("input")),onMousedown:te,onInput:nt,onChange:gt,onFocus:N,onBlur:re},null,42,bU),be(U.$slots,"range-separator",{},()=>[$("span",{class:P(s(c).b("separator"))},ze(U.rangeSeparator),3)]),$("input",{id:U.id&&U.id[1],autocomplete:"off",name:U.name&&U.name[1],placeholder:U.endPlaceholder,value:s(ve)&&s(ve)[1],disabled:s(ie),readonly:!U.editable||U.readonly,class:P(s(c).b("input")),onMousedown:te,onFocus:N,onBlur:re,onInput:dt,onChange:Y},null,42,_U),U.clearIcon?(b(),de(s(Je),{key:1,class:P(s(x)),onClick:ye},{default:ne(()=>[(b(),de(St(U.clearIcon)))]),_:1},8,["class"])):ue("v-if",!0)],38)):(b(),de(s(Wo),{key:0,id:U.id,ref_key:"inputRef",ref:v,"container-role":"combobox","model-value":s(ve),name:U.name,size:s(xe),disabled:s(ie),placeholder:U.placeholder,class:P([s(a).b("editor"),s(a).bm("editor",U.type),U.$attrs.class]),style:Qe(U.$attrs.style),readonly:!U.editable||U.readonly||s(_e)||U.type==="week",label:U.label,tabindex:U.tabindex,"validate-event":!1,onInput:Ue,onFocus:N,onBlur:re,onKeydown:Ee,onChange:$e,onMousedown:te,onMouseenter:ce,onMouseleave:we,onTouchstart:Ae,onClick:he[0]||(he[0]=it(()=>{},["stop"]))},{prefix:ne(()=>[s(me)?(b(),de(s(Je),{key:0,class:P(s(i).e("icon")),onMousedown:it(te,["prevent"]),onTouchstart:Ae},{default:ne(()=>[(b(),de(St(s(me))))]),_:1},8,["class","onMousedown"])):ue("v-if",!0)]),suffix:ne(()=>[Be.value&&U.clearIcon?(b(),de(s(Je),{key:0,class:P(`${s(i).e("icon")} clear-icon`),onClick:it(ye,["stop"])},{default:ne(()=>[(b(),de(St(U.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:ne(()=>[be(U.$slots,"default",{visible:m.value,actualVisible:h.value,parsedValue:s(se),format:U.format,dateFormat:U.dateFormat,timeFormat:U.timeFormat,unlinkPanels:U.unlinkPanels,type:U.type,defaultValue:U.defaultValue,onPick:R,onSelectRange:F,onSetPickerOption:S,onCalendarChange:H,onPanelChange:ee,onKeydown:Z,onMousedown:he[1]||(he[1]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var Y6=Fe(wU,[["__file","picker.vue"]]);const yU=He({...q6,datetimeRole:String,parsedValue:{type:pe(Object)}}),G6=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:o})=>{const r=(a,i,c,u)=>{const d={hour:e,minute:t,second:o};let p=a;return["hour","minute","second"].forEach(f=>{if(d[f]){let v;const m=d[f];switch(f){case"minute":{v=m(p.hour(),i,u);break}case"second":{v=m(p.hour(),p.minute(),i,u);break}default:{v=m(i,u);break}}if(v!=null&&v.length&&!v.includes(p[f]())){const h=c?0:v.length-1;p=p[f](v[h])}}}),p},l={};return{timePickerOptions:l,getAvailableTime:r,onSetOption:([a,i])=>{l[a]=i}}},dh=e=>{const t=(r,l)=>r||l,o=r=>r!==!0;return e.map(t).filter(o)},X6=(e,t,o)=>({getHoursList:(a,i)=>ch(24,e&&(()=>e==null?void 0:e(a,i))),getMinutesList:(a,i,c)=>ch(60,t&&(()=>t==null?void 0:t(a,i,c))),getSecondsList:(a,i,c,u)=>ch(60,o&&(()=>o==null?void 0:o(a,i,c,u)))}),Z6=(e,t,o)=>{const{getHoursList:r,getMinutesList:l,getSecondsList:n}=X6(e,t,o);return{getAvailableHours:(u,d)=>dh(r(u,d)),getAvailableMinutes:(u,d,p)=>dh(l(u,d,p)),getAvailableSeconds:(u,d,p,f)=>dh(n(u,d,p,f))}},J6=e=>{const t=V(e.parsedValue);return Te(()=>e.visible,o=>{o||(t.value=e.parsedValue)}),t},zn=new Map;let Q6;Bt&&(document.addEventListener("mousedown",e=>Q6=e),document.addEventListener("mouseup",e=>{for(const t of zn.values())for(const{documentHandler:o}of t)o(e,Q6)}));function e4(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:zr(t.arg)&&o.push(t.arg),function(r,l){const n=t.instance.popperRef,a=r.target,i=l==null?void 0:l.target,c=!t||!t.instance,u=!a||!i,d=e.contains(a)||e.contains(i),p=e===a,f=o.length&&o.some(m=>m==null?void 0:m.contains(a))||o.length&&o.includes(i),v=n&&(n.contains(a)||n.contains(i));c||u||d||p||f||v||t.value(r,l)}}const Ul={beforeMount(e,t){zn.has(e)||zn.set(e,[]),zn.get(e).push({documentHandler:e4(e,t),bindingFn:t.value})},updated(e,t){zn.has(e)||zn.set(e,[]);const o=zn.get(e),r=o.findIndex(n=>n.bindingFn===t.oldValue),l={documentHandler:e4(e,t),bindingFn:t.value};r>=0?o.splice(r,1,l):o.push(l)},unmounted(e){zn.delete(e)}},xU=100,kU=600,ad={beforeMount(e,t){const o=t.value,{interval:r=xU,delay:l=kU}=ut(o)?{}:o;let n,a;const i=()=>ut(o)?o():o.handler(),c=()=>{a&&(clearTimeout(a),a=void 0),n&&(clearInterval(n),n=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(c(),i(),document.addEventListener("mouseup",()=>c(),{once:!0}),a=setTimeout(()=>{n=setInterval(()=>{i()},r)},l))})}},ph="_trap-focus-children",pa=[],t4=e=>{if(pa.length===0)return;const t=pa[pa.length-1][ph];if(t.length>0&&e.code===tt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const o=e.shiftKey,r=e.target===t[0],l=e.target===t[t.length-1];r&&o&&(e.preventDefault(),t[t.length-1].focus()),l&&!o&&(e.preventDefault(),t[0].focus())}},CU={beforeMount(e){e[ph]=T1(e),pa.push(e),pa.length<=1&&document.addEventListener("keydown",t4)},updated(e){et(()=>{e[ph]=T1(e)})},unmounted(){pa.shift(),pa.length===0&&document.removeEventListener("keydown",t4)}};var o4=!1,fa,fh,hh,id,sd,r4,cd,vh,mh,gh,l4,bh,_h,n4,a4;function fr(){if(!o4){o4=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),o=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(bh=/\b(iPhone|iP[ao]d)/.exec(e),_h=/\b(iP[ao]d)/.exec(e),gh=/Android/i.exec(e),n4=/FBAN\/\w+;/i.exec(e),a4=/Mobile/i.exec(e),l4=!!/Win64/.exec(e),t){fa=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,fa&&document&&document.documentMode&&(fa=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);r4=r?parseFloat(r[1])+4:fa,fh=t[2]?parseFloat(t[2]):NaN,hh=t[3]?parseFloat(t[3]):NaN,id=t[4]?parseFloat(t[4]):NaN,id?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),sd=t&&t[1]?parseFloat(t[1]):NaN):sd=NaN}else fa=fh=hh=sd=id=NaN;if(o){if(o[1]){var l=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);cd=l?parseFloat(l[1].replace("_",".")):!0}else cd=!1;vh=!!o[2],mh=!!o[3]}else cd=vh=mh=!1}}var wh={ie:function(){return fr()||fa},ieCompatibilityMode:function(){return fr()||r4>fa},ie64:function(){return wh.ie()&&l4},firefox:function(){return fr()||fh},opera:function(){return fr()||hh},webkit:function(){return fr()||id},safari:function(){return wh.webkit()},chrome:function(){return fr()||sd},windows:function(){return fr()||vh},osx:function(){return fr()||cd},linux:function(){return fr()||mh},iphone:function(){return fr()||bh},mobile:function(){return fr()||bh||_h||gh||a4},nativeApp:function(){return fr()||n4},android:function(){return fr()||gh},ipad:function(){return fr()||_h}},SU=wh,ud=!!(typeof window<"u"&&window.document&&window.document.createElement),EU={canUseDOM:ud,canUseWorkers:typeof Worker<"u",canUseEventListeners:ud&&!!(window.addEventListener||window.attachEvent),canUseViewport:ud&&!!window.screen,isInWorker:!ud},i4=EU,s4;i4.canUseDOM&&(s4=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function $U(e,t){if(!i4.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,r=o in document;if(!r){var l=document.createElement("div");l.setAttribute(o,"return;"),r=typeof l[o]=="function"}return!r&&s4&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var TU=$U,c4=10,u4=40,d4=800;function p4(e){var t=0,o=0,r=0,l=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=t*c4,l=o*c4,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||l)&&e.deltaMode&&(e.deltaMode==1?(r*=u4,l*=u4):(r*=d4,l*=d4)),r&&!t&&(t=r<1?-1:1),l&&!o&&(o=l<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:l}}p4.getEventType=function(){return SU.firefox()?"DOMMouseScroll":TU("wheel")?"wheel":"mousewheel"};var zU=p4;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -114,21 +115,21 @@ https://sweetalert2.github.io/#ajax-request`),Qce(G),typeof G.title=="string"&&( * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const sU=function(e,t){if(e&&e.addEventListener){const o=function(r){const l=iU(r);t&&Reflect.apply(t,this,[r,l])};e.addEventListener("wheel",o,{passive:!0})}},cU={beforeMount(e,t){sU(e,t.value)}},uU=He({role:{type:String,required:!0},spinnerDate:{type:pe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:pe(String),default:""},...N6}),dU=["onClick"],pU=["onMouseenter"];var vh=Fe(B({__name:"basic-time-spinner",props:uU,emits:["change","select-range","set-option"],setup(e,{emit:t}){const o=e,r=Oe("time"),{getHoursList:l,getMinutesList:n,getSecondsList:a}=H6(o.disabledHours,o.disabledMinutes,o.disabledSeconds);let i=!1;const c=V(),u=V(),p=V(),d=V(),f={hours:u,minutes:p,seconds:d},v=$(()=>o.showSeconds?z6:z6.slice(0,2)),m=$(()=>{const{spinnerDate:N}=o,W=N.hour(),re=N.minute(),ie=N.second();return{hours:W,minutes:re,seconds:ie}}),h=$(()=>{const{hours:N,minutes:W}=s(m);return{hours:l(o.role),minutes:n(N,o.role),seconds:a(N,W,o.role)}}),_=$(()=>{const{hours:N,minutes:W,seconds:re}=s(m);return{hours:oh(N,23),minutes:oh(W,59),seconds:oh(re,59)}}),g=Zo(N=>{i=!1,x(N)},200),y=N=>{if(!!!o.amPmMode)return"";const re=o.amPmMode==="A";let ie=N<12?" am":" pm";return re&&(ie=ie.toUpperCase()),ie},w=N=>{let W;switch(N){case"hours":W=[0,2];break;case"minutes":W=[3,5];break;case"seconds":W=[6,8];break}const[re,ie]=W;t("select-range",re,ie),c.value=N},x=N=>{O(N,s(m)[N])},M=()=>{x("hours"),x("minutes"),x("seconds")},T=N=>N.querySelector(`.${r.namespace.value}-scrollbar__wrap`),O=(N,W)=>{if(o.arrowControl)return;const re=s(f[N]);re&&re.$el&&(T(re.$el).scrollTop=Math.max(0,W*I(N)))},I=N=>{const W=s(f[N]),re=W==null?void 0:W.$el.querySelector("li");return re&&Number.parseFloat(bn(re,"height"))||0},F=()=>{R(1)},K=()=>{R(-1)},R=N=>{c.value||w("hours");const W=c.value,re=s(m)[W],ie=c.value==="hours"?24:60,se=D(W,re,N,ie);j(W,se),O(W,se),et(()=>w(W))},D=(N,W,re,ie)=>{let se=(W+re+ie)%ie;const ve=s(h)[N];for(;ve[se]&&se!==W;)se=(se+re+ie)%ie;return se},j=(N,W)=>{if(s(h)[N][W])return;const{hours:se,minutes:ve,seconds:le}=s(m);let ge;switch(N){case"hours":ge=o.spinnerDate.hour(W).minute(ve).second(le);break;case"minutes":ge=o.spinnerDate.hour(se).minute(W).second(le);break;case"seconds":ge=o.spinnerDate.hour(se).minute(ve).second(W);break}t("change",ge)},Z=(N,{value:W,disabled:re})=>{re||(j(N,W),w(N),O(N,W))},Q=N=>{i=!0,g(N);const W=Math.min(Math.round((T(s(f[N]).$el).scrollTop-(J(N)*.5-10)/I(N)+3)/I(N)),N==="hours"?23:59);j(N,W)},J=N=>s(f[N]).$el.offsetHeight,L=()=>{const N=W=>{const re=s(f[W]);re&&re.$el&&(T(re.$el).onscroll=()=>{Q(W)})};N("hours"),N("minutes"),N("seconds")};vt(()=>{et(()=>{!o.arrowControl&&L(),M(),o.role==="start"&&w("hours")})});const X=(N,W)=>{f[W].value=N};return t("set-option",[`${o.role}_scrollDown`,R]),t("set-option",[`${o.role}_emitSelectRange`,w]),Te(()=>o.spinnerDate,()=>{i||M()}),(N,W)=>(b(),z("div",{class:P([s(r).b("spinner"),{"has-seconds":N.showSeconds}])},[N.arrowControl?ue("v-if",!0):(b(!0),z(Ge,{key:0},Tt(s(v),re=>(b(),de(s(Kl),{key:re,ref_for:!0,ref:ie=>X(ie,re),class:P(s(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":s(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ie=>w(re),onMousemove:ie=>x(re)},{default:ne(()=>[(b(!0),z(Ge,null,Tt(s(h)[re],(ie,se)=>(b(),z("li",{key:se,class:P([s(r).be("spinner","item"),s(r).is("active",se===s(m)[re]),s(r).is("disabled",ie)]),onClick:ve=>Z(re,{value:se,disabled:ie})},[re==="hours"?(b(),z(Ge,{key:0},[$t(ze(("0"+(N.amPmMode?se%12||12:se)).slice(-2))+ze(y(se)),1)],64)):(b(),z(Ge,{key:1},[$t(ze(("0"+se).slice(-2)),1)],64))],10,dU))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),N.arrowControl?(b(!0),z(Ge,{key:1},Tt(s(v),re=>(b(),z("div",{key:re,class:P([s(r).be("spinner","wrapper"),s(r).is("arrow")]),onMouseenter:ie=>w(re)},[ht((b(),de(s(Je),{class:P(["arrow-up",s(r).be("spinner","arrow")])},{default:ne(()=>[oe(s(Cs))]),_:1},8,["class"])),[[s(rd),K]]),ht((b(),de(s(Je),{class:P(["arrow-down",s(r).be("spinner","arrow")])},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"])),[[s(rd),F]]),E("ul",{class:P(s(r).be("spinner","list"))},[(b(!0),z(Ge,null,Tt(s(_)[re],(ie,se)=>(b(),z("li",{key:se,class:P([s(r).be("spinner","item"),s(r).is("active",ie===s(m)[re]),s(r).is("disabled",s(h)[re][ie])])},[typeof ie=="number"?(b(),z(Ge,{key:0},[re==="hours"?(b(),z(Ge,{key:0},[$t(ze(("0"+(N.amPmMode?ie%12||12:ie)).slice(-2))+ze(y(ie)),1)],64)):(b(),z(Ge,{key:1},[$t(ze(("0"+ie).slice(-2)),1)],64))],64)):ue("v-if",!0)],2))),128))],2)],42,pU))),128)):ue("v-if",!0)],2))}}),[["__file","basic-time-spinner.vue"]]),sd=Fe(B({__name:"panel-time-pick",props:QW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=Le("EP_PICKER_BASE"),{arrowControl:l,disabledHours:n,disabledMinutes:a,disabledSeconds:i,defaultValue:c}=r.props,{getAvailableHours:u,getAvailableMinutes:p,getAvailableSeconds:d}=F6(n,a,i),f=Oe("time"),{t:v,lang:m}=Nt(),h=V([0,2]),_=D6(o),g=$(()=>ko(o.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),y=$(()=>o.format.includes("ss")),w=$(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),x=X=>{const N=wt(X).locale(m.value),W=Z(N);return N.isSame(W)},M=()=>{t("pick",_.value,!1)},T=(X=!1,N=!1)=>{N||t("pick",o.parsedValue,X)},O=X=>{if(!o.visible)return;const N=Z(X).millisecond(0);t("pick",N,!0)},I=(X,N)=>{t("select-range",X,N),h.value=[X,N]},F=X=>{const N=[0,3].concat(y.value?[6]:[]),W=["hours","minutes"].concat(y.value?["seconds"]:[]),ie=(N.indexOf(h.value[0])+X+N.length)%N.length;R.start_emitSelectRange(W[ie])},K=X=>{const N=X.code,{left:W,right:re,up:ie,down:se}=tt;if([W,re].includes(N)){F(N===W?-1:1),X.preventDefault();return}if([ie,se].includes(N)){const ve=N===ie?-1:1;R.start_scrollDown(ve),X.preventDefault();return}},{timePickerOptions:R,onSetOption:D,getAvailableTime:j}=V6({getAvailableHours:u,getAvailableMinutes:p,getAvailableSeconds:d}),Z=X=>j(X,o.datetimeRole||"",!0),Q=X=>X?wt(X,o.format).locale(m.value):null,J=X=>X?X.format(o.format):null,L=()=>wt(c).locale(m.value);return t("set-picker-option",["isValidValue",x]),t("set-picker-option",["formatToString",J]),t("set-picker-option",["parseUserInput",Q]),t("set-picker-option",["handleKeydownInput",K]),t("set-picker-option",["getRangeAvailableTime",Z]),t("set-picker-option",["getDefaultValue",L]),(X,N)=>(b(),de(_o,{name:s(g)},{default:ne(()=>[X.actualVisible||X.visible?(b(),z("div",{key:0,class:P(s(f).b("panel"))},[E("div",{class:P([s(f).be("panel","content"),{"has-seconds":s(y)}])},[oe(vh,{ref:"spinner",role:X.datetimeRole||"start","arrow-control":s(l),"show-seconds":s(y),"am-pm-mode":s(w),"spinner-date":X.parsedValue,"disabled-hours":s(n),"disabled-minutes":s(a),"disabled-seconds":s(i),onChange:O,onSetOption:s(D),onSelectRange:I},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:P(s(f).be("panel","footer"))},[E("button",{type:"button",class:P([s(f).be("panel","btn"),"cancel"]),onClick:M},ze(s(v)("el.datepicker.cancel")),3),E("button",{type:"button",class:P([s(f).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=W=>T())},ze(s(v)("el.datepicker.confirm")),3)],2)],2)):ue("v-if",!0)]),_:1},8,["name"]))}}),[["__file","panel-time-pick.vue"]]);const fU=He({...L6,parsedValue:{type:pe(Array)}}),hU=["disabled"];var vU=Fe(B({__name:"panel-time-range",props:fU,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=(Me,te)=>{const ce=[];for(let we=Me;we<=te;we++)ce.push(we);return ce},{t:l,lang:n}=Nt(),a=Oe("time"),i=Oe("picker"),c=Le("EP_PICKER_BASE"),{arrowControl:u,disabledHours:p,disabledMinutes:d,disabledSeconds:f,defaultValue:v}=c.props,m=$(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),x.value?"has-seconds":""]),h=$(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),x.value?"has-seconds":""]),_=$(()=>o.parsedValue[0]),g=$(()=>o.parsedValue[1]),y=D6(o),w=()=>{t("pick",y.value,!1)},x=$(()=>o.format.includes("ss")),M=$(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),T=(Me=!1)=>{t("pick",[_.value,g.value],Me)},O=Me=>{K(Me.millisecond(0),g.value)},I=Me=>{K(_.value,Me.millisecond(0))},F=Me=>{const te=Me.map(we=>wt(we).locale(n.value)),ce=re(te);return te[0].isSame(ce[0])&&te[1].isSame(ce[1])},K=(Me,te)=>{t("pick",[Me,te],!0)},R=$(()=>_.value>g.value),D=V([0,2]),j=(Me,te)=>{t("select-range",Me,te,"min"),D.value=[Me,te]},Z=$(()=>x.value?11:8),Q=(Me,te)=>{t("select-range",Me,te,"max");const ce=s(Z);D.value=[Me+ce,te+ce]},J=Me=>{const te=x.value?[0,3,6,11,14,17]:[0,3,8,11],ce=["hours","minutes"].concat(x.value?["seconds"]:[]),Ae=(te.indexOf(D.value[0])+Me+te.length)%te.length,Ie=te.length/2;Ae{const te=Me.code,{left:ce,right:we,up:Ae,down:Ie}=tt;if([ce,we].includes(te)){J(te===ce?-1:1),Me.preventDefault();return}if([Ae,Ie].includes(te)){const xe=te===Ae?-1:1,Ne=D.value[0]{const ce=p?p(Me):[],we=Me==="start",Ie=(te||(we?g.value:_.value)).hour(),xe=we?r(Ie+1,23):r(0,Ie-1);return e0(ce,xe)},N=(Me,te,ce)=>{const we=d?d(Me,te):[],Ae=te==="start",Ie=ce||(Ae?g.value:_.value),xe=Ie.hour();if(Me!==xe)return we;const Ne=Ie.minute(),Se=Ae?r(Ne+1,59):r(0,Ne-1);return e0(we,Se)},W=(Me,te,ce,we)=>{const Ae=f?f(Me,te,ce):[],Ie=ce==="start",xe=we||(Ie?g.value:_.value),Ne=xe.hour(),Se=xe.minute();if(Me!==Ne||te!==Se)return Ae;const ke=xe.second(),$e=Ie?r(ke+1,59):r(0,ke-1);return e0(Ae,$e)},re=([Me,te])=>[ge(Me,"start",!0,te),ge(te,"end",!1,Me)],{getAvailableHours:ie,getAvailableMinutes:se,getAvailableSeconds:ve}=F6(X,N,W),{timePickerOptions:le,getAvailableTime:ge,onSetOption:_e}=V6({getAvailableHours:ie,getAvailableMinutes:se,getAvailableSeconds:ve}),me=Me=>Me?Ye(Me)?Me.map(te=>wt(te,o.format).locale(n.value)):wt(Me,o.format).locale(n.value):null,Be=Me=>Me?Ye(Me)?Me.map(te=>te.format(o.format)):Me.format(o.format):null,ye=()=>{if(Ye(v))return v.map(te=>wt(te).locale(n.value));const Me=wt(v).locale(n.value);return[Me,Me.add(60,"m")]};return t("set-picker-option",["formatToString",Be]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["isValidValue",F]),t("set-picker-option",["handleKeydownInput",L]),t("set-picker-option",["getDefaultValue",ye]),t("set-picker-option",["getRangeAvailableTime",re]),(Me,te)=>Me.actualVisible?(b(),z("div",{key:0,class:P([s(a).b("range-picker"),s(i).b("panel")])},[E("div",{class:P(s(a).be("range-picker","content"))},[E("div",{class:P(s(a).be("range-picker","cell"))},[E("div",{class:P(s(a).be("range-picker","header"))},ze(s(l)("el.datepicker.startTime")),3),E("div",{class:P(s(m))},[oe(vh,{ref:"minSpinner",role:"start","show-seconds":s(x),"am-pm-mode":s(M),"arrow-control":s(u),"spinner-date":s(_),"disabled-hours":X,"disabled-minutes":N,"disabled-seconds":W,onChange:O,onSetOption:s(_e),onSelectRange:j},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:P(s(a).be("range-picker","cell"))},[E("div",{class:P(s(a).be("range-picker","header"))},ze(s(l)("el.datepicker.endTime")),3),E("div",{class:P(s(h))},[oe(vh,{ref:"maxSpinner",role:"end","show-seconds":s(x),"am-pm-mode":s(M),"arrow-control":s(u),"spinner-date":s(g),"disabled-hours":X,"disabled-minutes":N,"disabled-seconds":W,onChange:I,onSetOption:s(_e),onSelectRange:Q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:P(s(a).be("panel","footer"))},[E("button",{type:"button",class:P([s(a).be("panel","btn"),"cancel"]),onClick:te[0]||(te[0]=ce=>w())},ze(s(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:P([s(a).be("panel","btn"),"confirm"]),disabled:s(R),onClick:te[1]||(te[1]=ce=>T())},ze(s(l)("el.datepicker.confirm")),11,hU)],2)],2)):ue("v-if",!0)}}),[["__file","panel-time-range.vue"]]);wt.extend(eh);var mU=B({name:"ElTimePicker",install:null,props:{...lh,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const o=V(),[r,l]=e.isRange?["timerange",vU]:["time",sd],n=a=>t.emit("update:modelValue",a);return zt("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var i;(i=o.value)==null||i.handleFocusInput(a)},blur:a=>{var i;(i=o.value)==null||i.handleBlurInput(a)},handleOpen:()=>{var a;(a=o.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=o.value)==null||a.handleClose()}}),()=>{var a;const i=(a=e.format)!=null?a:th;return oe(R6,Et(e,{ref:o,type:r,format:i,"onUpdate:modelValue":n}),{default:c=>oe(l,c,null)})}}});const cd=mU;cd.install=e=>{e.component(cd.name,cd)};const gU=cd,bU=(e,t)=>{const o=e.subtract(1,"month").endOf("month").date();return Tn(t).map((r,l)=>o-(t-l-1))},_U=e=>{const t=e.daysInMonth();return Tn(t).map((o,r)=>r+1)},wU=e=>Tn(e.length/7).map(t=>{const o=t*7;return e.slice(o,o+7)}),yU=He({selectedDay:{type:pe(Object)},range:{type:pe(Array)},date:{type:pe(Object),required:!0},hideHeader:{type:Boolean}}),xU={pick:e=>Ct(e)};var r4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r,l){var n=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,f,v,m,h){var _=d.name?d:d.$locale(),g=a(_[f]),y=a(_[v]),w=g||y.map(function(M){return M.slice(0,m)});if(!h)return w;var x=_.weekStart;return w.map(function(M,T){return w[(T+(x||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(d,f){return d.formats[f]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,_){return h||_.slice(1)})}(d.formats[f.toUpperCase()])},p=function(){var d=this;return{months:function(f){return f?f.format("MMMM"):i(d,"months")},monthsShort:function(f){return f?f.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):i(d,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(d.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(f){return u(d,f)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(r4);var kU=r4.exports;const l4=Er(kU),CU=(e,t)=>{wt.extend(l4);const o=wt.localeData().firstDayOfWeek(),{t:r,lang:l}=Nt(),n=wt().locale(l.value),a=$(()=>!!e.range&&!!e.range.length),i=$(()=>{let f=[];if(a.value){const[v,m]=e.range,h=Tn(m.date()-v.date()+1).map(y=>({text:v.date()+y,type:"current"}));let _=h.length%7;_=_===0?0:7-_;const g=Tn(_).map((y,w)=>({text:w+1,type:"next"}));f=h.concat(g)}else{const v=e.date.startOf("month").day(),m=bU(e.date,(v-o+7)%7).map(y=>({text:y,type:"prev"})),h=_U(e.date).map(y=>({text:y,type:"current"}));f=[...m,...h];const _=7-(f.length%7||7),g=Tn(_).map((y,w)=>({text:w+1,type:"next"}));f=f.concat(g)}return wU(f)}),c=$(()=>{const f=o;return f===0?u0.map(v=>r(`el.datepicker.weeks.${v}`)):u0.slice(f).concat(u0.slice(0,f)).map(v=>r(`el.datepicker.weeks.${v}`))}),u=(f,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(f);case"next":return e.date.startOf("month").add(1,"month").date(f);case"current":return e.date.date(f)}};return{now:n,isInRange:a,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:({text:f,type:v})=>{const m=u(f,v);t("pick",m)},getSlotData:({text:f,type:v})=>{const m=u(f,v);return{isSelected:m.isSame(e.selectedDay),type:`${v}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},SU={key:0},EU=["onClick"],$U=B({...B({name:"DateTable"}),props:yU,emits:xU,setup(e,{expose:t,emit:o}){const r=e,{isInRange:l,now:n,rows:a,weekDays:i,getFormattedDate:c,handlePickDay:u,getSlotData:p}=CU(r,o),d=Oe("calendar-table"),f=Oe("calendar-day"),v=({text:m,type:h})=>{const _=[h];if(h==="current"){const g=c(m,h);g.isSame(r.selectedDay,"day")&&_.push(f.is("selected")),g.isSame(n,"day")&&_.push(f.is("today"))}return _};return t({getFormattedDate:c}),(m,h)=>(b(),z("table",{class:P([s(d).b(),s(d).is("range",s(l))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ue("v-if",!0):(b(),z("thead",SU,[(b(!0),z(Ge,null,Tt(s(i),_=>(b(),z("th",{key:_},ze(_),1))),128))])),E("tbody",null,[(b(!0),z(Ge,null,Tt(s(a),(_,g)=>(b(),z("tr",{key:g,class:P({[s(d).e("row")]:!0,[s(d).em("row","hide-border")]:g===0&&m.hideHeader})},[(b(!0),z(Ge,null,Tt(_,(y,w)=>(b(),z("td",{key:w,class:P(v(y)),onClick:x=>s(u)(y)},[E("div",{class:P(s(f).b())},[be(m.$slots,"date-cell",{data:s(p)(y)},()=>[E("span",null,ze(y.text),1)])],2)],10,EU))),128))],2))),128))])],2))}});var n4=Fe($U,[["__file","date-table.vue"]]);const TU=(e,t)=>{const o=e.endOf("month"),r=t.startOf("month"),n=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,o],[n.startOf("week"),t]]},zU=(e,t)=>{const o=e.endOf("month"),r=e.add(1,"month").startOf("month"),l=o.isSame(r,"week")?r.add(1,"week"):r,n=l.endOf("month"),a=t.startOf("month"),i=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,o],[l.startOf("week"),n],[i.startOf("week"),t]]},MU=(e,t,o)=>{const r=Bo(),{lang:l}=Nt(),n=V(),a=wt().locale(l.value),i=$({get(){return e.modelValue?u.value:n.value},set(g){if(!g)return;n.value=g;const y=g.toDate();t(Jo,y),t(kt,y)}}),c=$(()=>{if(!e.range)return[];const g=e.range.map(x=>wt(x).locale(l.value)),[y,w]=g;return y.isAfter(w)?[]:y.isSame(w,"month")?m(y,w):y.add(1,"month").month()!==w.month()?[]:m(y,w)}),u=$(()=>e.modelValue?wt(e.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:a)),p=$(()=>u.value.subtract(1,"month").date(1)),d=$(()=>u.value.add(1,"month").date(1)),f=$(()=>u.value.subtract(1,"year").date(1)),v=$(()=>u.value.add(1,"year").date(1)),m=(g,y)=>{const w=g.startOf("week"),x=y.endOf("week"),M=w.get("month"),T=x.get("month");return M===T?[[w,x]]:(M+1)%12===T?TU(w,x):M+2===T||(M+1)%11===T?zU(w,x):[]},h=g=>{i.value=g},_=g=>{const w={"prev-month":p.value,"next-month":d.value,"prev-year":f.value,"next-year":v.value,today:a}[g];w.isSame(u.value,"day")||h(w)};return sl({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},$(()=>!!r.dateCell)),{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:h,selectDate:_,validatedRange:c}},AU=e=>Ye(e)&&e.length===2&&e.every(t=>Bn(t)),IU=He({modelValue:{type:Date},range:{type:pe(Array),validator:AU}}),OU={[kt]:e=>Bn(e),[Jo]:e=>Bn(e)},PU=B({...B({name:"ElCalendar"}),props:IU,emits:OU,setup(e,{expose:t,emit:o}){const r=e,l=Oe("calendar"),{calculateValidatedDateRange:n,date:a,pickDay:i,realSelectedDay:c,selectDate:u,validatedRange:p}=MU(r,o),{t:d}=Nt(),f=$(()=>{const v=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${d("el.datepicker.year")} ${d(v)}`});return t({selectedDay:c,pickDay:i,selectDate:u,calculateValidatedDateRange:n}),(v,m)=>(b(),z("div",{class:P(s(l).b())},[E("div",{class:P(s(l).e("header"))},[be(v.$slots,"header",{date:s(f)},()=>[E("div",{class:P(s(l).e("title"))},ze(s(f)),3),s(p).length===0?(b(),z("div",{key:0,class:P(s(l).e("button-group"))},[oe(s(E6),null,{default:ne(()=>[oe(s(Vo),{size:"small",onClick:m[0]||(m[0]=h=>s(u)("prev-month"))},{default:ne(()=>[$t(ze(s(d)("el.datepicker.prevMonth")),1)]),_:1}),oe(s(Vo),{size:"small",onClick:m[1]||(m[1]=h=>s(u)("today"))},{default:ne(()=>[$t(ze(s(d)("el.datepicker.today")),1)]),_:1}),oe(s(Vo),{size:"small",onClick:m[2]||(m[2]=h=>s(u)("next-month"))},{default:ne(()=>[$t(ze(s(d)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ue("v-if",!0)])],2),s(p).length===0?(b(),z("div",{key:0,class:P(s(l).e("body"))},[oe(n4,{date:s(a),"selected-day":s(c),onPick:s(i)},Jr({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:ne(h=>[v.$slots["date-cell"]?be(v.$slots,"date-cell",Rr(Et({key:0},h))):be(v.$slots,"dateCell",Rr(Et({key:1},h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(b(),z("div",{key:1,class:P(s(l).e("body"))},[(b(!0),z(Ge,null,Tt(s(p),(h,_)=>(b(),de(n4,{key:_,date:h[0],"selected-day":s(c),range:h,"hide-header":_!==0,onPick:s(i)},Jr({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:ne(g=>[v.$slots["date-cell"]?be(v.$slots,"date-cell",Rr(Et({key:0},g))):be(v.$slots,"dateCell",Rr(Et({key:1},g)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var BU=Fe(PU,[["__file","calendar.vue"]]);const NU=xt(BU),LU=He({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:pe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),RU=B({...B({name:"ElCard"}),props:LU,setup(e){const t=Oe("card");return(o,r)=>(b(),z("div",{class:P([s(t).b(),s(t).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(b(),z("div",{key:0,class:P(s(t).e("header"))},[be(o.$slots,"header",{},()=>[$t(ze(o.header),1)])],2)):ue("v-if",!0),E("div",{class:P([s(t).e("body"),o.bodyClass]),style:Qe(o.bodyStyle)},[be(o.$slots,"default")],6),o.$slots.footer||o.footer?(b(),z("div",{key:1,class:P(s(t).e("footer"))},[be(o.$slots,"footer",{},()=>[$t(ze(o.footer),1)])],2)):ue("v-if",!0)],2))}});var VU=Fe(RU,[["__file","card.vue"]]);const HU=xt(VU),FU=He({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),DU={change:(e,t)=>[e,t].every(ct)},a4=Symbol("carouselContextKey"),i4=300,jU=(e,t,o)=>{const{children:r,addChild:l,removeChild:n}=A0(_t(),"ElCarouselItem"),a=Bo(),i=V(-1),c=V(null),u=V(!1),p=V(),d=V(0),f=V(!0),v=$(()=>e.arrow!=="never"&&!s(_)),m=$(()=>r.value.some(se=>se.props.label.toString().length>0)),h=$(()=>e.type==="card"),_=$(()=>e.direction==="vertical"),g=$(()=>e.height!=="auto"?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"}),y=ea(se=>{I(se)},i4,{trailing:!0}),w=ea(se=>{J(se)},i4),x=se=>f.value?i.value<=1?se<=1:se>1:!0;function M(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>O(),e.interval))}const O=()=>{i.value_e.props.name===se);ge.length>0&&(se=r.value.indexOf(ge[0]))}if(se=Number(se),Number.isNaN(se)||se!==Math.floor(se))return;const ve=r.value.length,le=i.value;se<0?i.value=e.loop?ve-1:0:se>=ve?i.value=e.loop?0:ve-1:i.value=se,le===i.value&&F(le),N()}function F(se){r.value.forEach((ve,le)=>{ve.translateItem(le,i.value,se)})}function K(se,ve){var le,ge,_e,me;const Be=s(r),ye=Be.length;if(ye===0||!se.states.inStage)return!1;const Me=ve+1,te=ve-1,ce=ye-1,we=Be[ce].states.active,Ae=Be[0].states.active,Ie=(ge=(le=Be[Me])==null?void 0:le.states)==null?void 0:ge.active,xe=(me=(_e=Be[te])==null?void 0:_e.states)==null?void 0:me.active;return ve===ce&&Ae||Ie?"left":ve===0&&we||xe?"right":!1}function R(){u.value=!0,e.pauseOnHover&&M()}function D(){u.value=!1,T()}function j(se){s(_)||r.value.forEach((ve,le)=>{se===K(ve,le)&&(ve.states.hover=!0)})}function Z(){s(_)||r.value.forEach(se=>{se.states.hover=!1})}function Q(se){i.value=se}function J(se){e.trigger==="hover"&&se!==i.value&&(i.value=se)}function L(){I(i.value-1)}function X(){I(i.value+1)}function N(){M(),e.pauseOnHover||T()}function W(se){e.height==="auto"&&(d.value=se)}function re(){var se;const ve=(se=a.default)==null?void 0:se.call(a);if(!ve)return null;const le=ra(ve),ge="ElCarouselItem",_e=le.filter(me=>Qt(me)&&me.type.name===ge);return(_e==null?void 0:_e.length)===2&&e.loop&&!h.value?(f.value=!0,_e):(f.value=!1,null)}Te(()=>i.value,(se,ve)=>{F(ve),f.value&&(se=se%2,ve=ve%2),ve>-1&&t("change",se,ve)}),Te(()=>e.autoplay,se=>{se?T():M()}),Te(()=>e.loop,()=>{I(i.value)}),Te(()=>e.interval,()=>{N()});const ie=qt();return vt(()=>{Te(()=>r.value,()=>{r.value.length>0&&I(e.initialIndex)},{immediate:!0}),ie.value=jo(p.value,()=>{F()}),T()}),Zt(()=>{M(),p.value&&ie.value&&ie.value.stop()}),zt(a4,{root:p,isCardType:h,isVertical:_,items:r,loop:e.loop,addItem:l,removeItem:n,setActiveItem:I,setContainerHeight:W}),{root:p,activeIndex:i,arrowDisplay:v,hasLabel:m,hover:u,isCardType:h,items:r,isVertical:_,containerStyle:g,isItemsTwoLength:f,handleButtonEnter:j,handleButtonLeave:Z,handleIndicatorClick:Q,handleMouseEnter:R,handleMouseLeave:D,setActiveItem:I,prev:L,next:X,PlaceholderItem:re,isTwoLengthShow:x,throttledArrowClick:y,throttledIndicatorHover:w}},KU=["onMouseenter","onClick"],WU={key:0},UU=B({...B({name:"ElCarousel"}),props:FU,emits:DU,setup(e,{expose:t,emit:o}){const r=e,{root:l,activeIndex:n,arrowDisplay:a,hasLabel:i,hover:c,isCardType:u,items:p,isVertical:d,containerStyle:f,handleButtonEnter:v,handleButtonLeave:m,handleIndicatorClick:h,handleMouseEnter:_,handleMouseLeave:g,setActiveItem:y,prev:w,next:x,PlaceholderItem:M,isTwoLengthShow:T,throttledArrowClick:O,throttledIndicatorHover:I}=jU(r,o),F=Oe("carousel"),K=$(()=>{const D=[F.b(),F.m(r.direction)];return s(u)&&D.push(F.m("card")),D}),R=$(()=>{const D=[F.e("indicators"),F.em("indicators",r.direction)];return s(i)&&D.push(F.em("indicators","labels")),r.indicatorPosition==="outside"&&D.push(F.em("indicators","outside")),s(d)&&D.push(F.em("indicators","right")),D});return t({setActiveItem:y,prev:w,next:x}),(D,j)=>(b(),z("div",{ref_key:"root",ref:l,class:P(s(K)),onMouseenter:j[6]||(j[6]=it((...Z)=>s(_)&&s(_)(...Z),["stop"])),onMouseleave:j[7]||(j[7]=it((...Z)=>s(g)&&s(g)(...Z),["stop"]))},[E("div",{class:P(s(F).e("container")),style:Qe(s(f))},[s(a)?(b(),de(_o,{key:0,name:"carousel-arrow-left",persisted:""},{default:ne(()=>[ht(E("button",{type:"button",class:P([s(F).e("arrow"),s(F).em("arrow","left")]),onMouseenter:j[0]||(j[0]=Z=>s(v)("left")),onMouseleave:j[1]||(j[1]=(...Z)=>s(m)&&s(m)(...Z)),onClick:j[2]||(j[2]=it(Z=>s(O)(s(n)-1),["stop"]))},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],34),[[Pt,(D.arrow==="always"||s(c))&&(r.loop||s(n)>0)]])]),_:1})):ue("v-if",!0),s(a)?(b(),de(_o,{key:1,name:"carousel-arrow-right",persisted:""},{default:ne(()=>[ht(E("button",{type:"button",class:P([s(F).e("arrow"),s(F).em("arrow","right")]),onMouseenter:j[3]||(j[3]=Z=>s(v)("right")),onMouseleave:j[4]||(j[4]=(...Z)=>s(m)&&s(m)(...Z)),onClick:j[5]||(j[5]=it(Z=>s(O)(s(n)+1),["stop"]))},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],34),[[Pt,(D.arrow==="always"||s(c))&&(r.loop||s(n)ht((b(),z("li",{key:Q,class:P([s(F).e("indicator"),s(F).em("indicator",D.direction),s(F).is("active",Q===s(n))]),onMouseenter:J=>s(I)(Q),onClick:it(J=>s(h)(Q),["stop"])},[E("button",{class:P(s(F).e("button"))},[s(i)?(b(),z("span",WU,ze(Z.props.label),1)):ue("v-if",!0)],2)],42,KU)),[[Pt,s(T)(Q)]])),128))],2)):ue("v-if",!0)],34))}});var qU=Fe(UU,[["__file","carousel.vue"]]);const YU=He({name:{type:String,default:""},label:{type:[String,Number],default:""}}),GU=(e,t)=>{const o=Le(a4),r=_t(),l=.83,n=V(),a=V(!1),i=V(0),c=V(1),u=V(!1),p=V(!1),d=V(!1),f=V(!1),{isCardType:v,isVertical:m}=o;function h(x,M,T){const O=T-1,I=M-1,F=M+1,K=T/2;return M===0&&x===O?-1:M===O&&x===0?T:x=K?T+1:x>F&&x-M>=K?-2:x}function _(x,M){var T,O;const I=s(m)?((T=o.root.value)==null?void 0:T.offsetHeight)||0:((O=o.root.value)==null?void 0:O.offsetWidth)||0;return d.value?I*((2-l)*(x-M)+1)/4:x{var O;const I=s(v),F=(O=o.items.value.length)!=null?O:Number.NaN,K=x===M;!I&&!ko(T)&&(f.value=K||x===T),!K&&F>2&&o.loop&&(x=h(x,M,F));const R=s(m);u.value=K,I?(d.value=Math.round(Math.abs(x-M))<=1,i.value=_(x,M),c.value=s(u)?1:l):i.value=g(x,M,R),p.value=!0,K&&n.value&&o.setContainerHeight(n.value.offsetHeight)};function w(){if(o&&s(v)){const x=o.items.value.findIndex(({uid:M})=>M===r.uid);o.setActiveItem(x)}}return vt(()=>{o.addItem({props:e,states:Ft({hover:a,translate:i,scale:c,active:u,ready:p,inStage:d,animating:f}),uid:r.uid,translateItem:y})}),cn(()=>{o.removeItem(r.uid)}),{carouselItemRef:n,active:u,animating:f,hover:a,inStage:d,isVertical:m,translate:i,isCardType:v,scale:c,ready:p,handleItemClick:w}},XU=B({...B({name:"ElCarouselItem"}),props:YU,setup(e){const t=e,o=Oe("carousel"),{carouselItemRef:r,active:l,animating:n,hover:a,inStage:i,isVertical:c,translate:u,isCardType:p,scale:d,ready:f,handleItemClick:v}=GU(t),m=$(()=>{const _=`${`translate${s(c)?"Y":"X"}`}(${s(u)}px)`,g=`scale(${s(d)})`;return{transform:[_,g].join(" ")}});return(h,_)=>ht((b(),z("div",{ref_key:"carouselItemRef",ref:r,class:P([s(o).e("item"),s(o).is("active",s(l)),s(o).is("in-stage",s(i)),s(o).is("hover",s(a)),s(o).is("animating",s(n)),{[s(o).em("item","card")]:s(p),[s(o).em("item","card-vertical")]:s(p)&&s(c)}]),style:Qe(s(m)),onClick:_[0]||(_[0]=(...g)=>s(v)&&s(v)(...g))},[s(p)?ht((b(),z("div",{key:0,class:P(s(o).e("mask"))},null,2)),[[Pt,!s(l)]]):ue("v-if",!0),be(h.$slots,"default")],6)),[[Pt,s(f)]])}});var s4=Fe(XU,[["__file","carousel-item.vue"]]);const ZU=xt(qU,{CarouselItem:s4}),JU=fo(s4),c4={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:No,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},u4={[kt]:e=>ft(e)||ct(e)||Co(e),change:e=>ft(e)||ct(e)||Co(e)},ui=Symbol("checkboxGroupContextKey"),QU=({model:e,isChecked:t})=>{const o=Le(ui,void 0),r=$(()=>{var n,a;const i=(n=o==null?void 0:o.max)==null?void 0:n.value,c=(a=o==null?void 0:o.min)==null?void 0:a.value;return!ko(i)&&e.value.length>=i&&!t.value||!ko(c)&&e.value.length<=c&&t.value});return{isDisabled:pr($(()=>(o==null?void 0:o.disabled.value)||r.value)),isLimitDisabled:r}},eq=(e,{model:t,isLimitExceeded:o,hasOwnLabel:r,isDisabled:l,isLabeledByFormItem:n})=>{const a=Le(ui,void 0),{formItem:i}=Qo(),{emit:c}=_t();function u(m){var h,_;return m===e.trueLabel||m===!0?(h=e.trueLabel)!=null?h:!0:(_=e.falseLabel)!=null?_:!1}function p(m,h){c("change",u(m),h)}function d(m){if(o.value)return;const h=m.target;c("change",u(h.checked),m)}async function f(m){o.value||!r.value&&!l.value&&n.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await et(),p(t.value,m)))}const v=$(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return Te(()=>e.modelValue,()=>{v.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:d,onClickRoot:f}},tq=e=>{const t=V(!1),{emit:o}=_t(),r=Le(ui,void 0),l=$(()=>ko(r)===!1),n=V(!1);return{model:$({get(){var i,c;return l.value?(i=r==null?void 0:r.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c,u;l.value&&Ye(i)?(n.value=((c=r==null?void 0:r.max)==null?void 0:c.value)!==void 0&&i.length>(r==null?void 0:r.max.value),n.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,i))):(o(kt,i),t.value=i)}}),isGroup:l,isLimitExceeded:n}},oq=(e,t,{model:o})=>{const r=Le(ui,void 0),l=V(!1),n=$(()=>{const u=o.value;return Co(u)?u:Ye(u)?Ct(e.label)?u.map(Vt).some(p=>ir(p,e.label)):u.map(Vt).includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Eo($(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),i=Eo($(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=$(()=>!!t.default||!wo(e.label));return{checkboxButtonSize:a,isChecked:n,isFocused:l,checkboxSize:i,hasOwnLabel:c}},rq=(e,{model:t})=>{function o(){Ye(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&o()},d4=(e,t)=>{const{formItem:o}=Qo(),{model:r,isGroup:l,isLimitExceeded:n}=tq(e),{isFocused:a,isChecked:i,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p}=oq(e,t,{model:r}),{isDisabled:d}=QU({model:r,isChecked:i}),{inputId:f,isLabeledByFormItem:v}=Cn(e,{formItemContext:o,disableIdGeneration:p,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=eq(e,{model:r,isLimitExceeded:n,hasOwnLabel:p,isDisabled:d,isLabeledByFormItem:v});return rq(e,{model:r}),{inputId:f,isLabeledByFormItem:v,isChecked:i,isDisabled:d,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:p,model:r,handleChange:m,onClickRoot:h}},lq=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],nq=["id","indeterminate","disabled","value","name","tabindex"],aq=B({...B({name:"ElCheckbox"}),props:c4,emits:u4,setup(e){const t=e,o=Bo(),{inputId:r,isLabeledByFormItem:l,isChecked:n,isDisabled:a,isFocused:i,checkboxSize:c,hasOwnLabel:u,model:p,handleChange:d,onClickRoot:f}=d4(t,o),v=Oe("checkbox"),m=$(()=>[v.b(),v.m(c.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",n.value)]),h=$(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",n.value),v.is("indeterminate",t.indeterminate),v.is("focus",i.value)]);return(_,g)=>(b(),de(St(!s(u)&&s(l)?"span":"label"),{class:P(s(m)),"aria-controls":_.indeterminate?_.controls:null,onClick:s(f)},{default:ne(()=>[E("span",{class:P(s(h))},[_.trueLabel||_.falseLabel?ht((b(),z("input",{key:0,id:s(r),"onUpdate:modelValue":g[0]||(g[0]=y=>Kt(p)?p.value=y:null),class:P(s(v).e("original")),type:"checkbox",indeterminate:_.indeterminate,name:_.name,tabindex:_.tabindex,disabled:s(a),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:g[1]||(g[1]=(...y)=>s(d)&&s(d)(...y)),onFocus:g[2]||(g[2]=y=>i.value=!0),onBlur:g[3]||(g[3]=y=>i.value=!1),onClick:g[4]||(g[4]=it(()=>{},["stop"]))},null,42,lq)),[[Qc,s(p)]]):ht((b(),z("input",{key:1,id:s(r),"onUpdate:modelValue":g[5]||(g[5]=y=>Kt(p)?p.value=y:null),class:P(s(v).e("original")),type:"checkbox",indeterminate:_.indeterminate,disabled:s(a),value:_.label,name:_.name,tabindex:_.tabindex,onChange:g[6]||(g[6]=(...y)=>s(d)&&s(d)(...y)),onFocus:g[7]||(g[7]=y=>i.value=!0),onBlur:g[8]||(g[8]=y=>i.value=!1),onClick:g[9]||(g[9]=it(()=>{},["stop"]))},null,42,nq)),[[Qc,s(p)]]),E("span",{class:P(s(v).e("inner"))},null,2)],2),s(u)?(b(),z("span",{key:0,class:P(s(v).e("label"))},[be(_.$slots,"default"),_.$slots.default?ue("v-if",!0):(b(),z(Ge,{key:0},[$t(ze(_.label),1)],64))],2)):ue("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var iq=Fe(aq,[["__file","checkbox.vue"]]);const sq=["name","tabindex","disabled","true-value","false-value"],cq=["name","tabindex","disabled","value"],uq=B({...B({name:"ElCheckboxButton"}),props:c4,emits:u4,setup(e){const t=e,o=Bo(),{isFocused:r,isChecked:l,isDisabled:n,checkboxButtonSize:a,model:i,handleChange:c}=d4(t,o),u=Le(ui,void 0),p=Oe("checkbox"),d=$(()=>{var v,m,h,_;const g=(m=(v=u==null?void 0:u.fill)==null?void 0:v.value)!=null?m:"";return{backgroundColor:g,borderColor:g,color:(_=(h=u==null?void 0:u.textColor)==null?void 0:h.value)!=null?_:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),f=$(()=>[p.b("button"),p.bm("button",a.value),p.is("disabled",n.value),p.is("checked",l.value),p.is("focus",r.value)]);return(v,m)=>(b(),z("label",{class:P(s(f))},[v.trueLabel||v.falseLabel?ht((b(),z("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=h=>Kt(i)?i.value=h:null),class:P(s(p).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:s(n),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...h)=>s(c)&&s(c)(...h)),onFocus:m[2]||(m[2]=h=>r.value=!0),onBlur:m[3]||(m[3]=h=>r.value=!1),onClick:m[4]||(m[4]=it(()=>{},["stop"]))},null,42,sq)),[[Qc,s(i)]]):ht((b(),z("input",{key:1,"onUpdate:modelValue":m[5]||(m[5]=h=>Kt(i)?i.value=h:null),class:P(s(p).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:s(n),value:v.label,onChange:m[6]||(m[6]=(...h)=>s(c)&&s(c)(...h)),onFocus:m[7]||(m[7]=h=>r.value=!0),onBlur:m[8]||(m[8]=h=>r.value=!1),onClick:m[9]||(m[9]=it(()=>{},["stop"]))},null,42,cq)),[[Qc,s(i)]]),v.$slots.default||v.label?(b(),z("span",{key:2,class:P(s(p).be("button","inner")),style:Qe(s(l)?s(d):void 0)},[be(v.$slots,"default",{},()=>[$t(ze(v.label),1)])],6)):ue("v-if",!0)],2))}});var p4=Fe(uq,[["__file","checkbox-button.vue"]]);const dq=He({modelValue:{type:pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:No,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),pq={[kt]:e=>Ye(e),change:e=>Ye(e)},fq=B({...B({name:"ElCheckboxGroup"}),props:dq,emits:pq,setup(e,{emit:t}){const o=e,r=Oe("checkbox"),{formItem:l}=Qo(),{inputId:n,isLabeledByFormItem:a}=Cn(o,{formItemContext:l}),i=async u=>{t(kt,u),await et(),t("change",u)},c=$({get(){return o.modelValue},set(u){i(u)}});return zt(ui,{...Pl(Ao(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:i}),Te(()=>o.modelValue,()=>{o.validateEvent&&(l==null||l.validate("change").catch(u=>void 0))}),(u,p)=>{var d;return b(),de(St(u.tag),{id:s(n),class:P(s(r).b("group")),role:"group","aria-label":s(a)?void 0:u.label||"checkbox-group","aria-labelledby":s(a)?(d=s(l))==null?void 0:d.labelId:void 0},{default:ne(()=>[be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var f4=Fe(fq,[["__file","checkbox-group.vue"]]);const Nr=xt(iq,{CheckboxButton:p4,CheckboxGroup:f4}),hq=fo(p4),h4=fo(f4),v4=He({size:No,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),vq=He({...v4,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),m4={[kt]:e=>ft(e)||ct(e)||Co(e),[Jt]:e=>ft(e)||ct(e)||Co(e)},g4=Symbol("radioGroupKey"),b4=(e,t)=>{const o=V(),r=Le(g4,void 0),l=$(()=>!!r),n=$({get(){return l.value?r.modelValue:e.modelValue},set(p){l.value?r.changeEvent(p):t&&t(kt,p),o.value.checked=e.modelValue===e.label}}),a=Eo($(()=>r==null?void 0:r.size)),i=pr($(()=>r==null?void 0:r.disabled)),c=V(!1),u=$(()=>i.value||l.value&&n.value!==e.label?-1:0);return{radioRef:o,isGroup:l,radioGroup:r,focus:c,size:a,disabled:i,tabIndex:u,modelValue:n}},mq=["value","name","disabled"],gq=B({...B({name:"ElRadio"}),props:vq,emits:m4,setup(e,{emit:t}){const o=e,r=Oe("radio"),{radioRef:l,radioGroup:n,focus:a,size:i,disabled:c,modelValue:u}=b4(o,t);function p(){et(()=>t("change",u.value))}return(d,f)=>{var v;return b(),z("label",{class:P([s(r).b(),s(r).is("disabled",s(c)),s(r).is("focus",s(a)),s(r).is("bordered",d.border),s(r).is("checked",s(u)===d.label),s(r).m(s(i))])},[E("span",{class:P([s(r).e("input"),s(r).is("disabled",s(c)),s(r).is("checked",s(u)===d.label)])},[ht(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":f[0]||(f[0]=m=>Kt(u)?u.value=m:null),class:P(s(r).e("original")),value:d.label,name:d.name||((v=s(n))==null?void 0:v.name),disabled:s(c),type:"radio",onFocus:f[1]||(f[1]=m=>a.value=!0),onBlur:f[2]||(f[2]=m=>a.value=!1),onChange:p,onClick:f[3]||(f[3]=it(()=>{},["stop"]))},null,42,mq),[[xg,s(u)]]),E("span",{class:P(s(r).e("inner"))},null,2)],2),E("span",{class:P(s(r).e("label")),onKeydown:f[4]||(f[4]=it(()=>{},["stop"]))},[be(d.$slots,"default",{},()=>[$t(ze(d.label),1)])],34)],2)}}});var bq=Fe(gq,[["__file","radio.vue"]]);const _q=He({...v4,name:{type:String,default:""}}),wq=["value","name","disabled"],yq=B({...B({name:"ElRadioButton"}),props:_q,setup(e){const t=e,o=Oe("radio"),{radioRef:r,focus:l,size:n,disabled:a,modelValue:i,radioGroup:c}=b4(t),u=$(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(p,d)=>{var f;return b(),z("label",{class:P([s(o).b("button"),s(o).is("active",s(i)===p.label),s(o).is("disabled",s(a)),s(o).is("focus",s(l)),s(o).bm("button",s(n))])},[ht(E("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=v=>Kt(i)?i.value=v:null),class:P(s(o).be("button","original-radio")),value:p.label,type:"radio",name:p.name||((f=s(c))==null?void 0:f.name),disabled:s(a),onFocus:d[1]||(d[1]=v=>l.value=!0),onBlur:d[2]||(d[2]=v=>l.value=!1),onClick:d[3]||(d[3]=it(()=>{},["stop"]))},null,42,wq),[[xg,s(i)]]),E("span",{class:P(s(o).be("button","inner")),style:Qe(s(i)===p.label?s(u):{}),onKeydown:d[4]||(d[4]=it(()=>{},["stop"]))},[be(p.$slots,"default",{},()=>[$t(ze(p.label),1)])],38)],2)}}});var _4=Fe(yq,[["__file","radio-button.vue"]]);const xq=He({id:{type:String,default:void 0},size:No,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),kq=m4,Cq=["id","aria-label","aria-labelledby"],Sq=B({...B({name:"ElRadioGroup"}),props:xq,emits:kq,setup(e,{emit:t}){const o=e,r=Oe("radio"),l=dr(),n=V(),{formItem:a}=Qo(),{inputId:i,isLabeledByFormItem:c}=Cn(o,{formItemContext:a}),u=d=>{t(kt,d),et(()=>t("change",d))};vt(()=>{const d=n.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(v=>v.checked)&&f&&(f.tabIndex=0)});const p=$(()=>o.name||l.value);return zt(g4,Ft({...Ao(o),changeEvent:u,name:p})),Te(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>void 0))}),(d,f)=>(b(),z("div",{id:s(i),ref_key:"radioGroupRef",ref:n,class:P(s(r).b("group")),role:"radiogroup","aria-label":s(c)?void 0:d.label||"radio-group","aria-labelledby":s(c)?s(a).labelId:void 0},[be(d.$slots,"default")],10,Cq))}});var w4=Fe(Sq,[["__file","radio-group.vue"]]);const y4=xt(bq,{RadioButton:_4,RadioGroup:w4}),Eq=fo(w4),$q=fo(_4);var Tq=B({name:"NodeContent",setup(){return{ns:Oe("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:o}=this.$parent,{data:r,label:l}=t,{renderLabelFn:n}=o;return rt("span",{class:e.e("label")},n?n({node:t,data:r}):l)}});const mh=Symbol(),zq=B({name:"ElCascaderNode",components:{ElCheckbox:Nr,ElRadio:y4,NodeContent:Tq,ElIcon:Je,Check:qa,Loading:Rl,ArrowRight:Ko},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const o=Le(mh),r=Oe("cascader-node"),l=$(()=>o.isHoverMenu),n=$(()=>o.config.multiple),a=$(()=>o.config.checkStrictly),i=$(()=>{var T;return(T=o.checkedNodes[0])==null?void 0:T.uid}),c=$(()=>e.node.isDisabled),u=$(()=>e.node.isLeaf),p=$(()=>a.value&&!u.value||!c.value),d=$(()=>v(o.expandingNode)),f=$(()=>a.value&&o.checkedNodes.some(v)),v=T=>{var O;const{level:I,uid:F}=e.node;return((O=T==null?void 0:T.pathNodes[I-1])==null?void 0:O.uid)===F},m=()=>{d.value||o.expandNode(e.node)},h=T=>{const{node:O}=e;T!==O.checked&&o.handleCheckChange(O,T)},_=()=>{o.lazyLoad(e.node,()=>{u.value||m()})},g=T=>{l.value&&(y(),!u.value&&t("expand",T))},y=()=>{const{node:T}=e;!p.value||T.loading||(T.loaded?m():_())},w=()=>{l.value&&!u.value||(u.value&&!c.value&&!a.value&&!n.value?M(!0):y())},x=T=>{a.value?(h(T),e.node.loaded&&m()):M(T)},M=T=>{e.node.loaded?(h(T),!a.value&&m()):_()};return{panel:o,isHoverMenu:l,multiple:n,checkStrictly:a,checkedNodeId:i,isDisabled:c,isLeaf:u,expandable:p,inExpandingPath:d,inCheckedPath:f,ns:r,handleHoverExpand:g,handleExpand:y,handleClick:w,handleCheck:M,handleSelectCheck:x}}}),Mq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],Aq=E("span",null,null,-1);function Iq(e,t,o,r,l,n){const a=ot("el-checkbox"),i=ot("el-radio"),c=ot("check"),u=ot("el-icon"),p=ot("node-content"),d=ot("loading"),f=ot("arrow-right");return b(),z("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:P([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onFocus:t[3]||(t[3]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onClick:t[4]||(t[4]=(...v)=>e.handleClick&&e.handleClick(...v))},[ue(" prefix "),e.multiple?(b(),de(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(b(),de(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},{default:ne(()=>[ue(` +*/const MU=function(e,t){if(e&&e.addEventListener){const o=function(r){const l=zU(r);t&&Reflect.apply(t,this,[r,l])};e.addEventListener("wheel",o,{passive:!0})}},AU={beforeMount(e,t){MU(e,t.value)}},OU=He({role:{type:String,required:!0},spinnerDate:{type:pe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:pe(String),default:""},...U6}),IU=["onClick"],PU=["onMouseenter"];var yh=Fe(B({__name:"basic-time-spinner",props:OU,emits:["change","select-range","set-option"],setup(e,{emit:t}){const o=e,r=Ie("time"),{getHoursList:l,getMinutesList:n,getSecondsList:a}=X6(o.disabledHours,o.disabledMinutes,o.disabledSeconds);let i=!1;const c=V(),u=V(),d=V(),p=V(),f={hours:u,minutes:d,seconds:p},v=T(()=>o.showSeconds?V6:V6.slice(0,2)),m=T(()=>{const{spinnerDate:N}=o,W=N.hour(),re=N.minute(),ie=N.second();return{hours:W,minutes:re,seconds:ie}}),h=T(()=>{const{hours:N,minutes:W}=s(m);return{hours:l(o.role),minutes:n(N,o.role),seconds:a(N,W,o.role)}}),_=T(()=>{const{hours:N,minutes:W,seconds:re}=s(m);return{hours:sh(N,23),minutes:sh(W,59),seconds:sh(re,59)}}),g=Zo(N=>{i=!1,x(N)},200),y=N=>{if(!!!o.amPmMode)return"";const re=o.amPmMode==="A";let ie=N<12?" am":" pm";return re&&(ie=ie.toUpperCase()),ie},w=N=>{let W;switch(N){case"hours":W=[0,2];break;case"minutes":W=[3,5];break;case"seconds":W=[6,8];break}const[re,ie]=W;t("select-range",re,ie),c.value=N},x=N=>{I(N,s(m)[N])},M=()=>{x("hours"),x("minutes"),x("seconds")},E=N=>N.querySelector(`.${r.namespace.value}-scrollbar__wrap`),I=(N,W)=>{if(o.arrowControl)return;const re=s(f[N]);re&&re.$el&&(E(re.$el).scrollTop=Math.max(0,W*O(N)))},O=N=>{const W=s(f[N]),re=W==null?void 0:W.$el.querySelector("li");return re&&Number.parseFloat(bn(re,"height"))||0},F=()=>{R(1)},K=()=>{R(-1)},R=N=>{c.value||w("hours");const W=c.value,re=s(m)[W],ie=c.value==="hours"?24:60,se=D(W,re,N,ie);j(W,se),I(W,se),et(()=>w(W))},D=(N,W,re,ie)=>{let se=(W+re+ie)%ie;const ve=s(h)[N];for(;ve[se]&&se!==W;)se=(se+re+ie)%ie;return se},j=(N,W)=>{if(s(h)[N][W])return;const{hours:se,minutes:ve,seconds:le}=s(m);let ge;switch(N){case"hours":ge=o.spinnerDate.hour(W).minute(ve).second(le);break;case"minutes":ge=o.spinnerDate.hour(se).minute(W).second(le);break;case"seconds":ge=o.spinnerDate.hour(se).minute(ve).second(W);break}t("change",ge)},Z=(N,{value:W,disabled:re})=>{re||(j(N,W),w(N),I(N,W))},Q=N=>{i=!0,g(N);const W=Math.min(Math.round((E(s(f[N]).$el).scrollTop-(J(N)*.5-10)/O(N)+3)/O(N)),N==="hours"?23:59);j(N,W)},J=N=>s(f[N]).$el.offsetHeight,L=()=>{const N=W=>{const re=s(f[W]);re&&re.$el&&(E(re.$el).onscroll=()=>{Q(W)})};N("hours"),N("minutes"),N("seconds")};vt(()=>{et(()=>{!o.arrowControl&&L(),M(),o.role==="start"&&w("hours")})});const X=(N,W)=>{f[W].value=N};return t("set-option",[`${o.role}_scrollDown`,R]),t("set-option",[`${o.role}_emitSelectRange`,w]),Te(()=>o.spinnerDate,()=>{i||M()}),(N,W)=>(b(),z("div",{class:P([s(r).b("spinner"),{"has-seconds":N.showSeconds}])},[N.arrowControl?ue("v-if",!0):(b(!0),z(Xe,{key:0},Tt(s(v),re=>(b(),de(s(Kl),{key:re,ref_for:!0,ref:ie=>X(ie,re),class:P(s(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":s(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ie=>w(re),onMousemove:ie=>x(re)},{default:ne(()=>[(b(!0),z(Xe,null,Tt(s(h)[re],(ie,se)=>(b(),z("li",{key:se,class:P([s(r).be("spinner","item"),s(r).is("active",se===s(m)[re]),s(r).is("disabled",ie)]),onClick:ve=>Z(re,{value:se,disabled:ie})},[re==="hours"?(b(),z(Xe,{key:0},[$t(ze(("0"+(N.amPmMode?se%12||12:se)).slice(-2))+ze(y(se)),1)],64)):(b(),z(Xe,{key:1},[$t(ze(("0"+se).slice(-2)),1)],64))],10,IU))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),N.arrowControl?(b(!0),z(Xe,{key:1},Tt(s(v),re=>(b(),z("div",{key:re,class:P([s(r).be("spinner","wrapper"),s(r).is("arrow")]),onMouseenter:ie=>w(re)},[ht((b(),de(s(Je),{class:P(["arrow-up",s(r).be("spinner","arrow")])},{default:ne(()=>[oe(s(Cs))]),_:1},8,["class"])),[[s(ad),K]]),ht((b(),de(s(Je),{class:P(["arrow-down",s(r).be("spinner","arrow")])},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"])),[[s(ad),F]]),$("ul",{class:P(s(r).be("spinner","list"))},[(b(!0),z(Xe,null,Tt(s(_)[re],(ie,se)=>(b(),z("li",{key:se,class:P([s(r).be("spinner","item"),s(r).is("active",ie===s(m)[re]),s(r).is("disabled",s(h)[re][ie])])},[typeof ie=="number"?(b(),z(Xe,{key:0},[re==="hours"?(b(),z(Xe,{key:0},[$t(ze(("0"+(N.amPmMode?ie%12||12:ie)).slice(-2))+ze(y(ie)),1)],64)):(b(),z(Xe,{key:1},[$t(ze(("0"+ie).slice(-2)),1)],64))],64)):ue("v-if",!0)],2))),128))],2)],42,PU))),128)):ue("v-if",!0)],2))}}),[["__file","basic-time-spinner.vue"]]),dd=Fe(B({__name:"panel-time-pick",props:yU,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=Le("EP_PICKER_BASE"),{arrowControl:l,disabledHours:n,disabledMinutes:a,disabledSeconds:i,defaultValue:c}=r.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}=Z6(n,a,i),f=Ie("time"),{t:v,lang:m}=Nt(),h=V([0,2]),_=J6(o),g=T(()=>ko(o.actualVisible)?`${f.namespace.value}-zoom-in-top`:""),y=T(()=>o.format.includes("ss")),w=T(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),x=X=>{const N=wt(X).locale(m.value),W=Z(N);return N.isSame(W)},M=()=>{t("pick",_.value,!1)},E=(X=!1,N=!1)=>{N||t("pick",o.parsedValue,X)},I=X=>{if(!o.visible)return;const N=Z(X).millisecond(0);t("pick",N,!0)},O=(X,N)=>{t("select-range",X,N),h.value=[X,N]},F=X=>{const N=[0,3].concat(y.value?[6]:[]),W=["hours","minutes"].concat(y.value?["seconds"]:[]),ie=(N.indexOf(h.value[0])+X+N.length)%N.length;R.start_emitSelectRange(W[ie])},K=X=>{const N=X.code,{left:W,right:re,up:ie,down:se}=tt;if([W,re].includes(N)){F(N===W?-1:1),X.preventDefault();return}if([ie,se].includes(N)){const ve=N===ie?-1:1;R.start_scrollDown(ve),X.preventDefault();return}},{timePickerOptions:R,onSetOption:D,getAvailableTime:j}=G6({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:p}),Z=X=>j(X,o.datetimeRole||"",!0),Q=X=>X?wt(X,o.format).locale(m.value):null,J=X=>X?X.format(o.format):null,L=()=>wt(c).locale(m.value);return t("set-picker-option",["isValidValue",x]),t("set-picker-option",["formatToString",J]),t("set-picker-option",["parseUserInput",Q]),t("set-picker-option",["handleKeydownInput",K]),t("set-picker-option",["getRangeAvailableTime",Z]),t("set-picker-option",["getDefaultValue",L]),(X,N)=>(b(),de(_o,{name:s(g)},{default:ne(()=>[X.actualVisible||X.visible?(b(),z("div",{key:0,class:P(s(f).b("panel"))},[$("div",{class:P([s(f).be("panel","content"),{"has-seconds":s(y)}])},[oe(yh,{ref:"spinner",role:X.datetimeRole||"start","arrow-control":s(l),"show-seconds":s(y),"am-pm-mode":s(w),"spinner-date":X.parsedValue,"disabled-hours":s(n),"disabled-minutes":s(a),"disabled-seconds":s(i),onChange:I,onSetOption:s(D),onSelectRange:O},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),$("div",{class:P(s(f).be("panel","footer"))},[$("button",{type:"button",class:P([s(f).be("panel","btn"),"cancel"]),onClick:M},ze(s(v)("el.datepicker.cancel")),3),$("button",{type:"button",class:P([s(f).be("panel","btn"),"confirm"]),onClick:N[0]||(N[0]=W=>E())},ze(s(v)("el.datepicker.confirm")),3)],2)],2)):ue("v-if",!0)]),_:1},8,["name"]))}}),[["__file","panel-time-pick.vue"]]);const BU=He({...q6,parsedValue:{type:pe(Array)}}),NU=["disabled"];var LU=Fe(B({__name:"panel-time-range",props:BU,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const o=e,r=(Me,te)=>{const ce=[];for(let we=Me;we<=te;we++)ce.push(we);return ce},{t:l,lang:n}=Nt(),a=Ie("time"),i=Ie("picker"),c=Le("EP_PICKER_BASE"),{arrowControl:u,disabledHours:d,disabledMinutes:p,disabledSeconds:f,defaultValue:v}=c.props,m=T(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),x.value?"has-seconds":""]),h=T(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),x.value?"has-seconds":""]),_=T(()=>o.parsedValue[0]),g=T(()=>o.parsedValue[1]),y=J6(o),w=()=>{t("pick",y.value,!1)},x=T(()=>o.format.includes("ss")),M=T(()=>o.format.includes("A")?"A":o.format.includes("a")?"a":""),E=(Me=!1)=>{t("pick",[_.value,g.value],Me)},I=Me=>{K(Me.millisecond(0),g.value)},O=Me=>{K(_.value,Me.millisecond(0))},F=Me=>{const te=Me.map(we=>wt(we).locale(n.value)),ce=re(te);return te[0].isSame(ce[0])&&te[1].isSame(ce[1])},K=(Me,te)=>{t("pick",[Me,te],!0)},R=T(()=>_.value>g.value),D=V([0,2]),j=(Me,te)=>{t("select-range",Me,te,"min"),D.value=[Me,te]},Z=T(()=>x.value?11:8),Q=(Me,te)=>{t("select-range",Me,te,"max");const ce=s(Z);D.value=[Me+ce,te+ce]},J=Me=>{const te=x.value?[0,3,6,11,14,17]:[0,3,8,11],ce=["hours","minutes"].concat(x.value?["seconds"]:[]),Ae=(te.indexOf(D.value[0])+Me+te.length)%te.length,Oe=te.length/2;Ae{const te=Me.code,{left:ce,right:we,up:Ae,down:Oe}=tt;if([ce,we].includes(te)){J(te===ce?-1:1),Me.preventDefault();return}if([Ae,Oe].includes(te)){const xe=te===Ae?-1:1,Ne=D.value[0]{const ce=d?d(Me):[],we=Me==="start",Oe=(te||(we?g.value:_.value)).hour(),xe=we?r(Oe+1,23):r(0,Oe-1);return a0(ce,xe)},N=(Me,te,ce)=>{const we=p?p(Me,te):[],Ae=te==="start",Oe=ce||(Ae?g.value:_.value),xe=Oe.hour();if(Me!==xe)return we;const Ne=Oe.minute(),Se=Ae?r(Ne+1,59):r(0,Ne-1);return a0(we,Se)},W=(Me,te,ce,we)=>{const Ae=f?f(Me,te,ce):[],Oe=ce==="start",xe=we||(Oe?g.value:_.value),Ne=xe.hour(),Se=xe.minute();if(Me!==Ne||te!==Se)return Ae;const ke=xe.second(),$e=Oe?r(ke+1,59):r(0,ke-1);return a0(Ae,$e)},re=([Me,te])=>[ge(Me,"start",!0,te),ge(te,"end",!1,Me)],{getAvailableHours:ie,getAvailableMinutes:se,getAvailableSeconds:ve}=Z6(X,N,W),{timePickerOptions:le,getAvailableTime:ge,onSetOption:_e}=G6({getAvailableHours:ie,getAvailableMinutes:se,getAvailableSeconds:ve}),me=Me=>Me?Ge(Me)?Me.map(te=>wt(te,o.format).locale(n.value)):wt(Me,o.format).locale(n.value):null,Be=Me=>Me?Ge(Me)?Me.map(te=>te.format(o.format)):Me.format(o.format):null,ye=()=>{if(Ge(v))return v.map(te=>wt(te).locale(n.value));const Me=wt(v).locale(n.value);return[Me,Me.add(60,"m")]};return t("set-picker-option",["formatToString",Be]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["isValidValue",F]),t("set-picker-option",["handleKeydownInput",L]),t("set-picker-option",["getDefaultValue",ye]),t("set-picker-option",["getRangeAvailableTime",re]),(Me,te)=>Me.actualVisible?(b(),z("div",{key:0,class:P([s(a).b("range-picker"),s(i).b("panel")])},[$("div",{class:P(s(a).be("range-picker","content"))},[$("div",{class:P(s(a).be("range-picker","cell"))},[$("div",{class:P(s(a).be("range-picker","header"))},ze(s(l)("el.datepicker.startTime")),3),$("div",{class:P(s(m))},[oe(yh,{ref:"minSpinner",role:"start","show-seconds":s(x),"am-pm-mode":s(M),"arrow-control":s(u),"spinner-date":s(_),"disabled-hours":X,"disabled-minutes":N,"disabled-seconds":W,onChange:I,onSetOption:s(_e),onSelectRange:j},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),$("div",{class:P(s(a).be("range-picker","cell"))},[$("div",{class:P(s(a).be("range-picker","header"))},ze(s(l)("el.datepicker.endTime")),3),$("div",{class:P(s(h))},[oe(yh,{ref:"maxSpinner",role:"end","show-seconds":s(x),"am-pm-mode":s(M),"arrow-control":s(u),"spinner-date":s(g),"disabled-hours":X,"disabled-minutes":N,"disabled-seconds":W,onChange:O,onSetOption:s(_e),onSelectRange:Q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),$("div",{class:P(s(a).be("panel","footer"))},[$("button",{type:"button",class:P([s(a).be("panel","btn"),"cancel"]),onClick:te[0]||(te[0]=ce=>w())},ze(s(l)("el.datepicker.cancel")),3),$("button",{type:"button",class:P([s(a).be("panel","btn"),"confirm"]),disabled:s(R),onClick:te[1]||(te[1]=ce=>E())},ze(s(l)("el.datepicker.confirm")),11,NU)],2)],2)):ue("v-if",!0)}}),[["__file","panel-time-range.vue"]]);wt.extend(ah);var RU=B({name:"ElTimePicker",install:null,props:{...uh,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const o=V(),[r,l]=e.isRange?["timerange",LU]:["time",dd],n=a=>t.emit("update:modelValue",a);return zt("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var i;(i=o.value)==null||i.handleFocusInput(a)},blur:a=>{var i;(i=o.value)==null||i.handleBlurInput(a)},handleOpen:()=>{var a;(a=o.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=o.value)==null||a.handleClose()}}),()=>{var a;const i=(a=e.format)!=null?a:ih;return oe(Y6,Et(e,{ref:o,type:r,format:i,"onUpdate:modelValue":n}),{default:c=>oe(l,c,null)})}}});const pd=RU;pd.install=e=>{e.component(pd.name,pd)};const VU=pd,HU=(e,t)=>{const o=e.subtract(1,"month").endOf("month").date();return Tn(t).map((r,l)=>o-(t-l-1))},FU=e=>{const t=e.daysInMonth();return Tn(t).map((o,r)=>r+1)},DU=e=>Tn(e.length/7).map(t=>{const o=t*7;return e.slice(o,o+7)}),jU=He({selectedDay:{type:pe(Object)},range:{type:pe(Array)},date:{type:pe(Object),required:!0},hideHeader:{type:Boolean}}),KU={pick:e=>Ct(e)};var f4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r,l){var n=r.prototype,a=function(p){return p&&(p.indexOf?p:p.s)},i=function(p,f,v,m,h){var _=p.name?p:p.$locale(),g=a(_[f]),y=a(_[v]),w=g||y.map(function(M){return M.slice(0,m)});if(!h)return w;var x=_.weekStart;return w.map(function(M,E){return w[(E+(x||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(p,f){return p.formats[f]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,_){return h||_.slice(1)})}(p.formats[f.toUpperCase()])},d=function(){var p=this;return{months:function(f){return f?f.format("MMMM"):i(p,"months")},monthsShort:function(f){return f?f.format("MMM"):i(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):i(p,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):i(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):i(p,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(p.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return d.bind(this)()},l.localeData=function(){var p=c();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(f){return u(p,f)},meridiem:p.meridiem,ordinal:p.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(p){return i(c(),"weekdays",null,null,p)},l.weekdaysShort=function(p){return i(c(),"weekdaysShort","weekdays",3,p)},l.weekdaysMin=function(p){return i(c(),"weekdaysMin","weekdays",2,p)}}})})(f4);var WU=f4.exports;const h4=Er(WU),UU=(e,t)=>{wt.extend(h4);const o=wt.localeData().firstDayOfWeek(),{t:r,lang:l}=Nt(),n=wt().locale(l.value),a=T(()=>!!e.range&&!!e.range.length),i=T(()=>{let f=[];if(a.value){const[v,m]=e.range,h=Tn(m.date()-v.date()+1).map(y=>({text:v.date()+y,type:"current"}));let _=h.length%7;_=_===0?0:7-_;const g=Tn(_).map((y,w)=>({text:w+1,type:"next"}));f=h.concat(g)}else{const v=e.date.startOf("month").day(),m=HU(e.date,(v-o+7)%7).map(y=>({text:y,type:"prev"})),h=FU(e.date).map(y=>({text:y,type:"current"}));f=[...m,...h];const _=7-(f.length%7||7),g=Tn(_).map((y,w)=>({text:w+1,type:"next"}));f=f.concat(g)}return DU(f)}),c=T(()=>{const f=o;return f===0?m0.map(v=>r(`el.datepicker.weeks.${v}`)):m0.slice(f).concat(m0.slice(0,f)).map(v=>r(`el.datepicker.weeks.${v}`))}),u=(f,v)=>{switch(v){case"prev":return e.date.startOf("month").subtract(1,"month").date(f);case"next":return e.date.startOf("month").add(1,"month").date(f);case"current":return e.date.date(f)}};return{now:n,isInRange:a,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:({text:f,type:v})=>{const m=u(f,v);t("pick",m)},getSlotData:({text:f,type:v})=>{const m=u(f,v);return{isSelected:m.isSame(e.selectedDay),type:`${v}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},qU={key:0},YU=["onClick"],GU=B({...B({name:"DateTable"}),props:jU,emits:KU,setup(e,{expose:t,emit:o}){const r=e,{isInRange:l,now:n,rows:a,weekDays:i,getFormattedDate:c,handlePickDay:u,getSlotData:d}=UU(r,o),p=Ie("calendar-table"),f=Ie("calendar-day"),v=({text:m,type:h})=>{const _=[h];if(h==="current"){const g=c(m,h);g.isSame(r.selectedDay,"day")&&_.push(f.is("selected")),g.isSame(n,"day")&&_.push(f.is("today"))}return _};return t({getFormattedDate:c}),(m,h)=>(b(),z("table",{class:P([s(p).b(),s(p).is("range",s(l))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?ue("v-if",!0):(b(),z("thead",qU,[(b(!0),z(Xe,null,Tt(s(i),_=>(b(),z("th",{key:_},ze(_),1))),128))])),$("tbody",null,[(b(!0),z(Xe,null,Tt(s(a),(_,g)=>(b(),z("tr",{key:g,class:P({[s(p).e("row")]:!0,[s(p).em("row","hide-border")]:g===0&&m.hideHeader})},[(b(!0),z(Xe,null,Tt(_,(y,w)=>(b(),z("td",{key:w,class:P(v(y)),onClick:x=>s(u)(y)},[$("div",{class:P(s(f).b())},[be(m.$slots,"date-cell",{data:s(d)(y)},()=>[$("span",null,ze(y.text),1)])],2)],10,YU))),128))],2))),128))])],2))}});var v4=Fe(GU,[["__file","date-table.vue"]]);const XU=(e,t)=>{const o=e.endOf("month"),r=t.startOf("month"),n=o.isSame(r,"week")?r.add(1,"week"):r;return[[e,o],[n.startOf("week"),t]]},ZU=(e,t)=>{const o=e.endOf("month"),r=e.add(1,"month").startOf("month"),l=o.isSame(r,"week")?r.add(1,"week"):r,n=l.endOf("month"),a=t.startOf("month"),i=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,o],[l.startOf("week"),n],[i.startOf("week"),t]]},JU=(e,t,o)=>{const r=Bo(),{lang:l}=Nt(),n=V(),a=wt().locale(l.value),i=T({get(){return e.modelValue?u.value:n.value},set(g){if(!g)return;n.value=g;const y=g.toDate();t(Jo,y),t(kt,y)}}),c=T(()=>{if(!e.range)return[];const g=e.range.map(x=>wt(x).locale(l.value)),[y,w]=g;return y.isAfter(w)?[]:y.isSame(w,"month")?m(y,w):y.add(1,"month").month()!==w.month()?[]:m(y,w)}),u=T(()=>e.modelValue?wt(e.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:a)),d=T(()=>u.value.subtract(1,"month").date(1)),p=T(()=>u.value.add(1,"month").date(1)),f=T(()=>u.value.subtract(1,"year").date(1)),v=T(()=>u.value.add(1,"year").date(1)),m=(g,y)=>{const w=g.startOf("week"),x=y.endOf("week"),M=w.get("month"),E=x.get("month");return M===E?[[w,x]]:(M+1)%12===E?XU(w,x):M+2===E||(M+1)%11===E?ZU(w,x):[]},h=g=>{i.value=g},_=g=>{const w={"prev-month":d.value,"next-month":p.value,"prev-year":f.value,"next-year":v.value,today:a}[g];w.isSame(u.value,"day")||h(w)};return cl({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},T(()=>!!r.dateCell)),{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:h,selectDate:_,validatedRange:c}},QU=e=>Ge(e)&&e.length===2&&e.every(t=>Bn(t)),eq=He({modelValue:{type:Date},range:{type:pe(Array),validator:QU}}),tq={[kt]:e=>Bn(e),[Jo]:e=>Bn(e)},oq=B({...B({name:"ElCalendar"}),props:eq,emits:tq,setup(e,{expose:t,emit:o}){const r=e,l=Ie("calendar"),{calculateValidatedDateRange:n,date:a,pickDay:i,realSelectedDay:c,selectDate:u,validatedRange:d}=JU(r,o),{t:p}=Nt(),f=T(()=>{const v=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${p("el.datepicker.year")} ${p(v)}`});return t({selectedDay:c,pickDay:i,selectDate:u,calculateValidatedDateRange:n}),(v,m)=>(b(),z("div",{class:P(s(l).b())},[$("div",{class:P(s(l).e("header"))},[be(v.$slots,"header",{date:s(f)},()=>[$("div",{class:P(s(l).e("title"))},ze(s(f)),3),s(d).length===0?(b(),z("div",{key:0,class:P(s(l).e("button-group"))},[oe(s(N6),null,{default:ne(()=>[oe(s(Vo),{size:"small",onClick:m[0]||(m[0]=h=>s(u)("prev-month"))},{default:ne(()=>[$t(ze(s(p)("el.datepicker.prevMonth")),1)]),_:1}),oe(s(Vo),{size:"small",onClick:m[1]||(m[1]=h=>s(u)("today"))},{default:ne(()=>[$t(ze(s(p)("el.datepicker.today")),1)]),_:1}),oe(s(Vo),{size:"small",onClick:m[2]||(m[2]=h=>s(u)("next-month"))},{default:ne(()=>[$t(ze(s(p)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):ue("v-if",!0)])],2),s(d).length===0?(b(),z("div",{key:0,class:P(s(l).e("body"))},[oe(v4,{date:s(a),"selected-day":s(c),onPick:s(i)},tl({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:ne(h=>[v.$slots["date-cell"]?be(v.$slots,"date-cell",Rr(Et({key:0},h))):be(v.$slots,"dateCell",Rr(Et({key:1},h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(b(),z("div",{key:1,class:P(s(l).e("body"))},[(b(!0),z(Xe,null,Tt(s(d),(h,_)=>(b(),de(v4,{key:_,date:h[0],"selected-day":s(c),range:h,"hide-header":_!==0,onPick:s(i)},tl({_:2},[v.$slots["date-cell"]||v.$slots.dateCell?{name:"date-cell",fn:ne(g=>[v.$slots["date-cell"]?be(v.$slots,"date-cell",Rr(Et({key:0},g))):be(v.$slots,"dateCell",Rr(Et({key:1},g)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var rq=Fe(oq,[["__file","calendar.vue"]]);const lq=xt(rq),nq=He({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:pe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),aq=B({...B({name:"ElCard"}),props:nq,setup(e){const t=Ie("card");return(o,r)=>(b(),z("div",{class:P([s(t).b(),s(t).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(b(),z("div",{key:0,class:P(s(t).e("header"))},[be(o.$slots,"header",{},()=>[$t(ze(o.header),1)])],2)):ue("v-if",!0),$("div",{class:P([s(t).e("body"),o.bodyClass]),style:Qe(o.bodyStyle)},[be(o.$slots,"default")],6),o.$slots.footer||o.footer?(b(),z("div",{key:1,class:P(s(t).e("footer"))},[be(o.$slots,"footer",{},()=>[$t(ze(o.footer),1)])],2)):ue("v-if",!0)],2))}});var iq=Fe(aq,[["__file","card.vue"]]);const sq=xt(iq),cq=He({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),uq={change:(e,t)=>[e,t].every(ct)},m4=Symbol("carouselContextKey"),g4=300,dq=(e,t,o)=>{const{children:r,addChild:l,removeChild:n}=L0(_t(),"ElCarouselItem"),a=Bo(),i=V(-1),c=V(null),u=V(!1),d=V(),p=V(0),f=V(!0),v=T(()=>e.arrow!=="never"&&!s(_)),m=T(()=>r.value.some(se=>se.props.label.toString().length>0)),h=T(()=>e.type==="card"),_=T(()=>e.direction==="vertical"),g=T(()=>e.height!=="auto"?{height:e.height}:{height:`${p.value}px`,overflow:"hidden"}),y=ta(se=>{O(se)},g4,{trailing:!0}),w=ta(se=>{J(se)},g4),x=se=>f.value?i.value<=1?se<=1:se>1:!0;function M(){c.value&&(clearInterval(c.value),c.value=null)}function E(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>I(),e.interval))}const I=()=>{i.value_e.props.name===se);ge.length>0&&(se=r.value.indexOf(ge[0]))}if(se=Number(se),Number.isNaN(se)||se!==Math.floor(se))return;const ve=r.value.length,le=i.value;se<0?i.value=e.loop?ve-1:0:se>=ve?i.value=e.loop?0:ve-1:i.value=se,le===i.value&&F(le),N()}function F(se){r.value.forEach((ve,le)=>{ve.translateItem(le,i.value,se)})}function K(se,ve){var le,ge,_e,me;const Be=s(r),ye=Be.length;if(ye===0||!se.states.inStage)return!1;const Me=ve+1,te=ve-1,ce=ye-1,we=Be[ce].states.active,Ae=Be[0].states.active,Oe=(ge=(le=Be[Me])==null?void 0:le.states)==null?void 0:ge.active,xe=(me=(_e=Be[te])==null?void 0:_e.states)==null?void 0:me.active;return ve===ce&&Ae||Oe?"left":ve===0&&we||xe?"right":!1}function R(){u.value=!0,e.pauseOnHover&&M()}function D(){u.value=!1,E()}function j(se){s(_)||r.value.forEach((ve,le)=>{se===K(ve,le)&&(ve.states.hover=!0)})}function Z(){s(_)||r.value.forEach(se=>{se.states.hover=!1})}function Q(se){i.value=se}function J(se){e.trigger==="hover"&&se!==i.value&&(i.value=se)}function L(){O(i.value-1)}function X(){O(i.value+1)}function N(){M(),e.pauseOnHover||E()}function W(se){e.height==="auto"&&(p.value=se)}function re(){var se;const ve=(se=a.default)==null?void 0:se.call(a);if(!ve)return null;const le=la(ve),ge="ElCarouselItem",_e=le.filter(me=>Qt(me)&&me.type.name===ge);return(_e==null?void 0:_e.length)===2&&e.loop&&!h.value?(f.value=!0,_e):(f.value=!1,null)}Te(()=>i.value,(se,ve)=>{F(ve),f.value&&(se=se%2,ve=ve%2),ve>-1&&t("change",se,ve)}),Te(()=>e.autoplay,se=>{se?E():M()}),Te(()=>e.loop,()=>{O(i.value)}),Te(()=>e.interval,()=>{N()});const ie=Yt();return vt(()=>{Te(()=>r.value,()=>{r.value.length>0&&O(e.initialIndex)},{immediate:!0}),ie.value=jo(d.value,()=>{F()}),E()}),Zt(()=>{M(),d.value&&ie.value&&ie.value.stop()}),zt(m4,{root:d,isCardType:h,isVertical:_,items:r,loop:e.loop,addItem:l,removeItem:n,setActiveItem:O,setContainerHeight:W}),{root:d,activeIndex:i,arrowDisplay:v,hasLabel:m,hover:u,isCardType:h,items:r,isVertical:_,containerStyle:g,isItemsTwoLength:f,handleButtonEnter:j,handleButtonLeave:Z,handleIndicatorClick:Q,handleMouseEnter:R,handleMouseLeave:D,setActiveItem:O,prev:L,next:X,PlaceholderItem:re,isTwoLengthShow:x,throttledArrowClick:y,throttledIndicatorHover:w}},pq=["onMouseenter","onClick"],fq={key:0},hq=B({...B({name:"ElCarousel"}),props:cq,emits:uq,setup(e,{expose:t,emit:o}){const r=e,{root:l,activeIndex:n,arrowDisplay:a,hasLabel:i,hover:c,isCardType:u,items:d,isVertical:p,containerStyle:f,handleButtonEnter:v,handleButtonLeave:m,handleIndicatorClick:h,handleMouseEnter:_,handleMouseLeave:g,setActiveItem:y,prev:w,next:x,PlaceholderItem:M,isTwoLengthShow:E,throttledArrowClick:I,throttledIndicatorHover:O}=dq(r,o),F=Ie("carousel"),K=T(()=>{const D=[F.b(),F.m(r.direction)];return s(u)&&D.push(F.m("card")),D}),R=T(()=>{const D=[F.e("indicators"),F.em("indicators",r.direction)];return s(i)&&D.push(F.em("indicators","labels")),r.indicatorPosition==="outside"&&D.push(F.em("indicators","outside")),s(p)&&D.push(F.em("indicators","right")),D});return t({setActiveItem:y,prev:w,next:x}),(D,j)=>(b(),z("div",{ref_key:"root",ref:l,class:P(s(K)),onMouseenter:j[6]||(j[6]=it((...Z)=>s(_)&&s(_)(...Z),["stop"])),onMouseleave:j[7]||(j[7]=it((...Z)=>s(g)&&s(g)(...Z),["stop"]))},[$("div",{class:P(s(F).e("container")),style:Qe(s(f))},[s(a)?(b(),de(_o,{key:0,name:"carousel-arrow-left",persisted:""},{default:ne(()=>[ht($("button",{type:"button",class:P([s(F).e("arrow"),s(F).em("arrow","left")]),onMouseenter:j[0]||(j[0]=Z=>s(v)("left")),onMouseleave:j[1]||(j[1]=(...Z)=>s(m)&&s(m)(...Z)),onClick:j[2]||(j[2]=it(Z=>s(I)(s(n)-1),["stop"]))},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],34),[[Pt,(D.arrow==="always"||s(c))&&(r.loop||s(n)>0)]])]),_:1})):ue("v-if",!0),s(a)?(b(),de(_o,{key:1,name:"carousel-arrow-right",persisted:""},{default:ne(()=>[ht($("button",{type:"button",class:P([s(F).e("arrow"),s(F).em("arrow","right")]),onMouseenter:j[3]||(j[3]=Z=>s(v)("right")),onMouseleave:j[4]||(j[4]=(...Z)=>s(m)&&s(m)(...Z)),onClick:j[5]||(j[5]=it(Z=>s(I)(s(n)+1),["stop"]))},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],34),[[Pt,(D.arrow==="always"||s(c))&&(r.loop||s(n)ht((b(),z("li",{key:Q,class:P([s(F).e("indicator"),s(F).em("indicator",D.direction),s(F).is("active",Q===s(n))]),onMouseenter:J=>s(O)(Q),onClick:it(J=>s(h)(Q),["stop"])},[$("button",{class:P(s(F).e("button"))},[s(i)?(b(),z("span",fq,ze(Z.props.label),1)):ue("v-if",!0)],2)],42,pq)),[[Pt,s(E)(Q)]])),128))],2)):ue("v-if",!0)],34))}});var vq=Fe(hq,[["__file","carousel.vue"]]);const mq=He({name:{type:String,default:""},label:{type:[String,Number],default:""}}),gq=(e,t)=>{const o=Le(m4),r=_t(),l=.83,n=V(),a=V(!1),i=V(0),c=V(1),u=V(!1),d=V(!1),p=V(!1),f=V(!1),{isCardType:v,isVertical:m}=o;function h(x,M,E){const I=E-1,O=M-1,F=M+1,K=E/2;return M===0&&x===I?-1:M===I&&x===0?E:x=K?E+1:x>F&&x-M>=K?-2:x}function _(x,M){var E,I;const O=s(m)?((E=o.root.value)==null?void 0:E.offsetHeight)||0:((I=o.root.value)==null?void 0:I.offsetWidth)||0;return p.value?O*((2-l)*(x-M)+1)/4:x{var I;const O=s(v),F=(I=o.items.value.length)!=null?I:Number.NaN,K=x===M;!O&&!ko(E)&&(f.value=K||x===E),!K&&F>2&&o.loop&&(x=h(x,M,F));const R=s(m);u.value=K,O?(p.value=Math.round(Math.abs(x-M))<=1,i.value=_(x,M),c.value=s(u)?1:l):i.value=g(x,M,R),d.value=!0,K&&n.value&&o.setContainerHeight(n.value.offsetHeight)};function w(){if(o&&s(v)){const x=o.items.value.findIndex(({uid:M})=>M===r.uid);o.setActiveItem(x)}}return vt(()=>{o.addItem({props:e,states:Ft({hover:a,translate:i,scale:c,active:u,ready:d,inStage:p,animating:f}),uid:r.uid,translateItem:y})}),cn(()=>{o.removeItem(r.uid)}),{carouselItemRef:n,active:u,animating:f,hover:a,inStage:p,isVertical:m,translate:i,isCardType:v,scale:c,ready:d,handleItemClick:w}},bq=B({...B({name:"ElCarouselItem"}),props:mq,setup(e){const t=e,o=Ie("carousel"),{carouselItemRef:r,active:l,animating:n,hover:a,inStage:i,isVertical:c,translate:u,isCardType:d,scale:p,ready:f,handleItemClick:v}=gq(t),m=T(()=>{const _=`${`translate${s(c)?"Y":"X"}`}(${s(u)}px)`,g=`scale(${s(p)})`;return{transform:[_,g].join(" ")}});return(h,_)=>ht((b(),z("div",{ref_key:"carouselItemRef",ref:r,class:P([s(o).e("item"),s(o).is("active",s(l)),s(o).is("in-stage",s(i)),s(o).is("hover",s(a)),s(o).is("animating",s(n)),{[s(o).em("item","card")]:s(d),[s(o).em("item","card-vertical")]:s(d)&&s(c)}]),style:Qe(s(m)),onClick:_[0]||(_[0]=(...g)=>s(v)&&s(v)(...g))},[s(d)?ht((b(),z("div",{key:0,class:P(s(o).e("mask"))},null,2)),[[Pt,!s(l)]]):ue("v-if",!0),be(h.$slots,"default")],6)),[[Pt,s(f)]])}});var b4=Fe(bq,[["__file","carousel-item.vue"]]);const _q=xt(vq,{CarouselItem:b4}),wq=fo(b4),_4={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:No,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},w4={[kt]:e=>ft(e)||ct(e)||Co(e),change:e=>ft(e)||ct(e)||Co(e)},di=Symbol("checkboxGroupContextKey"),yq=({model:e,isChecked:t})=>{const o=Le(di,void 0),r=T(()=>{var n,a;const i=(n=o==null?void 0:o.max)==null?void 0:n.value,c=(a=o==null?void 0:o.min)==null?void 0:a.value;return!ko(i)&&e.value.length>=i&&!t.value||!ko(c)&&e.value.length<=c&&t.value});return{isDisabled:pr(T(()=>(o==null?void 0:o.disabled.value)||r.value)),isLimitDisabled:r}},xq=(e,{model:t,isLimitExceeded:o,hasOwnLabel:r,isDisabled:l,isLabeledByFormItem:n})=>{const a=Le(di,void 0),{formItem:i}=Qo(),{emit:c}=_t();function u(m){var h,_;return m===e.trueLabel||m===!0?(h=e.trueLabel)!=null?h:!0:(_=e.falseLabel)!=null?_:!1}function d(m,h){c("change",u(m),h)}function p(m){if(o.value)return;const h=m.target;c("change",u(h.checked),m)}async function f(m){o.value||!r.value&&!l.value&&n.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await et(),d(t.value,m)))}const v=T(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return Te(()=>e.modelValue,()=>{v.value&&(i==null||i.validate("change").catch(m=>void 0))}),{handleChange:p,onClickRoot:f}},kq=e=>{const t=V(!1),{emit:o}=_t(),r=Le(di,void 0),l=T(()=>ko(r)===!1),n=V(!1);return{model:T({get(){var i,c;return l.value?(i=r==null?void 0:r.modelValue)==null?void 0:i.value:(c=e.modelValue)!=null?c:t.value},set(i){var c,u;l.value&&Ge(i)?(n.value=((c=r==null?void 0:r.max)==null?void 0:c.value)!==void 0&&i.length>(r==null?void 0:r.max.value),n.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,i))):(o(kt,i),t.value=i)}}),isGroup:l,isLimitExceeded:n}},Cq=(e,t,{model:o})=>{const r=Le(di,void 0),l=V(!1),n=T(()=>{const u=o.value;return Co(u)?u:Ge(u)?Ct(e.label)?u.map(Vt).some(d=>ir(d,e.label)):u.map(Vt).includes(e.label):u!=null?u===e.trueLabel:!!u}),a=Eo(T(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),i=Eo(T(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=T(()=>!!t.default||!wo(e.label));return{checkboxButtonSize:a,isChecked:n,isFocused:l,checkboxSize:i,hasOwnLabel:c}},Sq=(e,{model:t})=>{function o(){Ge(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&o()},y4=(e,t)=>{const{formItem:o}=Qo(),{model:r,isGroup:l,isLimitExceeded:n}=kq(e),{isFocused:a,isChecked:i,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=Cq(e,t,{model:r}),{isDisabled:p}=yq({model:r,isChecked:i}),{inputId:f,isLabeledByFormItem:v}=Cn(e,{formItemContext:o,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=xq(e,{model:r,isLimitExceeded:n,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return Sq(e,{model:r}),{inputId:f,isLabeledByFormItem:v,isChecked:i,isDisabled:p,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:r,handleChange:m,onClickRoot:h}},Eq=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],$q=["id","indeterminate","disabled","value","name","tabindex"],Tq=B({...B({name:"ElCheckbox"}),props:_4,emits:w4,setup(e){const t=e,o=Bo(),{inputId:r,isLabeledByFormItem:l,isChecked:n,isDisabled:a,isFocused:i,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:p,onClickRoot:f}=y4(t,o),v=Ie("checkbox"),m=T(()=>[v.b(),v.m(c.value),v.is("disabled",a.value),v.is("bordered",t.border),v.is("checked",n.value)]),h=T(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",n.value),v.is("indeterminate",t.indeterminate),v.is("focus",i.value)]);return(_,g)=>(b(),de(St(!s(u)&&s(l)?"span":"label"),{class:P(s(m)),"aria-controls":_.indeterminate?_.controls:null,onClick:s(f)},{default:ne(()=>[$("span",{class:P(s(h))},[_.trueLabel||_.falseLabel?ht((b(),z("input",{key:0,id:s(r),"onUpdate:modelValue":g[0]||(g[0]=y=>Wt(d)?d.value=y:null),class:P(s(v).e("original")),type:"checkbox",indeterminate:_.indeterminate,name:_.name,tabindex:_.tabindex,disabled:s(a),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:g[1]||(g[1]=(...y)=>s(p)&&s(p)(...y)),onFocus:g[2]||(g[2]=y=>i.value=!0),onBlur:g[3]||(g[3]=y=>i.value=!1),onClick:g[4]||(g[4]=it(()=>{},["stop"]))},null,42,Eq)),[[Qc,s(d)]]):ht((b(),z("input",{key:1,id:s(r),"onUpdate:modelValue":g[5]||(g[5]=y=>Wt(d)?d.value=y:null),class:P(s(v).e("original")),type:"checkbox",indeterminate:_.indeterminate,disabled:s(a),value:_.label,name:_.name,tabindex:_.tabindex,onChange:g[6]||(g[6]=(...y)=>s(p)&&s(p)(...y)),onFocus:g[7]||(g[7]=y=>i.value=!0),onBlur:g[8]||(g[8]=y=>i.value=!1),onClick:g[9]||(g[9]=it(()=>{},["stop"]))},null,42,$q)),[[Qc,s(d)]]),$("span",{class:P(s(v).e("inner"))},null,2)],2),s(u)?(b(),z("span",{key:0,class:P(s(v).e("label"))},[be(_.$slots,"default"),_.$slots.default?ue("v-if",!0):(b(),z(Xe,{key:0},[$t(ze(_.label),1)],64))],2)):ue("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var zq=Fe(Tq,[["__file","checkbox.vue"]]);const Mq=["name","tabindex","disabled","true-value","false-value"],Aq=["name","tabindex","disabled","value"],Oq=B({...B({name:"ElCheckboxButton"}),props:_4,emits:w4,setup(e){const t=e,o=Bo(),{isFocused:r,isChecked:l,isDisabled:n,checkboxButtonSize:a,model:i,handleChange:c}=y4(t,o),u=Le(di,void 0),d=Ie("checkbox"),p=T(()=>{var v,m,h,_;const g=(m=(v=u==null?void 0:u.fill)==null?void 0:v.value)!=null?m:"";return{backgroundColor:g,borderColor:g,color:(_=(h=u==null?void 0:u.textColor)==null?void 0:h.value)!=null?_:"",boxShadow:g?`-1px 0 0 0 ${g}`:void 0}}),f=T(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",n.value),d.is("checked",l.value),d.is("focus",r.value)]);return(v,m)=>(b(),z("label",{class:P(s(f))},[v.trueLabel||v.falseLabel?ht((b(),z("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=h=>Wt(i)?i.value=h:null),class:P(s(d).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:s(n),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...h)=>s(c)&&s(c)(...h)),onFocus:m[2]||(m[2]=h=>r.value=!0),onBlur:m[3]||(m[3]=h=>r.value=!1),onClick:m[4]||(m[4]=it(()=>{},["stop"]))},null,42,Mq)),[[Qc,s(i)]]):ht((b(),z("input",{key:1,"onUpdate:modelValue":m[5]||(m[5]=h=>Wt(i)?i.value=h:null),class:P(s(d).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:s(n),value:v.label,onChange:m[6]||(m[6]=(...h)=>s(c)&&s(c)(...h)),onFocus:m[7]||(m[7]=h=>r.value=!0),onBlur:m[8]||(m[8]=h=>r.value=!1),onClick:m[9]||(m[9]=it(()=>{},["stop"]))},null,42,Aq)),[[Qc,s(i)]]),v.$slots.default||v.label?(b(),z("span",{key:2,class:P(s(d).be("button","inner")),style:Qe(s(l)?s(p):void 0)},[be(v.$slots,"default",{},()=>[$t(ze(v.label),1)])],6)):ue("v-if",!0)],2))}});var x4=Fe(Oq,[["__file","checkbox-button.vue"]]);const Iq=He({modelValue:{type:pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:No,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Pq={[kt]:e=>Ge(e),change:e=>Ge(e)},Bq=B({...B({name:"ElCheckboxGroup"}),props:Iq,emits:Pq,setup(e,{emit:t}){const o=e,r=Ie("checkbox"),{formItem:l}=Qo(),{inputId:n,isLabeledByFormItem:a}=Cn(o,{formItemContext:l}),i=async u=>{t(kt,u),await et(),t("change",u)},c=T({get(){return o.modelValue},set(u){i(u)}});return zt(di,{...Pl(Ao(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:i}),Te(()=>o.modelValue,()=>{o.validateEvent&&(l==null||l.validate("change").catch(u=>void 0))}),(u,d)=>{var p;return b(),de(St(u.tag),{id:s(n),class:P(s(r).b("group")),role:"group","aria-label":s(a)?void 0:u.label||"checkbox-group","aria-labelledby":s(a)?(p=s(l))==null?void 0:p.labelId:void 0},{default:ne(()=>[be(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var k4=Fe(Bq,[["__file","checkbox-group.vue"]]);const Nr=xt(zq,{CheckboxButton:x4,CheckboxGroup:k4}),Nq=fo(x4),C4=fo(k4),S4=He({size:No,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Lq=He({...S4,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),E4={[kt]:e=>ft(e)||ct(e)||Co(e),[Jt]:e=>ft(e)||ct(e)||Co(e)},$4=Symbol("radioGroupKey"),T4=(e,t)=>{const o=V(),r=Le($4,void 0),l=T(()=>!!r),n=T({get(){return l.value?r.modelValue:e.modelValue},set(d){l.value?r.changeEvent(d):t&&t(kt,d),o.value.checked=e.modelValue===e.label}}),a=Eo(T(()=>r==null?void 0:r.size)),i=pr(T(()=>r==null?void 0:r.disabled)),c=V(!1),u=T(()=>i.value||l.value&&n.value!==e.label?-1:0);return{radioRef:o,isGroup:l,radioGroup:r,focus:c,size:a,disabled:i,tabIndex:u,modelValue:n}},Rq=["value","name","disabled"],Vq=B({...B({name:"ElRadio"}),props:Lq,emits:E4,setup(e,{emit:t}){const o=e,r=Ie("radio"),{radioRef:l,radioGroup:n,focus:a,size:i,disabled:c,modelValue:u}=T4(o,t);function d(){et(()=>t("change",u.value))}return(p,f)=>{var v;return b(),z("label",{class:P([s(r).b(),s(r).is("disabled",s(c)),s(r).is("focus",s(a)),s(r).is("bordered",p.border),s(r).is("checked",s(u)===p.label),s(r).m(s(i))])},[$("span",{class:P([s(r).e("input"),s(r).is("disabled",s(c)),s(r).is("checked",s(u)===p.label)])},[ht($("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":f[0]||(f[0]=m=>Wt(u)?u.value=m:null),class:P(s(r).e("original")),value:p.label,name:p.name||((v=s(n))==null?void 0:v.name),disabled:s(c),type:"radio",onFocus:f[1]||(f[1]=m=>a.value=!0),onBlur:f[2]||(f[2]=m=>a.value=!1),onChange:d,onClick:f[3]||(f[3]=it(()=>{},["stop"]))},null,42,Rq),[[Tg,s(u)]]),$("span",{class:P(s(r).e("inner"))},null,2)],2),$("span",{class:P(s(r).e("label")),onKeydown:f[4]||(f[4]=it(()=>{},["stop"]))},[be(p.$slots,"default",{},()=>[$t(ze(p.label),1)])],34)],2)}}});var Hq=Fe(Vq,[["__file","radio.vue"]]);const Fq=He({...S4,name:{type:String,default:""}}),Dq=["value","name","disabled"],jq=B({...B({name:"ElRadioButton"}),props:Fq,setup(e){const t=e,o=Ie("radio"),{radioRef:r,focus:l,size:n,disabled:a,modelValue:i,radioGroup:c}=T4(t),u=T(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(d,p)=>{var f;return b(),z("label",{class:P([s(o).b("button"),s(o).is("active",s(i)===d.label),s(o).is("disabled",s(a)),s(o).is("focus",s(l)),s(o).bm("button",s(n))])},[ht($("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p[0]||(p[0]=v=>Wt(i)?i.value=v:null),class:P(s(o).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((f=s(c))==null?void 0:f.name),disabled:s(a),onFocus:p[1]||(p[1]=v=>l.value=!0),onBlur:p[2]||(p[2]=v=>l.value=!1),onClick:p[3]||(p[3]=it(()=>{},["stop"]))},null,42,Dq),[[Tg,s(i)]]),$("span",{class:P(s(o).be("button","inner")),style:Qe(s(i)===d.label?s(u):{}),onKeydown:p[4]||(p[4]=it(()=>{},["stop"]))},[be(d.$slots,"default",{},()=>[$t(ze(d.label),1)])],38)],2)}}});var z4=Fe(jq,[["__file","radio-button.vue"]]);const Kq=He({id:{type:String,default:void 0},size:No,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Wq=E4,Uq=["id","aria-label","aria-labelledby"],qq=B({...B({name:"ElRadioGroup"}),props:Kq,emits:Wq,setup(e,{emit:t}){const o=e,r=Ie("radio"),l=dr(),n=V(),{formItem:a}=Qo(),{inputId:i,isLabeledByFormItem:c}=Cn(o,{formItemContext:a}),u=p=>{t(kt,p),et(()=>t("change",p))};vt(()=>{const p=n.value.querySelectorAll("[type=radio]"),f=p[0];!Array.from(p).some(v=>v.checked)&&f&&(f.tabIndex=0)});const d=T(()=>o.name||l.value);return zt($4,Ft({...Ao(o),changeEvent:u,name:d})),Te(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(p=>void 0))}),(p,f)=>(b(),z("div",{id:s(i),ref_key:"radioGroupRef",ref:n,class:P(s(r).b("group")),role:"radiogroup","aria-label":s(c)?void 0:p.label||"radio-group","aria-labelledby":s(c)?s(a).labelId:void 0},[be(p.$slots,"default")],10,Uq))}});var M4=Fe(qq,[["__file","radio-group.vue"]]);const A4=xt(Hq,{RadioButton:z4,RadioGroup:M4}),Yq=fo(M4),Gq=fo(z4);var Xq=B({name:"NodeContent",setup(){return{ns:Ie("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:o}=this.$parent,{data:r,label:l}=t,{renderLabelFn:n}=o;return rt("span",{class:e.e("label")},n?n({node:t,data:r}):l)}});const xh=Symbol(),Zq=B({name:"ElCascaderNode",components:{ElCheckbox:Nr,ElRadio:A4,NodeContent:Xq,ElIcon:Je,Check:Ya,Loading:Rl,ArrowRight:Ko},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const o=Le(xh),r=Ie("cascader-node"),l=T(()=>o.isHoverMenu),n=T(()=>o.config.multiple),a=T(()=>o.config.checkStrictly),i=T(()=>{var E;return(E=o.checkedNodes[0])==null?void 0:E.uid}),c=T(()=>e.node.isDisabled),u=T(()=>e.node.isLeaf),d=T(()=>a.value&&!u.value||!c.value),p=T(()=>v(o.expandingNode)),f=T(()=>a.value&&o.checkedNodes.some(v)),v=E=>{var I;const{level:O,uid:F}=e.node;return((I=E==null?void 0:E.pathNodes[O-1])==null?void 0:I.uid)===F},m=()=>{p.value||o.expandNode(e.node)},h=E=>{const{node:I}=e;E!==I.checked&&o.handleCheckChange(I,E)},_=()=>{o.lazyLoad(e.node,()=>{u.value||m()})},g=E=>{l.value&&(y(),!u.value&&t("expand",E))},y=()=>{const{node:E}=e;!d.value||E.loading||(E.loaded?m():_())},w=()=>{l.value&&!u.value||(u.value&&!c.value&&!a.value&&!n.value?M(!0):y())},x=E=>{a.value?(h(E),e.node.loaded&&m()):M(E)},M=E=>{e.node.loaded?(h(E),!a.value&&m()):_()};return{panel:o,isHoverMenu:l,multiple:n,checkStrictly:a,checkedNodeId:i,isDisabled:c,isLeaf:u,expandable:d,inExpandingPath:p,inCheckedPath:f,ns:r,handleHoverExpand:g,handleExpand:y,handleClick:w,handleCheck:M,handleSelectCheck:x}}}),Jq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],Qq=$("span",null,null,-1);function eY(e,t,o,r,l,n){const a=ot("el-checkbox"),i=ot("el-radio"),c=ot("check"),u=ot("el-icon"),d=ot("node-content"),p=ot("loading"),f=ot("arrow-right");return b(),z("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:P([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onFocus:t[3]||(t[3]=(...v)=>e.handleHoverExpand&&e.handleHoverExpand(...v)),onClick:t[4]||(t[4]=(...v)=>e.handleClick&&e.handleClick(...v))},[ue(" prefix "),e.multiple?(b(),de(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(b(),de(i,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=it(()=>{},["stop"]))},{default:ne(()=>[ue(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),Aq]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(b(),de(u,{key:2,class:P(e.ns.e("prefix"))},{default:ne(()=>[oe(c)]),_:1},8,["class"])):ue("v-if",!0),ue(" content "),oe(p),ue(" postfix "),e.isLeaf?ue("v-if",!0):(b(),z(Ge,{key:3},[e.node.loading?(b(),de(u,{key:0,class:P([e.ns.is("loading"),e.ns.e("postfix")])},{default:ne(()=>[oe(d)]),_:1},8,["class"])):(b(),de(u,{key:1,class:P(["arrow-right",e.ns.e("postfix")])},{default:ne(()=>[oe(f)]),_:1},8,["class"]))],64))],42,Mq)}var Oq=Fe(zq,[["render",Iq],["__file","node.vue"]]);const Pq=B({name:"ElCascaderMenu",components:{Loading:Rl,ElIcon:Je,ElScrollbar:Kl,ElCascaderNode:Oq},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=_t(),o=Oe("cascader-menu"),{t:r}=Nt(),l=Pu();let n=null,a=null;const i=Le(mh),c=V(null),u=$(()=>!e.nodes.length),p=$(()=>!i.initialLoaded),d=$(()=>`cascader-menu-${l}-${e.index}`),f=_=>{n=_.target},v=_=>{if(!(!i.isHoverMenu||!n||!c.value))if(n.contains(_.target)){m();const g=t.vnode.el,{left:y}=g.getBoundingClientRect(),{offsetWidth:w,offsetHeight:x}=g,M=_.clientX-y,T=n.offsetTop,O=T+n.offsetHeight;c.value.innerHTML=` - - - `}else a||(a=window.setTimeout(h,i.config.hoverThreshold))},m=()=>{a&&(clearTimeout(a),a=null)},h=()=>{c.value&&(c.value.innerHTML="",m())};return{ns:o,panel:i,hoverZone:c,isEmpty:u,isLoading:p,menuId:d,t:r,handleExpand:f,handleMouseMove:v,clearHoverZone:h}}});function Bq(e,t,o,r,l,n){const a=ot("el-cascader-node"),i=ot("loading"),c=ot("el-icon"),u=ot("el-scrollbar");return b(),de(u,{key:e.menuId,tag:"ul",role:"menu",class:P(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ne(()=>{var p;return[(b(!0),z(Ge,null,Tt(e.nodes,d=>(b(),de(a,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(b(),z("div",{key:0,class:P(e.ns.e("empty-text"))},[oe(c,{size:"14",class:P(e.ns.is("loading"))},{default:ne(()=>[oe(i)]),_:1},8,["class"]),$t(" "+ze(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(b(),z("div",{key:1,class:P(e.ns.e("empty-text"))},ze(e.t("el.cascader.noData")),3)):(p=e.panel)!=null&&p.isHoverMenu?(b(),z("svg",{key:2,ref:"hoverZone",class:P(e.ns.e("hover-zone"))},null,2)):ue("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Nq=Fe(Pq,[["render",Bq],["__file","menu.vue"]]);let Lq=0;const Rq=e=>{const t=[e];let{parent:o}=e;for(;o;)t.unshift(o),o=o.parent;return t};let gh=class x2{constructor(t,o,r,l=!1){this.data=t,this.config=o,this.parent=r,this.root=l,this.uid=Lq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:n,label:a,children:i}=o,c=t[i],u=Rq(this);this.level=l?0:r?r.level+1:1,this.value=t[n],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(p=>p.value),this.pathLabels=u.map(p=>p.label),this.childrenData=c,this.children=(c||[]).map(p=>new x2(p,o,this)),this.loaded=!o.lazy||this.isLeaf||!Tr(c)}get isDisabled(){const{data:t,parent:o,config:r}=this,{disabled:l,checkStrictly:n}=r;return(ut(l)?l(t,this):!!t[l])||!n&&(o==null?void 0:o.isDisabled)}get isLeaf(){const{data:t,config:o,childrenData:r,loaded:l}=this,{lazy:n,leaf:a}=o,i=ut(a)?a(t,this):t[a];return ko(i)?n&&!l?!1:!(Array.isArray(r)&&r.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:o,children:r}=this,l=new x2(t,this.config,this);return Array.isArray(o)?o.push(t):this.childrenData=[t],r.push(l),l}calcText(t,o){const r=t?this.pathLabels.join(o):this.label;return this.text=r,r}broadcast(t,...o){const r=`onParent${nl(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...o),l[r]&&l[r](...o))})}emit(t,...o){const{parent:r}=this,l=`onChild${nl(t)}`;r&&(r[l]&&r[l](...o),r.emit(t,...o))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,o=t.filter(l=>!l.isDisabled),r=o.length?o.every(l=>l.checked):!1;this.setCheckState(r)}setCheckState(t){const o=this.children.length,r=this.children.reduce((l,n)=>{const a=n.checked?1:n.indeterminate?.5:0;return l+a},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&r!==o&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:o,multiple:r}=this.config;o||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const bh=(e,t)=>e.reduce((o,r)=>(r.isLeaf?o.push(r):(!t&&o.push(r),o=o.concat(bh(r.children,t))),o),[]);class x4{constructor(t,o){this.config=o;const r=(t||[]).map(l=>new gh(l,this.config));this.nodes=r,this.allNodes=bh(r,!1),this.leafNodes=bh(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,o){const r=o?o.appendChild(t):new gh(t,this.config);o||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,o){t.forEach(r=>this.appendNode(r,o))}getNodeByValue(t,o=!1){return!t&&t!==0?null:this.getFlattedNodes(o).find(l=>ir(l.value,t)||ir(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:l})=>ir(t.value,r)&&t.level===l)||null}}const k4=He({modelValue:{type:pe([Number,String,Array])},options:{type:pe(Array),default:()=>[]},props:{type:pe(Object),default:()=>({})}}),Vq={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Dt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Hq=e=>$(()=>({...Vq,...e.props})),C4=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Fq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():_1(e)&&e.click()},Dq=(e,t)=>{const o=t.slice(0),r=o.map(n=>n.uid),l=e.reduce((n,a)=>{const i=r.indexOf(a.uid);return i>-1&&(n.push(a),o.splice(i,1),r.splice(i,1)),n},[]);return l.push(...o),l},jq=B({name:"ElCascaderPanel",components:{ElCascaderMenu:Nq},props:{...k4,border:{type:Boolean,default:!0},renderLabel:Function},emits:[kt,Jt,"close","expand-change"],setup(e,{emit:t,slots:o}){let r=!1;const l=Oe("cascader"),n=Hq(e);let a=null;const i=V(!0),c=V([]),u=V(null),p=V([]),d=V(null),f=V([]),v=$(()=>n.value.expandTrigger==="hover"),m=$(()=>e.renderLabel||o.default),h=()=>{const{options:D}=e,j=n.value;r=!1,a=new x4(D,j),p.value=[a.getNodes()],j.lazy&&Tr(e.options)?(i.value=!1,_(void 0,Z=>{Z&&(a=new x4(Z,j),p.value=[a.getNodes()]),i.value=!0,I(!1,!0)})):I(!1,!0)},_=(D,j)=>{const Z=n.value;D=D||new gh({},Z,void 0,!0),D.loading=!0;const Q=J=>{const L=D,X=L.root?null:L;J&&(a==null||a.appendNodes(J,X)),L.loading=!1,L.loaded=!0,L.childrenData=L.childrenData||[],j&&j(J)};Z.lazyLoad(D,Q)},g=(D,j)=>{var Z;const{level:Q}=D,J=p.value.slice(0,Q);let L;D.isLeaf?L=D.pathNodes[Q-2]:(L=D,J.push(D.children)),((Z=d.value)==null?void 0:Z.uid)!==(L==null?void 0:L.uid)&&(d.value=D,p.value=J,!j&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},y=(D,j,Z=!0)=>{const{checkStrictly:Q,multiple:J}=n.value,L=f.value[0];r=!0,!J&&(L==null||L.doCheck(!1)),D.doCheck(j),O(),Z&&!J&&!Q&&t("close"),!Z&&!J&&!Q&&w(D)},w=D=>{D&&(D=D.parent,w(D),D&&g(D))},x=D=>a==null?void 0:a.getFlattedNodes(D),M=D=>{var j;return(j=x(D))==null?void 0:j.filter(Z=>Z.checked!==!1)},T=()=>{f.value.forEach(D=>D.doCheck(!1)),O(),p.value=p.value.slice(0,1),d.value=null,t("expand-change",[])},O=()=>{var D;const{checkStrictly:j,multiple:Z}=n.value,Q=f.value,J=M(!j),L=Dq(Q,J),X=L.map(N=>N.valueByOption);f.value=L,u.value=Z?X:(D=X[0])!=null?D:null},I=(D=!1,j=!1)=>{const{modelValue:Z}=e,{lazy:Q,multiple:J,checkStrictly:L}=n.value,X=!L;if(!(!i.value||r||!j&&ir(Z,u.value)))if(Q&&!D){const W=z3(oM(Vl(Z))).map(re=>a==null?void 0:a.getNodeByValue(re)).filter(re=>!!re&&!re.loaded&&!re.loading);W.length?W.forEach(re=>{_(re,()=>I(!1,j))}):I(!0,j)}else{const N=J?Vl(Z):[Z],W=z3(N.map(re=>a==null?void 0:a.getNodeByValue(re,X)));F(W,j),u.value=xu(Z)}},F=(D,j=!0)=>{const{checkStrictly:Z}=n.value,Q=f.value,J=D.filter(N=>!!N&&(Z||N.isLeaf)),L=a==null?void 0:a.getSameNode(d.value),X=j&&L||J[0];X?X.pathNodes.forEach(N=>g(N,!0)):d.value=null,Q.forEach(N=>N.doCheck(!1)),e.props.multiple?Ft(J).forEach(N=>N.doCheck(!0)):J.forEach(N=>N.doCheck(!0)),f.value=J,et(K)},K=()=>{Bt&&c.value.forEach(D=>{const j=D==null?void 0:D.$el;if(j){const Z=j.querySelector(`.${l.namespace.value}-scrollbar__wrap`),Q=j.querySelector(`.${l.b("node")}.${l.is("active")}`)||j.querySelector(`.${l.b("node")}.in-active-path`);r3(Z,Q)}})},R=D=>{const j=D.target,{code:Z}=D;switch(Z){case tt.up:case tt.down:{D.preventDefault();const Q=Z===tt.up?-1:1;fu(w1(j,Q,`.${l.b("node")}[tabindex="-1"]`));break}case tt.left:{D.preventDefault();const Q=c.value[C4(j)-1],J=Q==null?void 0:Q.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`);fu(J);break}case tt.right:{D.preventDefault();const Q=c.value[C4(j)+1],J=Q==null?void 0:Q.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`);fu(J);break}case tt.enter:Fq(j);break}};return zt(mh,Ft({config:n,expandingNode:d,checkedNodes:f,isHoverMenu:v,initialLoaded:i,renderLabelFn:m,lazyLoad:_,expandNode:g,handleCheckChange:y})),Te([n,()=>e.options],h,{deep:!0,immediate:!0}),Te(()=>e.modelValue,()=>{r=!1,I()},{deep:!0}),Te(()=>u.value,D=>{ir(D,e.modelValue)||(t(kt,D),t(Jt,D))}),ym(()=>c.value=[]),vt(()=>!Tr(e.modelValue)&&I()),{ns:l,menuList:c,menus:p,checkedNodes:f,handleKeyDown:R,handleCheckChange:y,getFlattedNodes:x,getCheckedNodes:M,clearCheckedNodes:T,calculateCheckedValue:O,scrollToExpandingNode:K}}});function Kq(e,t,o,r,l,n){const a=ot("el-cascader-menu");return b(),z("div",{class:P([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...i)=>e.handleKeyDown&&e.handleKeyDown(...i))},[(b(!0),z(Ge,null,Tt(e.menus,(i,c)=>(b(),de(a,{key:c,ref_for:!0,ref:u=>e.menuList[c]=u,index:c,nodes:[...i]},null,8,["index","nodes"]))),128))],34)}var ud=Fe(jq,[["render",Kq],["__file","index.vue"]]);ud.install=e=>{e.component(ud.name,ud)};const S4=ud,Wq=S4,_h=He({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:il,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Uq=B({...B({name:"ElTag"}),props:_h,emits:{close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,r=Eo(),l=Oe("tag"),n=$(()=>{const{type:c,hit:u,effect:p,closable:d,round:f}=o;return[l.b(),l.is("closable",d),l.m(c),l.m(r.value),l.m(p),l.is("hit",u),l.is("round",f)]}),a=c=>{t("close",c)},i=c=>{t("click",c)};return(c,u)=>c.disableTransitions?(b(),z("span",{key:0,class:P(s(n)),style:Qe({backgroundColor:c.color}),onClick:i},[E("span",{class:P(s(l).e("content"))},[be(c.$slots,"default")],2),c.closable?(b(),de(s(Je),{key:0,class:P(s(l).e("close")),onClick:it(a,["stop"])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class","onClick"])):ue("v-if",!0)],6)):(b(),de(_o,{key:1,name:`${s(l).namespace.value}-zoom-in-center`,appear:""},{default:ne(()=>[E("span",{class:P(s(n)),style:Qe({backgroundColor:c.color}),onClick:i},[E("span",{class:P(s(l).e("content"))},[be(c.$slots,"default")],2),c.closable?(b(),de(s(Je),{key:0,class:P(s(l).e("close")),onClick:it(a,["stop"])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class","onClick"])):ue("v-if",!0)],6)]),_:3},8,["name"]))}});var qq=Fe(Uq,[["__file","tag.vue"]]);const js=xt(qq),Yq=He({...k4,size:No,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:pe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:pe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Lo.teleported,tagType:{..._h.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),Gq={[kt]:e=>!!e||e===null,[Jt]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Co(e),expandChange:e=>!!e,removeTag:e=>!!e},Xq={key:0},Zq=["placeholder","onKeydown"],Jq=["onClick"],Qq=B({...B({name:"ElCascader"}),props:Yq,emits:Gq,setup(e,{expose:t,emit:o}){const r=e,l={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:S})=>{const{modifiersData:H,placement:ee}=S;["right","left","bottom","top"].includes(ee)||(H.arrow.x=35)},requires:["arrow"]}]},n=Hn();let a=0,i=0;const c=Oe("cascader"),u=Oe("input"),{t:p}=Nt(),{form:d,formItem:f}=Qo(),v=V(null),m=V(null),h=V(null),_=V(null),g=V(null),y=V(!1),w=V(!1),x=V(!1),M=V(!1),T=V(""),O=V(""),I=V([]),F=V([]),K=V([]),R=V(!1),D=$(()=>n.style),j=$(()=>r.disabled||(d==null?void 0:d.disabled)),Z=$(()=>r.placeholder||p("el.cascader.placeholder")),Q=$(()=>O.value||I.value.length>0||R.value?"":Z.value),J=Eo(),L=$(()=>["small"].includes(J.value)?"small":"default"),X=$(()=>!!r.props.multiple),N=$(()=>!r.filterable||X.value),W=$(()=>X.value?O.value:T.value),re=$(()=>{var S;return((S=_.value)==null?void 0:S.checkedNodes)||[]}),ie=$(()=>!r.clearable||j.value||x.value||!w.value?!1:!!re.value.length),se=$(()=>{const{showAllLevels:S,separator:H}=r,ee=re.value;return ee.length?X.value?"":ee[0].calcText(S,H):""}),ve=$({get(){return xu(r.modelValue)},set(S){o(kt,S),o(Jt,S),r.validateEvent&&(f==null||f.validate("change").catch(H=>void 0))}}),le=$(()=>[c.b(),c.m(J.value),c.is("disabled",j.value),n.class]),ge=$(()=>[u.e("icon"),"icon-arrow-down",c.is("reverse",y.value)]),_e=$(()=>c.is("focus",y.value||M.value)),me=$(()=>{var S,H;return(H=(S=v.value)==null?void 0:S.popperRef)==null?void 0:H.contentRef}),Be=S=>{var H,ee,U;j.value||(S=S??!y.value,S!==y.value&&(y.value=S,(ee=(H=m.value)==null?void 0:H.input)==null||ee.setAttribute("aria-expanded",`${S}`),S?(ye(),et((U=_.value)==null?void 0:U.scrollToExpandingNode)):r.filterable&&qe(),o("visibleChange",S)))},ye=()=>{et(()=>{var S;(S=v.value)==null||S.updatePopper()})},Me=()=>{x.value=!1},te=S=>{const{showAllLevels:H,separator:ee}=r;return{node:S,key:S.uid,text:S.calcText(H,ee),hitState:!1,closable:!j.value&&!S.isDisabled,isCollapseTag:!1}},ce=S=>{var H;const ee=S.node;ee.doCheck(!1),(H=_.value)==null||H.calculateCheckedValue(),o("removeTag",ee.valueByOption)},we=()=>{if(!X.value)return;const S=re.value,H=[],ee=[];if(S.forEach(U=>ee.push(te(U))),F.value=ee,S.length){S.slice(0,r.maxCollapseTags).forEach(Ue=>H.push(te(Ue)));const U=S.slice(r.maxCollapseTags),he=U.length;he&&(r.collapseTags?H.push({key:-1,text:`+ ${he}`,closable:!1,isCollapseTag:!0}):U.forEach(Ue=>H.push(te(Ue))))}I.value=H},Ae=()=>{var S,H;const{filterMethod:ee,showAllLevels:U,separator:he}=r,Ue=(H=(S=_.value)==null?void 0:S.getFlattedNodes(!r.props.checkStrictly))==null?void 0:H.filter(st=>st.isDisabled?!1:(st.calcText(U,he),ee(st,W.value)));X.value&&(I.value.forEach(st=>{st.hitState=!1}),F.value.forEach(st=>{st.hitState=!1})),x.value=!0,K.value=Ue,ye()},Ie=()=>{var S;let H;x.value&&g.value?H=g.value.$el.querySelector(`.${c.e("suggestion-item")}`):H=(S=_.value)==null?void 0:S.$el.querySelector(`.${c.b("node")}[tabindex="-1"]`),H&&(H.focus(),!x.value&&H.click())},xe=()=>{var S,H;const ee=(S=m.value)==null?void 0:S.input,U=h.value,he=(H=g.value)==null?void 0:H.$el;if(!(!Bt||!ee)){if(he){const Ue=he.querySelector(`.${c.e("suggestion-list")}`);Ue.style.minWidth=`${ee.offsetWidth}px`}if(U){const{offsetHeight:Ue}=U,st=I.value.length>0?`${Math.max(Ue+6,a)}px`:`${a}px`;ee.style.height=st,ye()}}},Ne=S=>{var H;return(H=_.value)==null?void 0:H.getCheckedNodes(S)},Se=S=>{ye(),o("expandChange",S)},ke=S=>{var H;const ee=(H=S.target)==null?void 0:H.value;if(S.type==="compositionend")R.value=!1,et(()=>Y(ee));else{const U=ee[ee.length-1]||"";R.value=!Iu(U)}},$e=S=>{if(!R.value)switch(S.code){case tt.enter:Be();break;case tt.down:Be(!0),et(Ie),S.preventDefault();break;case tt.esc:y.value===!0&&(S.preventDefault(),S.stopPropagation(),Be(!1));break;case tt.tab:Be(!1);break}},Pe=()=>{var S;(S=_.value)==null||S.clearCheckedNodes(),!y.value&&r.filterable&&qe(),Be(!1)},qe=()=>{const{value:S}=se;T.value=S,O.value=S},Ke=S=>{var H,ee;const{checked:U}=S;X.value?(H=_.value)==null||H.handleCheckChange(S,!U,!1):(!U&&((ee=_.value)==null||ee.handleCheckChange(S,!0,!1)),Be(!1))},Ee=S=>{const H=S.target,{code:ee}=S;switch(ee){case tt.up:case tt.down:{const U=ee===tt.up?-1:1;fu(w1(H,U,`.${c.e("suggestion-item")}[tabindex="-1"]`));break}case tt.enter:H.click();break}},We=()=>{const S=I.value,H=S[S.length-1];i=O.value?0:i+1,!(!H||!i||r.collapseTags&&S.length>1)&&(H.hitState?ce(H):H.hitState=!0)},nt=S=>{const H=S.target,ee=c.e("search-input");H.className===ee&&(M.value=!0),o("focus",S)},dt=S=>{M.value=!1,o("blur",S)},gt=Zo(()=>{const{value:S}=W;if(!S)return;const H=r.beforeFilter(S);Pi(H)?H.then(Ae).catch(()=>{}):H!==!1?Ae():Me()},r.debounce),Y=(S,H)=>{!y.value&&Be(!0),!(H!=null&&H.isComposing)&&(S?gt():Me())},C=S=>Number.parseFloat(w7(u.cssVarName("input-height"),S).value)-2;return Te(x,ye),Te([re,j],we),Te(I,()=>{et(()=>xe())}),Te(J,async()=>{await et();const S=m.value.input;a=C(S)||a,xe()}),Te(se,qe,{immediate:!0}),vt(()=>{const S=m.value.input,H=C(S);a=S.offsetHeight||H,jo(S,xe)}),t({getCheckedNodes:Ne,cascaderPanelRef:_,togglePopperVisible:Be,contentRef:me}),(S,H)=>(b(),de(s(er),{ref_key:"tooltipRef",ref:v,visible:y.value,teleported:S.teleported,"popper-class":[s(c).e("dropdown"),S.popperClass],"popper-options":l,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${s(c).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:Me},{default:ne(()=>[ht((b(),z("div",{class:P(s(le)),style:Qe(s(D)),onClick:H[5]||(H[5]=()=>Be(s(N)?void 0:!0)),onKeydown:$e,onMouseenter:H[6]||(H[6]=ee=>w.value=!0),onMouseleave:H[7]||(H[7]=ee=>w.value=!1)},[oe(s(Wo),{ref_key:"input",ref:m,modelValue:T.value,"onUpdate:modelValue":H[1]||(H[1]=ee=>T.value=ee),placeholder:s(Q),readonly:s(N),disabled:s(j),"validate-event":!1,size:s(J),class:P(s(_e)),tabindex:s(X)&&S.filterable&&!s(j)?-1:void 0,onCompositionstart:ke,onCompositionupdate:ke,onCompositionend:ke,onFocus:nt,onBlur:dt,onInput:Y},{suffix:ne(()=>[s(ie)?(b(),de(s(Je),{key:"clear",class:P([s(u).e("icon"),"icon-circle-close"]),onClick:it(Pe,["stop"])},{default:ne(()=>[oe(s(Ll))]),_:1},8,["class","onClick"])):(b(),de(s(Je),{key:"arrow-down",class:P(s(ge)),onClick:H[0]||(H[0]=it(ee=>Be(),["stop"]))},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),s(X)?(b(),z("div",{key:0,ref_key:"tagWrapper",ref:h,class:P(s(c).e("tags"))},[(b(!0),z(Ge,null,Tt(I.value,ee=>(b(),de(s(js),{key:ee.key,type:S.tagType,size:s(L),hit:ee.hitState,closable:ee.closable,"disable-transitions":"",onClose:U=>ce(ee)},{default:ne(()=>[ee.isCollapseTag===!1?(b(),z("span",Xq,ze(ee.text),1)):(b(),de(s(er),{key:1,disabled:y.value||!S.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ne(()=>[E("span",null,ze(ee.text),1)]),content:ne(()=>[E("div",{class:P(s(c).e("collapse-tags"))},[(b(!0),z(Ge,null,Tt(F.value.slice(S.maxCollapseTags),(U,he)=>(b(),z("div",{key:he,class:P(s(c).e("collapse-tag"))},[(b(),de(s(js),{key:U.key,class:"in-tooltip",type:S.tagType,size:s(L),hit:U.hitState,closable:U.closable,"disable-transitions":"",onClose:Ue=>ce(U)},{default:ne(()=>[E("span",null,ze(U.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),S.filterable&&!s(j)?ht((b(),z("input",{key:0,"onUpdate:modelValue":H[2]||(H[2]=ee=>O.value=ee),type:"text",class:P(s(c).e("search-input")),placeholder:s(se)?"":s(Z),onInput:H[3]||(H[3]=ee=>Y(O.value,ee)),onClick:H[4]||(H[4]=it(ee=>Be(!0),["stop"])),onKeydown:Rt(We,["delete"]),onCompositionstart:ke,onCompositionupdate:ke,onCompositionend:ke,onFocus:nt,onBlur:dt},null,42,Zq)),[[of,O.value]]):ue("v-if",!0)],2)):ue("v-if",!0)],38)),[[s(Ul),()=>Be(!1),s(me)]])]),content:ne(()=>[ht(oe(s(S4),{ref_key:"cascaderPanelRef",ref:_,modelValue:s(ve),"onUpdate:modelValue":H[8]||(H[8]=ee=>Kt(ve)?ve.value=ee:null),options:S.options,props:r.props,border:!1,"render-label":S.$slots.default,onExpandChange:Se,onClose:H[9]||(H[9]=ee=>S.$nextTick(()=>Be(!1)))},null,8,["modelValue","options","props","render-label"]),[[Pt,!x.value]]),S.filterable?ht((b(),de(s(Kl),{key:0,ref_key:"suggestionPanel",ref:g,tag:"ul",class:P(s(c).e("suggestion-panel")),"view-class":s(c).e("suggestion-list"),onKeydown:Ee},{default:ne(()=>[K.value.length?(b(!0),z(Ge,{key:0},Tt(K.value,ee=>(b(),z("li",{key:ee.uid,class:P([s(c).e("suggestion-item"),s(c).is("checked",ee.checked)]),tabindex:-1,onClick:U=>Ke(ee)},[E("span",null,ze(ee.text),1),ee.checked?(b(),de(s(Je),{key:0},{default:ne(()=>[oe(s(qa))]),_:1})):ue("v-if",!0)],10,Jq))),128)):be(S.$slots,"empty",{key:1},()=>[E("li",{class:P(s(c).e("empty-text"))},ze(s(p)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Pt,x.value]]):ue("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var dd=Fe(Qq,[["__file","cascader.vue"]]);dd.install=e=>{e.component(dd.name,dd)};const eY=dd,tY=He({checked:{type:Boolean,default:!1}}),oY={"update:checked":e=>Co(e),[Jt]:e=>Co(e)},rY=B({...B({name:"ElCheckTag"}),props:tY,emits:oY,setup(e,{emit:t}){const o=e,r=Oe("check-tag"),l=$(()=>[r.b(),r.is("checked",o.checked)]),n=()=>{const a=!o.checked;t(Jt,a),t("update:checked",a)};return(a,i)=>(b(),z("span",{class:P(s(l)),onClick:n},[be(a.$slots,"default")],2))}});var lY=Fe(rY,[["__file","check-tag.vue"]]);const nY=xt(lY),E4=Symbol("rowContextKey"),aY=He({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),iY=B({...B({name:"ElRow"}),props:aY,setup(e){const t=e,o=Oe("row"),r=$(()=>t.gutter);zt(E4,{gutter:r});const l=$(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),n=$(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(a,i)=>(b(),de(St(a.tag),{class:P(s(n)),style:Qe(s(l))},{default:ne(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var sY=Fe(iY,[["__file","row.vue"]]);const cY=xt(sY),uY=He({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:pe([Number,Object]),default:()=>ro({})},sm:{type:pe([Number,Object]),default:()=>ro({})},md:{type:pe([Number,Object]),default:()=>ro({})},lg:{type:pe([Number,Object]),default:()=>ro({})},xl:{type:pe([Number,Object]),default:()=>ro({})}}),dY=B({...B({name:"ElCol"}),props:uY,setup(e){const t=e,{gutter:o}=Le(E4,{gutter:$(()=>0)}),r=Oe("col"),l=$(()=>{const a={};return o.value&&(a.paddingLeft=a.paddingRight=`${o.value/2}px`),a}),n=$(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const p=t[u];ct(p)&&(u==="span"?a.push(r.b(`${t[u]}`)):p>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ct(t[u])?a.push(r.b(`${u}-${t[u]}`)):Ct(t[u])&&Object.entries(t[u]).forEach(([p,d])=>{a.push(p!=="span"?r.b(`${u}-${p}-${d}`):r.b(`${u}-${d}`))})}),o.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,i)=>(b(),de(St(a.tag),{class:P(s(n)),style:Qe(s(l))},{default:ne(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var pY=Fe(dY,[["__file","col.vue"]]);const fY=xt(pY),$4=e=>typeof ct(e),hY=He({accordion:Boolean,modelValue:{type:pe([Array,String,Number]),default:()=>ro([])}}),vY={[kt]:$4,[Jt]:$4},T4=Symbol("collapseContextKey"),mY=(e,t)=>{const o=V(Jn(e.modelValue)),r=n=>{o.value=n;const a=e.accordion?o.value[0]:o.value;t(kt,a),t(Jt,a)},l=n=>{if(e.accordion)r([o.value[0]===n?"":n]);else{const a=[...o.value],i=a.indexOf(n);i>-1?a.splice(i,1):a.push(n),r(a)}};return Te(()=>e.modelValue,()=>o.value=Jn(e.modelValue),{deep:!0}),zt(T4,{activeNames:o,handleItemClick:l}),{activeNames:o,setActiveNames:r}},gY=()=>{const e=Oe("collapse");return{rootKls:$(()=>e.b())}},bY=B({...B({name:"ElCollapse"}),props:hY,emits:vY,setup(e,{expose:t,emit:o}){const r=e,{activeNames:l,setActiveNames:n}=mY(r,o),{rootKls:a}=gY();return t({activeNames:l,setActiveNames:n}),(i,c)=>(b(),z("div",{class:P(s(a))},[be(i.$slots,"default")],2))}});var _Y=Fe(bY,[["__file","collapse.vue"]]);const wY=B({...B({name:"ElCollapseTransition"}),setup(e){const t=Oe("collapse-transition"),o=l=>{l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom},r={beforeEnter(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.style.height&&(l.dataset.elExistsHeight=l.style.height),l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0},enter(l){requestAnimationFrame(()=>{l.dataset.oldOverflow=l.style.overflow,l.dataset.elExistsHeight?l.style.maxHeight=l.dataset.elExistsHeight:l.scrollHeight!==0?l.style.maxHeight=`${l.scrollHeight}px`:l.style.maxHeight=0,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom,l.style.overflow="hidden"})},afterEnter(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow},enterCancelled(l){o(l)},beforeLeave(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.dataset.oldOverflow=l.style.overflow,l.style.maxHeight=`${l.scrollHeight}px`,l.style.overflow="hidden"},leave(l){l.scrollHeight!==0&&(l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0)},afterLeave(l){o(l)},leaveCancelled(l){o(l)}};return(l,n)=>(b(),de(_o,Et({name:s(t).b()},f5(r)),{default:ne(()=>[be(l.$slots,"default")]),_:3},16,["name"]))}});var pd=Fe(wY,[["__file","collapse-transition.vue"]]);pd.install=e=>{e.component(pd.name,pd)};const fd=pd,yY=fd,xY=He({title:{type:String,default:""},name:{type:pe([String,Number]),default:()=>Pu()},disabled:Boolean}),kY=e=>{const t=Le(T4),o=V(!1),r=V(!1),l=V(Pu()),n=$(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:o,id:l,isActive:n,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:o.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),o.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},CY=(e,{focusing:t,isActive:o,id:r})=>{const l=Oe("collapse"),n=$(()=>[l.b("item"),l.is("active",s(o)),l.is("disabled",e.disabled)]),a=$(()=>[l.be("item","header"),l.is("active",s(o)),{focusing:s(t)&&!e.disabled}]),i=$(()=>[l.be("item","arrow"),l.is("active",s(o))]),c=$(()=>l.be("item","wrap")),u=$(()=>l.be("item","content")),p=$(()=>l.b(`content-${s(r)}`)),d=$(()=>l.b(`head-${s(r)}`));return{arrowKls:i,headKls:a,rootKls:n,itemWrapperKls:c,itemContentKls:u,scopedContentId:p,scopedHeadId:d}},SY=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],EY=["id","aria-hidden","aria-labelledby"],$Y=B({...B({name:"ElCollapseItem"}),props:xY,setup(e,{expose:t}){const o=e,{focusing:r,id:l,isActive:n,handleFocus:a,handleHeaderClick:i,handleEnterClick:c}=kY(o),{arrowKls:u,headKls:p,rootKls:d,itemWrapperKls:f,itemContentKls:v,scopedContentId:m,scopedHeadId:h}=CY(o,{focusing:r,isActive:n,id:l});return t({isActive:n}),(_,g)=>(b(),z("div",{class:P(s(d))},[E("button",{id:s(h),class:P(s(p)),"aria-expanded":s(n),"aria-controls":s(m),"aria-describedby":s(m),tabindex:_.disabled?-1:0,type:"button",onClick:g[0]||(g[0]=(...y)=>s(i)&&s(i)(...y)),onKeydown:g[1]||(g[1]=Rt(it((...y)=>s(c)&&s(c)(...y),["stop","prevent"]),["space","enter"])),onFocus:g[2]||(g[2]=(...y)=>s(a)&&s(a)(...y)),onBlur:g[3]||(g[3]=y=>r.value=!1)},[be(_.$slots,"title",{},()=>[$t(ze(_.title),1)]),oe(s(Je),{class:P(s(u))},{default:ne(()=>[oe(s(Ko))]),_:1},8,["class"])],42,SY),oe(s(fd),null,{default:ne(()=>[ht(E("div",{id:s(m),role:"region",class:P(s(f)),"aria-hidden":!s(n),"aria-labelledby":s(h)},[E("div",{class:P(s(v))},[be(_.$slots,"default")],2)],10,EY),[[Pt,s(n)]])]),_:3})],2))}});var z4=Fe($Y,[["__file","collapse-item.vue"]]);const TY=xt(_Y,{CollapseItem:z4}),zY=fo(z4),MY=He({color:{type:pe(Object),required:!0},vertical:{type:Boolean,default:!1}});let wh=!1;function Ks(e,t){if(!Bt)return;const o=function(n){var a;(a=t.drag)==null||a.call(t,n)},r=function(n){var a;document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,wh=!1,(a=t.end)==null||a.call(t,n)},l=function(n){var a;wh||(n.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),document.addEventListener("touchmove",o),document.addEventListener("touchend",r),wh=!0,(a=t.start)==null||a.call(t,n))};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l)}const AY=e=>{const t=_t(),o=qt(),r=qt();function l(a){a.target!==o.value&&n(a)}function n(a){if(!r.value||!o.value)return;const c=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:p}=$f(a);if(e.vertical){let d=p-c.top;d=Math.max(o.value.offsetHeight/2,d),d=Math.min(d,c.height-o.value.offsetHeight/2),e.color.set("alpha",Math.round((d-o.value.offsetHeight/2)/(c.height-o.value.offsetHeight)*100))}else{let d=u-c.left;d=Math.max(o.value.offsetWidth/2,d),d=Math.min(d,c.width-o.value.offsetWidth/2),e.color.set("alpha",Math.round((d-o.value.offsetWidth/2)/(c.width-o.value.offsetWidth)*100))}}return{thumb:o,bar:r,handleDrag:n,handleClick:l}},IY=(e,{bar:t,thumb:o,handleDrag:r})=>{const l=_t(),n=Oe("color-alpha-slider"),a=V(0),i=V(0),c=V();function u(){if(!o.value||e.vertical)return 0;const y=l.vnode.el,w=e.color.get("alpha");return y?Math.round(w*(y.offsetWidth-o.value.offsetWidth/2)/100):0}function p(){if(!o.value)return 0;const y=l.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return y?Math.round(w*(y.offsetHeight-o.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:y,g:w,b:x}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${w}, ${x}, 0) 0%, rgba(${y}, ${w}, ${x}, 1) 100%)`}return""}function f(){a.value=u(),i.value=p(),c.value=d()}vt(()=>{if(!t.value||!o.value)return;const y={drag:w=>{r(w)},end:w=>{r(w)}};Ks(t.value,y),Ks(o.value,y),f()}),Te(()=>e.color.get("alpha"),()=>f()),Te(()=>e.color.value,()=>f());const v=$(()=>[n.b(),n.is("vertical",e.vertical)]),m=$(()=>n.e("bar")),h=$(()=>n.e("thumb")),_=$(()=>({background:c.value})),g=$(()=>({left:bo(a.value),top:bo(i.value)}));return{rootKls:v,barKls:m,barStyle:_,thumbKls:h,thumbStyle:g,update:f}},OY=B({...B({name:"ElColorAlphaSlider"}),props:MY,setup(e,{expose:t}){const o=e,{bar:r,thumb:l,handleDrag:n,handleClick:a}=AY(o),{rootKls:i,barKls:c,barStyle:u,thumbKls:p,thumbStyle:d,update:f}=IY(o,{bar:r,thumb:l,handleDrag:n});return t({update:f,bar:r,thumb:l}),(v,m)=>(b(),z("div",{class:P(s(i))},[E("div",{ref_key:"bar",ref:r,class:P(s(c)),style:Qe(s(u)),onClick:m[0]||(m[0]=(...h)=>s(a)&&s(a)(...h))},null,6),E("div",{ref_key:"thumb",ref:l,class:P(s(p)),style:Qe(s(d))},null,6)],2))}});var PY=Fe(OY,[["__file","alpha-slider.vue"]]);const BY=B({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Oe("color-hue-slider"),o=_t(),r=V(),l=V(),n=V(0),a=V(0),i=$(()=>e.color.get("hue"));Te(()=>i.value,()=>{f()});function c(v){v.target!==r.value&&u(v)}function u(v){if(!l.value||!r.value)return;const h=o.vnode.el.getBoundingClientRect(),{clientX:_,clientY:g}=$f(v);let y;if(e.vertical){let w=g-h.top;w=Math.min(w,h.height-r.value.offsetHeight/2),w=Math.max(r.value.offsetHeight/2,w),y=Math.round((w-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*360)}else{let w=_-h.left;w=Math.min(w,h.width-r.value.offsetWidth/2),w=Math.max(r.value.offsetWidth/2,w),y=Math.round((w-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*360)}e.color.set("hue",y)}function p(){if(!r.value)return 0;const v=o.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetWidth-r.value.offsetWidth/2)/360):0}function d(){if(!r.value)return 0;const v=o.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){n.value=p(),a.value=d()}return vt(()=>{if(!l.value||!r.value)return;const v={drag:m=>{u(m)},end:m=>{u(m)}};Ks(l.value,v),Ks(r.value,v),f()}),{bar:l,thumb:r,thumbLeft:n,thumbTop:a,hueValue:i,handleClick:c,update:f,ns:t}}});function NY(e,t,o,r,l,n){return b(),z("div",{class:P([e.ns.b(),e.ns.is("vertical",e.vertical)])},[E("div",{ref:"bar",class:P(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),E("div",{ref:"thumb",class:P(e.ns.e("thumb")),style:Qe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var LY=Fe(BY,[["render",NY],["__file","hue-slider.vue"]]);const RY=He({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:No,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:pe(Array)},validateEvent:{type:Boolean,default:!0}}),VY={[kt]:e=>ft(e)||wo(e),[Jt]:e=>ft(e)||wo(e),activeChange:e=>ft(e)||wo(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},M4=Symbol("colorPickerContextKey"),A4=function(e,t,o){return[e,t*o/((e=(2-t)*o)<1?e:2-e)||0,e/2]},HY=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},FY=function(e){return typeof e=="string"&&e.includes("%")},di=function(e,t){HY(e)&&(e="100%");const o=FY(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},I4={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hd=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),o=e%16;return`${I4[t]||t}${I4[o]||o}`},O4=function({r:e,g:t,b:o}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${hd(e)}${hd(t)}${hd(o)}`},yh={A:10,B:11,C:12,D:13,E:14,F:15},fa=function(e){return e.length===2?(yh[e[0].toUpperCase()]||+e[0])*16+(yh[e[1].toUpperCase()]||+e[1]):yh[e[1].toUpperCase()]||+e[1]},DY=function(e,t,o){t=t/100,o=o/100;let r=t;const l=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,r*=l<=1?l:2-l;const n=(o+t)/2,a=o===0?2*r/(l+r):2*t/(o+t);return{h:e,s:a*100,v:n*100}},P4=(e,t,o)=>{e=di(e,255),t=di(t,255),o=di(o,255);const r=Math.max(e,t,o),l=Math.min(e,t,o);let n;const a=r,i=r-l,c=r===0?0:i/r;if(r===l)n=0;else{switch(r){case e:{n=(t-o)/i+(t{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,l)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:l,s:n,v:a}=DY(r[0],r[1],r[2]);o(l,n,a)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&o(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:l,s:n,v:a}=P4(r[0],r[1],r[2]);o(l,n,a)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let l,n,a;r.length===3?(l=fa(r[0]+r[0]),n=fa(r[1]+r[1]),a=fa(r[2]+r[2])):(r.length===6||r.length===8)&&(l=fa(r.slice(0,2)),n=fa(r.slice(2,4)),a=fa(r.slice(4,6))),r.length===8?this._alpha=fa(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:i,s:c,v:u}=P4(l,n,a);o(i,c,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:r,_alpha:l,format:n}=this;if(this.enableAlpha)switch(n){case"hsl":{const a=A4(t,o/100,r/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(o)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${O4(Ws(t,o,r))}${hd(l*255/100)}`;break}default:{const{r:a,g:i,b:c}=Ws(t,o,r);this.value=`rgba(${a}, ${i}, ${c}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const a=A4(t,o/100,r/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(o)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:i,b:c}=Ws(t,o,r);this.value=`rgb(${a}, ${i}, ${c})`;break}default:this.value=O4(Ws(t,o,r))}}}const jY=B({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Oe("color-predefine"),{currentColor:o}=Le(M4),r=V(n(e.colors,e.color));Te(()=>o.value,a=>{const i=new Us;i.fromString(a),r.value.forEach(c=>{c.selected=i.compare(c)})}),lr(()=>{r.value=n(e.colors,e.color)});function l(a){e.color.fromString(e.colors[a])}function n(a,i){return a.map(c=>{const u=new Us;return u.enableAlpha=!0,u.format="rgba",u.fromString(c),u.selected=u.value===i.value,u})}return{rgbaColors:r,handleSelect:l,ns:t}}}),KY=["onClick"];function WY(e,t,o,r,l,n){return b(),z("div",{class:P(e.ns.b())},[E("div",{class:P(e.ns.e("colors"))},[(b(!0),z(Ge,null,Tt(e.rgbaColors,(a,i)=>(b(),z("div",{key:e.colors[i],class:P([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:c=>e.handleSelect(i)},[E("div",{style:Qe({backgroundColor:a.value})},null,4)],10,KY))),128))],2)],2)}var UY=Fe(jY,[["render",WY],["__file","predefine.vue"]]);const qY=B({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Oe("color-svpanel"),o=_t(),r=V(0),l=V(0),n=V("hsl(0, 100%, 50%)"),a=$(()=>{const u=e.color.get("hue"),p=e.color.get("value");return{hue:u,value:p}});function i(){const u=e.color.get("saturation"),p=e.color.get("value"),d=o.vnode.el,{clientWidth:f,clientHeight:v}=d;l.value=u*f/100,r.value=(100-p)*v/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(u){const d=o.vnode.el.getBoundingClientRect(),{clientX:f,clientY:v}=$f(u);let m=f-d.left,h=v-d.top;m=Math.max(0,m),m=Math.min(m,d.width),h=Math.max(0,h),h=Math.min(h,d.height),l.value=m,r.value=h,e.color.set({saturation:m/d.width*100,value:100-h/d.height*100})}return Te(()=>a.value,()=>{i()}),vt(()=>{Ks(o.vnode.el,{drag:u=>{c(u)},end:u=>{c(u)}}),i()}),{cursorTop:r,cursorLeft:l,background:n,colorValue:a,handleDrag:c,update:i,ns:t}}}),YY=[E("div",null,null,-1)];function GY(e,t,o,r,l,n){return b(),z("div",{class:P(e.ns.b()),style:Qe({backgroundColor:e.background})},[E("div",{class:P(e.ns.e("white"))},null,2),E("div",{class:P(e.ns.e("black"))},null,2),E("div",{class:P(e.ns.e("cursor")),style:Qe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},YY,6)],6)}var XY=Fe(qY,[["render",GY],["__file","sv-panel.vue"]]);const ZY=["onKeydown"],JY=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],QY=B({...B({name:"ElColorPicker"}),props:RY,emits:VY,setup(e,{expose:t,emit:o}){const r=e,{t:l}=Nt(),n=Oe("color"),{formItem:a}=Qo(),i=Eo(),c=pr(),{inputId:u,isLabeledByFormItem:p}=Cn(r,{formItemContext:a}),d=V(),f=V(),v=V(),m=V(),h=V(),_=V(),{isFocused:g,handleFocus:y,handleBlur:w}=A_(h,{beforeBlur(ye){var Me;return(Me=m.value)==null?void 0:Me.isFocusInsideContent(ye)},afterBlur(){J(!1),W()}}),x=ye=>{if(c.value)return Be();y(ye)};let M=!0;const T=Ft(new Us({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),O=V(!1),I=V(!1),F=V(""),K=$(()=>!r.modelValue&&!I.value?"transparent":Q(T,r.showAlpha)),R=$(()=>!r.modelValue&&!I.value?"":T.value),D=$(()=>p.value?void 0:r.label||l("el.colorpicker.defaultLabel")),j=$(()=>p.value?a==null?void 0:a.labelId:void 0),Z=$(()=>[n.b("picker"),n.is("disabled",c.value),n.bm("picker",i.value),n.is("focused",g.value)]);function Q(ye,Me){if(!(ye instanceof Us))throw new TypeError("color should be instance of _color Class");const{r:te,g:ce,b:we}=ye.toRgb();return Me?`rgba(${te}, ${ce}, ${we}, ${ye.get("alpha")/100})`:`rgb(${te}, ${ce}, ${we})`}function J(ye){O.value=ye}const L=Zo(J,100,{leading:!0});function X(){c.value||J(!0)}function N(){L(!1),W()}function W(){et(()=>{r.modelValue?T.fromString(r.modelValue):(T.value="",et(()=>{I.value=!1}))})}function re(){c.value||L(!O.value)}function ie(){T.fromString(F.value)}function se(){const ye=T.value;o(kt,ye),o("change",ye),r.validateEvent&&(a==null||a.validate("change").catch(Me=>void 0)),L(!1),et(()=>{const Me=new Us({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});T.compare(Me)||W()})}function ve(){L(!1),o(kt,null),o("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(ye=>void 0)),W()}function le(ye){if(O.value&&(N(),g.value)){const Me=new FocusEvent("focus",ye);w(Me)}}function ge(ye){ye.preventDefault(),ye.stopPropagation(),J(!1),W()}function _e(ye){switch(ye.code){case tt.enter:case tt.space:ye.preventDefault(),ye.stopPropagation(),X(),_.value.focus();break;case tt.esc:ge(ye);break}}function me(){h.value.focus()}function Be(){h.value.blur()}return vt(()=>{r.modelValue&&(F.value=R.value)}),Te(()=>r.modelValue,ye=>{ye?ye&&ye!==T.value&&(M=!1,T.fromString(ye)):I.value=!1}),Te(()=>R.value,ye=>{F.value=ye,M&&o("activeChange",ye),M=!0}),Te(()=>T.value,()=>{!r.modelValue&&!I.value&&(I.value=!0)}),Te(()=>O.value,()=>{et(()=>{var ye,Me,te;(ye=d.value)==null||ye.update(),(Me=f.value)==null||Me.update(),(te=v.value)==null||te.update()})}),zt(M4,{currentColor:R}),t({color:T,show:X,hide:N,focus:me,blur:Be}),(ye,Me)=>(b(),de(s(er),{ref_key:"popper",ref:m,visible:O.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[s(n).be("picker","panel"),s(n).b("dropdown"),ye.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${s(n).namespace.value}-zoom-in-top`,persistent:"",onHide:Me[2]||(Me[2]=te=>J(!1))},{content:ne(()=>[ht((b(),z("div",{onKeydown:Rt(ge,["esc"])},[E("div",{class:P(s(n).be("dropdown","main-wrapper"))},[oe(LY,{ref_key:"hue",ref:d,class:"hue-slider",color:s(T),vertical:""},null,8,["color"]),oe(XY,{ref_key:"sv",ref:f,color:s(T)},null,8,["color"])],2),ye.showAlpha?(b(),de(PY,{key:0,ref_key:"alpha",ref:v,color:s(T)},null,8,["color"])):ue("v-if",!0),ye.predefine?(b(),de(UY,{key:1,ref:"predefine",color:s(T),colors:ye.predefine},null,8,["color","colors"])):ue("v-if",!0),E("div",{class:P(s(n).be("dropdown","btns"))},[E("span",{class:P(s(n).be("dropdown","value"))},[oe(s(Wo),{ref_key:"inputRef",ref:_,modelValue:F.value,"onUpdate:modelValue":Me[0]||(Me[0]=te=>F.value=te),"validate-event":!1,size:"small",onKeyup:Rt(ie,["enter"]),onBlur:ie},null,8,["modelValue","onKeyup"])],2),oe(s(Vo),{class:P(s(n).be("dropdown","link-btn")),text:"",size:"small",onClick:ve},{default:ne(()=>[$t(ze(s(l)("el.colorpicker.clear")),1)]),_:1},8,["class"]),oe(s(Vo),{plain:"",size:"small",class:P(s(n).be("dropdown","btn")),onClick:se},{default:ne(()=>[$t(ze(s(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,ZY)),[[s(Ul),le]])]),default:ne(()=>[E("div",{id:s(u),ref_key:"triggerRef",ref:h,class:P(s(Z)),role:"button","aria-label":s(D),"aria-labelledby":s(j),"aria-description":s(l)("el.colorpicker.description",{color:ye.modelValue||""}),"aria-disabled":s(c),tabindex:s(c)?-1:ye.tabindex,onKeydown:_e,onFocus:x,onBlur:Me[1]||(Me[1]=(...te)=>s(w)&&s(w)(...te))},[s(c)?(b(),z("div",{key:0,class:P(s(n).be("picker","mask"))},null,2)):ue("v-if",!0),E("div",{class:P(s(n).be("picker","trigger")),onClick:re},[E("span",{class:P([s(n).be("picker","color"),s(n).is("alpha",ye.showAlpha)])},[E("span",{class:P(s(n).be("picker","color-inner")),style:Qe({backgroundColor:s(K)})},[ht(oe(s(Je),{class:P([s(n).be("picker","icon"),s(n).is("icon-arrow-down")])},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"]),[[Pt,ye.modelValue||I.value]]),ht(oe(s(Je),{class:P([s(n).be("picker","empty"),s(n).is("icon-close")])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class"]),[[Pt,!ye.modelValue&&!I.value]])],6)],2)],2)],42,JY)]),_:1},8,["visible","popper-class","transition"]))}});var eG=Fe(QY,[["__file","color-picker.vue"]]);const tG=xt(eG),oG=B({...B({name:"ElContainer"}),props:{direction:{type:String}},setup(e){const t=e,o=Bo(),r=Oe("container"),l=$(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:o&&o.default?o.default().some(a=>{const i=a.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(n,a)=>(b(),z("section",{class:P([s(r).b(),s(r).is("vertical",s(l))])},[be(n.$slots,"default")],2))}});var rG=Fe(oG,[["__file","container.vue"]]);const lG=B({...B({name:"ElAside"}),props:{width:{type:String,default:null}},setup(e){const t=e,o=Oe("aside"),r=$(()=>t.width?o.cssVarBlock({width:t.width}):{});return(l,n)=>(b(),z("aside",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var B4=Fe(lG,[["__file","aside.vue"]]);const nG=B({...B({name:"ElFooter"}),props:{height:{type:String,default:null}},setup(e){const t=e,o=Oe("footer"),r=$(()=>t.height?o.cssVarBlock({height:t.height}):{});return(l,n)=>(b(),z("footer",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var N4=Fe(nG,[["__file","footer.vue"]]);const aG=B({...B({name:"ElHeader"}),props:{height:{type:String,default:null}},setup(e){const t=e,o=Oe("header"),r=$(()=>t.height?o.cssVarBlock({height:t.height}):{});return(l,n)=>(b(),z("header",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var L4=Fe(aG,[["__file","header.vue"]]);const iG=B({...B({name:"ElMain"}),setup(e){const t=Oe("main");return(o,r)=>(b(),z("main",{class:P(s(t).b())},[be(o.$slots,"default")],2))}});var R4=Fe(iG,[["__file","main.vue"]]);const sG=xt(rG,{Aside:B4,Footer:N4,Header:L4,Main:R4}),cG=fo(B4),uG=fo(N4),dG=fo(L4),pG=fo(R4);var V4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){var l=r.prototype,n=l.format;l.format=function(a){var i=this,c=this.$locale();if(!this.isValid())return n.bind(this)(a);var u=this.$utils(),p=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}});return n.bind(this)(p)}}})})(V4);var fG=V4.exports;const hG=Er(fG);var H4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){var o="week",r="year";return function(l,n,a){var i=n.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=a(this).startOf(r).add(1,r).date(u),d=a(this).endOf(o);if(p.isBefore(d))return 1}var f=a(this).startOf(r).date(u).startOf(o).subtract(1,"millisecond"),v=this.diff(f,o,!0);return v<0?a(this).startOf("week").week():Math.ceil(v)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(H4);var vG=H4.exports;const mG=Er(vG);var F4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.weekYear=function(){var l=this.month(),n=this.week(),a=this.year();return n===1&&l===11?a+1:l===0&&n>=52?a-1:a}}})})(F4);var gG=F4.exports;const bG=Er(gG);var D4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r,l){r.prototype.dayOfYear=function(n){var a=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return n==null?a:this.add(n-a,"day")}}})})(D4);var _G=D4.exports;const wG=Er(_G);var j4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.isSameOrAfter=function(l,n){return this.isSame(l,n)||this.isAfter(l,n)}}})})(j4);var yG=j4.exports;const xG=Er(yG);var K4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.isSameOrBefore=function(l,n){return this.isSame(l,n)||this.isBefore(l,n)}}})})(K4);var kG=K4.exports;const CG=Er(kG),xh=Symbol(),SG=He({...lh,type:{type:pe(String),default:"date"}}),EG=["date","dates","year","month","week","range"],kh=He({disabledDate:{type:pe(Function)},date:{type:pe(Object),required:!0},minDate:{type:pe(Object)},maxDate:{type:pe(Object)},parsedValue:{type:pe([Object,Array])},rangeState:{type:pe(Object),default:()=>({endDate:null,selecting:!1})}}),W4=He({type:{type:pe(String),required:!0,values:CH},dateFormat:String,timeFormat:String}),U4=He({unlinkPanels:Boolean,parsedValue:{type:pe(Array)}}),q4=e=>({type:String,values:EG,default:e}),$G=He({...W4,parsedValue:{type:pe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),TG=He({...kh,cellClassName:{type:pe(Function)},showWeekNumber:Boolean,selectionMode:q4("date")}),zG=["changerange","pick","select"],Ch=e=>{if(!Ye(e))return!1;const[t,o]=e;return wt.isDayjs(t)&&wt.isDayjs(o)&&t.isSameOrBefore(o)},Y4=(e,{lang:t,unit:o,unlinkPanels:r})=>{let l;if(Ye(e)){let[n,a]=e.map(i=>wt(i).locale(t));return r||(a=n.add(1,o)),[n,a]}else e?l=wt(e):l=wt();return l=l.locale(t),[l,l.add(1,o)]},MG=(e,t,{columnIndexOffset:o,startDate:r,nextEndDate:l,now:n,unit:a,relativeDateGetter:i,setCellMetadata:c,setRowMetadata:u})=>{for(let p=0;p["normal","today"].includes(e),AG=(e,t)=>{const{lang:o}=Nt(),r=V(),l=V(),n=V(),a=V(),i=V([[],[],[],[],[],[]]);let c=!1;const u=e.date.$locale().weekStart||7,p=e.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),d=$(()=>u>3?7-u:-u),f=$(()=>{const N=e.date.startOf("month");return N.subtract(N.day()||7,"day")}),v=$(()=>p.concat(p).slice(u,u+7)),m=$(()=>pb(s(x)).some(N=>N.isCurrent)),h=$(()=>{const N=e.date.startOf("month"),W=N.day()||7,re=N.daysInMonth(),ie=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:W,dateCountOfMonth:re,dateCountOfLastMonth:ie}}),_=$(()=>e.selectionMode==="dates"?Vl(e.parsedValue):[]),g=(N,{count:W,rowIndex:re,columnIndex:ie})=>{const{startOfMonthDay:se,dateCountOfMonth:ve,dateCountOfLastMonth:le}=s(h),ge=s(d);if(re>=0&&re<=1){const _e=se+ge<0?7+se+ge:se+ge;if(ie+re*7>=_e)return N.text=W,!0;N.text=le-(_e-ie%7)+1+re*7,N.type="prev-month"}else return W<=ve?N.text=W:(N.text=W-ve,N.type="next-month"),!0;return!1},y=(N,{columnIndex:W,rowIndex:re},ie)=>{const{disabledDate:se,cellClassName:ve}=e,le=s(_),ge=g(N,{count:ie,rowIndex:re,columnIndex:W}),_e=N.dayjs.toDate();return N.selected=le.find(me=>me.valueOf()===N.dayjs.valueOf()),N.isSelected=!!N.selected,N.isCurrent=T(N),N.disabled=se==null?void 0:se(_e),N.customClass=ve==null?void 0:ve(_e),ge},w=N=>{if(e.selectionMode==="week"){const[W,re]=e.showWeekNumber?[1,7]:[0,6],ie=X(N[W+1]);N[W].inRange=ie,N[W].start=ie,N[re].inRange=ie,N[re].end=ie}},x=$(()=>{const{minDate:N,maxDate:W,rangeState:re,showWeekNumber:ie}=e,se=s(d),ve=s(i),le="day";let ge=1;if(ie)for(let _e=0;_e<6;_e++)ve[_e][0]||(ve[_e][0]={type:"week",text:s(f).add(_e*7+1,le).week()});return MG({row:6,column:7},ve,{startDate:N,columnIndexOffset:ie?1:0,nextEndDate:re.endDate||W||re.selecting&&N||null,now:wt().locale(s(o)).startOf(le),unit:le,relativeDateGetter:_e=>s(f).add(_e-se,le),setCellMetadata:(..._e)=>{y(..._e,ge)&&(ge+=1)},setRowMetadata:w}),ve});Te(()=>e.date,async()=>{var N;(N=s(r))!=null&&N.contains(document.activeElement)&&(await et(),await M())});const M=async()=>{var N;return(N=s(l))==null?void 0:N.focus()},T=N=>e.selectionMode==="date"&&Sh(N.type)&&O(N,e.parsedValue),O=(N,W)=>W?wt(W).locale(s(o)).isSame(e.date.date(Number(N.text)),"day"):!1,I=(N,W)=>{const re=N*7+(W-(e.showWeekNumber?1:0))-s(d);return s(f).add(re,"day")},F=N=>{var W;if(!e.rangeState.selecting)return;let re=N.target;if(re.tagName==="SPAN"&&(re=(W=re.parentNode)==null?void 0:W.parentNode),re.tagName==="DIV"&&(re=re.parentNode),re.tagName!=="TD")return;const ie=re.parentNode.rowIndex-1,se=re.cellIndex;s(x)[ie][se].disabled||(ie!==s(n)||se!==s(a))&&(n.value=ie,a.value=se,t("changerange",{selecting:!0,endDate:I(ie,se)}))},K=N=>!s(m)&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,R=N=>{c||s(m)||e.selectionMode!=="date"||L(N,!0)},D=N=>{N.target.closest("td")&&(c=!0)},j=N=>{N.target.closest("td")&&(c=!1)},Z=N=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:N,maxDate:null}),t("select",!0)):(N>=e.minDate?t("pick",{minDate:e.minDate,maxDate:N}):t("pick",{minDate:N,maxDate:e.minDate}),t("select",!1))},Q=N=>{const W=N.week(),re=`${N.year()}w${W}`;t("pick",{year:N.year(),week:W,value:re,date:N.startOf("week")})},J=(N,W)=>{const re=W?Vl(e.parsedValue).filter(ie=>(ie==null?void 0:ie.valueOf())!==N.valueOf()):Vl(e.parsedValue).concat([N]);t("pick",re)},L=(N,W=!1)=>{const re=N.target.closest("td");if(!re)return;const ie=re.parentNode.rowIndex-1,se=re.cellIndex,ve=s(x)[ie][se];if(ve.disabled||ve.type==="week")return;const le=I(ie,se);switch(e.selectionMode){case"range":{Z(le);break}case"date":{t("pick",le,W);break}case"week":{Q(le);break}case"dates":{J(le,!!ve.selected);break}}},X=N=>{if(e.selectionMode!=="week")return!1;let W=e.date.startOf("day");if(N.type==="prev-month"&&(W=W.subtract(1,"month")),N.type==="next-month"&&(W=W.add(1,"month")),W=W.date(Number.parseInt(N.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const re=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(re,"day").isSame(W,"day")}return!1};return{WEEKS:v,rows:x,tbodyRef:r,currentCellRef:l,focus:M,isCurrent:T,isWeekActive:X,isSelectedCell:K,handlePickDate:L,handleMouseUp:j,handleMouseDown:D,handleMouseMove:F,handleFocus:R}},IG=(e,{isCurrent:t,isWeekActive:o})=>{const r=Oe("date-table"),{t:l}=Nt(),n=$(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),a=$(()=>l("el.datepicker.dateTablePrompt")),i=$(()=>l("el.datepicker.week"));return{tableKls:n,tableLabel:a,weekLabel:i,getCellClasses:p=>{const d=[];return Sh(p.type)&&!p.disabled?(d.push("available"),p.type==="today"&&d.push("today")):d.push(p.type),t(p)&&d.push("current"),p.inRange&&(Sh(p.type)||e.selectionMode==="week")&&(d.push("in-range"),p.start&&d.push("start-date"),p.end&&d.push("end-date")),p.disabled&&d.push("disabled"),p.selected&&d.push("selected"),p.customClass&&d.push(p.customClass),d.join(" ")},getRowKls:p=>[r.e("row"),{current:o(p)}],t:l}},OG=He({cell:{type:pe(Object)}});var PG=B({name:"ElDatePickerCell",props:OG,setup(e){const t=Oe("date-table-cell"),{slots:o}=Le(xh);return()=>{const{cell:r}=e;return be(o,"default",{...r},()=>[oe("div",{class:t.b()},[oe("span",{class:t.e("text")},[r==null?void 0:r.text])])])}}});const BG=["aria-label"],NG={key:0,scope:"col"},LG=["aria-label"],RG=["aria-current","aria-selected","tabindex"];var Eh=Fe(B({__name:"basic-date-table",props:TG,emits:zG,setup(e,{expose:t,emit:o}){const r=e,{WEEKS:l,rows:n,tbodyRef:a,currentCellRef:i,focus:c,isCurrent:u,isWeekActive:p,isSelectedCell:d,handlePickDate:f,handleMouseUp:v,handleMouseDown:m,handleMouseMove:h,handleFocus:_}=AG(r,o),{tableLabel:g,tableKls:y,weekLabel:w,getCellClasses:x,getRowKls:M,t:T}=IG(r,{isCurrent:u,isWeekActive:p});return t({focus:c}),(O,I)=>(b(),z("table",{"aria-label":s(g),class:P(s(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:I[1]||(I[1]=(...F)=>s(f)&&s(f)(...F)),onMousemove:I[2]||(I[2]=(...F)=>s(h)&&s(h)(...F)),onMousedown:I[3]||(I[3]=it((...F)=>s(m)&&s(m)(...F),["prevent"])),onMouseup:I[4]||(I[4]=(...F)=>s(v)&&s(v)(...F))},[E("tbody",{ref_key:"tbodyRef",ref:a},[E("tr",null,[O.showWeekNumber?(b(),z("th",NG,ze(s(w)),1)):ue("v-if",!0),(b(!0),z(Ge,null,Tt(s(l),(F,K)=>(b(),z("th",{key:K,"aria-label":s(T)("el.datepicker.weeksFull."+F),scope:"col"},ze(s(T)("el.datepicker.weeks."+F)),9,LG))),128))]),(b(!0),z(Ge,null,Tt(s(n),(F,K)=>(b(),z("tr",{key:K,class:P(s(M)(F[1]))},[(b(!0),z(Ge,null,Tt(F,(R,D)=>(b(),z("td",{key:`${K}.${D}`,ref_for:!0,ref:j=>s(d)(R)&&(i.value=j),class:P(s(x)(R)),"aria-current":R.isCurrent?"date":void 0,"aria-selected":R.isCurrent,tabindex:s(d)(R)?0:-1,onFocus:I[0]||(I[0]=(...j)=>s(_)&&s(_)(...j))},[oe(s(PG),{cell:R},null,8,["cell"])],42,RG))),128))],2))),128))],512)],42,BG))}}),[["__file","basic-date-table.vue"]]);const VG=He({...kh,selectionMode:q4("month")}),HG=["aria-label"],FG=["aria-selected","aria-label","tabindex","onKeydown"],DG={class:"cell"};var $h=Fe(B({__name:"basic-month-table",props:VG,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const r=e,l=(x,M,T)=>{const O=wt().locale(T).startOf("month").month(M).year(x),I=O.daysInMonth();return Tn(I).map(F=>O.add(F,"day").toDate())},n=Oe("month-table"),{t:a,lang:i}=Nt(),c=V(),u=V(),p=V(r.date.locale("en").localeData().monthsShort().map(x=>x.toLowerCase())),d=V([[],[],[]]),f=V(),v=V(),m=$(()=>{var x,M;const T=d.value,O=wt().locale(i.value).startOf("month");for(let I=0;I<3;I++){const F=T[I];for(let K=0;K<4;K++){const R=F[K]||(F[K]={row:I,column:K,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});R.type="normal";const D=I*4+K,j=r.date.startOf("year").month(D),Z=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;R.inRange=!!(r.minDate&&j.isSameOrAfter(r.minDate,"month")&&Z&&j.isSameOrBefore(Z,"month"))||!!(r.minDate&&j.isSameOrBefore(r.minDate,"month")&&Z&&j.isSameOrAfter(Z,"month")),(x=r.minDate)!=null&&x.isSameOrAfter(Z)?(R.start=!!(Z&&j.isSame(Z,"month")),R.end=r.minDate&&j.isSame(r.minDate,"month")):(R.start=!!(r.minDate&&j.isSame(r.minDate,"month")),R.end=!!(Z&&j.isSame(Z,"month"))),O.isSame(j)&&(R.type="today"),R.text=D,R.disabled=((M=r.disabledDate)==null?void 0:M.call(r,j.toDate()))||!1}}return T}),h=()=>{var x;(x=u.value)==null||x.focus()},_=x=>{const M={},T=r.date.year(),O=new Date,I=x.text;return M.disabled=r.disabledDate?l(T,I,i.value).every(r.disabledDate):!1,M.current=Vl(r.parsedValue).findIndex(F=>wt.isDayjs(F)&&F.year()===T&&F.month()===I)>=0,M.today=O.getFullYear()===T&&O.getMonth()===I,x.inRange&&(M["in-range"]=!0,x.start&&(M["start-date"]=!0),x.end&&(M["end-date"]=!0)),M},g=x=>{const M=r.date.year(),T=x.text;return Vl(r.date).findIndex(O=>O.year()===M&&O.month()===T)>=0},y=x=>{var M;if(!r.rangeState.selecting)return;let T=x.target;if(T.tagName==="SPAN"&&(T=(M=T.parentNode)==null?void 0:M.parentNode),T.tagName==="DIV"&&(T=T.parentNode),T.tagName!=="TD")return;const O=T.parentNode.rowIndex,I=T.cellIndex;m.value[O][I].disabled||(O!==f.value||I!==v.value)&&(f.value=O,v.value=I,o("changerange",{selecting:!0,endDate:r.date.startOf("year").month(O*4+I)}))},w=x=>{var M;const T=(M=x.target)==null?void 0:M.closest("td");if((T==null?void 0:T.tagName)!=="TD"||Dr(T,"disabled"))return;const O=T.cellIndex,F=T.parentNode.rowIndex*4+O,K=r.date.startOf("year").month(F);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&K>=r.minDate?o("pick",{minDate:r.minDate,maxDate:K}):o("pick",{minDate:K,maxDate:r.minDate}),o("select",!1)):(o("pick",{minDate:K,maxDate:null}),o("select",!0)):o("pick",F)};return Te(()=>r.date,async()=>{var x,M;(x=c.value)!=null&&x.contains(document.activeElement)&&(await et(),(M=u.value)==null||M.focus())}),t({focus:h}),(x,M)=>(b(),z("table",{role:"grid","aria-label":s(a)("el.datepicker.monthTablePrompt"),class:P(s(n).b()),onClick:w,onMousemove:y},[E("tbody",{ref_key:"tbodyRef",ref:c},[(b(!0),z(Ge,null,Tt(s(m),(T,O)=>(b(),z("tr",{key:O},[(b(!0),z(Ge,null,Tt(T,(I,F)=>(b(),z("td",{key:F,ref_for:!0,ref:K=>g(I)&&(u.value=K),class:P(_(I)),"aria-selected":`${g(I)}`,"aria-label":s(a)(`el.datepicker.month${+I.text+1}`),tabindex:g(I)?0:-1,onKeydown:[Rt(it(w,["prevent","stop"]),["space"]),Rt(it(w,["prevent","stop"]),["enter"])]},[E("div",null,[E("span",DG,ze(s(a)("el.datepicker.months."+p.value[I.text])),1)])],42,FG))),128))]))),128))],512)],42,HG))}}),[["__file","basic-month-table.vue"]]);const{date:jG,disabledDate:KG,parsedValue:WG}=kh,UG=He({date:jG,disabledDate:KG,parsedValue:WG}),qG=["aria-label"],YG=["aria-selected","tabindex","onKeydown"],GG={class:"cell"},XG={key:1};var ZG=Fe(B({__name:"basic-year-table",props:UG,emits:["pick"],setup(e,{expose:t,emit:o}){const r=e,l=(h,_)=>{const g=wt(String(h)).locale(_).startOf("year"),w=g.endOf("year").dayOfYear();return Tn(w).map(x=>g.add(x,"day").toDate())},n=Oe("year-table"),{t:a,lang:i}=Nt(),c=V(),u=V(),p=$(()=>Math.floor(r.date.year()/10)*10),d=()=>{var h;(h=u.value)==null||h.focus()},f=h=>{const _={},g=wt().locale(i.value);return _.disabled=r.disabledDate?l(h,i.value).every(r.disabledDate):!1,_.current=Vl(r.parsedValue).findIndex(y=>y.year()===h)>=0,_.today=g.year()===h,_},v=h=>h===p.value&&r.date.year()p.value+9||Vl(r.date).findIndex(_=>_.year()===h)>=0,m=h=>{const g=h.target.closest("td");if(g&&g.textContent){if(Dr(g,"disabled"))return;const y=g.textContent||g.innerText;o("pick",Number(y))}};return Te(()=>r.date,async()=>{var h,_;(h=c.value)!=null&&h.contains(document.activeElement)&&(await et(),(_=u.value)==null||_.focus())}),t({focus:d}),(h,_)=>(b(),z("table",{role:"grid","aria-label":s(a)("el.datepicker.yearTablePrompt"),class:P(s(n).b()),onClick:m},[E("tbody",{ref_key:"tbodyRef",ref:c},[(b(),z(Ge,null,Tt(3,(g,y)=>E("tr",{key:y},[(b(),z(Ge,null,Tt(4,(w,x)=>(b(),z(Ge,{key:y+"_"+x},[y*4+x<10?(b(),z("td",{key:0,ref_for:!0,ref:M=>v(s(p)+y*4+x)&&(u.value=M),class:P(["available",f(s(p)+y*4+x)]),"aria-selected":`${v(s(p)+y*4+x)}`,tabindex:v(s(p)+y*4+x)?0:-1,onKeydown:[Rt(it(m,["prevent","stop"]),["space"]),Rt(it(m,["prevent","stop"]),["enter"])]},[E("span",GG,ze(s(p)+y*4+x),1)],42,YG)):(b(),z("td",XG))],64))),64))])),64))],512)],10,qG))}}),[["__file","basic-year-table.vue"]]);const JG=["onClick"],QG=["aria-label"],eX=["aria-label"],tX=["aria-label"],oX=["aria-label"];var rX=Fe(B({__name:"panel-date-pick",props:$G,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const o=e,r=(C,S,H)=>!0,l=Oe("picker-panel"),n=Oe("date-picker"),a=Hn(),i=Bo(),{t:c,lang:u}=Nt(),p=Le("EP_PICKER_BASE"),d=Le(ed),{shortcuts:f,disabledDate:v,cellClassName:m,defaultTime:h}=p.props,_=so(p.props,"defaultValue"),g=V(),y=V(wt().locale(u.value)),w=V(!1);let x=!1;const M=$(()=>wt(h).locale(u.value)),T=$(()=>y.value.month()),O=$(()=>y.value.year()),I=V([]),F=V(null),K=V(null),R=C=>I.value.length>0?r(C,I.value,o.format||"HH:mm:ss"):!0,D=C=>h&&!we.value&&!w.value&&!x?M.value.year(C.year()).month(C.month()).date(C.date()):ge.value?C.millisecond(0):C.startOf("day"),j=(C,...S)=>{if(!C)t("pick",C,...S);else if(Ye(C)){const H=C.map(D);t("pick",H,...S)}else t("pick",D(C),...S);F.value=null,K.value=null,w.value=!1,x=!1},Z=(C,S)=>{if(W.value==="date"){C=C;let H=o.parsedValue?o.parsedValue.year(C.year()).month(C.month()).date(C.date()):C;R(H)||(H=I.value[0][0].year(C.year()).month(C.month()).date(C.date())),y.value=H,j(H,ge.value||S),o.type==="datetime"&&nt()}else W.value==="week"?j(C.date):W.value==="dates"&&j(C,!0)},Q=C=>{const S=C?"add":"subtract";y.value=y.value[S](1,"month"),Y("month")},J=C=>{const S=y.value,H=C?"add":"subtract";y.value=L.value==="year"?S[H](10,"year"):S[H](1,"year"),Y("year")},L=V("date"),X=$(()=>{const C=c("el.datepicker.year");if(L.value==="year"){const S=Math.floor(O.value/10)*10;return C?`${S} ${C} - ${S+9} ${C}`:`${S} - ${S+9}`}return`${O.value} ${C}`}),N=C=>{const S=ut(C.value)?C.value():C.value;if(S){x=!0,j(wt(S).locale(u.value));return}C.onClick&&C.onClick({attrs:a,slots:i,emit:t})},W=$(()=>{const{type:C}=o;return["week","month","year","dates"].includes(C)?C:"date"}),re=$(()=>W.value==="date"?L.value:W.value),ie=$(()=>!!f.length),se=async C=>{y.value=y.value.startOf("month").month(C),W.value==="month"?j(y.value,!1):(L.value="date",["month","year","date","week"].includes(W.value)&&(j(y.value,!0),await et(),nt())),Y("month")},ve=async C=>{W.value==="year"?(y.value=y.value.startOf("year").year(C),j(y.value,!1)):(y.value=y.value.year(C),L.value="month",["month","year","date","week"].includes(W.value)&&(j(y.value,!0),await et(),nt())),Y("year")},le=async C=>{L.value=C,await et(),nt()},ge=$(()=>o.type==="datetime"||o.type==="datetimerange"),_e=$(()=>ge.value||W.value==="dates"),me=$(()=>v?o.parsedValue?Ye(o.parsedValue)?v(o.parsedValue[0].toDate()):v(o.parsedValue.toDate()):!0:!1),Be=()=>{if(W.value==="dates")j(o.parsedValue);else{let C=o.parsedValue;if(!C){const S=wt(h).locale(u.value),H=We();C=S.year(H.year()).month(H.month()).date(H.date())}y.value=C,j(C)}},ye=$(()=>v?v(wt().locale(u.value).toDate()):!1),Me=()=>{const S=wt().locale(u.value).toDate();w.value=!0,(!v||!v(S))&&R(S)&&(y.value=wt().locale(u.value),j(y.value))},te=$(()=>o.timeFormat||A6(o.format)),ce=$(()=>o.dateFormat||M6(o.format)),we=$(()=>{if(K.value)return K.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||y.value).format(te.value)}),Ae=$(()=>{if(F.value)return F.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||y.value).format(ce.value)}),Ie=V(!1),xe=()=>{Ie.value=!0},Ne=()=>{Ie.value=!1},Se=C=>({hour:C.hour(),minute:C.minute(),second:C.second(),year:C.year(),month:C.month(),date:C.date()}),ke=(C,S,H)=>{const{hour:ee,minute:U,second:he}=Se(C),Ue=o.parsedValue?o.parsedValue.hour(ee).minute(U).second(he):C;y.value=Ue,j(y.value,!0),H||(Ie.value=S)},$e=C=>{const S=wt(C,te.value).locale(u.value);if(S.isValid()&&R(S)){const{year:H,month:ee,date:U}=Se(y.value);y.value=S.year(H).month(ee).date(U),K.value=null,Ie.value=!1,j(y.value,!0)}},Pe=C=>{const S=wt(C,ce.value).locale(u.value);if(S.isValid()){if(v&&v(S.toDate()))return;const{hour:H,minute:ee,second:U}=Se(y.value);y.value=S.hour(H).minute(ee).second(U),F.value=null,j(y.value,!0)}},qe=C=>wt.isDayjs(C)&&C.isValid()&&(v?!v(C.toDate()):!0),Ke=C=>W.value==="dates"?C.map(S=>S.format(o.format)):C.format(o.format),Ee=C=>wt(C,o.format).locale(u.value),We=()=>{const C=wt(_.value).locale(u.value);if(!_.value){const S=M.value;return wt().hour(S.hour()).minute(S.minute()).second(S.second()).locale(u.value)}return C},nt=async()=>{var C;["week","month","year","date"].includes(W.value)&&((C=g.value)==null||C.focus(),W.value==="week"&>(tt.down))},dt=C=>{const{code:S}=C;[tt.up,tt.down,tt.left,tt.right,tt.home,tt.end,tt.pageUp,tt.pageDown].includes(S)&&(gt(S),C.stopPropagation(),C.preventDefault()),[tt.enter,tt.space,tt.numpadEnter].includes(S)&&F.value===null&&K.value===null&&(C.preventDefault(),j(y.value,!1))},gt=C=>{var S;const{up:H,down:ee,left:U,right:he,home:Ue,end:st,pageUp:At,pageDown:Mt}=tt,Lt={year:{[H]:-4,[ee]:4,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setFullYear(Ce.getFullYear()+De)},month:{[H]:-4,[ee]:4,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setMonth(Ce.getMonth()+De)},week:{[H]:-1,[ee]:1,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setDate(Ce.getDate()+De*7)},date:{[H]:-7,[ee]:7,[U]:-1,[he]:1,[Ue]:Ce=>-Ce.getDay(),[st]:Ce=>-Ce.getDay()+6,[At]:Ce=>-new Date(Ce.getFullYear(),Ce.getMonth(),0).getDate(),[Mt]:Ce=>new Date(Ce.getFullYear(),Ce.getMonth()+1,0).getDate(),offset:(Ce,De)=>Ce.setDate(Ce.getDate()+De)}},lo=y.value.toDate();for(;Math.abs(y.value.diff(lo,"year",!0))<1;){const Ce=Lt[re.value];if(!Ce)return;if(Ce.offset(lo,ut(Ce[C])?Ce[C](lo):(S=Ce[C])!=null?S:0),v&&v(lo))break;const De=wt(lo).locale(u.value);y.value=De,t("pick",De,!0);break}},Y=C=>{t("panel-change",y.value.toDate(),C,L.value)};return Te(()=>W.value,C=>{if(["month","year"].includes(C)){L.value=C;return}L.value="date"},{immediate:!0}),Te(()=>L.value,()=>{d==null||d.updatePopper()}),Te(()=>_.value,C=>{C&&(y.value=We())},{immediate:!0}),Te(()=>o.parsedValue,C=>{if(C){if(W.value==="dates"||Array.isArray(C))return;y.value=C}else y.value=We()},{immediate:!0}),t("set-picker-option",["isValidValue",qe]),t("set-picker-option",["formatToString",Ke]),t("set-picker-option",["parseUserInput",Ee]),t("set-picker-option",["handleFocusPicker",nt]),(C,S)=>(b(),z("div",{class:P([s(l).b(),s(n).b(),{"has-sidebar":C.$slots.sidebar||s(ie),"has-time":s(ge)}])},[E("div",{class:P(s(l).e("body-wrapper"))},[be(C.$slots,"sidebar",{class:P(s(l).e("sidebar"))}),s(ie)?(b(),z("div",{key:0,class:P(s(l).e("sidebar"))},[(b(!0),z(Ge,null,Tt(s(f),(H,ee)=>(b(),z("button",{key:ee,type:"button",class:P(s(l).e("shortcut")),onClick:U=>N(H)},ze(H.text),11,JG))),128))],2)):ue("v-if",!0),E("div",{class:P(s(l).e("body"))},[s(ge)?(b(),z("div",{key:0,class:P(s(n).e("time-header"))},[E("span",{class:P(s(n).e("editor-wrap"))},[oe(s(Wo),{placeholder:s(c)("el.datepicker.selectDate"),"model-value":s(Ae),size:"small","validate-event":!1,onInput:S[0]||(S[0]=H=>F.value=H),onChange:Pe},null,8,["placeholder","model-value"])],2),ht((b(),z("span",{class:P(s(n).e("editor-wrap"))},[oe(s(Wo),{placeholder:s(c)("el.datepicker.selectTime"),"model-value":s(we),size:"small","validate-event":!1,onFocus:xe,onInput:S[1]||(S[1]=H=>K.value=H),onChange:$e},null,8,["placeholder","model-value"]),oe(s(sd),{visible:Ie.value,format:s(te),"parsed-value":y.value,onPick:ke},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),Ne]])],2)):ue("v-if",!0),ht(E("div",{class:P([s(n).e("header"),(L.value==="year"||L.value==="month")&&s(n).e("header--bordered")])},[E("span",{class:P(s(n).e("prev-btn"))},[E("button",{type:"button","aria-label":s(c)("el.datepicker.prevYear"),class:P(["d-arrow-left",s(l).e("icon-btn")]),onClick:S[2]||(S[2]=H=>J(!1))},[oe(s(Je),null,{default:ne(()=>[oe(s(ta))]),_:1})],10,QG),ht(E("button",{type:"button","aria-label":s(c)("el.datepicker.prevMonth"),class:P([s(l).e("icon-btn"),"arrow-left"]),onClick:S[3]||(S[3]=H=>Q(!1))},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,eX),[[Pt,L.value==="date"]])],2),E("span",{role:"button",class:P(s(n).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:S[4]||(S[4]=Rt(H=>le("year"),["enter"])),onClick:S[5]||(S[5]=H=>le("year"))},ze(s(X)),35),ht(E("span",{role:"button","aria-live":"polite",tabindex:"0",class:P([s(n).e("header-label"),{active:L.value==="month"}]),onKeydown:S[6]||(S[6]=Rt(H=>le("month"),["enter"])),onClick:S[7]||(S[7]=H=>le("month"))},ze(s(c)(`el.datepicker.month${s(T)+1}`)),35),[[Pt,L.value==="date"]]),E("span",{class:P(s(n).e("next-btn"))},[ht(E("button",{type:"button","aria-label":s(c)("el.datepicker.nextMonth"),class:P([s(l).e("icon-btn"),"arrow-right"]),onClick:S[8]||(S[8]=H=>Q(!0))},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,tX),[[Pt,L.value==="date"]]),E("button",{type:"button","aria-label":s(c)("el.datepicker.nextYear"),class:P([s(l).e("icon-btn"),"d-arrow-right"]),onClick:S[9]||(S[9]=H=>J(!0))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,oX)],2)],2),[[Pt,L.value!=="time"]]),E("div",{class:P(s(l).e("content")),onKeydown:dt},[L.value==="date"?(b(),de(Eh,{key:0,ref_key:"currentViewRef",ref:g,"selection-mode":s(W),date:y.value,"parsed-value":C.parsedValue,"disabled-date":s(v),"cell-class-name":s(m),onPick:Z},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ue("v-if",!0),L.value==="year"?(b(),de(ZG,{key:1,ref_key:"currentViewRef",ref:g,date:y.value,"disabled-date":s(v),"parsed-value":C.parsedValue,onPick:ve},null,8,["date","disabled-date","parsed-value"])):ue("v-if",!0),L.value==="month"?(b(),de($h,{key:2,ref_key:"currentViewRef",ref:g,date:y.value,"parsed-value":C.parsedValue,"disabled-date":s(v),onPick:se},null,8,["date","parsed-value","disabled-date"])):ue("v-if",!0)],34)],2)],2),ht(E("div",{class:P(s(l).e("footer"))},[ht(oe(s(Vo),{text:"",size:"small",class:P(s(l).e("link-btn")),disabled:s(ye),onClick:Me},{default:ne(()=>[$t(ze(s(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Pt,s(W)!=="dates"]]),oe(s(Vo),{plain:"",size:"small",class:P(s(l).e("link-btn")),disabled:s(me),onClick:Be},{default:ne(()=>[$t(ze(s(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Pt,s(_e)&&L.value==="date"]])],2))}}),[["__file","panel-date-pick.vue"]]);const lX=He({...W4,...U4}),nX=e=>{const{emit:t}=_t(),o=Hn(),r=Bo();return n=>{const a=ut(n.value)?n.value():n.value;if(a){t("pick",[wt(a[0]).locale(e.value),wt(a[1]).locale(e.value)]);return}n.onClick&&n.onClick({attrs:o,slots:r,emit:t})}},G4=(e,{defaultValue:t,leftDate:o,rightDate:r,unit:l,onParsedValueChanged:n})=>{const{emit:a}=_t(),{pickerNs:i}=Le(xh),c=Oe("date-range-picker"),{t:u,lang:p}=Nt(),d=nX(p),f=V(),v=V(),m=V({endDate:null,selecting:!1}),h=w=>{m.value=w},_=(w=!1)=>{const x=s(f),M=s(v);Ch([x,M])&&a("pick",[x,M],w)},g=w=>{m.value.selecting=w,w||(m.value.endDate=null)},y=()=>{const[w,x]=Y4(s(t),{lang:s(p),unit:l,unlinkPanels:e.unlinkPanels});f.value=void 0,v.value=void 0,o.value=w,r.value=x};return Te(t,w=>{w&&y()},{immediate:!0}),Te(()=>e.parsedValue,w=>{if(Ye(w)&&w.length===2){const[x,M]=w;f.value=x,o.value=x,v.value=M,n(s(f),s(v))}else y()},{immediate:!0}),{minDate:f,maxDate:v,rangeState:m,lang:p,ppNs:i,drpNs:c,handleChangeRange:h,handleRangeConfirm:_,handleShortcutClick:d,onSelect:g,t:u}},aX=["onClick"],iX=["aria-label"],sX=["aria-label"],cX=["disabled","aria-label"],uX=["disabled","aria-label"],dX=["disabled","aria-label"],pX=["disabled","aria-label"],fX=["aria-label"],hX=["aria-label"],vd="month";var vX=Fe(B({__name:"panel-date-range",props:lX,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const o=e,r=Le("EP_PICKER_BASE"),{disabledDate:l,cellClassName:n,format:a,defaultTime:i,clearable:c}=r.props,u=so(r.props,"shortcuts"),p=so(r.props,"defaultValue"),{lang:d}=Nt(),f=V(wt().locale(d.value)),v=V(wt().locale(d.value).add(1,vd)),{minDate:m,maxDate:h,rangeState:_,ppNs:g,drpNs:y,handleChangeRange:w,handleRangeConfirm:x,handleShortcutClick:M,onSelect:T,t:O}=G4(o,{defaultValue:p,leftDate:f,rightDate:v,unit:vd,onParsedValueChanged:S}),I=V({min:null,max:null}),F=V({min:null,max:null}),K=$(()=>`${f.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${f.value.month()+1}`)}`),R=$(()=>`${v.value.year()} ${O("el.datepicker.year")} ${O(`el.datepicker.month${v.value.month()+1}`)}`),D=$(()=>f.value.year()),j=$(()=>f.value.month()),Z=$(()=>v.value.year()),Q=$(()=>v.value.month()),J=$(()=>!!u.value.length),L=$(()=>I.value.min!==null?I.value.min:m.value?m.value.format(ie.value):""),X=$(()=>I.value.max!==null?I.value.max:h.value||m.value?(h.value||m.value).format(ie.value):""),N=$(()=>F.value.min!==null?F.value.min:m.value?m.value.format(re.value):""),W=$(()=>F.value.max!==null?F.value.max:h.value||m.value?(h.value||m.value).format(re.value):""),re=$(()=>o.timeFormat||A6(a)),ie=$(()=>o.dateFormat||M6(a)),se=H=>Ch(H)&&(l?!l(H[0].toDate())&&!l(H[1].toDate()):!0),ve=()=>{f.value=f.value.subtract(1,"year"),o.unlinkPanels||(v.value=f.value.add(1,"month")),te("year")},le=()=>{f.value=f.value.subtract(1,"month"),o.unlinkPanels||(v.value=f.value.add(1,"month")),te("month")},ge=()=>{o.unlinkPanels?v.value=v.value.add(1,"year"):(f.value=f.value.add(1,"year"),v.value=f.value.add(1,"month")),te("year")},_e=()=>{o.unlinkPanels?v.value=v.value.add(1,"month"):(f.value=f.value.add(1,"month"),v.value=f.value.add(1,"month")),te("month")},me=()=>{f.value=f.value.add(1,"year"),te("year")},Be=()=>{f.value=f.value.add(1,"month"),te("month")},ye=()=>{v.value=v.value.subtract(1,"year"),te("year")},Me=()=>{v.value=v.value.subtract(1,"month"),te("month")},te=H=>{t("panel-change",[f.value.toDate(),v.value.toDate()],H)},ce=$(()=>{const H=(j.value+1)%12,ee=j.value+1>=12?1:0;return o.unlinkPanels&&new Date(D.value+ee,H)o.unlinkPanels&&Z.value*12+Q.value-(D.value*12+j.value+1)>=12),Ae=$(()=>!(m.value&&h.value&&!_.value.selecting&&Ch([m.value,h.value]))),Ie=$(()=>o.type==="datetime"||o.type==="datetimerange"),xe=(H,ee)=>{if(H)return i?wt(i[ee]||i).locale(d.value).year(H.year()).month(H.month()).date(H.date()):H},Ne=(H,ee=!0)=>{const U=H.minDate,he=H.maxDate,Ue=xe(U,0),st=xe(he,1);h.value===st&&m.value===Ue||(t("calendar-change",[U.toDate(),he&&he.toDate()]),h.value=st,m.value=Ue,!(!ee||Ie.value)&&x())},Se=V(!1),ke=V(!1),$e=()=>{Se.value=!1},Pe=()=>{ke.value=!1},qe=(H,ee)=>{I.value[ee]=H;const U=wt(H,ie.value).locale(d.value);if(U.isValid()){if(l&&l(U.toDate()))return;ee==="min"?(f.value=U,m.value=(m.value||f.value).year(U.year()).month(U.month()).date(U.date()),!o.unlinkPanels&&(!h.value||h.value.isBefore(m.value))&&(v.value=U.add(1,"month"),h.value=m.value.add(1,"month"))):(v.value=U,h.value=(h.value||v.value).year(U.year()).month(U.month()).date(U.date()),!o.unlinkPanels&&(!m.value||m.value.isAfter(h.value))&&(f.value=U.subtract(1,"month"),m.value=h.value.subtract(1,"month")))}},Ke=(H,ee)=>{I.value[ee]=null},Ee=(H,ee)=>{F.value[ee]=H;const U=wt(H,re.value).locale(d.value);U.isValid()&&(ee==="min"?(Se.value=!0,m.value=(m.value||f.value).hour(U.hour()).minute(U.minute()).second(U.second()),(!h.value||h.value.isBefore(m.value))&&(h.value=m.value)):(ke.value=!0,h.value=(h.value||v.value).hour(U.hour()).minute(U.minute()).second(U.second()),v.value=h.value,h.value&&h.value.isBefore(m.value)&&(m.value=h.value)))},We=(H,ee)=>{F.value[ee]=null,ee==="min"?(f.value=m.value,Se.value=!1):(v.value=h.value,ke.value=!1)},nt=(H,ee,U)=>{F.value.min||(H&&(f.value=H,m.value=(m.value||f.value).hour(H.hour()).minute(H.minute()).second(H.second())),U||(Se.value=ee),(!h.value||h.value.isBefore(m.value))&&(h.value=m.value,v.value=H))},dt=(H,ee,U)=>{F.value.max||(H&&(v.value=H,h.value=(h.value||v.value).hour(H.hour()).minute(H.minute()).second(H.second())),U||(ke.value=ee),h.value&&h.value.isBefore(m.value)&&(m.value=h.value))},gt=()=>{f.value=Y4(s(p),{lang:s(d),unit:"month",unlinkPanels:o.unlinkPanels})[0],v.value=f.value.add(1,"month"),t("pick",null)},Y=H=>Ye(H)?H.map(ee=>ee.format(a)):H.format(a),C=H=>Ye(H)?H.map(ee=>wt(ee,a).locale(d.value)):wt(H,a).locale(d.value);function S(H,ee){if(o.unlinkPanels&&ee){const U=(H==null?void 0:H.year())||0,he=(H==null?void 0:H.month())||0,Ue=ee.year(),st=ee.month();v.value=U===Ue&&he===st?ee.add(1,vd):ee}else v.value=f.value.add(1,vd),ee&&(v.value=v.value.hour(ee.hour()).minute(ee.minute()).second(ee.second()))}return t("set-picker-option",["isValidValue",se]),t("set-picker-option",["parseUserInput",C]),t("set-picker-option",["formatToString",Y]),t("set-picker-option",["handleClear",gt]),(H,ee)=>(b(),z("div",{class:P([s(g).b(),s(y).b(),{"has-sidebar":H.$slots.sidebar||s(J),"has-time":s(Ie)}])},[E("div",{class:P(s(g).e("body-wrapper"))},[be(H.$slots,"sidebar",{class:P(s(g).e("sidebar"))}),s(J)?(b(),z("div",{key:0,class:P(s(g).e("sidebar"))},[(b(!0),z(Ge,null,Tt(s(u),(U,he)=>(b(),z("button",{key:he,type:"button",class:P(s(g).e("shortcut")),onClick:Ue=>s(M)(U)},ze(U.text),11,aX))),128))],2)):ue("v-if",!0),E("div",{class:P(s(g).e("body"))},[s(Ie)?(b(),z("div",{key:0,class:P(s(y).e("time-header"))},[E("span",{class:P(s(y).e("editors-wrap"))},[E("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",disabled:s(_).selecting,placeholder:s(O)("el.datepicker.startDate"),class:P(s(y).e("editor")),"model-value":s(L),"validate-event":!1,onInput:ee[0]||(ee[0]=U=>qe(U,"min")),onChange:ee[1]||(ee[1]=U=>Ke(U,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),ht((b(),z("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(O)("el.datepicker.startTime"),"model-value":s(N),"validate-event":!1,onFocus:ee[2]||(ee[2]=U=>Se.value=!0),onInput:ee[3]||(ee[3]=U=>Ee(U,"min")),onChange:ee[4]||(ee[4]=U=>We(U,"min"))},null,8,["class","disabled","placeholder","model-value"]),oe(s(sd),{visible:Se.value,format:s(re),"datetime-role":"start","parsed-value":f.value,onPick:nt},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),$e]])],2),E("span",null,[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})]),E("span",{class:P([s(y).e("editors-wrap"),"is-right"])},[E("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(O)("el.datepicker.endDate"),"model-value":s(X),readonly:!s(m),"validate-event":!1,onInput:ee[5]||(ee[5]=U=>qe(U,"max")),onChange:ee[6]||(ee[6]=U=>Ke(U,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ht((b(),z("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(O)("el.datepicker.endTime"),"model-value":s(W),readonly:!s(m),"validate-event":!1,onFocus:ee[7]||(ee[7]=U=>s(m)&&(ke.value=!0)),onInput:ee[8]||(ee[8]=U=>Ee(U,"max")),onChange:ee[9]||(ee[9]=U=>We(U,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),oe(s(sd),{"datetime-role":"end",visible:ke.value,format:s(re),"parsed-value":v.value,onPick:dt},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),Pe]])],2)],2)):ue("v-if",!0),E("div",{class:P([[s(g).e("content"),s(y).e("content")],"is-left"])},[E("div",{class:P(s(y).e("header"))},[E("button",{type:"button",class:P([s(g).e("icon-btn"),"d-arrow-left"]),"aria-label":s(O)("el.datepicker.prevYear"),onClick:ve},[oe(s(Je),null,{default:ne(()=>[oe(s(ta))]),_:1})],10,iX),E("button",{type:"button",class:P([s(g).e("icon-btn"),"arrow-left"]),"aria-label":s(O)("el.datepicker.prevMonth"),onClick:le},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,sX),H.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(we),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(we)}],"d-arrow-right"]),"aria-label":s(O)("el.datepicker.nextYear"),onClick:me},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,cX)):ue("v-if",!0),H.unlinkPanels?(b(),z("button",{key:1,type:"button",disabled:!s(ce),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(ce)}],"arrow-right"]),"aria-label":s(O)("el.datepicker.nextMonth"),onClick:Be},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,uX)):ue("v-if",!0),E("div",null,ze(s(K)),1)],2),oe(Eh,{"selection-mode":"range",date:f.value,"min-date":s(m),"max-date":s(h),"range-state":s(_),"disabled-date":s(l),"cell-class-name":s(n),onChangerange:s(w),onPick:Ne,onSelect:s(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:P([[s(g).e("content"),s(y).e("content")],"is-right"])},[E("div",{class:P(s(y).e("header"))},[H.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(we),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(we)}],"d-arrow-left"]),"aria-label":s(O)("el.datepicker.prevYear"),onClick:ye},[oe(s(Je),null,{default:ne(()=>[oe(s(ta))]),_:1})],10,dX)):ue("v-if",!0),H.unlinkPanels?(b(),z("button",{key:1,type:"button",disabled:!s(ce),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(ce)}],"arrow-left"]),"aria-label":s(O)("el.datepicker.prevMonth"),onClick:Me},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,pX)):ue("v-if",!0),E("button",{type:"button","aria-label":s(O)("el.datepicker.nextYear"),class:P([s(g).e("icon-btn"),"d-arrow-right"]),onClick:ge},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,fX),E("button",{type:"button",class:P([s(g).e("icon-btn"),"arrow-right"]),"aria-label":s(O)("el.datepicker.nextMonth"),onClick:_e},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,hX),E("div",null,ze(s(R)),1)],2),oe(Eh,{"selection-mode":"range",date:v.value,"min-date":s(m),"max-date":s(h),"range-state":s(_),"disabled-date":s(l),"cell-class-name":s(n),onChangerange:s(w),onPick:Ne,onSelect:s(T)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),s(Ie)?(b(),z("div",{key:0,class:P(s(g).e("footer"))},[s(c)?(b(),de(s(Vo),{key:0,text:"",size:"small",class:P(s(g).e("link-btn")),onClick:gt},{default:ne(()=>[$t(ze(s(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):ue("v-if",!0),oe(s(Vo),{plain:"",size:"small",class:P(s(g).e("link-btn")),disabled:s(Ae),onClick:ee[10]||(ee[10]=U=>s(x)(!1))},{default:ne(()=>[$t(ze(s(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ue("v-if",!0)],2))}}),[["__file","panel-date-range.vue"]]);const mX=He({...U4}),gX=["pick","set-picker-option","calendar-change"],bX=({unlinkPanels:e,leftDate:t,rightDate:o})=>{const{t:r}=Nt(),l=()=>{t.value=t.value.subtract(1,"year"),e.value||(o.value=o.value.subtract(1,"year"))},n=()=>{e.value||(t.value=t.value.add(1,"year")),o.value=o.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},i=()=>{o.value=o.value.subtract(1,"year")},c=$(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=$(()=>`${o.value.year()} ${r("el.datepicker.year")}`),p=$(()=>t.value.year()),d=$(()=>o.value.year()===t.value.year()?t.value.year()+1:o.value.year());return{leftPrevYear:l,rightNextYear:n,leftNextYear:a,rightPrevYear:i,leftLabel:c,rightLabel:u,leftYear:p,rightYear:d}},_X=["onClick"],wX=["disabled"],yX=["disabled"],md="year",xX=B({...B({name:"DatePickerMonthRange"}),props:mX,emits:gX,setup(e,{emit:t}){const o=e,{lang:r}=Nt(),l=Le("EP_PICKER_BASE"),{shortcuts:n,disabledDate:a,format:i}=l.props,c=so(l.props,"defaultValue"),u=V(wt().locale(r.value)),p=V(wt().locale(r.value).add(1,md)),{minDate:d,maxDate:f,rangeState:v,ppNs:m,drpNs:h,handleChangeRange:_,handleRangeConfirm:g,handleShortcutClick:y,onSelect:w}=G4(o,{defaultValue:c,leftDate:u,rightDate:p,unit:md,onParsedValueChanged:J}),x=$(()=>!!n.length),{leftPrevYear:M,rightNextYear:T,leftNextYear:O,rightPrevYear:I,leftLabel:F,rightLabel:K,leftYear:R,rightYear:D}=bX({unlinkPanels:so(o,"unlinkPanels"),leftDate:u,rightDate:p}),j=$(()=>o.unlinkPanels&&D.value>R.value+1),Z=(L,X=!0)=>{const N=L.minDate,W=L.maxDate;f.value===W&&d.value===N||(t("calendar-change",[N.toDate(),W&&W.toDate()]),f.value=W,d.value=N,X&&g())},Q=L=>L.map(X=>X.format(i));function J(L,X){if(o.unlinkPanels&&X){const N=(L==null?void 0:L.year())||0,W=X.year();p.value=N===W?X.add(1,md):X}else p.value=u.value.add(1,md)}return t("set-picker-option",["formatToString",Q]),(L,X)=>(b(),z("div",{class:P([s(m).b(),s(h).b(),{"has-sidebar":!!L.$slots.sidebar||s(x)}])},[E("div",{class:P(s(m).e("body-wrapper"))},[be(L.$slots,"sidebar",{class:P(s(m).e("sidebar"))}),s(x)?(b(),z("div",{key:0,class:P(s(m).e("sidebar"))},[(b(!0),z(Ge,null,Tt(s(n),(N,W)=>(b(),z("button",{key:W,type:"button",class:P(s(m).e("shortcut")),onClick:re=>s(y)(N)},ze(N.text),11,_X))),128))],2)):ue("v-if",!0),E("div",{class:P(s(m).e("body"))},[E("div",{class:P([[s(m).e("content"),s(h).e("content")],"is-left"])},[E("div",{class:P(s(h).e("header"))},[E("button",{type:"button",class:P([s(m).e("icon-btn"),"d-arrow-left"]),onClick:X[0]||(X[0]=(...N)=>s(M)&&s(M)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(ta))]),_:1})],2),L.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(j),class:P([[s(m).e("icon-btn"),{[s(m).is("disabled")]:!s(j)}],"d-arrow-right"]),onClick:X[1]||(X[1]=(...N)=>s(O)&&s(O)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,wX)):ue("v-if",!0),E("div",null,ze(s(F)),1)],2),oe($h,{"selection-mode":"range",date:u.value,"min-date":s(d),"max-date":s(f),"range-state":s(v),"disabled-date":s(a),onChangerange:s(_),onPick:Z,onSelect:s(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),E("div",{class:P([[s(m).e("content"),s(h).e("content")],"is-right"])},[E("div",{class:P(s(h).e("header"))},[L.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(j),class:P([[s(m).e("icon-btn"),{"is-disabled":!s(j)}],"d-arrow-left"]),onClick:X[2]||(X[2]=(...N)=>s(I)&&s(I)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(ta))]),_:1})],10,yX)):ue("v-if",!0),E("button",{type:"button",class:P([s(m).e("icon-btn"),"d-arrow-right"]),onClick:X[3]||(X[3]=(...N)=>s(T)&&s(T)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],2),E("div",null,ze(s(K)),1)],2),oe($h,{"selection-mode":"range",date:p.value,"min-date":s(d),"max-date":s(f),"range-state":s(v),"disabled-date":s(a),onChangerange:s(_),onPick:Z,onSelect:s(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var kX=Fe(xX,[["__file","panel-month-range.vue"]]);const CX=function(e){switch(e){case"daterange":case"datetimerange":return vX;case"monthrange":return kX;default:return rX}};wt.extend(l4),wt.extend(hG),wt.extend(eh),wt.extend(mG),wt.extend(bG),wt.extend(wG),wt.extend(xG),wt.extend(CG);var SX=B({name:"ElDatePicker",install:null,props:SG,emits:["update:modelValue"],setup(e,{expose:t,emit:o,slots:r}){const l=Oe("picker-panel");zt("ElPopperOptions",Ft(so(e,"popperOptions"))),zt(xh,{slots:r,pickerNs:l});const n=V();t({focus:(c=!0)=>{var u;(u=n.value)==null||u.focus(c)},handleOpen:()=>{var c;(c=n.value)==null||c.handleOpen()},handleClose:()=>{var c;(c=n.value)==null||c.handleClose()}});const i=c=>{o("update:modelValue",c)};return()=>{var c;const u=(c=e.format)!=null?c:GW[e.type]||ci,p=CX(e.type);return oe(R6,Et(e,{format:u,type:e.type,ref:n,"onUpdate:modelValue":i}),{default:d=>oe(p,d,null),"range-separator":r["range-separator"]})}}});const gd=SX;gd.install=e=>{e.component(gd.name,gd)};const EX=gd,Th=Symbol("elDescriptions");var qs=B({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Le(Th,{})}},render(){var e,t,o,r,l,n,a;const i=zH(this.cell),c=(((e=this.cell)==null?void 0:e.dirs)||[]).map(M=>{const{dir:T,arg:O,modifiers:I,value:F}=M;return[T,F,O,I]}),{border:u,direction:p}=this.descriptions,d=p==="vertical",f=((r=(o=(t=this.cell)==null?void 0:t.children)==null?void 0:o.label)==null?void 0:r.call(o))||i.label,v=(a=(n=(l=this.cell)==null?void 0:l.children)==null?void 0:n.default)==null?void 0:a.call(n),m=i.span,h=i.align?`is-${i.align}`:"",_=i.labelAlign?`is-${i.labelAlign}`:h,g=i.className,y=i.labelClassName,w={width:bo(i.width),minWidth:bo(i.minWidth)},x=Oe("descriptions");switch(this.type){case"label":return ht(rt(this.tag,{style:w,class:[x.e("cell"),x.e("label"),x.is("bordered-label",u),x.is("vertical-label",d),_,y],colSpan:d?m:1},f),c);case"content":return ht(rt(this.tag,{style:w,class:[x.e("cell"),x.e("content"),x.is("bordered-content",u),x.is("vertical-content",d),h,g],colSpan:d?m:m*2-1},v),c);default:return ht(rt("td",{style:w,class:[x.e("cell"),h],colSpan:m},[wo(f)?void 0:rt("span",{class:[x.e("label"),y]},f),rt("span",{class:[x.e("content"),g]},v)]),c)}}});const $X=He({row:{type:pe(Array),default:()=>[]}}),TX={key:1},zX=B({...B({name:"ElDescriptionsRow"}),props:$X,setup(e){const t=Le(Th,{});return(o,r)=>s(t).direction==="vertical"?(b(),z(Ge,{key:0},[E("tr",null,[(b(!0),z(Ge,null,Tt(o.row,(l,n)=>(b(),de(s(qs),{key:`tr1-${n}`,cell:l,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(b(!0),z(Ge,null,Tt(o.row,(l,n)=>(b(),de(s(qs),{key:`tr2-${n}`,cell:l,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(b(),z("tr",TX,[(b(!0),z(Ge,null,Tt(o.row,(l,n)=>(b(),z(Ge,{key:`tr3-${n}`},[s(t).border?(b(),z(Ge,{key:0},[oe(s(qs),{cell:l,tag:"td",type:"label"},null,8,["cell"]),oe(s(qs),{cell:l,tag:"td",type:"content"},null,8,["cell"])],64)):(b(),de(s(qs),{key:1,cell:l,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var MX=Fe(zX,[["__file","descriptions-row.vue"]]);const AX=He({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:No,title:{type:String,default:""},extra:{type:String,default:""}}),IX=B({...B({name:"ElDescriptions"}),props:AX,setup(e){const t=e,o=Oe("descriptions"),r=Eo(),l=Bo();zt(Th,t);const n=$(()=>[o.b(),o.m(r.value)]),a=(c,u,p,d=!1)=>(c.props||(c.props={}),u>p&&(c.props.span=p),d&&(c.props.span=u),c),i=()=>{if(!l.default)return[];const c=ra(l.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)==="ElDescriptionsItem"}),u=[];let p=[],d=t.column,f=0;return c.forEach((v,m)=>{var h;const _=((h=v.props)==null?void 0:h.span)||1;if(md?d:_),m===c.length-1){const g=t.column-f%t.column;p.push(a(v,g,d,!0)),u.push(p);return}_(b(),z("div",{class:P(s(n))},[c.title||c.extra||c.$slots.title||c.$slots.extra?(b(),z("div",{key:0,class:P(s(o).e("header"))},[E("div",{class:P(s(o).e("title"))},[be(c.$slots,"title",{},()=>[$t(ze(c.title),1)])],2),E("div",{class:P(s(o).e("extra"))},[be(c.$slots,"extra",{},()=>[$t(ze(c.extra),1)])],2)],2)):ue("v-if",!0),E("div",{class:P(s(o).e("body"))},[E("table",{class:P([s(o).e("table"),s(o).is("bordered",c.border)])},[E("tbody",null,[(b(!0),z(Ge,null,Tt(i(),(p,d)=>(b(),de(MX,{key:d,row:p},null,8,["row"]))),128))])],2)],2)],2))}});var OX=Fe(IX,[["__file","description.vue"]]);const PX=He({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),X4=B({name:"ElDescriptionsItem",props:PX}),BX=xt(OX,{DescriptionsItem:X4}),NX=fo(X4),LX=He({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:pe([String,Array,Object])},zIndex:{type:pe([String,Number])}}),RX={click:e=>e instanceof MouseEvent},VX="overlay";var HX=B({name:"ElOverlay",props:LX,emits:RX,setup(e,{slots:t,emit:o}){const r=Oe(VX),l=c=>{o("click",c)},{onClick:n,onMousedown:a,onMouseup:i}=C0(e.customMaskEvent?void 0:l);return()=>e.mask?oe("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:n,onMousedown:a,onMouseup:i},[be(t,"default")],Ar.STYLE|Ar.CLASS|Ar.PROPS,["onClick","onMouseup","onMousedown"]):rt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[be(t,"default")])}});const zh=HX,Z4=Symbol("dialogInjectionKey"),J4=He({center:Boolean,alignCenter:Boolean,closeIcon:{type:Ut},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),FX={close:()=>!0},DX=["aria-level"],jX=["aria-label"],KX=["id"],WX=B({...B({name:"ElDialogContent"}),props:J4,emits:FX,setup(e){const t=e,{t:o}=Nt(),{Close:r}=E3,{dialogRef:l,headerRef:n,bodyId:a,ns:i,style:c}=Le(Z4),{focusTrapRef:u}=Le(W0),p=$(()=>[i.b(),i.is("fullscreen",t.fullscreen),i.is("draggable",t.draggable),i.is("align-center",t.alignCenter),{[i.m("center")]:t.center},t.customClass]),d=Au(u,l),f=$(()=>t.draggable);return M3(l,n,f),(v,m)=>(b(),z("div",{ref:s(d),class:P(s(p)),style:Qe(s(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:n,class:P(s(i).e("header"))},[be(v.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":v.ariaLevel,class:P(s(i).e("title"))},ze(v.title),11,DX)]),v.showClose?(b(),z("button",{key:0,"aria-label":s(o)("el.dialog.close"),class:P(s(i).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=h=>v.$emit("close"))},[oe(s(Je),{class:P(s(i).e("close"))},{default:ne(()=>[(b(),de(St(v.closeIcon||s(r))))]),_:1},8,["class"])],10,jX)):ue("v-if",!0)],2),E("div",{id:s(a),class:P(s(i).e("body"))},[be(v.$slots,"default")],10,KX),v.$slots.footer?(b(),z("footer",{key:0,class:P(s(i).e("footer"))},[be(v.$slots,"footer")],2)):ue("v-if",!0)],6))}});var UX=Fe(WX,[["__file","dialog-content.vue"]]);const Q4=He({...J4,appendToBody:Boolean,appendTo:{type:pe(String),default:"body"},beforeClose:{type:pe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),ew={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[kt]:e=>Co(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},tw=(e,t)=>{var o;const l=_t().emit,{nextZIndex:n}=ti();let a="";const i=dr(),c=dr(),u=V(!1),p=V(!1),d=V(!1),f=V((o=e.zIndex)!=null?o:n());let v,m;const h=ju("namespace",$s),_=$(()=>{const Q={},J=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(Q[`${J}-margin-top`]=e.top),e.width&&(Q[`${J}-width`]=bo(e.width))),Q}),g=$(()=>e.alignCenter?{display:"flex"}:{});function y(){l("opened")}function w(){l("closed"),l(kt,!1),e.destroyOnClose&&(d.value=!1)}function x(){l("close")}function M(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=Un(()=>F(),e.openDelay):F()}function T(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Un(()=>K(),e.closeDelay):K()}function O(){function Q(J){J||(p.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(Q):T()}function I(){e.closeOnClickModal&&O()}function F(){Bt&&(u.value=!0)}function K(){u.value=!1}function R(){l("openAutoFocus")}function D(){l("closeAutoFocus")}function j(Q){var J;((J=Q.detail)==null?void 0:J.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&O3(u);function Z(){e.closeOnPressEscape&&O()}return Te(()=>e.modelValue,Q=>{Q?(p.value=!1,M(),d.value=!0,f.value=Zb(e.zIndex)?n():f.value++,et(()=>{l("open"),t.value&&(t.value.scrollTop=0)})):u.value&&T()}),Te(()=>e.fullscreen,Q=>{t.value&&(Q?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),vt(()=>{e.modelValue&&(u.value=!0,d.value=!0,M())}),{afterEnter:y,afterLeave:w,beforeLeave:x,handleClose:O,onModalClick:I,close:T,doClose:K,onOpenAutoFocus:R,onCloseAutoFocus:D,onCloseRequested:Z,onFocusoutPrevented:j,titleId:i,bodyId:c,closed:p,style:_,overlayDialogStyle:g,rendered:d,visible:u,zIndex:f}},qX=["aria-label","aria-labelledby","aria-describedby"],YX=B({...B({name:"ElDialog",inheritAttrs:!1}),props:Q4,emits:ew,setup(e,{expose:t}){const o=e,r=Bo();sl({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$(()=>!!r.title)),sl({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},$(()=>!!o.customClass));const l=Oe("dialog"),n=V(),a=V(),i=V(),{visible:c,titleId:u,bodyId:p,style:d,overlayDialogStyle:f,rendered:v,zIndex:m,afterEnter:h,afterLeave:_,beforeLeave:g,handleClose:y,onModalClick:w,onOpenAutoFocus:x,onCloseAutoFocus:M,onCloseRequested:T,onFocusoutPrevented:O}=tw(o,n);zt(Z4,{dialogRef:n,headerRef:a,bodyId:p,ns:l,rendered:v,style:d});const I=C0(w),F=$(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:i}),(K,R)=>(b(),de(Xi,{to:K.appendTo,disabled:K.appendTo!=="body"?!1:!K.appendToBody},[oe(_o,{name:"dialog-fade",onAfterEnter:s(h),onAfterLeave:s(_),onBeforeLeave:s(g),persisted:""},{default:ne(()=>[ht(oe(s(zh),{"custom-mask-event":"",mask:K.modal,"overlay-class":K.modalClass,"z-index":s(m)},{default:ne(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":K.title||void 0,"aria-labelledby":K.title?void 0:s(u),"aria-describedby":s(p),class:P(`${s(l).namespace.value}-overlay-dialog`),style:Qe(s(f)),onClick:R[0]||(R[0]=(...D)=>s(I).onClick&&s(I).onClick(...D)),onMousedown:R[1]||(R[1]=(...D)=>s(I).onMousedown&&s(I).onMousedown(...D)),onMouseup:R[2]||(R[2]=(...D)=>s(I).onMouseup&&s(I).onMouseup(...D))},[oe(s(Qu),{loop:"",trapped:s(c),"focus-start-el":"container",onFocusAfterTrapped:s(x),onFocusAfterReleased:s(M),onFocusoutPrevented:s(O),onReleaseRequested:s(T)},{default:ne(()=>[s(v)?(b(),de(UX,Et({key:0,ref_key:"dialogContentRef",ref:i},K.$attrs,{"custom-class":K.customClass,center:K.center,"align-center":K.alignCenter,"close-icon":K.closeIcon,draggable:s(F),fullscreen:K.fullscreen,"show-close":K.showClose,title:K.title,"aria-level":K.headerAriaLevel,onClose:s(y)}),Jr({header:ne(()=>[K.$slots.title?be(K.$slots,"title",{key:1}):be(K.$slots,"header",{key:0,close:s(y),titleId:s(u),titleClass:s(l).e("title")})]),default:ne(()=>[be(K.$slots,"default")]),_:2},[K.$slots.footer?{name:"footer",fn:ne(()=>[be(K.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):ue("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,qX)]),_:3},8,["mask","overlay-class","z-index"]),[[Pt,s(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var GX=Fe(YX,[["__file","dialog.vue"]]);const XX=xt(GX),ZX=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:pe(String),default:"solid"}}),JX=B({...B({name:"ElDivider"}),props:ZX,setup(e){const t=e,o=Oe("divider"),r=$(()=>o.cssVar({"border-style":t.borderStyle}));return(l,n)=>(b(),z("div",{class:P([s(o).b(),s(o).m(l.direction)]),style:Qe(s(r)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(b(),z("div",{key:0,class:P([s(o).e("text"),s(o).is(l.contentPosition)])},[be(l.$slots,"default")],2)):ue("v-if",!0)],6))}});var QX=Fe(JX,[["__file","divider.vue"]]);const ow=xt(QX),eZ=He({...Q4,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),tZ=B({name:"ElDrawer",components:{ElOverlay:zh,ElFocusTrap:Qu,ElIcon:Je,Close:Mr},inheritAttrs:!1,props:eZ,emits:ew,setup(e,{slots:t}){sl({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},$(()=>!!t.title)),sl({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},$(()=>!!e.customClass));const o=V(),r=V(),l=Oe("drawer"),{t:n}=Nt(),a=$(()=>e.direction==="rtl"||e.direction==="ltr"),i=$(()=>bo(e.size));return{...tw(e,o),drawerRef:o,focusStartRef:r,isHorizontal:a,drawerSize:i,ns:l,t:n}}}),oZ=["aria-label","aria-labelledby","aria-describedby"],rZ=["id","aria-level"],lZ=["aria-label"],nZ=["id"];function aZ(e,t,o,r,l,n){const a=ot("close"),i=ot("el-icon"),c=ot("el-focus-trap"),u=ot("el-overlay");return b(),de(Xi,{to:"body",disabled:!e.appendToBody},[oe(_o,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:ne(()=>[ht(oe(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ne(()=>[oe(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[E("div",Et({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=it(()=>{},["stop"]))}),[E("span",{ref:"focusStartRef",class:P(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(b(),z("header",{key:0,class:P(e.ns.e("header"))},[e.$slots.title?be(e.$slots,"title",{key:1},()=>[ue(" DEPRECATED SLOT ")]):be(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ue("v-if",!0):(b(),z("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:P(e.ns.e("title"))},ze(e.title),11,rZ))]),e.showClose?(b(),z("button",{key:2,"aria-label":e.t("el.drawer.close"),class:P(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...p)=>e.handleClose&&e.handleClose(...p))},[oe(i,{class:P(e.ns.e("close"))},{default:ne(()=>[oe(a)]),_:1},8,["class"])],10,lZ)):ue("v-if",!0)],2)):ue("v-if",!0),e.rendered?(b(),z("div",{key:1,id:e.bodyId,class:P(e.ns.e("body"))},[be(e.$slots,"default")],10,nZ)):ue("v-if",!0),e.$slots.footer?(b(),z("div",{key:2,class:P(e.ns.e("footer"))},[be(e.$slots,"footer")],2)):ue("v-if",!0)],16,oZ)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Pt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var iZ=Fe(tZ,[["render",aZ],["__file","drawer.vue"]]);const sZ=xt(iZ),cZ=B({inheritAttrs:!1});function uZ(e,t,o,r,l,n){return be(e.$slots,"default")}var dZ=Fe(cZ,[["render",uZ],["__file","collection.vue"]]);const pZ=B({name:"ElCollectionItem",inheritAttrs:!1});function fZ(e,t,o,r,l,n){return be(e.$slots,"default")}var hZ=Fe(pZ,[["render",fZ],["__file","collection-item.vue"]]);const rw="data-el-collection-item",lw=e=>{const t=`El${e}Collection`,o=`${t}Item`,r=Symbol(t),l=Symbol(o),n={...dZ,name:t,setup(){const i=V(null),c=new Map;zt(r,{itemMap:c,getItems:()=>{const p=s(i);if(!p)return[];const d=Array.from(p.querySelectorAll(`[${rw}]`));return[...c.values()].sort((v,m)=>d.indexOf(v.ref)-d.indexOf(m.ref))},collectionRef:i})}},a={...hZ,name:o,setup(i,{attrs:c}){const u=V(null),p=Le(r,void 0);zt(l,{collectionItemRef:u}),vt(()=>{const d=s(u);d&&p.itemMap.set(d,{ref:d,...c})}),Zt(()=>{const d=s(u);p.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:n,ElCollectionItem:a}},vZ=He({style:{type:pe([String,Array,Object])},currentTabId:{type:pe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:pe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:mZ,ElCollectionItem:gZ,COLLECTION_INJECTION_KEY:Mh,COLLECTION_ITEM_INJECTION_KEY:bZ}=lw("RovingFocusGroup"),Ah=Symbol("elRovingFocusGroup"),nw=Symbol("elRovingFocusGroupItem"),_Z={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},wZ=(e,t)=>{if(t!=="rtl")return e;switch(e){case tt.right:return tt.left;case tt.left:return tt.right;default:return e}},yZ=(e,t,o)=>{const r=wZ(e.key,o);if(!(t==="vertical"&&[tt.left,tt.right].includes(r))&&!(t==="horizontal"&&[tt.up,tt.down].includes(r)))return _Z[r]},xZ=(e,t)=>e.map((o,r)=>e[(r+t)%e.length]),Ih=e=>{const{activeElement:t}=document;for(const o of e)if(o===t||(o.focus(),t!==document.activeElement))return},aw="currentTabIdChange",iw="rovingFocusGroup.entryFocus",kZ={bubbles:!1,cancelable:!0},CZ=B({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:vZ,emits:[aw,"entryFocus"],setup(e,{emit:t}){var o;const r=V((o=e.currentTabId||e.defaultCurrentTabId)!=null?o:null),l=V(!1),n=V(!1),a=V(null),{getItems:i}=Le(Mh,void 0),c=$(()=>[{outline:"none"},e.style]),u=h=>{t(aw,h)},p=()=>{l.value=!0},d=uo(h=>{var _;(_=e.onMousedown)==null||_.call(e,h)},()=>{n.value=!0}),f=uo(h=>{var _;(_=e.onFocus)==null||_.call(e,h)},h=>{const _=!s(n),{target:g,currentTarget:y}=h;if(g===y&&_&&!s(l)){const w=new Event(iw,kZ);if(y==null||y.dispatchEvent(w),!w.defaultPrevented){const x=i().filter(F=>F.focusable),M=x.find(F=>F.active),T=x.find(F=>F.id===s(r)),I=[M,T,...x].filter(Boolean).map(F=>F.ref);Ih(I)}}n.value=!1}),v=uo(h=>{var _;(_=e.onBlur)==null||_.call(e,h)},()=>{l.value=!1}),m=(...h)=>{t("entryFocus",...h)};zt(Ah,{currentTabbedId:za(r),loop:so(e,"loop"),tabIndex:$(()=>s(l)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:c,orientation:so(e,"orientation"),dir:so(e,"dir"),onItemFocus:u,onItemShiftTab:p,onBlur:v,onFocus:f,onMousedown:d}),Te(()=>e.currentTabId,h=>{r.value=h??null}),eo(a,iw,m)}});function SZ(e,t,o,r,l,n){return be(e.$slots,"default")}var EZ=Fe(CZ,[["render",SZ],["__file","roving-focus-group-impl.vue"]]);const $Z=B({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:mZ,ElRovingFocusGroupImpl:EZ}});function TZ(e,t,o,r,l,n){const a=ot("el-roving-focus-group-impl"),i=ot("el-focus-group-collection");return b(),de(i,null,{default:ne(()=>[oe(a,Rr(Gc(e.$attrs)),{default:ne(()=>[be(e.$slots,"default")]),_:3},16)]),_:3})}var zZ=Fe($Z,[["render",TZ],["__file","roving-focus-group.vue"]]);const MZ=B({components:{ElRovingFocusCollectionItem:gZ},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:o,loop:r,onItemFocus:l,onItemShiftTab:n}=Le(Ah,void 0),{getItems:a}=Le(Mh,void 0),i=dr(),c=V(null),u=uo(v=>{t("mousedown",v)},v=>{e.focusable?l(s(i)):v.preventDefault()}),p=uo(v=>{t("focus",v)},()=>{l(s(i))}),d=uo(v=>{t("keydown",v)},v=>{const{key:m,shiftKey:h,target:_,currentTarget:g}=v;if(m===tt.tab&&h){n();return}if(_!==g)return;const y=yZ(v);if(y){v.preventDefault();let x=a().filter(M=>M.focusable).map(M=>M.ref);switch(y){case"last":{x.reverse();break}case"prev":case"next":{y==="prev"&&x.reverse();const M=x.indexOf(g);x=r.value?xZ(x,M+1):x.slice(M+1);break}}et(()=>{Ih(x)})}}),f=$(()=>o.value===s(i));return zt(nw,{rovingFocusGroupItemRef:c,tabIndex:$(()=>s(f)?0:-1),handleMousedown:u,handleFocus:p,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:p,handleMousedown:u}}});function AZ(e,t,o,r,l,n){const a=ot("el-roving-focus-collection-item");return b(),de(a,{id:e.id,focusable:e.focusable,active:e.active},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var IZ=Fe(MZ,[["render",AZ],["__file","roving-focus-item.vue"]]);const bd=He({trigger:Ds.trigger,effect:{...Lo.effect,default:"light"},type:{type:pe(String)},placement:{type:pe(String),default:"bottom"},popperOptions:{type:pe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:pe([Number,String]),default:0},maxHeight:{type:pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:pe(Object)},teleported:Lo.teleported}),sw=He({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ut}}),OZ=He({onKeydown:{type:pe(Function)}}),PZ=[tt.down,tt.pageDown,tt.home],cw=[tt.up,tt.pageUp,tt.end],BZ=[...PZ,...cw],{ElCollection:NZ,ElCollectionItem:LZ,COLLECTION_INJECTION_KEY:RZ,COLLECTION_ITEM_INJECTION_KEY:VZ}=lw("Dropdown"),_d=Symbol("elDropdown"),{ButtonGroup:HZ}=Vo,FZ=B({name:"ElDropdown",components:{ElButton:Vo,ElButtonGroup:HZ,ElScrollbar:Kl,ElDropdownCollection:NZ,ElTooltip:er,ElRovingFocusGroup:zZ,ElOnlyChild:Q_,ElIcon:Je,ArrowDown:Bl},props:bd,emits:["visible-change","click","command"],setup(e,{emit:t}){const o=_t(),r=Oe("dropdown"),{t:l}=Nt(),n=V(),a=V(),i=V(null),c=V(null),u=V(null),p=V(null),d=V(!1),f=[tt.enter,tt.space,tt.down],v=$(()=>({maxHeight:bo(e.maxHeight)})),m=$(()=>[r.m(M.value)]),h=$(()=>Jn(e.trigger)),_=dr().value,g=$(()=>e.id||_);Te([n,h],([L,X],[N])=>{var W,re,ie;(W=N==null?void 0:N.$el)!=null&&W.removeEventListener&&N.$el.removeEventListener("pointerenter",O),(re=L==null?void 0:L.$el)!=null&&re.removeEventListener&&L.$el.removeEventListener("pointerenter",O),(ie=L==null?void 0:L.$el)!=null&&ie.addEventListener&&X.includes("hover")&&L.$el.addEventListener("pointerenter",O)},{immediate:!0}),Zt(()=>{var L,X;(X=(L=n.value)==null?void 0:L.$el)!=null&&X.removeEventListener&&n.value.$el.removeEventListener("pointerenter",O)});function y(){w()}function w(){var L;(L=i.value)==null||L.onClose()}function x(){var L;(L=i.value)==null||L.onOpen()}const M=Eo();function T(...L){t("command",...L)}function O(){var L,X;(X=(L=n.value)==null?void 0:L.$el)==null||X.focus()}function I(){}function F(){const L=s(c);h.value.includes("hover")&&(L==null||L.focus()),p.value=null}function K(L){p.value=L}function R(L){d.value||(L.preventDefault(),L.stopImmediatePropagation())}function D(){t("visible-change",!0)}function j(L){(L==null?void 0:L.type)==="keydown"&&c.value.focus()}function Z(){t("visible-change",!1)}return zt(_d,{contentRef:c,role:$(()=>e.role),triggerId:g,isUsingKeyboard:d,onItemEnter:I,onItemLeave:F}),zt("elDropdown",{instance:o,dropdownSize:M,handleClick:y,commandHandler:T,trigger:so(e,"trigger"),hideOnClick:so(e,"hideOnClick")}),{t:l,ns:r,scrollbar:u,wrapStyle:v,dropdownTriggerKls:m,dropdownSize:M,triggerId:g,triggerKeys:f,currentTabId:p,handleCurrentTabIdChange:K,handlerMainButtonClick:L=>{t("click",L)},handleEntryFocus:R,handleClose:w,handleOpen:x,handleBeforeShowTooltip:D,handleShowTooltip:j,handleBeforeHideTooltip:Z,onFocusAfterTrapped:L=>{var X,N;L.preventDefault(),(N=(X=c.value)==null?void 0:X.focus)==null||N.call(X,{preventScroll:!0})},popperRef:i,contentRef:c,triggeringElementRef:n,referenceElementRef:a}}});function DZ(e,t,o,r,l,n){var a;const i=ot("el-dropdown-collection"),c=ot("el-roving-focus-group"),u=ot("el-scrollbar"),p=ot("el-only-child"),d=ot("el-tooltip"),f=ot("el-button"),v=ot("arrow-down"),m=ot("el-icon"),h=ot("el-button-group");return b(),z("div",{class:P([e.ns.b(),e.ns.is("disabled",e.disabled)])},[oe(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Jr({content:ne(()=>[oe(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ne(()=>[oe(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ne(()=>[oe(i,null,{default:ne(()=>[be(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ne(()=>[oe(p,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(b(),de(h,{key:0},{default:ne(()=>[oe(f,Et({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ne(()=>[be(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),oe(f,Et({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ne(()=>[oe(m,{class:P(e.ns.e("icon"))},{default:ne(()=>[oe(v)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ue("v-if",!0)],2)}var jZ=Fe(FZ,[["render",DZ],["__file","dropdown.vue"]]);const KZ=B({name:"DropdownItemImpl",components:{ElIcon:Je},props:sw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const o=Oe("dropdown"),{role:r}=Le(_d,void 0),{collectionItemRef:l}=Le(VZ,void 0),{collectionItemRef:n}=Le(bZ,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:c,handleKeydown:u,handleMousedown:p}=Le(nw,void 0),d=Au(l,n,a),f=$(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),v=uo(m=>{const{code:h}=m;if(h===tt.enter||h===tt.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},u);return{ns:o,itemRef:d,dataset:{[rw]:""},role:f,tabIndex:i,handleFocus:c,handleKeydown:v,handleMousedown:p}}}),WZ=["aria-disabled","tabindex","role"];function UZ(e,t,o,r,l,n){const a=ot("el-icon");return b(),z(Ge,null,[e.divided?(b(),z("li",Et({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ue("v-if",!0),E("li",Et({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=it((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(b(),de(a,{key:0},{default:ne(()=>[(b(),de(St(e.icon)))]),_:1})):ue("v-if",!0),be(e.$slots,"default")],16,WZ)],64)}var qZ=Fe(KZ,[["render",UZ],["__file","dropdown-item-impl.vue"]]);const uw=()=>{const e=Le("elDropdown",{}),t=$(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},YZ=B({name:"ElDropdownItem",components:{ElDropdownCollectionItem:LZ,ElRovingFocusItem:IZ,ElDropdownItemImpl:qZ},inheritAttrs:!1,props:sw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:o}){const{elDropdown:r}=uw(),l=_t(),n=V(null),a=$(()=>{var v,m;return(m=(v=s(n))==null?void 0:v.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:c}=Le(_d,void 0),u=uo(v=>(t("pointermove",v),v.defaultPrevented),y1(v=>{if(e.disabled){c(v);return}const m=v.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(v),v.defaultPrevented||m==null||m.focus())})),p=uo(v=>(t("pointerleave",v),v.defaultPrevented),y1(v=>{c(v)})),d=uo(v=>{if(!e.disabled)return t("click",v),v.type!=="keydown"&&v.defaultPrevented},v=>{var m,h,_;if(e.disabled){v.stopImmediatePropagation();return}(m=r==null?void 0:r.hideOnClick)!=null&&m.value&&((h=r.handleClick)==null||h.call(r)),(_=r.commandHandler)==null||_.call(r,e.command,l,v)}),f=$(()=>({...e,...o}));return{handleClick:d,handlePointerMove:u,handlePointerLeave:p,textContent:a,propsAndAttrs:f}}});function GZ(e,t,o,r,l,n){var a;const i=ot("el-dropdown-item-impl"),c=ot("el-roving-focus-item"),u=ot("el-dropdown-collection-item");return b(),de(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:ne(()=>[oe(c,{focusable:!e.disabled},{default:ne(()=>[oe(i,Et(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ne(()=>[be(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var dw=Fe(YZ,[["render",GZ],["__file","dropdown-item.vue"]]);const XZ=B({name:"ElDropdownMenu",props:OZ,setup(e){const t=Oe("dropdown"),{_elDropdownSize:o}=uw(),r=o.value,{focusTrapRef:l,onKeydown:n}=Le(W0,void 0),{contentRef:a,role:i,triggerId:c}=Le(_d,void 0),{collectionRef:u,getItems:p}=Le(RZ,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:f,tabIndex:v,onBlur:m,onFocus:h,onMousedown:_}=Le(Ah,void 0),{collectionRef:g}=Le(Mh,void 0),y=$(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),w=Au(a,u,l,d,g),x=uo(T=>{var O;(O=e.onKeydown)==null||O.call(e,T)},T=>{const{currentTarget:O,code:I,target:F}=T;if(O.contains(F),tt.tab===I&&T.stopImmediatePropagation(),T.preventDefault(),F!==s(a)||!BZ.includes(I))return;const R=p().filter(D=>!D.disabled).map(D=>D.ref);cw.includes(I)&&R.reverse(),Ih(R)});return{size:r,rovingFocusGroupRootStyle:f,tabIndex:v,dropdownKls:y,role:i,triggerId:c,dropdownListWrapperRef:w,handleKeydown:T=>{x(T),n(T)},onBlur:m,onFocus:h,onMousedown:_}}}),ZZ=["role","aria-labelledby"];function JZ(e,t,o,r,l,n){return b(),z("ul",{ref:e.dropdownListWrapperRef,class:P(e.dropdownKls),style:Qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...a)=>e.onBlur&&e.onBlur(...a)),onFocus:t[1]||(t[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onKeydown:t[2]||(t[2]=it((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=it((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[be(e.$slots,"default")],46,ZZ)}var pw=Fe(XZ,[["render",JZ],["__file","dropdown-menu.vue"]]);const QZ=xt(jZ,{DropdownItem:dw,DropdownMenu:pw}),eJ=fo(dw),tJ=fo(pw),oJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},rJ=["id"],lJ=["stop-color"],nJ=["stop-color"],aJ=["id"],iJ=["stop-color"],sJ=["stop-color"],cJ=["id"],uJ={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},dJ={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},pJ={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},fJ=["fill"],hJ=["fill"],vJ={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},mJ=["fill"],gJ=["fill"],bJ=["fill"],_J=["fill"],wJ=["fill"],yJ={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},xJ=["fill","xlink:href"],kJ=["fill","mask"],CJ=["fill"],SJ=B({...B({name:"ImgEmpty"}),setup(e){const t=Oe("empty"),o=dr();return(r,l)=>(b(),z("svg",oJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${s(o)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,lJ),E("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,nJ)],8,rJ),E("linearGradient",{id:`linearGradient-2-${s(o)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,iJ),E("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,sJ)],8,aJ),E("rect",{id:`path-3-${s(o)}`,x:"0",y:"0",width:"17",height:"36"},null,8,cJ)]),E("g",uJ,[E("g",dJ,[E("g",pJ,[E("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${s(t).cssVarBlockName("fill-color-3")})`},null,8,fJ),E("polygon",{id:"Rectangle-Copy-14",fill:`var(${s(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,hJ),E("g",vJ,[E("polygon",{id:"Rectangle-Copy-10",fill:`var(${s(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,mJ),E("polygon",{id:"Rectangle-Copy-11",fill:`var(${s(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,gJ),E("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${s(o)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,bJ),E("polygon",{id:"Rectangle-Copy-13",fill:`var(${s(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_J)]),E("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${s(o)})`,x:"13",y:"45",width:"40",height:"36"},null,8,wJ),E("g",yJ,[E("use",{id:"Mask",fill:`var(${s(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${s(o)}`},null,8,xJ),E("polygon",{id:"Rectangle-Copy",fill:`var(${s(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${s(o)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,kJ)]),E("polygon",{id:"Rectangle-Copy-18",fill:`var(${s(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,CJ)])])])]))}});var EJ=Fe(SJ,[["__file","img-empty.vue"]]);const $J=He({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),TJ=["src"],zJ={key:1},MJ=B({...B({name:"ElEmpty"}),props:$J,setup(e){const t=e,{t:o}=Nt(),r=Oe("empty"),l=$(()=>t.description||o("el.table.emptyText")),n=$(()=>({width:bo(t.imageSize)}));return(a,i)=>(b(),z("div",{class:P(s(r).b())},[E("div",{class:P(s(r).e("image")),style:Qe(s(n))},[a.image?(b(),z("img",{key:0,src:a.image,ondragstart:"return false"},null,8,TJ)):be(a.$slots,"image",{key:1},()=>[oe(EJ)])],6),E("div",{class:P(s(r).e("description"))},[a.$slots.description?be(a.$slots,"description",{key:0}):(b(),z("p",zJ,ze(s(l)),1))],2),a.$slots.default?(b(),z("div",{key:0,class:P(s(r).e("bottom"))},[be(a.$slots,"default")],2)):ue("v-if",!0)],2))}});var AJ=Fe(MJ,[["__file","empty.vue"]]);const fw=xt(AJ),IJ=He({urlList:{type:pe(Array),default:()=>ro([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),OJ={close:()=>!0,switch:e=>ct(e),rotate:e=>ct(e)},PJ=["src"],BJ=B({...B({name:"ElImageViewer"}),props:IJ,emits:OJ,setup(e,{expose:t,emit:o}){const r=e,l={CONTAIN:{name:"contain",icon:xl(u3)},ORIGINAL:{name:"original",icon:xl(b3)}},{t:n}=Nt(),a=Oe("image-viewer"),{nextZIndex:i}=ti(),c=V(),u=V([]),p=vp(),d=V(!0),f=V(r.initialIndex),v=qt(l.CONTAIN),m=V({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),h=$(()=>{const{urlList:N}=r;return N.length<=1}),_=$(()=>f.value===0),g=$(()=>f.value===r.urlList.length-1),y=$(()=>r.urlList[f.value]),w=$(()=>[a.e("btn"),a.e("prev"),a.is("disabled",!r.infinite&&_.value)]),x=$(()=>[a.e("btn"),a.e("next"),a.is("disabled",!r.infinite&&g.value)]),M=$(()=>{const{scale:N,deg:W,offsetX:re,offsetY:ie,enableTransition:se}=m.value;let ve=re/N,le=ie/N;switch(W%360){case 90:case-270:[ve,le]=[le,-ve];break;case 180:case-180:[ve,le]=[-ve,-le];break;case 270:case-90:[ve,le]=[-le,ve];break}const ge={transform:`scale(${N}) rotate(${W}deg) translate(${ve}px, ${le}px)`,transition:se?"transform .3s":""};return v.value.name===l.CONTAIN.name&&(ge.maxWidth=ge.maxHeight="100%"),ge}),T=$(()=>ct(r.zIndex)?r.zIndex:i());function O(){F(),o("close")}function I(){const N=ea(re=>{switch(re.code){case tt.esc:r.closeOnPressEscape&&O();break;case tt.space:Z();break;case tt.left:J();break;case tt.up:X("zoomIn");break;case tt.right:L();break;case tt.down:X("zoomOut");break}}),W=ea(re=>{const ie=re.deltaY||re.deltaX;X(ie<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});p.run(()=>{eo(document,"keydown",N),eo(document,"wheel",W)})}function F(){p.stop()}function K(){d.value=!1}function R(N){d.value=!1,N.target.alt=n("el.image.error")}function D(N){if(d.value||N.button!==0||!c.value)return;m.value.enableTransition=!1;const{offsetX:W,offsetY:re}=m.value,ie=N.pageX,se=N.pageY,ve=ea(ge=>{m.value={...m.value,offsetX:W+ge.pageX-ie,offsetY:re+ge.pageY-se}}),le=eo(document,"mousemove",ve);eo(document,"mouseup",()=>{le()}),N.preventDefault()}function j(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Z(){if(d.value)return;const N=ks(l),W=Object.values(l),re=v.value.name,se=(W.findIndex(ve=>ve.name===re)+1)%N.length;v.value=l[N[se]],j()}function Q(N){const W=r.urlList.length;f.value=(N+W)%W}function J(){_.value&&!r.infinite||Q(f.value-1)}function L(){g.value&&!r.infinite||Q(f.value+1)}function X(N,W={}){if(d.value)return;const{minScale:re,maxScale:ie}=r,{zoomRate:se,rotateDeg:ve,enableTransition:le}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...W};switch(N){case"zoomOut":m.value.scale>re&&(m.value.scale=Number.parseFloat((m.value.scale/se).toFixed(3)));break;case"zoomIn":m.value.scale{et(()=>{const N=u.value[0];N!=null&&N.complete||(d.value=!0)})}),Te(f,N=>{j(),o("switch",N)}),vt(()=>{var N,W;I(),(W=(N=c.value)==null?void 0:N.focus)==null||W.call(N)}),t({setActiveItem:Q}),(N,W)=>(b(),de(Xi,{to:"body",disabled:!N.teleported},[oe(_o,{name:"viewer-fade",appear:""},{default:ne(()=>[E("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:P(s(a).e("wrapper")),style:Qe({zIndex:s(T)})},[E("div",{class:P(s(a).e("mask")),onClick:W[0]||(W[0]=it(re=>N.hideOnClickModal&&O(),["self"]))},null,2),ue(" CLOSE "),E("span",{class:P([s(a).e("btn"),s(a).e("close")]),onClick:O},[oe(s(Je),null,{default:ne(()=>[oe(s(Mr))]),_:1})],2),ue(" ARROW "),s(h)?ue("v-if",!0):(b(),z(Ge,{key:0},[E("span",{class:P(s(w)),onClick:J},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],2),E("span",{class:P(s(x)),onClick:L},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],2)],64)),ue(" ACTIONS "),E("div",{class:P([s(a).e("btn"),s(a).e("actions")])},[E("div",{class:P(s(a).e("actions__inner"))},[oe(s(Je),{onClick:W[1]||(W[1]=re=>X("zoomOut"))},{default:ne(()=>[oe(s(C3))]),_:1}),oe(s(Je),{onClick:W[2]||(W[2]=re=>X("zoomIn"))},{default:ne(()=>[oe(s(i0))]),_:1}),E("i",{class:P(s(a).e("actions__divider"))},null,2),oe(s(Je),{onClick:Z},{default:ne(()=>[(b(),de(St(s(v).icon)))]),_:1}),E("i",{class:P(s(a).e("actions__divider"))},null,2),oe(s(Je),{onClick:W[3]||(W[3]=re=>X("anticlockwise"))},{default:ne(()=>[oe(s(m3))]),_:1}),oe(s(Je),{onClick:W[4]||(W[4]=re=>X("clockwise"))},{default:ne(()=>[oe(s(g3))]),_:1})],2)],2),ue(" CANVAS "),E("div",{class:P(s(a).e("canvas"))},[(b(!0),z(Ge,null,Tt(N.urlList,(re,ie)=>ht((b(),z("img",{ref_for:!0,ref:se=>u.value[ie]=se,key:re,src:re,style:Qe(s(M)),class:P(s(a).e("img")),onLoad:K,onError:R,onMousedown:D},null,46,PJ)),[[Pt,ie===f.value]])),128))],2),be(N.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var NJ=Fe(BJ,[["__file","image-viewer.vue"]]);const hw=xt(NJ),LJ=He({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:pe([String,Object])},previewSrcList:{type:pe(Array),default:()=>ro([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),RJ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ct(e),close:()=>!0,show:()=>!0},VJ=["src","loading"],HJ={key:0},FJ=B({...B({name:"ElImage",inheritAttrs:!1}),props:LJ,emits:RJ,setup(e,{emit:t}){const o=e;let r="";const{t:l}=Nt(),n=Oe("image"),a=Hn(),i=f0(),c=V(),u=V(!1),p=V(!0),d=V(!1),f=V(),v=V(),m=Bt&&"loading"in HTMLImageElement.prototype;let h,_;const g=$(()=>[n.e("inner"),x.value&&n.e("preview"),p.value&&n.is("loading")]),y=$(()=>a.style),w=$(()=>{const{fit:X}=o;return Bt&&X?{objectFit:X}:{}}),x=$(()=>{const{previewSrcList:X}=o;return Array.isArray(X)&&X.length>0}),M=$(()=>{const{previewSrcList:X,initialIndex:N}=o;let W=N;return N>X.length-1&&(W=0),W}),T=$(()=>o.loading==="eager"?!1:!m&&o.loading==="lazy"||o.lazy),O=()=>{Bt&&(p.value=!0,u.value=!1,c.value=o.src)};function I(X){p.value=!1,u.value=!1,t("load",X)}function F(X){p.value=!1,u.value=!0,t("error",X)}function K(){N7(f.value,v.value)&&(O(),j())}const R=T1(K,200,!0);async function D(){var X;if(!Bt)return;await et();const{scrollContainer:N}=o;zr(N)?v.value=N:ft(N)&&N!==""?v.value=(X=document.querySelector(N))!=null?X:void 0:f.value&&(v.value=t0(f.value)),v.value&&(h=eo(v,"scroll",R),setTimeout(()=>K(),100))}function j(){!Bt||!v.value||!R||(h==null||h(),v.value=void 0)}function Z(X){if(X.ctrlKey){if(X.deltaY<0)return X.preventDefault(),!1;if(X.deltaY>0)return X.preventDefault(),!1}}function Q(){x.value&&(_=eo("wheel",Z,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function J(){_==null||_(),document.body.style.overflow=r,d.value=!1,t("close")}function L(X){t("switch",X)}return Te(()=>o.src,()=>{T.value?(p.value=!0,u.value=!1,j(),D()):O()}),vt(()=>{T.value?D():O()}),(X,N)=>(b(),z("div",{ref_key:"container",ref:f,class:P([s(n).b(),X.$attrs.class]),style:Qe(s(y))},[u.value?be(X.$slots,"error",{key:0},()=>[E("div",{class:P(s(n).e("error"))},ze(s(l)("el.image.error")),3)]):(b(),z(Ge,{key:1},[c.value!==void 0?(b(),z("img",Et({key:0},s(i),{src:c.value,loading:X.loading,style:s(w),class:s(g),onClick:Q,onLoad:I,onError:F}),null,16,VJ)):ue("v-if",!0),p.value?(b(),z("div",{key:1,class:P(s(n).e("wrapper"))},[be(X.$slots,"placeholder",{},()=>[E("div",{class:P(s(n).e("placeholder"))},null,2)])],2)):ue("v-if",!0)],64)),s(x)?(b(),z(Ge,{key:2},[d.value?(b(),de(s(hw),{key:0,"z-index":X.zIndex,"initial-index":s(M),infinite:X.infinite,"zoom-rate":X.zoomRate,"min-scale":X.minScale,"max-scale":X.maxScale,"url-list":X.previewSrcList,"hide-on-click-modal":X.hideOnClickModal,teleported:X.previewTeleported,"close-on-press-escape":X.closeOnPressEscape,onClose:J,onSwitch:L},{default:ne(()=>[X.$slots.viewer?(b(),z("div",HJ,[be(X.$slots,"viewer")])):ue("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ue("v-if",!0)],64)):ue("v-if",!0)],6))}});var DJ=Fe(FJ,[["__file","image.vue"]]);const jJ=xt(DJ),KJ=He({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:No,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ct(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),WJ={[Jt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Jo]:e=>ct(e)||wo(e),[kt]:e=>ct(e)||wo(e)},UJ=["aria-label","onKeydown"],qJ=["aria-label","onKeydown"],YJ=B({...B({name:"ElInputNumber"}),props:KJ,emits:WJ,setup(e,{expose:t,emit:o}){const r=e,{t:l}=Nt(),n=Oe("input-number"),a=V(),i=Ft({currentValue:r.modelValue,userInput:null}),{formItem:c}=Qo(),u=$(()=>ct(r.modelValue)&&r.modelValue<=r.min),p=$(()=>ct(r.modelValue)&&r.modelValue>=r.max),d=$(()=>{const j=g(r.step);return ko(r.precision)?Math.max(g(r.modelValue),j):(j>r.precision,r.precision)}),f=$(()=>r.controls&&r.controlsPosition==="right"),v=Eo(),m=pr(),h=$(()=>{if(i.userInput!==null)return i.userInput;let j=i.currentValue;if(wo(j))return"";if(ct(j)){if(Number.isNaN(j))return"";ko(r.precision)||(j=j.toFixed(r.precision))}return j}),_=(j,Z)=>{if(ko(Z)&&(Z=d.value),Z===0)return Math.round(j);let Q=String(j);const J=Q.indexOf(".");if(J===-1||!Q.replace(".","").split("")[J+Z])return j;const N=Q.length;return Q.charAt(N-1)==="5"&&(Q=`${Q.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(Q).toFixed(Z))},g=j=>{if(wo(j))return 0;const Z=j.toString(),Q=Z.indexOf(".");let J=0;return Q!==-1&&(J=Z.length-Q-1),J},y=(j,Z=1)=>ct(j)?_(j+r.step*Z):i.currentValue,w=()=>{if(r.readonly||m.value||p.value)return;const j=Number(h.value)||0,Z=y(j);T(Z),o(Jo,i.currentValue)},x=()=>{if(r.readonly||m.value||u.value)return;const j=Number(h.value)||0,Z=y(j,-1);T(Z),o(Jo,i.currentValue)},M=(j,Z)=>{const{max:Q,min:J,step:L,precision:X,stepStrictly:N,valueOnClear:W}=r;QQ||reQ?Q:J,Z&&o(kt,re)),re},T=(j,Z=!0)=>{var Q;const J=i.currentValue,L=M(j);if(!Z){o(kt,L);return}J!==L&&(i.userInput=null,o(kt,L),o(Jt,L,J),r.validateEvent&&((Q=c==null?void 0:c.validate)==null||Q.call(c,"change").catch(X=>void 0)),i.currentValue=L)},O=j=>{i.userInput=j;const Z=j===""?null:Number(j);o(Jo,Z),T(Z,!1)},I=j=>{const Z=j!==""?Number(j):"";(ct(Z)&&!Number.isNaN(Z)||j==="")&&T(Z),i.userInput=null},F=()=>{var j,Z;(Z=(j=a.value)==null?void 0:j.focus)==null||Z.call(j)},K=()=>{var j,Z;(Z=(j=a.value)==null?void 0:j.blur)==null||Z.call(j)},R=j=>{o("focus",j)},D=j=>{var Z;i.userInput=null,o("blur",j),r.validateEvent&&((Z=c==null?void 0:c.validate)==null||Z.call(c,"blur").catch(Q=>void 0))};return Te(()=>r.modelValue,(j,Z)=>{const Q=M(j,!0);i.userInput===null&&Q!==Z&&(i.currentValue=Q)},{immediate:!0}),vt(()=>{var j;const{min:Z,max:Q,modelValue:J}=r,L=(j=a.value)==null?void 0:j.input;if(L.setAttribute("role","spinbutton"),Number.isFinite(Q)?L.setAttribute("aria-valuemax",String(Q)):L.removeAttribute("aria-valuemax"),Number.isFinite(Z)?L.setAttribute("aria-valuemin",String(Z)):L.removeAttribute("aria-valuemin"),L.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),L.setAttribute("aria-disabled",String(m.value)),!ct(J)&&J!=null){let X=Number(J);Number.isNaN(X)&&(X=null),o(kt,X)}}),$l(()=>{var j,Z;const Q=(j=a.value)==null?void 0:j.input;Q==null||Q.setAttribute("aria-valuenow",`${(Z=i.currentValue)!=null?Z:""}`)}),t({focus:F,blur:K}),(j,Z)=>(b(),z("div",{class:P([s(n).b(),s(n).m(s(v)),s(n).is("disabled",s(m)),s(n).is("without-controls",!j.controls),s(n).is("controls-right",s(f))]),onDragstart:Z[1]||(Z[1]=it(()=>{},["prevent"]))},[j.controls?ht((b(),z("span",{key:0,role:"button","aria-label":s(l)("el.inputNumber.decrease"),class:P([s(n).e("decrease"),s(n).is("disabled",s(u))]),onKeydown:Rt(x,["enter"])},[oe(s(Je),null,{default:ne(()=>[s(f)?(b(),de(s(Bl),{key:0})):(b(),de(s(p3),{key:1}))]),_:1})],42,UJ)),[[s(rd),x]]):ue("v-if",!0),j.controls?ht((b(),z("span",{key:1,role:"button","aria-label":s(l)("el.inputNumber.increase"),class:P([s(n).e("increase"),s(n).is("disabled",s(p))]),onKeydown:Rt(w,["enter"])},[oe(s(Je),null,{default:ne(()=>[s(f)?(b(),de(s(Cs),{key:0})):(b(),de(s(n0),{key:1}))]),_:1})],42,qJ)),[[s(rd),w]]):ue("v-if",!0),oe(s(Wo),{id:j.id,ref_key:"input",ref:a,type:"number",step:j.step,"model-value":s(h),placeholder:j.placeholder,readonly:j.readonly,disabled:s(m),size:s(v),max:j.max,min:j.min,name:j.name,label:j.label,"validate-event":!1,onWheel:Z[0]||(Z[0]=it(()=>{},["prevent"])),onKeydown:[Rt(it(w,["prevent"]),["up"]),Rt(it(x,["prevent"]),["down"])],onBlur:D,onFocus:R,onInput:O,onChange:I},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var GJ=Fe(YJ,[["__file","input-number.vue"]]);const vw=xt(GJ),XJ=He({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Ut}}),ZJ={click:e=>e instanceof MouseEvent},JJ=["href"],QJ=B({...B({name:"ElLink"}),props:XJ,emits:ZJ,setup(e,{emit:t}){const o=e,r=Oe("link"),l=$(()=>[r.b(),r.m(o.type),r.is("disabled",o.disabled),r.is("underline",o.underline&&!o.disabled)]);function n(a){o.disabled||t("click",a)}return(a,i)=>(b(),z("a",{class:P(s(l)),href:a.disabled||!a.href?void 0:a.href,onClick:n},[a.icon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(a.icon)))]),_:1})):ue("v-if",!0),a.$slots.default?(b(),z("span",{key:1,class:P(s(r).e("inner"))},[be(a.$slots,"default")],2)):ue("v-if",!0),a.$slots.icon?be(a.$slots,"icon",{key:2}):ue("v-if",!0)],10,JJ))}});var eQ=Fe(QJ,[["__file","link.vue"]]);const tQ=xt(eQ);let oQ=class{constructor(t,o){this.parent=t,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",r=>{let l=!1;switch(r.code){case tt.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case tt.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case tt.tab:{pu(t,"mouseleave");break}case tt.enter:case tt.space:{l=!0,r.currentTarget.click();break}}return l&&(r.preventDefault(),r.stopPropagation()),!1})})}},rQ=class{constructor(t,o){this.domNode=t,this.submenu=null,this.submenu=null,this.init(o)}init(t){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${t}-menu`);o&&(this.submenu=new oQ(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let o=!1;switch(t.code){case tt.down:{pu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case tt.up:{pu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case tt.tab:{pu(t.currentTarget,"mouseleave");break}case tt.enter:case tt.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}},lQ=class{constructor(t,o){this.domNode=t,this.init(o)}init(t){const o=this.domNode.childNodes;Array.from(o).forEach(r=>{r.nodeType===1&&new rQ(r,t)})}};const nQ=B({name:"ElMenuCollapseTransition",setup(){const e=Oe("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,r){al(o,`${e.namespace.value}-opacity-transition`),o.style.opacity="1",r()},onAfterEnter(o){sr(o,`${e.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),Dr(o,e.m("collapse"))?(sr(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),al(o,e.m("collapse"))):(al(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),sr(o,e.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){al(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function aQ(e,t,o,r,l,n){return b(),de(_o,Et({mode:"out-in"},e.listeners),{default:ne(()=>[be(e.$slots,"default")]),_:3},16)}var iQ=Fe(nQ,[["render",aQ],["__file","menu-collapse-transition.vue"]]);function mw(e,t){const o=$(()=>{let l=e.parent;const n=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&n.unshift(l.props.index),l=l.parent;return n});return{parentMenu:$(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),indexPath:o}}function sQ(e){return $(()=>{const o=e.backgroundColor;return o?new C6(o).shade(20).toString():""})}const gw=(e,t)=>{const o=Oe("menu");return $(()=>o.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":sQ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},cQ=He({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:void 0},expandCloseIcon:{type:Ut},expandOpenIcon:{type:Ut},collapseCloseIcon:{type:Ut},collapseOpenIcon:{type:Ut}}),wd="ElSubMenu";var Oh=B({name:wd,props:cQ,setup(e,{slots:t,expose:o}){sl({from:"popper-append-to-body",replacement:"teleported",scope:wd,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},$(()=>e.popperAppendToBody!==void 0));const r=_t(),{indexPath:l,parentMenu:n}=mw(r,$(()=>e.index)),a=Oe("menu"),i=Oe("sub-menu"),c=Le("rootMenu");c||So(wd,"can not inject root menu");const u=Le(`subMenu:${n.value.uid}`);u||So(wd,"can not inject sub menu");const p=V({}),d=V({});let f;const v=V(!1),m=V(),h=V(null),_=$(()=>I.value==="horizontal"&&y.value?"bottom-start":"right-start"),g=$(()=>I.value==="horizontal"&&y.value||I.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:Bl:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:Ko),y=$(()=>u.level===0),w=$(()=>{var L;const X=(L=e.teleported)!=null?L:e.popperAppendToBody;return X===void 0?y.value:X}),x=$(()=>c.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),M=$(()=>I.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),T=$(()=>c.openedMenus.includes(e.index)),O=$(()=>{let L=!1;return Object.values(p.value).forEach(X=>{X.active&&(L=!0)}),Object.values(d.value).forEach(X=>{X.active&&(L=!0)}),L}),I=$(()=>c.props.mode),F=Ft({index:e.index,indexPath:l,active:O}),K=gw(c.props,u.level+1),R=$(()=>{var L;return(L=e.popperOffset)!=null?L:c.props.popperOffset}),D=()=>{var L,X,N;return(N=(X=(L=h.value)==null?void 0:L.popperRef)==null?void 0:X.popperInstanceRef)==null?void 0:N.destroy()},j=L=>{L||D()},Z=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:l.value,active:O.value})},Q=(L,X=e.showTimeout)=>{var N;if(L.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,f==null||f(),{stop:f}=Un(()=>{c.openMenu(e.index,l.value)},X),w.value&&((N=n.value.vnode.el)==null||N.dispatchEvent(new MouseEvent("mouseenter")))}},J=(L=!1)=>{var X,N;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){u.mouseInChild.value=!1;return}f==null||f(),u.mouseInChild.value=!1,{stop:f}=Un(()=>!v.value&&c.closeMenu(e.index,l.value),e.hideTimeout),w.value&&L&&((X=r.parent)==null?void 0:X.type.name)==="ElSubMenu"&&((N=u.handleMouseleave)==null||N.call(u,!0))};Te(()=>c.props.collapse,L=>j(!!L));{const L=N=>{d.value[N.index]=N},X=N=>{delete d.value[N.index]};zt(`subMenu:${r.uid}`,{addSubMenu:L,removeSubMenu:X,handleMouseleave:J,mouseInChild:v,level:u.level+1})}return o({opened:T}),vt(()=>{c.addSubMenu(F),u.addSubMenu(F)}),Zt(()=>{u.removeSubMenu(F),c.removeSubMenu(F)}),()=>{var L;const X=[(L=t.title)==null?void 0:L.call(t),rt(Je,{class:i.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ft(g.value)?rt(r.appContext.components[g.value]):rt(g.value)})],N=c.isMenuPopup?rt(er,{ref:h,visible:T.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:w.value,fallbackPlacements:M.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var W;return rt("div",{class:[a.m(I.value),a.m("popup-container"),e.popperClass],onMouseenter:re=>Q(re,100),onMouseleave:()=>J(!0),onFocus:re=>Q(re,100)},[rt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${_.value}`)],style:K.value},[(W=t.default)==null?void 0:W.call(t)])])},default:()=>rt("div",{class:i.e("title"),onClick:Z},X)}):rt(Ge,{},[rt("div",{class:i.e("title"),ref:m,onClick:Z},X),rt(fd,{},{default:()=>{var W;return ht(rt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:K.value},[(W=t.default)==null?void 0:W.call(t)]),[[Pt,T.value]])}})]);return rt("li",{class:[i.b(),i.is("active",O.value),i.is("opened",T.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:Q,onMouseleave:()=>J(!0),onFocus:Q},[N])}}});const uQ=He({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:pe(Array),default:()=>ro([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ut,default:()=>f3},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Ph=e=>Array.isArray(e)&&e.every(t=>ft(t));var dQ=B({name:"ElMenu",props:uQ,emits:{close:(e,t)=>ft(e)&&Ph(t),open:(e,t)=>ft(e)&&Ph(t),select:(e,t,o,r)=>ft(e)&&Ph(t)&&Ct(o)&&(r===void 0||r instanceof Promise)},setup(e,{emit:t,slots:o,expose:r}){const l=_t(),n=l.appContext.config.globalProperties.$router,a=V(),i=Oe("menu"),c=Oe("sub-menu"),u=V(-1),p=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=V(e.defaultActive),f=V({}),v=V({}),m=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),h=()=>{const j=d.value&&f.value[d.value];if(!j||e.mode==="horizontal"||e.collapse)return;j.indexPath.forEach(Q=>{const J=v.value[Q];J&&_(Q,J.indexPath)})},_=(j,Z)=>{p.value.includes(j)||(e.uniqueOpened&&(p.value=p.value.filter(Q=>Z.includes(Q))),p.value.push(j),t("open",j,Z))},g=j=>{const Z=p.value.indexOf(j);Z!==-1&&p.value.splice(Z,1)},y=(j,Z)=>{g(j),t("close",j,Z)},w=({index:j,indexPath:Z})=>{p.value.includes(j)?y(j,Z):_(j,Z)},x=j=>{(e.mode==="horizontal"||e.collapse)&&(p.value=[]);const{index:Z,indexPath:Q}=j;if(!(wo(Z)||wo(Q)))if(e.router&&n){const J=j.route||Z,L=n.push(J).then(X=>(X||(d.value=Z),X));t("select",Z,Q,{index:Z,indexPath:Q,route:J},L)}else d.value=Z,t("select",Z,Q,{index:Z,indexPath:Q})},M=j=>{const Z=f.value,Q=Z[j]||d.value&&Z[d.value]||Z[e.defaultActive];Q?d.value=Q.index:d.value=j},T=()=>{var j,Z;if(!a.value)return-1;const Q=Array.from((Z=(j=a.value)==null?void 0:j.childNodes)!=null?Z:[]).filter(ie=>ie.nodeName!=="#comment"&&(ie.nodeName!=="#text"||ie.nodeValue)),J=64,L=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),X=Number.parseInt(getComputedStyle(a.value).paddingRight,10),N=a.value.clientWidth-L-X;let W=0,re=0;return Q.forEach((ie,se)=>{W+=ie.offsetWidth||0,W<=N-J&&(re=se+1)}),re===Q.length?-1:re},O=j=>v.value[j].indexPath,I=(j,Z=33.34)=>{let Q;return()=>{Q&&clearTimeout(Q),Q=setTimeout(()=>{j()},Z)}};let F=!0;const K=()=>{const j=()=>{u.value=-1,et(()=>{u.value=T()})};F?j():I(j)(),F=!1};Te(()=>e.defaultActive,j=>{f.value[j]||(d.value=""),M(j)}),Te(()=>e.collapse,j=>{j&&(p.value=[])}),Te(f.value,h);let R;lr(()=>{e.mode==="horizontal"&&e.ellipsis?R=jo(a,K).stop:R==null||R()});const D=V(!1);{const j=L=>{v.value[L.index]=L},Z=L=>{delete v.value[L.index]};zt("rootMenu",Ft({props:e,openedMenus:p,items:f,subMenus:v,activeIndex:d,isMenuPopup:m,addMenuItem:L=>{f.value[L.index]=L},removeMenuItem:L=>{delete f.value[L.index]},addSubMenu:j,removeSubMenu:Z,openMenu:_,closeMenu:y,handleMenuItemClick:x,handleSubMenuClick:w})),zt(`subMenu:${l.uid}`,{addSubMenu:j,removeSubMenu:Z,mouseInChild:D,level:0})}return vt(()=>{e.mode==="horizontal"&&new lQ(l.vnode.el,i.namespace.value)}),r({open:Z=>{const{indexPath:Q}=v.value[Z];Q.forEach(J=>_(J,Q))},close:g,handleResize:K}),()=>{var j,Z;let Q=(Z=(j=o.default)==null?void 0:j.call(o))!=null?Z:[];const J=[];if(e.mode==="horizontal"&&a.value){const W=ra(Q),re=u.value===-1?W:W.slice(0,u.value),ie=u.value===-1?[]:W.slice(u.value);ie!=null&&ie.length&&e.ellipsis&&(Q=re,J.push(rt(Oh,{index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>rt(Je,{class:c.e("icon-more")},{default:()=>rt(e.ellipsisIcon)}),default:()=>ie})))}const L=gw(e,0),X=e.closeOnClickOutside?[[Ul,()=>{p.value.length&&(D.value||(p.value.forEach(W=>t("close",W,O(W))),p.value=[]))}]]:[],N=ht(rt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:L.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...Q,...J]),X);return e.collapseTransition&&e.mode==="vertical"?rt(iQ,()=>N):N}}});const pQ=He({index:{type:pe([String,null]),default:null},route:{type:pe([String,Object])},disabled:Boolean}),fQ={click:e=>ft(e.index)&&Array.isArray(e.indexPath)},Bh="ElMenuItem",hQ=B({name:Bh,components:{ElTooltip:er},props:pQ,emits:fQ,setup(e,{emit:t}){const o=_t(),r=Le("rootMenu"),l=Oe("menu"),n=Oe("menu-item");r||So(Bh,"can not inject root menu");const{parentMenu:a,indexPath:i}=mw(o,so(e,"index")),c=Le(`subMenu:${a.value.uid}`);c||So(Bh,"can not inject sub menu");const u=$(()=>e.index===r.activeIndex),p=Ft({index:e.index,indexPath:i,active:u}),d=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",p))};return vt(()=>{c.addSubMenu(p),r.addMenuItem(p)}),Zt(()=>{c.removeSubMenu(p),r.removeMenuItem(p)}),{parentMenu:a,rootMenu:r,active:u,nsMenu:l,nsMenuItem:n,handleClick:d}}});function vQ(e,t,o,r,l,n){const a=ot("el-tooltip");return b(),z("li",{class:P([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(b(),de(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ne(()=>[be(e.$slots,"title")]),default:ne(()=>[E("div",{class:P(e.nsMenu.be("tooltip","trigger"))},[be(e.$slots,"default")],2)]),_:3},8,["effect"])):(b(),z(Ge,{key:1},[be(e.$slots,"default"),be(e.$slots,"title")],64))],2)}var bw=Fe(hQ,[["render",vQ],["__file","menu-item.vue"]]);const mQ=B({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Oe("menu-item-group")}}});function gQ(e,t,o,r,l,n){return b(),z("li",{class:P(e.ns.b())},[E("div",{class:P(e.ns.e("title"))},[e.$slots.title?be(e.$slots,"title",{key:1}):(b(),z(Ge,{key:0},[$t(ze(e.title),1)],64))],2),E("ul",null,[be(e.$slots,"default")])],2)}var _w=Fe(mQ,[["render",gQ],["__file","menu-item-group.vue"]]);const bQ=xt(dQ,{MenuItem:bw,MenuItemGroup:_w,SubMenu:Oh}),_Q=fo(bw),wQ=fo(_w),yQ=fo(Oh),xQ=He({icon:{type:Ut,default:()=>l3},title:String,content:{type:String,default:""}}),kQ={back:()=>!0},CQ=["aria-label"],SQ=B({...B({name:"ElPageHeader"}),props:xQ,emits:kQ,setup(e,{emit:t}){const o=Bo(),{t:r}=Nt(),l=Oe("page-header"),n=$(()=>[l.b(),{[l.m("has-breadcrumb")]:!!o.breadcrumb,[l.m("has-extra")]:!!o.extra,[l.is("contentful")]:!!o.default}]);function a(){t("back")}return(i,c)=>(b(),z("div",{class:P(s(n))},[i.$slots.breadcrumb?(b(),z("div",{key:0,class:P(s(l).e("breadcrumb"))},[be(i.$slots,"breadcrumb")],2)):ue("v-if",!0),E("div",{class:P(s(l).e("header"))},[E("div",{class:P(s(l).e("left"))},[E("div",{class:P(s(l).e("back")),role:"button",tabindex:"0",onClick:a},[i.icon||i.$slots.icon?(b(),z("div",{key:0,"aria-label":i.title||s(r)("el.pageHeader.title"),class:P(s(l).e("icon"))},[be(i.$slots,"icon",{},()=>[i.icon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(i.icon)))]),_:1})):ue("v-if",!0)])],10,CQ)):ue("v-if",!0),E("div",{class:P(s(l).e("title"))},[be(i.$slots,"title",{},()=>[$t(ze(i.title||s(r)("el.pageHeader.title")),1)])],2)],2),oe(s(ow),{direction:"vertical"}),E("div",{class:P(s(l).e("content"))},[be(i.$slots,"content",{},()=>[$t(ze(i.content),1)])],2)],2),i.$slots.extra?(b(),z("div",{key:0,class:P(s(l).e("extra"))},[be(i.$slots,"extra")],2)):ue("v-if",!0)],2),i.$slots.default?(b(),z("div",{key:1,class:P(s(l).e("main"))},[be(i.$slots,"default")],2)):ue("v-if",!0)],2))}});var EQ=Fe(SQ,[["__file","page-header.vue"]]);const $Q=xt(EQ),ww=Symbol("elPaginationKey"),TQ=He({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ut}}),zQ={click:e=>e instanceof MouseEvent},MQ=["disabled","aria-label","aria-disabled"],AQ={key:0},IQ=B({...B({name:"ElPaginationPrev"}),props:TQ,emits:zQ,setup(e){const t=e,{t:o}=Nt(),r=$(()=>t.disabled||t.currentPage<=1);return(l,n)=>(b(),z("button",{type:"button",class:"btn-prev",disabled:s(r),"aria-label":l.prevText||s(o)("el.pagination.prev"),"aria-disabled":s(r),onClick:n[0]||(n[0]=a=>l.$emit("click",a))},[l.prevText?(b(),z("span",AQ,ze(l.prevText),1)):(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(l.prevIcon)))]),_:1}))],8,MQ))}});var OQ=Fe(IQ,[["__file","prev.vue"]]);const PQ=He({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ut}}),BQ=["disabled","aria-label","aria-disabled"],NQ={key:0},LQ=B({...B({name:"ElPaginationNext"}),props:PQ,emits:["click"],setup(e){const t=e,{t:o}=Nt(),r=$(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,n)=>(b(),z("button",{type:"button",class:"btn-next",disabled:s(r),"aria-label":l.nextText||s(o)("el.pagination.next"),"aria-disabled":s(r),onClick:n[0]||(n[0]=a=>l.$emit("click",a))},[l.nextText?(b(),z("span",NQ,ze(l.nextText),1)):(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(l.nextIcon)))]),_:1}))],8,BQ))}});var RQ=Fe(LQ,[["__file","next.vue"]]);const yw=Symbol("ElSelectGroup"),Ys=Symbol("ElSelect");function VQ(e,t){const o=Le(Ys),r=Le(yw,{disabled:!1}),l=$(()=>Ct(e.value)),n=$(()=>o.props.multiple?d(o.props.modelValue,e.value):f(e.value,o.props.modelValue)),a=$(()=>{if(o.props.multiple){const h=o.props.modelValue||[];return!n.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),i=$(()=>e.label||(l.value?"":e.value)),c=$(()=>e.value||e.label||""),u=$(()=>e.disabled||t.groupDisabled||a.value),p=_t(),d=(h=[],_)=>{if(l.value){const g=o.props.valueKey;return h&&h.some(y=>Vt(oo(y,g))===oo(_,g))}else return h&&h.includes(_)},f=(h,_)=>{if(l.value){const{valueKey:g}=o.props;return oo(h,g)===oo(_,g)}else return h===_},v=()=>{!e.disabled&&!r.disabled&&(o.hoverIndex=o.optionsArray.indexOf(p.proxy))};Te(()=>i.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),Te(()=>e.value,(h,_)=>{const{remote:g,valueKey:y}=o.props;if(Object.is(h,_)||(o.onOptionDestroy(_,p.proxy),o.onOptionCreate(p.proxy)),!e.created&&!g){if(y&&Ct(h)&&Ct(_)&&h[y]===_[y])return;o.setSelected()}}),Te(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=Vt(o);return Te(m,h=>{const{query:_}=s(h),g=new RegExp(e3(_),"i");t.visible=g.test(i.value)||e.created,t.visible||o.filteredOptionsCount--},{immediate:!0}),{select:o,currentLabel:i,currentValue:c,itemSelected:n,isDisabled:u,hoverItem:v}}const HQ=B({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Oe("select"),o=dr(),r=$(()=>[t.be("dropdown","item"),t.is("disabled",s(i)),{selected:s(a),hover:s(d)}]),l=Ft({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:n,itemSelected:a,isDisabled:i,select:c,hoverItem:u}=VQ(e,l),{visible:p,hover:d}=Ao(l),f=_t().proxy;c.onOptionCreate(f),Zt(()=>{const m=f.value,{selected:h}=c,g=(c.props.multiple?h:[h]).some(y=>y.value===f.value);et(()=>{c.cachedOptions.get(m)===f&&!g&&c.cachedOptions.delete(m)}),c.onOptionDestroy(m,f)});function v(){e.disabled!==!0&&l.groupDisabled!==!0&&c.handleOptionSelect(f)}return{ns:t,id:o,containerKls:r,currentLabel:n,itemSelected:a,isDisabled:i,select:c,hoverItem:u,visible:p,hover:d,selectOptionClick:v,states:l}}}),FQ=["id","aria-disabled","aria-selected"];function DQ(e,t,o,r,l,n){return ht((b(),z("li",{id:e.id,class:P(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=it((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{},()=>[E("span",null,ze(e.currentLabel),1)])],42,FQ)),[[Pt,e.visible]])}var Nh=Fe(HQ,[["render",DQ],["__file","option.vue"]]);const jQ=B({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Le(Ys),t=Oe("select"),o=$(()=>e.props.popperClass),r=$(()=>e.props.multiple),l=$(()=>e.props.fitInputWidth),n=V("");function a(){var i;n.value=`${(i=e.selectWrapper)==null?void 0:i.offsetWidth}px`}return vt(()=>{a(),jo(e.selectWrapper,a)}),{ns:t,minWidth:n,popperClass:o,isMultiple:r,isFitInputWidth:l}}});function KQ(e,t,o,r,l,n){return b(),z("div",{class:P([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(b(),z("div",{key:0,class:P(e.ns.be("dropdown","header"))},[be(e.$slots,"header")],2)):ue("v-if",!0),be(e.$slots,"default"),e.$slots.footer?(b(),z("div",{key:1,class:P(e.ns.be("dropdown","footer"))},[be(e.$slots,"footer")],2)):ue("v-if",!0)],6)}var WQ=Fe(jQ,[["render",KQ],["__file","select-dropdown.vue"]]);function UQ(e){const{t}=Nt();return Ft({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const qQ=(e,t,o)=>{const{t:r}=Nt(),l=Oe("select");sl({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},$(()=>e.suffixTransition===!1));const n=V(null),a=V(null),i=V(null),c=V(null),u=V(null),p=V(null),d=V(null),f=V(null),v=V(),m=qt({query:""}),h=qt(""),_=V([]);let g=0;const{form:y,formItem:w}=Qo(),x=$(()=>!e.filterable||e.multiple||!t.visible),M=$(()=>e.disabled||(y==null?void 0:y.disabled)),T=$(()=>{const Ce=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!M.value&&t.inputHovering&&Ce}),O=$(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),I=$(()=>l.is("reverse",O.value&&t.visible&&e.suffixTransition)),F=$(()=>(y==null?void 0:y.statusIcon)&&(w==null?void 0:w.validateState)&&c0[w==null?void 0:w.validateState]),K=$(()=>e.remote?300:0),R=$(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),D=$(()=>{const Ce=Array.from(t.options.values()),De=[];return _.value.forEach(lt=>{const It=Ce.findIndex(Gt=>Gt.currentLabel===lt);It>-1&&De.push(Ce[It])}),De.length>=Ce.length?De:Ce}),j=$(()=>Array.from(t.cachedOptions.values())),Z=$(()=>{const Ce=D.value.filter(De=>!De.created).some(De=>De.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Ce}),Q=Eo(),J=$(()=>["small"].includes(Q.value)?"small":"default"),L=$({get(){return t.visible&&R.value!==!1},set(Ce){t.visible=Ce}});Te([()=>M.value,()=>Q.value,()=>y==null?void 0:y.size],()=>{et(()=>{X()})}),Te(()=>e.placeholder,Ce=>{t.cachedPlaceHolder=t.currentPlaceholder=Ce,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Te(()=>e.modelValue,(Ce,De)=>{e.multiple&&(X(),Ce&&Ce.length>0||a.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",N(t.query))),ie(),e.filterable&&!e.multiple&&(t.inputLength=20),!ir(Ce,De)&&e.validateEvent&&(w==null||w.validate("change").catch(lt=>void 0))},{flush:"post",deep:!0}),Te(()=>t.visible,Ce=>{var De,lt,It,Gt,Re;Ce?((lt=(De=c.value)==null?void 0:De.updatePopper)==null||lt.call(De),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Gt=(It=i.value)==null?void 0:It.focus)==null||Gt.call(It),e.multiple?(Re=a.value)==null||Re.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),N(t.query),!e.multiple&&!e.remote&&(m.value.query="",Ri(m),Ri(h)))):(e.filterable&&(ut(e.filterMethod)&&e.filterMethod(""),ut(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ve(),et(()=>{a.value&&a.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),o.emit("visible-change",Ce)}),Te(()=>t.options.entries(),()=>{var Ce,De,lt;if(!Bt)return;(De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce),e.multiple&&X();const It=((lt=d.value)==null?void 0:lt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ko(e.modelValue)||!Array.from(It).includes(document.activeElement))&&ie(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&re()},{flush:"post"}),Te(()=>t.hoverIndex,Ce=>{ct(Ce)&&Ce>-1?v.value=D.value[Ce]||{}:v.value={},D.value.forEach(De=>{De.hover=v.value===De})});const X=()=>{et(()=>{var Ce,De;if(!n.value)return;const lt=n.value.$el.querySelector("input");g=g||(lt.clientHeight>0?lt.clientHeight+2:0);const It=p.value,Gt=getComputedStyle(lt).getPropertyValue(l.cssVarName("input-height")),Re=Number.parseFloat(Gt)||EH(Q.value||(y==null?void 0:y.size)),at=Q.value||Re===g||g<=0?Re:g;!(lt.offsetParent===null)&&(lt.style.height=`${(t.selected.length===0?at:Math.max(It?It.clientHeight+(It.clientHeight>at?6:0):0,at))-2}px`),t.visible&&R.value!==!1&&((De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce))})},N=async Ce=>{if(!(t.previousQuery===Ce||t.isOnComposition)){if(t.previousQuery===null&&(ut(e.filterMethod)||ut(e.remoteMethod))){t.previousQuery=Ce;return}t.previousQuery=Ce,et(()=>{var De,lt;t.visible&&((lt=(De=c.value)==null?void 0:De.updatePopper)==null||lt.call(De))}),t.hoverIndex=-1,e.multiple&&e.filterable&&et(()=>{if(!M.value){const De=a.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,De):De,W()}X()}),e.remote&&ut(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Ce)):ut(e.filterMethod)?(e.filterMethod(Ce),Ri(h)):(t.filteredOptionsCount=t.optionsCount,m.value.query=Ce,Ri(m),Ri(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await et(),re())}},W=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},re=()=>{const Ce=D.value.filter(It=>It.visible&&!It.disabled&&!It.states.groupDisabled),De=Ce.find(It=>It.created),lt=Ce[0];t.hoverIndex=Ie(D.value,De||lt)},ie=()=>{var Ce;if(e.multiple)t.selectedLabel="";else{const lt=se(e.modelValue);(Ce=lt.props)!=null&&Ce.created?(t.createdLabel=lt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=lt.currentLabel,t.selected=lt,e.filterable&&(t.query=t.selectedLabel);return}const De=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(lt=>{De.push(se(lt))}),t.selected=De,et(()=>{X()})},se=Ce=>{let De;const lt=yc(Ce).toLowerCase()==="object",It=yc(Ce).toLowerCase()==="null",Gt=yc(Ce).toLowerCase()==="undefined";for(let bt=t.cachedOptions.size-1;bt>=0;bt--){const pt=j.value[bt];if(lt?oo(pt.value,e.valueKey)===oo(Ce,e.valueKey):pt.value===Ce){De={value:Ce,currentLabel:pt.currentLabel,isDisabled:pt.isDisabled};break}}if(De)return De;const Re=lt?Ce.label:!It&&!Gt?Ce:"",at={value:Ce,currentLabel:Re};return e.multiple&&(at.hitState=!1),at},ve=()=>{setTimeout(()=>{const Ce=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(De=>D.value.findIndex(lt=>oo(lt,Ce)===oo(De,Ce)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(De=>ee(De)===ee(t.selected))},300)},le=()=>{var Ce,De;ge(),(De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce),e.multiple&&X()},ge=()=>{var Ce;t.inputWidth=(Ce=n.value)==null?void 0:Ce.$el.offsetWidth},_e=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,N(t.query))},me=Zo(()=>{_e()},K.value),Be=Zo(Ce=>{N(Ce.target.value)},K.value),ye=Ce=>{ir(e.modelValue,Ce)||o.emit(Jt,Ce)},Me=Ce=>Zz(Ce,De=>!t.disabledOptions.has(De)),te=Ce=>{if(Ce.code!==tt.delete){if(Ce.target.value.length<=0&&!Pe()){const De=e.modelValue.slice(),lt=Me(De);if(lt<0)return;De.splice(lt,1),o.emit(kt,De),ye(De)}Ce.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},ce=(Ce,De)=>{const lt=t.selected.indexOf(De);if(lt>-1&&!M.value){const It=e.modelValue.slice();It.splice(lt,1),o.emit(kt,It),ye(It),o.emit("remove-tag",De.value)}Ce.stopPropagation(),We()},we=Ce=>{Ce.stopPropagation();const De=e.multiple?[]:"";if(!ft(De))for(const lt of t.selected)lt.isDisabled&&De.push(lt.value);o.emit(kt,De),ye(De),t.hoverIndex=-1,t.visible=!1,o.emit("clear"),We()},Ae=Ce=>{var De;if(e.multiple){const lt=(e.modelValue||[]).slice(),It=Ie(lt,Ce.value);It>-1?lt.splice(It,1):(e.multipleLimit<=0||lt.length{Ne(Ce)})},Ie=(Ce=[],De)=>{if(!Ct(De))return Ce.indexOf(De);const lt=e.valueKey;let It=-1;return Ce.some((Gt,Re)=>Vt(oo(Gt,lt))===oo(De,lt)?(It=Re,!0):!1),It},xe=()=>{const Ce=a.value||n.value;Ce&&(Ce==null||Ce.focus())},Ne=Ce=>{var De,lt,It,Gt,Re;const at=Array.isArray(Ce)?Ce[0]:Ce;let bt=null;if(at!=null&&at.value){const pt=D.value.filter(Xt=>Xt.value===at.value);pt.length>0&&(bt=pt[0].$el)}if(c.value&&bt){const pt=(Gt=(It=(lt=(De=c.value)==null?void 0:De.popperRef)==null?void 0:lt.contentRef)==null?void 0:It.querySelector)==null?void 0:Gt.call(It,`.${l.be("dropdown","wrap")}`);pt&&r3(pt,bt)}(Re=f.value)==null||Re.handleScroll()},Se=Ce=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Ce.value,Ce),t.cachedOptions.set(Ce.value,Ce),Ce.disabled&&t.disabledOptions.set(Ce.value,Ce)},ke=(Ce,De)=>{t.options.get(Ce)===De&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Ce))},$e=Ce=>{Ce.code!==tt.backspace&&Pe(!1),t.inputLength=a.value.value.length*15+20,X()},Pe=Ce=>{if(!Array.isArray(t.selected))return;const De=Me(t.selected.map(It=>It.value)),lt=t.selected[De];if(lt)return Ce===!0||Ce===!1?(lt.hitState=Ce,Ce):(lt.hitState=!lt.hitState,lt.hitState)},qe=Ce=>{const De=Ce.target.value;if(Ce.type==="compositionend")t.isOnComposition=!1,et(()=>N(De));else{const lt=De[De.length-1]||"";t.isOnComposition=!Iu(lt)}},Ke=()=>{et(()=>Ne(t.selected))},Ee=Ce=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,o.emit("focus",Ce))},We=()=>{var Ce,De;t.visible?(Ce=a.value||n.value)==null||Ce.focus():(De=n.value)==null||De.focus()},nt=()=>{var Ce,De,lt;t.visible=!1,(Ce=n.value)==null||Ce.blur(),(lt=(De=i.value)==null?void 0:De.blur)==null||lt.call(De)},dt=Ce=>{var De,lt,It;(De=c.value)!=null&&De.isFocusInsideContent(Ce)||(lt=u.value)!=null&<.isFocusInsideContent(Ce)||(It=d.value)!=null&&It.contains(Ce.relatedTarget)||(t.visible&&Y(),t.focused=!1,o.emit("blur",Ce))},gt=Ce=>{we(Ce)},Y=()=>{t.visible=!1},C=Ce=>{t.visible&&(Ce.preventDefault(),Ce.stopPropagation(),t.visible=!1)},S=Ce=>{Ce&&!t.mouseEnter||M.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!c.value||!c.value.isFocusInsideContent())&&(t.visible=!t.visible),We())},H=()=>{t.visible?D.value[t.hoverIndex]&&Ae(D.value[t.hoverIndex]):S()},ee=Ce=>Ct(Ce.value)?oo(Ce.value,e.valueKey):Ce.value,U=$(()=>D.value.filter(Ce=>Ce.visible).every(Ce=>Ce.disabled)),he=$(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),Ue=$(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),st=Ce=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!U.value){Ce==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Ce==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const De=D.value[t.hoverIndex];(De.disabled===!0||De.states.groupDisabled===!0||!De.visible)&&st(Ce),et(()=>Ne(v.value))}},At=()=>{t.mouseEnter=!0},Mt=()=>{t.mouseEnter=!1},Lt=(Ce,De)=>{var lt,It;ce(Ce,De),(It=(lt=u.value)==null?void 0:lt.updatePopper)==null||It.call(lt)},lo=$(()=>({maxWidth:`${s(t.inputWidth)-32-(F.value?22:0)}px`,width:"100%"}));return{optionList:_,optionsArray:D,hoverOption:v,selectSize:Q,handleResize:le,debouncedOnInputChange:me,debouncedQueryChange:Be,deletePrevTag:te,deleteTag:ce,deleteSelected:we,handleOptionSelect:Ae,scrollToOption:Ne,readonly:x,resetInputHeight:X,showClose:T,iconComponent:O,iconReverse:I,showNewOption:Z,collapseTagSize:J,setSelected:ie,managePlaceholder:W,selectDisabled:M,emptyText:R,toggleLastOptionHitState:Pe,resetInputState:$e,handleComposition:qe,onOptionCreate:Se,onOptionDestroy:ke,handleMenuEnter:Ke,handleFocus:Ee,focus:We,blur:nt,handleBlur:dt,handleClearClick:gt,handleClose:Y,handleKeydownEscape:C,toggleMenu:S,selectOption:H,getValueKey:ee,navigateOptions:st,handleDeleteTooltipTag:Lt,dropMenuVisible:L,queryChange:m,groupQueryChange:h,showTagList:he,collapseTagList:Ue,selectTagsStyle:lo,reference:n,input:a,iOSInput:i,tooltipRef:c,tagTooltipRef:u,tags:p,selectWrapper:d,scrollbar:f,handleMouseEnter:At,handleMouseLeave:Mt}};var YQ=B({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:o}){let r=[];function l(n,a){if(n.length!==a.length)return!1;for(const[i]of n.entries())if(n[i]!=a[i])return!1;return!0}return()=>{var n,a;const i=(n=t.default)==null?void 0:n.call(t),c=[];function u(p){Array.isArray(p)&&p.forEach(d=>{var f,v,m,h;const _=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;_==="ElOptionGroup"?u(!ft(d.children)&&!Array.isArray(d.children)&&ut((v=d.children)==null?void 0:v.default)?(m=d.children)==null?void 0:m.default():d.children):_==="ElOption"?c.push((h=d.props)==null?void 0:h.label):Array.isArray(d.children)&&u(d.children)})}return i.length&&u((a=i[0])==null?void 0:a.children),l(c,r)||(r=c,o("update-options",c)),i}}});const xw="ElSelect",GQ=B({name:xw,componentName:xw,components:{ElInput:Wo,ElSelectMenu:WQ,ElOption:Nh,ElOptions:YQ,ElTag:js,ElScrollbar:Kl,ElTooltip:er,ElIcon:Je},directives:{ClickOutside:Ul},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:d0},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Lo.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ut,default:Ll},fitInputWidth:Boolean,suffixIcon:{type:Ut,default:Bl},tagType:{..._h.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:na,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[kt,Jt,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const o=Oe("select"),r=Oe("input"),{t:l}=Nt(),n=dr(),a=UQ(e),{optionList:i,optionsArray:c,hoverOption:u,selectSize:p,readonly:d,handleResize:f,collapseTagSize:v,debouncedOnInputChange:m,debouncedQueryChange:h,deletePrevTag:_,deleteTag:g,deleteSelected:y,handleOptionSelect:w,scrollToOption:x,setSelected:M,resetInputHeight:T,managePlaceholder:O,showClose:I,selectDisabled:F,iconComponent:K,iconReverse:R,showNewOption:D,emptyText:j,toggleLastOptionHitState:Z,resetInputState:Q,handleComposition:J,onOptionCreate:L,onOptionDestroy:X,handleMenuEnter:N,handleFocus:W,focus:re,blur:ie,handleBlur:se,handleClearClick:ve,handleClose:le,handleKeydownEscape:ge,toggleMenu:_e,selectOption:me,getValueKey:Be,navigateOptions:ye,handleDeleteTooltipTag:Me,dropMenuVisible:te,reference:ce,input:we,iOSInput:Ae,tooltipRef:Ie,tagTooltipRef:xe,tags:Ne,selectWrapper:Se,scrollbar:ke,queryChange:$e,groupQueryChange:Pe,handleMouseEnter:qe,handleMouseLeave:Ke,showTagList:Ee,collapseTagList:We,selectTagsStyle:nt}=qQ(e,a,t),{inputWidth:dt,selected:gt,inputLength:Y,filteredOptionsCount:C,visible:S,selectedLabel:H,hoverIndex:ee,query:U,inputHovering:he,currentPlaceholder:Ue,menuVisibleOnFocus:st,isOnComposition:At,options:Mt,cachedOptions:Lt,optionsCount:lo,prefixWidth:Ce}=Ao(a),De=$(()=>{const no=[o.b()],ao=s(p);return ao&&no.push(o.m(ao)),e.disabled&&no.push(o.m("disabled")),no}),lt=$(()=>[o.e("tags"),o.is("disabled",s(F))]),It=$(()=>[o.b("tags-wrapper"),{"has-prefix":s(Ce)&&s(gt).length}]),Gt=$(()=>[o.e("input"),o.is(s(p)),o.is("disabled",s(F))]),Re=$(()=>[o.e("input"),o.is(s(p)),o.em("input","iOS")]),at=$(()=>[o.is("empty",!e.allowCreate&&!!s(U)&&s(C)===0)]),bt=$(()=>({maxWidth:`${s(dt)>123&&s(gt).length>e.maxCollapseTags?s(dt)-123:s(dt)-75}px`})),pt=$(()=>({marginLeft:`${s(Ce)}px`,flexGrow:1,width:`${s(Y)/(s(dt)-32)}%`,maxWidth:`${s(dt)-42}px`}));zt(Ys,Ft({props:e,options:Mt,optionsArray:c,cachedOptions:Lt,optionsCount:lo,filteredOptionsCount:C,hoverIndex:ee,handleOptionSelect:w,onOptionCreate:L,onOptionDestroy:X,selectWrapper:Se,selected:gt,setSelected:M,queryChange:$e,groupQueryChange:Pe})),vt(()=>{a.cachedPlaceHolder=Ue.value=e.placeholder||(()=>l("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Ue.value=""),jo(Se,f),e.remote&&e.multiple&&T(),et(()=>{const no=ce.value&&ce.value.$el;if(no&&(dt.value=no.getBoundingClientRect().width,t.slots.prefix)){const ao=no.querySelector(`.${r.e("prefix")}`);Ce.value=Math.max(ao.getBoundingClientRect().width+11,30)}}),M()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(kt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(kt,"");const Xt=$(()=>{var no,ao;return(ao=(no=Ie.value)==null?void 0:no.popperRef)==null?void 0:ao.contentRef});return{isIOS:E1,onOptionsRendered:no=>{i.value=no},prefixWidth:Ce,selectSize:p,readonly:d,handleResize:f,collapseTagSize:v,debouncedOnInputChange:m,debouncedQueryChange:h,deletePrevTag:_,deleteTag:g,handleDeleteTooltipTag:Me,deleteSelected:y,handleOptionSelect:w,scrollToOption:x,inputWidth:dt,selected:gt,inputLength:Y,filteredOptionsCount:C,visible:S,selectedLabel:H,hoverIndex:ee,query:U,inputHovering:he,currentPlaceholder:Ue,menuVisibleOnFocus:st,isOnComposition:At,options:Mt,resetInputHeight:T,managePlaceholder:O,showClose:I,selectDisabled:F,iconComponent:K,iconReverse:R,showNewOption:D,emptyText:j,toggleLastOptionHitState:Z,resetInputState:Q,handleComposition:J,handleMenuEnter:N,handleFocus:W,focus:re,blur:ie,handleBlur:se,handleClearClick:ve,handleClose:le,handleKeydownEscape:ge,toggleMenu:_e,selectOption:me,getValueKey:Be,navigateOptions:ye,dropMenuVisible:te,reference:ce,input:we,iOSInput:Ae,tooltipRef:Ie,popperPaneRef:Xt,tags:Ne,selectWrapper:Se,scrollbar:ke,wrapperKls:De,tagsKls:lt,tagWrapperKls:It,inputKls:Gt,iOSInputKls:Re,scrollbarKls:at,selectTagsStyle:nt,nsSelect:o,tagTextStyle:bt,inputStyle:pt,handleMouseEnter:qe,handleMouseLeave:Ke,showTagList:Ee,collapseTagList:We,tagTooltipRef:xe,contentId:n,hoverOption:u}}}),XQ=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],ZQ=["disabled"],JQ={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function QQ(e,t,o,r,l,n){const a=ot("el-tag"),i=ot("el-tooltip"),c=ot("el-icon"),u=ot("el-input"),p=ot("el-option"),d=ot("el-options"),f=ot("el-scrollbar"),v=ot("el-select-menu"),m=Di("click-outside");return ht((b(),z("div",{ref:"selectWrapper",class:P(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...h)=>e.handleMouseEnter&&e.handleMouseEnter(...h)),onMouseleave:t[23]||(t[23]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h)),onClick:t[24]||(t[24]=it((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[oe(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:ne(()=>{var h,_;return[E("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=g=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=g=>e.inputHovering=!1)},[e.multiple?(b(),z("div",{key:0,ref:"tags",tabindex:"-1",class:P(e.tagsKls),style:Qe(e.selectTagsStyle),onClick:t[15]||(t[15]=(...g)=>e.focus&&e.focus(...g))},[e.collapseTags&&e.selected.length?(b(),de(_o,{key:0,onAfterLeave:e.resetInputHeight},{default:ne(()=>[E("span",{class:P(e.tagWrapperKls)},[(b(!0),z(Ge,null,Tt(e.showTagList,g=>(b(),de(a,{key:e.getValueKey(g),closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,g)},{default:ne(()=>[E("span",{class:P(e.nsSelect.e("tags-text")),style:Qe(e.tagTextStyle)},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(b(),de(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ne(()=>[e.collapseTagsTooltip?(b(),de(i,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ne(()=>[E("span",{class:P(e.nsSelect.e("tags-text"))},"+ "+ze(e.selected.length-e.maxCollapseTags),3)]),content:ne(()=>[E("div",{class:P(e.nsSelect.e("collapse-tags"))},[(b(!0),z(Ge,null,Tt(e.collapseTagList,g=>(b(),z("div",{key:e.getValueKey(g),class:P(e.nsSelect.e("collapse-tag"))},[oe(a,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.handleDeleteTooltipTag(y,g)},{default:ne(()=>[E("span",{class:P(e.nsSelect.e("tags-text")),style:Qe({maxWidth:e.inputWidth-75+"px"})},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(b(),z("span",{key:1,class:P(e.nsSelect.e("tags-text"))},"+ "+ze(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ue("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ue("v-if",!0),e.collapseTags?ue("v-if",!0):(b(),de(_o,{key:1,onAfterLeave:e.resetInputHeight},{default:ne(()=>[E("span",{class:P(e.tagWrapperKls),style:Qe(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(b(!0),z(Ge,null,Tt(e.selected,g=>(b(),de(a,{key:e.getValueKey(g),closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,g)},{default:ne(()=>[E("span",{class:P(e.nsSelect.e("tags-text")),style:Qe({maxWidth:e.inputWidth-75+"px"})},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?ht((b(),z("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=g=>e.query=g),type:"text",class:P(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Qe(e.inputStyle),role:"combobox","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...g)=>e.handleFocus&&e.handleFocus(...g)),onBlur:t[2]||(t[2]=(...g)=>e.handleBlur&&e.handleBlur(...g)),onKeyup:t[3]||(t[3]=(...g)=>e.managePlaceholder&&e.managePlaceholder(...g)),onKeydown:[t[4]||(t[4]=(...g)=>e.resetInputState&&e.resetInputState(...g)),t[5]||(t[5]=Rt(it(g=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Rt(it(g=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Rt((...g)=>e.handleKeydownEscape&&e.handleKeydownEscape(...g),["esc"])),t[8]||(t[8]=Rt(it((...g)=>e.selectOption&&e.selectOption(...g),["stop","prevent"]),["enter"])),t[9]||(t[9]=Rt((...g)=>e.deletePrevTag&&e.deletePrevTag(...g),["delete"])),t[10]||(t[10]=Rt(g=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionupdate:t[12]||(t[12]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionend:t[13]||(t[13]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onInput:t[14]||(t[14]=(...g)=>e.debouncedQueryChange&&e.debouncedQueryChange(...g))},null,46,XQ)),[[of,e.query]]):ue("v-if",!0)],6)):ue("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(b(),z("input",{key:1,ref:"iOSInput",class:P(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,ZQ)):ue("v-if",!0),oe(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=g=>e.selectedLabel=g),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:P([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((_=e.hoverOption)==null?void 0:_.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Rt(it(g=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Rt(it(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Rt(it(e.selectOption,["stop","prevent"]),["enter"]),Rt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Rt(g=>e.visible=!1,["tab"]))]},Jr({suffix:ne(()=>[e.iconComponent&&!e.showClose?(b(),de(c,{key:0,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),e.showClose&&e.clearIcon?(b(),de(c,{key:1,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ne(()=>[(b(),de(St(e.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ne(()=>[E("div",JQ,[be(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:ne(()=>[oe(v,null,Jr({default:ne(()=>[ht(oe(f,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:P(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ne(()=>[e.showNewOption?(b(),de(p,{key:0,value:e.query,created:!0},null,8,["value"])):ue("v-if",!0),oe(d,{onUpdateOptions:e.onOptionsRendered},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Pt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(b(),z(Ge,{key:0},[e.$slots.empty?be(e.$slots,"empty",{key:0}):(b(),z("p",{key:1,class:P(e.nsSelect.be("dropdown","empty"))},ze(e.emptyText),3))],64)):ue("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:ne(()=>[be(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:ne(()=>[be(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var eee=Fe(GQ,[["render",QQ],["__file","select.vue"]]);const tee=B({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Oe("select"),o=V(!0),r=_t(),l=V([]);zt(yw,Ft({...Ao(e)}));const n=Le(Ys);vt(()=>{l.value=a(r.subTree)});const a=c=>{const u=[];return Array.isArray(c.children)&&c.children.forEach(p=>{var d;p.type&&p.type.name==="ElOption"&&p.component&&p.component.proxy?u.push(p.component.proxy):(d=p.children)!=null&&d.length&&u.push(...a(p))}),u},{groupQueryChange:i}=Vt(n);return Te(i,()=>{o.value=l.value.some(c=>c.visible===!0)},{flush:"post"}),{visible:o,ns:t}}});function oee(e,t,o,r,l,n){return ht((b(),z("ul",{class:P(e.ns.be("group","wrap"))},[E("li",{class:P(e.ns.be("group","title"))},ze(e.label),3),E("li",null,[E("ul",{class:P(e.ns.b("group"))},[be(e.$slots,"default")],2)])],2)),[[Pt,e.visible]])}var kw=Fe(tee,[["render",oee],["__file","option-group.vue"]]);const ha=xt(eee,{Option:Nh,OptionGroup:kw}),yd=fo(Nh),ree=fo(kw),Lh=()=>Le(ww,{}),lee=He({pageSize:{type:Number,required:!0},pageSizes:{type:pe(Array),default:()=>ro([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:il}}),nee=B({...B({name:"ElPaginationSizes"}),props:lee,emits:["page-size-change"],setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Oe("pagination"),n=Lh(),a=V(o.pageSize);Te(()=>o.pageSizes,(u,p)=>{if(!ir(u,p)&&Array.isArray(u)){const d=u.includes(o.pageSize)?o.pageSize:o.pageSizes[0];t("page-size-change",d)}}),Te(()=>o.pageSize,u=>{a.value=u});const i=$(()=>o.pageSizes);function c(u){var p;u!==a.value&&(a.value=u,(p=n.handleSizeChange)==null||p.call(n,Number(u)))}return(u,p)=>(b(),z("span",{class:P(s(l).e("sizes"))},[oe(s(ha),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:c},{default:ne(()=>[(b(!0),z(Ge,null,Tt(s(i),d=>(b(),de(s(yd),{key:d,value:d,label:d+s(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var aee=Fe(nee,[["__file","sizes.vue"]]);const iee=He({size:{type:String,values:il}}),see=["disabled"],cee=B({...B({name:"ElPaginationJumper"}),props:iee,setup(e){const{t}=Nt(),o=Oe("pagination"),{pageCount:r,disabled:l,currentPage:n,changeEvent:a}=Lh(),i=V(),c=$(()=>{var d;return(d=i.value)!=null?d:n==null?void 0:n.value});function u(d){i.value=d?+d:""}function p(d){d=Math.trunc(+d),a==null||a(d),i.value=void 0}return(d,f)=>(b(),z("span",{class:P(s(o).e("jump")),disabled:s(l)},[E("span",{class:P([s(o).e("goto")])},ze(s(t)("el.pagination.goto")),3),oe(s(Wo),{size:d.size,class:P([s(o).e("editor"),s(o).is("in-pagination")]),min:1,max:s(r),disabled:s(l),"model-value":s(c),"validate-event":!1,label:s(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:p},null,8,["size","class","max","disabled","model-value","label"]),E("span",{class:P([s(o).e("classifier")])},ze(s(t)("el.pagination.pageClassifier")),3)],10,see))}});var uee=Fe(cee,[["__file","jumper.vue"]]);const dee=He({total:{type:Number,default:1e3}}),pee=["disabled"],fee=B({...B({name:"ElPaginationTotal"}),props:dee,setup(e){const{t}=Nt(),o=Oe("pagination"),{disabled:r}=Lh();return(l,n)=>(b(),z("span",{class:P(s(o).e("total")),disabled:s(r)},ze(s(t)("el.pagination.total",{total:l.total})),11,pee))}});var hee=Fe(fee,[["__file","total.vue"]]);const vee=He({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),mee=["onKeyup"],gee=["aria-current","aria-label","tabindex"],bee=["tabindex","aria-label"],_ee=["aria-current","aria-label","tabindex"],wee=["tabindex","aria-label"],yee=["aria-current","aria-label","tabindex"],xee=B({...B({name:"ElPaginationPager"}),props:vee,emits:["change"],setup(e,{emit:t}){const o=e,r=Oe("pager"),l=Oe("icon"),{t:n}=Nt(),a=V(!1),i=V(!1),c=V(!1),u=V(!1),p=V(!1),d=V(!1),f=$(()=>{const x=o.pagerCount,M=(x-1)/2,T=Number(o.currentPage),O=Number(o.pageCount);let I=!1,F=!1;O>x&&(T>x-M&&(I=!0),T["more","btn-quickprev",l.b(),r.is("disabled",o.disabled)]),m=$(()=>["more","btn-quicknext",l.b(),r.is("disabled",o.disabled)]),h=$(()=>o.disabled?-1:0);lr(()=>{const x=(o.pagerCount-1)/2;a.value=!1,i.value=!1,o.pageCount>o.pagerCount&&(o.currentPage>o.pagerCount-x&&(a.value=!0),o.currentPageO&&(T=O)),T!==I&&t("change",T)}return(x,M)=>(b(),z("ul",{class:P(s(r).b()),onClick:w,onKeyup:Rt(y,["enter"])},[x.pageCount>0?(b(),z("li",{key:0,class:P([[s(r).is("active",x.currentPage===1),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":s(n)("el.pagination.currentPage",{pager:1}),tabindex:s(h)}," 1 ",10,gee)):ue("v-if",!0),a.value?(b(),z("li",{key:1,class:P(s(v)),tabindex:s(h),"aria-label":s(n)("el.pagination.prevPages",{pager:x.pagerCount-2}),onMouseenter:M[0]||(M[0]=T=>_(!0)),onMouseleave:M[1]||(M[1]=T=>c.value=!1),onFocus:M[2]||(M[2]=T=>g(!0)),onBlur:M[3]||(M[3]=T=>p.value=!1)},[(c.value||p.value)&&!x.disabled?(b(),de(s(ta),{key:0})):(b(),de(s(l0),{key:1}))],42,bee)):ue("v-if",!0),(b(!0),z(Ge,null,Tt(s(f),T=>(b(),z("li",{key:T,class:P([[s(r).is("active",x.currentPage===T),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===T,"aria-label":s(n)("el.pagination.currentPage",{pager:T}),tabindex:s(h)},ze(T),11,_ee))),128)),i.value?(b(),z("li",{key:2,class:P(s(m)),tabindex:s(h),"aria-label":s(n)("el.pagination.nextPages",{pager:x.pagerCount-2}),onMouseenter:M[4]||(M[4]=T=>_()),onMouseleave:M[5]||(M[5]=T=>u.value=!1),onFocus:M[6]||(M[6]=T=>g()),onBlur:M[7]||(M[7]=T=>d.value=!1)},[(u.value||d.value)&&!x.disabled?(b(),de(s(oa),{key:0})):(b(),de(s(l0),{key:1}))],42,wee)):ue("v-if",!0),x.pageCount>1?(b(),z("li",{key:3,class:P([[s(r).is("active",x.currentPage===x.pageCount),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":s(n)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:s(h)},ze(x.pageCount),11,yee)):ue("v-if",!0)],42,mee))}});var kee=Fe(xee,[["__file","pager.vue"]]);const tr=e=>typeof e!="number",Cee=He({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ct(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:pe(Array),default:()=>ro([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Ut,default:()=>Nl},nextText:{type:String,default:""},nextIcon:{type:Ut,default:()=>Ko},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),See={"update:current-page":e=>ct(e),"update:page-size":e=>ct(e),"size-change":e=>ct(e),change:(e,t)=>ct(e)&&ct(t),"current-change":e=>ct(e),"prev-click":e=>ct(e),"next-click":e=>ct(e)},Cw="ElPagination";var Eee=B({name:Cw,props:Cee,emits:See,setup(e,{emit:t,slots:o}){const{t:r}=Nt(),l=Oe("pagination"),n=_t().vnode.props||{},a="onUpdate:currentPage"in n||"onUpdate:current-page"in n||"onCurrentChange"in n,i="onUpdate:pageSize"in n||"onUpdate:page-size"in n||"onSizeChange"in n,c=$(()=>{if(tr(e.total)&&tr(e.pageCount)||!tr(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(tr(e.pageCount)){if(!tr(e.total)&&!tr(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),u=V(tr(e.defaultPageSize)?10:e.defaultPageSize),p=V(tr(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=$({get(){return tr(e.pageSize)?u.value:e.pageSize},set(w){tr(e.pageSize)&&(u.value=w),i&&(t("update:page-size",w),t("size-change",w))}}),f=$(()=>{let w=0;return tr(e.pageCount)?tr(e.total)||(w=Math.max(1,Math.ceil(e.total/d.value))):w=e.pageCount,w}),v=$({get(){return tr(e.currentPage)?p.value:e.currentPage},set(w){let x=w;w<1?x=1:w>f.value&&(x=f.value),tr(e.currentPage)&&(p.value=x),a&&(t("update:current-page",x),t("current-change",x))}});Te(f,w=>{v.value>w&&(v.value=w)}),Te([v,d],w=>{t("change",...w)},{flush:"post"});function m(w){v.value=w}function h(w){d.value=w;const x=f.value;v.value>x&&(v.value=x)}function _(){e.disabled||(v.value-=1,t("prev-click",v.value))}function g(){e.disabled||(v.value+=1,t("next-click",v.value))}function y(w,x){w&&(w.props||(w.props={}),w.props.class=[w.props.class,x].join(" "))}return zt(ww,{pageCount:f,disabled:$(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:h}),()=>{var w,x;if(!c.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const M=[],T=[],O=rt("div",{class:l.e("rightwrapper")},T),I={prev:rt(OQ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:_}),jumper:rt(uee,{size:e.small?"small":"default"}),pager:rt(kee,{currentPage:v.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:rt(RQ,{disabled:e.disabled,currentPage:v.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:g}),sizes:rt(aee,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(x=(w=o==null?void 0:o.default)==null?void 0:w.call(o))!=null?x:null,total:rt(hee,{total:tr(e.total)?0:e.total})},F=e.layout.split(",").map(R=>R.trim());let K=!1;return F.forEach(R=>{if(R==="->"){K=!0;return}K?T.push(I[R]):M.push(I[R])}),y(M[0],l.is("first")),y(M[M.length-1],l.is("last")),K&&T.length>0&&(y(T[0],l.is("first")),y(T[T.length-1],l.is("last")),M.push(O)),rt("div",{class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},M)}}});const $ee=xt(Eee),Tee=He({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Y0,default:"primary"},cancelButtonType:{type:String,values:Y0,default:"text"},icon:{type:Ut,default:()=>v3},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Lo.teleported,persistent:Lo.persistent,width:{type:[String,Number],default:150}}),zee=B({...B({name:"ElPopconfirm"}),props:Tee,emits:{confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Oe("popconfirm"),n=V(),a=()=>{var f,v;(v=(f=n.value)==null?void 0:f.onClose)==null||v.call(f)},i=$(()=>({width:bo(o.width)})),c=f=>{t("confirm",f),a()},u=f=>{t("cancel",f),a()},p=$(()=>o.confirmButtonText||r("el.popconfirm.confirmButtonText")),d=$(()=>o.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(f,v)=>(b(),de(s(er),Et({ref_key:"tooltipRef",ref:n,trigger:"click",effect:"light"},f.$attrs,{"popper-class":`${s(l).namespace.value}-popover`,"popper-style":s(i),teleported:f.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":f.hideAfter,persistent:f.persistent}),{content:ne(()=>[E("div",{class:P(s(l).b())},[E("div",{class:P(s(l).e("main"))},[!f.hideIcon&&f.icon?(b(),de(s(Je),{key:0,class:P(s(l).e("icon")),style:Qe({color:f.iconColor})},{default:ne(()=>[(b(),de(St(f.icon)))]),_:1},8,["class","style"])):ue("v-if",!0),$t(" "+ze(f.title),1)],2),E("div",{class:P(s(l).e("action"))},[oe(s(Vo),{size:"small",type:f.cancelButtonType==="text"?"":f.cancelButtonType,text:f.cancelButtonType==="text",onClick:u},{default:ne(()=>[$t(ze(s(d)),1)]),_:1},8,["type","text"]),oe(s(Vo),{size:"small",type:f.confirmButtonType==="text"?"":f.confirmButtonType,text:f.confirmButtonType==="text",onClick:c},{default:ne(()=>[$t(ze(s(p)),1)]),_:1},8,["type","text"])],2)],2)]),default:ne(()=>[f.$slots.reference?be(f.$slots,"reference",{key:0}):ue("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Mee=Fe(zee,[["__file","popconfirm.vue"]]);const Aee=xt(Mee),Iee=He({trigger:Ds.trigger,placement:bd.placement,disabled:Ds.disabled,visible:Lo.visible,transition:Lo.transition,popperOptions:bd.popperOptions,tabindex:bd.tabindex,content:Lo.content,popperStyle:Lo.popperStyle,popperClass:Lo.popperClass,enterable:{...Lo.enterable,default:!0},effect:{...Lo.effect,default:"light"},teleported:Lo.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Oee={"update:visible":e=>Co(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Pee="onUpdate:visible",Bee=B({...B({name:"ElPopover"}),props:Iee,emits:Oee,setup(e,{expose:t,emit:o}){const r=e,l=$(()=>r[Pee]),n=Oe("popover"),a=V(),i=$(()=>{var _;return(_=s(a))==null?void 0:_.popperRef}),c=$(()=>[{width:bo(r.width)},r.popperStyle]),u=$(()=>[n.b(),r.popperClass,{[n.m("plain")]:!!r.content}]),p=$(()=>r.transition===`${n.namespace.value}-fade-in-linear`),d=()=>{var _;(_=a.value)==null||_.hide()},f=()=>{o("before-enter")},v=()=>{o("before-leave")},m=()=>{o("after-enter")},h=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:i,hide:d}),(_,g)=>(b(),de(s(er),Et({ref_key:"tooltipRef",ref:a},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":s(u),"popper-style":s(c),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":s(p),"onUpdate:visible":s(l),onBeforeShow:f,onBeforeHide:v,onShow:m,onHide:h}),{content:ne(()=>[_.title?(b(),z("div",{key:0,class:P(s(n).e("title")),role:"title"},ze(_.title),3)):ue("v-if",!0),be(_.$slots,"default",{},()=>[$t(ze(_.content),1)])]),default:ne(()=>[_.$slots.reference?be(_.$slots,"reference",{key:0}):ue("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Nee=Fe(Bee,[["__file","popover.vue"]]);const Sw=(e,t)=>{const o=t.arg||t.value,r=o==null?void 0:o.popperRef;r&&(r.triggerRef=e)};var Lee={mounted(e,t){Sw(e,t)},updated(e,t){Sw(e,t)}};const Ew=kH(Lee,"popover"),Ree=xt(Nee,{directive:Ew}),Vee=He({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:pe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:pe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:pe(Function),default:e=>`${e}%`}}),Hee=["aria-valuenow"],Fee={viewBox:"0 0 100 100"},Dee=["d","stroke","stroke-linecap","stroke-width"],jee=["d","stroke","opacity","stroke-linecap","stroke-width"],Kee={key:0},Wee=B({...B({name:"ElProgress"}),props:Vee,setup(e){const t=e,o={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Oe("progress"),l=$(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),n=$(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=$(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(n.value)/2}`,10):0),i=$(()=>{const w=a.value,x=t.type==="dashboard";return` + `),Qq]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(b(),de(u,{key:2,class:P(e.ns.e("prefix"))},{default:ne(()=>[oe(c)]),_:1},8,["class"])):ue("v-if",!0),ue(" content "),oe(d),ue(" postfix "),e.isLeaf?ue("v-if",!0):(b(),z(Xe,{key:3},[e.node.loading?(b(),de(u,{key:0,class:P([e.ns.is("loading"),e.ns.e("postfix")])},{default:ne(()=>[oe(p)]),_:1},8,["class"])):(b(),de(u,{key:1,class:P(["arrow-right",e.ns.e("postfix")])},{default:ne(()=>[oe(f)]),_:1},8,["class"]))],64))],42,Jq)}var tY=Fe(Zq,[["render",eY],["__file","node.vue"]]);const oY=B({name:"ElCascaderMenu",components:{Loading:Rl,ElIcon:Je,ElScrollbar:Kl,ElCascaderNode:tY},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=_t(),o=Ie("cascader-menu"),{t:r}=Nt(),l=Lu();let n=null,a=null;const i=Le(xh),c=V(null),u=T(()=>!e.nodes.length),d=T(()=>!i.initialLoaded),p=T(()=>`cascader-menu-${l}-${e.index}`),f=_=>{n=_.target},v=_=>{if(!(!i.isHoverMenu||!n||!c.value))if(n.contains(_.target)){m();const g=t.vnode.el,{left:y}=g.getBoundingClientRect(),{offsetWidth:w,offsetHeight:x}=g,M=_.clientX-y,E=n.offsetTop,I=E+n.offsetHeight;c.value.innerHTML=` + + + `}else a||(a=window.setTimeout(h,i.config.hoverThreshold))},m=()=>{a&&(clearTimeout(a),a=null)},h=()=>{c.value&&(c.value.innerHTML="",m())};return{ns:o,panel:i,hoverZone:c,isEmpty:u,isLoading:d,menuId:p,t:r,handleExpand:f,handleMouseMove:v,clearHoverZone:h}}});function rY(e,t,o,r,l,n){const a=ot("el-cascader-node"),i=ot("loading"),c=ot("el-icon"),u=ot("el-scrollbar");return b(),de(u,{key:e.menuId,tag:"ul",role:"menu",class:P(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ne(()=>{var d;return[(b(!0),z(Xe,null,Tt(e.nodes,p=>(b(),de(a,{key:p.uid,node:p,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(b(),z("div",{key:0,class:P(e.ns.e("empty-text"))},[oe(c,{size:"14",class:P(e.ns.is("loading"))},{default:ne(()=>[oe(i)]),_:1},8,["class"]),$t(" "+ze(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(b(),z("div",{key:1,class:P(e.ns.e("empty-text"))},ze(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(b(),z("svg",{key:2,ref:"hoverZone",class:P(e.ns.e("hover-zone"))},null,2)):ue("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var lY=Fe(oY,[["render",rY],["__file","menu.vue"]]);let nY=0;const aY=e=>{const t=[e];let{parent:o}=e;for(;o;)t.unshift(o),o=o.parent;return t};let kh=class T2{constructor(t,o,r,l=!1){this.data=t,this.config=o,this.parent=r,this.root=l,this.uid=nY++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:n,label:a,children:i}=o,c=t[i],u=aY(this);this.level=l?0:r?r.level+1:1,this.value=t[n],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=c,this.children=(c||[]).map(d=>new T2(d,o,this)),this.loaded=!o.lazy||this.isLeaf||!Tr(c)}get isDisabled(){const{data:t,parent:o,config:r}=this,{disabled:l,checkStrictly:n}=r;return(ut(l)?l(t,this):!!t[l])||!n&&(o==null?void 0:o.isDisabled)}get isLeaf(){const{data:t,config:o,childrenData:r,loaded:l}=this,{lazy:n,leaf:a}=o,i=ut(a)?a(t,this):t[a];return ko(i)?n&&!l?!1:!(Array.isArray(r)&&r.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:o,children:r}=this,l=new T2(t,this.config,this);return Array.isArray(o)?o.push(t):this.childrenData=[t],r.push(l),l}calcText(t,o){const r=t?this.pathLabels.join(o):this.label;return this.text=r,r}broadcast(t,...o){const r=`onParent${al(t)}`;this.children.forEach(l=>{l&&(l.broadcast(t,...o),l[r]&&l[r](...o))})}emit(t,...o){const{parent:r}=this,l=`onChild${al(t)}`;r&&(r[l]&&r[l](...o),r.emit(t,...o))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,o=t.filter(l=>!l.isDisabled),r=o.length?o.every(l=>l.checked):!1;this.setCheckState(r)}setCheckState(t){const o=this.children.length,r=this.children.reduce((l,n)=>{const a=n.checked?1:n.indeterminate?.5:0;return l+a},0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled).every(l=>l.loaded&&l.checked)&&t,this.indeterminate=this.loaded&&r!==o&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:o,multiple:r}=this.config;o||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Ch=(e,t)=>e.reduce((o,r)=>(r.isLeaf?o.push(r):(!t&&o.push(r),o=o.concat(Ch(r.children,t))),o),[]);class O4{constructor(t,o){this.config=o;const r=(t||[]).map(l=>new kh(l,this.config));this.nodes=r,this.allNodes=Ch(r,!1),this.leafNodes=Ch(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,o){const r=o?o.appendChild(t):new kh(t,this.config);o||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,o){t.forEach(r=>this.appendNode(r,o))}getNodeByValue(t,o=!1){return!t&&t!==0?null:this.getFlattedNodes(o).find(l=>ir(l.value,t)||ir(l.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:l})=>ir(t.value,r)&&t.level===l)||null}}const I4=He({modelValue:{type:pe([Number,String,Array])},options:{type:pe(Array),default:()=>[]},props:{type:pe(Object),default:()=>({})}}),iY={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:jt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},sY=e=>T(()=>({...iY,...e.props})),P4=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},cY=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():z1(e)&&e.click()},uY=(e,t)=>{const o=t.slice(0),r=o.map(n=>n.uid),l=e.reduce((n,a)=>{const i=r.indexOf(a.uid);return i>-1&&(n.push(a),o.splice(i,1),r.splice(i,1)),n},[]);return l.push(...o),l},dY=B({name:"ElCascaderPanel",components:{ElCascaderMenu:lY},props:{...I4,border:{type:Boolean,default:!0},renderLabel:Function},emits:[kt,Jt,"close","expand-change"],setup(e,{emit:t,slots:o}){let r=!1;const l=Ie("cascader"),n=sY(e);let a=null;const i=V(!0),c=V([]),u=V(null),d=V([]),p=V(null),f=V([]),v=T(()=>n.value.expandTrigger==="hover"),m=T(()=>e.renderLabel||o.default),h=()=>{const{options:D}=e,j=n.value;r=!1,a=new O4(D,j),d.value=[a.getNodes()],j.lazy&&Tr(e.options)?(i.value=!1,_(void 0,Z=>{Z&&(a=new O4(Z,j),d.value=[a.getNodes()]),i.value=!0,O(!1,!0)})):O(!1,!0)},_=(D,j)=>{const Z=n.value;D=D||new kh({},Z,void 0,!0),D.loading=!0;const Q=J=>{const L=D,X=L.root?null:L;J&&(a==null||a.appendNodes(J,X)),L.loading=!1,L.loaded=!0,L.childrenData=L.childrenData||[],j&&j(J)};Z.lazyLoad(D,Q)},g=(D,j)=>{var Z;const{level:Q}=D,J=d.value.slice(0,Q);let L;D.isLeaf?L=D.pathNodes[Q-2]:(L=D,J.push(D.children)),((Z=p.value)==null?void 0:Z.uid)!==(L==null?void 0:L.uid)&&(p.value=D,d.value=J,!j&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},y=(D,j,Z=!0)=>{const{checkStrictly:Q,multiple:J}=n.value,L=f.value[0];r=!0,!J&&(L==null||L.doCheck(!1)),D.doCheck(j),I(),Z&&!J&&!Q&&t("close"),!Z&&!J&&!Q&&w(D)},w=D=>{D&&(D=D.parent,w(D),D&&g(D))},x=D=>a==null?void 0:a.getFlattedNodes(D),M=D=>{var j;return(j=x(D))==null?void 0:j.filter(Z=>Z.checked!==!1)},E=()=>{f.value.forEach(D=>D.doCheck(!1)),I(),d.value=d.value.slice(0,1),p.value=null,t("expand-change",[])},I=()=>{var D;const{checkStrictly:j,multiple:Z}=n.value,Q=f.value,J=M(!j),L=uY(Q,J),X=L.map(N=>N.valueByOption);f.value=L,u.value=Z?X:(D=X[0])!=null?D:null},O=(D=!1,j=!1)=>{const{modelValue:Z}=e,{lazy:Q,multiple:J,checkStrictly:L}=n.value,X=!L;if(!(!i.value||r||!j&&ir(Z,u.value)))if(Q&&!D){const W=V3(CM(Vl(Z))).map(re=>a==null?void 0:a.getNodeByValue(re)).filter(re=>!!re&&!re.loaded&&!re.loading);W.length?W.forEach(re=>{_(re,()=>O(!1,j))}):O(!0,j)}else{const N=J?Vl(Z):[Z],W=V3(N.map(re=>a==null?void 0:a.getNodeByValue(re,X)));F(W,j),u.value=Su(Z)}},F=(D,j=!0)=>{const{checkStrictly:Z}=n.value,Q=f.value,J=D.filter(N=>!!N&&(Z||N.isLeaf)),L=a==null?void 0:a.getSameNode(p.value),X=j&&L||J[0];X?X.pathNodes.forEach(N=>g(N,!0)):p.value=null,Q.forEach(N=>N.doCheck(!1)),e.props.multiple?Ft(J).forEach(N=>N.doCheck(!0)):J.forEach(N=>N.doCheck(!0)),f.value=J,et(K)},K=()=>{Bt&&c.value.forEach(D=>{const j=D==null?void 0:D.$el;if(j){const Z=j.querySelector(`.${l.namespace.value}-scrollbar__wrap`),Q=j.querySelector(`.${l.b("node")}.${l.is("active")}`)||j.querySelector(`.${l.b("node")}.in-active-path`);f3(Z,Q)}})},R=D=>{const j=D.target,{code:Z}=D;switch(Z){case tt.up:case tt.down:{D.preventDefault();const Q=Z===tt.up?-1:1;mu(M1(j,Q,`.${l.b("node")}[tabindex="-1"]`));break}case tt.left:{D.preventDefault();const Q=c.value[P4(j)-1],J=Q==null?void 0:Q.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`);mu(J);break}case tt.right:{D.preventDefault();const Q=c.value[P4(j)+1],J=Q==null?void 0:Q.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`);mu(J);break}case tt.enter:cY(j);break}};return zt(xh,Ft({config:n,expandingNode:p,checkedNodes:f,isHoverMenu:v,initialLoaded:i,renderLabelFn:m,lazyLoad:_,expandNode:g,handleCheckChange:y})),Te([n,()=>e.options],h,{deep:!0,immediate:!0}),Te(()=>e.modelValue,()=>{r=!1,O()},{deep:!0}),Te(()=>u.value,D=>{ir(D,e.modelValue)||(t(kt,D),t(Jt,D))}),$m(()=>c.value=[]),vt(()=>!Tr(e.modelValue)&&O()),{ns:l,menuList:c,menus:d,checkedNodes:f,handleKeyDown:R,handleCheckChange:y,getFlattedNodes:x,getCheckedNodes:M,clearCheckedNodes:E,calculateCheckedValue:I,scrollToExpandingNode:K}}});function pY(e,t,o,r,l,n){const a=ot("el-cascader-menu");return b(),z("div",{class:P([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...i)=>e.handleKeyDown&&e.handleKeyDown(...i))},[(b(!0),z(Xe,null,Tt(e.menus,(i,c)=>(b(),de(a,{key:c,ref_for:!0,ref:u=>e.menuList[c]=u,index:c,nodes:[...i]},null,8,["index","nodes"]))),128))],34)}var fd=Fe(dY,[["render",pY],["__file","index.vue"]]);fd.install=e=>{e.component(fd.name,fd)};const B4=fd,fY=B4,Sh=He({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:sl,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),hY=B({...B({name:"ElTag"}),props:Sh,emits:{close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,r=Eo(),l=Ie("tag"),n=T(()=>{const{type:c,hit:u,effect:d,closable:p,round:f}=o;return[l.b(),l.is("closable",p),l.m(c),l.m(r.value),l.m(d),l.is("hit",u),l.is("round",f)]}),a=c=>{t("close",c)},i=c=>{t("click",c)};return(c,u)=>c.disableTransitions?(b(),z("span",{key:0,class:P(s(n)),style:Qe({backgroundColor:c.color}),onClick:i},[$("span",{class:P(s(l).e("content"))},[be(c.$slots,"default")],2),c.closable?(b(),de(s(Je),{key:0,class:P(s(l).e("close")),onClick:it(a,["stop"])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class","onClick"])):ue("v-if",!0)],6)):(b(),de(_o,{key:1,name:`${s(l).namespace.value}-zoom-in-center`,appear:""},{default:ne(()=>[$("span",{class:P(s(n)),style:Qe({backgroundColor:c.color}),onClick:i},[$("span",{class:P(s(l).e("content"))},[be(c.$slots,"default")],2),c.closable?(b(),de(s(Je),{key:0,class:P(s(l).e("close")),onClick:it(a,["stop"])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class","onClick"])):ue("v-if",!0)],6)]),_:3},8,["name"]))}});var vY=Fe(hY,[["__file","tag.vue"]]);const js=xt(vY),mY=He({...I4,size:No,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:pe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:pe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Lo.teleported,tagType:{...Sh.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),gY={[kt]:e=>!!e||e===null,[Jt]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Co(e),expandChange:e=>!!e,removeTag:e=>!!e},bY={key:0},_Y=["placeholder","onKeydown"],wY=["onClick"],yY=B({...B({name:"ElCascader"}),props:mY,emits:gY,setup(e,{expose:t,emit:o}){const r=e,l={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:S})=>{const{modifiersData:H,placement:ee}=S;["right","left","bottom","top"].includes(ee)||(H.arrow.x=35)},requires:["arrow"]}]},n=Hn();let a=0,i=0;const c=Ie("cascader"),u=Ie("input"),{t:d}=Nt(),{form:p,formItem:f}=Qo(),v=V(null),m=V(null),h=V(null),_=V(null),g=V(null),y=V(!1),w=V(!1),x=V(!1),M=V(!1),E=V(""),I=V(""),O=V([]),F=V([]),K=V([]),R=V(!1),D=T(()=>n.style),j=T(()=>r.disabled||(p==null?void 0:p.disabled)),Z=T(()=>r.placeholder||d("el.cascader.placeholder")),Q=T(()=>I.value||O.value.length>0||R.value?"":Z.value),J=Eo(),L=T(()=>["small"].includes(J.value)?"small":"default"),X=T(()=>!!r.props.multiple),N=T(()=>!r.filterable||X.value),W=T(()=>X.value?I.value:E.value),re=T(()=>{var S;return((S=_.value)==null?void 0:S.checkedNodes)||[]}),ie=T(()=>!r.clearable||j.value||x.value||!w.value?!1:!!re.value.length),se=T(()=>{const{showAllLevels:S,separator:H}=r,ee=re.value;return ee.length?X.value?"":ee[0].calcText(S,H):""}),ve=T({get(){return Su(r.modelValue)},set(S){o(kt,S),o(Jt,S),r.validateEvent&&(f==null||f.validate("change").catch(H=>void 0))}}),le=T(()=>[c.b(),c.m(J.value),c.is("disabled",j.value),n.class]),ge=T(()=>[u.e("icon"),"icon-arrow-down",c.is("reverse",y.value)]),_e=T(()=>c.is("focus",y.value||M.value)),me=T(()=>{var S,H;return(H=(S=v.value)==null?void 0:S.popperRef)==null?void 0:H.contentRef}),Be=S=>{var H,ee,U;j.value||(S=S??!y.value,S!==y.value&&(y.value=S,(ee=(H=m.value)==null?void 0:H.input)==null||ee.setAttribute("aria-expanded",`${S}`),S?(ye(),et((U=_.value)==null?void 0:U.scrollToExpandingNode)):r.filterable&&Ye(),o("visibleChange",S)))},ye=()=>{et(()=>{var S;(S=v.value)==null||S.updatePopper()})},Me=()=>{x.value=!1},te=S=>{const{showAllLevels:H,separator:ee}=r;return{node:S,key:S.uid,text:S.calcText(H,ee),hitState:!1,closable:!j.value&&!S.isDisabled,isCollapseTag:!1}},ce=S=>{var H;const ee=S.node;ee.doCheck(!1),(H=_.value)==null||H.calculateCheckedValue(),o("removeTag",ee.valueByOption)},we=()=>{if(!X.value)return;const S=re.value,H=[],ee=[];if(S.forEach(U=>ee.push(te(U))),F.value=ee,S.length){S.slice(0,r.maxCollapseTags).forEach(qe=>H.push(te(qe)));const U=S.slice(r.maxCollapseTags),he=U.length;he&&(r.collapseTags?H.push({key:-1,text:`+ ${he}`,closable:!1,isCollapseTag:!0}):U.forEach(qe=>H.push(te(qe))))}O.value=H},Ae=()=>{var S,H;const{filterMethod:ee,showAllLevels:U,separator:he}=r,qe=(H=(S=_.value)==null?void 0:S.getFlattedNodes(!r.props.checkStrictly))==null?void 0:H.filter(st=>st.isDisabled?!1:(st.calcText(U,he),ee(st,W.value)));X.value&&(O.value.forEach(st=>{st.hitState=!1}),F.value.forEach(st=>{st.hitState=!1})),x.value=!0,K.value=qe,ye()},Oe=()=>{var S;let H;x.value&&g.value?H=g.value.$el.querySelector(`.${c.e("suggestion-item")}`):H=(S=_.value)==null?void 0:S.$el.querySelector(`.${c.b("node")}[tabindex="-1"]`),H&&(H.focus(),!x.value&&H.click())},xe=()=>{var S,H;const ee=(S=m.value)==null?void 0:S.input,U=h.value,he=(H=g.value)==null?void 0:H.$el;if(!(!Bt||!ee)){if(he){const qe=he.querySelector(`.${c.e("suggestion-list")}`);qe.style.minWidth=`${ee.offsetWidth}px`}if(U){const{offsetHeight:qe}=U,st=O.value.length>0?`${Math.max(qe+6,a)}px`:`${a}px`;ee.style.height=st,ye()}}},Ne=S=>{var H;return(H=_.value)==null?void 0:H.getCheckedNodes(S)},Se=S=>{ye(),o("expandChange",S)},ke=S=>{var H;const ee=(H=S.target)==null?void 0:H.value;if(S.type==="compositionend")R.value=!1,et(()=>Y(ee));else{const U=ee[ee.length-1]||"";R.value=!Bu(U)}},$e=S=>{if(!R.value)switch(S.code){case tt.enter:Be();break;case tt.down:Be(!0),et(Oe),S.preventDefault();break;case tt.esc:y.value===!0&&(S.preventDefault(),S.stopPropagation(),Be(!1));break;case tt.tab:Be(!1);break}},Pe=()=>{var S;(S=_.value)==null||S.clearCheckedNodes(),!y.value&&r.filterable&&Ye(),Be(!1)},Ye=()=>{const{value:S}=se;E.value=S,I.value=S},Ke=S=>{var H,ee;const{checked:U}=S;X.value?(H=_.value)==null||H.handleCheckChange(S,!U,!1):(!U&&((ee=_.value)==null||ee.handleCheckChange(S,!0,!1)),Be(!1))},Ee=S=>{const H=S.target,{code:ee}=S;switch(ee){case tt.up:case tt.down:{const U=ee===tt.up?-1:1;mu(M1(H,U,`.${c.e("suggestion-item")}[tabindex="-1"]`));break}case tt.enter:H.click();break}},Ue=()=>{const S=O.value,H=S[S.length-1];i=I.value?0:i+1,!(!H||!i||r.collapseTags&&S.length>1)&&(H.hitState?ce(H):H.hitState=!0)},nt=S=>{const H=S.target,ee=c.e("search-input");H.className===ee&&(M.value=!0),o("focus",S)},dt=S=>{M.value=!1,o("blur",S)},gt=Zo(()=>{const{value:S}=W;if(!S)return;const H=r.beforeFilter(S);Bi(H)?H.then(Ae).catch(()=>{}):H!==!1?Ae():Me()},r.debounce),Y=(S,H)=>{!y.value&&Be(!0),!(H!=null&&H.isComposing)&&(S?gt():Me())},C=S=>Number.parseFloat(D7(u.cssVarName("input-height"),S).value)-2;return Te(x,ye),Te([re,j],we),Te(O,()=>{et(()=>xe())}),Te(J,async()=>{await et();const S=m.value.input;a=C(S)||a,xe()}),Te(se,Ye,{immediate:!0}),vt(()=>{const S=m.value.input,H=C(S);a=S.offsetHeight||H,jo(S,xe)}),t({getCheckedNodes:Ne,cascaderPanelRef:_,togglePopperVisible:Be,contentRef:me}),(S,H)=>(b(),de(s(er),{ref_key:"tooltipRef",ref:v,visible:y.value,teleported:S.teleported,"popper-class":[s(c).e("dropdown"),S.popperClass],"popper-options":l,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${s(c).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:Me},{default:ne(()=>[ht((b(),z("div",{class:P(s(le)),style:Qe(s(D)),onClick:H[5]||(H[5]=()=>Be(s(N)?void 0:!0)),onKeydown:$e,onMouseenter:H[6]||(H[6]=ee=>w.value=!0),onMouseleave:H[7]||(H[7]=ee=>w.value=!1)},[oe(s(Wo),{ref_key:"input",ref:m,modelValue:E.value,"onUpdate:modelValue":H[1]||(H[1]=ee=>E.value=ee),placeholder:s(Q),readonly:s(N),disabled:s(j),"validate-event":!1,size:s(J),class:P(s(_e)),tabindex:s(X)&&S.filterable&&!s(j)?-1:void 0,onCompositionstart:ke,onCompositionupdate:ke,onCompositionend:ke,onFocus:nt,onBlur:dt,onInput:Y},{suffix:ne(()=>[s(ie)?(b(),de(s(Je),{key:"clear",class:P([s(u).e("icon"),"icon-circle-close"]),onClick:it(Pe,["stop"])},{default:ne(()=>[oe(s(Ll))]),_:1},8,["class","onClick"])):(b(),de(s(Je),{key:"arrow-down",class:P(s(ge)),onClick:H[0]||(H[0]=it(ee=>Be(),["stop"]))},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),s(X)?(b(),z("div",{key:0,ref_key:"tagWrapper",ref:h,class:P(s(c).e("tags"))},[(b(!0),z(Xe,null,Tt(O.value,ee=>(b(),de(s(js),{key:ee.key,type:S.tagType,size:s(L),hit:ee.hitState,closable:ee.closable,"disable-transitions":"",onClose:U=>ce(ee)},{default:ne(()=>[ee.isCollapseTag===!1?(b(),z("span",bY,ze(ee.text),1)):(b(),de(s(er),{key:1,disabled:y.value||!S.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ne(()=>[$("span",null,ze(ee.text),1)]),content:ne(()=>[$("div",{class:P(s(c).e("collapse-tags"))},[(b(!0),z(Xe,null,Tt(F.value.slice(S.maxCollapseTags),(U,he)=>(b(),z("div",{key:he,class:P(s(c).e("collapse-tag"))},[(b(),de(s(js),{key:U.key,class:"in-tooltip",type:S.tagType,size:s(L),hit:U.hitState,closable:U.closable,"disable-transitions":"",onClose:qe=>ce(U)},{default:ne(()=>[$("span",null,ze(U.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),S.filterable&&!s(j)?ht((b(),z("input",{key:0,"onUpdate:modelValue":H[2]||(H[2]=ee=>I.value=ee),type:"text",class:P(s(c).e("search-input")),placeholder:s(se)?"":s(Z),onInput:H[3]||(H[3]=ee=>Y(I.value,ee)),onClick:H[4]||(H[4]=it(ee=>Be(!0),["stop"])),onKeydown:Rt(Ue,["delete"]),onCompositionstart:ke,onCompositionupdate:ke,onCompositionend:ke,onFocus:nt,onBlur:dt},null,42,_Y)),[[nf,I.value]]):ue("v-if",!0)],2)):ue("v-if",!0)],38)),[[s(Ul),()=>Be(!1),s(me)]])]),content:ne(()=>[ht(oe(s(B4),{ref_key:"cascaderPanelRef",ref:_,modelValue:s(ve),"onUpdate:modelValue":H[8]||(H[8]=ee=>Wt(ve)?ve.value=ee:null),options:S.options,props:r.props,border:!1,"render-label":S.$slots.default,onExpandChange:Se,onClose:H[9]||(H[9]=ee=>S.$nextTick(()=>Be(!1)))},null,8,["modelValue","options","props","render-label"]),[[Pt,!x.value]]),S.filterable?ht((b(),de(s(Kl),{key:0,ref_key:"suggestionPanel",ref:g,tag:"ul",class:P(s(c).e("suggestion-panel")),"view-class":s(c).e("suggestion-list"),onKeydown:Ee},{default:ne(()=>[K.value.length?(b(!0),z(Xe,{key:0},Tt(K.value,ee=>(b(),z("li",{key:ee.uid,class:P([s(c).e("suggestion-item"),s(c).is("checked",ee.checked)]),tabindex:-1,onClick:U=>Ke(ee)},[$("span",null,ze(ee.text),1),ee.checked?(b(),de(s(Je),{key:0},{default:ne(()=>[oe(s(Ya))]),_:1})):ue("v-if",!0)],10,wY))),128)):be(S.$slots,"empty",{key:1},()=>[$("li",{class:P(s(c).e("empty-text"))},ze(s(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Pt,x.value]]):ue("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var hd=Fe(yY,[["__file","cascader.vue"]]);hd.install=e=>{e.component(hd.name,hd)};const xY=hd,kY=He({checked:{type:Boolean,default:!1}}),CY={"update:checked":e=>Co(e),[Jt]:e=>Co(e)},SY=B({...B({name:"ElCheckTag"}),props:kY,emits:CY,setup(e,{emit:t}){const o=e,r=Ie("check-tag"),l=T(()=>[r.b(),r.is("checked",o.checked)]),n=()=>{const a=!o.checked;t(Jt,a),t("update:checked",a)};return(a,i)=>(b(),z("span",{class:P(s(l)),onClick:n},[be(a.$slots,"default")],2))}});var EY=Fe(SY,[["__file","check-tag.vue"]]);const $Y=xt(EY),N4=Symbol("rowContextKey"),TY=He({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),zY=B({...B({name:"ElRow"}),props:TY,setup(e){const t=e,o=Ie("row"),r=T(()=>t.gutter);zt(N4,{gutter:r});const l=T(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),n=T(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(a,i)=>(b(),de(St(a.tag),{class:P(s(n)),style:Qe(s(l))},{default:ne(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var MY=Fe(zY,[["__file","row.vue"]]);const AY=xt(MY),OY=He({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:pe([Number,Object]),default:()=>ro({})},sm:{type:pe([Number,Object]),default:()=>ro({})},md:{type:pe([Number,Object]),default:()=>ro({})},lg:{type:pe([Number,Object]),default:()=>ro({})},xl:{type:pe([Number,Object]),default:()=>ro({})}}),IY=B({...B({name:"ElCol"}),props:OY,setup(e){const t=e,{gutter:o}=Le(N4,{gutter:T(()=>0)}),r=Ie("col"),l=T(()=>{const a={};return o.value&&(a.paddingLeft=a.paddingRight=`${o.value/2}px`),a}),n=T(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];ct(d)&&(u==="span"?a.push(r.b(`${t[u]}`)):d>0&&a.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ct(t[u])?a.push(r.b(`${u}-${t[u]}`)):Ct(t[u])&&Object.entries(t[u]).forEach(([d,p])=>{a.push(d!=="span"?r.b(`${u}-${d}-${p}`):r.b(`${u}-${p}`))})}),o.value&&a.push(r.is("guttered")),[r.b(),a]});return(a,i)=>(b(),de(St(a.tag),{class:P(s(n)),style:Qe(s(l))},{default:ne(()=>[be(a.$slots,"default")]),_:3},8,["class","style"]))}});var PY=Fe(IY,[["__file","col.vue"]]);const BY=xt(PY),L4=e=>typeof ct(e),NY=He({accordion:Boolean,modelValue:{type:pe([Array,String,Number]),default:()=>ro([])}}),LY={[kt]:L4,[Jt]:L4},R4=Symbol("collapseContextKey"),RY=(e,t)=>{const o=V(Qn(e.modelValue)),r=n=>{o.value=n;const a=e.accordion?o.value[0]:o.value;t(kt,a),t(Jt,a)},l=n=>{if(e.accordion)r([o.value[0]===n?"":n]);else{const a=[...o.value],i=a.indexOf(n);i>-1?a.splice(i,1):a.push(n),r(a)}};return Te(()=>e.modelValue,()=>o.value=Qn(e.modelValue),{deep:!0}),zt(R4,{activeNames:o,handleItemClick:l}),{activeNames:o,setActiveNames:r}},VY=()=>{const e=Ie("collapse");return{rootKls:T(()=>e.b())}},HY=B({...B({name:"ElCollapse"}),props:NY,emits:LY,setup(e,{expose:t,emit:o}){const r=e,{activeNames:l,setActiveNames:n}=RY(r,o),{rootKls:a}=VY();return t({activeNames:l,setActiveNames:n}),(i,c)=>(b(),z("div",{class:P(s(a))},[be(i.$slots,"default")],2))}});var FY=Fe(HY,[["__file","collapse.vue"]]);const DY=B({...B({name:"ElCollapseTransition"}),setup(e){const t=Ie("collapse-transition"),o=l=>{l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom},r={beforeEnter(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.style.height&&(l.dataset.elExistsHeight=l.style.height),l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0},enter(l){requestAnimationFrame(()=>{l.dataset.oldOverflow=l.style.overflow,l.dataset.elExistsHeight?l.style.maxHeight=l.dataset.elExistsHeight:l.scrollHeight!==0?l.style.maxHeight=`${l.scrollHeight}px`:l.style.maxHeight=0,l.style.paddingTop=l.dataset.oldPaddingTop,l.style.paddingBottom=l.dataset.oldPaddingBottom,l.style.overflow="hidden"})},afterEnter(l){l.style.maxHeight="",l.style.overflow=l.dataset.oldOverflow},enterCancelled(l){o(l)},beforeLeave(l){l.dataset||(l.dataset={}),l.dataset.oldPaddingTop=l.style.paddingTop,l.dataset.oldPaddingBottom=l.style.paddingBottom,l.dataset.oldOverflow=l.style.overflow,l.style.maxHeight=`${l.scrollHeight}px`,l.style.overflow="hidden"},leave(l){l.scrollHeight!==0&&(l.style.maxHeight=0,l.style.paddingTop=0,l.style.paddingBottom=0)},afterLeave(l){o(l)},leaveCancelled(l){o(l)}};return(l,n)=>(b(),de(_o,Et({name:s(t).b()},k5(r)),{default:ne(()=>[be(l.$slots,"default")]),_:3},16,["name"]))}});var vd=Fe(DY,[["__file","collapse-transition.vue"]]);vd.install=e=>{e.component(vd.name,vd)};const md=vd,jY=md,KY=He({title:{type:String,default:""},name:{type:pe([String,Number]),default:()=>Lu()},disabled:Boolean}),WY=e=>{const t=Le(R4),o=V(!1),r=V(!1),l=V(Lu()),n=T(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:o,id:l,isActive:n,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:o.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),o.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},UY=(e,{focusing:t,isActive:o,id:r})=>{const l=Ie("collapse"),n=T(()=>[l.b("item"),l.is("active",s(o)),l.is("disabled",e.disabled)]),a=T(()=>[l.be("item","header"),l.is("active",s(o)),{focusing:s(t)&&!e.disabled}]),i=T(()=>[l.be("item","arrow"),l.is("active",s(o))]),c=T(()=>l.be("item","wrap")),u=T(()=>l.be("item","content")),d=T(()=>l.b(`content-${s(r)}`)),p=T(()=>l.b(`head-${s(r)}`));return{arrowKls:i,headKls:a,rootKls:n,itemWrapperKls:c,itemContentKls:u,scopedContentId:d,scopedHeadId:p}},qY=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],YY=["id","aria-hidden","aria-labelledby"],GY=B({...B({name:"ElCollapseItem"}),props:KY,setup(e,{expose:t}){const o=e,{focusing:r,id:l,isActive:n,handleFocus:a,handleHeaderClick:i,handleEnterClick:c}=WY(o),{arrowKls:u,headKls:d,rootKls:p,itemWrapperKls:f,itemContentKls:v,scopedContentId:m,scopedHeadId:h}=UY(o,{focusing:r,isActive:n,id:l});return t({isActive:n}),(_,g)=>(b(),z("div",{class:P(s(p))},[$("button",{id:s(h),class:P(s(d)),"aria-expanded":s(n),"aria-controls":s(m),"aria-describedby":s(m),tabindex:_.disabled?-1:0,type:"button",onClick:g[0]||(g[0]=(...y)=>s(i)&&s(i)(...y)),onKeydown:g[1]||(g[1]=Rt(it((...y)=>s(c)&&s(c)(...y),["stop","prevent"]),["space","enter"])),onFocus:g[2]||(g[2]=(...y)=>s(a)&&s(a)(...y)),onBlur:g[3]||(g[3]=y=>r.value=!1)},[be(_.$slots,"title",{},()=>[$t(ze(_.title),1)]),oe(s(Je),{class:P(s(u))},{default:ne(()=>[oe(s(Ko))]),_:1},8,["class"])],42,qY),oe(s(md),null,{default:ne(()=>[ht($("div",{id:s(m),role:"region",class:P(s(f)),"aria-hidden":!s(n),"aria-labelledby":s(h)},[$("div",{class:P(s(v))},[be(_.$slots,"default")],2)],10,YY),[[Pt,s(n)]])]),_:3})],2))}});var V4=Fe(GY,[["__file","collapse-item.vue"]]);const XY=xt(FY,{CollapseItem:V4}),ZY=fo(V4),JY=He({color:{type:pe(Object),required:!0},vertical:{type:Boolean,default:!1}});let Eh=!1;function Ks(e,t){if(!Bt)return;const o=function(n){var a;(a=t.drag)==null||a.call(t,n)},r=function(n){var a;document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",o),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Eh=!1,(a=t.end)==null||a.call(t,n)},l=function(n){var a;Eh||(n.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",o),document.addEventListener("mouseup",r),document.addEventListener("touchmove",o),document.addEventListener("touchend",r),Eh=!0,(a=t.start)==null||a.call(t,n))};e.addEventListener("mousedown",l),e.addEventListener("touchstart",l)}const QY=e=>{const t=_t(),o=Yt(),r=Yt();function l(a){a.target!==o.value&&n(a)}function n(a){if(!r.value||!o.value)return;const c=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:d}=If(a);if(e.vertical){let p=d-c.top;p=Math.max(o.value.offsetHeight/2,p),p=Math.min(p,c.height-o.value.offsetHeight/2),e.color.set("alpha",Math.round((p-o.value.offsetHeight/2)/(c.height-o.value.offsetHeight)*100))}else{let p=u-c.left;p=Math.max(o.value.offsetWidth/2,p),p=Math.min(p,c.width-o.value.offsetWidth/2),e.color.set("alpha",Math.round((p-o.value.offsetWidth/2)/(c.width-o.value.offsetWidth)*100))}}return{thumb:o,bar:r,handleDrag:n,handleClick:l}},eG=(e,{bar:t,thumb:o,handleDrag:r})=>{const l=_t(),n=Ie("color-alpha-slider"),a=V(0),i=V(0),c=V();function u(){if(!o.value||e.vertical)return 0;const y=l.vnode.el,w=e.color.get("alpha");return y?Math.round(w*(y.offsetWidth-o.value.offsetWidth/2)/100):0}function d(){if(!o.value)return 0;const y=l.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return y?Math.round(w*(y.offsetHeight-o.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:y,g:w,b:x}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${w}, ${x}, 0) 0%, rgba(${y}, ${w}, ${x}, 1) 100%)`}return""}function f(){a.value=u(),i.value=d(),c.value=p()}vt(()=>{if(!t.value||!o.value)return;const y={drag:w=>{r(w)},end:w=>{r(w)}};Ks(t.value,y),Ks(o.value,y),f()}),Te(()=>e.color.get("alpha"),()=>f()),Te(()=>e.color.value,()=>f());const v=T(()=>[n.b(),n.is("vertical",e.vertical)]),m=T(()=>n.e("bar")),h=T(()=>n.e("thumb")),_=T(()=>({background:c.value})),g=T(()=>({left:bo(a.value),top:bo(i.value)}));return{rootKls:v,barKls:m,barStyle:_,thumbKls:h,thumbStyle:g,update:f}},tG=B({...B({name:"ElColorAlphaSlider"}),props:JY,setup(e,{expose:t}){const o=e,{bar:r,thumb:l,handleDrag:n,handleClick:a}=QY(o),{rootKls:i,barKls:c,barStyle:u,thumbKls:d,thumbStyle:p,update:f}=eG(o,{bar:r,thumb:l,handleDrag:n});return t({update:f,bar:r,thumb:l}),(v,m)=>(b(),z("div",{class:P(s(i))},[$("div",{ref_key:"bar",ref:r,class:P(s(c)),style:Qe(s(u)),onClick:m[0]||(m[0]=(...h)=>s(a)&&s(a)(...h))},null,6),$("div",{ref_key:"thumb",ref:l,class:P(s(d)),style:Qe(s(p))},null,6)],2))}});var oG=Fe(tG,[["__file","alpha-slider.vue"]]);const rG=B({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ie("color-hue-slider"),o=_t(),r=V(),l=V(),n=V(0),a=V(0),i=T(()=>e.color.get("hue"));Te(()=>i.value,()=>{f()});function c(v){v.target!==r.value&&u(v)}function u(v){if(!l.value||!r.value)return;const h=o.vnode.el.getBoundingClientRect(),{clientX:_,clientY:g}=If(v);let y;if(e.vertical){let w=g-h.top;w=Math.min(w,h.height-r.value.offsetHeight/2),w=Math.max(r.value.offsetHeight/2,w),y=Math.round((w-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*360)}else{let w=_-h.left;w=Math.min(w,h.width-r.value.offsetWidth/2),w=Math.max(r.value.offsetWidth/2,w),y=Math.round((w-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*360)}e.color.set("hue",y)}function d(){if(!r.value)return 0;const v=o.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetWidth-r.value.offsetWidth/2)/360):0}function p(){if(!r.value)return 0;const v=o.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return v?Math.round(m*(v.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){n.value=d(),a.value=p()}return vt(()=>{if(!l.value||!r.value)return;const v={drag:m=>{u(m)},end:m=>{u(m)}};Ks(l.value,v),Ks(r.value,v),f()}),{bar:l,thumb:r,thumbLeft:n,thumbTop:a,hueValue:i,handleClick:c,update:f,ns:t}}});function lG(e,t,o,r,l,n){return b(),z("div",{class:P([e.ns.b(),e.ns.is("vertical",e.vertical)])},[$("div",{ref:"bar",class:P(e.ns.e("bar")),onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},null,2),$("div",{ref:"thumb",class:P(e.ns.e("thumb")),style:Qe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var nG=Fe(rG,[["render",lG],["__file","hue-slider.vue"]]);const aG=He({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:No,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:pe(Array)},validateEvent:{type:Boolean,default:!0}}),iG={[kt]:e=>ft(e)||wo(e),[Jt]:e=>ft(e)||wo(e),activeChange:e=>ft(e)||wo(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},H4=Symbol("colorPickerContextKey"),F4=function(e,t,o){return[e,t*o/((e=(2-t)*o)<1?e:2-e)||0,e/2]},sG=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},cG=function(e){return typeof e=="string"&&e.includes("%")},pi=function(e,t){sG(e)&&(e="100%");const o=cG(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),o&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},D4={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},gd=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),o=e%16;return`${D4[t]||t}${D4[o]||o}`},j4=function({r:e,g:t,b:o}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+o)?"":`#${gd(e)}${gd(t)}${gd(o)}`},$h={A:10,B:11,C:12,D:13,E:14,F:15},ha=function(e){return e.length===2?($h[e[0].toUpperCase()]||+e[0])*16+($h[e[1].toUpperCase()]||+e[1]):$h[e[1].toUpperCase()]||+e[1]},uG=function(e,t,o){t=t/100,o=o/100;let r=t;const l=Math.max(o,.01);o*=2,t*=o<=1?o:2-o,r*=l<=1?l:2-l;const n=(o+t)/2,a=o===0?2*r/(l+r):2*t/(o+t);return{h:e,s:a*100,v:n*100}},K4=(e,t,o)=>{e=pi(e,255),t=pi(t,255),o=pi(o,255);const r=Math.max(e,t,o),l=Math.min(e,t,o);let n;const a=r,i=r-l,c=r===0?0:i/r;if(r===l)n=0;else{switch(r){case e:{n=(t-o)/i+(t{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,l)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:l,s:n,v:a}=uG(r[0],r[1],r[2]);o(l,n,a)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&o(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(l=>l!=="").map((l,n)=>n>2?Number.parseFloat(l):Number.parseInt(l,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:l,s:n,v:a}=K4(r[0],r[1],r[2]);o(l,n,a)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let l,n,a;r.length===3?(l=ha(r[0]+r[0]),n=ha(r[1]+r[1]),a=ha(r[2]+r[2])):(r.length===6||r.length===8)&&(l=ha(r.slice(0,2)),n=ha(r.slice(2,4)),a=ha(r.slice(4,6))),r.length===8?this._alpha=ha(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:i,s:c,v:u}=K4(l,n,a);o(i,c,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:o,_value:r,_alpha:l,format:n}=this;if(this.enableAlpha)switch(n){case"hsl":{const a=F4(t,o/100,r/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(o)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${j4(Ws(t,o,r))}${gd(l*255/100)}`;break}default:{const{r:a,g:i,b:c}=Ws(t,o,r);this.value=`rgba(${a}, ${i}, ${c}, ${this.get("alpha")/100})`}}else switch(n){case"hsl":{const a=F4(t,o/100,r/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(o)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:i,b:c}=Ws(t,o,r);this.value=`rgb(${a}, ${i}, ${c})`;break}default:this.value=j4(Ws(t,o,r))}}}const dG=B({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ie("color-predefine"),{currentColor:o}=Le(H4),r=V(n(e.colors,e.color));Te(()=>o.value,a=>{const i=new Us;i.fromString(a),r.value.forEach(c=>{c.selected=i.compare(c)})}),lr(()=>{r.value=n(e.colors,e.color)});function l(a){e.color.fromString(e.colors[a])}function n(a,i){return a.map(c=>{const u=new Us;return u.enableAlpha=!0,u.format="rgba",u.fromString(c),u.selected=u.value===i.value,u})}return{rgbaColors:r,handleSelect:l,ns:t}}}),pG=["onClick"];function fG(e,t,o,r,l,n){return b(),z("div",{class:P(e.ns.b())},[$("div",{class:P(e.ns.e("colors"))},[(b(!0),z(Xe,null,Tt(e.rgbaColors,(a,i)=>(b(),z("div",{key:e.colors[i],class:P([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:c=>e.handleSelect(i)},[$("div",{style:Qe({backgroundColor:a.value})},null,4)],10,pG))),128))],2)],2)}var hG=Fe(dG,[["render",fG],["__file","predefine.vue"]]);const vG=B({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ie("color-svpanel"),o=_t(),r=V(0),l=V(0),n=V("hsl(0, 100%, 50%)"),a=T(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function i(){const u=e.color.get("saturation"),d=e.color.get("value"),p=o.vnode.el,{clientWidth:f,clientHeight:v}=p;l.value=u*f/100,r.value=(100-d)*v/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(u){const p=o.vnode.el.getBoundingClientRect(),{clientX:f,clientY:v}=If(u);let m=f-p.left,h=v-p.top;m=Math.max(0,m),m=Math.min(m,p.width),h=Math.max(0,h),h=Math.min(h,p.height),l.value=m,r.value=h,e.color.set({saturation:m/p.width*100,value:100-h/p.height*100})}return Te(()=>a.value,()=>{i()}),vt(()=>{Ks(o.vnode.el,{drag:u=>{c(u)},end:u=>{c(u)}}),i()}),{cursorTop:r,cursorLeft:l,background:n,colorValue:a,handleDrag:c,update:i,ns:t}}}),mG=[$("div",null,null,-1)];function gG(e,t,o,r,l,n){return b(),z("div",{class:P(e.ns.b()),style:Qe({backgroundColor:e.background})},[$("div",{class:P(e.ns.e("white"))},null,2),$("div",{class:P(e.ns.e("black"))},null,2),$("div",{class:P(e.ns.e("cursor")),style:Qe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},mG,6)],6)}var bG=Fe(vG,[["render",gG],["__file","sv-panel.vue"]]);const _G=["onKeydown"],wG=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],yG=B({...B({name:"ElColorPicker"}),props:aG,emits:iG,setup(e,{expose:t,emit:o}){const r=e,{t:l}=Nt(),n=Ie("color"),{formItem:a}=Qo(),i=Eo(),c=pr(),{inputId:u,isLabeledByFormItem:d}=Cn(r,{formItemContext:a}),p=V(),f=V(),v=V(),m=V(),h=V(),_=V(),{isFocused:g,handleFocus:y,handleBlur:w}=F_(h,{beforeBlur(ye){var Me;return(Me=m.value)==null?void 0:Me.isFocusInsideContent(ye)},afterBlur(){J(!1),W()}}),x=ye=>{if(c.value)return Be();y(ye)};let M=!0;const E=Ft(new Us({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),I=V(!1),O=V(!1),F=V(""),K=T(()=>!r.modelValue&&!O.value?"transparent":Q(E,r.showAlpha)),R=T(()=>!r.modelValue&&!O.value?"":E.value),D=T(()=>d.value?void 0:r.label||l("el.colorpicker.defaultLabel")),j=T(()=>d.value?a==null?void 0:a.labelId:void 0),Z=T(()=>[n.b("picker"),n.is("disabled",c.value),n.bm("picker",i.value),n.is("focused",g.value)]);function Q(ye,Me){if(!(ye instanceof Us))throw new TypeError("color should be instance of _color Class");const{r:te,g:ce,b:we}=ye.toRgb();return Me?`rgba(${te}, ${ce}, ${we}, ${ye.get("alpha")/100})`:`rgb(${te}, ${ce}, ${we})`}function J(ye){I.value=ye}const L=Zo(J,100,{leading:!0});function X(){c.value||J(!0)}function N(){L(!1),W()}function W(){et(()=>{r.modelValue?E.fromString(r.modelValue):(E.value="",et(()=>{O.value=!1}))})}function re(){c.value||L(!I.value)}function ie(){E.fromString(F.value)}function se(){const ye=E.value;o(kt,ye),o("change",ye),r.validateEvent&&(a==null||a.validate("change").catch(Me=>void 0)),L(!1),et(()=>{const Me=new Us({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});E.compare(Me)||W()})}function ve(){L(!1),o(kt,null),o("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(ye=>void 0)),W()}function le(ye){if(I.value&&(N(),g.value)){const Me=new FocusEvent("focus",ye);w(Me)}}function ge(ye){ye.preventDefault(),ye.stopPropagation(),J(!1),W()}function _e(ye){switch(ye.code){case tt.enter:case tt.space:ye.preventDefault(),ye.stopPropagation(),X(),_.value.focus();break;case tt.esc:ge(ye);break}}function me(){h.value.focus()}function Be(){h.value.blur()}return vt(()=>{r.modelValue&&(F.value=R.value)}),Te(()=>r.modelValue,ye=>{ye?ye&&ye!==E.value&&(M=!1,E.fromString(ye)):O.value=!1}),Te(()=>R.value,ye=>{F.value=ye,M&&o("activeChange",ye),M=!0}),Te(()=>E.value,()=>{!r.modelValue&&!O.value&&(O.value=!0)}),Te(()=>I.value,()=>{et(()=>{var ye,Me,te;(ye=p.value)==null||ye.update(),(Me=f.value)==null||Me.update(),(te=v.value)==null||te.update()})}),zt(H4,{currentColor:R}),t({color:E,show:X,hide:N,focus:me,blur:Be}),(ye,Me)=>(b(),de(s(er),{ref_key:"popper",ref:m,visible:I.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[s(n).be("picker","panel"),s(n).b("dropdown"),ye.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${s(n).namespace.value}-zoom-in-top`,persistent:"",onHide:Me[2]||(Me[2]=te=>J(!1))},{content:ne(()=>[ht((b(),z("div",{onKeydown:Rt(ge,["esc"])},[$("div",{class:P(s(n).be("dropdown","main-wrapper"))},[oe(nG,{ref_key:"hue",ref:p,class:"hue-slider",color:s(E),vertical:""},null,8,["color"]),oe(bG,{ref_key:"sv",ref:f,color:s(E)},null,8,["color"])],2),ye.showAlpha?(b(),de(oG,{key:0,ref_key:"alpha",ref:v,color:s(E)},null,8,["color"])):ue("v-if",!0),ye.predefine?(b(),de(hG,{key:1,ref:"predefine",color:s(E),colors:ye.predefine},null,8,["color","colors"])):ue("v-if",!0),$("div",{class:P(s(n).be("dropdown","btns"))},[$("span",{class:P(s(n).be("dropdown","value"))},[oe(s(Wo),{ref_key:"inputRef",ref:_,modelValue:F.value,"onUpdate:modelValue":Me[0]||(Me[0]=te=>F.value=te),"validate-event":!1,size:"small",onKeyup:Rt(ie,["enter"]),onBlur:ie},null,8,["modelValue","onKeyup"])],2),oe(s(Vo),{class:P(s(n).be("dropdown","link-btn")),text:"",size:"small",onClick:ve},{default:ne(()=>[$t(ze(s(l)("el.colorpicker.clear")),1)]),_:1},8,["class"]),oe(s(Vo),{plain:"",size:"small",class:P(s(n).be("dropdown","btn")),onClick:se},{default:ne(()=>[$t(ze(s(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,_G)),[[s(Ul),le]])]),default:ne(()=>[$("div",{id:s(u),ref_key:"triggerRef",ref:h,class:P(s(Z)),role:"button","aria-label":s(D),"aria-labelledby":s(j),"aria-description":s(l)("el.colorpicker.description",{color:ye.modelValue||""}),"aria-disabled":s(c),tabindex:s(c)?-1:ye.tabindex,onKeydown:_e,onFocus:x,onBlur:Me[1]||(Me[1]=(...te)=>s(w)&&s(w)(...te))},[s(c)?(b(),z("div",{key:0,class:P(s(n).be("picker","mask"))},null,2)):ue("v-if",!0),$("div",{class:P(s(n).be("picker","trigger")),onClick:re},[$("span",{class:P([s(n).be("picker","color"),s(n).is("alpha",ye.showAlpha)])},[$("span",{class:P(s(n).be("picker","color-inner")),style:Qe({backgroundColor:s(K)})},[ht(oe(s(Je),{class:P([s(n).be("picker","icon"),s(n).is("icon-arrow-down")])},{default:ne(()=>[oe(s(Bl))]),_:1},8,["class"]),[[Pt,ye.modelValue||O.value]]),ht(oe(s(Je),{class:P([s(n).be("picker","empty"),s(n).is("icon-close")])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class"]),[[Pt,!ye.modelValue&&!O.value]])],6)],2)],2)],42,wG)]),_:1},8,["visible","popper-class","transition"]))}});var xG=Fe(yG,[["__file","color-picker.vue"]]);const kG=xt(xG),CG=B({...B({name:"ElContainer"}),props:{direction:{type:String}},setup(e){const t=e,o=Bo(),r=Ie("container"),l=T(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:o&&o.default?o.default().some(a=>{const i=a.type.name;return i==="ElHeader"||i==="ElFooter"}):!1);return(n,a)=>(b(),z("section",{class:P([s(r).b(),s(r).is("vertical",s(l))])},[be(n.$slots,"default")],2))}});var SG=Fe(CG,[["__file","container.vue"]]);const EG=B({...B({name:"ElAside"}),props:{width:{type:String,default:null}},setup(e){const t=e,o=Ie("aside"),r=T(()=>t.width?o.cssVarBlock({width:t.width}):{});return(l,n)=>(b(),z("aside",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var W4=Fe(EG,[["__file","aside.vue"]]);const $G=B({...B({name:"ElFooter"}),props:{height:{type:String,default:null}},setup(e){const t=e,o=Ie("footer"),r=T(()=>t.height?o.cssVarBlock({height:t.height}):{});return(l,n)=>(b(),z("footer",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var U4=Fe($G,[["__file","footer.vue"]]);const TG=B({...B({name:"ElHeader"}),props:{height:{type:String,default:null}},setup(e){const t=e,o=Ie("header"),r=T(()=>t.height?o.cssVarBlock({height:t.height}):{});return(l,n)=>(b(),z("header",{class:P(s(o).b()),style:Qe(s(r))},[be(l.$slots,"default")],6))}});var q4=Fe(TG,[["__file","header.vue"]]);const zG=B({...B({name:"ElMain"}),setup(e){const t=Ie("main");return(o,r)=>(b(),z("main",{class:P(s(t).b())},[be(o.$slots,"default")],2))}});var Y4=Fe(zG,[["__file","main.vue"]]);const MG=xt(SG,{Aside:W4,Footer:U4,Header:q4,Main:Y4}),AG=fo(W4),OG=fo(U4),IG=fo(q4),PG=fo(Y4);var G4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){var l=r.prototype,n=l.format;l.format=function(a){var i=this,c=this.$locale();if(!this.isValid())return n.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),p==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return p}});return n.bind(this)(d)}}})})(G4);var BG=G4.exports;const NG=Er(BG);var X4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){var o="week",r="year";return function(l,n,a){var i=n.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),p=a(this).endOf(o);if(d.isBefore(p))return 1}var f=a(this).startOf(r).date(u).startOf(o).subtract(1,"millisecond"),v=this.diff(f,o,!0);return v<0?a(this).startOf("week").week():Math.ceil(v)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(X4);var LG=X4.exports;const RG=Er(LG);var Z4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.weekYear=function(){var l=this.month(),n=this.week(),a=this.year();return n===1&&l===11?a+1:l===0&&n>=52?a-1:a}}})})(Z4);var VG=Z4.exports;const HG=Er(VG);var J4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r,l){r.prototype.dayOfYear=function(n){var a=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return n==null?a:this.add(n-a,"day")}}})})(J4);var FG=J4.exports;const DG=Er(FG);var Q4={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.isSameOrAfter=function(l,n){return this.isSame(l,n)||this.isAfter(l,n)}}})})(Q4);var jG=Q4.exports;const KG=Er(jG);var ew={exports:{}};(function(e,t){(function(o,r){e.exports=r()})(xo,function(){return function(o,r){r.prototype.isSameOrBefore=function(l,n){return this.isSame(l,n)||this.isBefore(l,n)}}})})(ew);var WG=ew.exports;const UG=Er(WG),Th=Symbol(),qG=He({...uh,type:{type:pe(String),default:"date"}}),YG=["date","dates","year","month","week","range"],zh=He({disabledDate:{type:pe(Function)},date:{type:pe(Object),required:!0},minDate:{type:pe(Object)},maxDate:{type:pe(Object)},parsedValue:{type:pe([Object,Array])},rangeState:{type:pe(Object),default:()=>({endDate:null,selecting:!1})}}),tw=He({type:{type:pe(String),required:!0,values:UH},dateFormat:String,timeFormat:String}),ow=He({unlinkPanels:Boolean,parsedValue:{type:pe(Array)}}),rw=e=>({type:String,values:YG,default:e}),GG=He({...tw,parsedValue:{type:pe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),XG=He({...zh,cellClassName:{type:pe(Function)},showWeekNumber:Boolean,selectionMode:rw("date")}),ZG=["changerange","pick","select"],Mh=e=>{if(!Ge(e))return!1;const[t,o]=e;return wt.isDayjs(t)&&wt.isDayjs(o)&&t.isSameOrBefore(o)},lw=(e,{lang:t,unit:o,unlinkPanels:r})=>{let l;if(Ge(e)){let[n,a]=e.map(i=>wt(i).locale(t));return r||(a=n.add(1,o)),[n,a]}else e?l=wt(e):l=wt();return l=l.locale(t),[l,l.add(1,o)]},JG=(e,t,{columnIndexOffset:o,startDate:r,nextEndDate:l,now:n,unit:a,relativeDateGetter:i,setCellMetadata:c,setRowMetadata:u})=>{for(let d=0;d["normal","today"].includes(e),QG=(e,t)=>{const{lang:o}=Nt(),r=V(),l=V(),n=V(),a=V(),i=V([[],[],[],[],[],[]]);let c=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(N=>N.toLowerCase()),p=T(()=>u>3?7-u:-u),f=T(()=>{const N=e.date.startOf("month");return N.subtract(N.day()||7,"day")}),v=T(()=>d.concat(d).slice(u,u+7)),m=T(()=>xb(s(x)).some(N=>N.isCurrent)),h=T(()=>{const N=e.date.startOf("month"),W=N.day()||7,re=N.daysInMonth(),ie=N.subtract(1,"month").daysInMonth();return{startOfMonthDay:W,dateCountOfMonth:re,dateCountOfLastMonth:ie}}),_=T(()=>e.selectionMode==="dates"?Vl(e.parsedValue):[]),g=(N,{count:W,rowIndex:re,columnIndex:ie})=>{const{startOfMonthDay:se,dateCountOfMonth:ve,dateCountOfLastMonth:le}=s(h),ge=s(p);if(re>=0&&re<=1){const _e=se+ge<0?7+se+ge:se+ge;if(ie+re*7>=_e)return N.text=W,!0;N.text=le-(_e-ie%7)+1+re*7,N.type="prev-month"}else return W<=ve?N.text=W:(N.text=W-ve,N.type="next-month"),!0;return!1},y=(N,{columnIndex:W,rowIndex:re},ie)=>{const{disabledDate:se,cellClassName:ve}=e,le=s(_),ge=g(N,{count:ie,rowIndex:re,columnIndex:W}),_e=N.dayjs.toDate();return N.selected=le.find(me=>me.valueOf()===N.dayjs.valueOf()),N.isSelected=!!N.selected,N.isCurrent=E(N),N.disabled=se==null?void 0:se(_e),N.customClass=ve==null?void 0:ve(_e),ge},w=N=>{if(e.selectionMode==="week"){const[W,re]=e.showWeekNumber?[1,7]:[0,6],ie=X(N[W+1]);N[W].inRange=ie,N[W].start=ie,N[re].inRange=ie,N[re].end=ie}},x=T(()=>{const{minDate:N,maxDate:W,rangeState:re,showWeekNumber:ie}=e,se=s(p),ve=s(i),le="day";let ge=1;if(ie)for(let _e=0;_e<6;_e++)ve[_e][0]||(ve[_e][0]={type:"week",text:s(f).add(_e*7+1,le).week()});return JG({row:6,column:7},ve,{startDate:N,columnIndexOffset:ie?1:0,nextEndDate:re.endDate||W||re.selecting&&N||null,now:wt().locale(s(o)).startOf(le),unit:le,relativeDateGetter:_e=>s(f).add(_e-se,le),setCellMetadata:(..._e)=>{y(..._e,ge)&&(ge+=1)},setRowMetadata:w}),ve});Te(()=>e.date,async()=>{var N;(N=s(r))!=null&&N.contains(document.activeElement)&&(await et(),await M())});const M=async()=>{var N;return(N=s(l))==null?void 0:N.focus()},E=N=>e.selectionMode==="date"&&Ah(N.type)&&I(N,e.parsedValue),I=(N,W)=>W?wt(W).locale(s(o)).isSame(e.date.date(Number(N.text)),"day"):!1,O=(N,W)=>{const re=N*7+(W-(e.showWeekNumber?1:0))-s(p);return s(f).add(re,"day")},F=N=>{var W;if(!e.rangeState.selecting)return;let re=N.target;if(re.tagName==="SPAN"&&(re=(W=re.parentNode)==null?void 0:W.parentNode),re.tagName==="DIV"&&(re=re.parentNode),re.tagName!=="TD")return;const ie=re.parentNode.rowIndex-1,se=re.cellIndex;s(x)[ie][se].disabled||(ie!==s(n)||se!==s(a))&&(n.value=ie,a.value=se,t("changerange",{selecting:!0,endDate:O(ie,se)}))},K=N=>!s(m)&&(N==null?void 0:N.text)===1&&N.type==="normal"||N.isCurrent,R=N=>{c||s(m)||e.selectionMode!=="date"||L(N,!0)},D=N=>{N.target.closest("td")&&(c=!0)},j=N=>{N.target.closest("td")&&(c=!1)},Z=N=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:N,maxDate:null}),t("select",!0)):(N>=e.minDate?t("pick",{minDate:e.minDate,maxDate:N}):t("pick",{minDate:N,maxDate:e.minDate}),t("select",!1))},Q=N=>{const W=N.week(),re=`${N.year()}w${W}`;t("pick",{year:N.year(),week:W,value:re,date:N.startOf("week")})},J=(N,W)=>{const re=W?Vl(e.parsedValue).filter(ie=>(ie==null?void 0:ie.valueOf())!==N.valueOf()):Vl(e.parsedValue).concat([N]);t("pick",re)},L=(N,W=!1)=>{const re=N.target.closest("td");if(!re)return;const ie=re.parentNode.rowIndex-1,se=re.cellIndex,ve=s(x)[ie][se];if(ve.disabled||ve.type==="week")return;const le=O(ie,se);switch(e.selectionMode){case"range":{Z(le);break}case"date":{t("pick",le,W);break}case"week":{Q(le);break}case"dates":{J(le,!!ve.selected);break}}},X=N=>{if(e.selectionMode!=="week")return!1;let W=e.date.startOf("day");if(N.type==="prev-month"&&(W=W.subtract(1,"month")),N.type==="next-month"&&(W=W.add(1,"month")),W=W.date(Number.parseInt(N.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const re=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(re,"day").isSame(W,"day")}return!1};return{WEEKS:v,rows:x,tbodyRef:r,currentCellRef:l,focus:M,isCurrent:E,isWeekActive:X,isSelectedCell:K,handlePickDate:L,handleMouseUp:j,handleMouseDown:D,handleMouseMove:F,handleFocus:R}},eX=(e,{isCurrent:t,isWeekActive:o})=>{const r=Ie("date-table"),{t:l}=Nt(),n=T(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),a=T(()=>l("el.datepicker.dateTablePrompt")),i=T(()=>l("el.datepicker.week"));return{tableKls:n,tableLabel:a,weekLabel:i,getCellClasses:d=>{const p=[];return Ah(d.type)&&!d.disabled?(p.push("available"),d.type==="today"&&p.push("today")):p.push(d.type),t(d)&&p.push("current"),d.inRange&&(Ah(d.type)||e.selectionMode==="week")&&(p.push("in-range"),d.start&&p.push("start-date"),d.end&&p.push("end-date")),d.disabled&&p.push("disabled"),d.selected&&p.push("selected"),d.customClass&&p.push(d.customClass),p.join(" ")},getRowKls:d=>[r.e("row"),{current:o(d)}],t:l}},tX=He({cell:{type:pe(Object)}});var oX=B({name:"ElDatePickerCell",props:tX,setup(e){const t=Ie("date-table-cell"),{slots:o}=Le(Th);return()=>{const{cell:r}=e;return be(o,"default",{...r},()=>[oe("div",{class:t.b()},[oe("span",{class:t.e("text")},[r==null?void 0:r.text])])])}}});const rX=["aria-label"],lX={key:0,scope:"col"},nX=["aria-label"],aX=["aria-current","aria-selected","tabindex"];var Oh=Fe(B({__name:"basic-date-table",props:XG,emits:ZG,setup(e,{expose:t,emit:o}){const r=e,{WEEKS:l,rows:n,tbodyRef:a,currentCellRef:i,focus:c,isCurrent:u,isWeekActive:d,isSelectedCell:p,handlePickDate:f,handleMouseUp:v,handleMouseDown:m,handleMouseMove:h,handleFocus:_}=QG(r,o),{tableLabel:g,tableKls:y,weekLabel:w,getCellClasses:x,getRowKls:M,t:E}=eX(r,{isCurrent:u,isWeekActive:d});return t({focus:c}),(I,O)=>(b(),z("table",{"aria-label":s(g),class:P(s(y)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:O[1]||(O[1]=(...F)=>s(f)&&s(f)(...F)),onMousemove:O[2]||(O[2]=(...F)=>s(h)&&s(h)(...F)),onMousedown:O[3]||(O[3]=it((...F)=>s(m)&&s(m)(...F),["prevent"])),onMouseup:O[4]||(O[4]=(...F)=>s(v)&&s(v)(...F))},[$("tbody",{ref_key:"tbodyRef",ref:a},[$("tr",null,[I.showWeekNumber?(b(),z("th",lX,ze(s(w)),1)):ue("v-if",!0),(b(!0),z(Xe,null,Tt(s(l),(F,K)=>(b(),z("th",{key:K,"aria-label":s(E)("el.datepicker.weeksFull."+F),scope:"col"},ze(s(E)("el.datepicker.weeks."+F)),9,nX))),128))]),(b(!0),z(Xe,null,Tt(s(n),(F,K)=>(b(),z("tr",{key:K,class:P(s(M)(F[1]))},[(b(!0),z(Xe,null,Tt(F,(R,D)=>(b(),z("td",{key:`${K}.${D}`,ref_for:!0,ref:j=>s(p)(R)&&(i.value=j),class:P(s(x)(R)),"aria-current":R.isCurrent?"date":void 0,"aria-selected":R.isCurrent,tabindex:s(p)(R)?0:-1,onFocus:O[0]||(O[0]=(...j)=>s(_)&&s(_)(...j))},[oe(s(oX),{cell:R},null,8,["cell"])],42,aX))),128))],2))),128))],512)],42,rX))}}),[["__file","basic-date-table.vue"]]);const iX=He({...zh,selectionMode:rw("month")}),sX=["aria-label"],cX=["aria-selected","aria-label","tabindex","onKeydown"],uX={class:"cell"};var Ih=Fe(B({__name:"basic-month-table",props:iX,emits:["changerange","pick","select"],setup(e,{expose:t,emit:o}){const r=e,l=(x,M,E)=>{const I=wt().locale(E).startOf("month").month(M).year(x),O=I.daysInMonth();return Tn(O).map(F=>I.add(F,"day").toDate())},n=Ie("month-table"),{t:a,lang:i}=Nt(),c=V(),u=V(),d=V(r.date.locale("en").localeData().monthsShort().map(x=>x.toLowerCase())),p=V([[],[],[]]),f=V(),v=V(),m=T(()=>{var x,M;const E=p.value,I=wt().locale(i.value).startOf("month");for(let O=0;O<3;O++){const F=E[O];for(let K=0;K<4;K++){const R=F[K]||(F[K]={row:O,column:K,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});R.type="normal";const D=O*4+K,j=r.date.startOf("year").month(D),Z=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;R.inRange=!!(r.minDate&&j.isSameOrAfter(r.minDate,"month")&&Z&&j.isSameOrBefore(Z,"month"))||!!(r.minDate&&j.isSameOrBefore(r.minDate,"month")&&Z&&j.isSameOrAfter(Z,"month")),(x=r.minDate)!=null&&x.isSameOrAfter(Z)?(R.start=!!(Z&&j.isSame(Z,"month")),R.end=r.minDate&&j.isSame(r.minDate,"month")):(R.start=!!(r.minDate&&j.isSame(r.minDate,"month")),R.end=!!(Z&&j.isSame(Z,"month"))),I.isSame(j)&&(R.type="today"),R.text=D,R.disabled=((M=r.disabledDate)==null?void 0:M.call(r,j.toDate()))||!1}}return E}),h=()=>{var x;(x=u.value)==null||x.focus()},_=x=>{const M={},E=r.date.year(),I=new Date,O=x.text;return M.disabled=r.disabledDate?l(E,O,i.value).every(r.disabledDate):!1,M.current=Vl(r.parsedValue).findIndex(F=>wt.isDayjs(F)&&F.year()===E&&F.month()===O)>=0,M.today=I.getFullYear()===E&&I.getMonth()===O,x.inRange&&(M["in-range"]=!0,x.start&&(M["start-date"]=!0),x.end&&(M["end-date"]=!0)),M},g=x=>{const M=r.date.year(),E=x.text;return Vl(r.date).findIndex(I=>I.year()===M&&I.month()===E)>=0},y=x=>{var M;if(!r.rangeState.selecting)return;let E=x.target;if(E.tagName==="SPAN"&&(E=(M=E.parentNode)==null?void 0:M.parentNode),E.tagName==="DIV"&&(E=E.parentNode),E.tagName!=="TD")return;const I=E.parentNode.rowIndex,O=E.cellIndex;m.value[I][O].disabled||(I!==f.value||O!==v.value)&&(f.value=I,v.value=O,o("changerange",{selecting:!0,endDate:r.date.startOf("year").month(I*4+O)}))},w=x=>{var M;const E=(M=x.target)==null?void 0:M.closest("td");if((E==null?void 0:E.tagName)!=="TD"||Wr(E,"disabled"))return;const I=E.cellIndex,F=E.parentNode.rowIndex*4+I,K=r.date.startOf("year").month(F);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&K>=r.minDate?o("pick",{minDate:r.minDate,maxDate:K}):o("pick",{minDate:K,maxDate:r.minDate}),o("select",!1)):(o("pick",{minDate:K,maxDate:null}),o("select",!0)):o("pick",F)};return Te(()=>r.date,async()=>{var x,M;(x=c.value)!=null&&x.contains(document.activeElement)&&(await et(),(M=u.value)==null||M.focus())}),t({focus:h}),(x,M)=>(b(),z("table",{role:"grid","aria-label":s(a)("el.datepicker.monthTablePrompt"),class:P(s(n).b()),onClick:w,onMousemove:y},[$("tbody",{ref_key:"tbodyRef",ref:c},[(b(!0),z(Xe,null,Tt(s(m),(E,I)=>(b(),z("tr",{key:I},[(b(!0),z(Xe,null,Tt(E,(O,F)=>(b(),z("td",{key:F,ref_for:!0,ref:K=>g(O)&&(u.value=K),class:P(_(O)),"aria-selected":`${g(O)}`,"aria-label":s(a)(`el.datepicker.month${+O.text+1}`),tabindex:g(O)?0:-1,onKeydown:[Rt(it(w,["prevent","stop"]),["space"]),Rt(it(w,["prevent","stop"]),["enter"])]},[$("div",null,[$("span",uX,ze(s(a)("el.datepicker.months."+d.value[O.text])),1)])],42,cX))),128))]))),128))],512)],42,sX))}}),[["__file","basic-month-table.vue"]]);const{date:dX,disabledDate:pX,parsedValue:fX}=zh,hX=He({date:dX,disabledDate:pX,parsedValue:fX}),vX=["aria-label"],mX=["aria-selected","tabindex","onKeydown"],gX={class:"cell"},bX={key:1};var _X=Fe(B({__name:"basic-year-table",props:hX,emits:["pick"],setup(e,{expose:t,emit:o}){const r=e,l=(h,_)=>{const g=wt(String(h)).locale(_).startOf("year"),w=g.endOf("year").dayOfYear();return Tn(w).map(x=>g.add(x,"day").toDate())},n=Ie("year-table"),{t:a,lang:i}=Nt(),c=V(),u=V(),d=T(()=>Math.floor(r.date.year()/10)*10),p=()=>{var h;(h=u.value)==null||h.focus()},f=h=>{const _={},g=wt().locale(i.value);return _.disabled=r.disabledDate?l(h,i.value).every(r.disabledDate):!1,_.current=Vl(r.parsedValue).findIndex(y=>y.year()===h)>=0,_.today=g.year()===h,_},v=h=>h===d.value&&r.date.year()d.value+9||Vl(r.date).findIndex(_=>_.year()===h)>=0,m=h=>{const g=h.target.closest("td");if(g&&g.textContent){if(Wr(g,"disabled"))return;const y=g.textContent||g.innerText;o("pick",Number(y))}};return Te(()=>r.date,async()=>{var h,_;(h=c.value)!=null&&h.contains(document.activeElement)&&(await et(),(_=u.value)==null||_.focus())}),t({focus:p}),(h,_)=>(b(),z("table",{role:"grid","aria-label":s(a)("el.datepicker.yearTablePrompt"),class:P(s(n).b()),onClick:m},[$("tbody",{ref_key:"tbodyRef",ref:c},[(b(),z(Xe,null,Tt(3,(g,y)=>$("tr",{key:y},[(b(),z(Xe,null,Tt(4,(w,x)=>(b(),z(Xe,{key:y+"_"+x},[y*4+x<10?(b(),z("td",{key:0,ref_for:!0,ref:M=>v(s(d)+y*4+x)&&(u.value=M),class:P(["available",f(s(d)+y*4+x)]),"aria-selected":`${v(s(d)+y*4+x)}`,tabindex:v(s(d)+y*4+x)?0:-1,onKeydown:[Rt(it(m,["prevent","stop"]),["space"]),Rt(it(m,["prevent","stop"]),["enter"])]},[$("span",gX,ze(s(d)+y*4+x),1)],42,mX)):(b(),z("td",bX))],64))),64))])),64))],512)],10,vX))}}),[["__file","basic-year-table.vue"]]);const wX=["onClick"],yX=["aria-label"],xX=["aria-label"],kX=["aria-label"],CX=["aria-label"];var SX=Fe(B({__name:"panel-date-pick",props:GG,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const o=e,r=(C,S,H)=>!0,l=Ie("picker-panel"),n=Ie("date-picker"),a=Hn(),i=Bo(),{t:c,lang:u}=Nt(),d=Le("EP_PICKER_BASE"),p=Le(rd),{shortcuts:f,disabledDate:v,cellClassName:m,defaultTime:h}=d.props,_=so(d.props,"defaultValue"),g=V(),y=V(wt().locale(u.value)),w=V(!1);let x=!1;const M=T(()=>wt(h).locale(u.value)),E=T(()=>y.value.month()),I=T(()=>y.value.year()),O=V([]),F=V(null),K=V(null),R=C=>O.value.length>0?r(C,O.value,o.format||"HH:mm:ss"):!0,D=C=>h&&!we.value&&!w.value&&!x?M.value.year(C.year()).month(C.month()).date(C.date()):ge.value?C.millisecond(0):C.startOf("day"),j=(C,...S)=>{if(!C)t("pick",C,...S);else if(Ge(C)){const H=C.map(D);t("pick",H,...S)}else t("pick",D(C),...S);F.value=null,K.value=null,w.value=!1,x=!1},Z=(C,S)=>{if(W.value==="date"){C=C;let H=o.parsedValue?o.parsedValue.year(C.year()).month(C.month()).date(C.date()):C;R(H)||(H=O.value[0][0].year(C.year()).month(C.month()).date(C.date())),y.value=H,j(H,ge.value||S),o.type==="datetime"&&nt()}else W.value==="week"?j(C.date):W.value==="dates"&&j(C,!0)},Q=C=>{const S=C?"add":"subtract";y.value=y.value[S](1,"month"),Y("month")},J=C=>{const S=y.value,H=C?"add":"subtract";y.value=L.value==="year"?S[H](10,"year"):S[H](1,"year"),Y("year")},L=V("date"),X=T(()=>{const C=c("el.datepicker.year");if(L.value==="year"){const S=Math.floor(I.value/10)*10;return C?`${S} ${C} - ${S+9} ${C}`:`${S} - ${S+9}`}return`${I.value} ${C}`}),N=C=>{const S=ut(C.value)?C.value():C.value;if(S){x=!0,j(wt(S).locale(u.value));return}C.onClick&&C.onClick({attrs:a,slots:i,emit:t})},W=T(()=>{const{type:C}=o;return["week","month","year","dates"].includes(C)?C:"date"}),re=T(()=>W.value==="date"?L.value:W.value),ie=T(()=>!!f.length),se=async C=>{y.value=y.value.startOf("month").month(C),W.value==="month"?j(y.value,!1):(L.value="date",["month","year","date","week"].includes(W.value)&&(j(y.value,!0),await et(),nt())),Y("month")},ve=async C=>{W.value==="year"?(y.value=y.value.startOf("year").year(C),j(y.value,!1)):(y.value=y.value.year(C),L.value="month",["month","year","date","week"].includes(W.value)&&(j(y.value,!0),await et(),nt())),Y("year")},le=async C=>{L.value=C,await et(),nt()},ge=T(()=>o.type==="datetime"||o.type==="datetimerange"),_e=T(()=>ge.value||W.value==="dates"),me=T(()=>v?o.parsedValue?Ge(o.parsedValue)?v(o.parsedValue[0].toDate()):v(o.parsedValue.toDate()):!0:!1),Be=()=>{if(W.value==="dates")j(o.parsedValue);else{let C=o.parsedValue;if(!C){const S=wt(h).locale(u.value),H=Ue();C=S.year(H.year()).month(H.month()).date(H.date())}y.value=C,j(C)}},ye=T(()=>v?v(wt().locale(u.value).toDate()):!1),Me=()=>{const S=wt().locale(u.value).toDate();w.value=!0,(!v||!v(S))&&R(S)&&(y.value=wt().locale(u.value),j(y.value))},te=T(()=>o.timeFormat||F6(o.format)),ce=T(()=>o.dateFormat||H6(o.format)),we=T(()=>{if(K.value)return K.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||y.value).format(te.value)}),Ae=T(()=>{if(F.value)return F.value;if(!(!o.parsedValue&&!_.value))return(o.parsedValue||y.value).format(ce.value)}),Oe=V(!1),xe=()=>{Oe.value=!0},Ne=()=>{Oe.value=!1},Se=C=>({hour:C.hour(),minute:C.minute(),second:C.second(),year:C.year(),month:C.month(),date:C.date()}),ke=(C,S,H)=>{const{hour:ee,minute:U,second:he}=Se(C),qe=o.parsedValue?o.parsedValue.hour(ee).minute(U).second(he):C;y.value=qe,j(y.value,!0),H||(Oe.value=S)},$e=C=>{const S=wt(C,te.value).locale(u.value);if(S.isValid()&&R(S)){const{year:H,month:ee,date:U}=Se(y.value);y.value=S.year(H).month(ee).date(U),K.value=null,Oe.value=!1,j(y.value,!0)}},Pe=C=>{const S=wt(C,ce.value).locale(u.value);if(S.isValid()){if(v&&v(S.toDate()))return;const{hour:H,minute:ee,second:U}=Se(y.value);y.value=S.hour(H).minute(ee).second(U),F.value=null,j(y.value,!0)}},Ye=C=>wt.isDayjs(C)&&C.isValid()&&(v?!v(C.toDate()):!0),Ke=C=>W.value==="dates"?C.map(S=>S.format(o.format)):C.format(o.format),Ee=C=>wt(C,o.format).locale(u.value),Ue=()=>{const C=wt(_.value).locale(u.value);if(!_.value){const S=M.value;return wt().hour(S.hour()).minute(S.minute()).second(S.second()).locale(u.value)}return C},nt=async()=>{var C;["week","month","year","date"].includes(W.value)&&((C=g.value)==null||C.focus(),W.value==="week"&>(tt.down))},dt=C=>{const{code:S}=C;[tt.up,tt.down,tt.left,tt.right,tt.home,tt.end,tt.pageUp,tt.pageDown].includes(S)&&(gt(S),C.stopPropagation(),C.preventDefault()),[tt.enter,tt.space,tt.numpadEnter].includes(S)&&F.value===null&&K.value===null&&(C.preventDefault(),j(y.value,!1))},gt=C=>{var S;const{up:H,down:ee,left:U,right:he,home:qe,end:st,pageUp:At,pageDown:Mt}=tt,Lt={year:{[H]:-4,[ee]:4,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setFullYear(Ce.getFullYear()+De)},month:{[H]:-4,[ee]:4,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setMonth(Ce.getMonth()+De)},week:{[H]:-1,[ee]:1,[U]:-1,[he]:1,offset:(Ce,De)=>Ce.setDate(Ce.getDate()+De*7)},date:{[H]:-7,[ee]:7,[U]:-1,[he]:1,[qe]:Ce=>-Ce.getDay(),[st]:Ce=>-Ce.getDay()+6,[At]:Ce=>-new Date(Ce.getFullYear(),Ce.getMonth(),0).getDate(),[Mt]:Ce=>new Date(Ce.getFullYear(),Ce.getMonth()+1,0).getDate(),offset:(Ce,De)=>Ce.setDate(Ce.getDate()+De)}},lo=y.value.toDate();for(;Math.abs(y.value.diff(lo,"year",!0))<1;){const Ce=Lt[re.value];if(!Ce)return;if(Ce.offset(lo,ut(Ce[C])?Ce[C](lo):(S=Ce[C])!=null?S:0),v&&v(lo))break;const De=wt(lo).locale(u.value);y.value=De,t("pick",De,!0);break}},Y=C=>{t("panel-change",y.value.toDate(),C,L.value)};return Te(()=>W.value,C=>{if(["month","year"].includes(C)){L.value=C;return}L.value="date"},{immediate:!0}),Te(()=>L.value,()=>{p==null||p.updatePopper()}),Te(()=>_.value,C=>{C&&(y.value=Ue())},{immediate:!0}),Te(()=>o.parsedValue,C=>{if(C){if(W.value==="dates"||Array.isArray(C))return;y.value=C}else y.value=Ue()},{immediate:!0}),t("set-picker-option",["isValidValue",Ye]),t("set-picker-option",["formatToString",Ke]),t("set-picker-option",["parseUserInput",Ee]),t("set-picker-option",["handleFocusPicker",nt]),(C,S)=>(b(),z("div",{class:P([s(l).b(),s(n).b(),{"has-sidebar":C.$slots.sidebar||s(ie),"has-time":s(ge)}])},[$("div",{class:P(s(l).e("body-wrapper"))},[be(C.$slots,"sidebar",{class:P(s(l).e("sidebar"))}),s(ie)?(b(),z("div",{key:0,class:P(s(l).e("sidebar"))},[(b(!0),z(Xe,null,Tt(s(f),(H,ee)=>(b(),z("button",{key:ee,type:"button",class:P(s(l).e("shortcut")),onClick:U=>N(H)},ze(H.text),11,wX))),128))],2)):ue("v-if",!0),$("div",{class:P(s(l).e("body"))},[s(ge)?(b(),z("div",{key:0,class:P(s(n).e("time-header"))},[$("span",{class:P(s(n).e("editor-wrap"))},[oe(s(Wo),{placeholder:s(c)("el.datepicker.selectDate"),"model-value":s(Ae),size:"small","validate-event":!1,onInput:S[0]||(S[0]=H=>F.value=H),onChange:Pe},null,8,["placeholder","model-value"])],2),ht((b(),z("span",{class:P(s(n).e("editor-wrap"))},[oe(s(Wo),{placeholder:s(c)("el.datepicker.selectTime"),"model-value":s(we),size:"small","validate-event":!1,onFocus:xe,onInput:S[1]||(S[1]=H=>K.value=H),onChange:$e},null,8,["placeholder","model-value"]),oe(s(dd),{visible:Oe.value,format:s(te),"parsed-value":y.value,onPick:ke},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),Ne]])],2)):ue("v-if",!0),ht($("div",{class:P([s(n).e("header"),(L.value==="year"||L.value==="month")&&s(n).e("header--bordered")])},[$("span",{class:P(s(n).e("prev-btn"))},[$("button",{type:"button","aria-label":s(c)("el.datepicker.prevYear"),class:P(["d-arrow-left",s(l).e("icon-btn")]),onClick:S[2]||(S[2]=H=>J(!1))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,yX),ht($("button",{type:"button","aria-label":s(c)("el.datepicker.prevMonth"),class:P([s(l).e("icon-btn"),"arrow-left"]),onClick:S[3]||(S[3]=H=>Q(!1))},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,xX),[[Pt,L.value==="date"]])],2),$("span",{role:"button",class:P(s(n).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:S[4]||(S[4]=Rt(H=>le("year"),["enter"])),onClick:S[5]||(S[5]=H=>le("year"))},ze(s(X)),35),ht($("span",{role:"button","aria-live":"polite",tabindex:"0",class:P([s(n).e("header-label"),{active:L.value==="month"}]),onKeydown:S[6]||(S[6]=Rt(H=>le("month"),["enter"])),onClick:S[7]||(S[7]=H=>le("month"))},ze(s(c)(`el.datepicker.month${s(E)+1}`)),35),[[Pt,L.value==="date"]]),$("span",{class:P(s(n).e("next-btn"))},[ht($("button",{type:"button","aria-label":s(c)("el.datepicker.nextMonth"),class:P([s(l).e("icon-btn"),"arrow-right"]),onClick:S[8]||(S[8]=H=>Q(!0))},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,kX),[[Pt,L.value==="date"]]),$("button",{type:"button","aria-label":s(c)("el.datepicker.nextYear"),class:P([s(l).e("icon-btn"),"d-arrow-right"]),onClick:S[9]||(S[9]=H=>J(!0))},[oe(s(Je),null,{default:ne(()=>[oe(s(ra))]),_:1})],10,CX)],2)],2),[[Pt,L.value!=="time"]]),$("div",{class:P(s(l).e("content")),onKeydown:dt},[L.value==="date"?(b(),de(Oh,{key:0,ref_key:"currentViewRef",ref:g,"selection-mode":s(W),date:y.value,"parsed-value":C.parsedValue,"disabled-date":s(v),"cell-class-name":s(m),onPick:Z},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ue("v-if",!0),L.value==="year"?(b(),de(_X,{key:1,ref_key:"currentViewRef",ref:g,date:y.value,"disabled-date":s(v),"parsed-value":C.parsedValue,onPick:ve},null,8,["date","disabled-date","parsed-value"])):ue("v-if",!0),L.value==="month"?(b(),de(Ih,{key:2,ref_key:"currentViewRef",ref:g,date:y.value,"parsed-value":C.parsedValue,"disabled-date":s(v),onPick:se},null,8,["date","parsed-value","disabled-date"])):ue("v-if",!0)],34)],2)],2),ht($("div",{class:P(s(l).e("footer"))},[ht(oe(s(Vo),{text:"",size:"small",class:P(s(l).e("link-btn")),disabled:s(ye),onClick:Me},{default:ne(()=>[$t(ze(s(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Pt,s(W)!=="dates"]]),oe(s(Vo),{plain:"",size:"small",class:P(s(l).e("link-btn")),disabled:s(me),onClick:Be},{default:ne(()=>[$t(ze(s(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Pt,s(_e)&&L.value==="date"]])],2))}}),[["__file","panel-date-pick.vue"]]);const EX=He({...tw,...ow}),$X=e=>{const{emit:t}=_t(),o=Hn(),r=Bo();return n=>{const a=ut(n.value)?n.value():n.value;if(a){t("pick",[wt(a[0]).locale(e.value),wt(a[1]).locale(e.value)]);return}n.onClick&&n.onClick({attrs:o,slots:r,emit:t})}},nw=(e,{defaultValue:t,leftDate:o,rightDate:r,unit:l,onParsedValueChanged:n})=>{const{emit:a}=_t(),{pickerNs:i}=Le(Th),c=Ie("date-range-picker"),{t:u,lang:d}=Nt(),p=$X(d),f=V(),v=V(),m=V({endDate:null,selecting:!1}),h=w=>{m.value=w},_=(w=!1)=>{const x=s(f),M=s(v);Mh([x,M])&&a("pick",[x,M],w)},g=w=>{m.value.selecting=w,w||(m.value.endDate=null)},y=()=>{const[w,x]=lw(s(t),{lang:s(d),unit:l,unlinkPanels:e.unlinkPanels});f.value=void 0,v.value=void 0,o.value=w,r.value=x};return Te(t,w=>{w&&y()},{immediate:!0}),Te(()=>e.parsedValue,w=>{if(Ge(w)&&w.length===2){const[x,M]=w;f.value=x,o.value=x,v.value=M,n(s(f),s(v))}else y()},{immediate:!0}),{minDate:f,maxDate:v,rangeState:m,lang:d,ppNs:i,drpNs:c,handleChangeRange:h,handleRangeConfirm:_,handleShortcutClick:p,onSelect:g,t:u}},TX=["onClick"],zX=["aria-label"],MX=["aria-label"],AX=["disabled","aria-label"],OX=["disabled","aria-label"],IX=["disabled","aria-label"],PX=["disabled","aria-label"],BX=["aria-label"],NX=["aria-label"],bd="month";var LX=Fe(B({__name:"panel-date-range",props:EX,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const o=e,r=Le("EP_PICKER_BASE"),{disabledDate:l,cellClassName:n,format:a,defaultTime:i,clearable:c}=r.props,u=so(r.props,"shortcuts"),d=so(r.props,"defaultValue"),{lang:p}=Nt(),f=V(wt().locale(p.value)),v=V(wt().locale(p.value).add(1,bd)),{minDate:m,maxDate:h,rangeState:_,ppNs:g,drpNs:y,handleChangeRange:w,handleRangeConfirm:x,handleShortcutClick:M,onSelect:E,t:I}=nw(o,{defaultValue:d,leftDate:f,rightDate:v,unit:bd,onParsedValueChanged:S}),O=V({min:null,max:null}),F=V({min:null,max:null}),K=T(()=>`${f.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${f.value.month()+1}`)}`),R=T(()=>`${v.value.year()} ${I("el.datepicker.year")} ${I(`el.datepicker.month${v.value.month()+1}`)}`),D=T(()=>f.value.year()),j=T(()=>f.value.month()),Z=T(()=>v.value.year()),Q=T(()=>v.value.month()),J=T(()=>!!u.value.length),L=T(()=>O.value.min!==null?O.value.min:m.value?m.value.format(ie.value):""),X=T(()=>O.value.max!==null?O.value.max:h.value||m.value?(h.value||m.value).format(ie.value):""),N=T(()=>F.value.min!==null?F.value.min:m.value?m.value.format(re.value):""),W=T(()=>F.value.max!==null?F.value.max:h.value||m.value?(h.value||m.value).format(re.value):""),re=T(()=>o.timeFormat||F6(a)),ie=T(()=>o.dateFormat||H6(a)),se=H=>Mh(H)&&(l?!l(H[0].toDate())&&!l(H[1].toDate()):!0),ve=()=>{f.value=f.value.subtract(1,"year"),o.unlinkPanels||(v.value=f.value.add(1,"month")),te("year")},le=()=>{f.value=f.value.subtract(1,"month"),o.unlinkPanels||(v.value=f.value.add(1,"month")),te("month")},ge=()=>{o.unlinkPanels?v.value=v.value.add(1,"year"):(f.value=f.value.add(1,"year"),v.value=f.value.add(1,"month")),te("year")},_e=()=>{o.unlinkPanels?v.value=v.value.add(1,"month"):(f.value=f.value.add(1,"month"),v.value=f.value.add(1,"month")),te("month")},me=()=>{f.value=f.value.add(1,"year"),te("year")},Be=()=>{f.value=f.value.add(1,"month"),te("month")},ye=()=>{v.value=v.value.subtract(1,"year"),te("year")},Me=()=>{v.value=v.value.subtract(1,"month"),te("month")},te=H=>{t("panel-change",[f.value.toDate(),v.value.toDate()],H)},ce=T(()=>{const H=(j.value+1)%12,ee=j.value+1>=12?1:0;return o.unlinkPanels&&new Date(D.value+ee,H)o.unlinkPanels&&Z.value*12+Q.value-(D.value*12+j.value+1)>=12),Ae=T(()=>!(m.value&&h.value&&!_.value.selecting&&Mh([m.value,h.value]))),Oe=T(()=>o.type==="datetime"||o.type==="datetimerange"),xe=(H,ee)=>{if(H)return i?wt(i[ee]||i).locale(p.value).year(H.year()).month(H.month()).date(H.date()):H},Ne=(H,ee=!0)=>{const U=H.minDate,he=H.maxDate,qe=xe(U,0),st=xe(he,1);h.value===st&&m.value===qe||(t("calendar-change",[U.toDate(),he&&he.toDate()]),h.value=st,m.value=qe,!(!ee||Oe.value)&&x())},Se=V(!1),ke=V(!1),$e=()=>{Se.value=!1},Pe=()=>{ke.value=!1},Ye=(H,ee)=>{O.value[ee]=H;const U=wt(H,ie.value).locale(p.value);if(U.isValid()){if(l&&l(U.toDate()))return;ee==="min"?(f.value=U,m.value=(m.value||f.value).year(U.year()).month(U.month()).date(U.date()),!o.unlinkPanels&&(!h.value||h.value.isBefore(m.value))&&(v.value=U.add(1,"month"),h.value=m.value.add(1,"month"))):(v.value=U,h.value=(h.value||v.value).year(U.year()).month(U.month()).date(U.date()),!o.unlinkPanels&&(!m.value||m.value.isAfter(h.value))&&(f.value=U.subtract(1,"month"),m.value=h.value.subtract(1,"month")))}},Ke=(H,ee)=>{O.value[ee]=null},Ee=(H,ee)=>{F.value[ee]=H;const U=wt(H,re.value).locale(p.value);U.isValid()&&(ee==="min"?(Se.value=!0,m.value=(m.value||f.value).hour(U.hour()).minute(U.minute()).second(U.second()),(!h.value||h.value.isBefore(m.value))&&(h.value=m.value)):(ke.value=!0,h.value=(h.value||v.value).hour(U.hour()).minute(U.minute()).second(U.second()),v.value=h.value,h.value&&h.value.isBefore(m.value)&&(m.value=h.value)))},Ue=(H,ee)=>{F.value[ee]=null,ee==="min"?(f.value=m.value,Se.value=!1):(v.value=h.value,ke.value=!1)},nt=(H,ee,U)=>{F.value.min||(H&&(f.value=H,m.value=(m.value||f.value).hour(H.hour()).minute(H.minute()).second(H.second())),U||(Se.value=ee),(!h.value||h.value.isBefore(m.value))&&(h.value=m.value,v.value=H))},dt=(H,ee,U)=>{F.value.max||(H&&(v.value=H,h.value=(h.value||v.value).hour(H.hour()).minute(H.minute()).second(H.second())),U||(ke.value=ee),h.value&&h.value.isBefore(m.value)&&(m.value=h.value))},gt=()=>{f.value=lw(s(d),{lang:s(p),unit:"month",unlinkPanels:o.unlinkPanels})[0],v.value=f.value.add(1,"month"),t("pick",null)},Y=H=>Ge(H)?H.map(ee=>ee.format(a)):H.format(a),C=H=>Ge(H)?H.map(ee=>wt(ee,a).locale(p.value)):wt(H,a).locale(p.value);function S(H,ee){if(o.unlinkPanels&&ee){const U=(H==null?void 0:H.year())||0,he=(H==null?void 0:H.month())||0,qe=ee.year(),st=ee.month();v.value=U===qe&&he===st?ee.add(1,bd):ee}else v.value=f.value.add(1,bd),ee&&(v.value=v.value.hour(ee.hour()).minute(ee.minute()).second(ee.second()))}return t("set-picker-option",["isValidValue",se]),t("set-picker-option",["parseUserInput",C]),t("set-picker-option",["formatToString",Y]),t("set-picker-option",["handleClear",gt]),(H,ee)=>(b(),z("div",{class:P([s(g).b(),s(y).b(),{"has-sidebar":H.$slots.sidebar||s(J),"has-time":s(Oe)}])},[$("div",{class:P(s(g).e("body-wrapper"))},[be(H.$slots,"sidebar",{class:P(s(g).e("sidebar"))}),s(J)?(b(),z("div",{key:0,class:P(s(g).e("sidebar"))},[(b(!0),z(Xe,null,Tt(s(u),(U,he)=>(b(),z("button",{key:he,type:"button",class:P(s(g).e("shortcut")),onClick:qe=>s(M)(U)},ze(U.text),11,TX))),128))],2)):ue("v-if",!0),$("div",{class:P(s(g).e("body"))},[s(Oe)?(b(),z("div",{key:0,class:P(s(y).e("time-header"))},[$("span",{class:P(s(y).e("editors-wrap"))},[$("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",disabled:s(_).selecting,placeholder:s(I)("el.datepicker.startDate"),class:P(s(y).e("editor")),"model-value":s(L),"validate-event":!1,onInput:ee[0]||(ee[0]=U=>Ye(U,"min")),onChange:ee[1]||(ee[1]=U=>Ke(U,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),ht((b(),z("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(I)("el.datepicker.startTime"),"model-value":s(N),"validate-event":!1,onFocus:ee[2]||(ee[2]=U=>Se.value=!0),onInput:ee[3]||(ee[3]=U=>Ee(U,"min")),onChange:ee[4]||(ee[4]=U=>Ue(U,"min"))},null,8,["class","disabled","placeholder","model-value"]),oe(s(dd),{visible:Se.value,format:s(re),"datetime-role":"start","parsed-value":f.value,onPick:nt},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),$e]])],2),$("span",null,[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})]),$("span",{class:P([s(y).e("editors-wrap"),"is-right"])},[$("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(I)("el.datepicker.endDate"),"model-value":s(X),readonly:!s(m),"validate-event":!1,onInput:ee[5]||(ee[5]=U=>Ye(U,"max")),onChange:ee[6]||(ee[6]=U=>Ke(U,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ht((b(),z("span",{class:P(s(y).e("time-picker-wrap"))},[oe(s(Wo),{size:"small",class:P(s(y).e("editor")),disabled:s(_).selecting,placeholder:s(I)("el.datepicker.endTime"),"model-value":s(W),readonly:!s(m),"validate-event":!1,onFocus:ee[7]||(ee[7]=U=>s(m)&&(ke.value=!0)),onInput:ee[8]||(ee[8]=U=>Ee(U,"max")),onChange:ee[9]||(ee[9]=U=>Ue(U,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),oe(s(dd),{"datetime-role":"end",visible:ke.value,format:s(re),"parsed-value":v.value,onPick:dt},null,8,["visible","format","parsed-value"])],2)),[[s(Ul),Pe]])],2)],2)):ue("v-if",!0),$("div",{class:P([[s(g).e("content"),s(y).e("content")],"is-left"])},[$("div",{class:P(s(y).e("header"))},[$("button",{type:"button",class:P([s(g).e("icon-btn"),"d-arrow-left"]),"aria-label":s(I)("el.datepicker.prevYear"),onClick:ve},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,zX),$("button",{type:"button",class:P([s(g).e("icon-btn"),"arrow-left"]),"aria-label":s(I)("el.datepicker.prevMonth"),onClick:le},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,MX),H.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(we),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(we)}],"d-arrow-right"]),"aria-label":s(I)("el.datepicker.nextYear"),onClick:me},[oe(s(Je),null,{default:ne(()=>[oe(s(ra))]),_:1})],10,AX)):ue("v-if",!0),H.unlinkPanels?(b(),z("button",{key:1,type:"button",disabled:!s(ce),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(ce)}],"arrow-right"]),"aria-label":s(I)("el.datepicker.nextMonth"),onClick:Be},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,OX)):ue("v-if",!0),$("div",null,ze(s(K)),1)],2),oe(Oh,{"selection-mode":"range",date:f.value,"min-date":s(m),"max-date":s(h),"range-state":s(_),"disabled-date":s(l),"cell-class-name":s(n),onChangerange:s(w),onPick:Ne,onSelect:s(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),$("div",{class:P([[s(g).e("content"),s(y).e("content")],"is-right"])},[$("div",{class:P(s(y).e("header"))},[H.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(we),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(we)}],"d-arrow-left"]),"aria-label":s(I)("el.datepicker.prevYear"),onClick:ye},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,IX)):ue("v-if",!0),H.unlinkPanels?(b(),z("button",{key:1,type:"button",disabled:!s(ce),class:P([[s(g).e("icon-btn"),{"is-disabled":!s(ce)}],"arrow-left"]),"aria-label":s(I)("el.datepicker.prevMonth"),onClick:Me},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],10,PX)):ue("v-if",!0),$("button",{type:"button","aria-label":s(I)("el.datepicker.nextYear"),class:P([s(g).e("icon-btn"),"d-arrow-right"]),onClick:ge},[oe(s(Je),null,{default:ne(()=>[oe(s(ra))]),_:1})],10,BX),$("button",{type:"button",class:P([s(g).e("icon-btn"),"arrow-right"]),"aria-label":s(I)("el.datepicker.nextMonth"),onClick:_e},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],10,NX),$("div",null,ze(s(R)),1)],2),oe(Oh,{"selection-mode":"range",date:v.value,"min-date":s(m),"max-date":s(h),"range-state":s(_),"disabled-date":s(l),"cell-class-name":s(n),onChangerange:s(w),onPick:Ne,onSelect:s(E)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),s(Oe)?(b(),z("div",{key:0,class:P(s(g).e("footer"))},[s(c)?(b(),de(s(Vo),{key:0,text:"",size:"small",class:P(s(g).e("link-btn")),onClick:gt},{default:ne(()=>[$t(ze(s(I)("el.datepicker.clear")),1)]),_:1},8,["class"])):ue("v-if",!0),oe(s(Vo),{plain:"",size:"small",class:P(s(g).e("link-btn")),disabled:s(Ae),onClick:ee[10]||(ee[10]=U=>s(x)(!1))},{default:ne(()=>[$t(ze(s(I)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):ue("v-if",!0)],2))}}),[["__file","panel-date-range.vue"]]);const RX=He({...ow}),VX=["pick","set-picker-option","calendar-change"],HX=({unlinkPanels:e,leftDate:t,rightDate:o})=>{const{t:r}=Nt(),l=()=>{t.value=t.value.subtract(1,"year"),e.value||(o.value=o.value.subtract(1,"year"))},n=()=>{e.value||(t.value=t.value.add(1,"year")),o.value=o.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},i=()=>{o.value=o.value.subtract(1,"year")},c=T(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=T(()=>`${o.value.year()} ${r("el.datepicker.year")}`),d=T(()=>t.value.year()),p=T(()=>o.value.year()===t.value.year()?t.value.year()+1:o.value.year());return{leftPrevYear:l,rightNextYear:n,leftNextYear:a,rightPrevYear:i,leftLabel:c,rightLabel:u,leftYear:d,rightYear:p}},FX=["onClick"],DX=["disabled"],jX=["disabled"],_d="year",KX=B({...B({name:"DatePickerMonthRange"}),props:RX,emits:VX,setup(e,{emit:t}){const o=e,{lang:r}=Nt(),l=Le("EP_PICKER_BASE"),{shortcuts:n,disabledDate:a,format:i}=l.props,c=so(l.props,"defaultValue"),u=V(wt().locale(r.value)),d=V(wt().locale(r.value).add(1,_d)),{minDate:p,maxDate:f,rangeState:v,ppNs:m,drpNs:h,handleChangeRange:_,handleRangeConfirm:g,handleShortcutClick:y,onSelect:w}=nw(o,{defaultValue:c,leftDate:u,rightDate:d,unit:_d,onParsedValueChanged:J}),x=T(()=>!!n.length),{leftPrevYear:M,rightNextYear:E,leftNextYear:I,rightPrevYear:O,leftLabel:F,rightLabel:K,leftYear:R,rightYear:D}=HX({unlinkPanels:so(o,"unlinkPanels"),leftDate:u,rightDate:d}),j=T(()=>o.unlinkPanels&&D.value>R.value+1),Z=(L,X=!0)=>{const N=L.minDate,W=L.maxDate;f.value===W&&p.value===N||(t("calendar-change",[N.toDate(),W&&W.toDate()]),f.value=W,p.value=N,X&&g())},Q=L=>L.map(X=>X.format(i));function J(L,X){if(o.unlinkPanels&&X){const N=(L==null?void 0:L.year())||0,W=X.year();d.value=N===W?X.add(1,_d):X}else d.value=u.value.add(1,_d)}return t("set-picker-option",["formatToString",Q]),(L,X)=>(b(),z("div",{class:P([s(m).b(),s(h).b(),{"has-sidebar":!!L.$slots.sidebar||s(x)}])},[$("div",{class:P(s(m).e("body-wrapper"))},[be(L.$slots,"sidebar",{class:P(s(m).e("sidebar"))}),s(x)?(b(),z("div",{key:0,class:P(s(m).e("sidebar"))},[(b(!0),z(Xe,null,Tt(s(n),(N,W)=>(b(),z("button",{key:W,type:"button",class:P(s(m).e("shortcut")),onClick:re=>s(y)(N)},ze(N.text),11,FX))),128))],2)):ue("v-if",!0),$("div",{class:P(s(m).e("body"))},[$("div",{class:P([[s(m).e("content"),s(h).e("content")],"is-left"])},[$("div",{class:P(s(h).e("header"))},[$("button",{type:"button",class:P([s(m).e("icon-btn"),"d-arrow-left"]),onClick:X[0]||(X[0]=(...N)=>s(M)&&s(M)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],2),L.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(j),class:P([[s(m).e("icon-btn"),{[s(m).is("disabled")]:!s(j)}],"d-arrow-right"]),onClick:X[1]||(X[1]=(...N)=>s(I)&&s(I)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(ra))]),_:1})],10,DX)):ue("v-if",!0),$("div",null,ze(s(F)),1)],2),oe(Ih,{"selection-mode":"range",date:u.value,"min-date":s(p),"max-date":s(f),"range-state":s(v),"disabled-date":s(a),onChangerange:s(_),onPick:Z,onSelect:s(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),$("div",{class:P([[s(m).e("content"),s(h).e("content")],"is-right"])},[$("div",{class:P(s(h).e("header"))},[L.unlinkPanels?(b(),z("button",{key:0,type:"button",disabled:!s(j),class:P([[s(m).e("icon-btn"),{"is-disabled":!s(j)}],"d-arrow-left"]),onClick:X[2]||(X[2]=(...N)=>s(O)&&s(O)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(oa))]),_:1})],10,jX)):ue("v-if",!0),$("button",{type:"button",class:P([s(m).e("icon-btn"),"d-arrow-right"]),onClick:X[3]||(X[3]=(...N)=>s(E)&&s(E)(...N))},[oe(s(Je),null,{default:ne(()=>[oe(s(ra))]),_:1})],2),$("div",null,ze(s(K)),1)],2),oe(Ih,{"selection-mode":"range",date:d.value,"min-date":s(p),"max-date":s(f),"range-state":s(v),"disabled-date":s(a),onChangerange:s(_),onPick:Z,onSelect:s(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var WX=Fe(KX,[["__file","panel-month-range.vue"]]);const UX=function(e){switch(e){case"daterange":case"datetimerange":return LX;case"monthrange":return WX;default:return SX}};wt.extend(h4),wt.extend(NG),wt.extend(ah),wt.extend(RG),wt.extend(HG),wt.extend(DG),wt.extend(KG),wt.extend(UG);var qX=B({name:"ElDatePicker",install:null,props:qG,emits:["update:modelValue"],setup(e,{expose:t,emit:o,slots:r}){const l=Ie("picker-panel");zt("ElPopperOptions",Ft(so(e,"popperOptions"))),zt(Th,{slots:r,pickerNs:l});const n=V();t({focus:(c=!0)=>{var u;(u=n.value)==null||u.focus(c)},handleOpen:()=>{var c;(c=n.value)==null||c.handleOpen()},handleClose:()=>{var c;(c=n.value)==null||c.handleClose()}});const i=c=>{o("update:modelValue",c)};return()=>{var c;const u=(c=e.format)!=null?c:gU[e.type]||ui,d=UX(e.type);return oe(Y6,Et(e,{format:u,type:e.type,ref:n,"onUpdate:modelValue":i}),{default:p=>oe(d,p,null),"range-separator":r["range-separator"]})}}});const wd=qX;wd.install=e=>{e.component(wd.name,wd)};const YX=wd,Ph=Symbol("elDescriptions");var qs=B({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Le(Ph,{})}},render(){var e,t,o,r,l,n,a;const i=ZH(this.cell),c=(((e=this.cell)==null?void 0:e.dirs)||[]).map(M=>{const{dir:E,arg:I,modifiers:O,value:F}=M;return[E,F,I,O]}),{border:u,direction:d}=this.descriptions,p=d==="vertical",f=((r=(o=(t=this.cell)==null?void 0:t.children)==null?void 0:o.label)==null?void 0:r.call(o))||i.label,v=(a=(n=(l=this.cell)==null?void 0:l.children)==null?void 0:n.default)==null?void 0:a.call(n),m=i.span,h=i.align?`is-${i.align}`:"",_=i.labelAlign?`is-${i.labelAlign}`:h,g=i.className,y=i.labelClassName,w={width:bo(i.width),minWidth:bo(i.minWidth)},x=Ie("descriptions");switch(this.type){case"label":return ht(rt(this.tag,{style:w,class:[x.e("cell"),x.e("label"),x.is("bordered-label",u),x.is("vertical-label",p),_,y],colSpan:p?m:1},f),c);case"content":return ht(rt(this.tag,{style:w,class:[x.e("cell"),x.e("content"),x.is("bordered-content",u),x.is("vertical-content",p),h,g],colSpan:p?m:m*2-1},v),c);default:return ht(rt("td",{style:w,class:[x.e("cell"),h],colSpan:m},[wo(f)?void 0:rt("span",{class:[x.e("label"),y]},f),rt("span",{class:[x.e("content"),g]},v)]),c)}}});const GX=He({row:{type:pe(Array),default:()=>[]}}),XX={key:1},ZX=B({...B({name:"ElDescriptionsRow"}),props:GX,setup(e){const t=Le(Ph,{});return(o,r)=>s(t).direction==="vertical"?(b(),z(Xe,{key:0},[$("tr",null,[(b(!0),z(Xe,null,Tt(o.row,(l,n)=>(b(),de(s(qs),{key:`tr1-${n}`,cell:l,tag:"th",type:"label"},null,8,["cell"]))),128))]),$("tr",null,[(b(!0),z(Xe,null,Tt(o.row,(l,n)=>(b(),de(s(qs),{key:`tr2-${n}`,cell:l,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(b(),z("tr",XX,[(b(!0),z(Xe,null,Tt(o.row,(l,n)=>(b(),z(Xe,{key:`tr3-${n}`},[s(t).border?(b(),z(Xe,{key:0},[oe(s(qs),{cell:l,tag:"td",type:"label"},null,8,["cell"]),oe(s(qs),{cell:l,tag:"td",type:"content"},null,8,["cell"])],64)):(b(),de(s(qs),{key:1,cell:l,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var JX=Fe(ZX,[["__file","descriptions-row.vue"]]);const QX=He({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:No,title:{type:String,default:""},extra:{type:String,default:""}}),eZ=B({...B({name:"ElDescriptions"}),props:QX,setup(e){const t=e,o=Ie("descriptions"),r=Eo(),l=Bo();zt(Ph,t);const n=T(()=>[o.b(),o.m(r.value)]),a=(c,u,d,p=!1)=>(c.props||(c.props={}),u>d&&(c.props.span=d),p&&(c.props.span=u),c),i=()=>{if(!l.default)return[];const c=la(l.default()).filter(v=>{var m;return((m=v==null?void 0:v.type)==null?void 0:m.name)==="ElDescriptionsItem"}),u=[];let d=[],p=t.column,f=0;return c.forEach((v,m)=>{var h;const _=((h=v.props)==null?void 0:h.span)||1;if(mp?p:_),m===c.length-1){const g=t.column-f%t.column;d.push(a(v,g,p,!0)),u.push(d);return}_(b(),z("div",{class:P(s(n))},[c.title||c.extra||c.$slots.title||c.$slots.extra?(b(),z("div",{key:0,class:P(s(o).e("header"))},[$("div",{class:P(s(o).e("title"))},[be(c.$slots,"title",{},()=>[$t(ze(c.title),1)])],2),$("div",{class:P(s(o).e("extra"))},[be(c.$slots,"extra",{},()=>[$t(ze(c.extra),1)])],2)],2)):ue("v-if",!0),$("div",{class:P(s(o).e("body"))},[$("table",{class:P([s(o).e("table"),s(o).is("bordered",c.border)])},[$("tbody",null,[(b(!0),z(Xe,null,Tt(i(),(d,p)=>(b(),de(JX,{key:p,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var tZ=Fe(eZ,[["__file","description.vue"]]);const oZ=He({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),aw=B({name:"ElDescriptionsItem",props:oZ}),rZ=xt(tZ,{DescriptionsItem:aw}),lZ=fo(aw),nZ=He({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:pe([String,Array,Object])},zIndex:{type:pe([String,Number])}}),aZ={click:e=>e instanceof MouseEvent},iZ="overlay";var sZ=B({name:"ElOverlay",props:nZ,emits:aZ,setup(e,{slots:t,emit:o}){const r=Ie(iZ),l=c=>{o("click",c)},{onClick:n,onMousedown:a,onMouseup:i}=M0(e.customMaskEvent?void 0:l);return()=>e.mask?oe("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:n,onMousedown:a,onMouseup:i},[be(t,"default")],Ar.STYLE|Ar.CLASS|Ar.PROPS,["onClick","onMouseup","onMousedown"]):rt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[be(t,"default")])}});const Bh=sZ,iw=Symbol("dialogInjectionKey"),sw=He({center:Boolean,alignCenter:Boolean,closeIcon:{type:qt},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),cZ={close:()=>!0},uZ=["aria-level"],dZ=["aria-label"],pZ=["id"],fZ=B({...B({name:"ElDialogContent"}),props:sw,emits:cZ,setup(e){const t=e,{t:o}=Nt(),{Close:r}=N3,{dialogRef:l,headerRef:n,bodyId:a,ns:i,style:c}=Le(iw),{focusTrapRef:u}=Le(Z0),d=T(()=>[i.b(),i.is("fullscreen",t.fullscreen),i.is("draggable",t.draggable),i.is("align-center",t.alignCenter),{[i.m("center")]:t.center},t.customClass]),p=Pu(u,l),f=T(()=>t.draggable);return H3(l,n,f),(v,m)=>(b(),z("div",{ref:s(p),class:P(s(d)),style:Qe(s(c)),tabindex:"-1"},[$("header",{ref_key:"headerRef",ref:n,class:P(s(i).e("header"))},[be(v.$slots,"header",{},()=>[$("span",{role:"heading","aria-level":v.ariaLevel,class:P(s(i).e("title"))},ze(v.title),11,uZ)]),v.showClose?(b(),z("button",{key:0,"aria-label":s(o)("el.dialog.close"),class:P(s(i).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=h=>v.$emit("close"))},[oe(s(Je),{class:P(s(i).e("close"))},{default:ne(()=>[(b(),de(St(v.closeIcon||s(r))))]),_:1},8,["class"])],10,dZ)):ue("v-if",!0)],2),$("div",{id:s(a),class:P(s(i).e("body"))},[be(v.$slots,"default")],10,pZ),v.$slots.footer?(b(),z("footer",{key:0,class:P(s(i).e("footer"))},[be(v.$slots,"footer")],2)):ue("v-if",!0)],6))}});var hZ=Fe(fZ,[["__file","dialog-content.vue"]]);const cw=He({...sw,appendToBody:Boolean,appendTo:{type:pe(String),default:"body"},beforeClose:{type:pe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),uw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[kt]:e=>Co(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dw=(e,t)=>{var o;const l=_t().emit,{nextZIndex:n}=oi();let a="";const i=dr(),c=dr(),u=V(!1),d=V(!1),p=V(!1),f=V((o=e.zIndex)!=null?o:n());let v,m;const h=Uu("namespace",$s),_=T(()=>{const Q={},J=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(Q[`${J}-margin-top`]=e.top),e.width&&(Q[`${J}-width`]=bo(e.width))),Q}),g=T(()=>e.alignCenter?{display:"flex"}:{});function y(){l("opened")}function w(){l("closed"),l(kt,!1),e.destroyOnClose&&(p.value=!1)}function x(){l("close")}function M(){m==null||m(),v==null||v(),e.openDelay&&e.openDelay>0?{stop:v}=qn(()=>F(),e.openDelay):F()}function E(){v==null||v(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=qn(()=>K(),e.closeDelay):K()}function I(){function Q(J){J||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(Q):E()}function O(){e.closeOnClickModal&&I()}function F(){Bt&&(u.value=!0)}function K(){u.value=!1}function R(){l("openAutoFocus")}function D(){l("closeAutoFocus")}function j(Q){var J;((J=Q.detail)==null?void 0:J.focusReason)==="pointer"&&Q.preventDefault()}e.lockScroll&&j3(u);function Z(){e.closeOnPressEscape&&I()}return Te(()=>e.modelValue,Q=>{Q?(d.value=!1,M(),p.value=!0,f.value=i3(e.zIndex)?n():f.value++,et(()=>{l("open"),t.value&&(t.value.scrollTop=0)})):u.value&&E()}),Te(()=>e.fullscreen,Q=>{t.value&&(Q?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),vt(()=>{e.modelValue&&(u.value=!0,p.value=!0,M())}),{afterEnter:y,afterLeave:w,beforeLeave:x,handleClose:I,onModalClick:O,close:E,doClose:K,onOpenAutoFocus:R,onCloseAutoFocus:D,onCloseRequested:Z,onFocusoutPrevented:j,titleId:i,bodyId:c,closed:d,style:_,overlayDialogStyle:g,rendered:p,visible:u,zIndex:f}},vZ=["aria-label","aria-labelledby","aria-describedby"],mZ=B({...B({name:"ElDialog",inheritAttrs:!1}),props:cw,emits:uw,setup(e,{expose:t}){const o=e,r=Bo();cl({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},T(()=>!!r.title)),cl({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},T(()=>!!o.customClass));const l=Ie("dialog"),n=V(),a=V(),i=V(),{visible:c,titleId:u,bodyId:d,style:p,overlayDialogStyle:f,rendered:v,zIndex:m,afterEnter:h,afterLeave:_,beforeLeave:g,handleClose:y,onModalClick:w,onOpenAutoFocus:x,onCloseAutoFocus:M,onCloseRequested:E,onFocusoutPrevented:I}=dw(o,n);zt(iw,{dialogRef:n,headerRef:a,bodyId:d,ns:l,rendered:v,style:p});const O=M0(w),F=T(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:i}),(K,R)=>(b(),de(Zi,{to:K.appendTo,disabled:K.appendTo!=="body"?!1:!K.appendToBody},[oe(_o,{name:"dialog-fade",onAfterEnter:s(h),onAfterLeave:s(_),onBeforeLeave:s(g),persisted:""},{default:ne(()=>[ht(oe(s(Bh),{"custom-mask-event":"",mask:K.modal,"overlay-class":K.modalClass,"z-index":s(m)},{default:ne(()=>[$("div",{role:"dialog","aria-modal":"true","aria-label":K.title||void 0,"aria-labelledby":K.title?void 0:s(u),"aria-describedby":s(d),class:P(`${s(l).namespace.value}-overlay-dialog`),style:Qe(s(f)),onClick:R[0]||(R[0]=(...D)=>s(O).onClick&&s(O).onClick(...D)),onMousedown:R[1]||(R[1]=(...D)=>s(O).onMousedown&&s(O).onMousedown(...D)),onMouseup:R[2]||(R[2]=(...D)=>s(O).onMouseup&&s(O).onMouseup(...D))},[oe(s(od),{loop:"",trapped:s(c),"focus-start-el":"container",onFocusAfterTrapped:s(x),onFocusAfterReleased:s(M),onFocusoutPrevented:s(I),onReleaseRequested:s(E)},{default:ne(()=>[s(v)?(b(),de(hZ,Et({key:0,ref_key:"dialogContentRef",ref:i},K.$attrs,{"custom-class":K.customClass,center:K.center,"align-center":K.alignCenter,"close-icon":K.closeIcon,draggable:s(F),fullscreen:K.fullscreen,"show-close":K.showClose,title:K.title,"aria-level":K.headerAriaLevel,onClose:s(y)}),tl({header:ne(()=>[K.$slots.title?be(K.$slots,"title",{key:1}):be(K.$slots,"header",{key:0,close:s(y),titleId:s(u),titleClass:s(l).e("title")})]),default:ne(()=>[be(K.$slots,"default")]),_:2},[K.$slots.footer?{name:"footer",fn:ne(()=>[be(K.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):ue("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,vZ)]),_:3},8,["mask","overlay-class","z-index"]),[[Pt,s(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var gZ=Fe(mZ,[["__file","dialog.vue"]]);const bZ=xt(gZ),_Z=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:pe(String),default:"solid"}}),wZ=B({...B({name:"ElDivider"}),props:_Z,setup(e){const t=e,o=Ie("divider"),r=T(()=>o.cssVar({"border-style":t.borderStyle}));return(l,n)=>(b(),z("div",{class:P([s(o).b(),s(o).m(l.direction)]),style:Qe(s(r)),role:"separator"},[l.$slots.default&&l.direction!=="vertical"?(b(),z("div",{key:0,class:P([s(o).e("text"),s(o).is(l.contentPosition)])},[be(l.$slots,"default")],2)):ue("v-if",!0)],6))}});var yZ=Fe(wZ,[["__file","divider.vue"]]);const pw=xt(yZ),xZ=He({...cw,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),kZ=B({name:"ElDrawer",components:{ElOverlay:Bh,ElFocusTrap:od,ElIcon:Je,Close:Mr},inheritAttrs:!1,props:xZ,emits:uw,setup(e,{slots:t}){cl({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},T(()=>!!t.title)),cl({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},T(()=>!!e.customClass));const o=V(),r=V(),l=Ie("drawer"),{t:n}=Nt(),a=T(()=>e.direction==="rtl"||e.direction==="ltr"),i=T(()=>bo(e.size));return{...dw(e,o),drawerRef:o,focusStartRef:r,isHorizontal:a,drawerSize:i,ns:l,t:n}}}),CZ=["aria-label","aria-labelledby","aria-describedby"],SZ=["id","aria-level"],EZ=["aria-label"],$Z=["id"];function TZ(e,t,o,r,l,n){const a=ot("close"),i=ot("el-icon"),c=ot("el-focus-trap"),u=ot("el-overlay");return b(),de(Zi,{to:"body",disabled:!e.appendToBody},[oe(_o,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:ne(()=>[ht(oe(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ne(()=>[oe(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[$("div",Et({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=it(()=>{},["stop"]))}),[$("span",{ref:"focusStartRef",class:P(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(b(),z("header",{key:0,class:P(e.ns.e("header"))},[e.$slots.title?be(e.$slots,"title",{key:1},()=>[ue(" DEPRECATED SLOT ")]):be(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?ue("v-if",!0):(b(),z("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:P(e.ns.e("title"))},ze(e.title),11,SZ))]),e.showClose?(b(),z("button",{key:2,"aria-label":e.t("el.drawer.close"),class:P(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[oe(i,{class:P(e.ns.e("close"))},{default:ne(()=>[oe(a)]),_:1},8,["class"])],10,EZ)):ue("v-if",!0)],2)):ue("v-if",!0),e.rendered?(b(),z("div",{key:1,id:e.bodyId,class:P(e.ns.e("body"))},[be(e.$slots,"default")],10,$Z)):ue("v-if",!0),e.$slots.footer?(b(),z("div",{key:2,class:P(e.ns.e("footer"))},[be(e.$slots,"footer")],2)):ue("v-if",!0)],16,CZ)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Pt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var zZ=Fe(kZ,[["render",TZ],["__file","drawer.vue"]]);const MZ=xt(zZ),AZ=B({inheritAttrs:!1});function OZ(e,t,o,r,l,n){return be(e.$slots,"default")}var IZ=Fe(AZ,[["render",OZ],["__file","collection.vue"]]);const PZ=B({name:"ElCollectionItem",inheritAttrs:!1});function BZ(e,t,o,r,l,n){return be(e.$slots,"default")}var NZ=Fe(PZ,[["render",BZ],["__file","collection-item.vue"]]);const fw="data-el-collection-item",hw=e=>{const t=`El${e}Collection`,o=`${t}Item`,r=Symbol(t),l=Symbol(o),n={...IZ,name:t,setup(){const i=V(null),c=new Map;zt(r,{itemMap:c,getItems:()=>{const d=s(i);if(!d)return[];const p=Array.from(d.querySelectorAll(`[${fw}]`));return[...c.values()].sort((v,m)=>p.indexOf(v.ref)-p.indexOf(m.ref))},collectionRef:i})}},a={...NZ,name:o,setup(i,{attrs:c}){const u=V(null),d=Le(r,void 0);zt(l,{collectionItemRef:u}),vt(()=>{const p=s(u);p&&d.itemMap.set(p,{ref:p,...c})}),Zt(()=>{const p=s(u);d.itemMap.delete(p)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:n,ElCollectionItem:a}},LZ=He({style:{type:pe([String,Array,Object])},currentTabId:{type:pe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:pe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:RZ,ElCollectionItem:VZ,COLLECTION_INJECTION_KEY:Nh,COLLECTION_ITEM_INJECTION_KEY:HZ}=hw("RovingFocusGroup"),Lh=Symbol("elRovingFocusGroup"),vw=Symbol("elRovingFocusGroupItem"),FZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},DZ=(e,t)=>{if(t!=="rtl")return e;switch(e){case tt.right:return tt.left;case tt.left:return tt.right;default:return e}},jZ=(e,t,o)=>{const r=DZ(e.key,o);if(!(t==="vertical"&&[tt.left,tt.right].includes(r))&&!(t==="horizontal"&&[tt.up,tt.down].includes(r)))return FZ[r]},KZ=(e,t)=>e.map((o,r)=>e[(r+t)%e.length]),Rh=e=>{const{activeElement:t}=document;for(const o of e)if(o===t||(o.focus(),t!==document.activeElement))return},mw="currentTabIdChange",gw="rovingFocusGroup.entryFocus",WZ={bubbles:!1,cancelable:!0},UZ=B({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:LZ,emits:[mw,"entryFocus"],setup(e,{emit:t}){var o;const r=V((o=e.currentTabId||e.defaultCurrentTabId)!=null?o:null),l=V(!1),n=V(!1),a=V(null),{getItems:i}=Le(Nh,void 0),c=T(()=>[{outline:"none"},e.style]),u=h=>{t(mw,h)},d=()=>{l.value=!0},p=uo(h=>{var _;(_=e.onMousedown)==null||_.call(e,h)},()=>{n.value=!0}),f=uo(h=>{var _;(_=e.onFocus)==null||_.call(e,h)},h=>{const _=!s(n),{target:g,currentTarget:y}=h;if(g===y&&_&&!s(l)){const w=new Event(gw,WZ);if(y==null||y.dispatchEvent(w),!w.defaultPrevented){const x=i().filter(F=>F.focusable),M=x.find(F=>F.active),E=x.find(F=>F.id===s(r)),O=[M,E,...x].filter(Boolean).map(F=>F.ref);Rh(O)}}n.value=!1}),v=uo(h=>{var _;(_=e.onBlur)==null||_.call(e,h)},()=>{l.value=!1}),m=(...h)=>{t("entryFocus",...h)};zt(Lh,{currentTabbedId:Ma(r),loop:so(e,"loop"),tabIndex:T(()=>s(l)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:c,orientation:so(e,"orientation"),dir:so(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:v,onFocus:f,onMousedown:p}),Te(()=>e.currentTabId,h=>{r.value=h??null}),eo(a,gw,m)}});function qZ(e,t,o,r,l,n){return be(e.$slots,"default")}var YZ=Fe(UZ,[["render",qZ],["__file","roving-focus-group-impl.vue"]]);const GZ=B({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:RZ,ElRovingFocusGroupImpl:YZ}});function XZ(e,t,o,r,l,n){const a=ot("el-roving-focus-group-impl"),i=ot("el-focus-group-collection");return b(),de(i,null,{default:ne(()=>[oe(a,Rr(Gc(e.$attrs)),{default:ne(()=>[be(e.$slots,"default")]),_:3},16)]),_:3})}var ZZ=Fe(GZ,[["render",XZ],["__file","roving-focus-group.vue"]]);const JZ=B({components:{ElRovingFocusCollectionItem:VZ},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:o,loop:r,onItemFocus:l,onItemShiftTab:n}=Le(Lh,void 0),{getItems:a}=Le(Nh,void 0),i=dr(),c=V(null),u=uo(v=>{t("mousedown",v)},v=>{e.focusable?l(s(i)):v.preventDefault()}),d=uo(v=>{t("focus",v)},()=>{l(s(i))}),p=uo(v=>{t("keydown",v)},v=>{const{key:m,shiftKey:h,target:_,currentTarget:g}=v;if(m===tt.tab&&h){n();return}if(_!==g)return;const y=jZ(v);if(y){v.preventDefault();let x=a().filter(M=>M.focusable).map(M=>M.ref);switch(y){case"last":{x.reverse();break}case"prev":case"next":{y==="prev"&&x.reverse();const M=x.indexOf(g);x=r.value?KZ(x,M+1):x.slice(M+1);break}}et(()=>{Rh(x)})}}),f=T(()=>o.value===s(i));return zt(vw,{rovingFocusGroupItemRef:c,tabIndex:T(()=>s(f)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:p}),{id:i,handleKeydown:p,handleFocus:d,handleMousedown:u}}});function QZ(e,t,o,r,l,n){const a=ot("el-roving-focus-collection-item");return b(),de(a,{id:e.id,focusable:e.focusable,active:e.active},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var eJ=Fe(JZ,[["render",QZ],["__file","roving-focus-item.vue"]]);const yd=He({trigger:Ds.trigger,effect:{...Lo.effect,default:"light"},type:{type:pe(String)},placement:{type:pe(String),default:"bottom"},popperOptions:{type:pe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:pe([Number,String]),default:0},maxHeight:{type:pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:pe(Object)},teleported:Lo.teleported}),bw=He({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:qt}}),tJ=He({onKeydown:{type:pe(Function)}}),oJ=[tt.down,tt.pageDown,tt.home],_w=[tt.up,tt.pageUp,tt.end],rJ=[...oJ,..._w],{ElCollection:lJ,ElCollectionItem:nJ,COLLECTION_INJECTION_KEY:aJ,COLLECTION_ITEM_INJECTION_KEY:iJ}=hw("Dropdown"),xd=Symbol("elDropdown"),{ButtonGroup:sJ}=Vo,cJ=B({name:"ElDropdown",components:{ElButton:Vo,ElButtonGroup:sJ,ElScrollbar:Kl,ElDropdownCollection:lJ,ElTooltip:er,ElRovingFocusGroup:ZZ,ElOnlyChild:c6,ElIcon:Je,ArrowDown:Bl},props:yd,emits:["visible-change","click","command"],setup(e,{emit:t}){const o=_t(),r=Ie("dropdown"),{t:l}=Nt(),n=V(),a=V(),i=V(null),c=V(null),u=V(null),d=V(null),p=V(!1),f=[tt.enter,tt.space,tt.down],v=T(()=>({maxHeight:bo(e.maxHeight)})),m=T(()=>[r.m(M.value)]),h=T(()=>Qn(e.trigger)),_=dr().value,g=T(()=>e.id||_);Te([n,h],([L,X],[N])=>{var W,re,ie;(W=N==null?void 0:N.$el)!=null&&W.removeEventListener&&N.$el.removeEventListener("pointerenter",I),(re=L==null?void 0:L.$el)!=null&&re.removeEventListener&&L.$el.removeEventListener("pointerenter",I),(ie=L==null?void 0:L.$el)!=null&&ie.addEventListener&&X.includes("hover")&&L.$el.addEventListener("pointerenter",I)},{immediate:!0}),Zt(()=>{var L,X;(X=(L=n.value)==null?void 0:L.$el)!=null&&X.removeEventListener&&n.value.$el.removeEventListener("pointerenter",I)});function y(){w()}function w(){var L;(L=i.value)==null||L.onClose()}function x(){var L;(L=i.value)==null||L.onOpen()}const M=Eo();function E(...L){t("command",...L)}function I(){var L,X;(X=(L=n.value)==null?void 0:L.$el)==null||X.focus()}function O(){}function F(){const L=s(c);h.value.includes("hover")&&(L==null||L.focus()),d.value=null}function K(L){d.value=L}function R(L){p.value||(L.preventDefault(),L.stopImmediatePropagation())}function D(){t("visible-change",!0)}function j(L){(L==null?void 0:L.type)==="keydown"&&c.value.focus()}function Z(){t("visible-change",!1)}return zt(xd,{contentRef:c,role:T(()=>e.role),triggerId:g,isUsingKeyboard:p,onItemEnter:O,onItemLeave:F}),zt("elDropdown",{instance:o,dropdownSize:M,handleClick:y,commandHandler:E,trigger:so(e,"trigger"),hideOnClick:so(e,"hideOnClick")}),{t:l,ns:r,scrollbar:u,wrapStyle:v,dropdownTriggerKls:m,dropdownSize:M,triggerId:g,triggerKeys:f,currentTabId:d,handleCurrentTabIdChange:K,handlerMainButtonClick:L=>{t("click",L)},handleEntryFocus:R,handleClose:w,handleOpen:x,handleBeforeShowTooltip:D,handleShowTooltip:j,handleBeforeHideTooltip:Z,onFocusAfterTrapped:L=>{var X,N;L.preventDefault(),(N=(X=c.value)==null?void 0:X.focus)==null||N.call(X,{preventScroll:!0})},popperRef:i,contentRef:c,triggeringElementRef:n,referenceElementRef:a}}});function uJ(e,t,o,r,l,n){var a;const i=ot("el-dropdown-collection"),c=ot("el-roving-focus-group"),u=ot("el-scrollbar"),d=ot("el-only-child"),p=ot("el-tooltip"),f=ot("el-button"),v=ot("arrow-down"),m=ot("el-icon"),h=ot("el-button-group");return b(),z("div",{class:P([e.ns.b(),e.ns.is("disabled",e.disabled)])},[oe(p,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},tl({content:ne(()=>[oe(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ne(()=>[oe(c,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ne(()=>[oe(i,null,{default:ne(()=>[be(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ne(()=>[oe(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(b(),de(h,{key:0},{default:ne(()=>[oe(f,Et({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ne(()=>[be(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),oe(f,Et({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ne(()=>[oe(m,{class:P(e.ns.e("icon"))},{default:ne(()=>[oe(v)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ue("v-if",!0)],2)}var dJ=Fe(cJ,[["render",uJ],["__file","dropdown.vue"]]);const pJ=B({name:"DropdownItemImpl",components:{ElIcon:Je},props:bw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const o=Ie("dropdown"),{role:r}=Le(xd,void 0),{collectionItemRef:l}=Le(iJ,void 0),{collectionItemRef:n}=Le(HZ,void 0),{rovingFocusGroupItemRef:a,tabIndex:i,handleFocus:c,handleKeydown:u,handleMousedown:d}=Le(vw,void 0),p=Pu(l,n,a),f=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),v=uo(m=>{const{code:h}=m;if(h===tt.enter||h===tt.space)return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},u);return{ns:o,itemRef:p,dataset:{[fw]:""},role:f,tabIndex:i,handleFocus:c,handleKeydown:v,handleMousedown:d}}}),fJ=["aria-disabled","tabindex","role"];function hJ(e,t,o,r,l,n){const a=ot("el-icon");return b(),z(Xe,null,[e.divided?(b(),z("li",Et({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ue("v-if",!0),$("li",Et({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=it((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon?(b(),de(a,{key:0},{default:ne(()=>[(b(),de(St(e.icon)))]),_:1})):ue("v-if",!0),be(e.$slots,"default")],16,fJ)],64)}var vJ=Fe(pJ,[["render",hJ],["__file","dropdown-item-impl.vue"]]);const ww=()=>{const e=Le("elDropdown",{}),t=T(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},mJ=B({name:"ElDropdownItem",components:{ElDropdownCollectionItem:nJ,ElRovingFocusItem:eJ,ElDropdownItemImpl:vJ},inheritAttrs:!1,props:bw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:o}){const{elDropdown:r}=ww(),l=_t(),n=V(null),a=T(()=>{var v,m;return(m=(v=s(n))==null?void 0:v.textContent)!=null?m:""}),{onItemEnter:i,onItemLeave:c}=Le(xd,void 0),u=uo(v=>(t("pointermove",v),v.defaultPrevented),A1(v=>{if(e.disabled){c(v);return}const m=v.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(i(v),v.defaultPrevented||m==null||m.focus())})),d=uo(v=>(t("pointerleave",v),v.defaultPrevented),A1(v=>{c(v)})),p=uo(v=>{if(!e.disabled)return t("click",v),v.type!=="keydown"&&v.defaultPrevented},v=>{var m,h,_;if(e.disabled){v.stopImmediatePropagation();return}(m=r==null?void 0:r.hideOnClick)!=null&&m.value&&((h=r.handleClick)==null||h.call(r)),(_=r.commandHandler)==null||_.call(r,e.command,l,v)}),f=T(()=>({...e,...o}));return{handleClick:p,handlePointerMove:u,handlePointerLeave:d,textContent:a,propsAndAttrs:f}}});function gJ(e,t,o,r,l,n){var a;const i=ot("el-dropdown-item-impl"),c=ot("el-roving-focus-item"),u=ot("el-dropdown-collection-item");return b(),de(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:ne(()=>[oe(c,{focusable:!e.disabled},{default:ne(()=>[oe(i,Et(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ne(()=>[be(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var yw=Fe(mJ,[["render",gJ],["__file","dropdown-item.vue"]]);const bJ=B({name:"ElDropdownMenu",props:tJ,setup(e){const t=Ie("dropdown"),{_elDropdownSize:o}=ww(),r=o.value,{focusTrapRef:l,onKeydown:n}=Le(Z0,void 0),{contentRef:a,role:i,triggerId:c}=Le(xd,void 0),{collectionRef:u,getItems:d}=Le(aJ,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:f,tabIndex:v,onBlur:m,onFocus:h,onMousedown:_}=Le(Lh,void 0),{collectionRef:g}=Le(Nh,void 0),y=T(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),w=Pu(a,u,l,p,g),x=uo(E=>{var I;(I=e.onKeydown)==null||I.call(e,E)},E=>{const{currentTarget:I,code:O,target:F}=E;if(I.contains(F),tt.tab===O&&E.stopImmediatePropagation(),E.preventDefault(),F!==s(a)||!rJ.includes(O))return;const R=d().filter(D=>!D.disabled).map(D=>D.ref);_w.includes(O)&&R.reverse(),Rh(R)});return{size:r,rovingFocusGroupRootStyle:f,tabIndex:v,dropdownKls:y,role:i,triggerId:c,dropdownListWrapperRef:w,handleKeydown:E=>{x(E),n(E)},onBlur:m,onFocus:h,onMousedown:_}}}),_J=["role","aria-labelledby"];function wJ(e,t,o,r,l,n){return b(),z("ul",{ref:e.dropdownListWrapperRef,class:P(e.dropdownKls),style:Qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...a)=>e.onBlur&&e.onBlur(...a)),onFocus:t[1]||(t[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onKeydown:t[2]||(t[2]=it((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=it((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[be(e.$slots,"default")],46,_J)}var xw=Fe(bJ,[["render",wJ],["__file","dropdown-menu.vue"]]);const yJ=xt(dJ,{DropdownItem:yw,DropdownMenu:xw}),xJ=fo(yw),kJ=fo(xw),CJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},SJ=["id"],EJ=["stop-color"],$J=["stop-color"],TJ=["id"],zJ=["stop-color"],MJ=["stop-color"],AJ=["id"],OJ={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},IJ={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},PJ={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},BJ=["fill"],NJ=["fill"],LJ={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},RJ=["fill"],VJ=["fill"],HJ=["fill"],FJ=["fill"],DJ=["fill"],jJ={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},KJ=["fill","xlink:href"],WJ=["fill","mask"],UJ=["fill"],qJ=B({...B({name:"ImgEmpty"}),setup(e){const t=Ie("empty"),o=dr();return(r,l)=>(b(),z("svg",CJ,[$("defs",null,[$("linearGradient",{id:`linearGradient-1-${s(o)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[$("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,EJ),$("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,$J)],8,SJ),$("linearGradient",{id:`linearGradient-2-${s(o)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[$("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,zJ),$("stop",{"stop-color":`var(${s(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,MJ)],8,TJ),$("rect",{id:`path-3-${s(o)}`,x:"0",y:"0",width:"17",height:"36"},null,8,AJ)]),$("g",OJ,[$("g",IJ,[$("g",PJ,[$("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${s(t).cssVarBlockName("fill-color-3")})`},null,8,BJ),$("polygon",{id:"Rectangle-Copy-14",fill:`var(${s(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,NJ),$("g",LJ,[$("polygon",{id:"Rectangle-Copy-10",fill:`var(${s(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,RJ),$("polygon",{id:"Rectangle-Copy-11",fill:`var(${s(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,VJ),$("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${s(o)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,HJ),$("polygon",{id:"Rectangle-Copy-13",fill:`var(${s(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,FJ)]),$("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${s(o)})`,x:"13",y:"45",width:"40",height:"36"},null,8,DJ),$("g",jJ,[$("use",{id:"Mask",fill:`var(${s(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${s(o)}`},null,8,KJ),$("polygon",{id:"Rectangle-Copy",fill:`var(${s(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${s(o)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,WJ)]),$("polygon",{id:"Rectangle-Copy-18",fill:`var(${s(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,UJ)])])])]))}});var YJ=Fe(qJ,[["__file","img-empty.vue"]]);const GJ=He({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),XJ=["src"],ZJ={key:1},JJ=B({...B({name:"ElEmpty"}),props:GJ,setup(e){const t=e,{t:o}=Nt(),r=Ie("empty"),l=T(()=>t.description||o("el.table.emptyText")),n=T(()=>({width:bo(t.imageSize)}));return(a,i)=>(b(),z("div",{class:P(s(r).b())},[$("div",{class:P(s(r).e("image")),style:Qe(s(n))},[a.image?(b(),z("img",{key:0,src:a.image,ondragstart:"return false"},null,8,XJ)):be(a.$slots,"image",{key:1},()=>[oe(YJ)])],6),$("div",{class:P(s(r).e("description"))},[a.$slots.description?be(a.$slots,"description",{key:0}):(b(),z("p",ZJ,ze(s(l)),1))],2),a.$slots.default?(b(),z("div",{key:0,class:P(s(r).e("bottom"))},[be(a.$slots,"default")],2)):ue("v-if",!0)],2))}});var QJ=Fe(JJ,[["__file","empty.vue"]]);const kw=xt(QJ),eQ=He({urlList:{type:pe(Array),default:()=>ro([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),tQ={close:()=>!0,switch:e=>ct(e),rotate:e=>ct(e)},oQ=["src"],rQ=B({...B({name:"ElImageViewer"}),props:eQ,emits:tQ,setup(e,{expose:t,emit:o}){const r=e,l={CONTAIN:{name:"contain",icon:kl(w3)},ORIGINAL:{name:"original",icon:kl(T3)}},{t:n}=Nt(),a=Ie("image-viewer"),{nextZIndex:i}=oi(),c=V(),u=V([]),d=bp(),p=V(!0),f=V(r.initialIndex),v=Yt(l.CONTAIN),m=V({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),h=T(()=>{const{urlList:N}=r;return N.length<=1}),_=T(()=>f.value===0),g=T(()=>f.value===r.urlList.length-1),y=T(()=>r.urlList[f.value]),w=T(()=>[a.e("btn"),a.e("prev"),a.is("disabled",!r.infinite&&_.value)]),x=T(()=>[a.e("btn"),a.e("next"),a.is("disabled",!r.infinite&&g.value)]),M=T(()=>{const{scale:N,deg:W,offsetX:re,offsetY:ie,enableTransition:se}=m.value;let ve=re/N,le=ie/N;switch(W%360){case 90:case-270:[ve,le]=[le,-ve];break;case 180:case-180:[ve,le]=[-ve,-le];break;case 270:case-90:[ve,le]=[-le,ve];break}const ge={transform:`scale(${N}) rotate(${W}deg) translate(${ve}px, ${le}px)`,transition:se?"transform .3s":""};return v.value.name===l.CONTAIN.name&&(ge.maxWidth=ge.maxHeight="100%"),ge}),E=T(()=>ct(r.zIndex)?r.zIndex:i());function I(){F(),o("close")}function O(){const N=ta(re=>{switch(re.code){case tt.esc:r.closeOnPressEscape&&I();break;case tt.space:Z();break;case tt.left:J();break;case tt.up:X("zoomIn");break;case tt.right:L();break;case tt.down:X("zoomOut");break}}),W=ta(re=>{const ie=re.deltaY||re.deltaX;X(ie<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});d.run(()=>{eo(document,"keydown",N),eo(document,"wheel",W)})}function F(){d.stop()}function K(){p.value=!1}function R(N){p.value=!1,N.target.alt=n("el.image.error")}function D(N){if(p.value||N.button!==0||!c.value)return;m.value.enableTransition=!1;const{offsetX:W,offsetY:re}=m.value,ie=N.pageX,se=N.pageY,ve=ta(ge=>{m.value={...m.value,offsetX:W+ge.pageX-ie,offsetY:re+ge.pageY-se}}),le=eo(document,"mousemove",ve);eo(document,"mouseup",()=>{le()}),N.preventDefault()}function j(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Z(){if(p.value)return;const N=ks(l),W=Object.values(l),re=v.value.name,se=(W.findIndex(ve=>ve.name===re)+1)%N.length;v.value=l[N[se]],j()}function Q(N){const W=r.urlList.length;f.value=(N+W)%W}function J(){_.value&&!r.infinite||Q(f.value-1)}function L(){g.value&&!r.infinite||Q(f.value+1)}function X(N,W={}){if(p.value)return;const{minScale:re,maxScale:ie}=r,{zoomRate:se,rotateDeg:ve,enableTransition:le}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...W};switch(N){case"zoomOut":m.value.scale>re&&(m.value.scale=Number.parseFloat((m.value.scale/se).toFixed(3)));break;case"zoomIn":m.value.scale{et(()=>{const N=u.value[0];N!=null&&N.complete||(p.value=!0)})}),Te(f,N=>{j(),o("switch",N)}),vt(()=>{var N,W;O(),(W=(N=c.value)==null?void 0:N.focus)==null||W.call(N)}),t({setActiveItem:Q}),(N,W)=>(b(),de(Zi,{to:"body",disabled:!N.teleported},[oe(_o,{name:"viewer-fade",appear:""},{default:ne(()=>[$("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:P(s(a).e("wrapper")),style:Qe({zIndex:s(E)})},[$("div",{class:P(s(a).e("mask")),onClick:W[0]||(W[0]=it(re=>N.hideOnClickModal&&I(),["self"]))},null,2),ue(" CLOSE "),$("span",{class:P([s(a).e("btn"),s(a).e("close")]),onClick:I},[oe(s(Je),null,{default:ne(()=>[oe(s(Mr))]),_:1})],2),ue(" ARROW "),s(h)?ue("v-if",!0):(b(),z(Xe,{key:0},[$("span",{class:P(s(w)),onClick:J},[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1})],2),$("span",{class:P(s(x)),onClick:L},[oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})],2)],64)),ue(" ACTIONS "),$("div",{class:P([s(a).e("btn"),s(a).e("actions")])},[$("div",{class:P(s(a).e("actions__inner"))},[oe(s(Je),{onClick:W[1]||(W[1]=re=>X("zoomOut"))},{default:ne(()=>[oe(s(P3))]),_:1}),oe(s(Je),{onClick:W[2]||(W[2]=re=>X("zoomIn"))},{default:ne(()=>[oe(s(f0))]),_:1}),$("i",{class:P(s(a).e("actions__divider"))},null,2),oe(s(Je),{onClick:Z},{default:ne(()=>[(b(),de(St(s(v).icon)))]),_:1}),$("i",{class:P(s(a).e("actions__divider"))},null,2),oe(s(Je),{onClick:W[3]||(W[3]=re=>X("anticlockwise"))},{default:ne(()=>[oe(s(E3))]),_:1}),oe(s(Je),{onClick:W[4]||(W[4]=re=>X("clockwise"))},{default:ne(()=>[oe(s($3))]),_:1})],2)],2),ue(" CANVAS "),$("div",{class:P(s(a).e("canvas"))},[(b(!0),z(Xe,null,Tt(N.urlList,(re,ie)=>ht((b(),z("img",{ref_for:!0,ref:se=>u.value[ie]=se,key:re,src:re,style:Qe(s(M)),class:P(s(a).e("img")),onLoad:K,onError:R,onMousedown:D},null,46,oQ)),[[Pt,ie===f.value]])),128))],2),be(N.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var lQ=Fe(rQ,[["__file","image-viewer.vue"]]);const Cw=xt(lQ),nQ=He({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:pe([String,Object])},previewSrcList:{type:pe(Array),default:()=>ro([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7}}),aQ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ct(e),close:()=>!0,show:()=>!0},iQ=["src","loading"],sQ={key:0},cQ=B({...B({name:"ElImage",inheritAttrs:!1}),props:nQ,emits:aQ,setup(e,{emit:t}){const o=e;let r="";const{t:l}=Nt(),n=Ie("image"),a=Hn(),i=_0(),c=V(),u=V(!1),d=V(!0),p=V(!1),f=V(),v=V(),m=Bt&&"loading"in HTMLImageElement.prototype;let h,_;const g=T(()=>[n.e("inner"),x.value&&n.e("preview"),d.value&&n.is("loading")]),y=T(()=>a.style),w=T(()=>{const{fit:X}=o;return Bt&&X?{objectFit:X}:{}}),x=T(()=>{const{previewSrcList:X}=o;return Array.isArray(X)&&X.length>0}),M=T(()=>{const{previewSrcList:X,initialIndex:N}=o;let W=N;return N>X.length-1&&(W=0),W}),E=T(()=>o.loading==="eager"?!1:!m&&o.loading==="lazy"||o.lazy),I=()=>{Bt&&(d.value=!0,u.value=!1,c.value=o.src)};function O(X){d.value=!1,u.value=!1,t("load",X)}function F(X){d.value=!1,u.value=!0,t("error",X)}function K(){lS(f.value,v.value)&&(I(),j())}const R=R1(K,200,!0);async function D(){var X;if(!Bt)return;await et();const{scrollContainer:N}=o;zr(N)?v.value=N:ft(N)&&N!==""?v.value=(X=document.querySelector(N))!=null?X:void 0:f.value&&(v.value=i0(f.value)),v.value&&(h=eo(v,"scroll",R),setTimeout(()=>K(),100))}function j(){!Bt||!v.value||!R||(h==null||h(),v.value=void 0)}function Z(X){if(X.ctrlKey){if(X.deltaY<0)return X.preventDefault(),!1;if(X.deltaY>0)return X.preventDefault(),!1}}function Q(){x.value&&(_=eo("wheel",Z,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",p.value=!0,t("show"))}function J(){_==null||_(),document.body.style.overflow=r,p.value=!1,t("close")}function L(X){t("switch",X)}return Te(()=>o.src,()=>{E.value?(d.value=!0,u.value=!1,j(),D()):I()}),vt(()=>{E.value?D():I()}),(X,N)=>(b(),z("div",{ref_key:"container",ref:f,class:P([s(n).b(),X.$attrs.class]),style:Qe(s(y))},[u.value?be(X.$slots,"error",{key:0},()=>[$("div",{class:P(s(n).e("error"))},ze(s(l)("el.image.error")),3)]):(b(),z(Xe,{key:1},[c.value!==void 0?(b(),z("img",Et({key:0},s(i),{src:c.value,loading:X.loading,style:s(w),class:s(g),onClick:Q,onLoad:O,onError:F}),null,16,iQ)):ue("v-if",!0),d.value?(b(),z("div",{key:1,class:P(s(n).e("wrapper"))},[be(X.$slots,"placeholder",{},()=>[$("div",{class:P(s(n).e("placeholder"))},null,2)])],2)):ue("v-if",!0)],64)),s(x)?(b(),z(Xe,{key:2},[p.value?(b(),de(s(Cw),{key:0,"z-index":X.zIndex,"initial-index":s(M),infinite:X.infinite,"zoom-rate":X.zoomRate,"min-scale":X.minScale,"max-scale":X.maxScale,"url-list":X.previewSrcList,"hide-on-click-modal":X.hideOnClickModal,teleported:X.previewTeleported,"close-on-press-escape":X.closeOnPressEscape,onClose:J,onSwitch:L},{default:ne(()=>[X.$slots.viewer?(b(),z("div",sQ,[be(X.$slots,"viewer")])):ue("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ue("v-if",!0)],64)):ue("v-if",!0)],6))}});var uQ=Fe(cQ,[["__file","image.vue"]]);const dQ=xt(uQ),pQ=He({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:No,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ct(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),fQ={[Jt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Jo]:e=>ct(e)||wo(e),[kt]:e=>ct(e)||wo(e)},hQ=["aria-label","onKeydown"],vQ=["aria-label","onKeydown"],mQ=B({...B({name:"ElInputNumber"}),props:pQ,emits:fQ,setup(e,{expose:t,emit:o}){const r=e,{t:l}=Nt(),n=Ie("input-number"),a=V(),i=Ft({currentValue:r.modelValue,userInput:null}),{formItem:c}=Qo(),u=T(()=>ct(r.modelValue)&&r.modelValue<=r.min),d=T(()=>ct(r.modelValue)&&r.modelValue>=r.max),p=T(()=>{const j=g(r.step);return ko(r.precision)?Math.max(g(r.modelValue),j):(j>r.precision,r.precision)}),f=T(()=>r.controls&&r.controlsPosition==="right"),v=Eo(),m=pr(),h=T(()=>{if(i.userInput!==null)return i.userInput;let j=i.currentValue;if(wo(j))return"";if(ct(j)){if(Number.isNaN(j))return"";ko(r.precision)||(j=j.toFixed(r.precision))}return j}),_=(j,Z)=>{if(ko(Z)&&(Z=p.value),Z===0)return Math.round(j);let Q=String(j);const J=Q.indexOf(".");if(J===-1||!Q.replace(".","").split("")[J+Z])return j;const N=Q.length;return Q.charAt(N-1)==="5"&&(Q=`${Q.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(Q).toFixed(Z))},g=j=>{if(wo(j))return 0;const Z=j.toString(),Q=Z.indexOf(".");let J=0;return Q!==-1&&(J=Z.length-Q-1),J},y=(j,Z=1)=>ct(j)?_(j+r.step*Z):i.currentValue,w=()=>{if(r.readonly||m.value||d.value)return;const j=Number(h.value)||0,Z=y(j);E(Z),o(Jo,i.currentValue)},x=()=>{if(r.readonly||m.value||u.value)return;const j=Number(h.value)||0,Z=y(j,-1);E(Z),o(Jo,i.currentValue)},M=(j,Z)=>{const{max:Q,min:J,step:L,precision:X,stepStrictly:N,valueOnClear:W}=r;QQ||reQ?Q:J,Z&&o(kt,re)),re},E=(j,Z=!0)=>{var Q;const J=i.currentValue,L=M(j);if(!Z){o(kt,L);return}J!==L&&(i.userInput=null,o(kt,L),o(Jt,L,J),r.validateEvent&&((Q=c==null?void 0:c.validate)==null||Q.call(c,"change").catch(X=>void 0)),i.currentValue=L)},I=j=>{i.userInput=j;const Z=j===""?null:Number(j);o(Jo,Z),E(Z,!1)},O=j=>{const Z=j!==""?Number(j):"";(ct(Z)&&!Number.isNaN(Z)||j==="")&&E(Z),i.userInput=null},F=()=>{var j,Z;(Z=(j=a.value)==null?void 0:j.focus)==null||Z.call(j)},K=()=>{var j,Z;(Z=(j=a.value)==null?void 0:j.blur)==null||Z.call(j)},R=j=>{o("focus",j)},D=j=>{var Z;i.userInput=null,o("blur",j),r.validateEvent&&((Z=c==null?void 0:c.validate)==null||Z.call(c,"blur").catch(Q=>void 0))};return Te(()=>r.modelValue,(j,Z)=>{const Q=M(j,!0);i.userInput===null&&Q!==Z&&(i.currentValue=Q)},{immediate:!0}),vt(()=>{var j;const{min:Z,max:Q,modelValue:J}=r,L=(j=a.value)==null?void 0:j.input;if(L.setAttribute("role","spinbutton"),Number.isFinite(Q)?L.setAttribute("aria-valuemax",String(Q)):L.removeAttribute("aria-valuemax"),Number.isFinite(Z)?L.setAttribute("aria-valuemin",String(Z)):L.removeAttribute("aria-valuemin"),L.setAttribute("aria-valuenow",i.currentValue||i.currentValue===0?String(i.currentValue):""),L.setAttribute("aria-disabled",String(m.value)),!ct(J)&&J!=null){let X=Number(J);Number.isNaN(X)&&(X=null),o(kt,X)}}),Tl(()=>{var j,Z;const Q=(j=a.value)==null?void 0:j.input;Q==null||Q.setAttribute("aria-valuenow",`${(Z=i.currentValue)!=null?Z:""}`)}),t({focus:F,blur:K}),(j,Z)=>(b(),z("div",{class:P([s(n).b(),s(n).m(s(v)),s(n).is("disabled",s(m)),s(n).is("without-controls",!j.controls),s(n).is("controls-right",s(f))]),onDragstart:Z[1]||(Z[1]=it(()=>{},["prevent"]))},[j.controls?ht((b(),z("span",{key:0,role:"button","aria-label":s(l)("el.inputNumber.decrease"),class:P([s(n).e("decrease"),s(n).is("disabled",s(u))]),onKeydown:Rt(x,["enter"])},[oe(s(Je),null,{default:ne(()=>[s(f)?(b(),de(s(Bl),{key:0})):(b(),de(s(x3),{key:1}))]),_:1})],42,hQ)),[[s(ad),x]]):ue("v-if",!0),j.controls?ht((b(),z("span",{key:1,role:"button","aria-label":s(l)("el.inputNumber.increase"),class:P([s(n).e("increase"),s(n).is("disabled",s(d))]),onKeydown:Rt(w,["enter"])},[oe(s(Je),null,{default:ne(()=>[s(f)?(b(),de(s(Cs),{key:0})):(b(),de(s(d0),{key:1}))]),_:1})],42,vQ)),[[s(ad),w]]):ue("v-if",!0),oe(s(Wo),{id:j.id,ref_key:"input",ref:a,type:"number",step:j.step,"model-value":s(h),placeholder:j.placeholder,readonly:j.readonly,disabled:s(m),size:s(v),max:j.max,min:j.min,name:j.name,label:j.label,"validate-event":!1,onWheel:Z[0]||(Z[0]=it(()=>{},["prevent"])),onKeydown:[Rt(it(w,["prevent"]),["up"]),Rt(it(x,["prevent"]),["down"])],onBlur:D,onFocus:R,onInput:I,onChange:O},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var gQ=Fe(mQ,[["__file","input-number.vue"]]);const Sw=xt(gQ),bQ=He({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:qt}}),_Q={click:e=>e instanceof MouseEvent},wQ=["href"],yQ=B({...B({name:"ElLink"}),props:bQ,emits:_Q,setup(e,{emit:t}){const o=e,r=Ie("link"),l=T(()=>[r.b(),r.m(o.type),r.is("disabled",o.disabled),r.is("underline",o.underline&&!o.disabled)]);function n(a){o.disabled||t("click",a)}return(a,i)=>(b(),z("a",{class:P(s(l)),href:a.disabled||!a.href?void 0:a.href,onClick:n},[a.icon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(a.icon)))]),_:1})):ue("v-if",!0),a.$slots.default?(b(),z("span",{key:1,class:P(s(r).e("inner"))},[be(a.$slots,"default")],2)):ue("v-if",!0),a.$slots.icon?be(a.$slots,"icon",{key:2}):ue("v-if",!0)],10,wQ))}});var xQ=Fe(yQ,[["__file","link.vue"]]);const kQ=xt(xQ);let CQ=class{constructor(t,o){this.parent=t,this.domNode=o,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,o=>{o.addEventListener("keydown",r=>{let l=!1;switch(r.code){case tt.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case tt.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case tt.tab:{vu(t,"mouseleave");break}case tt.enter:case tt.space:{l=!0,r.currentTarget.click();break}}return l&&(r.preventDefault(),r.stopPropagation()),!1})})}},SQ=class{constructor(t,o){this.domNode=t,this.submenu=null,this.submenu=null,this.init(o)}init(t){this.domNode.setAttribute("tabindex","0");const o=this.domNode.querySelector(`.${t}-menu`);o&&(this.submenu=new CQ(this,o)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let o=!1;switch(t.code){case tt.down:{vu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),o=!0;break}case tt.up:{vu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),o=!0;break}case tt.tab:{vu(t.currentTarget,"mouseleave");break}case tt.enter:case tt.space:{o=!0,t.currentTarget.click();break}}o&&t.preventDefault()})}},EQ=class{constructor(t,o){this.domNode=t,this.init(o)}init(t){const o=this.domNode.childNodes;Array.from(o).forEach(r=>{r.nodeType===1&&new SQ(r,t)})}};const $Q=B({name:"ElMenuCollapseTransition",setup(){const e=Ie("menu");return{listeners:{onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,r){il(o,`${e.namespace.value}-opacity-transition`),o.style.opacity="1",r()},onAfterEnter(o){sr(o,`${e.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),Wr(o,e.m("collapse"))?(sr(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),il(o,e.m("collapse"))):(il(o,e.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),sr(o,e.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){il(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}}}}});function TQ(e,t,o,r,l,n){return b(),de(_o,Et({mode:"out-in"},e.listeners),{default:ne(()=>[be(e.$slots,"default")]),_:3},16)}var zQ=Fe($Q,[["render",TQ],["__file","menu-collapse-transition.vue"]]);function Ew(e,t){const o=T(()=>{let l=e.parent;const n=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&n.unshift(l.props.index),l=l.parent;return n});return{parentMenu:T(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),indexPath:o}}function MQ(e){return T(()=>{const o=e.backgroundColor;return o?new P6(o).shade(20).toString():""})}const $w=(e,t)=>{const o=Ie("menu");return T(()=>o.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":MQ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},AQ=He({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:void 0},expandCloseIcon:{type:qt},expandOpenIcon:{type:qt},collapseCloseIcon:{type:qt},collapseOpenIcon:{type:qt}}),kd="ElSubMenu";var Vh=B({name:kd,props:AQ,setup(e,{slots:t,expose:o}){cl({from:"popper-append-to-body",replacement:"teleported",scope:kd,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},T(()=>e.popperAppendToBody!==void 0));const r=_t(),{indexPath:l,parentMenu:n}=Ew(r,T(()=>e.index)),a=Ie("menu"),i=Ie("sub-menu"),c=Le("rootMenu");c||So(kd,"can not inject root menu");const u=Le(`subMenu:${n.value.uid}`);u||So(kd,"can not inject sub menu");const d=V({}),p=V({});let f;const v=V(!1),m=V(),h=V(null),_=T(()=>O.value==="horizontal"&&y.value?"bottom-start":"right-start"),g=T(()=>O.value==="horizontal"&&y.value||O.value==="vertical"&&!c.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:Bl:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Ko),y=T(()=>u.level===0),w=T(()=>{var L;const X=(L=e.teleported)!=null?L:e.popperAppendToBody;return X===void 0?y.value:X}),x=T(()=>c.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),M=T(()=>O.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),E=T(()=>c.openedMenus.includes(e.index)),I=T(()=>{let L=!1;return Object.values(d.value).forEach(X=>{X.active&&(L=!0)}),Object.values(p.value).forEach(X=>{X.active&&(L=!0)}),L}),O=T(()=>c.props.mode),F=Ft({index:e.index,indexPath:l,active:I}),K=$w(c.props,u.level+1),R=T(()=>{var L;return(L=e.popperOffset)!=null?L:c.props.popperOffset}),D=()=>{var L,X,N;return(N=(X=(L=h.value)==null?void 0:L.popperRef)==null?void 0:X.popperInstanceRef)==null?void 0:N.destroy()},j=L=>{L||D()},Z=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||e.disabled||c.handleSubMenuClick({index:e.index,indexPath:l.value,active:I.value})},Q=(L,X=e.showTimeout)=>{var N;if(L.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,f==null||f(),{stop:f}=qn(()=>{c.openMenu(e.index,l.value)},X),w.value&&((N=n.value.vnode.el)==null||N.dispatchEvent(new MouseEvent("mouseenter")))}},J=(L=!1)=>{var X,N;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){u.mouseInChild.value=!1;return}f==null||f(),u.mouseInChild.value=!1,{stop:f}=qn(()=>!v.value&&c.closeMenu(e.index,l.value),e.hideTimeout),w.value&&L&&((X=r.parent)==null?void 0:X.type.name)==="ElSubMenu"&&((N=u.handleMouseleave)==null||N.call(u,!0))};Te(()=>c.props.collapse,L=>j(!!L));{const L=N=>{p.value[N.index]=N},X=N=>{delete p.value[N.index]};zt(`subMenu:${r.uid}`,{addSubMenu:L,removeSubMenu:X,handleMouseleave:J,mouseInChild:v,level:u.level+1})}return o({opened:E}),vt(()=>{c.addSubMenu(F),u.addSubMenu(F)}),Zt(()=>{u.removeSubMenu(F),c.removeSubMenu(F)}),()=>{var L;const X=[(L=t.title)==null?void 0:L.call(t),rt(Je,{class:i.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ft(g.value)?rt(r.appContext.components[g.value]):rt(g.value)})],N=c.isMenuPopup?rt(er,{ref:h,visible:E.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:w.value,fallbackPlacements:M.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var W;return rt("div",{class:[a.m(O.value),a.m("popup-container"),e.popperClass],onMouseenter:re=>Q(re,100),onMouseleave:()=>J(!0),onFocus:re=>Q(re,100)},[rt("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${_.value}`)],style:K.value},[(W=t.default)==null?void 0:W.call(t)])])},default:()=>rt("div",{class:i.e("title"),onClick:Z},X)}):rt(Xe,{},[rt("div",{class:i.e("title"),ref:m,onClick:Z},X),rt(md,{},{default:()=>{var W;return ht(rt("ul",{role:"menu",class:[a.b(),a.m("inline")],style:K.value},[(W=t.default)==null?void 0:W.call(t)]),[[Pt,E.value]])}})]);return rt("li",{class:[i.b(),i.is("active",I.value),i.is("opened",E.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:Q,onMouseleave:()=>J(!0),onFocus:Q},[N])}}});const OQ=He({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:pe(Array),default:()=>ro([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:qt,default:()=>k3},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Hh=e=>Array.isArray(e)&&e.every(t=>ft(t));var IQ=B({name:"ElMenu",props:OQ,emits:{close:(e,t)=>ft(e)&&Hh(t),open:(e,t)=>ft(e)&&Hh(t),select:(e,t,o,r)=>ft(e)&&Hh(t)&&Ct(o)&&(r===void 0||r instanceof Promise)},setup(e,{emit:t,slots:o,expose:r}){const l=_t(),n=l.appContext.config.globalProperties.$router,a=V(),i=Ie("menu"),c=Ie("sub-menu"),u=V(-1),d=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=V(e.defaultActive),f=V({}),v=V({}),m=T(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),h=()=>{const j=p.value&&f.value[p.value];if(!j||e.mode==="horizontal"||e.collapse)return;j.indexPath.forEach(Q=>{const J=v.value[Q];J&&_(Q,J.indexPath)})},_=(j,Z)=>{d.value.includes(j)||(e.uniqueOpened&&(d.value=d.value.filter(Q=>Z.includes(Q))),d.value.push(j),t("open",j,Z))},g=j=>{const Z=d.value.indexOf(j);Z!==-1&&d.value.splice(Z,1)},y=(j,Z)=>{g(j),t("close",j,Z)},w=({index:j,indexPath:Z})=>{d.value.includes(j)?y(j,Z):_(j,Z)},x=j=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:Z,indexPath:Q}=j;if(!(wo(Z)||wo(Q)))if(e.router&&n){const J=j.route||Z,L=n.push(J).then(X=>(X||(p.value=Z),X));t("select",Z,Q,{index:Z,indexPath:Q,route:J},L)}else p.value=Z,t("select",Z,Q,{index:Z,indexPath:Q})},M=j=>{const Z=f.value,Q=Z[j]||p.value&&Z[p.value]||Z[e.defaultActive];Q?p.value=Q.index:p.value=j},E=()=>{var j,Z;if(!a.value)return-1;const Q=Array.from((Z=(j=a.value)==null?void 0:j.childNodes)!=null?Z:[]).filter(ie=>ie.nodeName!=="#comment"&&(ie.nodeName!=="#text"||ie.nodeValue)),J=64,L=Number.parseInt(getComputedStyle(a.value).paddingLeft,10),X=Number.parseInt(getComputedStyle(a.value).paddingRight,10),N=a.value.clientWidth-L-X;let W=0,re=0;return Q.forEach((ie,se)=>{W+=ie.offsetWidth||0,W<=N-J&&(re=se+1)}),re===Q.length?-1:re},I=j=>v.value[j].indexPath,O=(j,Z=33.34)=>{let Q;return()=>{Q&&clearTimeout(Q),Q=setTimeout(()=>{j()},Z)}};let F=!0;const K=()=>{const j=()=>{u.value=-1,et(()=>{u.value=E()})};F?j():O(j)(),F=!1};Te(()=>e.defaultActive,j=>{f.value[j]||(p.value=""),M(j)}),Te(()=>e.collapse,j=>{j&&(d.value=[])}),Te(f.value,h);let R;lr(()=>{e.mode==="horizontal"&&e.ellipsis?R=jo(a,K).stop:R==null||R()});const D=V(!1);{const j=L=>{v.value[L.index]=L},Z=L=>{delete v.value[L.index]};zt("rootMenu",Ft({props:e,openedMenus:d,items:f,subMenus:v,activeIndex:p,isMenuPopup:m,addMenuItem:L=>{f.value[L.index]=L},removeMenuItem:L=>{delete f.value[L.index]},addSubMenu:j,removeSubMenu:Z,openMenu:_,closeMenu:y,handleMenuItemClick:x,handleSubMenuClick:w})),zt(`subMenu:${l.uid}`,{addSubMenu:j,removeSubMenu:Z,mouseInChild:D,level:0})}return vt(()=>{e.mode==="horizontal"&&new EQ(l.vnode.el,i.namespace.value)}),r({open:Z=>{const{indexPath:Q}=v.value[Z];Q.forEach(J=>_(J,Q))},close:g,handleResize:K}),()=>{var j,Z;let Q=(Z=(j=o.default)==null?void 0:j.call(o))!=null?Z:[];const J=[];if(e.mode==="horizontal"&&a.value){const W=la(Q),re=u.value===-1?W:W.slice(0,u.value),ie=u.value===-1?[]:W.slice(u.value);ie!=null&&ie.length&&e.ellipsis&&(Q=re,J.push(rt(Vh,{index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>rt(Je,{class:c.e("icon-more")},{default:()=>rt(e.ellipsisIcon)}),default:()=>ie})))}const L=$w(e,0),X=e.closeOnClickOutside?[[Ul,()=>{d.value.length&&(D.value||(d.value.forEach(W=>t("close",W,I(W))),d.value=[]))}]]:[],N=ht(rt("ul",{key:String(e.collapse),role:"menubar",ref:a,style:L.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...Q,...J]),X);return e.collapseTransition&&e.mode==="vertical"?rt(zQ,()=>N):N}}});const PQ=He({index:{type:pe([String,null]),default:null},route:{type:pe([String,Object])},disabled:Boolean}),BQ={click:e=>ft(e.index)&&Array.isArray(e.indexPath)},Fh="ElMenuItem",NQ=B({name:Fh,components:{ElTooltip:er},props:PQ,emits:BQ,setup(e,{emit:t}){const o=_t(),r=Le("rootMenu"),l=Ie("menu"),n=Ie("menu-item");r||So(Fh,"can not inject root menu");const{parentMenu:a,indexPath:i}=Ew(o,so(e,"index")),c=Le(`subMenu:${a.value.uid}`);c||So(Fh,"can not inject sub menu");const u=T(()=>e.index===r.activeIndex),d=Ft({index:e.index,indexPath:i,active:u}),p=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",d))};return vt(()=>{c.addSubMenu(d),r.addMenuItem(d)}),Zt(()=>{c.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:a,rootMenu:r,active:u,nsMenu:l,nsMenuItem:n,handleClick:p}}});function LQ(e,t,o,r,l,n){const a=ot("el-tooltip");return b(),z("li",{class:P([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(b(),de(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ne(()=>[be(e.$slots,"title")]),default:ne(()=>[$("div",{class:P(e.nsMenu.be("tooltip","trigger"))},[be(e.$slots,"default")],2)]),_:3},8,["effect"])):(b(),z(Xe,{key:1},[be(e.$slots,"default"),be(e.$slots,"title")],64))],2)}var Tw=Fe(NQ,[["render",LQ],["__file","menu-item.vue"]]);const RQ=B({name:"ElMenuItemGroup",props:{title:String},setup(){return{ns:Ie("menu-item-group")}}});function VQ(e,t,o,r,l,n){return b(),z("li",{class:P(e.ns.b())},[$("div",{class:P(e.ns.e("title"))},[e.$slots.title?be(e.$slots,"title",{key:1}):(b(),z(Xe,{key:0},[$t(ze(e.title),1)],64))],2),$("ul",null,[be(e.$slots,"default")])],2)}var zw=Fe(RQ,[["render",VQ],["__file","menu-item-group.vue"]]);const HQ=xt(IQ,{MenuItem:Tw,MenuItemGroup:zw,SubMenu:Vh}),FQ=fo(Tw),DQ=fo(zw),jQ=fo(Vh),KQ=He({icon:{type:qt,default:()=>h3},title:String,content:{type:String,default:""}}),WQ={back:()=>!0},UQ=["aria-label"],qQ=B({...B({name:"ElPageHeader"}),props:KQ,emits:WQ,setup(e,{emit:t}){const o=Bo(),{t:r}=Nt(),l=Ie("page-header"),n=T(()=>[l.b(),{[l.m("has-breadcrumb")]:!!o.breadcrumb,[l.m("has-extra")]:!!o.extra,[l.is("contentful")]:!!o.default}]);function a(){t("back")}return(i,c)=>(b(),z("div",{class:P(s(n))},[i.$slots.breadcrumb?(b(),z("div",{key:0,class:P(s(l).e("breadcrumb"))},[be(i.$slots,"breadcrumb")],2)):ue("v-if",!0),$("div",{class:P(s(l).e("header"))},[$("div",{class:P(s(l).e("left"))},[$("div",{class:P(s(l).e("back")),role:"button",tabindex:"0",onClick:a},[i.icon||i.$slots.icon?(b(),z("div",{key:0,"aria-label":i.title||s(r)("el.pageHeader.title"),class:P(s(l).e("icon"))},[be(i.$slots,"icon",{},()=>[i.icon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(i.icon)))]),_:1})):ue("v-if",!0)])],10,UQ)):ue("v-if",!0),$("div",{class:P(s(l).e("title"))},[be(i.$slots,"title",{},()=>[$t(ze(i.title||s(r)("el.pageHeader.title")),1)])],2)],2),oe(s(pw),{direction:"vertical"}),$("div",{class:P(s(l).e("content"))},[be(i.$slots,"content",{},()=>[$t(ze(i.content),1)])],2)],2),i.$slots.extra?(b(),z("div",{key:0,class:P(s(l).e("extra"))},[be(i.$slots,"extra")],2)):ue("v-if",!0)],2),i.$slots.default?(b(),z("div",{key:1,class:P(s(l).e("main"))},[be(i.$slots,"default")],2)):ue("v-if",!0)],2))}});var YQ=Fe(qQ,[["__file","page-header.vue"]]);const GQ=xt(YQ),Mw=Symbol("elPaginationKey"),XQ=He({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:qt}}),ZQ={click:e=>e instanceof MouseEvent},JQ=["disabled","aria-label","aria-disabled"],QQ={key:0},eee=B({...B({name:"ElPaginationPrev"}),props:XQ,emits:ZQ,setup(e){const t=e,{t:o}=Nt(),r=T(()=>t.disabled||t.currentPage<=1);return(l,n)=>(b(),z("button",{type:"button",class:"btn-prev",disabled:s(r),"aria-label":l.prevText||s(o)("el.pagination.prev"),"aria-disabled":s(r),onClick:n[0]||(n[0]=a=>l.$emit("click",a))},[l.prevText?(b(),z("span",QQ,ze(l.prevText),1)):(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(l.prevIcon)))]),_:1}))],8,JQ))}});var tee=Fe(eee,[["__file","prev.vue"]]);const oee=He({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:qt}}),ree=["disabled","aria-label","aria-disabled"],lee={key:0},nee=B({...B({name:"ElPaginationNext"}),props:oee,emits:["click"],setup(e){const t=e,{t:o}=Nt(),r=T(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(l,n)=>(b(),z("button",{type:"button",class:"btn-next",disabled:s(r),"aria-label":l.nextText||s(o)("el.pagination.next"),"aria-disabled":s(r),onClick:n[0]||(n[0]=a=>l.$emit("click",a))},[l.nextText?(b(),z("span",lee,ze(l.nextText),1)):(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(l.nextIcon)))]),_:1}))],8,ree))}});var aee=Fe(nee,[["__file","next.vue"]]);const Aw=Symbol("ElSelectGroup"),Ys=Symbol("ElSelect");function iee(e,t){const o=Le(Ys),r=Le(Aw,{disabled:!1}),l=T(()=>Ct(e.value)),n=T(()=>o.props.multiple?p(o.props.modelValue,e.value):f(e.value,o.props.modelValue)),a=T(()=>{if(o.props.multiple){const h=o.props.modelValue||[];return!n.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),i=T(()=>e.label||(l.value?"":e.value)),c=T(()=>e.value||e.label||""),u=T(()=>e.disabled||t.groupDisabled||a.value),d=_t(),p=(h=[],_)=>{if(l.value){const g=o.props.valueKey;return h&&h.some(y=>Vt(oo(y,g))===oo(_,g))}else return h&&h.includes(_)},f=(h,_)=>{if(l.value){const{valueKey:g}=o.props;return oo(h,g)===oo(_,g)}else return h===_},v=()=>{!e.disabled&&!r.disabled&&(o.hoverIndex=o.optionsArray.indexOf(d.proxy))};Te(()=>i.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),Te(()=>e.value,(h,_)=>{const{remote:g,valueKey:y}=o.props;if(Object.is(h,_)||(o.onOptionDestroy(_,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!g){if(y&&Ct(h)&&Ct(_)&&h[y]===_[y])return;o.setSelected()}}),Te(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:m}=Vt(o);return Te(m,h=>{const{query:_}=s(h),g=new RegExp(u3(_),"i");t.visible=g.test(i.value)||e.created,t.visible||o.filteredOptionsCount--},{immediate:!0}),{select:o,currentLabel:i,currentValue:c,itemSelected:n,isDisabled:u,hoverItem:v}}const see=B({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ie("select"),o=dr(),r=T(()=>[t.be("dropdown","item"),t.is("disabled",s(i)),{selected:s(a),hover:s(p)}]),l=Ft({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:n,itemSelected:a,isDisabled:i,select:c,hoverItem:u}=iee(e,l),{visible:d,hover:p}=Ao(l),f=_t().proxy;c.onOptionCreate(f),Zt(()=>{const m=f.value,{selected:h}=c,g=(c.props.multiple?h:[h]).some(y=>y.value===f.value);et(()=>{c.cachedOptions.get(m)===f&&!g&&c.cachedOptions.delete(m)}),c.onOptionDestroy(m,f)});function v(){e.disabled!==!0&&l.groupDisabled!==!0&&c.handleOptionSelect(f)}return{ns:t,id:o,containerKls:r,currentLabel:n,itemSelected:a,isDisabled:i,select:c,hoverItem:u,visible:d,hover:p,selectOptionClick:v,states:l}}}),cee=["id","aria-disabled","aria-selected"];function uee(e,t,o,r,l,n){return ht((b(),z("li",{id:e.id,class:P(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=it((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{},()=>[$("span",null,ze(e.currentLabel),1)])],42,cee)),[[Pt,e.visible]])}var Dh=Fe(see,[["render",uee],["__file","option.vue"]]);const dee=B({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Le(Ys),t=Ie("select"),o=T(()=>e.props.popperClass),r=T(()=>e.props.multiple),l=T(()=>e.props.fitInputWidth),n=V("");function a(){var i;n.value=`${(i=e.selectWrapper)==null?void 0:i.offsetWidth}px`}return vt(()=>{a(),jo(e.selectWrapper,a)}),{ns:t,minWidth:n,popperClass:o,isMultiple:r,isFitInputWidth:l}}});function pee(e,t,o,r,l,n){return b(),z("div",{class:P([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(b(),z("div",{key:0,class:P(e.ns.be("dropdown","header"))},[be(e.$slots,"header")],2)):ue("v-if",!0),be(e.$slots,"default"),e.$slots.footer?(b(),z("div",{key:1,class:P(e.ns.be("dropdown","footer"))},[be(e.$slots,"footer")],2)):ue("v-if",!0)],6)}var fee=Fe(dee,[["render",pee],["__file","select-dropdown.vue"]]);function hee(e){const{t}=Nt();return Ft({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const vee=(e,t,o)=>{const{t:r}=Nt(),l=Ie("select");cl({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},T(()=>e.suffixTransition===!1));const n=V(null),a=V(null),i=V(null),c=V(null),u=V(null),d=V(null),p=V(null),f=V(null),v=V(),m=Yt({query:""}),h=Yt(""),_=V([]);let g=0;const{form:y,formItem:w}=Qo(),x=T(()=>!e.filterable||e.multiple||!t.visible),M=T(()=>e.disabled||(y==null?void 0:y.disabled)),E=T(()=>{const Ce=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!M.value&&t.inputHovering&&Ce}),I=T(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),O=T(()=>l.is("reverse",I.value&&t.visible&&e.suffixTransition)),F=T(()=>(y==null?void 0:y.statusIcon)&&(w==null?void 0:w.validateState)&&v0[w==null?void 0:w.validateState]),K=T(()=>e.remote?300:0),R=T(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),D=T(()=>{const Ce=Array.from(t.options.values()),De=[];return _.value.forEach(lt=>{const Ot=Ce.findIndex(Gt=>Gt.currentLabel===lt);Ot>-1&&De.push(Ce[Ot])}),De.length>=Ce.length?De:Ce}),j=T(()=>Array.from(t.cachedOptions.values())),Z=T(()=>{const Ce=D.value.filter(De=>!De.created).some(De=>De.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Ce}),Q=Eo(),J=T(()=>["small"].includes(Q.value)?"small":"default"),L=T({get(){return t.visible&&R.value!==!1},set(Ce){t.visible=Ce}});Te([()=>M.value,()=>Q.value,()=>y==null?void 0:y.size],()=>{et(()=>{X()})}),Te(()=>e.placeholder,Ce=>{t.cachedPlaceHolder=t.currentPlaceholder=Ce,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Te(()=>e.modelValue,(Ce,De)=>{e.multiple&&(X(),Ce&&Ce.length>0||a.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",N(t.query))),ie(),e.filterable&&!e.multiple&&(t.inputLength=20),!ir(Ce,De)&&e.validateEvent&&(w==null||w.validate("change").catch(lt=>void 0))},{flush:"post",deep:!0}),Te(()=>t.visible,Ce=>{var De,lt,Ot,Gt,Re;Ce?((lt=(De=c.value)==null?void 0:De.updatePopper)==null||lt.call(De),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Gt=(Ot=i.value)==null?void 0:Ot.focus)==null||Gt.call(Ot),e.multiple?(Re=a.value)==null||Re.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),N(t.query),!e.multiple&&!e.remote&&(m.value.query="",Vi(m),Vi(h)))):(e.filterable&&(ut(e.filterMethod)&&e.filterMethod(""),ut(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ve(),et(()=>{a.value&&a.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),o.emit("visible-change",Ce)}),Te(()=>t.options.entries(),()=>{var Ce,De,lt;if(!Bt)return;(De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce),e.multiple&&X();const Ot=((lt=p.value)==null?void 0:lt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ko(e.modelValue)||!Array.from(Ot).includes(document.activeElement))&&ie(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&re()},{flush:"post"}),Te(()=>t.hoverIndex,Ce=>{ct(Ce)&&Ce>-1?v.value=D.value[Ce]||{}:v.value={},D.value.forEach(De=>{De.hover=v.value===De})});const X=()=>{et(()=>{var Ce,De;if(!n.value)return;const lt=n.value.$el.querySelector("input");g=g||(lt.clientHeight>0?lt.clientHeight+2:0);const Ot=d.value,Gt=getComputedStyle(lt).getPropertyValue(l.cssVarName("input-height")),Re=Number.parseFloat(Gt)||YH(Q.value||(y==null?void 0:y.size)),at=Q.value||Re===g||g<=0?Re:g;!(lt.offsetParent===null)&&(lt.style.height=`${(t.selected.length===0?at:Math.max(Ot?Ot.clientHeight+(Ot.clientHeight>at?6:0):0,at))-2}px`),t.visible&&R.value!==!1&&((De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce))})},N=async Ce=>{if(!(t.previousQuery===Ce||t.isOnComposition)){if(t.previousQuery===null&&(ut(e.filterMethod)||ut(e.remoteMethod))){t.previousQuery=Ce;return}t.previousQuery=Ce,et(()=>{var De,lt;t.visible&&((lt=(De=c.value)==null?void 0:De.updatePopper)==null||lt.call(De))}),t.hoverIndex=-1,e.multiple&&e.filterable&&et(()=>{if(!M.value){const De=a.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,De):De,W()}X()}),e.remote&&ut(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Ce)):ut(e.filterMethod)?(e.filterMethod(Ce),Vi(h)):(t.filteredOptionsCount=t.optionsCount,m.value.query=Ce,Vi(m),Vi(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await et(),re())}},W=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=a.value.value?"":t.cachedPlaceHolder)},re=()=>{const Ce=D.value.filter(Ot=>Ot.visible&&!Ot.disabled&&!Ot.states.groupDisabled),De=Ce.find(Ot=>Ot.created),lt=Ce[0];t.hoverIndex=Oe(D.value,De||lt)},ie=()=>{var Ce;if(e.multiple)t.selectedLabel="";else{const lt=se(e.modelValue);(Ce=lt.props)!=null&&Ce.created?(t.createdLabel=lt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=lt.currentLabel,t.selected=lt,e.filterable&&(t.query=t.selectedLabel);return}const De=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(lt=>{De.push(se(lt))}),t.selected=De,et(()=>{X()})},se=Ce=>{let De;const lt=yc(Ce).toLowerCase()==="object",Ot=yc(Ce).toLowerCase()==="null",Gt=yc(Ce).toLowerCase()==="undefined";for(let bt=t.cachedOptions.size-1;bt>=0;bt--){const pt=j.value[bt];if(lt?oo(pt.value,e.valueKey)===oo(Ce,e.valueKey):pt.value===Ce){De={value:Ce,currentLabel:pt.currentLabel,isDisabled:pt.isDisabled};break}}if(De)return De;const Re=lt?Ce.label:!Ot&&!Gt?Ce:"",at={value:Ce,currentLabel:Re};return e.multiple&&(at.hitState=!1),at},ve=()=>{setTimeout(()=>{const Ce=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(De=>D.value.findIndex(lt=>oo(lt,Ce)===oo(De,Ce)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(De=>ee(De)===ee(t.selected))},300)},le=()=>{var Ce,De;ge(),(De=(Ce=c.value)==null?void 0:Ce.updatePopper)==null||De.call(Ce),e.multiple&&X()},ge=()=>{var Ce;t.inputWidth=(Ce=n.value)==null?void 0:Ce.$el.offsetWidth},_e=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,N(t.query))},me=Zo(()=>{_e()},K.value),Be=Zo(Ce=>{N(Ce.target.value)},K.value),ye=Ce=>{ir(e.modelValue,Ce)||o.emit(Jt,Ce)},Me=Ce=>_M(Ce,De=>!t.disabledOptions.has(De)),te=Ce=>{if(Ce.code!==tt.delete){if(Ce.target.value.length<=0&&!Pe()){const De=e.modelValue.slice(),lt=Me(De);if(lt<0)return;De.splice(lt,1),o.emit(kt,De),ye(De)}Ce.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},ce=(Ce,De)=>{const lt=t.selected.indexOf(De);if(lt>-1&&!M.value){const Ot=e.modelValue.slice();Ot.splice(lt,1),o.emit(kt,Ot),ye(Ot),o.emit("remove-tag",De.value)}Ce.stopPropagation(),Ue()},we=Ce=>{Ce.stopPropagation();const De=e.multiple?[]:"";if(!ft(De))for(const lt of t.selected)lt.isDisabled&&De.push(lt.value);o.emit(kt,De),ye(De),t.hoverIndex=-1,t.visible=!1,o.emit("clear"),Ue()},Ae=Ce=>{var De;if(e.multiple){const lt=(e.modelValue||[]).slice(),Ot=Oe(lt,Ce.value);Ot>-1?lt.splice(Ot,1):(e.multipleLimit<=0||lt.length{Ne(Ce)})},Oe=(Ce=[],De)=>{if(!Ct(De))return Ce.indexOf(De);const lt=e.valueKey;let Ot=-1;return Ce.some((Gt,Re)=>Vt(oo(Gt,lt))===oo(De,lt)?(Ot=Re,!0):!1),Ot},xe=()=>{const Ce=a.value||n.value;Ce&&(Ce==null||Ce.focus())},Ne=Ce=>{var De,lt,Ot,Gt,Re;const at=Array.isArray(Ce)?Ce[0]:Ce;let bt=null;if(at!=null&&at.value){const pt=D.value.filter(Xt=>Xt.value===at.value);pt.length>0&&(bt=pt[0].$el)}if(c.value&&bt){const pt=(Gt=(Ot=(lt=(De=c.value)==null?void 0:De.popperRef)==null?void 0:lt.contentRef)==null?void 0:Ot.querySelector)==null?void 0:Gt.call(Ot,`.${l.be("dropdown","wrap")}`);pt&&f3(pt,bt)}(Re=f.value)==null||Re.handleScroll()},Se=Ce=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Ce.value,Ce),t.cachedOptions.set(Ce.value,Ce),Ce.disabled&&t.disabledOptions.set(Ce.value,Ce)},ke=(Ce,De)=>{t.options.get(Ce)===De&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Ce))},$e=Ce=>{Ce.code!==tt.backspace&&Pe(!1),t.inputLength=a.value.value.length*15+20,X()},Pe=Ce=>{if(!Array.isArray(t.selected))return;const De=Me(t.selected.map(Ot=>Ot.value)),lt=t.selected[De];if(lt)return Ce===!0||Ce===!1?(lt.hitState=Ce,Ce):(lt.hitState=!lt.hitState,lt.hitState)},Ye=Ce=>{const De=Ce.target.value;if(Ce.type==="compositionend")t.isOnComposition=!1,et(()=>N(De));else{const lt=De[De.length-1]||"";t.isOnComposition=!Bu(lt)}},Ke=()=>{et(()=>Ne(t.selected))},Ee=Ce=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,o.emit("focus",Ce))},Ue=()=>{var Ce,De;t.visible?(Ce=a.value||n.value)==null||Ce.focus():(De=n.value)==null||De.focus()},nt=()=>{var Ce,De,lt;t.visible=!1,(Ce=n.value)==null||Ce.blur(),(lt=(De=i.value)==null?void 0:De.blur)==null||lt.call(De)},dt=Ce=>{var De,lt,Ot;(De=c.value)!=null&&De.isFocusInsideContent(Ce)||(lt=u.value)!=null&<.isFocusInsideContent(Ce)||(Ot=p.value)!=null&&Ot.contains(Ce.relatedTarget)||(t.visible&&Y(),t.focused=!1,o.emit("blur",Ce))},gt=Ce=>{we(Ce)},Y=()=>{t.visible=!1},C=Ce=>{t.visible&&(Ce.preventDefault(),Ce.stopPropagation(),t.visible=!1)},S=Ce=>{Ce&&!t.mouseEnter||M.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!c.value||!c.value.isFocusInsideContent())&&(t.visible=!t.visible),Ue())},H=()=>{t.visible?D.value[t.hoverIndex]&&Ae(D.value[t.hoverIndex]):S()},ee=Ce=>Ct(Ce.value)?oo(Ce.value,e.valueKey):Ce.value,U=T(()=>D.value.filter(Ce=>Ce.visible).every(Ce=>Ce.disabled)),he=T(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),qe=T(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),st=Ce=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!U.value){Ce==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Ce==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const De=D.value[t.hoverIndex];(De.disabled===!0||De.states.groupDisabled===!0||!De.visible)&&st(Ce),et(()=>Ne(v.value))}},At=()=>{t.mouseEnter=!0},Mt=()=>{t.mouseEnter=!1},Lt=(Ce,De)=>{var lt,Ot;ce(Ce,De),(Ot=(lt=u.value)==null?void 0:lt.updatePopper)==null||Ot.call(lt)},lo=T(()=>({maxWidth:`${s(t.inputWidth)-32-(F.value?22:0)}px`,width:"100%"}));return{optionList:_,optionsArray:D,hoverOption:v,selectSize:Q,handleResize:le,debouncedOnInputChange:me,debouncedQueryChange:Be,deletePrevTag:te,deleteTag:ce,deleteSelected:we,handleOptionSelect:Ae,scrollToOption:Ne,readonly:x,resetInputHeight:X,showClose:E,iconComponent:I,iconReverse:O,showNewOption:Z,collapseTagSize:J,setSelected:ie,managePlaceholder:W,selectDisabled:M,emptyText:R,toggleLastOptionHitState:Pe,resetInputState:$e,handleComposition:Ye,onOptionCreate:Se,onOptionDestroy:ke,handleMenuEnter:Ke,handleFocus:Ee,focus:Ue,blur:nt,handleBlur:dt,handleClearClick:gt,handleClose:Y,handleKeydownEscape:C,toggleMenu:S,selectOption:H,getValueKey:ee,navigateOptions:st,handleDeleteTooltipTag:Lt,dropMenuVisible:L,queryChange:m,groupQueryChange:h,showTagList:he,collapseTagList:qe,selectTagsStyle:lo,reference:n,input:a,iOSInput:i,tooltipRef:c,tagTooltipRef:u,tags:d,selectWrapper:p,scrollbar:f,handleMouseEnter:At,handleMouseLeave:Mt}};var mee=B({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:o}){let r=[];function l(n,a){if(n.length!==a.length)return!1;for(const[i]of n.entries())if(n[i]!=a[i])return!1;return!0}return()=>{var n,a;const i=(n=t.default)==null?void 0:n.call(t),c=[];function u(d){Array.isArray(d)&&d.forEach(p=>{var f,v,m,h;const _=(f=(p==null?void 0:p.type)||{})==null?void 0:f.name;_==="ElOptionGroup"?u(!ft(p.children)&&!Array.isArray(p.children)&&ut((v=p.children)==null?void 0:v.default)?(m=p.children)==null?void 0:m.default():p.children):_==="ElOption"?c.push((h=p.props)==null?void 0:h.label):Array.isArray(p.children)&&u(p.children)})}return i.length&&u((a=i[0])==null?void 0:a.children),l(c,r)||(r=c,o("update-options",c)),i}}});const Ow="ElSelect",gee=B({name:Ow,componentName:Ow,components:{ElInput:Wo,ElSelectMenu:fee,ElOption:Dh,ElOptions:mee,ElTag:js,ElScrollbar:Kl,ElTooltip:er,ElIcon:Je},directives:{ClickOutside:Ul},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:g0},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Lo.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:qt,default:Ll},fitInputWidth:Boolean,suffixIcon:{type:qt,default:Bl},tagType:{...Sh.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:aa,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[kt,Jt,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const o=Ie("select"),r=Ie("input"),{t:l}=Nt(),n=dr(),a=hee(e),{optionList:i,optionsArray:c,hoverOption:u,selectSize:d,readonly:p,handleResize:f,collapseTagSize:v,debouncedOnInputChange:m,debouncedQueryChange:h,deletePrevTag:_,deleteTag:g,deleteSelected:y,handleOptionSelect:w,scrollToOption:x,setSelected:M,resetInputHeight:E,managePlaceholder:I,showClose:O,selectDisabled:F,iconComponent:K,iconReverse:R,showNewOption:D,emptyText:j,toggleLastOptionHitState:Z,resetInputState:Q,handleComposition:J,onOptionCreate:L,onOptionDestroy:X,handleMenuEnter:N,handleFocus:W,focus:re,blur:ie,handleBlur:se,handleClearClick:ve,handleClose:le,handleKeydownEscape:ge,toggleMenu:_e,selectOption:me,getValueKey:Be,navigateOptions:ye,handleDeleteTooltipTag:Me,dropMenuVisible:te,reference:ce,input:we,iOSInput:Ae,tooltipRef:Oe,tagTooltipRef:xe,tags:Ne,selectWrapper:Se,scrollbar:ke,queryChange:$e,groupQueryChange:Pe,handleMouseEnter:Ye,handleMouseLeave:Ke,showTagList:Ee,collapseTagList:Ue,selectTagsStyle:nt}=vee(e,a,t),{inputWidth:dt,selected:gt,inputLength:Y,filteredOptionsCount:C,visible:S,selectedLabel:H,hoverIndex:ee,query:U,inputHovering:he,currentPlaceholder:qe,menuVisibleOnFocus:st,isOnComposition:At,options:Mt,cachedOptions:Lt,optionsCount:lo,prefixWidth:Ce}=Ao(a),De=T(()=>{const no=[o.b()],ao=s(d);return ao&&no.push(o.m(ao)),e.disabled&&no.push(o.m("disabled")),no}),lt=T(()=>[o.e("tags"),o.is("disabled",s(F))]),Ot=T(()=>[o.b("tags-wrapper"),{"has-prefix":s(Ce)&&s(gt).length}]),Gt=T(()=>[o.e("input"),o.is(s(d)),o.is("disabled",s(F))]),Re=T(()=>[o.e("input"),o.is(s(d)),o.em("input","iOS")]),at=T(()=>[o.is("empty",!e.allowCreate&&!!s(U)&&s(C)===0)]),bt=T(()=>({maxWidth:`${s(dt)>123&&s(gt).length>e.maxCollapseTags?s(dt)-123:s(dt)-75}px`})),pt=T(()=>({marginLeft:`${s(Ce)}px`,flexGrow:1,width:`${s(Y)/(s(dt)-32)}%`,maxWidth:`${s(dt)-42}px`}));zt(Ys,Ft({props:e,options:Mt,optionsArray:c,cachedOptions:Lt,optionsCount:lo,filteredOptionsCount:C,hoverIndex:ee,handleOptionSelect:w,onOptionCreate:L,onOptionDestroy:X,selectWrapper:Se,selected:gt,setSelected:M,queryChange:$e,groupQueryChange:Pe})),vt(()=>{a.cachedPlaceHolder=qe.value=e.placeholder||(()=>l("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(qe.value=""),jo(Se,f),e.remote&&e.multiple&&E(),et(()=>{const no=ce.value&&ce.value.$el;if(no&&(dt.value=no.getBoundingClientRect().width,t.slots.prefix)){const ao=no.querySelector(`.${r.e("prefix")}`);Ce.value=Math.max(ao.getBoundingClientRect().width+11,30)}}),M()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(kt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(kt,"");const Xt=T(()=>{var no,ao;return(ao=(no=Oe.value)==null?void 0:no.popperRef)==null?void 0:ao.contentRef});return{isIOS:N1,onOptionsRendered:no=>{i.value=no},prefixWidth:Ce,selectSize:d,readonly:p,handleResize:f,collapseTagSize:v,debouncedOnInputChange:m,debouncedQueryChange:h,deletePrevTag:_,deleteTag:g,handleDeleteTooltipTag:Me,deleteSelected:y,handleOptionSelect:w,scrollToOption:x,inputWidth:dt,selected:gt,inputLength:Y,filteredOptionsCount:C,visible:S,selectedLabel:H,hoverIndex:ee,query:U,inputHovering:he,currentPlaceholder:qe,menuVisibleOnFocus:st,isOnComposition:At,options:Mt,resetInputHeight:E,managePlaceholder:I,showClose:O,selectDisabled:F,iconComponent:K,iconReverse:R,showNewOption:D,emptyText:j,toggleLastOptionHitState:Z,resetInputState:Q,handleComposition:J,handleMenuEnter:N,handleFocus:W,focus:re,blur:ie,handleBlur:se,handleClearClick:ve,handleClose:le,handleKeydownEscape:ge,toggleMenu:_e,selectOption:me,getValueKey:Be,navigateOptions:ye,dropMenuVisible:te,reference:ce,input:we,iOSInput:Ae,tooltipRef:Oe,popperPaneRef:Xt,tags:Ne,selectWrapper:Se,scrollbar:ke,wrapperKls:De,tagsKls:lt,tagWrapperKls:Ot,inputKls:Gt,iOSInputKls:Re,scrollbarKls:at,selectTagsStyle:nt,nsSelect:o,tagTextStyle:bt,inputStyle:pt,handleMouseEnter:Ye,handleMouseLeave:Ke,showTagList:Ee,collapseTagList:Ue,tagTooltipRef:xe,contentId:n,hoverOption:u}}}),bee=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],_ee=["disabled"],wee={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function yee(e,t,o,r,l,n){const a=ot("el-tag"),i=ot("el-tooltip"),c=ot("el-icon"),u=ot("el-input"),d=ot("el-option"),p=ot("el-options"),f=ot("el-scrollbar"),v=ot("el-select-menu"),m=ji("click-outside");return ht((b(),z("div",{ref:"selectWrapper",class:P(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...h)=>e.handleMouseEnter&&e.handleMouseEnter(...h)),onMouseleave:t[23]||(t[23]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h)),onClick:t[24]||(t[24]=it((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[oe(i,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:ne(()=>{var h,_;return[$("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=g=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=g=>e.inputHovering=!1)},[e.multiple?(b(),z("div",{key:0,ref:"tags",tabindex:"-1",class:P(e.tagsKls),style:Qe(e.selectTagsStyle),onClick:t[15]||(t[15]=(...g)=>e.focus&&e.focus(...g))},[e.collapseTags&&e.selected.length?(b(),de(_o,{key:0,onAfterLeave:e.resetInputHeight},{default:ne(()=>[$("span",{class:P(e.tagWrapperKls)},[(b(!0),z(Xe,null,Tt(e.showTagList,g=>(b(),de(a,{key:e.getValueKey(g),closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,g)},{default:ne(()=>[$("span",{class:P(e.nsSelect.e("tags-text")),style:Qe(e.tagTextStyle)},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(b(),de(a,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ne(()=>[e.collapseTagsTooltip?(b(),de(i,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ne(()=>[$("span",{class:P(e.nsSelect.e("tags-text"))},"+ "+ze(e.selected.length-e.maxCollapseTags),3)]),content:ne(()=>[$("div",{class:P(e.nsSelect.e("collapse-tags"))},[(b(!0),z(Xe,null,Tt(e.collapseTagList,g=>(b(),z("div",{key:e.getValueKey(g),class:P(e.nsSelect.e("collapse-tag"))},[oe(a,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.handleDeleteTooltipTag(y,g)},{default:ne(()=>[$("span",{class:P(e.nsSelect.e("tags-text")),style:Qe({maxWidth:e.inputWidth-75+"px"})},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(b(),z("span",{key:1,class:P(e.nsSelect.e("tags-text"))},"+ "+ze(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):ue("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):ue("v-if",!0),e.collapseTags?ue("v-if",!0):(b(),de(_o,{key:1,onAfterLeave:e.resetInputHeight},{default:ne(()=>[$("span",{class:P(e.tagWrapperKls),style:Qe(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(b(!0),z(Xe,null,Tt(e.selected,g=>(b(),de(a,{key:e.getValueKey(g),closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,hit:g.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,g)},{default:ne(()=>[$("span",{class:P(e.nsSelect.e("tags-text")),style:Qe({maxWidth:e.inputWidth-75+"px"})},ze(g.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?ht((b(),z("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=g=>e.query=g),type:"text",class:P(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Qe(e.inputStyle),role:"combobox","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...g)=>e.handleFocus&&e.handleFocus(...g)),onBlur:t[2]||(t[2]=(...g)=>e.handleBlur&&e.handleBlur(...g)),onKeyup:t[3]||(t[3]=(...g)=>e.managePlaceholder&&e.managePlaceholder(...g)),onKeydown:[t[4]||(t[4]=(...g)=>e.resetInputState&&e.resetInputState(...g)),t[5]||(t[5]=Rt(it(g=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Rt(it(g=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Rt((...g)=>e.handleKeydownEscape&&e.handleKeydownEscape(...g),["esc"])),t[8]||(t[8]=Rt(it((...g)=>e.selectOption&&e.selectOption(...g),["stop","prevent"]),["enter"])),t[9]||(t[9]=Rt((...g)=>e.deletePrevTag&&e.deletePrevTag(...g),["delete"])),t[10]||(t[10]=Rt(g=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionupdate:t[12]||(t[12]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onCompositionend:t[13]||(t[13]=(...g)=>e.handleComposition&&e.handleComposition(...g)),onInput:t[14]||(t[14]=(...g)=>e.debouncedQueryChange&&e.debouncedQueryChange(...g))},null,46,bee)),[[nf,e.query]]):ue("v-if",!0)],6)):ue("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(b(),z("input",{key:1,ref:"iOSInput",class:P(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,_ee)):ue("v-if",!0),oe(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=g=>e.selectedLabel=g),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:P([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((_=e.hoverOption)==null?void 0:_.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Rt(it(g=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Rt(it(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Rt(it(e.selectOption,["stop","prevent"]),["enter"]),Rt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Rt(g=>e.visible=!1,["tab"]))]},tl({suffix:ne(()=>[e.iconComponent&&!e.showClose?(b(),de(c,{key:0,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),e.showClose&&e.clearIcon?(b(),de(c,{key:1,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ne(()=>[(b(),de(St(e.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ne(()=>[$("div",wee,[be(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:ne(()=>[oe(v,null,tl({default:ne(()=>[ht(oe(f,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:P(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ne(()=>[e.showNewOption?(b(),de(d,{key:0,value:e.query,created:!0},null,8,["value"])):ue("v-if",!0),oe(p,{onUpdateOptions:e.onOptionsRendered},{default:ne(()=>[be(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Pt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(b(),z(Xe,{key:0},[e.$slots.empty?be(e.$slots,"empty",{key:0}):(b(),z("p",{key:1,class:P(e.nsSelect.be("dropdown","empty"))},ze(e.emptyText),3))],64)):ue("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:ne(()=>[be(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:ne(()=>[be(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[m,e.handleClose,e.popperPaneRef]])}var xee=Fe(gee,[["render",yee],["__file","select.vue"]]);const kee=B({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ie("select"),o=V(!0),r=_t(),l=V([]);zt(Aw,Ft({...Ao(e)}));const n=Le(Ys);vt(()=>{l.value=a(r.subTree)});const a=c=>{const u=[];return Array.isArray(c.children)&&c.children.forEach(d=>{var p;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(p=d.children)!=null&&p.length&&u.push(...a(d))}),u},{groupQueryChange:i}=Vt(n);return Te(i,()=>{o.value=l.value.some(c=>c.visible===!0)},{flush:"post"}),{visible:o,ns:t}}});function Cee(e,t,o,r,l,n){return ht((b(),z("ul",{class:P(e.ns.be("group","wrap"))},[$("li",{class:P(e.ns.be("group","title"))},ze(e.label),3),$("li",null,[$("ul",{class:P(e.ns.b("group"))},[be(e.$slots,"default")],2)])],2)),[[Pt,e.visible]])}var Iw=Fe(kee,[["render",Cee],["__file","option-group.vue"]]);const va=xt(xee,{Option:Dh,OptionGroup:Iw}),Cd=fo(Dh),See=fo(Iw),jh=()=>Le(Mw,{}),Eee=He({pageSize:{type:Number,required:!0},pageSizes:{type:pe(Array),default:()=>ro([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:sl}}),$ee=B({...B({name:"ElPaginationSizes"}),props:Eee,emits:["page-size-change"],setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Ie("pagination"),n=jh(),a=V(o.pageSize);Te(()=>o.pageSizes,(u,d)=>{if(!ir(u,d)&&Array.isArray(u)){const p=u.includes(o.pageSize)?o.pageSize:o.pageSizes[0];t("page-size-change",p)}}),Te(()=>o.pageSize,u=>{a.value=u});const i=T(()=>o.pageSizes);function c(u){var d;u!==a.value&&(a.value=u,(d=n.handleSizeChange)==null||d.call(n,Number(u)))}return(u,d)=>(b(),z("span",{class:P(s(l).e("sizes"))},[oe(s(va),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:c},{default:ne(()=>[(b(!0),z(Xe,null,Tt(s(i),p=>(b(),de(s(Cd),{key:p,value:p,label:p+s(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var Tee=Fe($ee,[["__file","sizes.vue"]]);const zee=He({size:{type:String,values:sl}}),Mee=["disabled"],Aee=B({...B({name:"ElPaginationJumper"}),props:zee,setup(e){const{t}=Nt(),o=Ie("pagination"),{pageCount:r,disabled:l,currentPage:n,changeEvent:a}=jh(),i=V(),c=T(()=>{var p;return(p=i.value)!=null?p:n==null?void 0:n.value});function u(p){i.value=p?+p:""}function d(p){p=Math.trunc(+p),a==null||a(p),i.value=void 0}return(p,f)=>(b(),z("span",{class:P(s(o).e("jump")),disabled:s(l)},[$("span",{class:P([s(o).e("goto")])},ze(s(t)("el.pagination.goto")),3),oe(s(Wo),{size:p.size,class:P([s(o).e("editor"),s(o).is("in-pagination")]),min:1,max:s(r),disabled:s(l),"model-value":s(c),"validate-event":!1,label:s(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","label"]),$("span",{class:P([s(o).e("classifier")])},ze(s(t)("el.pagination.pageClassifier")),3)],10,Mee))}});var Oee=Fe(Aee,[["__file","jumper.vue"]]);const Iee=He({total:{type:Number,default:1e3}}),Pee=["disabled"],Bee=B({...B({name:"ElPaginationTotal"}),props:Iee,setup(e){const{t}=Nt(),o=Ie("pagination"),{disabled:r}=jh();return(l,n)=>(b(),z("span",{class:P(s(o).e("total")),disabled:s(r)},ze(s(t)("el.pagination.total",{total:l.total})),11,Pee))}});var Nee=Fe(Bee,[["__file","total.vue"]]);const Lee=He({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Ree=["onKeyup"],Vee=["aria-current","aria-label","tabindex"],Hee=["tabindex","aria-label"],Fee=["aria-current","aria-label","tabindex"],Dee=["tabindex","aria-label"],jee=["aria-current","aria-label","tabindex"],Kee=B({...B({name:"ElPaginationPager"}),props:Lee,emits:["change"],setup(e,{emit:t}){const o=e,r=Ie("pager"),l=Ie("icon"),{t:n}=Nt(),a=V(!1),i=V(!1),c=V(!1),u=V(!1),d=V(!1),p=V(!1),f=T(()=>{const x=o.pagerCount,M=(x-1)/2,E=Number(o.currentPage),I=Number(o.pageCount);let O=!1,F=!1;I>x&&(E>x-M&&(O=!0),E["more","btn-quickprev",l.b(),r.is("disabled",o.disabled)]),m=T(()=>["more","btn-quicknext",l.b(),r.is("disabled",o.disabled)]),h=T(()=>o.disabled?-1:0);lr(()=>{const x=(o.pagerCount-1)/2;a.value=!1,i.value=!1,o.pageCount>o.pagerCount&&(o.currentPage>o.pagerCount-x&&(a.value=!0),o.currentPageI&&(E=I)),E!==O&&t("change",E)}return(x,M)=>(b(),z("ul",{class:P(s(r).b()),onClick:w,onKeyup:Rt(y,["enter"])},[x.pageCount>0?(b(),z("li",{key:0,class:P([[s(r).is("active",x.currentPage===1),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===1,"aria-label":s(n)("el.pagination.currentPage",{pager:1}),tabindex:s(h)}," 1 ",10,Vee)):ue("v-if",!0),a.value?(b(),z("li",{key:1,class:P(s(v)),tabindex:s(h),"aria-label":s(n)("el.pagination.prevPages",{pager:x.pagerCount-2}),onMouseenter:M[0]||(M[0]=E=>_(!0)),onMouseleave:M[1]||(M[1]=E=>c.value=!1),onFocus:M[2]||(M[2]=E=>g(!0)),onBlur:M[3]||(M[3]=E=>d.value=!1)},[(c.value||d.value)&&!x.disabled?(b(),de(s(oa),{key:0})):(b(),de(s(u0),{key:1}))],42,Hee)):ue("v-if",!0),(b(!0),z(Xe,null,Tt(s(f),E=>(b(),z("li",{key:E,class:P([[s(r).is("active",x.currentPage===E),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===E,"aria-label":s(n)("el.pagination.currentPage",{pager:E}),tabindex:s(h)},ze(E),11,Fee))),128)),i.value?(b(),z("li",{key:2,class:P(s(m)),tabindex:s(h),"aria-label":s(n)("el.pagination.nextPages",{pager:x.pagerCount-2}),onMouseenter:M[4]||(M[4]=E=>_()),onMouseleave:M[5]||(M[5]=E=>u.value=!1),onFocus:M[6]||(M[6]=E=>g()),onBlur:M[7]||(M[7]=E=>p.value=!1)},[(u.value||p.value)&&!x.disabled?(b(),de(s(ra),{key:0})):(b(),de(s(u0),{key:1}))],42,Dee)):ue("v-if",!0),x.pageCount>1?(b(),z("li",{key:3,class:P([[s(r).is("active",x.currentPage===x.pageCount),s(r).is("disabled",x.disabled)],"number"]),"aria-current":x.currentPage===x.pageCount,"aria-label":s(n)("el.pagination.currentPage",{pager:x.pageCount}),tabindex:s(h)},ze(x.pageCount),11,jee)):ue("v-if",!0)],42,Ree))}});var Wee=Fe(Kee,[["__file","pager.vue"]]);const tr=e=>typeof e!="number",Uee=He({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ct(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:pe(Array),default:()=>ro([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:qt,default:()=>Nl},nextText:{type:String,default:""},nextIcon:{type:qt,default:()=>Ko},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),qee={"update:current-page":e=>ct(e),"update:page-size":e=>ct(e),"size-change":e=>ct(e),change:(e,t)=>ct(e)&&ct(t),"current-change":e=>ct(e),"prev-click":e=>ct(e),"next-click":e=>ct(e)},Pw="ElPagination";var Yee=B({name:Pw,props:Uee,emits:qee,setup(e,{emit:t,slots:o}){const{t:r}=Nt(),l=Ie("pagination"),n=_t().vnode.props||{},a="onUpdate:currentPage"in n||"onUpdate:current-page"in n||"onCurrentChange"in n,i="onUpdate:pageSize"in n||"onUpdate:page-size"in n||"onSizeChange"in n,c=T(()=>{if(tr(e.total)&&tr(e.pageCount)||!tr(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(tr(e.pageCount)){if(!tr(e.total)&&!tr(e.pageSize)&&!i)return!1}else if(!i)return!1}return!0}),u=V(tr(e.defaultPageSize)?10:e.defaultPageSize),d=V(tr(e.defaultCurrentPage)?1:e.defaultCurrentPage),p=T({get(){return tr(e.pageSize)?u.value:e.pageSize},set(w){tr(e.pageSize)&&(u.value=w),i&&(t("update:page-size",w),t("size-change",w))}}),f=T(()=>{let w=0;return tr(e.pageCount)?tr(e.total)||(w=Math.max(1,Math.ceil(e.total/p.value))):w=e.pageCount,w}),v=T({get(){return tr(e.currentPage)?d.value:e.currentPage},set(w){let x=w;w<1?x=1:w>f.value&&(x=f.value),tr(e.currentPage)&&(d.value=x),a&&(t("update:current-page",x),t("current-change",x))}});Te(f,w=>{v.value>w&&(v.value=w)}),Te([v,p],w=>{t("change",...w)},{flush:"post"});function m(w){v.value=w}function h(w){p.value=w;const x=f.value;v.value>x&&(v.value=x)}function _(){e.disabled||(v.value-=1,t("prev-click",v.value))}function g(){e.disabled||(v.value+=1,t("next-click",v.value))}function y(w,x){w&&(w.props||(w.props={}),w.props.class=[w.props.class,x].join(" "))}return zt(Mw,{pageCount:f,disabled:T(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:h}),()=>{var w,x;if(!c.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const M=[],E=[],I=rt("div",{class:l.e("rightwrapper")},E),O={prev:rt(tee,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:_}),jumper:rt(Oee,{size:e.small?"small":"default"}),pager:rt(Wee,{currentPage:v.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:rt(aee,{disabled:e.disabled,currentPage:v.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:g}),sizes:rt(Tee,{pageSize:p.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(x=(w=o==null?void 0:o.default)==null?void 0:w.call(o))!=null?x:null,total:rt(Nee,{total:tr(e.total)?0:e.total})},F=e.layout.split(",").map(R=>R.trim());let K=!1;return F.forEach(R=>{if(R==="->"){K=!0;return}K?E.push(O[R]):M.push(O[R])}),y(M[0],l.is("first")),y(M[M.length-1],l.is("last")),K&&E.length>0&&(y(E[0],l.is("first")),y(E[E.length-1],l.is("last")),M.push(I)),rt("div",{class:[l.b(),l.is("background",e.background),{[l.m("small")]:e.small}]},M)}}});const Gee=xt(Yee),Xee=He({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:eh,default:"primary"},cancelButtonType:{type:String,values:eh,default:"text"},icon:{type:qt,default:()=>S3},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Lo.teleported,persistent:Lo.persistent,width:{type:[String,Number],default:150}}),Zee=B({...B({name:"ElPopconfirm"}),props:Xee,emits:{confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Ie("popconfirm"),n=V(),a=()=>{var f,v;(v=(f=n.value)==null?void 0:f.onClose)==null||v.call(f)},i=T(()=>({width:bo(o.width)})),c=f=>{t("confirm",f),a()},u=f=>{t("cancel",f),a()},d=T(()=>o.confirmButtonText||r("el.popconfirm.confirmButtonText")),p=T(()=>o.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(f,v)=>(b(),de(s(er),Et({ref_key:"tooltipRef",ref:n,trigger:"click",effect:"light"},f.$attrs,{"popper-class":`${s(l).namespace.value}-popover`,"popper-style":s(i),teleported:f.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":f.hideAfter,persistent:f.persistent}),{content:ne(()=>[$("div",{class:P(s(l).b())},[$("div",{class:P(s(l).e("main"))},[!f.hideIcon&&f.icon?(b(),de(s(Je),{key:0,class:P(s(l).e("icon")),style:Qe({color:f.iconColor})},{default:ne(()=>[(b(),de(St(f.icon)))]),_:1},8,["class","style"])):ue("v-if",!0),$t(" "+ze(f.title),1)],2),$("div",{class:P(s(l).e("action"))},[oe(s(Vo),{size:"small",type:f.cancelButtonType==="text"?"":f.cancelButtonType,text:f.cancelButtonType==="text",onClick:u},{default:ne(()=>[$t(ze(s(p)),1)]),_:1},8,["type","text"]),oe(s(Vo),{size:"small",type:f.confirmButtonType==="text"?"":f.confirmButtonType,text:f.confirmButtonType==="text",onClick:c},{default:ne(()=>[$t(ze(s(d)),1)]),_:1},8,["type","text"])],2)],2)]),default:ne(()=>[f.$slots.reference?be(f.$slots,"reference",{key:0}):ue("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Jee=Fe(Zee,[["__file","popconfirm.vue"]]);const Qee=xt(Jee),ete=He({trigger:Ds.trigger,placement:yd.placement,disabled:Ds.disabled,visible:Lo.visible,transition:Lo.transition,popperOptions:yd.popperOptions,tabindex:yd.tabindex,content:Lo.content,popperStyle:Lo.popperStyle,popperClass:Lo.popperClass,enterable:{...Lo.enterable,default:!0},effect:{...Lo.effect,default:"light"},teleported:Lo.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),tte={"update:visible":e=>Co(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},ote="onUpdate:visible",rte=B({...B({name:"ElPopover"}),props:ete,emits:tte,setup(e,{expose:t,emit:o}){const r=e,l=T(()=>r[ote]),n=Ie("popover"),a=V(),i=T(()=>{var _;return(_=s(a))==null?void 0:_.popperRef}),c=T(()=>[{width:bo(r.width)},r.popperStyle]),u=T(()=>[n.b(),r.popperClass,{[n.m("plain")]:!!r.content}]),d=T(()=>r.transition===`${n.namespace.value}-fade-in-linear`),p=()=>{var _;(_=a.value)==null||_.hide()},f=()=>{o("before-enter")},v=()=>{o("before-leave")},m=()=>{o("after-enter")},h=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:i,hide:p}),(_,g)=>(b(),de(s(er),Et({ref_key:"tooltipRef",ref:a},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":s(u),"popper-style":s(c),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":s(d),"onUpdate:visible":s(l),onBeforeShow:f,onBeforeHide:v,onShow:m,onHide:h}),{content:ne(()=>[_.title?(b(),z("div",{key:0,class:P(s(n).e("title")),role:"title"},ze(_.title),3)):ue("v-if",!0),be(_.$slots,"default",{},()=>[$t(ze(_.content),1)])]),default:ne(()=>[_.$slots.reference?be(_.$slots,"reference",{key:0}):ue("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var lte=Fe(rte,[["__file","popover.vue"]]);const Bw=(e,t)=>{const o=t.arg||t.value,r=o==null?void 0:o.popperRef;r&&(r.triggerRef=e)};var nte={mounted(e,t){Bw(e,t)},updated(e,t){Bw(e,t)}};const Nw=WH(nte,"popover"),ate=xt(lte,{directive:Nw}),ite=He({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:pe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:pe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:pe(Function),default:e=>`${e}%`}}),ste=["aria-valuenow"],cte={viewBox:"0 0 100 100"},ute=["d","stroke","stroke-linecap","stroke-width"],dte=["d","stroke","opacity","stroke-linecap","stroke-width"],pte={key:0},fte=B({...B({name:"ElProgress"}),props:ite,setup(e){const t=e,o={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ie("progress"),l=T(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:y(t.percentage)})),n=T(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=T(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(n.value)/2}`,10):0),i=T(()=>{const w=a.value,x=t.type==="dashboard";return` M 50 50 m 0 ${x?"":"-"}${w} a ${w} ${w} 0 1 1 0 ${x?"-":""}${w*2} a ${w} ${w} 0 1 1 0 ${x?"":"-"}${w*2} - `}),c=$(()=>2*Math.PI*a.value),u=$(()=>t.type==="dashboard"?.75:1),p=$(()=>`${-1*c.value*(1-u.value)/2}px`),d=$(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:p.value})),f=$(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:p.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=$(()=>{let w;return t.color?w=y(t.percentage):w=o[t.status]||o.default,w}),m=$(()=>t.status==="warning"?Es:t.type==="line"?t.status==="success"?Tu:Ll:t.status==="success"?qa:Mr),h=$(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),_=$(()=>t.format(t.percentage));function g(w){const x=100/w.length;return w.map((T,O)=>ft(T)?{color:T,percentage:(O+1)*x}:T).sort((T,O)=>T.percentage-O.percentage)}const y=w=>{var x;const{color:M}=t;if(ut(M))return M(w);if(ft(M))return M;{const T=g(M);for(const O of T)if(O.percentage>w)return O.color;return(x=T[T.length-1])==null?void 0:x.color}};return(w,x)=>(b(),z("div",{class:P([s(r).b(),s(r).m(w.type),s(r).is(w.status),{[s(r).m("without-text")]:!w.showText,[s(r).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(b(),z("div",{key:0,class:P(s(r).b("bar"))},[E("div",{class:P(s(r).be("bar","outer")),style:Qe({height:`${w.strokeWidth}px`})},[E("div",{class:P([s(r).be("bar","inner"),{[s(r).bem("bar","inner","indeterminate")]:w.indeterminate},{[s(r).bem("bar","inner","striped")]:w.striped},{[s(r).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Qe(s(l))},[(w.showText||w.$slots.default)&&w.textInside?(b(),z("div",{key:0,class:P(s(r).be("bar","innerText"))},[be(w.$slots,"default",{percentage:w.percentage},()=>[E("span",null,ze(s(_)),1)])],2)):ue("v-if",!0)],6)],6)],2)):(b(),z("div",{key:1,class:P(s(r).b("circle")),style:Qe({height:`${w.width}px`,width:`${w.width}px`})},[(b(),z("svg",Fee,[E("path",{class:P(s(r).be("circle","track")),d:s(i),stroke:`var(${s(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":s(n),fill:"none",style:Qe(s(d))},null,14,Dee),E("path",{class:P(s(r).be("circle","path")),d:s(i),stroke:s(v),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":s(n),style:Qe(s(f))},null,14,jee)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(b(),z("div",{key:2,class:P(s(r).e("text")),style:Qe({fontSize:`${s(h)}px`})},[be(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(s(m))))]),_:1})):(b(),z("span",Kee,ze(s(_)),1))])],6)):ue("v-if",!0)],10,Hee))}});var Uee=Fe(Wee,[["__file","progress.vue"]]);const $w=xt(Uee),qee=He({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:pe([Array,Object]),default:()=>ro(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:pe([Array,Object]),default:()=>[Ss,Ss,Ss]},voidIcon:{type:Ut,default:()=>x3},disabledVoidIcon:{type:Ut,default:()=>Ss},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:pe(Array),default:()=>ro(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:No,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Yee={[Jt]:e=>ct(e),[kt]:e=>ct(e)},Gee=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Xee=["onMousemove","onClick"],Zee=B({...B({name:"ElRate"}),props:qee,emits:Yee,setup(e,{expose:t,emit:o}){const r=e;function l(J,L){const X=re=>Ct(re),N=Object.keys(L).map(re=>+re).filter(re=>{const ie=L[re];return(X(ie)?ie.excluded:!1)?Jre-ie),W=L[N[0]];return X(W)&&W.value||W}const n=Le(ia,void 0),a=Le(pl,void 0),i=Eo(),c=Oe("rate"),{inputId:u,isLabeledByFormItem:p}=Cn(r,{formItemContext:a}),d=V(r.modelValue),f=V(-1),v=V(!0),m=$(()=>[c.b(),c.m(i.value)]),h=$(()=>r.disabled||(n==null?void 0:n.disabled)),_=$(()=>c.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":x.value})),g=$(()=>{let J="";return r.showScore?J=r.scoreTemplate.replace(/\{\s*value\s*\}/,h.value?`${r.modelValue}`:`${d.value}`):r.showText&&(J=r.texts[Math.ceil(d.value)-1]),J}),y=$(()=>r.modelValue*100-Math.floor(r.modelValue)*100),w=$(()=>Ye(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),x=$(()=>{const J=l(d.value,w.value);return Ct(J)?"":J}),M=$(()=>{let J="";return h.value?J=`${y.value}%`:r.allowHalf&&(J="50%"),{color:x.value,width:J}}),T=$(()=>{let J=Ye(r.icons)?[...r.icons]:{...r.icons};return J=xl(J),Ye(J)?{[r.lowThreshold]:J[0],[r.highThreshold]:{value:J[1],excluded:!0},[r.max]:J[2]}:J}),O=$(()=>l(r.modelValue,T.value)),I=$(()=>h.value?ft(r.disabledVoidIcon)?r.disabledVoidIcon:xl(r.disabledVoidIcon):ft(r.voidIcon)?r.voidIcon:xl(r.voidIcon)),F=$(()=>l(d.value,T.value));function K(J){const L=h.value&&y.value>0&&J-1r.modelValue,X=r.allowHalf&&v.value&&J-.5<=d.value&&J>d.value;return L||X}function R(J){r.clearable&&J===r.modelValue&&(J=0),o(kt,J),r.modelValue!==J&&o("change",J)}function D(J){h.value||(r.allowHalf&&v.value?R(d.value):R(J))}function j(J){if(h.value)return;let L=d.value;const X=J.code;return X===tt.up||X===tt.right?(r.allowHalf?L+=.5:L+=1,J.stopPropagation(),J.preventDefault()):(X===tt.left||X===tt.down)&&(r.allowHalf?L-=.5:L-=1,J.stopPropagation(),J.preventDefault()),L=L<0?0:L,L=L>r.max?r.max:L,o(kt,L),o("change",L),L}function Z(J,L){if(!h.value){if(r.allowHalf&&L){let X=L.target;Dr(X,c.e("item"))&&(X=X.querySelector(`.${c.e("icon")}`)),(X.clientWidth===0||Dr(X,c.e("decimal")))&&(X=X.parentNode),v.value=L.offsetX*2<=X.clientWidth,d.value=v.value?J-.5:J}else d.value=J;f.value=J}}function Q(){h.value||(r.allowHalf&&(v.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,f.value=-1)}return Te(()=>r.modelValue,J=>{d.value=J,v.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||o(kt,0),t({setCurrentValue:Z,resetCurrentValue:Q}),(J,L)=>{var X;return b(),z("div",{id:s(u),class:P([s(m),s(c).is("disabled",s(h))]),role:"slider","aria-label":s(p)?void 0:J.label||"rating","aria-labelledby":s(p)?(X=s(a))==null?void 0:X.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":s(g)||void 0,"aria-valuemin":"0","aria-valuemax":J.max,tabindex:"0",style:Qe(s(_)),onKeydown:j},[(b(!0),z(Ge,null,Tt(J.max,(N,W)=>(b(),z("span",{key:W,class:P(s(c).e("item")),onMousemove:re=>Z(N,re),onMouseleave:Q,onClick:re=>D(N)},[oe(s(Je),{class:P([s(c).e("icon"),{hover:f.value===N},s(c).is("active",N<=d.value)])},{default:ne(()=>[K(N)?ue("v-if",!0):(b(),z(Ge,{key:0},[ht((b(),de(St(s(F)),null,null,512)),[[Pt,N<=d.value]]),ht((b(),de(St(s(I)),null,null,512)),[[Pt,!(N<=d.value)]])],64)),K(N)?(b(),z(Ge,{key:1},[(b(),de(St(s(I)),{class:P([s(c).em("decimal","box")])},null,8,["class"])),oe(s(Je),{style:Qe(s(M)),class:P([s(c).e("icon"),s(c).e("decimal")])},{default:ne(()=>[(b(),de(St(s(O))))]),_:1},8,["style","class"])],64)):ue("v-if",!0)]),_:2},1032,["class"])],42,Xee))),128)),J.showText||J.showScore?(b(),z("span",{key:0,class:P(s(c).e("text")),style:Qe({color:J.textColor})},ze(s(g)),7)):ue("v-if",!0)],46,Gee)}}});var Jee=Fe(Zee,[["__file","rate.vue"]]);const Qee=xt(Jee),pi={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Tw={[pi.success]:i3,[pi.warning]:Es,[pi.error]:zu,[pi.info]:Mu},ete=He({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),tte=B({...B({name:"ElResult"}),props:ete,setup(e){const t=e,o=Oe("result"),r=$(()=>{const l=t.icon,n=l&&pi[l]?pi[l]:"icon-info",a=Tw[n]||Tw["icon-info"];return{class:n,component:a}});return(l,n)=>(b(),z("div",{class:P(s(o).b())},[E("div",{class:P(s(o).e("icon"))},[be(l.$slots,"icon",{},()=>[s(r).component?(b(),de(St(s(r).component),{key:0,class:P(s(r).class)},null,8,["class"])):ue("v-if",!0)])],2),l.title||l.$slots.title?(b(),z("div",{key:0,class:P(s(o).e("title"))},[be(l.$slots,"title",{},()=>[E("p",null,ze(l.title),1)])],2)):ue("v-if",!0),l.subTitle||l.$slots["sub-title"]?(b(),z("div",{key:1,class:P(s(o).e("subtitle"))},[be(l.$slots,"sub-title",{},()=>[E("p",null,ze(l.subTitle),1)])],2)):ue("v-if",!0),l.$slots.extra?(b(),z("div",{key:2,class:P(s(o).e("extra"))},[be(l.$slots,"extra")],2)):ue("v-if",!0)],2))}});var ote=Fe(tte,[["__file","result.vue"]]);const rte=xt(ote);var zw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function lte(e,t){return!!(e===t||zw(e)&&zw(t))}function nte(e,t){if(e.length!==t.length)return!1;for(var o=0;o{const t=_t().proxy.$props;return $(()=>{const o=(r,l,n)=>({});return t.perfMode?_u(o):ate(o)})},Rh=50,xd="itemRendered",kd="scroll",fi="forward",Cd="backward",Lr="auto",Sd="smart",Gs="start",vl="center",Xs="end",hi="horizontal",Vh="vertical",ite="ltr",vi="rtl",Zs="negative",Hh="positive-ascending",Fh="positive-descending",ste={[hi]:"left",[Vh]:"top"},cte=20,ute={[hi]:"deltaX",[Vh]:"deltaY"},dte=({atEndEdge:e,atStartEdge:t,layout:o},r)=>{let l,n=0;const a=c=>c<0&&t.value||c>0&&e.value;return{hasReachedEdge:a,onWheel:c=>{Ou(l);const u=c[ute[o.value]];a(n)&&a(n+u)||(n+=u,L1()||c.preventDefault(),l=Ya(()=>{r(n),n=0}))}}},Dh=jr({type:pe([Number,Function]),required:!0}),jh=jr({type:Number}),Kh=jr({type:Number,default:2}),pte=jr({type:String,values:["ltr","rtl"],default:"ltr"}),Wh=jr({type:Number,default:0}),Ed=jr({type:Number,required:!0}),Aw=jr({type:String,values:["horizontal","vertical"],default:Vh}),Iw=He({className:{type:String,default:""},containerElement:{type:pe([String,Object]),default:"div"},data:{type:pe(Array),default:()=>ro([])},direction:pte,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:pe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),Ow=He({cache:Kh,estimatedItemSize:jh,layout:Aw,initScrollOffset:Wh,total:Ed,itemSize:Dh,...Iw}),Uh={type:Number,default:6},Pw={type:Number,default:0},Bw={type:Number,default:2},va=He({columnCache:Kh,columnWidth:Dh,estimatedColumnWidth:jh,estimatedRowHeight:jh,initScrollLeft:Wh,initScrollTop:Wh,itemKey:{type:pe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Kh,rowHeight:Dh,totalColumn:Ed,totalRow:Ed,hScrollbarSize:Uh,vScrollbarSize:Uh,scrollbarStartGap:Pw,scrollbarEndGap:Bw,role:String,...Iw}),Nw=He({alwaysOn:Boolean,class:String,layout:Aw,total:Ed,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Uh,startGap:Pw,endGap:Bw,visible:Boolean}),ma=(e,t)=>ee===ite||e===vi||e===hi,Lw=e=>e===vi;let mi=null;function $d(e=!1){if(mi===null||e){const t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";const r=document.createElement("div"),l=r.style;return l.width="100px",l.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?mi=Fh:(t.scrollLeft=1,t.scrollLeft===0?mi=Zs:mi=Hh),document.body.removeChild(t),mi}return mi}function fte({move:e,size:t,bar:o},r){const l={},n=`translate${o.axis}(${e}px)`;return l[o.size]=t,l.transform=n,l.msTransform=n,l.webkitTransform=n,r==="horizontal"?l.height="100%":l.width="100%",l}const qh=B({name:"ElVirtualScrollBar",props:Nw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const o=$(()=>e.startGap+e.endGap),r=Oe("virtual-scrollbar"),l=Oe("scrollbar"),n=V(),a=V();let i=null,c=null;const u=Ft({isDragging:!1,traveled:0}),p=$(()=>q_[e.layout]),d=$(()=>e.clientSize-s(o)),f=$(()=>({position:"absolute",width:`${hi===e.layout?d.value:e.scrollbarSize}px`,height:`${hi===e.layout?e.scrollbarSize:d.value}px`,[ste[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=$(()=>{const T=e.ratio,O=e.clientSize;if(T>=100)return Number.POSITIVE_INFINITY;if(T>=50)return T*O/100;const I=O/3;return Math.floor(Math.min(Math.max(T*O,cte),I))}),m=$(()=>{if(!Number.isFinite(v.value))return{display:"none"};const T=`${v.value}px`;return fte({bar:p.value,size:T,move:u.traveled},e.layout)}),h=$(()=>Math.floor(e.clientSize-v.value-s(o))),_=()=>{window.addEventListener("mousemove",x),window.addEventListener("mouseup",w);const T=s(a);T&&(c=document.onselectstart,document.onselectstart=()=>!1,T.addEventListener("touchmove",x),T.addEventListener("touchend",w))},g=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",w),document.onselectstart=c,c=null;const T=s(a);T&&(T.removeEventListener("touchmove",x),T.removeEventListener("touchend",w))},y=T=>{T.stopImmediatePropagation(),!(T.ctrlKey||[1,2].includes(T.button))&&(u.isDragging=!0,u[p.value.axis]=T.currentTarget[p.value.offset]-(T[p.value.client]-T.currentTarget.getBoundingClientRect()[p.value.direction]),t("start-move"),_())},w=()=>{u.isDragging=!1,u[p.value.axis]=0,t("stop-move"),g()},x=T=>{const{isDragging:O}=u;if(!O||!a.value||!n.value)return;const I=u[p.value.axis];if(!I)return;Ou(i);const F=(n.value.getBoundingClientRect()[p.value.direction]-T[p.value.client])*-1,K=a.value[p.value.offset]-I,R=F-K;i=Ya(()=>{u.traveled=Math.max(e.startGap,Math.min(R,h.value)),t("scroll",R,h.value)})},M=T=>{const O=Math.abs(T.target.getBoundingClientRect()[p.value.direction]-T[p.value.client]),I=a.value[p.value.offset]/2,F=O-I;u.traveled=Math.max(0,Math.min(F,h.value)),t("scroll",F,h.value)};return Te(()=>e.scrollFrom,T=>{u.isDragging||(u.traveled=Math.ceil(T*h.value))}),Zt(()=>{g()}),()=>rt("div",{role:"presentation",ref:n,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:it(M,["stop","prevent"]),onTouchstartPrevent:y},rt("div",{ref:a,class:l.e("thumb"),style:m.value,onMousedown:y},[]))}}),Rw=({name:e,getOffset:t,getItemSize:o,getItemOffset:r,getEstimatedTotalSize:l,getStartIndexForOffset:n,getStopIndexForStartIndex:a,initCache:i,clearCache:c,validateProps:u})=>B({name:e??"ElVirtualList",props:Ow,emits:[xd,kd],setup(p,{emit:d,expose:f}){u(p);const v=_t(),m=Oe("vl"),h=V(i(p,v)),_=Mw(),g=V(),y=V(),w=V(),x=V({isScrolling:!1,scrollDir:"forward",scrollOffset:ct(p.initScrollOffset)?p.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:p.scrollbarAlwaysOn}),M=$(()=>{const{total:se,cache:ve}=p,{isScrolling:le,scrollDir:ge,scrollOffset:_e}=s(x);if(se===0)return[0,0,0,0];const me=n(p,_e,s(h)),Be=a(p,me,_e,s(h)),ye=!le||ge===Cd?Math.max(1,ve):1,Me=!le||ge===fi?Math.max(1,ve):1;return[Math.max(0,me-ye),Math.max(0,Math.min(se-1,Be+Me)),me,Be]}),T=$(()=>l(p,s(h))),O=$(()=>Js(p.layout)),I=$(()=>[{position:"relative",[`overflow-${O.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:ct(p.height)?`${p.height}px`:p.height,width:ct(p.width)?`${p.width}px`:p.width},p.style]),F=$(()=>{const se=s(T),ve=s(O);return{height:ve?"100%":`${se}px`,pointerEvents:s(x).isScrolling?"none":void 0,width:ve?`${se}px`:"100%"}}),K=$(()=>O.value?p.width:p.height),{onWheel:R}=dte({atStartEdge:$(()=>x.value.scrollOffset<=0),atEndEdge:$(()=>x.value.scrollOffset>=T.value),layout:$(()=>p.layout)},se=>{var ve,le;(le=(ve=w.value).onMouseUp)==null||le.call(ve),L(Math.min(x.value.scrollOffset+se,T.value-K.value))}),D=()=>{const{total:se}=p;if(se>0){const[_e,me,Be,ye]=s(M);d(xd,_e,me,Be,ye)}const{scrollDir:ve,scrollOffset:le,updateRequested:ge}=s(x);d(kd,ve,le,ge)},j=se=>{const{clientHeight:ve,scrollHeight:le,scrollTop:ge}=se.currentTarget,_e=s(x);if(_e.scrollOffset===ge)return;const me=Math.max(0,Math.min(ge,le-ve));x.value={..._e,isScrolling:!0,scrollDir:ma(_e.scrollOffset,me),scrollOffset:me,updateRequested:!1},et(W)},Z=se=>{const{clientWidth:ve,scrollLeft:le,scrollWidth:ge}=se.currentTarget,_e=s(x);if(_e.scrollOffset===le)return;const{direction:me}=p;let Be=le;if(me===vi)switch($d()){case Zs:{Be=-le;break}case Fh:{Be=ge-ve-le;break}}Be=Math.max(0,Math.min(Be,ge-ve)),x.value={..._e,isScrolling:!0,scrollDir:ma(_e.scrollOffset,Be),scrollOffset:Be,updateRequested:!1},et(W)},Q=se=>{s(O)?Z(se):j(se),D()},J=(se,ve)=>{const le=(T.value-K.value)/ve*se;L(Math.min(T.value-K.value,le))},L=se=>{se=Math.max(se,0),se!==s(x).scrollOffset&&(x.value={...s(x),scrollOffset:se,scrollDir:ma(s(x).scrollOffset,se),updateRequested:!0},et(W))},X=(se,ve=Lr)=>{const{scrollOffset:le}=s(x);se=Math.max(0,Math.min(se,p.total-1)),L(t(p,se,ve,le,s(h)))},N=se=>{const{direction:ve,itemSize:le,layout:ge}=p,_e=_.value(c&&le,c&&ge,c&&ve);let me;if(Ot(_e,String(se)))me=_e[se];else{const Be=r(p,se,s(h)),ye=o(p,se,s(h)),Me=s(O),te=ve===vi,ce=Me?Be:0;_e[se]=me={position:"absolute",left:te?void 0:`${ce}px`,right:te?`${ce}px`:void 0,top:Me?0:`${Be}px`,height:Me?"100%":`${ye}px`,width:Me?`${ye}px`:"100%"}}return me},W=()=>{x.value.isScrolling=!1,et(()=>{_.value(-1,null,null)})},re=()=>{const se=g.value;se&&(se.scrollTop=0)};vt(()=>{if(!Bt)return;const{initScrollOffset:se}=p,ve=s(g);ct(se)&&ve&&(s(O)?ve.scrollLeft=se:ve.scrollTop=se),D()}),$l(()=>{const{direction:se,layout:ve}=p,{scrollOffset:le,updateRequested:ge}=s(x),_e=s(g);if(ge&&_e)if(ve===hi)if(se===vi)switch($d()){case Zs:{_e.scrollLeft=-le;break}case Hh:{_e.scrollLeft=le;break}default:{const{clientWidth:me,scrollWidth:Be}=_e;_e.scrollLeft=Be-me-le;break}}else _e.scrollLeft=le;else _e.scrollTop=le});const ie={ns:m,clientSize:K,estimatedTotalSize:T,windowStyle:I,windowRef:g,innerRef:y,innerStyle:F,itemsToRender:M,scrollbarRef:w,states:x,getItemStyle:N,onScroll:Q,onScrollbarScroll:J,onWheel:R,scrollTo:L,scrollToItem:X,resetScrollTop:re};return f({windowRef:g,innerRef:y,getItemStyleCache:_,scrollTo:L,scrollToItem:X,resetScrollTop:re,states:x}),ie},render(p){var d;const{$slots:f,className:v,clientSize:m,containerElement:h,data:_,getItemStyle:g,innerElement:y,itemsToRender:w,innerStyle:x,layout:M,total:T,onScroll:O,onScrollbarScroll:I,onWheel:F,states:K,useIsScrolling:R,windowStyle:D,ns:j}=p,[Z,Q]=w,J=St(h),L=St(y),X=[];if(T>0)for(let ie=Z;ie<=Q;ie++)X.push((d=f.default)==null?void 0:d.call(f,{data:_,key:ie,index:ie,isScrolling:R?K.isScrolling:void 0,style:g(ie)}));const N=[rt(L,{style:x,ref:"innerRef"},ft(L)?X:{default:()=>X})],W=rt(qh,{ref:"scrollbarRef",clientSize:m,layout:M,onScroll:I,ratio:m*100/this.estimatedTotalSize,scrollFrom:K.scrollOffset/(this.estimatedTotalSize-m),total:T}),re=rt(J,{class:[j.e("window"),v],style:D,onScroll:O,onWheel:F,ref:"windowRef",key:0},ft(J)?[N]:{default:()=>[N]});return rt("div",{key:0,class:[j.e("wrapper"),K.scrollbarAlwaysOn?"always-on":""]},[re,W])}}),Vw=Rw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:o,layout:r,width:l},n,a,i)=>{const c=Js(r)?l:e,u=Math.max(0,t*o-c),p=Math.min(u,n*o),d=Math.max(0,(n+1)*o-c);switch(a===Sd&&(i>=d-c&&i<=p+c?a=Lr:a=vl),a){case Gs:return p;case Xs:return d;case vl:{const f=Math.round(d+(p-d)/2);return fu+Math.floor(c/2)?u:f}case Lr:default:return i>=d&&i<=p?i:iMath.max(0,Math.min(e-1,Math.floor(o/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:o,layout:r,width:l},n,a)=>{const i=n*o,c=Js(r)?l:e,u=Math.ceil((c+a-i)/o);return Math.max(0,Math.min(t-1,n+u-1))},initCache(){},clearCache:!0,validateProps(){}}),gi=(e,t,o)=>{const{itemSize:r}=e,{items:l,lastVisitedIndex:n}=o;if(t>n){let a=0;if(n>=0){const i=l[n];a=i.offset+i.size}for(let i=n+1;i<=t;i++){const c=r(i);l[i]={offset:a,size:c},a+=c}o.lastVisitedIndex=t}return l[t]},hte=(e,t,o)=>{const{items:r,lastVisitedIndex:l}=t;return(l>0?r[l].offset:0)>=o?Hw(e,t,0,l,o):vte(e,t,Math.max(0,l),o)},Hw=(e,t,o,r,l)=>{for(;o<=r;){const n=o+Math.floor((r-o)/2),a=gi(e,n,t).offset;if(a===l)return n;al&&(r=n-1)}return Math.max(0,o-1)},vte=(e,t,o,r)=>{const{total:l}=e;let n=1;for(;o{let l=0;if(r>=e&&(r=e-1),r>=0){const i=t[r];l=i.offset+i.size}const a=(e-r-1)*o;return l+a},mte=Rw({name:"ElDynamicSizeList",getItemOffset:(e,t,o)=>gi(e,t,o).offset,getItemSize:(e,t,{items:o})=>o[t].size,getEstimatedTotalSize:Fw,getOffset:(e,t,o,r,l)=>{const{height:n,layout:a,width:i}=e,c=Js(a)?i:n,u=gi(e,t,l),p=Fw(e,l),d=Math.max(0,Math.min(p-c,u.offset)),f=Math.max(0,u.offset-c+u.size);switch(o===Sd&&(r>=f-c&&r<=d+c?o=Lr:o=vl),o){case Gs:return d;case Xs:return f;case vl:return Math.round(f+(d-f)/2);case Lr:default:return r>=f&&r<=d?r:rhte(e,o,t),getStopIndexForStartIndex:(e,t,o,r)=>{const{height:l,total:n,layout:a,width:i}=e,c=Js(a)?i:l,u=gi(e,t,r),p=o+c;let d=u.offset+u.size,f=t;for(;f{var n,a;o.lastVisitedIndex=Math.min(o.lastVisitedIndex,r-1),(n=t.exposed)==null||n.getItemStyleCache(-1),l&&((a=t.proxy)==null||a.$forceUpdate())},o},clearCache:!1,validateProps:({itemSize:e})=>{}}),gte=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:o,atYStartEdge:r},l)=>{let n=null,a=0,i=0;const c=(p,d)=>{const f=p<=0&&t.value||p>=0&&e.value,v=d<=0&&r.value||d>=0&&o.value;return f&&v};return{hasReachedEdge:c,onWheel:p=>{Ou(n);let d=p.deltaX,f=p.deltaY;Math.abs(d)>Math.abs(f)?f=0:d=0,p.shiftKey&&f!==0&&(d=f,f=0),!(c(a,i)&&c(a+d,i+f))&&(a+=d,i+=f,p.preventDefault(),n=Ya(()=>{l(a,i),a=0,i=0}))}}},Dw=({name:e,clearCache:t,getColumnPosition:o,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:n,getEstimatedTotalWidth:a,getColumnOffset:i,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:p,getRowStopIndexForStartIndex:d,initCache:f,injectToInstance:v,validateProps:m})=>B({name:e??"ElVirtualList",props:va,emits:[xd,kd],setup(h,{emit:_,expose:g,slots:y}){const w=Oe("vl");m(h);const x=_t(),M=V(f(h,x));v==null||v(x,M);const T=V(),O=V(),I=V(),F=V(null),K=V({isScrolling:!1,scrollLeft:ct(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:ct(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:fi,yAxisScrollDir:fi}),R=Mw(),D=$(()=>Number.parseInt(`${h.height}`,10)),j=$(()=>Number.parseInt(`${h.width}`,10)),Z=$(()=>{const{totalColumn:xe,totalRow:Ne,columnCache:Se}=h,{isScrolling:ke,xAxisScrollDir:$e,scrollLeft:Pe}=s(K);if(xe===0||Ne===0)return[0,0,0,0];const qe=r(h,Pe,s(M)),Ke=l(h,qe,Pe,s(M)),Ee=!ke||$e===Cd?Math.max(1,Se):1,We=!ke||$e===fi?Math.max(1,Se):1;return[Math.max(0,qe-Ee),Math.max(0,Math.min(xe-1,Ke+We)),qe,Ke]}),Q=$(()=>{const{totalColumn:xe,totalRow:Ne,rowCache:Se}=h,{isScrolling:ke,yAxisScrollDir:$e,scrollTop:Pe}=s(K);if(xe===0||Ne===0)return[0,0,0,0];const qe=p(h,Pe,s(M)),Ke=d(h,qe,Pe,s(M)),Ee=!ke||$e===Cd?Math.max(1,Se):1,We=!ke||$e===fi?Math.max(1,Se):1;return[Math.max(0,qe-Ee),Math.max(0,Math.min(Ne-1,Ke+We)),qe,Ke]}),J=$(()=>n(h,s(M))),L=$(()=>a(h,s(M))),X=$(()=>{var xe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:ct(h.height)?`${h.height}px`:h.height,width:ct(h.width)?`${h.width}px`:h.width},(xe=h.style)!=null?xe:{}]}),N=$(()=>{const xe=`${s(L)}px`;return{height:`${s(J)}px`,pointerEvents:s(K).isScrolling?"none":void 0,width:xe}}),W=()=>{const{totalColumn:xe,totalRow:Ne}=h;if(xe>0&&Ne>0){const[Ke,Ee,We,nt]=s(Z),[dt,gt,Y,C]=s(Q);_(xd,{columnCacheStart:Ke,columnCacheEnd:Ee,rowCacheStart:dt,rowCacheEnd:gt,columnVisibleStart:We,columnVisibleEnd:nt,rowVisibleStart:Y,rowVisibleEnd:C})}const{scrollLeft:Se,scrollTop:ke,updateRequested:$e,xAxisScrollDir:Pe,yAxisScrollDir:qe}=s(K);_(kd,{xAxisScrollDir:Pe,scrollLeft:Se,yAxisScrollDir:qe,scrollTop:ke,updateRequested:$e})},re=xe=>{const{clientHeight:Ne,clientWidth:Se,scrollHeight:ke,scrollLeft:$e,scrollTop:Pe,scrollWidth:qe}=xe.currentTarget,Ke=s(K);if(Ke.scrollTop===Pe&&Ke.scrollLeft===$e)return;let Ee=$e;if(Lw(h.direction))switch($d()){case Zs:Ee=-$e;break;case Fh:Ee=qe-Se-$e;break}K.value={...Ke,isScrolling:!0,scrollLeft:Ee,scrollTop:Math.max(0,Math.min(Pe,ke-Ne)),updateRequested:!0,xAxisScrollDir:ma(Ke.scrollLeft,Ee),yAxisScrollDir:ma(Ke.scrollTop,Pe)},et(()=>me()),Be(),W()},ie=(xe,Ne)=>{const Se=s(D),ke=(J.value-Se)/Ne*xe;le({scrollTop:Math.min(J.value-Se,ke)})},se=(xe,Ne)=>{const Se=s(j),ke=(L.value-Se)/Ne*xe;le({scrollLeft:Math.min(L.value-Se,ke)})},{onWheel:ve}=gte({atXStartEdge:$(()=>K.value.scrollLeft<=0),atXEndEdge:$(()=>K.value.scrollLeft>=L.value-s(j)),atYStartEdge:$(()=>K.value.scrollTop<=0),atYEndEdge:$(()=>K.value.scrollTop>=J.value-s(D))},(xe,Ne)=>{var Se,ke,$e,Pe;(ke=(Se=O.value)==null?void 0:Se.onMouseUp)==null||ke.call(Se),(Pe=($e=I.value)==null?void 0:$e.onMouseUp)==null||Pe.call($e);const qe=s(j),Ke=s(D);le({scrollLeft:Math.min(K.value.scrollLeft+xe,L.value-qe),scrollTop:Math.min(K.value.scrollTop+Ne,J.value-Ke)})}),le=({scrollLeft:xe=K.value.scrollLeft,scrollTop:Ne=K.value.scrollTop})=>{xe=Math.max(xe,0),Ne=Math.max(Ne,0);const Se=s(K);Ne===Se.scrollTop&&xe===Se.scrollLeft||(K.value={...Se,xAxisScrollDir:ma(Se.scrollLeft,xe),yAxisScrollDir:ma(Se.scrollTop,Ne),scrollLeft:xe,scrollTop:Ne,updateRequested:!0},et(()=>me()),Be(),W())},ge=(xe=0,Ne=0,Se=Lr)=>{const ke=s(K);Ne=Math.max(0,Math.min(Ne,h.totalColumn-1)),xe=Math.max(0,Math.min(xe,h.totalRow-1));const $e=o3(w.namespace.value),Pe=s(M),qe=n(h,Pe),Ke=a(h,Pe);le({scrollLeft:i(h,Ne,Se,ke.scrollLeft,Pe,Ke>h.width?$e:0),scrollTop:c(h,xe,Se,ke.scrollTop,Pe,qe>h.height?$e:0)})},_e=(xe,Ne)=>{const{columnWidth:Se,direction:ke,rowHeight:$e}=h,Pe=R.value(t&&Se,t&&$e,t&&ke),qe=`${xe},${Ne}`;if(Ot(Pe,qe))return Pe[qe];{const[,Ke]=o(h,Ne,s(M)),Ee=s(M),We=Lw(ke),[nt,dt]=u(h,xe,Ee),[gt]=o(h,Ne,Ee);return Pe[qe]={position:"absolute",left:We?void 0:`${Ke}px`,right:We?`${Ke}px`:void 0,top:`${dt}px`,height:`${nt}px`,width:`${gt}px`},Pe[qe]}},me=()=>{K.value.isScrolling=!1,et(()=>{R.value(-1,null,null)})};vt(()=>{if(!Bt)return;const{initScrollLeft:xe,initScrollTop:Ne}=h,Se=s(T);Se&&(ct(xe)&&(Se.scrollLeft=xe),ct(Ne)&&(Se.scrollTop=Ne)),W()});const Be=()=>{const{direction:xe}=h,{scrollLeft:Ne,scrollTop:Se,updateRequested:ke}=s(K),$e=s(T);if(ke&&$e){if(xe===vi)switch($d()){case Zs:{$e.scrollLeft=-Ne;break}case Hh:{$e.scrollLeft=Ne;break}default:{const{clientWidth:Pe,scrollWidth:qe}=$e;$e.scrollLeft=qe-Pe-Ne;break}}else $e.scrollLeft=Math.max(0,Ne);$e.scrollTop=Math.max(0,Se)}},{resetAfterColumnIndex:ye,resetAfterRowIndex:Me,resetAfter:te}=x.proxy;g({windowRef:T,innerRef:F,getItemStyleCache:R,scrollTo:le,scrollToItem:ge,states:K,resetAfterColumnIndex:ye,resetAfterRowIndex:Me,resetAfter:te});const ce=()=>{const{scrollbarAlwaysOn:xe,scrollbarStartGap:Ne,scrollbarEndGap:Se,totalColumn:ke,totalRow:$e}=h,Pe=s(j),qe=s(D),Ke=s(L),Ee=s(J),{scrollLeft:We,scrollTop:nt}=s(K),dt=rt(qh,{ref:O,alwaysOn:xe,startGap:Ne,endGap:Se,class:w.e("horizontal"),clientSize:Pe,layout:"horizontal",onScroll:se,ratio:Pe*100/Ke,scrollFrom:We/(Ke-Pe),total:$e,visible:!0}),gt=rt(qh,{ref:I,alwaysOn:xe,startGap:Ne,endGap:Se,class:w.e("vertical"),clientSize:qe,layout:"vertical",onScroll:ie,ratio:qe*100/Ee,scrollFrom:nt/(Ee-qe),total:ke,visible:!0});return{horizontalScrollbar:dt,verticalScrollbar:gt}},we=()=>{var xe;const[Ne,Se]=s(Z),[ke,$e]=s(Q),{data:Pe,totalColumn:qe,totalRow:Ke,useIsScrolling:Ee,itemKey:We}=h,nt=[];if(Ke>0&&qe>0)for(let dt=ke;dt<=$e;dt++)for(let gt=Ne;gt<=Se;gt++)nt.push((xe=y.default)==null?void 0:xe.call(y,{columnIndex:gt,data:Pe,key:We({columnIndex:gt,data:Pe,rowIndex:dt}),isScrolling:Ee?s(K).isScrolling:void 0,style:_e(dt,gt),rowIndex:dt}));return nt},Ae=()=>{const xe=St(h.innerElement),Ne=we();return[rt(xe,{style:s(N),ref:F},ft(xe)?Ne:{default:()=>Ne})]};return()=>{const xe=St(h.containerElement),{horizontalScrollbar:Ne,verticalScrollbar:Se}=ce(),ke=Ae();return rt("div",{key:0,class:w.e("wrapper"),role:h.role},[rt(xe,{class:h.className,style:s(X),onScroll:re,onWheel:ve,ref:T},ft(xe)?ke:{default:()=>ke}),Ne,Se])}}}),bte=Dw({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:o},r,l,n,a,i)=>{o=Number(o);const c=Math.max(0,e*t-o),u=Math.min(c,r*t),p=Math.max(0,r*t-o+i+t);switch(l==="smart"&&(n>=p-o&&n<=u+o?l=Lr:l=vl),l){case Gs:return u;case Xs:return p;case vl:{const d=Math.round(p+(u-p)/2);return dc+Math.floor(o/2)?c:d}case Lr:default:return n>=p&&n<=u?n:p>u||n{t=Number(t);const c=Math.max(0,o*e-t),u=Math.min(c,r*e),p=Math.max(0,r*e-t+i+e);switch(l===Sd&&(n>=p-t&&n<=u+t?l=Lr:l=vl),l){case Gs:return u;case Xs:return p;case vl:{const d=Math.round(p+(u-p)/2);return dc+Math.floor(t/2)?c:d}case Lr:default:return n>=p&&n<=u?n:p>u||nMath.max(0,Math.min(t-1,Math.floor(o/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:o},r,l)=>{const n=r*e,a=Math.ceil((o+l-n)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:o},r,l)=>{const n=r*e,a=Math.ceil((o+l-n)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Td,min:jw,floor:Kw}=Math,_te={column:"columnWidth",row:"rowHeight"},Yh={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ql=(e,t,o,r)=>{const[l,n,a]=[o[r],e[_te[r]],o[Yh[r]]];if(t>a){let i=0;if(a>=0){const c=l[a];i=c.offset+c.size}for(let c=a+1;c<=t;c++){const u=n(c);l[c]={offset:i,size:u},i+=u}o[Yh[r]]=t}return l[t]},Ww=(e,t,o,r,l,n)=>{for(;o<=r;){const a=o+Kw((r-o)/2),i=ql(e,a,t,n).offset;if(i===l)return a;i{const n=l==="column"?e.totalColumn:e.totalRow;let a=1;for(;o{const[l,n]=[t[r],t[Yh[r]]];return(n>0?l[n].offset:0)>=o?Ww(e,t,0,n,o,r):wte(e,t,Td(0,n),o,r)},qw=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:o,row:r})=>{let l=0;if(o>=e&&(o=e-1),o>=0){const i=r[o];l=i.offset+i.size}const a=(e-o-1)*t;return l+a},Yw=({totalColumn:e},{column:t,estimatedColumnWidth:o,lastVisitedColumnIndex:r})=>{let l=0;if(r>e&&(r=e-1),r>=0){const i=t[r];l=i.offset+i.size}const a=(e-r-1)*o;return l+a},yte={column:Yw,row:qw},Gw=(e,t,o,r,l,n,a)=>{const[i,c]=[n==="row"?e.height:e.width,yte[n]],u=ql(e,t,l,n),p=c(e,l),d=Td(0,jw(p-i,u.offset)),f=Td(0,u.offset-i+a+u.size);switch(o===Sd&&(r>=f-i&&r<=d+i?o=Lr:o=vl),o){case Gs:return d;case Xs:return f;case vl:return Math.round(f+(d-f)/2);case Lr:default:return r>=f&&r<=d?r:f>d||r{const r=ql(e,t,o,"column");return[r.size,r.offset]},getRowPosition:(e,t,o)=>{const r=ql(e,t,o,"row");return[r.size,r.offset]},getColumnOffset:(e,t,o,r,l,n)=>Gw(e,t,o,r,l,"column",n),getRowOffset:(e,t,o,r,l,n)=>Gw(e,t,o,r,l,"row",n),getColumnStartIndexForOffset:(e,t,o)=>Uw(e,o,t,"column"),getColumnStopIndexForStartIndex:(e,t,o,r)=>{const l=ql(e,t,r,"column"),n=o+e.width;let a=l.offset+l.size,i=t;for(;iUw(e,o,t,"row"),getRowStopIndexForStartIndex:(e,t,o,r)=>{const{totalRow:l,height:n}=e,a=ql(e,t,r,"row"),i=o+n;let c=a.size+a.offset,u=t;for(;u{const o=({columnIndex:n,rowIndex:a},i)=>{var c,u;i=ko(i)?!0:i,ct(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),ct(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(c=e.exposed)==null||c.getItemStyleCache.value(-1,null,null),i&&((u=e.proxy)==null||u.$forceUpdate())},r=(n,a)=>{o({columnIndex:n},a)},l=(n,a)=>{o({rowIndex:n},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:l,resetAfter:o})},initCache:({estimatedColumnWidth:e=Rh,estimatedRowHeight:t=Rh})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),kte=B({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Oe("select")}}});function Cte(e,t,o,r,l,n){return e.item.isTitle?(b(),z("div",{key:0,class:P(e.ns.be("group","title")),style:Qe([e.style,{lineHeight:`${e.height}px`}])},ze(e.item.label),7)):(b(),z("div",{key:1,class:P(e.ns.be("group","split")),style:Qe(e.style)},[E("span",{class:P(e.ns.be("group","split-dash")),style:Qe({top:`${e.height/2}px`})},null,6)],6))}var Ste=Fe(kte,[["render",Cte],["__file","group-item.vue"]]);function Ete(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Xw={label:"label",value:"value",disabled:"disabled",options:"options"};function zd(e){const t=$(()=>({...Xw,...e.props}));return{aliasProps:t,getLabel:a=>oo(a,t.value.label),getValue:a=>oo(a,t.value.value),getDisabled:a=>oo(a,t.value.disabled),getOptions:a=>oo(a,t.value.options)}}const $te=He({allowCreate:Boolean,autocomplete:{type:pe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ut,default:Ll},effect:{type:pe(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:{type:pe([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:pe(Array),required:!0},placeholder:{type:String},teleported:Lo.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:pe(Object),default:()=>({})},remote:Boolean,size:No,props:{type:pe(Object),default:()=>Xw},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:pe(String),values:na,default:"bottom-start"}}),Tte=He({data:Array,disabled:Boolean,hovering:Boolean,item:{type:pe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),Gh=Symbol("ElSelectV2Injection"),zte=B({props:Tte,emits:["select","hover"],setup(e,{emit:t}){const o=Le(Gh),r=Oe("select"),{hoverItem:l,selectOptionClick:n}=Ete(e,{emit:t}),{getLabel:a}=zd(o.props);return{ns:r,hoverItem:l,selectOptionClick:n,getLabel:a}}}),Mte=["aria-selected"];function Ate(e,t,o,r,l,n){return b(),z("li",{"aria-selected":e.selected,style:Qe(e.style),class:P([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=it((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,ze(e.getLabel(e.item)),1)])],46,Mte)}var Ite=Fe(zte,[["render",Ate],["__file","option-item.vue"]]),Ote=B({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:o}){const r=Le(Gh),l=Oe("select"),{getLabel:n,getValue:a,getDisabled:i}=zd(r.props),c=V([]),u=V(),p=$(()=>e.data.length);Te(()=>p.value,()=>{var R,D;(D=(R=r.popper.value).updatePopper)==null||D.call(R)});const d=$(()=>ko(r.props.estimatedOptionHeight)),f=$(()=>d.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:R=>c.value[R]}),v=(R=[],D)=>{const{props:{valueKey:j}}=r;return Ct(D)?R&&R.some(Z=>Vt(oo(Z,j))===oo(D,j)):R.includes(D)},m=(R,D)=>{if(Ct(D)){const{valueKey:j}=r.props;return oo(R,j)===oo(D,j)}else return R===D},h=(R,D)=>r.props.multiple?v(R,a(D)):m(R,a(D)),_=(R,D)=>{const{disabled:j,multiple:Z,multipleLimit:Q}=r.props;return j||!D&&(Z?Q>0&&R.length>=Q:!1)},g=R=>e.hoveringIndex===R;o({listRef:u,isSized:d,isItemDisabled:_,isItemHovering:g,isItemSelected:h,scrollToItem:R=>{const D=u.value;D&&D.scrollToItem(R)},resetScrollTop:()=>{const R=u.value;R&&R.resetScrollTop()}});const x=R=>{const{index:D,data:j,style:Z}=R,Q=s(d),{itemSize:J,estimatedSize:L}=s(f),{modelValue:X}=r.props,{onSelect:N,onHover:W}=r,re=j[D];if(re.type==="Group")return oe(Ste,{item:re,style:Z,height:Q?J:L},null);const ie=h(X,re),se=_(X,ie),ve=g(D);return oe(Ite,Et(R,{selected:ie,disabled:i(re)||se,created:!!re.created,hovering:ve,item:re,onSelect:N,onHover:W}),{default:le=>{var ge;return((ge=t.default)==null?void 0:ge.call(t,le))||oe("span",null,[n(re)])}})},{onKeyboardNavigate:M,onKeyboardSelect:T}=r,O=()=>{M("forward")},I=()=>{M("backward")},F=()=>{r.expanded=!1},K=R=>{const{code:D}=R,{tab:j,esc:Z,down:Q,up:J,enter:L}=tt;switch(D!==j&&(R.preventDefault(),R.stopPropagation()),D){case j:case Z:{F();break}case Q:{O();break}case J:{I();break}case L:{T();break}}};return()=>{var R;const{data:D,width:j}=e,{height:Z,multiple:Q,scrollbarAlwaysOn:J}=r.props;if(D.length===0)return oe("div",{class:l.b("dropdown"),style:{width:`${j}px`}},[(R=t.empty)==null?void 0:R.call(t)]);const L=s(d)?Vw:mte;return oe("div",{class:[l.b("dropdown"),l.is("multiple",Q)]},[oe(L,Et({ref:u},s(f),{className:l.be("dropdown","list"),scrollbarAlwaysOn:J,data:D,height:Z,width:j,total:D.length,onKeydown:K}),{default:X=>oe(x,X,null)})])}}});function Pte(e,t){const{aliasProps:o,getLabel:r,getValue:l}=zd(e),n=V(0),a=V(null),i=$(()=>e.allowCreate&&e.filterable);function c(v){const m=h=>l(h)===v;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function u(v){i.value&&(e.multiple&&v.created?n.value++:a.value=v)}function p(v){if(i.value)if(v&&v.length>0&&!c(v)){const m={[o.value.value]:v,[o.value.label]:v,created:!0,[o.value.disabled]:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=n.value;else{const m=a.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function d(v){if(!i.value||!v||!v.created||v.created&&e.reserveKeyword&&t.inputValue===r(v))return;const m=t.createdOptions.findIndex(h=>l(h)===l(v));~m&&(t.createdOptions.splice(m,1),n.value--)}function f(){i.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:p,removeNewOption:d,selectNewOption:u,clearAllNewOption:f}}function Bte(e){const t=V(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:n=>{const a=n.target.value,i=a[a.length-1]||"";t.value=!Iu(i)},handleCompositionEnd:n=>{t.value&&(t.value=!1,ut(e)&&e(n))}}}const Zw="",Jw=11,Nte={larget:51,default:42,small:33},Lte=(e,t)=>{const{t:o}=Nt(),r=Oe("select-v2"),l=Oe("input"),{form:n,formItem:a}=Qo(),{getLabel:i,getValue:c,getDisabled:u,getOptions:p}=zd(e),d=Ft({inputValue:Zw,displayInputValue:Zw,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),f=V(-1),v=V(-1),m=V(null),h=V(null),_=V(null),g=V(null),y=V(null),w=V(null),x=V(null),M=V(!1),T=$(()=>e.disabled||(n==null?void 0:n.disabled)),O=$(()=>{const Re=J.value.length*e.itemHeight;return Re>e.height?e.height:Re}),I=$(()=>!wo(e.modelValue)),F=$(()=>{const Re=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:I.value;return e.clearable&&!T.value&&d.comboBoxHovering&&Re}),K=$(()=>e.remote&&e.filterable?"":Cs),R=$(()=>K.value&&r.is("reverse",M.value)),D=$(()=>(a==null?void 0:a.validateState)||""),j=$(()=>c0[D.value]),Z=$(()=>e.remote?300:0),Q=$(()=>{const Re=J.value;return e.loading?e.loadingText||o("el.select.loading"):e.remote&&d.inputValue===""&&Re.length===0?!1:e.filterable&&d.inputValue&&Re.length>0?e.noMatchText||o("el.select.noMatch"):Re.length===0?e.noDataText||o("el.select.noData"):null}),J=$(()=>{const Re=at=>{const bt=d.inputValue,pt=new RegExp(e3(bt),"i");return bt?pt.test(i(at)||""):!0};return e.loading?[]:[...e.options,...d.createdOptions].reduce((at,bt)=>{const pt=p(bt);if(Ye(pt)){const Xt=pt.filter(Re);Xt.length>0&&at.push({label:i(bt),isTitle:!0,type:"Group"},...Xt,{type:"Group"})}else(e.remote||Re(bt))&&at.push(bt);return at},[])}),L=$(()=>{const Re=new Map;return J.value.forEach((at,bt)=>{Re.set(We(c(at)),{option:at,index:bt})}),Re}),X=$(()=>J.value.every(Re=>u(Re))),N=Eo(),W=$(()=>N.value==="small"?"small":"default"),re=$(()=>{const Re=w.value,at=W.value||"default",bt=Re?Number.parseInt(getComputedStyle(Re).paddingLeft):0,pt=Re?Number.parseInt(getComputedStyle(Re).paddingRight):0;return d.selectWidth-pt-bt-Nte[at]}),ie=()=>{var Re;v.value=((Re=y.value)==null?void 0:Re.offsetWidth)||200},se=$(()=>({width:`${d.calculatedWidth===0?Jw:Math.ceil(d.calculatedWidth)+Jw}px`})),ve=$(()=>Ye(e.modelValue)?e.modelValue.length===0&&!d.displayInputValue:e.filterable?d.displayInputValue.length===0:!0),le=$(()=>{const Re=e.placeholder||o("el.select.placeholder");return e.multiple||wo(e.modelValue)?Re:d.selectedLabel}),ge=$(()=>{var Re,at;return(at=(Re=g.value)==null?void 0:Re.popperRef)==null?void 0:at.contentRef}),_e=$(()=>{if(e.multiple){const Re=e.modelValue.length;if(e.modelValue.length>0&&L.value.has(e.modelValue[Re-1])){const{index:at}=L.value.get(e.modelValue[Re-1]);return at}}else if(e.modelValue&&L.value.has(e.modelValue)){const{index:Re}=L.value.get(e.modelValue);return Re}return-1}),me=$({get(){return M.value&&Q.value!==!1},set(Re){M.value=Re}}),Be=$(()=>d.cachedOptions.slice(0,e.maxCollapseTags)),ye=$(()=>d.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:Me,removeNewOption:te,selectNewOption:ce,clearAllNewOption:we}=Pte(e,d),{handleCompositionStart:Ae,handleCompositionUpdate:Ie,handleCompositionEnd:xe}=Bte(Re=>Ce(Re)),Ne=()=>{var Re,at,bt;(at=(Re=h.value)==null?void 0:Re.focus)==null||at.call(Re),(bt=g.value)==null||bt.updatePopper()},Se=()=>{if(!e.automaticDropdown&&!T.value)return d.isComposing&&(d.softFocus=!0),et(()=>{var Re,at;M.value=!M.value,(at=(Re=h.value)==null?void 0:Re.focus)==null||at.call(Re)})},ke=()=>(e.filterable&&d.inputValue!==d.selectedLabel&&(d.query=d.selectedLabel),Pe(d.inputValue),et(()=>{Me(d.inputValue)})),$e=Zo(ke,Z.value),Pe=Re=>{d.previousQuery!==Re&&(d.previousQuery=Re,e.filterable&&ut(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&ut(e.remoteMethod)&&e.remoteMethod(Re))},qe=Re=>{ir(e.modelValue,Re)||t(Jt,Re)},Ke=Re=>{t(kt,Re),qe(Re),d.previousValue=String(Re)},Ee=(Re=[],at)=>{if(!Ct(at))return Re.indexOf(at);const bt=e.valueKey;let pt=-1;return Re.some((Xt,yo)=>oo(Xt,bt)===oo(at,bt)?(pt=yo,!0):!1),pt},We=Re=>Ct(Re)?oo(Re,e.valueKey):Re,nt=()=>et(()=>{var Re,at;if(!h.value)return;const bt=w.value;y.value.height=bt.offsetHeight,M.value&&Q.value!==!1&&((at=(Re=g.value)==null?void 0:Re.updatePopper)==null||at.call(Re))}),dt=()=>{var Re,at;if(gt(),ie(),(at=(Re=g.value)==null?void 0:Re.updatePopper)==null||at.call(Re),e.multiple)return nt()},gt=()=>{const Re=w.value;Re&&(d.selectWidth=Re.getBoundingClientRect().width)},Y=(Re,at,bt=!0)=>{var pt,Xt;if(e.multiple){let yo=e.modelValue.slice();const no=Ee(yo,c(Re));no>-1?(yo=[...yo.slice(0,no),...yo.slice(no+1)],d.cachedOptions.splice(no,1),te(Re)):(e.multipleLimit<=0||yo.length{let bt=e.modelValue.slice();const pt=Ee(bt,c(at));if(pt>-1&&!T.value)return bt=[...e.modelValue.slice(0,pt),...e.modelValue.slice(pt+1)],d.cachedOptions.splice(pt,1),Ke(bt),t("remove-tag",c(at)),d.softFocus=!0,te(at),et(Ne);Re.stopPropagation()},S=Re=>{const at=d.isComposing;d.isComposing=!0,d.softFocus?d.softFocus=!1:at||t("focus",Re)},H=Re=>(d.softFocus=!1,et(()=>{var at,bt;(bt=(at=h.value)==null?void 0:at.blur)==null||bt.call(at),x.value&&(d.calculatedWidth=x.value.getBoundingClientRect().width),d.isSilentBlur?d.isSilentBlur=!1:d.isComposing&&t("blur",Re),d.isComposing=!1})),ee=()=>{d.displayInputValue.length>0?Ue(""):M.value=!1},U=Re=>{if(d.displayInputValue.length===0){Re.preventDefault();const at=e.modelValue.slice();at.pop(),te(d.cachedOptions.pop()),Ke(at)}},he=()=>{let Re;return Ye(e.modelValue)?Re=[]:Re=void 0,d.softFocus=!0,e.multiple?d.cachedOptions=[]:d.selectedLabel="",M.value=!1,Ke(Re),t("clear"),we(),et(Ne)},Ue=Re=>{d.displayInputValue=Re,d.inputValue=Re},st=(Re,at=void 0)=>{const bt=J.value;if(!["forward","backward"].includes(Re)||T.value||bt.length<=0||X.value)return;if(!M.value)return Se();at===void 0&&(at=d.hoveringIndex);let pt=-1;Re==="forward"?(pt=at+1,pt>=bt.length&&(pt=0)):Re==="backward"&&(pt=at-1,(pt<0||pt>=bt.length)&&(pt=bt.length-1));const Xt=bt[pt];if(u(Xt)||Xt.type==="Group")return st(Re,pt);Mt(pt),It(pt)},At=()=>{if(M.value)~d.hoveringIndex&&J.value[d.hoveringIndex]&&Y(J.value[d.hoveringIndex],d.hoveringIndex,!1);else return Se()},Mt=Re=>{d.hoveringIndex=Re},Lt=()=>{d.hoveringIndex=-1},lo=()=>{var Re;const at=h.value;at&&((Re=at.focus)==null||Re.call(at))},Ce=Re=>{const at=Re.target.value;if(Ue(at),d.displayInputValue.length>0&&!M.value&&(M.value=!0),d.calculatedWidth=x.value.getBoundingClientRect().width,e.multiple&&nt(),e.remote)$e();else return ke()},De=()=>(M.value=!1,H()),lt=()=>(d.inputValue=d.displayInputValue,et(()=>{~_e.value&&(Mt(_e.value),It(d.hoveringIndex))})),It=Re=>{_.value.scrollToItem(Re)},Gt=()=>{if(Lt(),e.multiple)if(e.modelValue.length>0){let Re=!1;d.cachedOptions.length=0,d.previousValue=e.modelValue.toString();for(const at of e.modelValue){const bt=We(at);if(L.value.has(bt)){const{index:pt,option:Xt}=L.value.get(bt);d.cachedOptions.push(Xt),Re||Mt(pt),Re=!0}}}else d.cachedOptions=[],d.previousValue=void 0;else if(I.value){d.previousValue=e.modelValue;const Re=J.value,at=Re.findIndex(bt=>We(c(bt))===We(e.modelValue));~at?(d.selectedLabel=i(Re[at]),Mt(at)):d.selectedLabel=We(e.modelValue)}else d.selectedLabel="",d.previousValue=void 0;we(),ie()};return Te(M,Re=>{var at,bt;t("visible-change",Re),Re?(bt=(at=g.value).update)==null||bt.call(at):(d.displayInputValue="",d.previousQuery=null,Me(""))}),Te(()=>e.modelValue,(Re,at)=>{var bt;(!Re||Re.toString()!==d.previousValue)&&Gt(),!ir(Re,at)&&e.validateEvent&&((bt=a==null?void 0:a.validate)==null||bt.call(a,"change").catch(pt=>void 0))},{deep:!0}),Te(()=>e.options,()=>{const Re=h.value;(!Re||Re&&document.activeElement!==Re)&&Gt()},{deep:!0}),Te(J,()=>_.value&&et(_.value.resetScrollTop)),Te(()=>me.value,Re=>{Re||Lt()}),vt(()=>{Gt()}),jo(y,dt),{collapseTagSize:W,currentPlaceholder:le,expanded:M,emptyText:Q,popupHeight:O,debounce:Z,filteredOptions:J,iconComponent:K,iconReverse:R,inputWrapperStyle:se,popperSize:v,dropdownMenuVisible:me,hasModelValue:I,shouldShowPlaceholder:ve,selectDisabled:T,selectSize:N,showClearBtn:F,states:d,tagMaxWidth:re,nsSelectV2:r,nsInput:l,calculatorRef:x,controlRef:m,inputRef:h,menuRef:_,popper:g,selectRef:y,selectionRef:w,popperRef:ge,validateState:D,validateIcon:j,showTagList:Be,collapseTagList:ye,debouncedOnInputChange:$e,deleteTag:C,getLabel:i,getValue:c,getDisabled:u,getValueKey:We,handleBlur:H,handleClear:he,handleClickOutside:De,handleDel:U,handleEsc:ee,handleFocus:S,handleMenuEnter:lt,handleResize:dt,toggleMenu:Se,scrollTo:It,onInput:Ce,onKeyboardNavigate:st,onKeyboardSelect:At,onSelect:Y,onHover:Mt,onUpdateInputValue:Ue,handleCompositionStart:Ae,handleCompositionEnd:xe,handleCompositionUpdate:Ie}},Rte=B({name:"ElSelectV2",components:{ElSelectMenu:Ote,ElTag:js,ElTooltip:er,ElIcon:Je},directives:{ClickOutside:Ul,ModelText:of},props:$te,emits:[kt,Jt,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=$(()=>{const{modelValue:l,multiple:n}=e,a=n?[]:void 0;return Ye(l)?n?l:a:n?a:l}),r=Lte(Ft({...Ao(e),modelValue:o}),t);return zt(Gh,{props:Ft({...Ao(e),height:r.popupHeight,modelValue:o}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:o}}}),Vte={key:0},Hte=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],Fte=["textContent"],Dte=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],jte=["textContent"];function Kte(e,t,o,r,l,n){const a=ot("el-tag"),i=ot("el-tooltip"),c=ot("el-icon"),u=ot("el-select-menu"),p=Di("model-text"),d=Di("click-outside");return ht((b(),z("div",{ref:"selectRef",class:P([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=it((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"])),onMouseenter:t[25]||(t[25]=f=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=f=>e.states.comboBoxHovering=!1)},[oe(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=f=>e.states.inputValue=e.states.displayInputValue)},{default:ne(()=>[E("div",{ref:"selectionRef",class:P([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(b(),z("div",Vte,[be(e.$slots,"prefix")])):ue("v-if",!0),e.multiple?(b(),z("div",{key:1,class:P(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(b(),z(Ge,{key:0},[(b(!0),z(Ge,null,Tt(e.showTagList,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[E("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),E("div",{class:P(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(b(),de(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:ne(()=>[e.collapseTagsTooltip?(b(),de(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ne(()=>[E("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})}," + "+ze(e.modelValue.length-e.maxCollapseTags),7)]),content:ne(()=>[E("div",{class:P(e.nsSelectV2.e("selection"))},[(b(!0),z(Ge,null,Tt(e.collapseTagList,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[E("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(b(),z("span",{key:1,class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})}," + "+ze(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):ue("v-if",!0)],2)],64)):(b(!0),z(Ge,{key:1},Tt(e.states.cachedOptions,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[E("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),E("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Qe(e.inputWrapperStyle)},[ht(E("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:P([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...f)=>e.onUpdateInputValue&&e.onUpdateInputValue(...f)),onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[2]||(t[2]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onInput:t[3]||(t[3]=(...f)=>e.onInput&&e.onInput(...f)),onCompositionstart:t[4]||(t[4]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[5]||(t[5]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[6]||(t[6]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onKeydown:[t[7]||(t[7]=Rt(it(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Rt(it(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Rt(it((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[10]||(t[10]=Rt(it((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"])),t[11]||(t[11]=Rt(it((...f)=>e.handleDel&&e.handleDel(...f),["stop"]),["delete"]))]},null,42,Hte),[[p,e.states.displayInputValue]]),e.filterable?(b(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P(e.nsSelectV2.e("input-calculator")),textContent:ze(e.states.displayInputValue)},null,10,Fte)):ue("v-if",!0)],6)],2)):(b(),z(Ge,{key:2},[E("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[ht(E("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:P(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[13]||(t[13]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[14]||(t[14]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onFocus:t[15]||(t[15]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[16]||(t[16]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onInput:t[17]||(t[17]=(...f)=>e.onInput&&e.onInput(...f)),onKeydown:[t[18]||(t[18]=Rt(it(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Rt(it(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Rt(it((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[21]||(t[21]=Rt(it((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...f)=>e.onUpdateInputValue&&e.onUpdateInputValue(...f))},null,42,Dte),[[p,e.states.displayInputValue]])],2),e.filterable?(b(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:ze(e.states.displayInputValue)},null,10,jte)):ue("v-if",!0)],64)),e.shouldShowPlaceholder?(b(),z("span",{key:3,class:P([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},ze(e.currentPlaceholder),3)):ue("v-if",!0),E("span",{class:P(e.nsSelectV2.e("suffix"))},[e.iconComponent?ht((b(),de(c,{key:0,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])),[[Pt,!e.showClearBtn]]):ue("v-if",!0),e.showClearBtn&&e.clearIcon?(b(),de(c,{key:1,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:it(e.handleClear,["prevent","stop"])},{default:ne(()=>[(b(),de(St(e.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0),e.validateState&&e.validateIcon?(b(),de(c,{key:2,class:P([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ne(()=>[(b(),de(St(e.validateIcon)))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)]),content:ne(()=>[oe(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ne(f=>[be(e.$slots,"default",Rr(Gc(f)))]),empty:ne(()=>[be(e.$slots,"empty",{},()=>[E("p",{class:P(e.nsSelectV2.e("empty"))},ze(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var Md=Fe(Rte,[["render",Kte],["__file","select.vue"]]);Md.install=e=>{e.component(Md.name,Md)};const Wte=Md,Ute=He({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),qte=He({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Yte=B({...B({name:"ElSkeletonItem"}),props:qte,setup(e){const t=Oe("skeleton");return(o,r)=>(b(),z("div",{class:P([s(t).e("item"),s(t).e(o.variant)])},[o.variant==="image"?(b(),de(s(h3),{key:0})):ue("v-if",!0)],2))}});var Ad=Fe(Yte,[["__file","skeleton-item.vue"]]);const Gte=B({...B({name:"ElSkeleton"}),props:Ute,setup(e,{expose:t}){const o=e,r=Oe("skeleton"),l=jF(so(o,"loading"),o.throttle);return t({uiLoading:l}),(n,a)=>s(l)?(b(),z("div",Et({key:0,class:[s(r).b(),s(r).is("animated",n.animated)]},n.$attrs),[(b(!0),z(Ge,null,Tt(n.count,i=>(b(),z(Ge,{key:i},[n.loading?be(n.$slots,"template",{key:i},()=>[oe(Ad,{class:P(s(r).is("first")),variant:"p"},null,8,["class"]),(b(!0),z(Ge,null,Tt(n.rows,c=>(b(),de(Ad,{key:c,class:P([s(r).e("paragraph"),s(r).is("last",c===n.rows&&n.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ue("v-if",!0)],64))),128))],16)):be(n.$slots,"default",Rr(Et({key:1},n.$attrs)))}});var Xte=Fe(Gte,[["__file","skeleton.vue"]]);const Zte=xt(Xte,{SkeletonItem:Ad}),Jte=fo(Ad),Qw=Symbol("sliderContextKey"),Qte=He({modelValue:{type:pe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:No,inputSize:No,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:pe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:pe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:na,default:"top"},marks:{type:pe(Object)},validateEvent:{type:Boolean,default:!0}}),Xh=e=>ct(e)||Ye(e)&&e.every(ct),eoe={[kt]:Xh,[Jo]:Xh,[Jt]:Xh},toe=(e,t,o)=>{const r=V();return vt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),eo(window,"resize",o),await et(),o()}),{sliderWrapper:r}},ooe=e=>$(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,r)=>o-r).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]),roe=(e,t,o)=>{const{form:r,formItem:l}=Qo(),n=qt(),a=V(),i=V(),c={firstButton:a,secondButton:i},u=$(()=>e.disabled||(r==null?void 0:r.disabled)||!1),p=$(()=>Math.min(t.firstValue,t.secondValue)),d=$(()=>Math.max(t.firstValue,t.secondValue)),f=$(()=>e.range?`${100*(d.value-p.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=$(()=>e.range?`${100*(p.value-e.min)/(e.max-e.min)}%`:"0%"),m=$(()=>e.vertical?{height:e.height}:{}),h=$(()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value}),_=()=>{n.value&&(t.sliderSize=n.value[`client${e.vertical?"Height":"Width"}`])},g=R=>{const D=e.min+R*(e.max-e.min)/100;if(!e.range)return a;let j;return Math.abs(p.value-D)t.secondValue?"firstButton":"secondButton",c[j]},y=R=>{const D=g(R);return D.value.setPosition(R),D},w=R=>{t.firstValue=R,M(e.range?[p.value,d.value]:R)},x=R=>{t.secondValue=R,e.range&&M([p.value,d.value])},M=R=>{o(kt,R),o(Jo,R)},T=async()=>{await et(),o(Jt,e.range?[p.value,d.value]:e.modelValue)},O=R=>{var D,j,Z,Q,J,L;if(u.value||t.dragging)return;_();let X=0;if(e.vertical){const N=(Z=(j=(D=R.touches)==null?void 0:D.item(0))==null?void 0:j.clientY)!=null?Z:R.clientY;X=(n.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else{const N=(L=(J=(Q=R.touches)==null?void 0:Q.item(0))==null?void 0:J.clientX)!=null?L:R.clientX,W=n.value.getBoundingClientRect().left;X=(N-W)/t.sliderSize*100}if(!(X<0||X>100))return y(X)};return{elFormItem:l,slider:n,firstButton:a,secondButton:i,sliderDisabled:u,minValue:p,maxValue:d,runwayStyle:m,barStyle:h,resetSize:_,setPosition:y,emitChange:T,onSliderWrapperPrevent:R=>{var D,j;((D=c.firstButton.value)!=null&&D.dragging||(j=c.secondButton.value)!=null&&j.dragging)&&R.preventDefault()},onSliderClick:R=>{O(R)&&T()},onSliderDown:async R=>{const D=O(R);D&&(await et(),D.value.onButtonDown(R))},setFirstValue:w,setSecondValue:x}},{left:loe,down:noe,right:aoe,up:ioe,home:soe,end:coe,pageUp:uoe,pageDown:doe}=tt,poe=(e,t,o)=>{const r=V(),l=V(!1),n=$(()=>t.value instanceof Function),a=$(()=>n.value&&t.value(e.modelValue)||e.modelValue),i=Zo(()=>{o.value&&(l.value=!0)},50),c=Zo(()=>{o.value&&(l.value=!1)},50);return{tooltip:r,tooltipVisible:l,formatValue:a,displayTooltip:i,hideTooltip:c}},foe=(e,t,o)=>{const{disabled:r,min:l,max:n,step:a,showTooltip:i,precision:c,sliderSize:u,formatTooltip:p,emitChange:d,resetSize:f,updateDragging:v}=Le(Qw),{tooltip:m,tooltipVisible:h,formatValue:_,displayTooltip:g,hideTooltip:y}=poe(e,p,i),w=V(),x=$(()=>`${(e.modelValue-l.value)/(n.value-l.value)*100}%`),M=$(()=>e.vertical?{bottom:x.value}:{left:x.value}),T=()=>{t.hovering=!0,g()},O=()=>{t.hovering=!1,t.dragging||y()},I=ie=>{r.value||(ie.preventDefault(),X(ie),window.addEventListener("mousemove",N),window.addEventListener("touchmove",N),window.addEventListener("mouseup",W),window.addEventListener("touchend",W),window.addEventListener("contextmenu",W),w.value.focus())},F=ie=>{r.value||(t.newPosition=Number.parseFloat(x.value)+ie/(n.value-l.value)*100,re(t.newPosition),d())},K=()=>{F(-a.value)},R=()=>{F(a.value)},D=()=>{F(-a.value*4)},j=()=>{F(a.value*4)},Z=()=>{r.value||(re(0),d())},Q=()=>{r.value||(re(100),d())},J=ie=>{let se=!0;[loe,noe].includes(ie.key)?K():[aoe,ioe].includes(ie.key)?R():ie.key===soe?Z():ie.key===coe?Q():ie.key===doe?D():ie.key===uoe?j():se=!1,se&&ie.preventDefault()},L=ie=>{let se,ve;return ie.type.startsWith("touch")?(ve=ie.touches[0].clientY,se=ie.touches[0].clientX):(ve=ie.clientY,se=ie.clientX),{clientX:se,clientY:ve}},X=ie=>{t.dragging=!0,t.isClick=!0;const{clientX:se,clientY:ve}=L(ie);e.vertical?t.startY=ve:t.startX=se,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},N=ie=>{if(t.dragging){t.isClick=!1,g(),f();let se;const{clientX:ve,clientY:le}=L(ie);e.vertical?(t.currentY=le,se=(t.startY-t.currentY)/u.value*100):(t.currentX=ve,se=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+se,re(t.newPosition)}},W=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||re(t.newPosition),d()},0),window.removeEventListener("mousemove",N),window.removeEventListener("touchmove",N),window.removeEventListener("mouseup",W),window.removeEventListener("touchend",W),window.removeEventListener("contextmenu",W))},re=async ie=>{if(ie===null||Number.isNaN(+ie))return;ie<0?ie=0:ie>100&&(ie=100);const se=100/((n.value-l.value)/a.value);let le=Math.round(ie/se)*se*(n.value-l.value)*.01+l.value;le=Number.parseFloat(le.toFixed(c.value)),le!==e.modelValue&&o(kt,le),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await et(),t.dragging&&g(),m.value.updatePopper()};return Te(()=>t.dragging,ie=>{v(ie)}),{disabled:r,button:w,tooltip:m,tooltipVisible:h,showTooltip:i,wrapperStyle:M,formatValue:_,handleMouseEnter:T,handleMouseLeave:O,onButtonDown:I,onKeyDown:J,setPosition:re}},hoe=(e,t,o,r)=>({stops:$(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),c=Array.from({length:a-1}).map((u,p)=>(p+1)*i);return e.range?c.filter(u=>u<100*(o.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):c.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),voe=(e,t,o,r,l,n)=>{const a=u=>{l(kt,u),l(Jo,u)},i=()=>e.range?![o.value,r.value].every((u,p)=>u===t.oldValue[p]):e.modelValue!==t.oldValue,c=()=>{var u,p;e.min>e.max&&So("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Array.isArray(d)?d[1]e.max?a([e.max,e.max]):d[0]e.max?a([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],i()&&(e.validateEvent&&((u=n==null?void 0:n.validate)==null||u.call(n,"change").catch(f=>void 0)),t.oldValue=d.slice())):!e.range&&typeof d=="number"&&!Number.isNaN(d)&&(de.max?a(e.max):(t.firstValue=d,i()&&(e.validateEvent&&((p=n==null?void 0:n.validate)==null||p.call(n,"change").catch(f=>void 0)),t.oldValue=d)))};c(),Te(()=>t.dragging,u=>{u||c()}),Te(()=>e.modelValue,(u,p)=>{t.dragging||Array.isArray(u)&&Array.isArray(p)&&u.every((d,f)=>d===p[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||c()},{deep:!0}),Te(()=>[e.min,e.max],()=>{c()})},moe=He({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:na,default:"top"}}),goe={[kt]:e=>ct(e)},boe=["tabindex"],_oe=B({...B({name:"ElSliderButton"}),props:moe,emits:goe,setup(e,{expose:t,emit:o}){const r=e,l=Oe("slider"),n=Ft({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:i,tooltip:c,showTooltip:u,tooltipVisible:p,wrapperStyle:d,formatValue:f,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:h,onKeyDown:_,setPosition:g}=foe(r,n,o),{hovering:y,dragging:w}=Ao(n);return t({onButtonDown:h,onKeyDown:_,setPosition:g,hovering:y,dragging:w}),(x,M)=>(b(),z("div",{ref_key:"button",ref:i,class:P([s(l).e("button-wrapper"),{hover:s(y),dragging:s(w)}]),style:Qe(s(d)),tabindex:s(a)?-1:0,onMouseenter:M[0]||(M[0]=(...T)=>s(v)&&s(v)(...T)),onMouseleave:M[1]||(M[1]=(...T)=>s(m)&&s(m)(...T)),onMousedown:M[2]||(M[2]=(...T)=>s(h)&&s(h)(...T)),onTouchstart:M[3]||(M[3]=(...T)=>s(h)&&s(h)(...T)),onFocus:M[4]||(M[4]=(...T)=>s(v)&&s(v)(...T)),onBlur:M[5]||(M[5]=(...T)=>s(m)&&s(m)(...T)),onKeydown:M[6]||(M[6]=(...T)=>s(_)&&s(_)(...T))},[oe(s(er),{ref_key:"tooltip",ref:c,visible:s(p),placement:x.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":x.tooltipClass,disabled:!s(u),persistent:""},{content:ne(()=>[E("span",null,ze(s(f)),1)]),default:ne(()=>[E("div",{class:P([s(l).e("button"),{hover:s(y),dragging:s(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,boe))}});var ey=Fe(_oe,[["__file","button.vue"]]);const woe=He({mark:{type:pe([String,Object]),default:void 0}});var yoe=B({name:"ElSliderMarker",props:woe,setup(e){const t=Oe("slider"),o=$(()=>ft(e.mark)?e.mark:e.mark.label),r=$(()=>ft(e.mark)?void 0:e.mark.style);return()=>rt("div",{class:t.e("marks-text"),style:r.value},o.value)}});const xoe=["id","role","aria-label","aria-labelledby"],koe={key:1},Coe=B({...B({name:"ElSlider"}),props:Qte,emits:eoe,setup(e,{expose:t,emit:o}){const r=e,l=Oe("slider"),{t:n}=Nt(),a=Ft({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:u,secondButton:p,sliderDisabled:d,minValue:f,maxValue:v,runwayStyle:m,barStyle:h,resetSize:_,emitChange:g,onSliderWrapperPrevent:y,onSliderClick:w,onSliderDown:x,setFirstValue:M,setSecondValue:T}=roe(r,a,o),{stops:O,getStopStyle:I}=hoe(r,a,f,v),{inputId:F,isLabeledByFormItem:K}=Cn(r,{formItemContext:i}),R=Eo(),D=$(()=>r.inputSize||R.value),j=$(()=>r.label||n("el.slider.defaultLabel",{min:r.min,max:r.max})),Z=$(()=>r.range?r.rangeStartLabel||n("el.slider.defaultRangeStartLabel"):j.value),Q=$(()=>r.formatValueText?r.formatValueText(ie.value):`${ie.value}`),J=$(()=>r.rangeEndLabel||n("el.slider.defaultRangeEndLabel")),L=$(()=>r.formatValueText?r.formatValueText(se.value):`${se.value}`),X=$(()=>[l.b(),l.m(R.value),l.is("vertical",r.vertical),{[l.m("with-input")]:r.showInput}]),N=ooe(r);voe(r,a,f,v,o,i);const W=$(()=>{const ge=[r.min,r.max,r.step].map(_e=>{const me=`${_e}`.split(".")[1];return me?me.length:0});return Math.max.apply(null,ge)}),{sliderWrapper:re}=toe(r,a,_),{firstValue:ie,secondValue:se,sliderSize:ve}=Ao(a),le=ge=>{a.dragging=ge};return zt(Qw,{...Ao(r),sliderSize:ve,disabled:d,precision:W,emitChange:g,resetSize:_,updateDragging:le}),t({onSliderClick:w}),(ge,_e)=>{var me,Be;return b(),z("div",{id:ge.range?s(F):void 0,ref_key:"sliderWrapper",ref:re,class:P(s(X)),role:ge.range?"group":void 0,"aria-label":ge.range&&!s(K)?s(j):void 0,"aria-labelledby":ge.range&&s(K)?(me=s(i))==null?void 0:me.labelId:void 0,onTouchstart:_e[2]||(_e[2]=(...ye)=>s(y)&&s(y)(...ye)),onTouchmove:_e[3]||(_e[3]=(...ye)=>s(y)&&s(y)(...ye))},[E("div",{ref_key:"slider",ref:c,class:P([s(l).e("runway"),{"show-input":ge.showInput&&!ge.range},s(l).is("disabled",s(d))]),style:Qe(s(m)),onMousedown:_e[0]||(_e[0]=(...ye)=>s(x)&&s(x)(...ye)),onTouchstart:_e[1]||(_e[1]=(...ye)=>s(x)&&s(x)(...ye))},[E("div",{class:P(s(l).e("bar")),style:Qe(s(h))},null,6),oe(ey,{id:ge.range?void 0:s(F),ref_key:"firstButton",ref:u,"model-value":s(ie),vertical:ge.vertical,"tooltip-class":ge.tooltipClass,placement:ge.placement,role:"slider","aria-label":ge.range||!s(K)?s(Z):void 0,"aria-labelledby":!ge.range&&s(K)?(Be=s(i))==null?void 0:Be.labelId:void 0,"aria-valuemin":ge.min,"aria-valuemax":ge.range?s(se):ge.max,"aria-valuenow":s(ie),"aria-valuetext":s(Q),"aria-orientation":ge.vertical?"vertical":"horizontal","aria-disabled":s(d),"onUpdate:modelValue":s(M)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),ge.range?(b(),de(ey,{key:0,ref_key:"secondButton",ref:p,"model-value":s(se),vertical:ge.vertical,"tooltip-class":ge.tooltipClass,placement:ge.placement,role:"slider","aria-label":s(J),"aria-valuemin":s(ie),"aria-valuemax":ge.max,"aria-valuenow":s(se),"aria-valuetext":s(L),"aria-orientation":ge.vertical?"vertical":"horizontal","aria-disabled":s(d),"onUpdate:modelValue":s(T)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ue("v-if",!0),ge.showStops?(b(),z("div",koe,[(b(!0),z(Ge,null,Tt(s(O),(ye,Me)=>(b(),z("div",{key:Me,class:P(s(l).e("stop")),style:Qe(s(I)(ye))},null,6))),128))])):ue("v-if",!0),s(N).length>0?(b(),z(Ge,{key:2},[E("div",null,[(b(!0),z(Ge,null,Tt(s(N),(ye,Me)=>(b(),z("div",{key:Me,style:Qe(s(I)(ye.position)),class:P([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),E("div",{class:P(s(l).e("marks"))},[(b(!0),z(Ge,null,Tt(s(N),(ye,Me)=>(b(),de(s(yoe),{key:Me,mark:ye.mark,style:Qe(s(I)(ye.position))},null,8,["mark","style"]))),128))],2)],64)):ue("v-if",!0)],38),ge.showInput&&!ge.range?(b(),de(s(vw),{key:0,ref:"input","model-value":s(ie),class:P(s(l).e("input")),step:ge.step,disabled:s(d),controls:ge.showInputControls,min:ge.min,max:ge.max,debounce:ge.debounce,size:s(D),"onUpdate:modelValue":s(M),onChange:s(g)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ue("v-if",!0)],42,xoe)}}});var Soe=Fe(Coe,[["__file","slider.vue"]]);const Eoe=xt(Soe),$oe=He({prefixCls:{type:String}}),ty=B({name:"ElSpaceItem",props:$oe,setup(e,{slots:t}){const o=Oe("space"),r=$(()=>`${e.prefixCls||o.b()}__item`);return()=>rt("div",{class:r.value},be(t,"default"))}}),oy={small:8,default:12,large:16};function Toe(e){const t=Oe("space"),o=$(()=>[t.b(),t.m(e.direction),e.class]),r=V(0),l=V(0),n=$(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${l.value}px`}:{},c={alignItems:e.alignment};return[i,c,e.style]}),a=$(()=>{const i={paddingBottom:`${l.value}px`,marginRight:`${r.value}px`},c=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[i,c]});return lr(()=>{const{size:i="small",wrap:c,direction:u,fill:p}=e;if(Ye(i)){const[d=0,f=0]=i;r.value=d,l.value=f}else{let d;ct(i)?d=i:d=oy[i||"small"]||oy.small,(c||p)&&u==="horizontal"?r.value=l.value=d:u==="horizontal"?(r.value=d,l.value=0):(l.value=d,r.value=0)}}),{classes:o,containerStyle:n,itemStyle:a}}const zoe=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:pe([String,Object,Array]),default:""},style:{type:pe([String,Array,Object]),default:""},alignment:{type:pe(String),default:"center"},prefixCls:{type:String},spacer:{type:pe([Object,String,Number,Array]),default:null,validator:e=>Qt(e)||ct(e)||ft(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:il,validator:e=>ct(e)||Ye(e)&&e.length===2&&e.every(ct)}}),Moe=xt(B({name:"ElSpace",props:zoe,setup(e,{slots:t}){const{classes:o,containerStyle:r,itemStyle:l}=Toe(e);function n(a,i="",c=[]){const{prefixCls:u}=e;return a.forEach((p,d)=>{p0(p)?Ye(p.children)&&p.children.forEach((f,v)=>{p0(f)&&Ye(f.children)?n(f.children,`${i+v}-`,c):c.push(oe(ty,{style:l.value,prefixCls:u,key:`nested-${i+v}`},{default:()=>[f]},Ar.PROPS|Ar.STYLE,["style","prefixCls"]))}):TH(p)&&c.push(oe(ty,{style:l.value,prefixCls:u,key:`LoopKey${i+d}`},{default:()=>[p]},Ar.PROPS|Ar.STYLE,["style","prefixCls"]))}),c}return()=>{var a;const{spacer:i,direction:c}=e,u=be(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Ye(u.children)){let p=n(u.children);if(i){const d=p.length-1;p=p.reduce((f,v,m)=>{const h=[...f,v];return m!==d&&h.push(oe("span",{style:[l.value,c==="vertical"?"width: 100%":null],key:m},[Qt(i)?i:$t(i,Ar.TEXT)],Ar.STYLE)),h},[])}return oe("div",{class:o.value,style:r.value},p,Ar.STYLE|Ar.CLASS)}return u.children}}})),Aoe=He({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:pe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:pe([String,Object,Array])}}),Ioe=B({...B({name:"ElStatistic"}),props:Aoe,setup(e,{expose:t}){const o=e,r=Oe("statistic"),l=$(()=>{const{value:n,formatter:a,precision:i,decimalSeparator:c,groupSeparator:u}=o;if(ut(a))return a(n);if(!ct(n))return n;let[p,d=""]=String(n).split(".");return d=d.padEnd(i,"0").slice(0,i>0?i:0),p=p.replace(/\B(?=(\d{3})+(?!\d))/g,u),[p,d].join(d?c:"")});return t({displayValue:l}),(n,a)=>(b(),z("div",{class:P(s(r).b())},[n.$slots.title||n.title?(b(),z("div",{key:0,class:P(s(r).e("head"))},[be(n.$slots,"title",{},()=>[$t(ze(n.title),1)])],2)):ue("v-if",!0),E("div",{class:P(s(r).e("content"))},[n.$slots.prefix||n.prefix?(b(),z("div",{key:0,class:P(s(r).e("prefix"))},[be(n.$slots,"prefix",{},()=>[E("span",null,ze(n.prefix),1)])],2)):ue("v-if",!0),E("span",{class:P(s(r).e("number")),style:Qe(n.valueStyle)},ze(s(l)),7),n.$slots.suffix||n.suffix?(b(),z("div",{key:1,class:P(s(r).e("suffix"))},[be(n.$slots,"suffix",{},()=>[E("span",null,ze(n.suffix),1)])],2)):ue("v-if",!0)],2)],2))}});var Ooe=Fe(Ioe,[["__file","statistic.vue"]]);const ry=xt(Ooe),Poe=He({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:pe([Number,Object]),default:0},valueStyle:{type:pe([String,Object,Array])}}),Boe={finish:()=>!0,[Jt]:e=>ct(e)},Noe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],ly=e=>ct(e)?new Date(e).getTime():e.valueOf(),ny=(e,t)=>{let o=e;const r=/\[([^\]]*)]/g;return Noe.reduce((n,[a,i])=>{const c=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(c.test(n)){const u=Math.floor(o/i);return o-=u*i,n.replace(c,p=>String(u).padStart(p.length,"0"))}return n},t).replace(r,"$1")},Loe=B({...B({name:"ElCountdown"}),props:Poe,emits:Boe,setup(e,{expose:t,emit:o}){const r=e;let l;const n=V(ly(r.value)-Date.now()),a=$(()=>ny(n.value,r.format)),i=p=>ny(p,r.format),c=()=>{l&&(Ou(l),l=void 0)},u=()=>{const p=ly(r.value),d=()=>{let f=p-Date.now();o("change",f),f<=0?(f=0,c(),o("finish")):l=Ya(d),n.value=f};l=Ya(d)};return Te(()=>[r.value,r.format],()=>{c(),u()},{immediate:!0}),Zt(()=>{c()}),t({displayValue:a}),(p,d)=>(b(),de(s(ry),{value:n.value,title:p.title,prefix:p.prefix,suffix:p.suffix,"value-style":p.valueStyle,formatter:i},Jr({_:2},[Tt(p.$slots,(f,v)=>({name:v,fn:ne(()=>[be(p.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Roe=Fe(Loe,[["__file","countdown.vue"]]);const Voe=xt(Roe),Hoe=He({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Foe={[Jt]:(e,t)=>[e,t].every(ct)},Doe=B({...B({name:"ElSteps"}),props:Hoe,emits:Foe,setup(e,{emit:t}){const o=e,r=Oe("steps"),{children:l,addChild:n,removeChild:a}=A0(_t(),"ElStep");return Te(l,()=>{l.value.forEach((i,c)=>{i.setIndex(c)})}),zt("ElSteps",{props:o,steps:l,addStep:n,removeStep:a}),Te(()=>o.active,(i,c)=>{t(Jt,i,c)}),(i,c)=>(b(),z("div",{class:P([s(r).b(),s(r).m(i.simple?"simple":i.direction)])},[be(i.$slots,"default")],2))}});var joe=Fe(Doe,[["__file","steps.vue"]]);const Koe=He({title:{type:String,default:""},icon:{type:Ut},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Woe=B({...B({name:"ElStep"}),props:Koe,setup(e){const t=e,o=Oe("step"),r=V(-1),l=V({}),n=V(""),a=Le("ElSteps"),i=_t();vt(()=>{Te([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([T])=>{x(T)},{immediate:!0})}),Zt(()=>{a.removeStep(M.uid)});const c=$(()=>t.status||n.value),u=$(()=>{const T=a.steps.value[r.value-1];return T?T.currentStatus:"wait"}),p=$(()=>a.props.alignCenter),d=$(()=>a.props.direction==="vertical"),f=$(()=>a.props.simple),v=$(()=>a.steps.value.length),m=$(()=>{var T;return((T=a.steps.value[v.value-1])==null?void 0:T.uid)===(i==null?void 0:i.uid)}),h=$(()=>f.value?"":a.props.space),_=$(()=>[o.b(),o.is(f.value?"simple":a.props.direction),o.is("flex",m.value&&!h.value&&!p.value),o.is("center",p.value&&!d.value&&!f.value)]),g=$(()=>{const T={flexBasis:ct(h.value)?`${h.value}px`:h.value?h.value:`${100/(v.value-(p.value?0:1))}%`};return d.value||m.value&&(T.maxWidth=`${100/v.value}%`),T}),y=T=>{r.value=T},w=T=>{const O=T==="wait",I={transitionDelay:`${O?"-":""}${150*r.value}ms`},F=T===a.props.processStatus||O?0:100;I.borderWidth=F&&!f.value?"1px":0,I[a.props.direction==="vertical"?"height":"width"]=`${F}%`,l.value=I},x=T=>{T>r.value?n.value=a.props.finishStatus:T===r.value&&u.value!=="error"?n.value=a.props.processStatus:n.value="wait";const O=a.steps.value[r.value-1];O&&O.calcProgress(n.value)},M=Ft({uid:i.uid,currentStatus:c,setIndex:y,calcProgress:w});return a.addStep(M),(T,O)=>(b(),z("div",{style:Qe(s(g)),class:P(s(_))},[ue(" icon & line "),E("div",{class:P([s(o).e("head"),s(o).is(s(c))])},[s(f)?ue("v-if",!0):(b(),z("div",{key:0,class:P(s(o).e("line"))},[E("i",{class:P(s(o).e("line-inner")),style:Qe(l.value)},null,6)],2)),E("div",{class:P([s(o).e("icon"),s(o).is(T.icon||T.$slots.icon?"icon":"text")])},[be(T.$slots,"icon",{},()=>[T.icon?(b(),de(s(Je),{key:0,class:P(s(o).e("icon-inner"))},{default:ne(()=>[(b(),de(St(T.icon)))]),_:1},8,["class"])):s(c)==="success"?(b(),de(s(Je),{key:1,class:P([s(o).e("icon-inner"),s(o).is("status")])},{default:ne(()=>[oe(s(qa))]),_:1},8,["class"])):s(c)==="error"?(b(),de(s(Je),{key:2,class:P([s(o).e("icon-inner"),s(o).is("status")])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class"])):s(f)?ue("v-if",!0):(b(),z("div",{key:3,class:P(s(o).e("icon-inner"))},ze(r.value+1),3))])],2)],2),ue(" title & description "),E("div",{class:P(s(o).e("main"))},[E("div",{class:P([s(o).e("title"),s(o).is(s(c))])},[be(T.$slots,"title",{},()=>[$t(ze(T.title),1)])],2),s(f)?(b(),z("div",{key:0,class:P(s(o).e("arrow"))},null,2)):(b(),z("div",{key:1,class:P([s(o).e("description"),s(o).is(s(c))])},[be(T.$slots,"description",{},()=>[$t(ze(T.description),1)])],2))],2)],6))}});var ay=Fe(Woe,[["__file","item.vue"]]);const Uoe=xt(joe,{Step:ay}),qoe=fo(ay),Yoe=He({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:d0},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Ut},activeActionIcon:{type:Ut},activeIcon:{type:Ut},inactiveIcon:{type:Ut},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:pe(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),Goe={[kt]:e=>Co(e)||ft(e)||ct(e),[Jt]:e=>Co(e)||ft(e)||ct(e),[Jo]:e=>Co(e)||ft(e)||ct(e)},Xoe=["onClick"],Zoe=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],Joe=["aria-hidden"],Qoe=["aria-hidden"],ere=["aria-hidden"],Zh="ElSwitch",tre=B({...B({name:Zh}),props:Yoe,emits:Goe,setup(e,{expose:t,emit:o}){const r=e,l=_t(),{formItem:n}=Qo(),a=Eo(),i=Oe("switch");(I=>{I.forEach(F=>{sl({from:F[0],replacement:F[1],scope:Zh,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},$(()=>{var K;return!!((K=l.vnode.props)!=null&&K[F[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Cn(r,{formItemContext:n}),p=pr($(()=>r.loading)),d=V(r.modelValue!==!1),f=V(),v=V(),m=$(()=>[i.b(),i.m(a.value),i.is("disabled",p.value),i.is("checked",w.value)]),h=$(()=>[i.e("label"),i.em("label","left"),i.is("active",!w.value)]),_=$(()=>[i.e("label"),i.em("label","right"),i.is("active",w.value)]),g=$(()=>({width:bo(r.width)}));Te(()=>r.modelValue,()=>{d.value=!0}),Te(()=>r.value,()=>{d.value=!1});const y=$(()=>d.value?r.modelValue:r.value),w=$(()=>y.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(y.value)||(o(kt,r.inactiveValue),o(Jt,r.inactiveValue),o(Jo,r.inactiveValue)),Te(w,I=>{var F;f.value.checked=I,r.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"change").catch(K=>void 0))});const x=()=>{const I=w.value?r.inactiveValue:r.activeValue;o(kt,I),o(Jt,I),o(Jo,I),et(()=>{f.value.checked=w.value})},M=()=>{if(p.value)return;const{beforeChange:I}=r;if(!I){x();return}const F=I();[Pi(F),Co(F)].includes(!0)||So(Zh,"beforeChange must return type `Promise` or `boolean`"),Pi(F)?F.then(R=>{R&&x()}).catch(R=>{}):F&&x()},T=$(()=>i.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),O=()=>{var I,F;(F=(I=f.value)==null?void 0:I.focus)==null||F.call(I)};return vt(()=>{f.value.checked=w.value}),t({focus:O,checked:w}),(I,F)=>(b(),z("div",{class:P(s(m)),style:Qe(s(T)),onClick:it(M,["prevent"])},[E("input",{id:s(u),ref_key:"input",ref:f,class:P(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":s(w),"aria-disabled":s(p),"aria-label":I.label,name:I.name,"true-value":I.activeValue,"false-value":I.inactiveValue,disabled:s(p),tabindex:I.tabindex,onChange:x,onKeydown:Rt(M,["enter"])},null,42,Zoe),!I.inlinePrompt&&(I.inactiveIcon||I.inactiveText)?(b(),z("span",{key:0,class:P(s(h))},[I.inactiveIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(I.inactiveIcon)))]),_:1})):ue("v-if",!0),!I.inactiveIcon&&I.inactiveText?(b(),z("span",{key:1,"aria-hidden":s(w)},ze(I.inactiveText),9,Joe)):ue("v-if",!0)],2)):ue("v-if",!0),E("span",{ref_key:"core",ref:v,class:P(s(i).e("core")),style:Qe(s(g))},[I.inlinePrompt?(b(),z("div",{key:0,class:P(s(i).e("inner"))},[I.activeIcon||I.inactiveIcon?(b(),de(s(Je),{key:0,class:P(s(i).is("icon"))},{default:ne(()=>[(b(),de(St(s(w)?I.activeIcon:I.inactiveIcon)))]),_:1},8,["class"])):I.activeText||I.inactiveText?(b(),z("span",{key:1,class:P(s(i).is("text")),"aria-hidden":!s(w)},ze(s(w)?I.activeText:I.inactiveText),11,Qoe)):ue("v-if",!0)],2)):ue("v-if",!0),E("div",{class:P(s(i).e("action"))},[I.loading?(b(),de(s(Je),{key:0,class:P(s(i).is("loading"))},{default:ne(()=>[oe(s(Rl))]),_:1},8,["class"])):s(w)?be(I.$slots,"active-action",{key:1},()=>[I.activeActionIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(I.activeActionIcon)))]),_:1})):ue("v-if",!0)]):s(w)?ue("v-if",!0):be(I.$slots,"inactive-action",{key:2},()=>[I.inactiveActionIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(I.inactiveActionIcon)))]),_:1})):ue("v-if",!0)])],2)],6),!I.inlinePrompt&&(I.activeIcon||I.activeText)?(b(),z("span",{key:1,class:P(s(_))},[I.activeIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(I.activeIcon)))]),_:1})):ue("v-if",!0),!I.activeIcon&&I.activeText?(b(),z("span",{key:1,"aria-hidden":!s(w)},ze(I.activeText),9,ere)):ue("v-if",!0)],2)):ue("v-if",!0)],14,Xoe))}});var ore=Fe(tre,[["__file","switch.vue"]]);const rre=xt(ore);/*! + `}),c=T(()=>2*Math.PI*a.value),u=T(()=>t.type==="dashboard"?.75:1),d=T(()=>`${-1*c.value*(1-u.value)/2}px`),p=T(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),f=T(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),v=T(()=>{let w;return t.color?w=y(t.percentage):w=o[t.status]||o.default,w}),m=T(()=>t.status==="warning"?Es:t.type==="line"?t.status==="success"?Au:Ll:t.status==="success"?Ya:Mr),h=T(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),_=T(()=>t.format(t.percentage));function g(w){const x=100/w.length;return w.map((E,I)=>ft(E)?{color:E,percentage:(I+1)*x}:E).sort((E,I)=>E.percentage-I.percentage)}const y=w=>{var x;const{color:M}=t;if(ut(M))return M(w);if(ft(M))return M;{const E=g(M);for(const I of E)if(I.percentage>w)return I.color;return(x=E[E.length-1])==null?void 0:x.color}};return(w,x)=>(b(),z("div",{class:P([s(r).b(),s(r).m(w.type),s(r).is(w.status),{[s(r).m("without-text")]:!w.showText,[s(r).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(b(),z("div",{key:0,class:P(s(r).b("bar"))},[$("div",{class:P(s(r).be("bar","outer")),style:Qe({height:`${w.strokeWidth}px`})},[$("div",{class:P([s(r).be("bar","inner"),{[s(r).bem("bar","inner","indeterminate")]:w.indeterminate},{[s(r).bem("bar","inner","striped")]:w.striped},{[s(r).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:Qe(s(l))},[(w.showText||w.$slots.default)&&w.textInside?(b(),z("div",{key:0,class:P(s(r).be("bar","innerText"))},[be(w.$slots,"default",{percentage:w.percentage},()=>[$("span",null,ze(s(_)),1)])],2)):ue("v-if",!0)],6)],6)],2)):(b(),z("div",{key:1,class:P(s(r).b("circle")),style:Qe({height:`${w.width}px`,width:`${w.width}px`})},[(b(),z("svg",cte,[$("path",{class:P(s(r).be("circle","track")),d:s(i),stroke:`var(${s(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":s(n),fill:"none",style:Qe(s(p))},null,14,ute),$("path",{class:P(s(r).be("circle","path")),d:s(i),stroke:s(v),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":s(n),style:Qe(s(f))},null,14,dte)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(b(),z("div",{key:2,class:P(s(r).e("text")),style:Qe({fontSize:`${s(h)}px`})},[be(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(b(),de(s(Je),{key:1},{default:ne(()=>[(b(),de(St(s(m))))]),_:1})):(b(),z("span",pte,ze(s(_)),1))])],6)):ue("v-if",!0)],10,ste))}});var hte=Fe(fte,[["__file","progress.vue"]]);const Lw=xt(hte),vte=He({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:pe([Array,Object]),default:()=>ro(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:pe([Array,Object]),default:()=>[Ss,Ss,Ss]},voidIcon:{type:qt,default:()=>O3},disabledVoidIcon:{type:qt,default:()=>Ss},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:pe(Array),default:()=>ro(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:No,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),mte={[Jt]:e=>ct(e),[kt]:e=>ct(e)},gte=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],bte=["onMousemove","onClick"],_te=B({...B({name:"ElRate"}),props:vte,emits:mte,setup(e,{expose:t,emit:o}){const r=e;function l(J,L){const X=re=>Ct(re),N=Object.keys(L).map(re=>+re).filter(re=>{const ie=L[re];return(X(ie)?ie.excluded:!1)?Jre-ie),W=L[N[0]];return X(W)&&W.value||W}const n=Le(sa,void 0),a=Le(fl,void 0),i=Eo(),c=Ie("rate"),{inputId:u,isLabeledByFormItem:d}=Cn(r,{formItemContext:a}),p=V(r.modelValue),f=V(-1),v=V(!0),m=T(()=>[c.b(),c.m(i.value)]),h=T(()=>r.disabled||(n==null?void 0:n.disabled)),_=T(()=>c.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":x.value})),g=T(()=>{let J="";return r.showScore?J=r.scoreTemplate.replace(/\{\s*value\s*\}/,h.value?`${r.modelValue}`:`${p.value}`):r.showText&&(J=r.texts[Math.ceil(p.value)-1]),J}),y=T(()=>r.modelValue*100-Math.floor(r.modelValue)*100),w=T(()=>Ge(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),x=T(()=>{const J=l(p.value,w.value);return Ct(J)?"":J}),M=T(()=>{let J="";return h.value?J=`${y.value}%`:r.allowHalf&&(J="50%"),{color:x.value,width:J}}),E=T(()=>{let J=Ge(r.icons)?[...r.icons]:{...r.icons};return J=kl(J),Ge(J)?{[r.lowThreshold]:J[0],[r.highThreshold]:{value:J[1],excluded:!0},[r.max]:J[2]}:J}),I=T(()=>l(r.modelValue,E.value)),O=T(()=>h.value?ft(r.disabledVoidIcon)?r.disabledVoidIcon:kl(r.disabledVoidIcon):ft(r.voidIcon)?r.voidIcon:kl(r.voidIcon)),F=T(()=>l(p.value,E.value));function K(J){const L=h.value&&y.value>0&&J-1r.modelValue,X=r.allowHalf&&v.value&&J-.5<=p.value&&J>p.value;return L||X}function R(J){r.clearable&&J===r.modelValue&&(J=0),o(kt,J),r.modelValue!==J&&o("change",J)}function D(J){h.value||(r.allowHalf&&v.value?R(p.value):R(J))}function j(J){if(h.value)return;let L=p.value;const X=J.code;return X===tt.up||X===tt.right?(r.allowHalf?L+=.5:L+=1,J.stopPropagation(),J.preventDefault()):(X===tt.left||X===tt.down)&&(r.allowHalf?L-=.5:L-=1,J.stopPropagation(),J.preventDefault()),L=L<0?0:L,L=L>r.max?r.max:L,o(kt,L),o("change",L),L}function Z(J,L){if(!h.value){if(r.allowHalf&&L){let X=L.target;Wr(X,c.e("item"))&&(X=X.querySelector(`.${c.e("icon")}`)),(X.clientWidth===0||Wr(X,c.e("decimal")))&&(X=X.parentNode),v.value=L.offsetX*2<=X.clientWidth,p.value=v.value?J-.5:J}else p.value=J;f.value=J}}function Q(){h.value||(r.allowHalf&&(v.value=r.modelValue!==Math.floor(r.modelValue)),p.value=r.modelValue,f.value=-1)}return Te(()=>r.modelValue,J=>{p.value=J,v.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||o(kt,0),t({setCurrentValue:Z,resetCurrentValue:Q}),(J,L)=>{var X;return b(),z("div",{id:s(u),class:P([s(m),s(c).is("disabled",s(h))]),role:"slider","aria-label":s(d)?void 0:J.label||"rating","aria-labelledby":s(d)?(X=s(a))==null?void 0:X.labelId:void 0,"aria-valuenow":p.value,"aria-valuetext":s(g)||void 0,"aria-valuemin":"0","aria-valuemax":J.max,tabindex:"0",style:Qe(s(_)),onKeydown:j},[(b(!0),z(Xe,null,Tt(J.max,(N,W)=>(b(),z("span",{key:W,class:P(s(c).e("item")),onMousemove:re=>Z(N,re),onMouseleave:Q,onClick:re=>D(N)},[oe(s(Je),{class:P([s(c).e("icon"),{hover:f.value===N},s(c).is("active",N<=p.value)])},{default:ne(()=>[K(N)?ue("v-if",!0):(b(),z(Xe,{key:0},[ht((b(),de(St(s(F)),null,null,512)),[[Pt,N<=p.value]]),ht((b(),de(St(s(O)),null,null,512)),[[Pt,!(N<=p.value)]])],64)),K(N)?(b(),z(Xe,{key:1},[(b(),de(St(s(O)),{class:P([s(c).em("decimal","box")])},null,8,["class"])),oe(s(Je),{style:Qe(s(M)),class:P([s(c).e("icon"),s(c).e("decimal")])},{default:ne(()=>[(b(),de(St(s(I))))]),_:1},8,["style","class"])],64)):ue("v-if",!0)]),_:2},1032,["class"])],42,bte))),128)),J.showText||J.showScore?(b(),z("span",{key:0,class:P(s(c).e("text")),style:Qe({color:J.textColor})},ze(s(g)),7)):ue("v-if",!0)],46,gte)}}});var wte=Fe(_te,[["__file","rate.vue"]]);const yte=xt(wte),fi={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Rw={[fi.success]:g3,[fi.warning]:Es,[fi.error]:Ou,[fi.info]:Iu},xte=He({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),kte=B({...B({name:"ElResult"}),props:xte,setup(e){const t=e,o=Ie("result"),r=T(()=>{const l=t.icon,n=l&&fi[l]?fi[l]:"icon-info",a=Rw[n]||Rw["icon-info"];return{class:n,component:a}});return(l,n)=>(b(),z("div",{class:P(s(o).b())},[$("div",{class:P(s(o).e("icon"))},[be(l.$slots,"icon",{},()=>[s(r).component?(b(),de(St(s(r).component),{key:0,class:P(s(r).class)},null,8,["class"])):ue("v-if",!0)])],2),l.title||l.$slots.title?(b(),z("div",{key:0,class:P(s(o).e("title"))},[be(l.$slots,"title",{},()=>[$("p",null,ze(l.title),1)])],2)):ue("v-if",!0),l.subTitle||l.$slots["sub-title"]?(b(),z("div",{key:1,class:P(s(o).e("subtitle"))},[be(l.$slots,"sub-title",{},()=>[$("p",null,ze(l.subTitle),1)])],2)):ue("v-if",!0),l.$slots.extra?(b(),z("div",{key:2,class:P(s(o).e("extra"))},[be(l.$slots,"extra")],2)):ue("v-if",!0)],2))}});var Cte=Fe(kte,[["__file","result.vue"]]);const Ste=xt(Cte);var Vw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Ete(e,t){return!!(e===t||Vw(e)&&Vw(t))}function $te(e,t){if(e.length!==t.length)return!1;for(var o=0;o{const t=_t().proxy.$props;return T(()=>{const o=(r,l,n)=>({});return t.perfMode?xu(o):Tte(o)})},Kh=50,Sd="itemRendered",Ed="scroll",hi="forward",$d="backward",Lr="auto",Td="smart",Gs="start",ml="center",Xs="end",vi="horizontal",Wh="vertical",zte="ltr",mi="rtl",Zs="negative",Uh="positive-ascending",qh="positive-descending",Mte={[vi]:"left",[Wh]:"top"},Ate=20,Ote={[vi]:"deltaX",[Wh]:"deltaY"},Ite=({atEndEdge:e,atStartEdge:t,layout:o},r)=>{let l,n=0;const a=c=>c<0&&t.value||c>0&&e.value;return{hasReachedEdge:a,onWheel:c=>{Nu(l);const u=c[Ote[o.value]];a(n)&&a(n+u)||(n+=u,q1()||c.preventDefault(),l=Ga(()=>{r(n),n=0}))}}},Yh=Ur({type:pe([Number,Function]),required:!0}),Gh=Ur({type:Number}),Xh=Ur({type:Number,default:2}),Pte=Ur({type:String,values:["ltr","rtl"],default:"ltr"}),Zh=Ur({type:Number,default:0}),zd=Ur({type:Number,required:!0}),Fw=Ur({type:String,values:["horizontal","vertical"],default:Wh}),Dw=He({className:{type:String,default:""},containerElement:{type:pe([String,Object]),default:"div"},data:{type:pe(Array),default:()=>ro([])},direction:Pte,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:pe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),jw=He({cache:Xh,estimatedItemSize:Gh,layout:Fw,initScrollOffset:Zh,total:zd,itemSize:Yh,...Dw}),Jh={type:Number,default:6},Kw={type:Number,default:0},Ww={type:Number,default:2},ma=He({columnCache:Xh,columnWidth:Yh,estimatedColumnWidth:Gh,estimatedRowHeight:Gh,initScrollLeft:Zh,initScrollTop:Zh,itemKey:{type:pe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Xh,rowHeight:Yh,totalColumn:zd,totalRow:zd,hScrollbarSize:Jh,vScrollbarSize:Jh,scrollbarStartGap:Kw,scrollbarEndGap:Ww,role:String,...Dw}),Uw=He({alwaysOn:Boolean,class:String,layout:Fw,total:zd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Jh,startGap:Kw,endGap:Ww,visible:Boolean}),ga=(e,t)=>ee===zte||e===mi||e===vi,qw=e=>e===mi;let gi=null;function Md(e=!1){if(gi===null||e){const t=document.createElement("div"),o=t.style;o.width="50px",o.height="50px",o.overflow="scroll",o.direction="rtl";const r=document.createElement("div"),l=r.style;return l.width="100px",l.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?gi=qh:(t.scrollLeft=1,t.scrollLeft===0?gi=Zs:gi=Uh),document.body.removeChild(t),gi}return gi}function Bte({move:e,size:t,bar:o},r){const l={},n=`translate${o.axis}(${e}px)`;return l[o.size]=t,l.transform=n,l.msTransform=n,l.webkitTransform=n,r==="horizontal"?l.height="100%":l.width="100%",l}const Qh=B({name:"ElVirtualScrollBar",props:Uw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const o=T(()=>e.startGap+e.endGap),r=Ie("virtual-scrollbar"),l=Ie("scrollbar"),n=V(),a=V();let i=null,c=null;const u=Ft({isDragging:!1,traveled:0}),d=T(()=>r6[e.layout]),p=T(()=>e.clientSize-s(o)),f=T(()=>({position:"absolute",width:`${vi===e.layout?p.value:e.scrollbarSize}px`,height:`${vi===e.layout?e.scrollbarSize:p.value}px`,[Mte[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),v=T(()=>{const E=e.ratio,I=e.clientSize;if(E>=100)return Number.POSITIVE_INFINITY;if(E>=50)return E*I/100;const O=I/3;return Math.floor(Math.min(Math.max(E*I,Ate),O))}),m=T(()=>{if(!Number.isFinite(v.value))return{display:"none"};const E=`${v.value}px`;return Bte({bar:d.value,size:E,move:u.traveled},e.layout)}),h=T(()=>Math.floor(e.clientSize-v.value-s(o))),_=()=>{window.addEventListener("mousemove",x),window.addEventListener("mouseup",w);const E=s(a);E&&(c=document.onselectstart,document.onselectstart=()=>!1,E.addEventListener("touchmove",x),E.addEventListener("touchend",w))},g=()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",w),document.onselectstart=c,c=null;const E=s(a);E&&(E.removeEventListener("touchmove",x),E.removeEventListener("touchend",w))},y=E=>{E.stopImmediatePropagation(),!(E.ctrlKey||[1,2].includes(E.button))&&(u.isDragging=!0,u[d.value.axis]=E.currentTarget[d.value.offset]-(E[d.value.client]-E.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),_())},w=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),g()},x=E=>{const{isDragging:I}=u;if(!I||!a.value||!n.value)return;const O=u[d.value.axis];if(!O)return;Nu(i);const F=(n.value.getBoundingClientRect()[d.value.direction]-E[d.value.client])*-1,K=a.value[d.value.offset]-O,R=F-K;i=Ga(()=>{u.traveled=Math.max(e.startGap,Math.min(R,h.value)),t("scroll",R,h.value)})},M=E=>{const I=Math.abs(E.target.getBoundingClientRect()[d.value.direction]-E[d.value.client]),O=a.value[d.value.offset]/2,F=I-O;u.traveled=Math.max(0,Math.min(F,h.value)),t("scroll",F,h.value)};return Te(()=>e.scrollFrom,E=>{u.isDragging||(u.traveled=Math.ceil(E*h.value))}),Zt(()=>{g()}),()=>rt("div",{role:"presentation",ref:n,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:f.value,onMousedown:it(M,["stop","prevent"]),onTouchstartPrevent:y},rt("div",{ref:a,class:l.e("thumb"),style:m.value,onMousedown:y},[]))}}),Yw=({name:e,getOffset:t,getItemSize:o,getItemOffset:r,getEstimatedTotalSize:l,getStartIndexForOffset:n,getStopIndexForStartIndex:a,initCache:i,clearCache:c,validateProps:u})=>B({name:e??"ElVirtualList",props:jw,emits:[Sd,Ed],setup(d,{emit:p,expose:f}){u(d);const v=_t(),m=Ie("vl"),h=V(i(d,v)),_=Hw(),g=V(),y=V(),w=V(),x=V({isScrolling:!1,scrollDir:"forward",scrollOffset:ct(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),M=T(()=>{const{total:se,cache:ve}=d,{isScrolling:le,scrollDir:ge,scrollOffset:_e}=s(x);if(se===0)return[0,0,0,0];const me=n(d,_e,s(h)),Be=a(d,me,_e,s(h)),ye=!le||ge===$d?Math.max(1,ve):1,Me=!le||ge===hi?Math.max(1,ve):1;return[Math.max(0,me-ye),Math.max(0,Math.min(se-1,Be+Me)),me,Be]}),E=T(()=>l(d,s(h))),I=T(()=>Js(d.layout)),O=T(()=>[{position:"relative",[`overflow-${I.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:ct(d.height)?`${d.height}px`:d.height,width:ct(d.width)?`${d.width}px`:d.width},d.style]),F=T(()=>{const se=s(E),ve=s(I);return{height:ve?"100%":`${se}px`,pointerEvents:s(x).isScrolling?"none":void 0,width:ve?`${se}px`:"100%"}}),K=T(()=>I.value?d.width:d.height),{onWheel:R}=Ite({atStartEdge:T(()=>x.value.scrollOffset<=0),atEndEdge:T(()=>x.value.scrollOffset>=E.value),layout:T(()=>d.layout)},se=>{var ve,le;(le=(ve=w.value).onMouseUp)==null||le.call(ve),L(Math.min(x.value.scrollOffset+se,E.value-K.value))}),D=()=>{const{total:se}=d;if(se>0){const[_e,me,Be,ye]=s(M);p(Sd,_e,me,Be,ye)}const{scrollDir:ve,scrollOffset:le,updateRequested:ge}=s(x);p(Ed,ve,le,ge)},j=se=>{const{clientHeight:ve,scrollHeight:le,scrollTop:ge}=se.currentTarget,_e=s(x);if(_e.scrollOffset===ge)return;const me=Math.max(0,Math.min(ge,le-ve));x.value={..._e,isScrolling:!0,scrollDir:ga(_e.scrollOffset,me),scrollOffset:me,updateRequested:!1},et(W)},Z=se=>{const{clientWidth:ve,scrollLeft:le,scrollWidth:ge}=se.currentTarget,_e=s(x);if(_e.scrollOffset===le)return;const{direction:me}=d;let Be=le;if(me===mi)switch(Md()){case Zs:{Be=-le;break}case qh:{Be=ge-ve-le;break}}Be=Math.max(0,Math.min(Be,ge-ve)),x.value={..._e,isScrolling:!0,scrollDir:ga(_e.scrollOffset,Be),scrollOffset:Be,updateRequested:!1},et(W)},Q=se=>{s(I)?Z(se):j(se),D()},J=(se,ve)=>{const le=(E.value-K.value)/ve*se;L(Math.min(E.value-K.value,le))},L=se=>{se=Math.max(se,0),se!==s(x).scrollOffset&&(x.value={...s(x),scrollOffset:se,scrollDir:ga(s(x).scrollOffset,se),updateRequested:!0},et(W))},X=(se,ve=Lr)=>{const{scrollOffset:le}=s(x);se=Math.max(0,Math.min(se,d.total-1)),L(t(d,se,ve,le,s(h)))},N=se=>{const{direction:ve,itemSize:le,layout:ge}=d,_e=_.value(c&&le,c&&ge,c&&ve);let me;if(It(_e,String(se)))me=_e[se];else{const Be=r(d,se,s(h)),ye=o(d,se,s(h)),Me=s(I),te=ve===mi,ce=Me?Be:0;_e[se]=me={position:"absolute",left:te?void 0:`${ce}px`,right:te?`${ce}px`:void 0,top:Me?0:`${Be}px`,height:Me?"100%":`${ye}px`,width:Me?`${ye}px`:"100%"}}return me},W=()=>{x.value.isScrolling=!1,et(()=>{_.value(-1,null,null)})},re=()=>{const se=g.value;se&&(se.scrollTop=0)};vt(()=>{if(!Bt)return;const{initScrollOffset:se}=d,ve=s(g);ct(se)&&ve&&(s(I)?ve.scrollLeft=se:ve.scrollTop=se),D()}),Tl(()=>{const{direction:se,layout:ve}=d,{scrollOffset:le,updateRequested:ge}=s(x),_e=s(g);if(ge&&_e)if(ve===vi)if(se===mi)switch(Md()){case Zs:{_e.scrollLeft=-le;break}case Uh:{_e.scrollLeft=le;break}default:{const{clientWidth:me,scrollWidth:Be}=_e;_e.scrollLeft=Be-me-le;break}}else _e.scrollLeft=le;else _e.scrollTop=le});const ie={ns:m,clientSize:K,estimatedTotalSize:E,windowStyle:O,windowRef:g,innerRef:y,innerStyle:F,itemsToRender:M,scrollbarRef:w,states:x,getItemStyle:N,onScroll:Q,onScrollbarScroll:J,onWheel:R,scrollTo:L,scrollToItem:X,resetScrollTop:re};return f({windowRef:g,innerRef:y,getItemStyleCache:_,scrollTo:L,scrollToItem:X,resetScrollTop:re,states:x}),ie},render(d){var p;const{$slots:f,className:v,clientSize:m,containerElement:h,data:_,getItemStyle:g,innerElement:y,itemsToRender:w,innerStyle:x,layout:M,total:E,onScroll:I,onScrollbarScroll:O,onWheel:F,states:K,useIsScrolling:R,windowStyle:D,ns:j}=d,[Z,Q]=w,J=St(h),L=St(y),X=[];if(E>0)for(let ie=Z;ie<=Q;ie++)X.push((p=f.default)==null?void 0:p.call(f,{data:_,key:ie,index:ie,isScrolling:R?K.isScrolling:void 0,style:g(ie)}));const N=[rt(L,{style:x,ref:"innerRef"},ft(L)?X:{default:()=>X})],W=rt(Qh,{ref:"scrollbarRef",clientSize:m,layout:M,onScroll:O,ratio:m*100/this.estimatedTotalSize,scrollFrom:K.scrollOffset/(this.estimatedTotalSize-m),total:E}),re=rt(J,{class:[j.e("window"),v],style:D,onScroll:I,onWheel:F,ref:"windowRef",key:0},ft(J)?[N]:{default:()=>[N]});return rt("div",{key:0,class:[j.e("wrapper"),K.scrollbarAlwaysOn?"always-on":""]},[re,W])}}),Gw=Yw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:o,layout:r,width:l},n,a,i)=>{const c=Js(r)?l:e,u=Math.max(0,t*o-c),d=Math.min(u,n*o),p=Math.max(0,(n+1)*o-c);switch(a===Td&&(i>=p-c&&i<=d+c?a=Lr:a=ml),a){case Gs:return d;case Xs:return p;case ml:{const f=Math.round(p+(d-p)/2);return fu+Math.floor(c/2)?u:f}case Lr:default:return i>=p&&i<=d?i:iMath.max(0,Math.min(e-1,Math.floor(o/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:o,layout:r,width:l},n,a)=>{const i=n*o,c=Js(r)?l:e,u=Math.ceil((c+a-i)/o);return Math.max(0,Math.min(t-1,n+u-1))},initCache(){},clearCache:!0,validateProps(){}}),bi=(e,t,o)=>{const{itemSize:r}=e,{items:l,lastVisitedIndex:n}=o;if(t>n){let a=0;if(n>=0){const i=l[n];a=i.offset+i.size}for(let i=n+1;i<=t;i++){const c=r(i);l[i]={offset:a,size:c},a+=c}o.lastVisitedIndex=t}return l[t]},Nte=(e,t,o)=>{const{items:r,lastVisitedIndex:l}=t;return(l>0?r[l].offset:0)>=o?Xw(e,t,0,l,o):Lte(e,t,Math.max(0,l),o)},Xw=(e,t,o,r,l)=>{for(;o<=r;){const n=o+Math.floor((r-o)/2),a=bi(e,n,t).offset;if(a===l)return n;al&&(r=n-1)}return Math.max(0,o-1)},Lte=(e,t,o,r)=>{const{total:l}=e;let n=1;for(;o{let l=0;if(r>=e&&(r=e-1),r>=0){const i=t[r];l=i.offset+i.size}const a=(e-r-1)*o;return l+a},Rte=Yw({name:"ElDynamicSizeList",getItemOffset:(e,t,o)=>bi(e,t,o).offset,getItemSize:(e,t,{items:o})=>o[t].size,getEstimatedTotalSize:Zw,getOffset:(e,t,o,r,l)=>{const{height:n,layout:a,width:i}=e,c=Js(a)?i:n,u=bi(e,t,l),d=Zw(e,l),p=Math.max(0,Math.min(d-c,u.offset)),f=Math.max(0,u.offset-c+u.size);switch(o===Td&&(r>=f-c&&r<=p+c?o=Lr:o=ml),o){case Gs:return p;case Xs:return f;case ml:return Math.round(f+(p-f)/2);case Lr:default:return r>=f&&r<=p?r:rNte(e,o,t),getStopIndexForStartIndex:(e,t,o,r)=>{const{height:l,total:n,layout:a,width:i}=e,c=Js(a)?i:l,u=bi(e,t,r),d=o+c;let p=u.offset+u.size,f=t;for(;f{var n,a;o.lastVisitedIndex=Math.min(o.lastVisitedIndex,r-1),(n=t.exposed)==null||n.getItemStyleCache(-1),l&&((a=t.proxy)==null||a.$forceUpdate())},o},clearCache:!1,validateProps:({itemSize:e})=>{}}),Vte=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:o,atYStartEdge:r},l)=>{let n=null,a=0,i=0;const c=(d,p)=>{const f=d<=0&&t.value||d>=0&&e.value,v=p<=0&&r.value||p>=0&&o.value;return f&&v};return{hasReachedEdge:c,onWheel:d=>{Nu(n);let p=d.deltaX,f=d.deltaY;Math.abs(p)>Math.abs(f)?f=0:p=0,d.shiftKey&&f!==0&&(p=f,f=0),!(c(a,i)&&c(a+p,i+f))&&(a+=p,i+=f,d.preventDefault(),n=Ga(()=>{l(a,i),a=0,i=0}))}}},Jw=({name:e,clearCache:t,getColumnPosition:o,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:n,getEstimatedTotalWidth:a,getColumnOffset:i,getRowOffset:c,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:f,injectToInstance:v,validateProps:m})=>B({name:e??"ElVirtualList",props:ma,emits:[Sd,Ed],setup(h,{emit:_,expose:g,slots:y}){const w=Ie("vl");m(h);const x=_t(),M=V(f(h,x));v==null||v(x,M);const E=V(),I=V(),O=V(),F=V(null),K=V({isScrolling:!1,scrollLeft:ct(h.initScrollLeft)?h.initScrollLeft:0,scrollTop:ct(h.initScrollTop)?h.initScrollTop:0,updateRequested:!1,xAxisScrollDir:hi,yAxisScrollDir:hi}),R=Hw(),D=T(()=>Number.parseInt(`${h.height}`,10)),j=T(()=>Number.parseInt(`${h.width}`,10)),Z=T(()=>{const{totalColumn:xe,totalRow:Ne,columnCache:Se}=h,{isScrolling:ke,xAxisScrollDir:$e,scrollLeft:Pe}=s(K);if(xe===0||Ne===0)return[0,0,0,0];const Ye=r(h,Pe,s(M)),Ke=l(h,Ye,Pe,s(M)),Ee=!ke||$e===$d?Math.max(1,Se):1,Ue=!ke||$e===hi?Math.max(1,Se):1;return[Math.max(0,Ye-Ee),Math.max(0,Math.min(xe-1,Ke+Ue)),Ye,Ke]}),Q=T(()=>{const{totalColumn:xe,totalRow:Ne,rowCache:Se}=h,{isScrolling:ke,yAxisScrollDir:$e,scrollTop:Pe}=s(K);if(xe===0||Ne===0)return[0,0,0,0];const Ye=d(h,Pe,s(M)),Ke=p(h,Ye,Pe,s(M)),Ee=!ke||$e===$d?Math.max(1,Se):1,Ue=!ke||$e===hi?Math.max(1,Se):1;return[Math.max(0,Ye-Ee),Math.max(0,Math.min(Ne-1,Ke+Ue)),Ye,Ke]}),J=T(()=>n(h,s(M))),L=T(()=>a(h,s(M))),X=T(()=>{var xe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:h.direction,height:ct(h.height)?`${h.height}px`:h.height,width:ct(h.width)?`${h.width}px`:h.width},(xe=h.style)!=null?xe:{}]}),N=T(()=>{const xe=`${s(L)}px`;return{height:`${s(J)}px`,pointerEvents:s(K).isScrolling?"none":void 0,width:xe}}),W=()=>{const{totalColumn:xe,totalRow:Ne}=h;if(xe>0&&Ne>0){const[Ke,Ee,Ue,nt]=s(Z),[dt,gt,Y,C]=s(Q);_(Sd,{columnCacheStart:Ke,columnCacheEnd:Ee,rowCacheStart:dt,rowCacheEnd:gt,columnVisibleStart:Ue,columnVisibleEnd:nt,rowVisibleStart:Y,rowVisibleEnd:C})}const{scrollLeft:Se,scrollTop:ke,updateRequested:$e,xAxisScrollDir:Pe,yAxisScrollDir:Ye}=s(K);_(Ed,{xAxisScrollDir:Pe,scrollLeft:Se,yAxisScrollDir:Ye,scrollTop:ke,updateRequested:$e})},re=xe=>{const{clientHeight:Ne,clientWidth:Se,scrollHeight:ke,scrollLeft:$e,scrollTop:Pe,scrollWidth:Ye}=xe.currentTarget,Ke=s(K);if(Ke.scrollTop===Pe&&Ke.scrollLeft===$e)return;let Ee=$e;if(qw(h.direction))switch(Md()){case Zs:Ee=-$e;break;case qh:Ee=Ye-Se-$e;break}K.value={...Ke,isScrolling:!0,scrollLeft:Ee,scrollTop:Math.max(0,Math.min(Pe,ke-Ne)),updateRequested:!0,xAxisScrollDir:ga(Ke.scrollLeft,Ee),yAxisScrollDir:ga(Ke.scrollTop,Pe)},et(()=>me()),Be(),W()},ie=(xe,Ne)=>{const Se=s(D),ke=(J.value-Se)/Ne*xe;le({scrollTop:Math.min(J.value-Se,ke)})},se=(xe,Ne)=>{const Se=s(j),ke=(L.value-Se)/Ne*xe;le({scrollLeft:Math.min(L.value-Se,ke)})},{onWheel:ve}=Vte({atXStartEdge:T(()=>K.value.scrollLeft<=0),atXEndEdge:T(()=>K.value.scrollLeft>=L.value-s(j)),atYStartEdge:T(()=>K.value.scrollTop<=0),atYEndEdge:T(()=>K.value.scrollTop>=J.value-s(D))},(xe,Ne)=>{var Se,ke,$e,Pe;(ke=(Se=I.value)==null?void 0:Se.onMouseUp)==null||ke.call(Se),(Pe=($e=O.value)==null?void 0:$e.onMouseUp)==null||Pe.call($e);const Ye=s(j),Ke=s(D);le({scrollLeft:Math.min(K.value.scrollLeft+xe,L.value-Ye),scrollTop:Math.min(K.value.scrollTop+Ne,J.value-Ke)})}),le=({scrollLeft:xe=K.value.scrollLeft,scrollTop:Ne=K.value.scrollTop})=>{xe=Math.max(xe,0),Ne=Math.max(Ne,0);const Se=s(K);Ne===Se.scrollTop&&xe===Se.scrollLeft||(K.value={...Se,xAxisScrollDir:ga(Se.scrollLeft,xe),yAxisScrollDir:ga(Se.scrollTop,Ne),scrollLeft:xe,scrollTop:Ne,updateRequested:!0},et(()=>me()),Be(),W())},ge=(xe=0,Ne=0,Se=Lr)=>{const ke=s(K);Ne=Math.max(0,Math.min(Ne,h.totalColumn-1)),xe=Math.max(0,Math.min(xe,h.totalRow-1));const $e=p3(w.namespace.value),Pe=s(M),Ye=n(h,Pe),Ke=a(h,Pe);le({scrollLeft:i(h,Ne,Se,ke.scrollLeft,Pe,Ke>h.width?$e:0),scrollTop:c(h,xe,Se,ke.scrollTop,Pe,Ye>h.height?$e:0)})},_e=(xe,Ne)=>{const{columnWidth:Se,direction:ke,rowHeight:$e}=h,Pe=R.value(t&&Se,t&&$e,t&&ke),Ye=`${xe},${Ne}`;if(It(Pe,Ye))return Pe[Ye];{const[,Ke]=o(h,Ne,s(M)),Ee=s(M),Ue=qw(ke),[nt,dt]=u(h,xe,Ee),[gt]=o(h,Ne,Ee);return Pe[Ye]={position:"absolute",left:Ue?void 0:`${Ke}px`,right:Ue?`${Ke}px`:void 0,top:`${dt}px`,height:`${nt}px`,width:`${gt}px`},Pe[Ye]}},me=()=>{K.value.isScrolling=!1,et(()=>{R.value(-1,null,null)})};vt(()=>{if(!Bt)return;const{initScrollLeft:xe,initScrollTop:Ne}=h,Se=s(E);Se&&(ct(xe)&&(Se.scrollLeft=xe),ct(Ne)&&(Se.scrollTop=Ne)),W()});const Be=()=>{const{direction:xe}=h,{scrollLeft:Ne,scrollTop:Se,updateRequested:ke}=s(K),$e=s(E);if(ke&&$e){if(xe===mi)switch(Md()){case Zs:{$e.scrollLeft=-Ne;break}case Uh:{$e.scrollLeft=Ne;break}default:{const{clientWidth:Pe,scrollWidth:Ye}=$e;$e.scrollLeft=Ye-Pe-Ne;break}}else $e.scrollLeft=Math.max(0,Ne);$e.scrollTop=Math.max(0,Se)}},{resetAfterColumnIndex:ye,resetAfterRowIndex:Me,resetAfter:te}=x.proxy;g({windowRef:E,innerRef:F,getItemStyleCache:R,scrollTo:le,scrollToItem:ge,states:K,resetAfterColumnIndex:ye,resetAfterRowIndex:Me,resetAfter:te});const ce=()=>{const{scrollbarAlwaysOn:xe,scrollbarStartGap:Ne,scrollbarEndGap:Se,totalColumn:ke,totalRow:$e}=h,Pe=s(j),Ye=s(D),Ke=s(L),Ee=s(J),{scrollLeft:Ue,scrollTop:nt}=s(K),dt=rt(Qh,{ref:I,alwaysOn:xe,startGap:Ne,endGap:Se,class:w.e("horizontal"),clientSize:Pe,layout:"horizontal",onScroll:se,ratio:Pe*100/Ke,scrollFrom:Ue/(Ke-Pe),total:$e,visible:!0}),gt=rt(Qh,{ref:O,alwaysOn:xe,startGap:Ne,endGap:Se,class:w.e("vertical"),clientSize:Ye,layout:"vertical",onScroll:ie,ratio:Ye*100/Ee,scrollFrom:nt/(Ee-Ye),total:ke,visible:!0});return{horizontalScrollbar:dt,verticalScrollbar:gt}},we=()=>{var xe;const[Ne,Se]=s(Z),[ke,$e]=s(Q),{data:Pe,totalColumn:Ye,totalRow:Ke,useIsScrolling:Ee,itemKey:Ue}=h,nt=[];if(Ke>0&&Ye>0)for(let dt=ke;dt<=$e;dt++)for(let gt=Ne;gt<=Se;gt++)nt.push((xe=y.default)==null?void 0:xe.call(y,{columnIndex:gt,data:Pe,key:Ue({columnIndex:gt,data:Pe,rowIndex:dt}),isScrolling:Ee?s(K).isScrolling:void 0,style:_e(dt,gt),rowIndex:dt}));return nt},Ae=()=>{const xe=St(h.innerElement),Ne=we();return[rt(xe,{style:s(N),ref:F},ft(xe)?Ne:{default:()=>Ne})]};return()=>{const xe=St(h.containerElement),{horizontalScrollbar:Ne,verticalScrollbar:Se}=ce(),ke=Ae();return rt("div",{key:0,class:w.e("wrapper"),role:h.role},[rt(xe,{class:h.className,style:s(X),onScroll:re,onWheel:ve,ref:E},ft(xe)?ke:{default:()=>ke}),Ne,Se])}}}),Hte=Jw({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:o},r,l,n,a,i)=>{o=Number(o);const c=Math.max(0,e*t-o),u=Math.min(c,r*t),d=Math.max(0,r*t-o+i+t);switch(l==="smart"&&(n>=d-o&&n<=u+o?l=Lr:l=ml),l){case Gs:return u;case Xs:return d;case ml:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(o/2)?c:p}case Lr:default:return n>=d&&n<=u?n:d>u||n{t=Number(t);const c=Math.max(0,o*e-t),u=Math.min(c,r*e),d=Math.max(0,r*e-t+i+e);switch(l===Td&&(n>=d-t&&n<=u+t?l=Lr:l=ml),l){case Gs:return u;case Xs:return d;case ml:{const p=Math.round(d+(u-d)/2);return pc+Math.floor(t/2)?c:p}case Lr:default:return n>=d&&n<=u?n:d>u||nMath.max(0,Math.min(t-1,Math.floor(o/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:o},r,l)=>{const n=r*e,a=Math.ceil((o+l-n)/e);return Math.max(0,Math.min(t-1,r+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},o)=>Math.max(0,Math.min(t-1,Math.floor(o/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:o},r,l)=>{const n=r*e,a=Math.ceil((o+l-n)/e);return Math.max(0,Math.min(t-1,r+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Ad,min:Qw,floor:ey}=Math,Fte={column:"columnWidth",row:"rowHeight"},ev={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},ql=(e,t,o,r)=>{const[l,n,a]=[o[r],e[Fte[r]],o[ev[r]]];if(t>a){let i=0;if(a>=0){const c=l[a];i=c.offset+c.size}for(let c=a+1;c<=t;c++){const u=n(c);l[c]={offset:i,size:u},i+=u}o[ev[r]]=t}return l[t]},ty=(e,t,o,r,l,n)=>{for(;o<=r;){const a=o+ey((r-o)/2),i=ql(e,a,t,n).offset;if(i===l)return a;i{const n=l==="column"?e.totalColumn:e.totalRow;let a=1;for(;o{const[l,n]=[t[r],t[ev[r]]];return(n>0?l[n].offset:0)>=o?ty(e,t,0,n,o,r):Dte(e,t,Ad(0,n),o,r)},ry=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:o,row:r})=>{let l=0;if(o>=e&&(o=e-1),o>=0){const i=r[o];l=i.offset+i.size}const a=(e-o-1)*t;return l+a},ly=({totalColumn:e},{column:t,estimatedColumnWidth:o,lastVisitedColumnIndex:r})=>{let l=0;if(r>e&&(r=e-1),r>=0){const i=t[r];l=i.offset+i.size}const a=(e-r-1)*o;return l+a},jte={column:ly,row:ry},ny=(e,t,o,r,l,n,a)=>{const[i,c]=[n==="row"?e.height:e.width,jte[n]],u=ql(e,t,l,n),d=c(e,l),p=Ad(0,Qw(d-i,u.offset)),f=Ad(0,u.offset-i+a+u.size);switch(o===Td&&(r>=f-i&&r<=p+i?o=Lr:o=ml),o){case Gs:return p;case Xs:return f;case ml:return Math.round(f+(p-f)/2);case Lr:default:return r>=f&&r<=p?r:f>p||r{const r=ql(e,t,o,"column");return[r.size,r.offset]},getRowPosition:(e,t,o)=>{const r=ql(e,t,o,"row");return[r.size,r.offset]},getColumnOffset:(e,t,o,r,l,n)=>ny(e,t,o,r,l,"column",n),getRowOffset:(e,t,o,r,l,n)=>ny(e,t,o,r,l,"row",n),getColumnStartIndexForOffset:(e,t,o)=>oy(e,o,t,"column"),getColumnStopIndexForStartIndex:(e,t,o,r)=>{const l=ql(e,t,r,"column"),n=o+e.width;let a=l.offset+l.size,i=t;for(;ioy(e,o,t,"row"),getRowStopIndexForStartIndex:(e,t,o,r)=>{const{totalRow:l,height:n}=e,a=ql(e,t,r,"row"),i=o+n;let c=a.size+a.offset,u=t;for(;u{const o=({columnIndex:n,rowIndex:a},i)=>{var c,u;i=ko(i)?!0:i,ct(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),ct(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(c=e.exposed)==null||c.getItemStyleCache.value(-1,null,null),i&&((u=e.proxy)==null||u.$forceUpdate())},r=(n,a)=>{o({columnIndex:n},a)},l=(n,a)=>{o({rowIndex:n},a)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:l,resetAfter:o})},initCache:({estimatedColumnWidth:e=Kh,estimatedRowHeight:t=Kh})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Wte=B({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ie("select")}}});function Ute(e,t,o,r,l,n){return e.item.isTitle?(b(),z("div",{key:0,class:P(e.ns.be("group","title")),style:Qe([e.style,{lineHeight:`${e.height}px`}])},ze(e.item.label),7)):(b(),z("div",{key:1,class:P(e.ns.be("group","split")),style:Qe(e.style)},[$("span",{class:P(e.ns.be("group","split-dash")),style:Qe({top:`${e.height/2}px`})},null,6)],6))}var qte=Fe(Wte,[["render",Ute],["__file","group-item.vue"]]);function Yte(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const ay={label:"label",value:"value",disabled:"disabled",options:"options"};function Od(e){const t=T(()=>({...ay,...e.props}));return{aliasProps:t,getLabel:a=>oo(a,t.value.label),getValue:a=>oo(a,t.value.value),getDisabled:a=>oo(a,t.value.disabled),getOptions:a=>oo(a,t.value.options)}}const Gte=He({allowCreate:Boolean,autocomplete:{type:pe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:qt,default:Ll},effect:{type:pe(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:{type:pe([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:pe(Array),required:!0},placeholder:{type:String},teleported:Lo.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:pe(Object),default:()=>({})},remote:Boolean,size:No,props:{type:pe(Object),default:()=>ay},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:pe(String),values:aa,default:"bottom-start"}}),Xte=He({data:Array,disabled:Boolean,hovering:Boolean,item:{type:pe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),tv=Symbol("ElSelectV2Injection"),Zte=B({props:Xte,emits:["select","hover"],setup(e,{emit:t}){const o=Le(tv),r=Ie("select"),{hoverItem:l,selectOptionClick:n}=Yte(e,{emit:t}),{getLabel:a}=Od(o.props);return{ns:r,hoverItem:l,selectOptionClick:n,getLabel:a}}}),Jte=["aria-selected"];function Qte(e,t,o,r,l,n){return b(),z("li",{"aria-selected":e.selected,style:Qe(e.style),class:P([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...a)=>e.hoverItem&&e.hoverItem(...a)),onClick:t[1]||(t[1]=it((...a)=>e.selectOptionClick&&e.selectOptionClick(...a),["stop"]))},[be(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[$("span",null,ze(e.getLabel(e.item)),1)])],46,Jte)}var eoe=Fe(Zte,[["render",Qte],["__file","option-item.vue"]]),toe=B({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:o}){const r=Le(tv),l=Ie("select"),{getLabel:n,getValue:a,getDisabled:i}=Od(r.props),c=V([]),u=V(),d=T(()=>e.data.length);Te(()=>d.value,()=>{var R,D;(D=(R=r.popper.value).updatePopper)==null||D.call(R)});const p=T(()=>ko(r.props.estimatedOptionHeight)),f=T(()=>p.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:R=>c.value[R]}),v=(R=[],D)=>{const{props:{valueKey:j}}=r;return Ct(D)?R&&R.some(Z=>Vt(oo(Z,j))===oo(D,j)):R.includes(D)},m=(R,D)=>{if(Ct(D)){const{valueKey:j}=r.props;return oo(R,j)===oo(D,j)}else return R===D},h=(R,D)=>r.props.multiple?v(R,a(D)):m(R,a(D)),_=(R,D)=>{const{disabled:j,multiple:Z,multipleLimit:Q}=r.props;return j||!D&&(Z?Q>0&&R.length>=Q:!1)},g=R=>e.hoveringIndex===R;o({listRef:u,isSized:p,isItemDisabled:_,isItemHovering:g,isItemSelected:h,scrollToItem:R=>{const D=u.value;D&&D.scrollToItem(R)},resetScrollTop:()=>{const R=u.value;R&&R.resetScrollTop()}});const x=R=>{const{index:D,data:j,style:Z}=R,Q=s(p),{itemSize:J,estimatedSize:L}=s(f),{modelValue:X}=r.props,{onSelect:N,onHover:W}=r,re=j[D];if(re.type==="Group")return oe(qte,{item:re,style:Z,height:Q?J:L},null);const ie=h(X,re),se=_(X,ie),ve=g(D);return oe(eoe,Et(R,{selected:ie,disabled:i(re)||se,created:!!re.created,hovering:ve,item:re,onSelect:N,onHover:W}),{default:le=>{var ge;return((ge=t.default)==null?void 0:ge.call(t,le))||oe("span",null,[n(re)])}})},{onKeyboardNavigate:M,onKeyboardSelect:E}=r,I=()=>{M("forward")},O=()=>{M("backward")},F=()=>{r.expanded=!1},K=R=>{const{code:D}=R,{tab:j,esc:Z,down:Q,up:J,enter:L}=tt;switch(D!==j&&(R.preventDefault(),R.stopPropagation()),D){case j:case Z:{F();break}case Q:{I();break}case J:{O();break}case L:{E();break}}};return()=>{var R;const{data:D,width:j}=e,{height:Z,multiple:Q,scrollbarAlwaysOn:J}=r.props;if(D.length===0)return oe("div",{class:l.b("dropdown"),style:{width:`${j}px`}},[(R=t.empty)==null?void 0:R.call(t)]);const L=s(p)?Gw:Rte;return oe("div",{class:[l.b("dropdown"),l.is("multiple",Q)]},[oe(L,Et({ref:u},s(f),{className:l.be("dropdown","list"),scrollbarAlwaysOn:J,data:D,height:Z,width:j,total:D.length,onKeydown:K}),{default:X=>oe(x,X,null)})])}}});function ooe(e,t){const{aliasProps:o,getLabel:r,getValue:l}=Od(e),n=V(0),a=V(null),i=T(()=>e.allowCreate&&e.filterable);function c(v){const m=h=>l(h)===v;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function u(v){i.value&&(e.multiple&&v.created?n.value++:a.value=v)}function d(v){if(i.value)if(v&&v.length>0&&!c(v)){const m={[o.value.value]:v,[o.value.label]:v,created:!0,[o.value.disabled]:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=n.value;else{const m=a.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function p(v){if(!i.value||!v||!v.created||v.created&&e.reserveKeyword&&t.inputValue===r(v))return;const m=t.createdOptions.findIndex(h=>l(h)===l(v));~m&&(t.createdOptions.splice(m,1),n.value--)}function f(){i.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:d,removeNewOption:p,selectNewOption:u,clearAllNewOption:f}}function roe(e){const t=V(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:n=>{const a=n.target.value,i=a[a.length-1]||"";t.value=!Bu(i)},handleCompositionEnd:n=>{t.value&&(t.value=!1,ut(e)&&e(n))}}}const iy="",sy=11,loe={larget:51,default:42,small:33},noe=(e,t)=>{const{t:o}=Nt(),r=Ie("select-v2"),l=Ie("input"),{form:n,formItem:a}=Qo(),{getLabel:i,getValue:c,getDisabled:u,getOptions:d}=Od(e),p=Ft({inputValue:iy,displayInputValue:iy,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),f=V(-1),v=V(-1),m=V(null),h=V(null),_=V(null),g=V(null),y=V(null),w=V(null),x=V(null),M=V(!1),E=T(()=>e.disabled||(n==null?void 0:n.disabled)),I=T(()=>{const Re=J.value.length*e.itemHeight;return Re>e.height?e.height:Re}),O=T(()=>!wo(e.modelValue)),F=T(()=>{const Re=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:O.value;return e.clearable&&!E.value&&p.comboBoxHovering&&Re}),K=T(()=>e.remote&&e.filterable?"":Cs),R=T(()=>K.value&&r.is("reverse",M.value)),D=T(()=>(a==null?void 0:a.validateState)||""),j=T(()=>v0[D.value]),Z=T(()=>e.remote?300:0),Q=T(()=>{const Re=J.value;return e.loading?e.loadingText||o("el.select.loading"):e.remote&&p.inputValue===""&&Re.length===0?!1:e.filterable&&p.inputValue&&Re.length>0?e.noMatchText||o("el.select.noMatch"):Re.length===0?e.noDataText||o("el.select.noData"):null}),J=T(()=>{const Re=at=>{const bt=p.inputValue,pt=new RegExp(u3(bt),"i");return bt?pt.test(i(at)||""):!0};return e.loading?[]:[...e.options,...p.createdOptions].reduce((at,bt)=>{const pt=d(bt);if(Ge(pt)){const Xt=pt.filter(Re);Xt.length>0&&at.push({label:i(bt),isTitle:!0,type:"Group"},...Xt,{type:"Group"})}else(e.remote||Re(bt))&&at.push(bt);return at},[])}),L=T(()=>{const Re=new Map;return J.value.forEach((at,bt)=>{Re.set(Ue(c(at)),{option:at,index:bt})}),Re}),X=T(()=>J.value.every(Re=>u(Re))),N=Eo(),W=T(()=>N.value==="small"?"small":"default"),re=T(()=>{const Re=w.value,at=W.value||"default",bt=Re?Number.parseInt(getComputedStyle(Re).paddingLeft):0,pt=Re?Number.parseInt(getComputedStyle(Re).paddingRight):0;return p.selectWidth-pt-bt-loe[at]}),ie=()=>{var Re;v.value=((Re=y.value)==null?void 0:Re.offsetWidth)||200},se=T(()=>({width:`${p.calculatedWidth===0?sy:Math.ceil(p.calculatedWidth)+sy}px`})),ve=T(()=>Ge(e.modelValue)?e.modelValue.length===0&&!p.displayInputValue:e.filterable?p.displayInputValue.length===0:!0),le=T(()=>{const Re=e.placeholder||o("el.select.placeholder");return e.multiple||wo(e.modelValue)?Re:p.selectedLabel}),ge=T(()=>{var Re,at;return(at=(Re=g.value)==null?void 0:Re.popperRef)==null?void 0:at.contentRef}),_e=T(()=>{if(e.multiple){const Re=e.modelValue.length;if(e.modelValue.length>0&&L.value.has(e.modelValue[Re-1])){const{index:at}=L.value.get(e.modelValue[Re-1]);return at}}else if(e.modelValue&&L.value.has(e.modelValue)){const{index:Re}=L.value.get(e.modelValue);return Re}return-1}),me=T({get(){return M.value&&Q.value!==!1},set(Re){M.value=Re}}),Be=T(()=>p.cachedOptions.slice(0,e.maxCollapseTags)),ye=T(()=>p.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:Me,removeNewOption:te,selectNewOption:ce,clearAllNewOption:we}=ooe(e,p),{handleCompositionStart:Ae,handleCompositionUpdate:Oe,handleCompositionEnd:xe}=roe(Re=>Ce(Re)),Ne=()=>{var Re,at,bt;(at=(Re=h.value)==null?void 0:Re.focus)==null||at.call(Re),(bt=g.value)==null||bt.updatePopper()},Se=()=>{if(!e.automaticDropdown&&!E.value)return p.isComposing&&(p.softFocus=!0),et(()=>{var Re,at;M.value=!M.value,(at=(Re=h.value)==null?void 0:Re.focus)==null||at.call(Re)})},ke=()=>(e.filterable&&p.inputValue!==p.selectedLabel&&(p.query=p.selectedLabel),Pe(p.inputValue),et(()=>{Me(p.inputValue)})),$e=Zo(ke,Z.value),Pe=Re=>{p.previousQuery!==Re&&(p.previousQuery=Re,e.filterable&&ut(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&ut(e.remoteMethod)&&e.remoteMethod(Re))},Ye=Re=>{ir(e.modelValue,Re)||t(Jt,Re)},Ke=Re=>{t(kt,Re),Ye(Re),p.previousValue=String(Re)},Ee=(Re=[],at)=>{if(!Ct(at))return Re.indexOf(at);const bt=e.valueKey;let pt=-1;return Re.some((Xt,yo)=>oo(Xt,bt)===oo(at,bt)?(pt=yo,!0):!1),pt},Ue=Re=>Ct(Re)?oo(Re,e.valueKey):Re,nt=()=>et(()=>{var Re,at;if(!h.value)return;const bt=w.value;y.value.height=bt.offsetHeight,M.value&&Q.value!==!1&&((at=(Re=g.value)==null?void 0:Re.updatePopper)==null||at.call(Re))}),dt=()=>{var Re,at;if(gt(),ie(),(at=(Re=g.value)==null?void 0:Re.updatePopper)==null||at.call(Re),e.multiple)return nt()},gt=()=>{const Re=w.value;Re&&(p.selectWidth=Re.getBoundingClientRect().width)},Y=(Re,at,bt=!0)=>{var pt,Xt;if(e.multiple){let yo=e.modelValue.slice();const no=Ee(yo,c(Re));no>-1?(yo=[...yo.slice(0,no),...yo.slice(no+1)],p.cachedOptions.splice(no,1),te(Re)):(e.multipleLimit<=0||yo.length{let bt=e.modelValue.slice();const pt=Ee(bt,c(at));if(pt>-1&&!E.value)return bt=[...e.modelValue.slice(0,pt),...e.modelValue.slice(pt+1)],p.cachedOptions.splice(pt,1),Ke(bt),t("remove-tag",c(at)),p.softFocus=!0,te(at),et(Ne);Re.stopPropagation()},S=Re=>{const at=p.isComposing;p.isComposing=!0,p.softFocus?p.softFocus=!1:at||t("focus",Re)},H=Re=>(p.softFocus=!1,et(()=>{var at,bt;(bt=(at=h.value)==null?void 0:at.blur)==null||bt.call(at),x.value&&(p.calculatedWidth=x.value.getBoundingClientRect().width),p.isSilentBlur?p.isSilentBlur=!1:p.isComposing&&t("blur",Re),p.isComposing=!1})),ee=()=>{p.displayInputValue.length>0?qe(""):M.value=!1},U=Re=>{if(p.displayInputValue.length===0){Re.preventDefault();const at=e.modelValue.slice();at.pop(),te(p.cachedOptions.pop()),Ke(at)}},he=()=>{let Re;return Ge(e.modelValue)?Re=[]:Re=void 0,p.softFocus=!0,e.multiple?p.cachedOptions=[]:p.selectedLabel="",M.value=!1,Ke(Re),t("clear"),we(),et(Ne)},qe=Re=>{p.displayInputValue=Re,p.inputValue=Re},st=(Re,at=void 0)=>{const bt=J.value;if(!["forward","backward"].includes(Re)||E.value||bt.length<=0||X.value)return;if(!M.value)return Se();at===void 0&&(at=p.hoveringIndex);let pt=-1;Re==="forward"?(pt=at+1,pt>=bt.length&&(pt=0)):Re==="backward"&&(pt=at-1,(pt<0||pt>=bt.length)&&(pt=bt.length-1));const Xt=bt[pt];if(u(Xt)||Xt.type==="Group")return st(Re,pt);Mt(pt),Ot(pt)},At=()=>{if(M.value)~p.hoveringIndex&&J.value[p.hoveringIndex]&&Y(J.value[p.hoveringIndex],p.hoveringIndex,!1);else return Se()},Mt=Re=>{p.hoveringIndex=Re},Lt=()=>{p.hoveringIndex=-1},lo=()=>{var Re;const at=h.value;at&&((Re=at.focus)==null||Re.call(at))},Ce=Re=>{const at=Re.target.value;if(qe(at),p.displayInputValue.length>0&&!M.value&&(M.value=!0),p.calculatedWidth=x.value.getBoundingClientRect().width,e.multiple&&nt(),e.remote)$e();else return ke()},De=()=>(M.value=!1,H()),lt=()=>(p.inputValue=p.displayInputValue,et(()=>{~_e.value&&(Mt(_e.value),Ot(p.hoveringIndex))})),Ot=Re=>{_.value.scrollToItem(Re)},Gt=()=>{if(Lt(),e.multiple)if(e.modelValue.length>0){let Re=!1;p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const at of e.modelValue){const bt=Ue(at);if(L.value.has(bt)){const{index:pt,option:Xt}=L.value.get(bt);p.cachedOptions.push(Xt),Re||Mt(pt),Re=!0}}}else p.cachedOptions=[],p.previousValue=void 0;else if(O.value){p.previousValue=e.modelValue;const Re=J.value,at=Re.findIndex(bt=>Ue(c(bt))===Ue(e.modelValue));~at?(p.selectedLabel=i(Re[at]),Mt(at)):p.selectedLabel=Ue(e.modelValue)}else p.selectedLabel="",p.previousValue=void 0;we(),ie()};return Te(M,Re=>{var at,bt;t("visible-change",Re),Re?(bt=(at=g.value).update)==null||bt.call(at):(p.displayInputValue="",p.previousQuery=null,Me(""))}),Te(()=>e.modelValue,(Re,at)=>{var bt;(!Re||Re.toString()!==p.previousValue)&&Gt(),!ir(Re,at)&&e.validateEvent&&((bt=a==null?void 0:a.validate)==null||bt.call(a,"change").catch(pt=>void 0))},{deep:!0}),Te(()=>e.options,()=>{const Re=h.value;(!Re||Re&&document.activeElement!==Re)&&Gt()},{deep:!0}),Te(J,()=>_.value&&et(_.value.resetScrollTop)),Te(()=>me.value,Re=>{Re||Lt()}),vt(()=>{Gt()}),jo(y,dt),{collapseTagSize:W,currentPlaceholder:le,expanded:M,emptyText:Q,popupHeight:I,debounce:Z,filteredOptions:J,iconComponent:K,iconReverse:R,inputWrapperStyle:se,popperSize:v,dropdownMenuVisible:me,hasModelValue:O,shouldShowPlaceholder:ve,selectDisabled:E,selectSize:N,showClearBtn:F,states:p,tagMaxWidth:re,nsSelectV2:r,nsInput:l,calculatorRef:x,controlRef:m,inputRef:h,menuRef:_,popper:g,selectRef:y,selectionRef:w,popperRef:ge,validateState:D,validateIcon:j,showTagList:Be,collapseTagList:ye,debouncedOnInputChange:$e,deleteTag:C,getLabel:i,getValue:c,getDisabled:u,getValueKey:Ue,handleBlur:H,handleClear:he,handleClickOutside:De,handleDel:U,handleEsc:ee,handleFocus:S,handleMenuEnter:lt,handleResize:dt,toggleMenu:Se,scrollTo:Ot,onInput:Ce,onKeyboardNavigate:st,onKeyboardSelect:At,onSelect:Y,onHover:Mt,onUpdateInputValue:qe,handleCompositionStart:Ae,handleCompositionEnd:xe,handleCompositionUpdate:Oe}},aoe=B({name:"ElSelectV2",components:{ElSelectMenu:toe,ElTag:js,ElTooltip:er,ElIcon:Je},directives:{ClickOutside:Ul,ModelText:nf},props:Gte,emits:[kt,Jt,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=T(()=>{const{modelValue:l,multiple:n}=e,a=n?[]:void 0;return Ge(l)?n?l:a:n?a:l}),r=noe(Ft({...Ao(e),modelValue:o}),t);return zt(tv,{props:Ft({...Ao(e),height:r.popupHeight,modelValue:o}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:o}}}),ioe={key:0},soe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],coe=["textContent"],uoe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],doe=["textContent"];function poe(e,t,o,r,l,n){const a=ot("el-tag"),i=ot("el-tooltip"),c=ot("el-icon"),u=ot("el-select-menu"),d=ji("model-text"),p=ji("click-outside");return ht((b(),z("div",{ref:"selectRef",class:P([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=it((...f)=>e.toggleMenu&&e.toggleMenu(...f),["stop"])),onMouseenter:t[25]||(t[25]=f=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=f=>e.states.comboBoxHovering=!1)},[oe(i,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=f=>e.states.inputValue=e.states.displayInputValue)},{default:ne(()=>[$("div",{ref:"selectionRef",class:P([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(b(),z("div",ioe,[be(e.$slots,"prefix")])):ue("v-if",!0),e.multiple?(b(),z("div",{key:1,class:P(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(b(),z(Xe,{key:0},[(b(!0),z(Xe,null,Tt(e.showTagList,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[$("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),$("div",{class:P(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(b(),de(a,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:ne(()=>[e.collapseTagsTooltip?(b(),de(i,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ne(()=>[$("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})}," + "+ze(e.modelValue.length-e.maxCollapseTags),7)]),content:ne(()=>[$("div",{class:P(e.nsSelectV2.e("selection"))},[(b(!0),z(Xe,null,Tt(e.collapseTagList,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[$("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(b(),z("span",{key:1,class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})}," + "+ze(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):ue("v-if",!0)],2)],64)):(b(!0),z(Xe,{key:1},Tt(e.states.cachedOptions,f=>(b(),z("div",{key:e.getValueKey(e.getValue(f)),class:P(e.nsSelectV2.e("selected-item"))},[oe(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:v=>e.deleteTag(v,f)},{default:ne(()=>[$("span",{class:P(e.nsSelectV2.e("tags-text")),style:Qe({maxWidth:`${e.tagMaxWidth}px`})},ze(e.getLabel(f)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),$("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Qe(e.inputWrapperStyle)},[ht($("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:P([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...f)=>e.onUpdateInputValue&&e.onUpdateInputValue(...f)),onFocus:t[1]||(t[1]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[2]||(t[2]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onInput:t[3]||(t[3]=(...f)=>e.onInput&&e.onInput(...f)),onCompositionstart:t[4]||(t[4]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[5]||(t[5]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[6]||(t[6]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onKeydown:[t[7]||(t[7]=Rt(it(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Rt(it(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Rt(it((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[10]||(t[10]=Rt(it((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"])),t[11]||(t[11]=Rt(it((...f)=>e.handleDel&&e.handleDel(...f),["stop"]),["delete"]))]},null,42,soe),[[d,e.states.displayInputValue]]),e.filterable?(b(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P(e.nsSelectV2.e("input-calculator")),textContent:ze(e.states.displayInputValue)},null,10,coe)):ue("v-if",!0)],6)],2)):(b(),z(Xe,{key:2},[$("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[ht($("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:P(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...f)=>e.handleCompositionStart&&e.handleCompositionStart(...f)),onCompositionupdate:t[13]||(t[13]=(...f)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...f)),onCompositionend:t[14]||(t[14]=(...f)=>e.handleCompositionEnd&&e.handleCompositionEnd(...f)),onFocus:t[15]||(t[15]=(...f)=>e.handleFocus&&e.handleFocus(...f)),onBlur:t[16]||(t[16]=(...f)=>e.handleBlur&&e.handleBlur(...f)),onInput:t[17]||(t[17]=(...f)=>e.onInput&&e.onInput(...f)),onKeydown:[t[18]||(t[18]=Rt(it(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Rt(it(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Rt(it((...f)=>e.onKeyboardSelect&&e.onKeyboardSelect(...f),["stop","prevent"]),["enter"])),t[21]||(t[21]=Rt(it((...f)=>e.handleEsc&&e.handleEsc(...f),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...f)=>e.onUpdateInputValue&&e.onUpdateInputValue(...f))},null,42,uoe),[[d,e.states.displayInputValue]])],2),e.filterable?(b(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:ze(e.states.displayInputValue)},null,10,doe)):ue("v-if",!0)],64)),e.shouldShowPlaceholder?(b(),z("span",{key:3,class:P([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},ze(e.currentPlaceholder),3)):ue("v-if",!0),$("span",{class:P(e.nsSelectV2.e("suffix"))},[e.iconComponent?ht((b(),de(c,{key:0,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])),[[Pt,!e.showClearBtn]]):ue("v-if",!0),e.showClearBtn&&e.clearIcon?(b(),de(c,{key:1,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:it(e.handleClear,["prevent","stop"])},{default:ne(()=>[(b(),de(St(e.clearIcon)))]),_:1},8,["class","onClick"])):ue("v-if",!0),e.validateState&&e.validateIcon?(b(),de(c,{key:2,class:P([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ne(()=>[(b(),de(St(e.validateIcon)))]),_:1},8,["class"])):ue("v-if",!0)],2)],2)]),content:ne(()=>[oe(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ne(f=>[be(e.$slots,"default",Rr(Gc(f)))]),empty:ne(()=>[be(e.$slots,"empty",{},()=>[$("p",{class:P(e.nsSelectV2.e("empty"))},ze(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[p,e.handleClickOutside,e.popperRef]])}var Id=Fe(aoe,[["render",poe],["__file","select.vue"]]);Id.install=e=>{e.component(Id.name,Id)};const foe=Id,hoe=He({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),voe=He({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),moe=B({...B({name:"ElSkeletonItem"}),props:voe,setup(e){const t=Ie("skeleton");return(o,r)=>(b(),z("div",{class:P([s(t).e("item"),s(t).e(o.variant)])},[o.variant==="image"?(b(),de(s(C3),{key:0})):ue("v-if",!0)],2))}});var Pd=Fe(moe,[["__file","skeleton-item.vue"]]);const goe=B({...B({name:"ElSkeleton"}),props:hoe,setup(e,{expose:t}){const o=e,r=Ie("skeleton"),l=dD(so(o,"loading"),o.throttle);return t({uiLoading:l}),(n,a)=>s(l)?(b(),z("div",Et({key:0,class:[s(r).b(),s(r).is("animated",n.animated)]},n.$attrs),[(b(!0),z(Xe,null,Tt(n.count,i=>(b(),z(Xe,{key:i},[n.loading?be(n.$slots,"template",{key:i},()=>[oe(Pd,{class:P(s(r).is("first")),variant:"p"},null,8,["class"]),(b(!0),z(Xe,null,Tt(n.rows,c=>(b(),de(Pd,{key:c,class:P([s(r).e("paragraph"),s(r).is("last",c===n.rows&&n.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ue("v-if",!0)],64))),128))],16)):be(n.$slots,"default",Rr(Et({key:1},n.$attrs)))}});var boe=Fe(goe,[["__file","skeleton.vue"]]);const _oe=xt(boe,{SkeletonItem:Pd}),woe=fo(Pd),cy=Symbol("sliderContextKey"),yoe=He({modelValue:{type:pe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:No,inputSize:No,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:pe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:pe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:aa,default:"top"},marks:{type:pe(Object)},validateEvent:{type:Boolean,default:!0}}),ov=e=>ct(e)||Ge(e)&&e.every(ct),xoe={[kt]:ov,[Jo]:ov,[Jt]:ov},koe=(e,t,o)=>{const r=V();return vt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),eo(window,"resize",o),await et(),o()}),{sliderWrapper:r}},Coe=e=>T(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((o,r)=>o-r).filter(o=>o<=e.max&&o>=e.min).map(o=>({point:o,position:(o-e.min)*100/(e.max-e.min),mark:e.marks[o]})):[]),Soe=(e,t,o)=>{const{form:r,formItem:l}=Qo(),n=Yt(),a=V(),i=V(),c={firstButton:a,secondButton:i},u=T(()=>e.disabled||(r==null?void 0:r.disabled)||!1),d=T(()=>Math.min(t.firstValue,t.secondValue)),p=T(()=>Math.max(t.firstValue,t.secondValue)),f=T(()=>e.range?`${100*(p.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),v=T(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),m=T(()=>e.vertical?{height:e.height}:{}),h=T(()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value}),_=()=>{n.value&&(t.sliderSize=n.value[`client${e.vertical?"Height":"Width"}`])},g=R=>{const D=e.min+R*(e.max-e.min)/100;if(!e.range)return a;let j;return Math.abs(d.value-D)t.secondValue?"firstButton":"secondButton",c[j]},y=R=>{const D=g(R);return D.value.setPosition(R),D},w=R=>{t.firstValue=R,M(e.range?[d.value,p.value]:R)},x=R=>{t.secondValue=R,e.range&&M([d.value,p.value])},M=R=>{o(kt,R),o(Jo,R)},E=async()=>{await et(),o(Jt,e.range?[d.value,p.value]:e.modelValue)},I=R=>{var D,j,Z,Q,J,L;if(u.value||t.dragging)return;_();let X=0;if(e.vertical){const N=(Z=(j=(D=R.touches)==null?void 0:D.item(0))==null?void 0:j.clientY)!=null?Z:R.clientY;X=(n.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else{const N=(L=(J=(Q=R.touches)==null?void 0:Q.item(0))==null?void 0:J.clientX)!=null?L:R.clientX,W=n.value.getBoundingClientRect().left;X=(N-W)/t.sliderSize*100}if(!(X<0||X>100))return y(X)};return{elFormItem:l,slider:n,firstButton:a,secondButton:i,sliderDisabled:u,minValue:d,maxValue:p,runwayStyle:m,barStyle:h,resetSize:_,setPosition:y,emitChange:E,onSliderWrapperPrevent:R=>{var D,j;((D=c.firstButton.value)!=null&&D.dragging||(j=c.secondButton.value)!=null&&j.dragging)&&R.preventDefault()},onSliderClick:R=>{I(R)&&E()},onSliderDown:async R=>{const D=I(R);D&&(await et(),D.value.onButtonDown(R))},setFirstValue:w,setSecondValue:x}},{left:Eoe,down:$oe,right:Toe,up:zoe,home:Moe,end:Aoe,pageUp:Ooe,pageDown:Ioe}=tt,Poe=(e,t,o)=>{const r=V(),l=V(!1),n=T(()=>t.value instanceof Function),a=T(()=>n.value&&t.value(e.modelValue)||e.modelValue),i=Zo(()=>{o.value&&(l.value=!0)},50),c=Zo(()=>{o.value&&(l.value=!1)},50);return{tooltip:r,tooltipVisible:l,formatValue:a,displayTooltip:i,hideTooltip:c}},Boe=(e,t,o)=>{const{disabled:r,min:l,max:n,step:a,showTooltip:i,precision:c,sliderSize:u,formatTooltip:d,emitChange:p,resetSize:f,updateDragging:v}=Le(cy),{tooltip:m,tooltipVisible:h,formatValue:_,displayTooltip:g,hideTooltip:y}=Poe(e,d,i),w=V(),x=T(()=>`${(e.modelValue-l.value)/(n.value-l.value)*100}%`),M=T(()=>e.vertical?{bottom:x.value}:{left:x.value}),E=()=>{t.hovering=!0,g()},I=()=>{t.hovering=!1,t.dragging||y()},O=ie=>{r.value||(ie.preventDefault(),X(ie),window.addEventListener("mousemove",N),window.addEventListener("touchmove",N),window.addEventListener("mouseup",W),window.addEventListener("touchend",W),window.addEventListener("contextmenu",W),w.value.focus())},F=ie=>{r.value||(t.newPosition=Number.parseFloat(x.value)+ie/(n.value-l.value)*100,re(t.newPosition),p())},K=()=>{F(-a.value)},R=()=>{F(a.value)},D=()=>{F(-a.value*4)},j=()=>{F(a.value*4)},Z=()=>{r.value||(re(0),p())},Q=()=>{r.value||(re(100),p())},J=ie=>{let se=!0;[Eoe,$oe].includes(ie.key)?K():[Toe,zoe].includes(ie.key)?R():ie.key===Moe?Z():ie.key===Aoe?Q():ie.key===Ioe?D():ie.key===Ooe?j():se=!1,se&&ie.preventDefault()},L=ie=>{let se,ve;return ie.type.startsWith("touch")?(ve=ie.touches[0].clientY,se=ie.touches[0].clientX):(ve=ie.clientY,se=ie.clientX),{clientX:se,clientY:ve}},X=ie=>{t.dragging=!0,t.isClick=!0;const{clientX:se,clientY:ve}=L(ie);e.vertical?t.startY=ve:t.startX=se,t.startPosition=Number.parseFloat(x.value),t.newPosition=t.startPosition},N=ie=>{if(t.dragging){t.isClick=!1,g(),f();let se;const{clientX:ve,clientY:le}=L(ie);e.vertical?(t.currentY=le,se=(t.startY-t.currentY)/u.value*100):(t.currentX=ve,se=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+se,re(t.newPosition)}},W=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||re(t.newPosition),p()},0),window.removeEventListener("mousemove",N),window.removeEventListener("touchmove",N),window.removeEventListener("mouseup",W),window.removeEventListener("touchend",W),window.removeEventListener("contextmenu",W))},re=async ie=>{if(ie===null||Number.isNaN(+ie))return;ie<0?ie=0:ie>100&&(ie=100);const se=100/((n.value-l.value)/a.value);let le=Math.round(ie/se)*se*(n.value-l.value)*.01+l.value;le=Number.parseFloat(le.toFixed(c.value)),le!==e.modelValue&&o(kt,le),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await et(),t.dragging&&g(),m.value.updatePopper()};return Te(()=>t.dragging,ie=>{v(ie)}),{disabled:r,button:w,tooltip:m,tooltipVisible:h,showTooltip:i,wrapperStyle:M,formatValue:_,handleMouseEnter:E,handleMouseLeave:I,onButtonDown:O,onKeyDown:J,setPosition:re}},Noe=(e,t,o,r)=>({stops:T(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,i=100*e.step/(e.max-e.min),c=Array.from({length:a-1}).map((u,d)=>(d+1)*i);return e.range?c.filter(u=>u<100*(o.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):c.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),Loe=(e,t,o,r,l,n)=>{const a=u=>{l(kt,u),l(Jo,u)},i=()=>e.range?![o.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,c=()=>{var u,d;e.min>e.max&&So("Slider","min should not be greater than max.");const p=e.modelValue;e.range&&Array.isArray(p)?p[1]e.max?a([e.max,e.max]):p[0]e.max?a([p[0],e.max]):(t.firstValue=p[0],t.secondValue=p[1],i()&&(e.validateEvent&&((u=n==null?void 0:n.validate)==null||u.call(n,"change").catch(f=>void 0)),t.oldValue=p.slice())):!e.range&&typeof p=="number"&&!Number.isNaN(p)&&(pe.max?a(e.max):(t.firstValue=p,i()&&(e.validateEvent&&((d=n==null?void 0:n.validate)==null||d.call(n,"change").catch(f=>void 0)),t.oldValue=p)))};c(),Te(()=>t.dragging,u=>{u||c()}),Te(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((p,f)=>p===d[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||c()},{deep:!0}),Te(()=>[e.min,e.max],()=>{c()})},Roe=He({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:aa,default:"top"}}),Voe={[kt]:e=>ct(e)},Hoe=["tabindex"],Foe=B({...B({name:"ElSliderButton"}),props:Roe,emits:Voe,setup(e,{expose:t,emit:o}){const r=e,l=Ie("slider"),n=Ft({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:a,button:i,tooltip:c,showTooltip:u,tooltipVisible:d,wrapperStyle:p,formatValue:f,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:h,onKeyDown:_,setPosition:g}=Boe(r,n,o),{hovering:y,dragging:w}=Ao(n);return t({onButtonDown:h,onKeyDown:_,setPosition:g,hovering:y,dragging:w}),(x,M)=>(b(),z("div",{ref_key:"button",ref:i,class:P([s(l).e("button-wrapper"),{hover:s(y),dragging:s(w)}]),style:Qe(s(p)),tabindex:s(a)?-1:0,onMouseenter:M[0]||(M[0]=(...E)=>s(v)&&s(v)(...E)),onMouseleave:M[1]||(M[1]=(...E)=>s(m)&&s(m)(...E)),onMousedown:M[2]||(M[2]=(...E)=>s(h)&&s(h)(...E)),onTouchstart:M[3]||(M[3]=(...E)=>s(h)&&s(h)(...E)),onFocus:M[4]||(M[4]=(...E)=>s(v)&&s(v)(...E)),onBlur:M[5]||(M[5]=(...E)=>s(m)&&s(m)(...E)),onKeydown:M[6]||(M[6]=(...E)=>s(_)&&s(_)(...E))},[oe(s(er),{ref_key:"tooltip",ref:c,visible:s(d),placement:x.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":x.tooltipClass,disabled:!s(u),persistent:""},{content:ne(()=>[$("span",null,ze(s(f)),1)]),default:ne(()=>[$("div",{class:P([s(l).e("button"),{hover:s(y),dragging:s(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Hoe))}});var uy=Fe(Foe,[["__file","button.vue"]]);const Doe=He({mark:{type:pe([String,Object]),default:void 0}});var joe=B({name:"ElSliderMarker",props:Doe,setup(e){const t=Ie("slider"),o=T(()=>ft(e.mark)?e.mark:e.mark.label),r=T(()=>ft(e.mark)?void 0:e.mark.style);return()=>rt("div",{class:t.e("marks-text"),style:r.value},o.value)}});const Koe=["id","role","aria-label","aria-labelledby"],Woe={key:1},Uoe=B({...B({name:"ElSlider"}),props:yoe,emits:xoe,setup(e,{expose:t,emit:o}){const r=e,l=Ie("slider"),{t:n}=Nt(),a=Ft({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:u,secondButton:d,sliderDisabled:p,minValue:f,maxValue:v,runwayStyle:m,barStyle:h,resetSize:_,emitChange:g,onSliderWrapperPrevent:y,onSliderClick:w,onSliderDown:x,setFirstValue:M,setSecondValue:E}=Soe(r,a,o),{stops:I,getStopStyle:O}=Noe(r,a,f,v),{inputId:F,isLabeledByFormItem:K}=Cn(r,{formItemContext:i}),R=Eo(),D=T(()=>r.inputSize||R.value),j=T(()=>r.label||n("el.slider.defaultLabel",{min:r.min,max:r.max})),Z=T(()=>r.range?r.rangeStartLabel||n("el.slider.defaultRangeStartLabel"):j.value),Q=T(()=>r.formatValueText?r.formatValueText(ie.value):`${ie.value}`),J=T(()=>r.rangeEndLabel||n("el.slider.defaultRangeEndLabel")),L=T(()=>r.formatValueText?r.formatValueText(se.value):`${se.value}`),X=T(()=>[l.b(),l.m(R.value),l.is("vertical",r.vertical),{[l.m("with-input")]:r.showInput}]),N=Coe(r);Loe(r,a,f,v,o,i);const W=T(()=>{const ge=[r.min,r.max,r.step].map(_e=>{const me=`${_e}`.split(".")[1];return me?me.length:0});return Math.max.apply(null,ge)}),{sliderWrapper:re}=koe(r,a,_),{firstValue:ie,secondValue:se,sliderSize:ve}=Ao(a),le=ge=>{a.dragging=ge};return zt(cy,{...Ao(r),sliderSize:ve,disabled:p,precision:W,emitChange:g,resetSize:_,updateDragging:le}),t({onSliderClick:w}),(ge,_e)=>{var me,Be;return b(),z("div",{id:ge.range?s(F):void 0,ref_key:"sliderWrapper",ref:re,class:P(s(X)),role:ge.range?"group":void 0,"aria-label":ge.range&&!s(K)?s(j):void 0,"aria-labelledby":ge.range&&s(K)?(me=s(i))==null?void 0:me.labelId:void 0,onTouchstart:_e[2]||(_e[2]=(...ye)=>s(y)&&s(y)(...ye)),onTouchmove:_e[3]||(_e[3]=(...ye)=>s(y)&&s(y)(...ye))},[$("div",{ref_key:"slider",ref:c,class:P([s(l).e("runway"),{"show-input":ge.showInput&&!ge.range},s(l).is("disabled",s(p))]),style:Qe(s(m)),onMousedown:_e[0]||(_e[0]=(...ye)=>s(x)&&s(x)(...ye)),onTouchstart:_e[1]||(_e[1]=(...ye)=>s(x)&&s(x)(...ye))},[$("div",{class:P(s(l).e("bar")),style:Qe(s(h))},null,6),oe(uy,{id:ge.range?void 0:s(F),ref_key:"firstButton",ref:u,"model-value":s(ie),vertical:ge.vertical,"tooltip-class":ge.tooltipClass,placement:ge.placement,role:"slider","aria-label":ge.range||!s(K)?s(Z):void 0,"aria-labelledby":!ge.range&&s(K)?(Be=s(i))==null?void 0:Be.labelId:void 0,"aria-valuemin":ge.min,"aria-valuemax":ge.range?s(se):ge.max,"aria-valuenow":s(ie),"aria-valuetext":s(Q),"aria-orientation":ge.vertical?"vertical":"horizontal","aria-disabled":s(p),"onUpdate:modelValue":s(M)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),ge.range?(b(),de(uy,{key:0,ref_key:"secondButton",ref:d,"model-value":s(se),vertical:ge.vertical,"tooltip-class":ge.tooltipClass,placement:ge.placement,role:"slider","aria-label":s(J),"aria-valuemin":s(ie),"aria-valuemax":ge.max,"aria-valuenow":s(se),"aria-valuetext":s(L),"aria-orientation":ge.vertical?"vertical":"horizontal","aria-disabled":s(p),"onUpdate:modelValue":s(E)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ue("v-if",!0),ge.showStops?(b(),z("div",Woe,[(b(!0),z(Xe,null,Tt(s(I),(ye,Me)=>(b(),z("div",{key:Me,class:P(s(l).e("stop")),style:Qe(s(O)(ye))},null,6))),128))])):ue("v-if",!0),s(N).length>0?(b(),z(Xe,{key:2},[$("div",null,[(b(!0),z(Xe,null,Tt(s(N),(ye,Me)=>(b(),z("div",{key:Me,style:Qe(s(O)(ye.position)),class:P([s(l).e("stop"),s(l).e("marks-stop")])},null,6))),128))]),$("div",{class:P(s(l).e("marks"))},[(b(!0),z(Xe,null,Tt(s(N),(ye,Me)=>(b(),de(s(joe),{key:Me,mark:ye.mark,style:Qe(s(O)(ye.position))},null,8,["mark","style"]))),128))],2)],64)):ue("v-if",!0)],38),ge.showInput&&!ge.range?(b(),de(s(Sw),{key:0,ref:"input","model-value":s(ie),class:P(s(l).e("input")),step:ge.step,disabled:s(p),controls:ge.showInputControls,min:ge.min,max:ge.max,debounce:ge.debounce,size:s(D),"onUpdate:modelValue":s(M),onChange:s(g)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ue("v-if",!0)],42,Koe)}}});var qoe=Fe(Uoe,[["__file","slider.vue"]]);const Yoe=xt(qoe),Goe=He({prefixCls:{type:String}}),dy=B({name:"ElSpaceItem",props:Goe,setup(e,{slots:t}){const o=Ie("space"),r=T(()=>`${e.prefixCls||o.b()}__item`);return()=>rt("div",{class:r.value},be(t,"default"))}}),py={small:8,default:12,large:16};function Xoe(e){const t=Ie("space"),o=T(()=>[t.b(),t.m(e.direction),e.class]),r=V(0),l=V(0),n=T(()=>{const i=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${l.value}px`}:{},c={alignItems:e.alignment};return[i,c,e.style]}),a=T(()=>{const i={paddingBottom:`${l.value}px`,marginRight:`${r.value}px`},c=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[i,c]});return lr(()=>{const{size:i="small",wrap:c,direction:u,fill:d}=e;if(Ge(i)){const[p=0,f=0]=i;r.value=p,l.value=f}else{let p;ct(i)?p=i:p=py[i||"small"]||py.small,(c||d)&&u==="horizontal"?r.value=l.value=p:u==="horizontal"?(r.value=p,l.value=0):(l.value=p,r.value=0)}}),{classes:o,containerStyle:n,itemStyle:a}}const Zoe=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:pe([String,Object,Array]),default:""},style:{type:pe([String,Array,Object]),default:""},alignment:{type:pe(String),default:"center"},prefixCls:{type:String},spacer:{type:pe([Object,String,Number,Array]),default:null,validator:e=>Qt(e)||ct(e)||ft(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:sl,validator:e=>ct(e)||Ge(e)&&e.length===2&&e.every(ct)}}),Joe=xt(B({name:"ElSpace",props:Zoe,setup(e,{slots:t}){const{classes:o,containerStyle:r,itemStyle:l}=Xoe(e);function n(a,i="",c=[]){const{prefixCls:u}=e;return a.forEach((d,p)=>{b0(d)?Ge(d.children)&&d.children.forEach((f,v)=>{b0(f)&&Ge(f.children)?n(f.children,`${i+v}-`,c):c.push(oe(dy,{style:l.value,prefixCls:u,key:`nested-${i+v}`},{default:()=>[f]},Ar.PROPS|Ar.STYLE,["style","prefixCls"]))}):XH(d)&&c.push(oe(dy,{style:l.value,prefixCls:u,key:`LoopKey${i+p}`},{default:()=>[d]},Ar.PROPS|Ar.STYLE,["style","prefixCls"]))}),c}return()=>{var a;const{spacer:i,direction:c}=e,u=be(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Ge(u.children)){let d=n(u.children);if(i){const p=d.length-1;d=d.reduce((f,v,m)=>{const h=[...f,v];return m!==p&&h.push(oe("span",{style:[l.value,c==="vertical"?"width: 100%":null],key:m},[Qt(i)?i:$t(i,Ar.TEXT)],Ar.STYLE)),h},[])}return oe("div",{class:o.value,style:r.value},d,Ar.STYLE|Ar.CLASS)}return u.children}}})),Qoe=He({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:pe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:pe([String,Object,Array])}}),ere=B({...B({name:"ElStatistic"}),props:Qoe,setup(e,{expose:t}){const o=e,r=Ie("statistic"),l=T(()=>{const{value:n,formatter:a,precision:i,decimalSeparator:c,groupSeparator:u}=o;if(ut(a))return a(n);if(!ct(n))return n;let[d,p=""]=String(n).split(".");return p=p.padEnd(i,"0").slice(0,i>0?i:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,p].join(p?c:"")});return t({displayValue:l}),(n,a)=>(b(),z("div",{class:P(s(r).b())},[n.$slots.title||n.title?(b(),z("div",{key:0,class:P(s(r).e("head"))},[be(n.$slots,"title",{},()=>[$t(ze(n.title),1)])],2)):ue("v-if",!0),$("div",{class:P(s(r).e("content"))},[n.$slots.prefix||n.prefix?(b(),z("div",{key:0,class:P(s(r).e("prefix"))},[be(n.$slots,"prefix",{},()=>[$("span",null,ze(n.prefix),1)])],2)):ue("v-if",!0),$("span",{class:P(s(r).e("number")),style:Qe(n.valueStyle)},ze(s(l)),7),n.$slots.suffix||n.suffix?(b(),z("div",{key:1,class:P(s(r).e("suffix"))},[be(n.$slots,"suffix",{},()=>[$("span",null,ze(n.suffix),1)])],2)):ue("v-if",!0)],2)],2))}});var tre=Fe(ere,[["__file","statistic.vue"]]);const fy=xt(tre),ore=He({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:pe([Number,Object]),default:0},valueStyle:{type:pe([String,Object,Array])}}),rre={finish:()=>!0,[Jt]:e=>ct(e)},lre=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],hy=e=>ct(e)?new Date(e).getTime():e.valueOf(),vy=(e,t)=>{let o=e;const r=/\[([^\]]*)]/g;return lre.reduce((n,[a,i])=>{const c=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(c.test(n)){const u=Math.floor(o/i);return o-=u*i,n.replace(c,d=>String(u).padStart(d.length,"0"))}return n},t).replace(r,"$1")},nre=B({...B({name:"ElCountdown"}),props:ore,emits:rre,setup(e,{expose:t,emit:o}){const r=e;let l;const n=V(hy(r.value)-Date.now()),a=T(()=>vy(n.value,r.format)),i=d=>vy(d,r.format),c=()=>{l&&(Nu(l),l=void 0)},u=()=>{const d=hy(r.value),p=()=>{let f=d-Date.now();o("change",f),f<=0?(f=0,c(),o("finish")):l=Ga(p),n.value=f};l=Ga(p)};return Te(()=>[r.value,r.format],()=>{c(),u()},{immediate:!0}),Zt(()=>{c()}),t({displayValue:a}),(d,p)=>(b(),de(s(fy),{value:n.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:i},tl({_:2},[Tt(d.$slots,(f,v)=>({name:v,fn:ne(()=>[be(d.$slots,v)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var are=Fe(nre,[["__file","countdown.vue"]]);const ire=xt(are),sre=He({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),cre={[Jt]:(e,t)=>[e,t].every(ct)},ure=B({...B({name:"ElSteps"}),props:sre,emits:cre,setup(e,{emit:t}){const o=e,r=Ie("steps"),{children:l,addChild:n,removeChild:a}=L0(_t(),"ElStep");return Te(l,()=>{l.value.forEach((i,c)=>{i.setIndex(c)})}),zt("ElSteps",{props:o,steps:l,addStep:n,removeStep:a}),Te(()=>o.active,(i,c)=>{t(Jt,i,c)}),(i,c)=>(b(),z("div",{class:P([s(r).b(),s(r).m(i.simple?"simple":i.direction)])},[be(i.$slots,"default")],2))}});var dre=Fe(ure,[["__file","steps.vue"]]);const pre=He({title:{type:String,default:""},icon:{type:qt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),fre=B({...B({name:"ElStep"}),props:pre,setup(e){const t=e,o=Ie("step"),r=V(-1),l=V({}),n=V(""),a=Le("ElSteps"),i=_t();vt(()=>{Te([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([E])=>{x(E)},{immediate:!0})}),Zt(()=>{a.removeStep(M.uid)});const c=T(()=>t.status||n.value),u=T(()=>{const E=a.steps.value[r.value-1];return E?E.currentStatus:"wait"}),d=T(()=>a.props.alignCenter),p=T(()=>a.props.direction==="vertical"),f=T(()=>a.props.simple),v=T(()=>a.steps.value.length),m=T(()=>{var E;return((E=a.steps.value[v.value-1])==null?void 0:E.uid)===(i==null?void 0:i.uid)}),h=T(()=>f.value?"":a.props.space),_=T(()=>[o.b(),o.is(f.value?"simple":a.props.direction),o.is("flex",m.value&&!h.value&&!d.value),o.is("center",d.value&&!p.value&&!f.value)]),g=T(()=>{const E={flexBasis:ct(h.value)?`${h.value}px`:h.value?h.value:`${100/(v.value-(d.value?0:1))}%`};return p.value||m.value&&(E.maxWidth=`${100/v.value}%`),E}),y=E=>{r.value=E},w=E=>{const I=E==="wait",O={transitionDelay:`${I?"-":""}${150*r.value}ms`},F=E===a.props.processStatus||I?0:100;O.borderWidth=F&&!f.value?"1px":0,O[a.props.direction==="vertical"?"height":"width"]=`${F}%`,l.value=O},x=E=>{E>r.value?n.value=a.props.finishStatus:E===r.value&&u.value!=="error"?n.value=a.props.processStatus:n.value="wait";const I=a.steps.value[r.value-1];I&&I.calcProgress(n.value)},M=Ft({uid:i.uid,currentStatus:c,setIndex:y,calcProgress:w});return a.addStep(M),(E,I)=>(b(),z("div",{style:Qe(s(g)),class:P(s(_))},[ue(" icon & line "),$("div",{class:P([s(o).e("head"),s(o).is(s(c))])},[s(f)?ue("v-if",!0):(b(),z("div",{key:0,class:P(s(o).e("line"))},[$("i",{class:P(s(o).e("line-inner")),style:Qe(l.value)},null,6)],2)),$("div",{class:P([s(o).e("icon"),s(o).is(E.icon||E.$slots.icon?"icon":"text")])},[be(E.$slots,"icon",{},()=>[E.icon?(b(),de(s(Je),{key:0,class:P(s(o).e("icon-inner"))},{default:ne(()=>[(b(),de(St(E.icon)))]),_:1},8,["class"])):s(c)==="success"?(b(),de(s(Je),{key:1,class:P([s(o).e("icon-inner"),s(o).is("status")])},{default:ne(()=>[oe(s(Ya))]),_:1},8,["class"])):s(c)==="error"?(b(),de(s(Je),{key:2,class:P([s(o).e("icon-inner"),s(o).is("status")])},{default:ne(()=>[oe(s(Mr))]),_:1},8,["class"])):s(f)?ue("v-if",!0):(b(),z("div",{key:3,class:P(s(o).e("icon-inner"))},ze(r.value+1),3))])],2)],2),ue(" title & description "),$("div",{class:P(s(o).e("main"))},[$("div",{class:P([s(o).e("title"),s(o).is(s(c))])},[be(E.$slots,"title",{},()=>[$t(ze(E.title),1)])],2),s(f)?(b(),z("div",{key:0,class:P(s(o).e("arrow"))},null,2)):(b(),z("div",{key:1,class:P([s(o).e("description"),s(o).is(s(c))])},[be(E.$slots,"description",{},()=>[$t(ze(E.description),1)])],2))],2)],6))}});var my=Fe(fre,[["__file","item.vue"]]);const hre=xt(dre,{Step:my}),vre=fo(my),mre=He({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:g0},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:qt},activeActionIcon:{type:qt},activeIcon:{type:qt},inactiveIcon:{type:qt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:pe(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),gre={[kt]:e=>Co(e)||ft(e)||ct(e),[Jt]:e=>Co(e)||ft(e)||ct(e),[Jo]:e=>Co(e)||ft(e)||ct(e)},bre=["onClick"],_re=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],wre=["aria-hidden"],yre=["aria-hidden"],xre=["aria-hidden"],rv="ElSwitch",kre=B({...B({name:rv}),props:mre,emits:gre,setup(e,{expose:t,emit:o}){const r=e,l=_t(),{formItem:n}=Qo(),a=Eo(),i=Ie("switch");(O=>{O.forEach(F=>{cl({from:F[0],replacement:F[1],scope:rv,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},T(()=>{var K;return!!((K=l.vnode.props)!=null&&K[F[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Cn(r,{formItemContext:n}),d=pr(T(()=>r.loading)),p=V(r.modelValue!==!1),f=V(),v=V(),m=T(()=>[i.b(),i.m(a.value),i.is("disabled",d.value),i.is("checked",w.value)]),h=T(()=>[i.e("label"),i.em("label","left"),i.is("active",!w.value)]),_=T(()=>[i.e("label"),i.em("label","right"),i.is("active",w.value)]),g=T(()=>({width:bo(r.width)}));Te(()=>r.modelValue,()=>{p.value=!0}),Te(()=>r.value,()=>{p.value=!1});const y=T(()=>p.value?r.modelValue:r.value),w=T(()=>y.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(y.value)||(o(kt,r.inactiveValue),o(Jt,r.inactiveValue),o(Jo,r.inactiveValue)),Te(w,O=>{var F;f.value.checked=O,r.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"change").catch(K=>void 0))});const x=()=>{const O=w.value?r.inactiveValue:r.activeValue;o(kt,O),o(Jt,O),o(Jo,O),et(()=>{f.value.checked=w.value})},M=()=>{if(d.value)return;const{beforeChange:O}=r;if(!O){x();return}const F=O();[Bi(F),Co(F)].includes(!0)||So(rv,"beforeChange must return type `Promise` or `boolean`"),Bi(F)?F.then(R=>{R&&x()}).catch(R=>{}):F&&x()},E=T(()=>i.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),I=()=>{var O,F;(F=(O=f.value)==null?void 0:O.focus)==null||F.call(O)};return vt(()=>{f.value.checked=w.value}),t({focus:I,checked:w}),(O,F)=>(b(),z("div",{class:P(s(m)),style:Qe(s(E)),onClick:it(M,["prevent"])},[$("input",{id:s(u),ref_key:"input",ref:f,class:P(s(i).e("input")),type:"checkbox",role:"switch","aria-checked":s(w),"aria-disabled":s(d),"aria-label":O.label,name:O.name,"true-value":O.activeValue,"false-value":O.inactiveValue,disabled:s(d),tabindex:O.tabindex,onChange:x,onKeydown:Rt(M,["enter"])},null,42,_re),!O.inlinePrompt&&(O.inactiveIcon||O.inactiveText)?(b(),z("span",{key:0,class:P(s(h))},[O.inactiveIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(O.inactiveIcon)))]),_:1})):ue("v-if",!0),!O.inactiveIcon&&O.inactiveText?(b(),z("span",{key:1,"aria-hidden":s(w)},ze(O.inactiveText),9,wre)):ue("v-if",!0)],2)):ue("v-if",!0),$("span",{ref_key:"core",ref:v,class:P(s(i).e("core")),style:Qe(s(g))},[O.inlinePrompt?(b(),z("div",{key:0,class:P(s(i).e("inner"))},[O.activeIcon||O.inactiveIcon?(b(),de(s(Je),{key:0,class:P(s(i).is("icon"))},{default:ne(()=>[(b(),de(St(s(w)?O.activeIcon:O.inactiveIcon)))]),_:1},8,["class"])):O.activeText||O.inactiveText?(b(),z("span",{key:1,class:P(s(i).is("text")),"aria-hidden":!s(w)},ze(s(w)?O.activeText:O.inactiveText),11,yre)):ue("v-if",!0)],2)):ue("v-if",!0),$("div",{class:P(s(i).e("action"))},[O.loading?(b(),de(s(Je),{key:0,class:P(s(i).is("loading"))},{default:ne(()=>[oe(s(Rl))]),_:1},8,["class"])):s(w)?be(O.$slots,"active-action",{key:1},()=>[O.activeActionIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(O.activeActionIcon)))]),_:1})):ue("v-if",!0)]):s(w)?ue("v-if",!0):be(O.$slots,"inactive-action",{key:2},()=>[O.inactiveActionIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(O.inactiveActionIcon)))]),_:1})):ue("v-if",!0)])],2)],6),!O.inlinePrompt&&(O.activeIcon||O.activeText)?(b(),z("span",{key:1,class:P(s(_))},[O.activeIcon?(b(),de(s(Je),{key:0},{default:ne(()=>[(b(),de(St(O.activeIcon)))]),_:1})):ue("v-if",!0),!O.activeIcon&&O.activeText?(b(),z("span",{key:1,"aria-hidden":!s(w)},ze(O.activeText),9,xre)):ue("v-if",!0)],2)):ue("v-if",!0)],14,bre))}});var Cre=Fe(kre,[["__file","switch.vue"]]);const Sre=xt(Cre);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed - */var lre=/["'&<>]/,nre=are;function are(e){var t=""+e,o=lre.exec(t);if(!o)return t;var r,l="",n=0,a=0;for(n=o.index;ntypeof u=="string"?oo(i,u):u(i,c,e))):(t!=="$key"&&Ct(i)&&"$value"in i&&(i=i.$value),[Ct(i)?oo(i,t):i])},a=function(i,c){if(r)return r(i.value,c.value);for(let u=0,p=i.key.length;uc.key[u])return 1}return 0};return e.map((i,c)=>({value:i,index:c,key:n?n(i,c):null})).sort((i,c)=>{let u=a(i,c);return u||(u=i.index-c.index),u*+o}).map(i=>i.value)},iy=function(e,t){let o=null;return e.columns.forEach(r=>{r.id===t&&(o=r)}),o},cre=function(e,t){let o=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const o=t.split(".");let r=e;for(const l of o)r=r[l];return`${r}`}else if(typeof t=="function")return t.call(null,e)},ga=function(e,t){const o={};return(e||[]).forEach((r,l)=>{o[Ho(r,t)]={row:r,index:l}}),o};function ure(e,t){const o={};let r;for(r in e)o[r]=e[r];for(r in t)if(Ot(t,r)){const l=t[r];typeof l<"u"&&(o[r]=l)}return o}function Qh(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function cy(e){return e===""||e!==void 0&&(e=Qh(e),Number.isNaN(e)&&(e=80)),e}function dre(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function pre(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...r)=>t(o(...r)))}function Qs(e,t,o){let r=!1;const l=e.indexOf(t),n=l!==-1,a=i=>{i==="add"?e.push(t):e.splice(l,1),r=!0,Ye(t.children)&&t.children.forEach(c=>{Qs(e,c,o??!n)})};return Co(o)?o&&!n?a("add"):!o&&n&&a("remove"):a(n?"remove":"add"),r}function fre(e,t,o="children",r="hasChildren"){const l=a=>!(Array.isArray(a)&&a.length);function n(a,i,c){t(a,i,c),i.forEach(u=>{if(u[r]){t(u,null,c+1);return}const p=u[o];l(p)||n(u,p,c+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const i=a[o];l(i)||n(a,i,0)})}let qr;function hre(e,t,o,r,l){l=Jb({enterable:!0,showArrow:!0},l);const n=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${n}-scrollbar__wrap`);function i(){const y=l.effect==="light",w=document.createElement("div");return w.className=[`${n}-popper`,y?"is-light":"is-dark",l.popperClass||""].join(" "),o=ire(o),w.innerHTML=o,w.style.zIndex=String(r()),e==null||e.appendChild(w),w}function c(){const y=document.createElement("div");return y.className=`${n}-popper__arrow`,y}function u(y){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:w})=>{w.styles.popper.display=y},requires:["computeStyles"]}}function p(){l.showAfter&&(f==null||f.setOptions({modifiers:[u("block")]})),f==null||f.update()}const d=(qr==null?void 0:qr.trigger)!==t;qr==null||qr(),qr=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",v),t.removeEventListener("mouseleave",m),a==null||a.removeEventListener("scroll",qr),qr=void 0}catch{}},qr.trigger=t;let f=null;const{onOpen:v,onClose:m}=c_({showAfter:l.showAfter,hideAfter:l.hideAfter,open:p,close:qr}),h=i();l.enterable&&(h.onmouseenter=v,h.onmouseleave=m);const _=[];if(l.offset&&_.push({name:"offset",options:{offset:[0,l.offset]}}),l.showArrow){const y=h.appendChild(c());_.push({name:"arrow",options:{element:y,padding:10}})}l.showAfter&&d&&_.push(u("none"));const g=l.popperOptions||{};return f=o_(t,h,{placement:l.placement||"top",strategy:"fixed",...g,modifiers:g.modifiers?_.concat(g.modifiers):_}),t.addEventListener("mouseenter",v),t.addEventListener("mouseleave",m),a==null||a.addEventListener("scroll",qr),v(),f}function uy(e){return e.children?eM(e.children,uy):[e]}function dy(e,t){return e+t.colSpan}const py=(e,t,o,r)=>{let l=0,n=e;const a=o.states.columns.value;if(r){const c=uy(r[e]);l=a.slice(0,a.indexOf(c[0])).reduce(dy,0),n=l+c.reduce(dy,0)-1}else l=e;let i;switch(t){case"left":n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:l,after:n}:{}},ev=(e,t,o,r,l,n=0)=>{const a=[],{direction:i,start:c,after:u}=py(t,o,r,l);if(i){const p=i==="left";a.push(`${e}-fixed-column--${i}`),p&&u+n===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!p&&c-n===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function fy(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const tv=(e,t,o,r)=>{const{direction:l,start:n=0,after:a=0}=py(e,t,o,r);if(!l)return;const i={},c=l==="left",u=o.states.columns.value;return c?i.left=u.slice(0,n).reduce(fy,0):i.right=u.slice(a+1).reverse().reduce(fy,0),i},bi=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function vre(e){const t=_t(),o=V(!1),r=V([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(o.value)r.value=c.slice();else if(u){const p=ga(r.value,u);r.value=c.reduce((d,f)=>{const v=Ho(f,u);return p[v]&&d.push(f),d},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{Qs(r.value,c,u)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],p=e.rowKey.value,d=ga(u,p);r.value=c.reduce((f,v)=>{const m=d[v];return m&&f.push(m.row),f},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!ga(r.value,u)[Ho(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:o}}}function mre(e){const t=_t(),o=V(null),r=V(null),l=u=>{t.store.assertRowKey(),o.value=u,a(u)},n=()=>{o.value=null},a=u=>{const{data:p,rowKey:d}=e;let f=null;d.value&&(f=(s(p)||[]).find(v=>Ho(v,d.value)===u)),r.value=f,t.emit("current-change",r.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:n,setCurrentRowByKey:a,updateCurrentRow:u=>{const p=r.value;if(u&&u!==p){r.value=u,t.emit("current-change",r.value,p);return}!u&&p&&(r.value=null,t.emit("current-change",null,p))},updateCurrentRowData:()=>{const u=e.rowKey.value,p=e.data.value||[],d=r.value;if(!p.includes(d)&&d){if(u){const f=Ho(d,u);a(f)}else r.value=null;r.value===null&&t.emit("current-change",null,d)}else o.value&&(a(o.value),n())},states:{_currentRowKey:o,currentRow:r}}}function gre(e){const t=V([]),o=V({}),r=V(16),l=V(!1),n=V({}),a=V("hasChildren"),i=V("children"),c=_t(),u=$(()=>{if(!e.rowKey.value)return{};const g=e.data.value||[];return d(g)}),p=$(()=>{const g=e.rowKey.value,y=Object.keys(n.value),w={};return y.length&&y.forEach(x=>{if(n.value[x].length){const M={children:[]};n.value[x].forEach(T=>{const O=Ho(T,g);M.children.push(O),T[a.value]&&!w[O]&&(w[O]={children:[]})}),w[x]=M}}),w}),d=g=>{const y=e.rowKey.value,w={};return fre(g,(x,M,T)=>{const O=Ho(x,y);Array.isArray(M)?w[O]={children:M.map(I=>Ho(I,y)),level:T}:l.value&&(w[O]={children:[],lazy:!0,level:T})},i.value,a.value),w},f=(g=!1,y=(w=>(w=c.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const x=u.value,M=p.value,T=Object.keys(x),O={};if(T.length){const I=s(o),F=[],K=(D,j)=>{if(g)return t.value?y||t.value.includes(j):!!(y||D!=null&&D.expanded);{const Z=y||t.value&&t.value.includes(j);return!!(D!=null&&D.expanded||Z)}};T.forEach(D=>{const j=I[D],Z={...x[D]};if(Z.expanded=K(j,D),Z.lazy){const{loaded:Q=!1,loading:J=!1}=j||{};Z.loaded=!!Q,Z.loading=!!J,F.push(D)}O[D]=Z});const R=Object.keys(M);l.value&&R.length&&F.length&&R.forEach(D=>{const j=I[D],Z=M[D].children;if(F.includes(D)){if(O[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[D].children=Z}else{const{loaded:Q=!1,loading:J=!1}=j||{};O[D]={lazy:!0,loaded:!!Q,loading:!!J,expanded:K(j,D),children:Z,level:""}}})}o.value=O,(w=c.store)==null||w.updateTableScrollY()};Te(()=>t.value,()=>{f(!0)}),Te(()=>u.value,()=>{f()}),Te(()=>p.value,()=>{f()});const v=g=>{t.value=g,f()},m=(g,y)=>{c.store.assertRowKey();const w=e.rowKey.value,x=Ho(g,w),M=x&&o.value[x];if(x&&M&&"expanded"in M){const T=M.expanded;y=typeof y>"u"?!M.expanded:y,o.value[x].expanded=y,T!==y&&c.emit("expand-change",g,y),c.store.updateTableScrollY()}},h=g=>{c.store.assertRowKey();const y=e.rowKey.value,w=Ho(g,y),x=o.value[w];l.value&&x&&"loaded"in x&&!x.loaded?_(g,w,x):m(g,void 0)},_=(g,y,w)=>{const{load:x}=c.props;x&&!o.value[y].loaded&&(o.value[y].loading=!0,x(g,w,M=>{if(!Array.isArray(M))throw new TypeError("[ElTable] data must be an array");o.value[y].loading=!1,o.value[y].loaded=!0,o.value[y].expanded=!0,M.length&&(n.value[y]=M),c.emit("expand-change",g,!0)}))};return{loadData:_,loadOrToggle:h,toggleTreeExpansion:m,updateTreeExpandKeys:v,updateTreeData:f,normalize:d,states:{expandRowKeys:t,treeData:o,indent:r,lazy:l,lazyTreeNodeMap:n,lazyColumnIdentifier:a,childrenColumnName:i}}}const bre=(e,t)=>{const o=t.sortingColumn;return!o||typeof o.sortable=="string"?e:sre(e,t.sortProp,t.sortOrder,o.sortMethod,o.sortBy)},Id=e=>{const t=[];return e.forEach(o=>{o.children&&o.children.length>0?t.push.apply(t,Id(o.children)):t.push(o)}),t};function _re(){var e;const t=_t(),{size:o}=Ao((e=t.proxy)==null?void 0:e.$props),r=V(null),l=V([]),n=V([]),a=V(!1),i=V([]),c=V([]),u=V([]),p=V([]),d=V([]),f=V([]),v=V([]),m=V([]),h=[],_=V(0),g=V(0),y=V(0),w=V(!1),x=V([]),M=V(!1),T=V(!1),O=V(null),I=V({}),F=V(null),K=V(null),R=V(null),D=V(null),j=V(null);Te(l,()=>t.state&&L(!1),{deep:!0});const Z=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},Q=Y=>{var C;(C=Y.children)==null||C.forEach(S=>{S.fixed=Y.fixed,Q(S)})},J=()=>{i.value.forEach(ee=>{Q(ee)}),p.value=i.value.filter(ee=>ee.fixed===!0||ee.fixed==="left"),d.value=i.value.filter(ee=>ee.fixed==="right"),p.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&!i.value[0].fixed&&(i.value[0].fixed=!0,p.value.unshift(i.value[0]));const Y=i.value.filter(ee=>!ee.fixed);c.value=[].concat(p.value).concat(Y).concat(d.value);const C=Id(Y),S=Id(p.value),H=Id(d.value);_.value=C.length,g.value=S.length,y.value=H.length,u.value=[].concat(S).concat(C).concat(H),a.value=p.value.length>0||d.value.length>0},L=(Y,C=!1)=>{Y&&J(),C?t.state.doLayout():t.state.debouncedUpdateLayout()},X=Y=>x.value.includes(Y),N=()=>{w.value=!1,x.value.length&&(x.value=[],t.emit("selection-change",[]))},W=()=>{let Y;if(r.value){Y=[];const C=ga(x.value,r.value),S=ga(l.value,r.value);for(const H in C)Ot(C,H)&&!S[H]&&Y.push(C[H].row)}else Y=x.value.filter(C=>!l.value.includes(C));if(Y.length){const C=x.value.filter(S=>!Y.includes(S));x.value=C,t.emit("selection-change",C.slice())}},re=()=>(x.value||[]).slice(),ie=(Y,C=void 0,S=!0)=>{if(Qs(x.value,Y,C)){const ee=(x.value||[]).slice();S&&t.emit("select",ee,Y),t.emit("selection-change",ee)}},se=()=>{var Y,C;const S=T.value?!w.value:!(w.value||x.value.length);w.value=S;let H=!1,ee=0;const U=(C=(Y=t==null?void 0:t.store)==null?void 0:Y.states)==null?void 0:C.rowKey.value;l.value.forEach((he,Ue)=>{const st=Ue+ee;O.value?O.value.call(null,he,st)&&Qs(x.value,he,S)&&(H=!0):Qs(x.value,he,S)&&(H=!0),ee+=ge(Ho(he,U))}),H&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",x.value)},ve=()=>{const Y=ga(x.value,r.value);l.value.forEach(C=>{const S=Ho(C,r.value),H=Y[S];H&&(x.value[H.index]=C)})},le=()=>{var Y,C,S;if(((Y=l.value)==null?void 0:Y.length)===0){w.value=!1;return}let H;r.value&&(H=ga(x.value,r.value));const ee=function(st){return H?!!H[Ho(st,r.value)]:x.value.includes(st)};let U=!0,he=0,Ue=0;for(let st=0,At=(l.value||[]).length;st{var C;if(!t||!t.store)return 0;const{treeData:S}=t.store.states;let H=0;const ee=(C=S.value[Y])==null?void 0:C.children;return ee&&(H+=ee.length,ee.forEach(U=>{H+=ge(U)})),H},_e=(Y,C)=>{Array.isArray(Y)||(Y=[Y]);const S={};return Y.forEach(H=>{I.value[H.id]=C,S[H.columnKey||H.id]=C}),S},me=(Y,C,S)=>{K.value&&K.value!==Y&&(K.value.order=null),K.value=Y,R.value=C,D.value=S},Be=()=>{let Y=s(n);Object.keys(I.value).forEach(C=>{const S=I.value[C];if(!S||S.length===0)return;const H=iy({columns:u.value},C);H&&H.filterMethod&&(Y=Y.filter(ee=>S.some(U=>H.filterMethod.call(null,U,ee,H))))}),F.value=Y},ye=()=>{l.value=bre(F.value,{sortingColumn:K.value,sortProp:R.value,sortOrder:D.value})},Me=(Y=void 0)=>{Y&&Y.filter||Be(),ye()},te=Y=>{const{tableHeaderRef:C}=t.refs;if(!C)return;const S=Object.assign({},C.filterPanels),H=Object.keys(S);if(H.length)if(typeof Y=="string"&&(Y=[Y]),Array.isArray(Y)){const ee=Y.map(U=>cre({columns:u.value},U));H.forEach(U=>{const he=ee.find(Ue=>Ue.id===U);he&&(he.filteredValue=[])}),t.store.commit("filterChange",{column:ee,values:[],silent:!0,multi:!0})}else H.forEach(ee=>{const U=u.value.find(he=>he.id===ee);U&&(U.filteredValue=[])}),I.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ce=()=>{K.value&&(me(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:we,toggleRowExpansion:Ae,updateExpandRows:Ie,states:xe,isRowExpanded:Ne}=vre({data:l,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:ke,updateTreeData:$e,loadOrToggle:Pe,states:qe}=gre({data:l,rowKey:r}),{updateCurrentRowData:Ke,updateCurrentRow:Ee,setCurrentRowKey:We,states:nt}=mre({data:l,rowKey:r});return{assertRowKey:Z,updateColumns:J,scheduleLayout:L,isSelected:X,clearSelection:N,cleanSelection:W,getSelectionRows:re,toggleRowSelection:ie,_toggleAllSelection:se,toggleAllSelection:null,updateSelectionByRowKey:ve,updateAllSelected:le,updateFilters:_e,updateCurrentRow:Ee,updateSort:me,execFilter:Be,execSort:ye,execQuery:Me,clearFilter:te,clearSort:ce,toggleRowExpansion:Ae,setExpandRowKeysAdapter:Y=>{we(Y),Se(Y)},setCurrentRowKey:We,toggleRowExpansionAdapter:(Y,C)=>{u.value.some(({type:H})=>H==="expand")?Ae(Y,C):ke(Y,C)},isRowExpanded:Ne,updateExpandRows:Ie,updateCurrentRowData:Ke,loadOrToggle:Pe,updateTreeData:$e,states:{tableSize:o,rowKey:r,data:l,_data:n,isComplex:a,_columns:i,originColumns:c,columns:u,fixedColumns:p,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:v,rightFixedLeafColumns:m,updateOrderFns:h,leafColumnsLength:_,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:w,selection:x,reserveSelection:M,selectOnIndeterminate:T,selectable:O,filters:I,filteredData:F,sortingColumn:K,sortProp:R,sortOrder:D,hoverRow:j,...xe,...qe,...nt}}}function ov(e,t){return e.map(o=>{var r;return o.id===t.id?t:((r=o.children)!=null&&r.length&&(o.children=ov(o.children,t)),o)})}function rv(e){e.forEach(t=>{var o,r;t.no=(o=t.getColumnIndex)==null?void 0:o.call(t),(r=t.children)!=null&&r.length&&rv(t.children)}),e.sort((t,o)=>t.no-o.no)}function wre(){const e=_t(),t=_re();return{ns:Oe("table"),...t,mutations:{setData(a,i){const c=s(a._data)!==i;a.data.value=i,a._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,i,c,u){const p=s(a._columns);let d=[];c?(c&&!c.children&&(c.children=[]),c.children.push(i),d=ov(p,c)):(p.push(i),d=p),rv(d),a._columns.value=d,a.updateOrderFns.push(u),i.type==="selection"&&(a.selectable.value=i.selectable,a.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,i){var c;((c=i.getColumnIndex)==null?void 0:c.call(i))!==i.no&&(rv(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,i,c,u){const p=s(a._columns)||[];if(c)c.children.splice(c.children.findIndex(f=>f.id===i.id),1),et(()=>{var f;((f=c.children)==null?void 0:f.length)===0&&delete c.children}),a._columns.value=ov(p,c);else{const f=p.indexOf(i);f>-1&&(p.splice(f,1),a._columns.value=p)}const d=a.updateOrderFns.indexOf(u);d>-1&&a.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,i){const{prop:c,order:u,init:p}=i;if(c){const d=s(a.columns).find(f=>f.property===c);d&&(d.order=u,e.store.updateSort(d,c,u),e.store.commit("changeSortCondition",{init:p}))}},changeSortCondition(a,i){const{sortingColumn:c,sortProp:u,sortOrder:p}=a,d=s(c),f=s(u),v=s(p);v===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:d,prop:f,order:v}),e.store.updateTableScrollY()},filterChange(a,i){const{column:c,values:u,silent:p}=i,d=e.store.updateFilters(c,u);e.store.execQuery(),p||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(a,i){a.hoverRow.value=i},setCurrentRow(a,i){e.store.updateCurrentRow(i)}},commit:function(a,...i){const c=e.store.mutations;if(c[a])c[a].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){et(()=>e.layout.updateScrollY.apply(e.layout))}}}const ec={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function yre(e,t){if(!e)throw new Error("Table is required.");const o=wre();return o.toggleAllSelection=Zo(o._toggleAllSelection,10),Object.keys(ec).forEach(r=>{hy(vy(t,r),r,o)}),xre(o,t),o}function xre(e,t){Object.keys(ec).forEach(o=>{Te(()=>vy(t,o),r=>{hy(r,o,e)})})}function hy(e,t,o){let r=e,l=ec[t];typeof ec[t]=="object"&&(l=l.key,r=r||ec[t].default),o.states[l].value=r}function vy(e,t){if(t.includes(".")){const o=t.split(".");let r=e;return o.forEach(l=>{r=r[l]}),r}else return e[t]}class kre{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const o in t)Ot(t,o)&&(Kt(this[o])?this[o].value=t[o]:this[o]=t[o]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const o=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(o!=null&&o.wrapRef)){let r=!0;const l=this.scrollY.value;return r=o.wrapRef.scrollHeight>o.wrapRef.clientHeight,this.scrollY.value=r,l!==r}return!1}setHeight(t,o="height"){if(!Bt)return;const r=this.table.vnode.el;if(t=dre(t),this.height.value=Number(t),!r&&(t||t===0))return et(()=>this.setHeight(t,o));typeof t=="number"?(r.style[o]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[o]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let o=t;for(;o.tagName!=="DIV";){if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}updateColumnsWidth(){if(!Bt)return;const t=this.fit,o=this.table.vnode.el.clientWidth;let r=0;const l=this.getFlattenColumns(),n=l.filter(c=>typeof c.width!="number");if(l.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),n.length>0&&t){if(l.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=o){this.scrollX.value=!1;const c=o-r;if(n.length===1)n[0].realWidth=Number(n[0].minWidth||80)+c;else{const u=n.reduce((f,v)=>f+Number(v.minWidth||80),0),p=c/u;let d=0;n.forEach((f,v)=>{if(v===0)return;const m=Math.floor(Number(f.minWidth||80)*p);d+=m,f.realWidth=Number(f.minWidth||80)+m}),n[0].realWidth=Number(n[0].minWidth||80)+c-d}}else this.scrollX.value=!0,n.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),r+=c.realWidth}),this.scrollX.value=r>o,this.bodyWidth.value=r;const a=this.store.states.fixedColumns.value;if(a.length>0){let c=0;a.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const o=this.observers.indexOf(t);o!==-1&&this.observers.splice(o,1)}notifyObservers(t){this.observers.forEach(r=>{var l,n;switch(t){case"columns":(l=r.state)==null||l.onColumnsChange(this);break;case"scrollable":(n=r.state)==null||n.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Cre}=Nr,Sre=B({name:"ElTableFilterPanel",components:{ElCheckbox:Nr,ElCheckboxGroup:Cre,ElScrollbar:Kl,ElTooltip:er,ElIcon:Je,ArrowDown:Bl,ArrowUp:Cs},directives:{ClickOutside:Ul},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=_t(),{t:o}=Nt(),r=Oe("table-filter"),l=t==null?void 0:t.parent;l.filterPanels.value[e.column.id]||(l.filterPanels.value[e.column.id]=t);const n=V(!1),a=V(null),i=$(()=>e.column&&e.column.filters),c=$({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{u.value&&(typeof x<"u"&&x!==null?u.value.splice(0,1,x):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),p=$(()=>e.column?e.column.filterMultiple:!0),d=x=>x.value===c.value,f=()=>{n.value=!1},v=x=>{x.stopPropagation(),n.value=!n.value},m=()=>{n.value=!1},h=()=>{y(u.value),f()},_=()=>{u.value=[],y(u.value),f()},g=x=>{c.value=x,y(typeof x<"u"&&x!==null?u.value:[]),f()},y=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};Te(n,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const w=$(()=>{var x,M;return(M=(x=a.value)==null?void 0:x.popperRef)==null?void 0:M.contentRef});return{tooltipVisible:n,multiple:p,filteredValue:u,filterValue:c,filters:i,handleConfirm:h,handleReset:_,handleSelect:g,isActive:d,t:o,ns:r,showFilterPanel:v,hideFilterPanel:m,popperPaneRef:w,tooltip:a}}}),Ere={key:0},$re=["disabled"],Tre=["label","onClick"];function zre(e,t,o,r,l,n){const a=ot("el-checkbox"),i=ot("el-checkbox-group"),c=ot("el-scrollbar"),u=ot("arrow-up"),p=ot("arrow-down"),d=ot("el-icon"),f=ot("el-tooltip"),v=Di("click-outside");return b(),de(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:ne(()=>[e.multiple?(b(),z("div",Ere,[E("div",{class:P(e.ns.e("content"))},[oe(c,{"wrap-class":e.ns.e("wrap")},{default:ne(()=>[oe(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:P(e.ns.e("checkbox-group"))},{default:ne(()=>[(b(!0),z(Ge,null,Tt(e.filters,m=>(b(),de(a,{key:m.value,label:m.value},{default:ne(()=>[$t(ze(m.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:P(e.ns.e("bottom"))},[E("button",{class:P({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ze(e.t("el.table.confirmFilter")),11,$re),E("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ze(e.t("el.table.resetFilter")),1)],2)])):(b(),z("ul",{key:1,class:P(e.ns.e("list"))},[E("li",{class:P([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},ze(e.t("el.table.clearFilter")),3),(b(!0),z(Ge,null,Tt(e.filters,m=>(b(),z("li",{key:m.value,class:P([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:h=>e.handleSelect(m.value)},ze(m.text),11,Tre))),128))],2))]),default:ne(()=>[ht((b(),z("span",{class:P([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[oe(d,null,{default:ne(()=>[e.column.filterOpened?(b(),de(u,{key:0})):(b(),de(p,{key:1}))]),_:1})],2)),[[v,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Mre=Fe(Sre,[["render",zre],["__file","filter-panel.vue"]]);function my(e){const t=_t();jc(()=>{o.value.addObserver(t)}),vt(()=>{r(o.value),l(o.value)}),$l(()=>{r(o.value),l(o.value)}),cn(()=>{o.value.removeObserver(t)});const o=$(()=>{const n=e.layout;if(!n)throw new Error("Can not find table layout.");return n}),r=n=>{var a;const i=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const c=n.getFlattenColumns(),u={};c.forEach(p=>{u[p.id]=p});for(let p=0,d=i.length;p{var a,i;const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let p=0,d=c.length;p{h.stopPropagation()},n=(h,_)=>{!_.filters&&_.sortable?m(h,_,!1):_.filterable&&!_.sortable&&l(h),r==null||r.emit("header-click",_,h)},a=(h,_)=>{r==null||r.emit("header-contextmenu",_,h)},i=V(null),c=V(!1),u=V({}),p=(h,_)=>{if(Bt&&!(_.children&&_.children.length>0)&&i.value&&e.border){c.value=!0;const g=r;t("set-drag-visible",!0);const w=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,x=o.vnode.el.querySelector(`th.${_.id}`),M=x.getBoundingClientRect(),T=M.left-w+30;al(x,"noclick"),u.value={startMouseLeft:h.clientX,startLeft:M.right-w,startColumnLeft:M.left-w,tableLeft:w};const O=g==null?void 0:g.refs.resizeProxy;O.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const I=K=>{const R=K.clientX-u.value.startMouseLeft,D=u.value.startLeft+R;O.style.left=`${Math.max(T,D)}px`},F=()=>{if(c.value){const{startColumnLeft:K,startLeft:R}=u.value,j=Number.parseInt(O.style.left,10)-K;_.width=_.realWidth=j,g==null||g.emit("header-dragend",_.width,R-K,_,h),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,i.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",F),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{sr(x,"noclick")},0)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",F)}},d=(h,_)=>{if(_.children&&_.children.length>0)return;const g=h.target;if(!zr(g))return;const y=g==null?void 0:g.closest("th");if(!(!_||!_.resizable)&&!c.value&&e.border){const w=y.getBoundingClientRect(),x=document.body.style;w.width>12&&w.right-h.pageX<8?(x.cursor="col-resize",Dr(y,"is-sortable")&&(y.style.cursor="col-resize"),i.value=_):c.value||(x.cursor="",Dr(y,"is-sortable")&&(y.style.cursor="pointer"),i.value=null)}},f=()=>{Bt&&(document.body.style.cursor="")},v=({order:h,sortOrders:_})=>{if(h==="")return _[0];const g=_.indexOf(h||null);return _[g>_.length-2?0:g+1]},m=(h,_,g)=>{var y;h.stopPropagation();const w=_.order===g?null:g||v(_),x=(y=h.target)==null?void 0:y.closest("th");if(x&&Dr(x,"noclick")){sr(x,"noclick");return}if(!_.sortable)return;const M=e.store.states;let T=M.sortProp.value,O;const I=M.sortingColumn.value;(I!==_||I===_&&I.order===null)&&(I&&(I.order=null),M.sortingColumn.value=_,T=_.property),w?O=_.order=w:O=_.order=null,M.sortProp.value=T,M.sortOrder.value=O,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:n,handleHeaderContextMenu:a,handleMouseDown:p,handleMouseMove:d,handleMouseOut:f,handleSortClick:m,handleFilterClick:l}}function Ire(e){const t=Le(ml),o=Oe("table");return{getHeaderRowStyle:i=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:i}):c},getHeaderRowClass:i=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:i})),c.join(" ")},getHeaderCellStyle:(i,c,u,p)=>{var d;let f=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof f=="function"&&(f=f.call(null,{rowIndex:i,columnIndex:c,row:u,column:p}));const v=tv(c,p.fixed,e.store,u);return bi(v,"left"),bi(v,"right"),Object.assign({},f,v)},getHeaderCellClass:(i,c,u,p)=>{const d=ev(o.b(),c,p.fixed,e.store,u),f=[p.id,p.order,p.headerAlign,p.className,p.labelClassName,...d];p.children||f.push("is-leaf"),p.sortable&&f.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return typeof v=="string"?f.push(v):typeof v=="function"&&f.push(v.call(null,{rowIndex:i,columnIndex:c,row:u,column:p})),f.push(o.e("cell")),f.filter(m=>!!m).join(" ")}}}const gy=e=>{const t=[];return e.forEach(o=>{o.children?(t.push(o),t.push.apply(t,gy(o.children))):t.push(o)}),t},Ore=e=>{let t=1;const o=(n,a)=>{if(a&&(n.level=a.level+1,t{o(c,n),i+=c.colSpan}),n.colSpan=i}else n.colSpan=1};e.forEach(n=>{n.level=1,o(n,void 0)});const r=[];for(let n=0;n{n.children?(n.rowSpan=1,n.children.forEach(a=>a.isSubColumn=!0)):n.rowSpan=t-n.level+1,r[n.level-1].push(n)}),r};function Pre(e){const t=Le(ml),o=$(()=>Ore(e.store.states.originColumns.value));return{isGroup:$(()=>{const n=o.value.length>1;return n&&t&&(t.state.isGroup.value=!0),n}),toggleAllSelection:n=>{n.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:o}}var Bre=B({name:"ElTableHeader",components:{ElCheckbox:Nr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const o=_t(),r=Le(ml),l=Oe("table"),n=V({}),{onColumnsChange:a,onScrollableChange:i}=my(r);vt(async()=>{await et(),await et();const{prop:T,order:O}=e.defaultSort;r==null||r.store.commit("sort",{prop:T,order:O,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:p,handleMouseMove:d,handleMouseOut:f,handleSortClick:v,handleFilterClick:m}=Are(e,t),{getHeaderRowStyle:h,getHeaderRowClass:_,getHeaderCellStyle:g,getHeaderCellClass:y}=Ire(e),{isGroup:w,toggleAllSelection:x,columnRows:M}=Pre(e);return o.state={onColumnsChange:a,onScrollableChange:i},o.filterPanels=n,{ns:l,filterPanels:n,onColumnsChange:a,onScrollableChange:i,columnRows:M,getHeaderRowClass:_,getHeaderRowStyle:h,getHeaderCellClass:y,getHeaderCellStyle:g,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:p,handleMouseMove:d,handleMouseOut:f,handleSortClick:v,handleFilterClick:m,isGroup:w,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:o,getHeaderCellStyle:r,getHeaderCellClass:l,getHeaderRowClass:n,getHeaderRowStyle:a,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:p,handleSortClick:d,handleMouseOut:f,store:v,$parent:m}=this;let h=1;return rt("thead",{class:{[e.is("group")]:t}},o.map((_,g)=>rt("tr",{class:n(g),key:g,style:a(g)},_.map((y,w)=>(y.rowSpan>h&&(h=y.rowSpan),rt("th",{class:l(g,w,_,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:r(g,w,_,y),onClick:x=>i(x,y),onContextmenu:x=>c(x,y),onMousedown:x=>u(x,y),onMousemove:x=>p(x,y),onMouseout:f},[rt("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:w,store:v,_self:m}):y.label,y.sortable&&rt("span",{onClick:x=>d(x,y),class:"caret-wrapper"},[rt("i",{onClick:x=>d(x,y,"ascending"),class:"sort-caret ascending"}),rt("i",{onClick:x=>d(x,y,"descending"),class:"sort-caret descending"})]),y.filterable&&rt(Mre,{store:v,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(x,M)=>{y[x]=M}})])]))))))}});function Nre(e){const t=Le(ml),o=V(""),r=V(rt("div")),{nextZIndex:l}=ti(),n=(m,h,_)=>{var g;const y=t,w=Jh(m);let x;const M=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;w&&(x=sy({columns:e.store.states.columns.value},w,M),x&&(y==null||y.emit(`cell-${_}`,h,x,w,m))),y==null||y.emit(`row-${_}`,h,x,m)},a=(m,h)=>{n(m,h,"dblclick")},i=(m,h)=>{e.store.commit("setCurrentRow",h),n(m,h,"click")},c=(m,h)=>{n(m,h,"contextmenu")},u=Zo(m=>{e.store.commit("setHoverRow",m)},30),p=Zo(()=>{e.store.commit("setHoverRow",null)},30),d=m=>{const h=window.getComputedStyle(m,null),_=Number.parseInt(h.paddingLeft,10)||0,g=Number.parseInt(h.paddingRight,10)||0,y=Number.parseInt(h.paddingTop,10)||0,w=Number.parseInt(h.paddingBottom,10)||0;return{left:_,right:g,top:y,bottom:w}};return{handleDoubleClick:a,handleClick:i,handleContextMenu:c,handleMouseEnter:u,handleMouseLeave:p,handleCellMouseEnter:(m,h,_)=>{var g;const y=t,w=Jh(m),x=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;if(w){const L=sy({columns:e.store.states.columns.value},w,x),X=y.hoverState={cell:w,column:L,row:h};y==null||y.emit("cell-mouse-enter",X.row,X.column,X.cell,m)}if(!_)return;const M=m.target.querySelector(".cell");if(!(Dr(M,`${x}-tooltip`)&&M.childNodes.length))return;const T=document.createRange();T.setStart(M,0),T.setEnd(M,M.childNodes.length);let O=T.getBoundingClientRect().width,I=T.getBoundingClientRect().height;O-Math.floor(O)<.001&&(O=Math.floor(O)),I-Math.floor(I)<.001&&(I=Math.floor(I));const{top:R,left:D,right:j,bottom:Z}=d(M),Q=D+j,J=R+Z;(O+Q>M.offsetWidth||I+J>M.offsetHeight||M.scrollWidth>M.offsetWidth)&&hre(t==null?void 0:t.refs.tableWrapper,w,w.innerText||w.textContent,l,_)},handleCellMouseLeave:m=>{if(!Jh(m))return;const _=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_==null?void 0:_.row,_==null?void 0:_.column,_==null?void 0:_.cell,m)},tooltipContent:o,tooltipTrigger:r}}function Lre(e){const t=Le(ml),o=Oe("table");return{getRowStyle:(u,p)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:u,rowIndex:p}):d||null},getRowClass:(u,p)=>{const d=[o.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&p%2===1&&d.push(o.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return typeof f=="string"?d.push(f):typeof f=="function"&&d.push(f.call(null,{row:u,rowIndex:p})),d},getCellStyle:(u,p,d,f)=>{const v=t==null?void 0:t.props.cellStyle;let m=v??{};typeof v=="function"&&(m=v.call(null,{rowIndex:u,columnIndex:p,row:d,column:f}));const h=tv(p,e==null?void 0:e.fixed,e.store);return bi(h,"left"),bi(h,"right"),Object.assign({},m,h)},getCellClass:(u,p,d,f,v)=>{const m=ev(o.b(),p,e==null?void 0:e.fixed,e.store,void 0,v),h=[f.id,f.align,f.className,...m],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?h.push(_):typeof _=="function"&&h.push(_.call(null,{rowIndex:u,columnIndex:p,row:d,column:f})),h.push(o.e("cell")),h.filter(g=>!!g).join(" ")},getSpan:(u,p,d,f)=>{let v=1,m=1;const h=t==null?void 0:t.props.spanMethod;if(typeof h=="function"){const _=h({row:u,column:p,rowIndex:d,columnIndex:f});Array.isArray(_)?(v=_[0],m=_[1]):typeof _=="object"&&(v=_.rowspan,m=_.colspan)}return{rowspan:v,colspan:m}},getColspanRealWidth:(u,p,d)=>{if(p<1)return u[d].realWidth;const f=u.map(({realWidth:v,width:m})=>v||m).slice(d,d+p);return Number(f.reduce((v,m)=>Number(v)+Number(m),-1))}}}function Rre(e){const t=Le(ml),o=Oe("table"),{handleDoubleClick:r,handleClick:l,handleContextMenu:n,handleMouseEnter:a,handleMouseLeave:i,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:p,tooltipTrigger:d}=Nre(e),{getRowStyle:f,getRowClass:v,getCellStyle:m,getCellClass:h,getSpan:_,getColspanRealWidth:g}=Lre(e),y=$(()=>e.store.states.columns.value.findIndex(({type:O})=>O==="default")),w=(O,I)=>{const F=t.props.rowKey;return F?Ho(O,F):I},x=(O,I,F,K=!1)=>{const{tooltipEffect:R,tooltipOptions:D,store:j}=e,{indent:Z,columns:Q}=j.states,J=v(O,I);let L=!0;return F&&(J.push(o.em("row",`level-${F.level}`)),L=F.display),rt("tr",{style:[L?null:{display:"none"},f(O,I)],class:J,key:w(O,I),onDblclick:N=>r(N,O),onClick:N=>l(N,O),onContextmenu:N=>n(N,O),onMouseenter:()=>a(I),onMouseleave:i},Q.value.map((N,W)=>{const{rowspan:re,colspan:ie}=_(O,N,I,W);if(!re||!ie)return null;const se=Object.assign({},N);se.realWidth=g(Q.value,ie,W);const ve={store:e.store,_self:e.context||t,column:se,row:O,$index:I,cellIndex:W,expanded:K};W===y.value&&F&&(ve.treeNode={indent:F.level*Z.value,level:F.level},typeof F.expanded=="boolean"&&(ve.treeNode.expanded=F.expanded,"loading"in F&&(ve.treeNode.loading=F.loading),"noLazyChildren"in F&&(ve.treeNode.noLazyChildren=F.noLazyChildren)));const le=`${I},${W}`,ge=se.columnKey||se.rawColumnKey||"",_e=M(W,N,ve),me=N.showOverflowTooltip&&Jb({effect:R},D,N.showOverflowTooltip);return rt("td",{style:m(I,W,O,N),class:h(I,W,O,N,ie-1),key:`${ge}${le}`,rowspan:re,colspan:ie,onMouseenter:Be=>c(Be,O,me),onMouseleave:u},[_e])}))},M=(O,I,F)=>I.renderCell(F);return{wrappedRowRender:(O,I)=>{const F=e.store,{isRowExpanded:K,assertRowKey:R}=F,{treeData:D,lazyTreeNodeMap:j,childrenColumnName:Z,rowKey:Q}=F.states,J=F.states.columns.value;if(J.some(({type:X})=>X==="expand")){const X=K(O),N=x(O,I,void 0,X),W=t.renderExpanded;return X?W?[[N,rt("tr",{key:`expanded-row__${N.key}`},[rt("td",{colspan:J.length,class:`${o.e("cell")} ${o.e("expanded-cell")}`},[W({row:O,$index:I,store:F,expanded:X})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(D.value).length){R();const X=Ho(O,Q.value);let N=D.value[X],W=null;N&&(W={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(W.noLazyChildren=!(N.children&&N.children.length)),W.loading=N.loading));const re=[x(O,I,W)];if(N){let ie=0;const se=(le,ge)=>{le&&le.length&&ge&&le.forEach(_e=>{const me={display:ge.display&&ge.expanded,level:ge.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Be=Ho(_e,Q.value);if(Be==null)throw new Error("For nested data item, row-key is required.");if(N={...D.value[Be]},N&&(me.expanded=N.expanded,N.level=N.level||me.level,N.display=!!(N.expanded&&me.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(me.noLazyChildren=!(N.children&&N.children.length)),me.loading=N.loading)),ie++,re.push(x(_e,I+ie,me)),N){const ye=j.value[Be]||_e[Z.value];se(ye,N)}})};N.display=!0;const ve=j.value[X]||O[Z.value];se(ve,N)}return re}else return x(O,I,void 0)},tooltipContent:p,tooltipTrigger:d}}var Vre=B({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=_t(),o=Le(ml),r=Oe("table"),{wrappedRowRender:l,tooltipContent:n,tooltipTrigger:a}=Rre(e),{onColumnsChange:i,onScrollableChange:c}=my(o);return Te(e.store.states.hoverRow,(u,p)=>{!e.store.states.isComplex.value||!Bt||Ya(()=>{const d=t==null?void 0:t.vnode.el,f=Array.from((d==null?void 0:d.children)||[]).filter(h=>h==null?void 0:h.classList.contains(`${r.e("row")}`)),v=f[p],m=f[u];v&&sr(v,"hover-row"),m&&al(m,"hover-row")})}),cn(()=>{var u;(u=qr)==null||u()}),{ns:r,onColumnsChange:i,onScrollableChange:c,wrappedRowRender:l,tooltipContent:n,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,o=t.states.data.value||[];return rt("tbody",{tabIndex:-1},[o.reduce((r,l)=>r.concat(e(l,r.length)),[])])}});function Hre(){const e=Le(ml),t=e==null?void 0:e.store,o=$(()=>t.states.fixedLeafColumnsLength.value),r=$(()=>t.states.rightFixedColumns.value.length),l=$(()=>t.states.columns.value.length),n=$(()=>t.states.fixedColumns.value.length),a=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:o,rightFixedLeafCount:r,columnsCount:l,leftFixedCount:n,rightFixedCount:a,columns:t.states.columns}}function Fre(e){const{columns:t}=Hre(),o=Oe("table");return{getCellClasses:(n,a)=>{const i=n[a],c=[o.e("cell"),i.id,i.align,i.labelClassName,...ev(o.b(),a,i.fixed,e.store)];return i.className&&c.push(i.className),i.children||c.push(o.is("leaf")),c},getCellStyles:(n,a)=>{const i=tv(a,n.fixed,e.store);return bi(i,"left"),bi(i,"right"),i},columns:t}}var Dre=B({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:o,columns:r}=Fre(e);return{ns:Oe("table"),getCellClasses:t,getCellStyles:o,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:o,summaryMethod:r,sumText:l}=this,n=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:n}):e.forEach((i,c)=>{if(c===0){a[c]=l;return}const u=n.map(v=>Number(v[i.property])),p=[];let d=!0;u.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const m=`${v}`.split(".")[1];p.push(m?m.length:0)}});const f=Math.max.apply(null,p);d?a[c]="":a[c]=u.reduce((v,m)=>{const h=Number(m);return Number.isNaN(+h)?v:Number.parseFloat((v+m).toFixed(Math.min(f,20)))},0)}),rt(rt("tfoot",[rt("tr",{},[...e.map((i,c)=>rt("td",{key:c,colspan:i.colSpan,rowspan:i.rowSpan,class:o(e,c),style:t(i,c)},[rt("div",{class:["cell",i.labelClassName]},[a[c]])]))])]))}});function jre(e){return{setCurrentRow:p=>{e.commit("setCurrentRow",p)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(p,d)=>{e.toggleRowSelection(p,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:p=>{e.clearFilter(p)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(p,d)=>{e.toggleRowExpansionAdapter(p,d)},clearSort:()=>{e.clearSort()},sort:(p,d)=>{e.commit("sort",{prop:p,order:d})}}}function Kre(e,t,o,r){const l=V(!1),n=V(null),a=V(!1),i=N=>{a.value=N},c=V({width:null,height:null,headerHeight:null}),u=V(!1),p={display:"inline-block",verticalAlign:"middle"},d=V(),f=V(0),v=V(0),m=V(0),h=V(0),_=V(0);lr(()=>{t.setHeight(e.height)}),lr(()=>{t.setMaxHeight(e.maxHeight)}),Te(()=>[e.currentRowKey,o.states.rowKey],([N,W])=>{!s(W)||!s(N)||o.setCurrentRowKey(`${N}`)},{immediate:!0}),Te(()=>e.data,N=>{r.store.commit("setData",N)},{immediate:!0,deep:!0}),lr(()=>{e.expandRowKeys&&o.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(N,W)=>{const{pixelX:re,pixelY:ie}=W;Math.abs(re)>=Math.abs(ie)&&(r.refs.bodyWrapper.scrollLeft+=W.pixelX/5)},w=$(()=>e.height||e.maxHeight||o.states.fixedColumns.value.length>0||o.states.rightFixedColumns.value.length>0),x=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),M=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(F)};vt(async()=>{await et(),o.updateColumns(),K(),requestAnimationFrame(M);const N=r.vnode.el,W=r.refs.headerWrapper;e.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),c.value={width:d.value=N.offsetWidth,height:N.offsetHeight,headerHeight:e.showHeader&&W?W.offsetHeight:null},o.states.columns.value.forEach(re=>{re.filteredValue&&re.filteredValue.length&&r.store.commit("filterChange",{column:re,values:re.filteredValue,silent:!0})}),r.$ready=!0});const T=(N,W)=>{if(!N)return;const re=Array.from(N.classList).filter(ie=>!ie.startsWith("is-scrolling-"));re.push(t.scrollX.value?W:"is-scrolling-none"),N.className=re.join(" ")},O=N=>{const{tableWrapper:W}=r.refs;T(W,N)},I=N=>{const{tableWrapper:W}=r.refs;return!!(W&&W.classList.contains(N))},F=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ge="is-scrolling-none";I(ge)||O(ge);return}const N=r.refs.scrollBarRef.wrapRef;if(!N)return;const{scrollLeft:W,offsetWidth:re,scrollWidth:ie}=N,{headerWrapper:se,footerWrapper:ve}=r.refs;se&&(se.scrollLeft=W),ve&&(ve.scrollLeft=W);const le=ie-re-1;W>=le?O("is-scrolling-right"):O(W===0?"is-scrolling-left":"is-scrolling-middle")},K=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&eo(r.refs.scrollBarRef.wrapRef,"scroll",F,{passive:!0}),e.fit?jo(r.vnode.el,R):eo(window,"resize",R),jo(r.refs.bodyWrapper,()=>{var N,W;R(),(W=(N=r.refs)==null?void 0:N.scrollBarRef)==null||W.update()}))},R=()=>{var N,W,re,ie;const se=r.vnode.el;if(!r.$ready||!se)return;let ve=!1;const{width:le,height:ge,headerHeight:_e}=c.value,me=d.value=se.offsetWidth;le!==me&&(ve=!0);const Be=se.offsetHeight;(e.height||w.value)&&ge!==Be&&(ve=!0);const ye=e.tableLayout==="fixed"?r.refs.headerWrapper:(N=r.refs.tableHeaderRef)==null?void 0:N.$el;e.showHeader&&(ye==null?void 0:ye.offsetHeight)!==_e&&(ve=!0),f.value=((W=r.refs.tableWrapper)==null?void 0:W.scrollHeight)||0,m.value=(ye==null?void 0:ye.scrollHeight)||0,h.value=((re=r.refs.footerWrapper)==null?void 0:re.offsetHeight)||0,_.value=((ie=r.refs.appendWrapper)==null?void 0:ie.offsetHeight)||0,v.value=f.value-m.value-h.value-_.value,ve&&(c.value={width:me,height:Be,headerHeight:e.showHeader&&(ye==null?void 0:ye.offsetHeight)||0},M())},D=Eo(),j=$(()=>{const{bodyWidth:N,scrollY:W,gutterWidth:re}=t;return N.value?`${N.value-(W.value?re:0)}px`:""}),Z=$(()=>e.maxHeight?"fixed":e.tableLayout),Q=$(()=>{if(e.data&&e.data.length)return null;let N="100%";e.height&&v.value&&(N=`${v.value}px`);const W=d.value;return{width:W?`${W}px`:"",height:N}}),J=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),L=$(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+h.value}px)`}:{maxHeight:`${e.maxHeight-m.value-h.value}px`}:{});return{isHidden:l,renderExpanded:n,setDragVisible:i,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:y,tableSize:D,emptyBlockStyle:Q,handleFixedMousewheel:(N,W)=>{const re=r.refs.bodyWrapper;if(Math.abs(W.spinY)>0){const ie=re.scrollTop;W.pixelY<0&&ie!==0&&N.preventDefault(),W.pixelY>0&&re.scrollHeight-re.clientHeight>ie&&N.preventDefault(),re.scrollTop+=Math.ceil(W.pixelY/5)}else re.scrollLeft+=Math.ceil(W.pixelX/5)},resizeProxyVisible:a,bodyWidth:j,resizeState:c,doLayout:M,tableBodyStyles:x,tableLayout:Z,scrollbarViewStyle:p,tableInnerStyle:J,scrollbarStyle:L}}function Wre(e){const t=V(),o=()=>{const l=e.vnode.el.querySelector(".hidden-columns"),n={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(i=>i())}),t.value.observe(l,n)};vt(()=>{o()}),cn(()=>{var r;(r=t.value)==null||r.disconnect()})}var Ure={data:{type:Array,default:()=>[]},size:No,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function by(e){const t=e.tableLayout==="auto";let o=e.columns||[];t&&o.every(l=>l.width===void 0)&&(o=[]);const r=l=>{const n={key:`${e.tableLayout}_${l.id}`,style:{},name:void 0};return t?n.style={width:`${l.width}px`}:n.name=l.id,n};return rt("colgroup",{},o.map(l=>rt("col",r(l))))}by.props=["columns","tableLayout"];const qre=()=>{const e=V(),t=(n,a)=>{const i=e.value;i&&i.scrollTo(n,a)},o=(n,a)=>{const i=e.value;i&&ct(a)&&["Top","Left"].includes(n)&&i[`setScroll${n}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:n=>o("Top",n),setScrollLeft:n=>o("Left",n)}};let Yre=1;const Gre=B({name:"ElTable",directives:{Mousewheel:cU},components:{TableHeader:Bre,TableBody:Vre,TableFooter:Dre,ElScrollbar:Kl,hColgroup:by},props:Ure,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Nt(),o=Oe("table"),r=_t();zt(ml,r);const l=yre(r,e);r.store=l;const n=new kre({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=n;const a=$(()=>(l.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:p,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:v,clearSort:m,sort:h}=jre(l),{isHidden:_,renderExpanded:g,setDragVisible:y,isGroup:w,handleMouseLeave:x,handleHeaderFooterMousewheel:M,tableSize:T,emptyBlockStyle:O,handleFixedMousewheel:I,resizeProxyVisible:F,bodyWidth:K,resizeState:R,doLayout:D,tableBodyStyles:j,tableLayout:Z,scrollbarViewStyle:Q,tableInnerStyle:J,scrollbarStyle:L}=Kre(e,n,l,r),{scrollBarRef:X,scrollTo:N,setScrollLeft:W,setScrollTop:re}=qre(),ie=Zo(D,50),se=`${o.namespace.value}-table_${Yre++}`;r.tableId=se,r.state={isGroup:w,resizeState:R,doLayout:D,debouncedUpdateLayout:ie};const ve=$(()=>e.sumText||t("el.table.sumText")),le=$(()=>e.emptyText||t("el.table.emptyText"));return Wre(r),{ns:o,layout:n,store:l,handleHeaderFooterMousewheel:M,handleMouseLeave:x,tableId:se,tableSize:T,isHidden:_,isEmpty:a,renderExpanded:g,resizeProxyVisible:F,resizeState:R,isGroup:w,bodyWidth:K,tableBodyStyles:j,emptyBlockStyle:O,debouncedUpdateLayout:ie,handleFixedMousewheel:I,setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:p,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:v,clearSort:m,doLayout:D,sort:h,t,setDragVisible:y,context:r,computedSumText:ve,computedEmptyText:le,tableLayout:Z,scrollbarViewStyle:Q,tableInnerStyle:J,scrollbarStyle:L,scrollBarRef:X,scrollTo:N,setScrollLeft:W,setScrollTop:re}}}),Xre=["data-prefix"],Zre={ref:"hiddenColumns",class:"hidden-columns"};function Jre(e,t,o,r,l,n){const a=ot("hColgroup"),i=ot("table-header"),c=ot("table-body"),u=ot("table-footer"),p=ot("el-scrollbar"),d=Di("mousewheel");return b(),z("div",{ref:"tableWrapper",class:P([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...f)=>e.handleMouseLeave&&e.handleMouseLeave(...f))},[E("div",{class:P(e.ns.e("inner-wrapper")),style:Qe(e.tableInnerStyle)},[E("div",Zre,[be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ht((b(),z("div",{key:0,ref:"headerWrapper",class:P(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:P(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),oe(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):ue("v-if",!0),E("div",{ref:"bodyWrapper",class:P(e.ns.e("body-wrapper"))},[oe(p,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ne(()=>[E("table",{ref:"tableBody",class:P(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(b(),de(i,{key:0,ref:"tableHeaderRef",class:P(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ue("v-if",!0),oe(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(b(),de(u,{key:1,class:P(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ue("v-if",!0)],6),e.isEmpty?(b(),z("div",{key:0,ref:"emptyBlock",style:Qe(e.emptyBlockStyle),class:P(e.ns.e("empty-block"))},[E("span",{class:P(e.ns.e("empty-text"))},[be(e.$slots,"empty",{},()=>[$t(ze(e.computedEmptyText),1)])],2)],6)):ue("v-if",!0),e.$slots.append?(b(),z("div",{key:1,ref:"appendWrapper",class:P(e.ns.e("append-wrapper"))},[be(e.$slots,"append")],2)):ue("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?ht((b(),z("div",{key:1,ref:"footerWrapper",class:P(e.ns.e("footer-wrapper"))},[E("table",{class:P(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe(e.tableBodyStyles)},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),oe(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Pt,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):ue("v-if",!0),e.border||e.isGroup?(b(),z("div",{key:2,class:P(e.ns.e("border-left-patch"))},null,2)):ue("v-if",!0)],6),ht(E("div",{ref:"resizeProxy",class:P(e.ns.e("column-resize-proxy"))},null,2),[[Pt,e.resizeProxyVisible]])],46,Xre)}var Qre=Fe(Gre,[["render",Jre],["__file","table.vue"]]);const ele={selection:"table-column--selection",expand:"table__expand-column"},tle={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},ole=e=>ele[e]||"",rle={selection:{renderHeader({store:e,column:t}){function o(){return e.states.data.value&&e.states.data.value.length===0}return rt(Nr,{disabled:o(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:o,$index:r}){return rt(Nr,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:o.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let o=t+1;const r=e.index;return typeof r=="number"?o=t+r:typeof r=="function"&&(o=r(t)),rt("div",{},[o])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:o}){const{ns:r}=t,l=[r.e("expand-icon")];return o&&l.push(r.em("expand-icon","expanded")),rt("div",{class:l,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[rt(Je,null,{default:()=>[rt(Ko)]})]})},sortable:!1,resizable:!1}};function lle({row:e,column:t,$index:o}){var r;const l=t.property,n=l&&Eu(e,l).value;return t&&t.formatter?t.formatter(e,t,n,o):((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||""}function nle({row:e,treeNode:t,store:o},r=!1){const{ns:l}=o;if(!t)return r?[rt("span",{class:l.e("placeholder")})]:null;const n=[],a=function(i){i.stopPropagation(),!t.loading&&o.loadOrToggle(e)};if(t.indent&&n.push(rt("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const i=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let c=Ko;t.loading&&(c=Rl),n.push(rt("div",{class:i,onClick:a},{default:()=>[rt(Je,{class:{[l.is("loading")]:t.loading}},{default:()=>[rt(c)]})]}))}else n.push(rt("span",{class:l.e("placeholder")}));return n}function _y(e,t){return e.reduce((o,r)=>(o[r]=r,o),t)}function ale(e,t){const o=_t();return{registerComplexWatchers:()=>{const n=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},i=_y(n,a);Object.keys(i).forEach(c=>{const u=a[c];Ot(t,u)&&Te(()=>t[u],p=>{let d=p;u==="width"&&c==="realWidth"&&(d=Qh(p)),u==="minWidth"&&c==="realMinWidth"&&(d=cy(p)),o.columnConfig.value[u]=d,o.columnConfig.value[c]=d;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const n=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=_y(n,a);Object.keys(i).forEach(c=>{const u=a[c];Ot(t,u)&&Te(()=>t[u],p=>{o.columnConfig.value[c]=p})})}}}function ile(e,t,o){const r=_t(),l=V(""),n=V(!1),a=V(),i=V(),c=Oe("table");lr(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),lr(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:a.value,i.value});const u=$(()=>{let x=r.vnode.vParent||r.parent;for(;x&&!x.tableId&&!x.columnId;)x=x.vnode.vParent||x.parent;return x}),p=$(()=>{const{store:x}=r.parent;if(!x)return!1;const{treeData:M}=x.states,T=M.value;return T&&Object.keys(T).length>0}),d=V(Qh(e.width)),f=V(cy(e.minWidth)),v=x=>(d.value&&(x.width=d.value),f.value&&(x.minWidth=f.value),!d.value&&f.value&&(x.width=void 0),x.minWidth||(x.minWidth=80),x.realWidth=Number(x.width===void 0?x.minWidth:x.width),x),m=x=>{const M=x.type,T=rle[M]||{};Object.keys(T).forEach(I=>{const F=T[I];I!=="className"&&F!==void 0&&(x[I]=F)});const O=ole(M);if(O){const I=`${s(c.namespace)}-${O}`;x.className=x.className?`${x.className} ${I}`:I}return x},h=x=>{Array.isArray(x)?x.forEach(T=>M(T)):M(x);function M(T){var O;((O=T==null?void 0:T.type)==null?void 0:O.name)==="ElTableColumn"&&(T.vParent=r)}};return{columnId:l,realAlign:a,isSubColumn:n,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:x=>{e.renderHeader||x.type!=="selection"&&(x.renderHeader=T=>(r.columnConfig.value.label,be(t,"header",T,()=>[x.label])));let M=x.renderCell;return x.type==="expand"?(x.renderCell=T=>rt("div",{class:"cell"},[M(T)]),o.value.renderExpanded=T=>t.default?t.default(T):t.default):(M=M||lle,x.renderCell=T=>{let O=null;if(t.default){const j=t.default(T);O=j.some(Z=>Z.type!==Yo)?j:M(T)}else O=M(T);const{columns:I}=o.value.store.states,F=I.value.findIndex(j=>j.type==="default"),K=p.value&&T.cellIndex===F,R=nle(T,K),D={class:"cell",style:{}};return x.showOverflowTooltip&&(D.class=`${D.class} ${s(c.namespace)}-tooltip`,D.style={width:`${(T.column.realWidth||Number(T.column.width))-1}px`}),h(O),rt("div",D,[R,O])}),x},getPropsData:(...x)=>x.reduce((M,T)=>(Array.isArray(T)&&T.forEach(O=>{M[O]=e[O]}),M),{}),getColumnElIndex:(x,M)=>Array.prototype.indexOf.call(x,M),updateColumnOrder:()=>{o.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var sle={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let cle=1;var wy=B({name:"ElTableColumn",components:{ElCheckbox:Nr},props:sle,setup(e,{slots:t}){const o=_t(),r=V({}),l=$(()=>{let w=o.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:n,registerComplexWatchers:a}=ale(l,e),{columnId:i,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:p,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:v,getPropsData:m,getColumnElIndex:h,realAlign:_,updateColumnOrder:g}=ile(e,t,l),y=p.value;i.value=`${y.tableId||y.columnId}_column_${cle++}`,jc(()=>{c.value=l.value!==y;const w=e.type||"default",x=e.sortable===""?!0:e.sortable,M=ko(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,T={...tle[w],id:i.value,type:w,property:e.prop||e.property,align:_,headerAlign:u,showOverflowTooltip:M,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:x,index:e.index,rawColumnKey:o.vnode.key};let R=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);R=ure(T,R),R=pre(v,d,f)(R),r.value=R,n(),a()}),vt(()=>{var w;const x=p.value,M=c.value?x.vnode.el.children:(w=x.refs.hiddenColumns)==null?void 0:w.children,T=()=>h(M||[],o.vnode.el);r.value.getColumnIndex=T,T()>-1&&l.value.store.commit("insertColumn",r.value,c.value?x.columnConfig.value:null,g)}),Zt(()=>{l.value.store.commit("removeColumn",r.value,c.value?y.columnConfig.value:null,g)}),o.columnId=i.value,o.columnConfig=r},render(){var e,t,o;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Array.isArray(r))for(const a of r)((o=a.type)==null?void 0:o.name)==="ElTableColumn"||a.shapeFlag&2?l.push(a):a.type===Ge&&Array.isArray(a.children)&&a.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!ft(i==null?void 0:i.children)&&l.push(i)});return rt("div",l)}catch{return rt("div",[])}}});const ule=xt(Qre,{TableColumn:wy}),dle=fo(wy);var tc=(e=>(e.ASC="asc",e.DESC="desc",e))(tc||{}),oc=(e=>(e.CENTER="center",e.RIGHT="right",e))(oc||{}),yy=(e=>(e.LEFT="left",e.RIGHT="right",e))(yy||{});const lv={asc:"desc",desc:"asc"},rc=Symbol("placeholder"),ple=(e,t,o)=>{var r;const l={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};o||(l.flexShrink=1);const n={...(r=e.style)!=null?r:{},...l,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(n.maxWidth=e.maxWidth),e.minWidth&&(n.minWidth=e.minWidth)),n};function fle(e,t,o){const r=$(()=>s(t).filter(h=>!h.hidden)),l=$(()=>s(r).filter(h=>h.fixed==="left"||h.fixed===!0)),n=$(()=>s(r).filter(h=>h.fixed==="right")),a=$(()=>s(r).filter(h=>!h.fixed)),i=$(()=>{const h=[];return s(l).forEach(_=>{h.push({..._,placeholderSign:rc})}),s(a).forEach(_=>{h.push(_)}),s(n).forEach(_=>{h.push({..._,placeholderSign:rc})}),h}),c=$(()=>s(l).length||s(n).length),u=$(()=>s(t).reduce((_,g)=>(_[g.key]=ple(g,s(o),e.fixed),_),{})),p=$(()=>s(r).reduce((h,_)=>h+_.width,0)),d=h=>s(t).find(_=>_.key===h),f=h=>s(u)[h],v=(h,_)=>{h.width=_};function m(h){var _;const{key:g}=h.currentTarget.dataset;if(!g)return;const{sortState:y,sortBy:w}=e;let x=tc.ASC;Ct(y)?x=lv[y[g]]:x=lv[w.order],(_=e.onColumnSort)==null||_.call(e,{column:d(g),key:g,order:x})}return{columns:t,columnsStyles:u,columnsTotalWidth:p,fixedColumnsOnLeft:l,fixedColumnsOnRight:n,hasFixedColumns:c,mainColumns:i,normalColumns:a,visibleColumns:r,getColumn:d,getColumnStyle:f,updateColumnWidth:v,onColumnSorted:m}}const hle=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:l})=>{const n=V({scrollLeft:0,scrollTop:0});function a(v){var m,h,_;const{scrollTop:g}=v;(m=t.value)==null||m.scrollTo(v),(h=o.value)==null||h.scrollToTop(g),(_=r.value)==null||_.scrollToTop(g)}function i(v){n.value=v,a(v)}function c(v){n.value.scrollTop=v,a(s(n))}function u(v){var m,h;n.value.scrollLeft=v,(h=(m=t.value)==null?void 0:m.scrollTo)==null||h.call(m,s(n))}function p(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function d({scrollTop:v}){const{scrollTop:m}=s(n);v!==m&&c(v)}function f(v,m="auto"){var h;(h=t.value)==null||h.scrollToRow(v,m)}return Te(()=>s(n).scrollTop,(v,m)=>{v>m&&l()}),{scrollPos:n,scrollTo:i,scrollToLeft:u,scrollToTop:c,scrollToRow:f,onScroll:p,onVerticalScroll:d}},vle=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r})=>{const l=_t(),{emit:n}=l,a=qt(!1),i=qt(null),c=V(e.defaultExpandedRowKeys||[]),u=V(-1),p=qt(null),d=V({}),f=V({}),v=qt({}),m=qt({}),h=qt({}),_=$(()=>ct(e.estimatedRowHeight));function g(I){var F;(F=e.onRowsRendered)==null||F.call(e,I),I.rowCacheEnd>s(u)&&(u.value=I.rowCacheEnd)}function y({hovered:I,rowKey:F}){i.value=I?F:null}function w({expanded:I,rowData:F,rowIndex:K,rowKey:R}){var D,j;const Z=[...s(c)],Q=Z.indexOf(R);I?Q===-1&&Z.push(R):Q>-1&&Z.splice(Q,1),c.value=Z,n("update:expandedRowKeys",Z),(D=e.onRowExpand)==null||D.call(e,{expanded:I,rowData:F,rowIndex:K,rowKey:R}),(j=e.onExpandedRowsChange)==null||j.call(e,Z)}const x=Zo(()=>{var I,F,K,R;a.value=!0,d.value={...s(d),...s(f)},M(s(p),!1),f.value={},p.value=null,(I=t.value)==null||I.forceUpdate(),(F=o.value)==null||F.forceUpdate(),(K=r.value)==null||K.forceUpdate(),(R=l.proxy)==null||R.$forceUpdate(),a.value=!1},0);function M(I,F=!1){s(_)&&[t,o,r].forEach(K=>{const R=s(K);R&&R.resetAfterRowIndex(I,F)})}function T(I,F,K){const R=s(p);(R===null||R>K)&&(p.value=K),f.value[I]=F}function O({rowKey:I,height:F,rowIndex:K},R){R?R===yy.RIGHT?h.value[I]=F:v.value[I]=F:m.value[I]=F;const D=Math.max(...[v,h,m].map(j=>j.value[I]||0));s(d)[I]!==D&&(T(I,D,K),x())}return{hoveringRowKey:i,expandedRowKeys:c,lastRenderedRowIndex:u,isDynamic:_,isResetting:a,rowHeights:d,resetAfterIndex:M,onRowExpanded:w,onRowHovered:y,onRowsRendered:g,onRowHeightChange:O}},mle=(e,{expandedRowKeys:t,lastRenderedRowIndex:o,resetAfterIndex:r})=>{const l=V({}),n=$(()=>{const i={},{data:c,rowKey:u}=e,p=s(t);if(!p||!p.length)return c;const d=[],f=new Set;p.forEach(m=>f.add(m));let v=c.slice();for(v.forEach(m=>i[m[u]]=0);v.length>0;){const m=v.shift();d.push(m),f.has(m[u])&&Array.isArray(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(h=>i[h[u]]=i[m[u]]+1))}return l.value=i,d}),a=$(()=>{const{data:i,expandColumnKey:c}=e;return c?s(n):i});return Te(a,(i,c)=>{i!==c&&(o.value=-1,r(0,!0))}),{data:a,depthMap:l}},gle=(e,t)=>e+t,Od=e=>Ye(e)?e.reduce(gle,0):e,ba=(e,t,o={})=>ut(e)?e(t):e??o,Mn=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=bo(e[t])}),e),xy=e=>Qt(e)?t=>rt(e,t):e,ble=(e,{columnsTotalWidth:t,data:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:l})=>{const n=$(()=>{const{fixed:w,width:x,vScrollbarSize:M}=e,T=x-M;return w?Math.max(Math.round(s(t)),T):T}),a=$(()=>s(n)+(e.fixed?e.vScrollbarSize:0)),i=$(()=>{const{height:w=0,maxHeight:x=0,footerHeight:M,hScrollbarSize:T}=e;if(x>0){const O=s(m),I=s(c),K=s(v)+O+I+T;return Math.min(K,x-M)}return w-M}),c=$(()=>{const{rowHeight:w,estimatedRowHeight:x}=e,M=s(o);return ct(x)?M.length*x:M.length*w}),u=$(()=>{const{maxHeight:w}=e,x=s(i);if(ct(w)&&w>0)return x;const M=s(c)+s(v)+s(m);return Math.min(x,M)}),p=w=>w.width,d=$(()=>Od(s(r).map(p))),f=$(()=>Od(s(l).map(p))),v=$(()=>Od(e.headerHeight)),m=$(()=>{var w;return(((w=e.fixedData)==null?void 0:w.length)||0)*e.rowHeight}),h=$(()=>s(i)-s(v)-s(m)),_=$(()=>{const{style:w={},height:x,width:M}=e;return Mn({...w,height:x,width:M})}),g=$(()=>Mn({height:e.footerHeight})),y=$(()=>({top:bo(s(v)),bottom:bo(e.footerHeight),width:bo(e.width)}));return{bodyWidth:n,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:d,rightTableWidth:f,headerWidth:a,rowsHeight:c,windowHeight:h,footerHeight:g,emptyStyle:y,rootStyle:_,headerHeight:v}},_le=e=>{const t=V(),o=V(0),r=V(0);let l;return vt(()=>{l=jo(t,([n])=>{const{width:a,height:i}=n.contentRect,{paddingLeft:c,paddingRight:u,paddingTop:p,paddingBottom:d}=getComputedStyle(n.target),f=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(p)||0,h=Number.parseInt(d)||0;o.value=a-f-v,r.value=i-m-h}).stop}),Zt(()=>{l==null||l()}),Te([o,r],([n,a])=>{var i;(i=e.onResize)==null||i.call(e,{width:n,height:a})}),{sizer:t,width:o,height:r}};function wle(e){const t=V(),o=V(),r=V(),{columns:l,columnsStyles:n,columnsTotalWidth:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,hasFixedColumns:u,mainColumns:p,onColumnSorted:d}=fle(e,so(e,"columns"),so(e,"fixed")),{scrollTo:f,scrollToLeft:v,scrollToTop:m,scrollToRow:h,onScroll:_,onVerticalScroll:g,scrollPos:y}=hle(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:te}),{expandedRowKeys:w,hoveringRowKey:x,lastRenderedRowIndex:M,isDynamic:T,isResetting:O,rowHeights:I,resetAfterIndex:F,onRowExpanded:K,onRowHeightChange:R,onRowHovered:D,onRowsRendered:j}=vle(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r}),{data:Z,depthMap:Q}=mle(e,{expandedRowKeys:w,lastRenderedRowIndex:M,resetAfterIndex:F}),{bodyWidth:J,fixedTableHeight:L,mainTableHeight:X,leftTableWidth:N,rightTableWidth:W,headerWidth:re,rowsHeight:ie,windowHeight:se,footerHeight:ve,emptyStyle:le,rootStyle:ge,headerHeight:_e}=ble(e,{columnsTotalWidth:a,data:Z,fixedColumnsOnLeft:i,fixedColumnsOnRight:c}),me=qt(!1),Be=V(),ye=$(()=>{const ce=s(Z).length===0;return Ye(e.fixedData)?e.fixedData.length===0&&ce:ce});function Me(ce){const{estimatedRowHeight:we,rowHeight:Ae,rowKey:Ie}=e;return we?s(I)[s(Z)[ce][Ie]]||we:Ae}function te(){const{onEndReached:ce}=e;if(!ce)return;const{scrollTop:we}=s(y),Ae=s(ie),Ie=s(se),xe=Ae-(we+Ie)+e.hScrollbarSize;s(M)>=0&&Ae===we+s(X)-s(_e)&&ce(xe)}return Te(()=>e.expandedRowKeys,ce=>w.value=ce,{deep:!0}),{columns:l,containerRef:Be,mainTableRef:t,leftTableRef:o,rightTableRef:r,isDynamic:T,isResetting:O,isScrolling:me,hoveringRowKey:x,hasFixedColumns:u,columnsStyles:n,columnsTotalWidth:a,data:Z,expandedRowKeys:w,depthMap:Q,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,mainColumns:p,bodyWidth:J,emptyStyle:le,rootStyle:ge,headerWidth:re,footerHeight:ve,mainTableHeight:X,fixedTableHeight:L,leftTableWidth:N,rightTableWidth:W,showEmpty:ye,getRowHeight:Me,onColumnSorted:d,onRowHovered:D,onRowExpanded:K,onRowsRendered:j,onRowHeightChange:R,scrollTo:f,scrollToLeft:v,scrollToTop:m,scrollToRow:h,onScroll:_,onVerticalScroll:g}}const nv=Symbol("tableV2"),ky=String,lc={type:pe(Array),required:!0},av={type:pe(Array)},Cy={...av,required:!0},yle=String,Sy={type:pe(Array),default:()=>ro([])},_a={type:Number,required:!0},Ey={type:pe([String,Number,Symbol]),default:"id"},$y={type:pe(Object)},wa=He({class:String,columns:lc,columnsStyles:{type:pe(Object),required:!0},depth:Number,expandColumnKey:yle,estimatedRowHeight:{...va.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:pe(Function)},onRowHover:{type:pe(Function)},onRowHeightChange:{type:pe(Function)},rowData:{type:pe(Object),required:!0},rowEventHandlers:{type:pe(Object)},rowIndex:{type:Number,required:!0},rowKey:Ey,style:{type:pe(Object)}}),iv={type:Number,required:!0},sv=He({class:String,columns:lc,fixedHeaderData:{type:pe(Array)},headerData:{type:pe(Array),required:!0},headerHeight:{type:pe([Number,Array]),default:50},rowWidth:iv,rowHeight:{type:Number,default:50},height:iv,width:iv}),Pd=He({columns:lc,data:Cy,fixedData:av,estimatedRowHeight:wa.estimatedRowHeight,width:_a,height:_a,headerWidth:_a,headerHeight:sv.headerHeight,bodyWidth:_a,rowHeight:_a,cache:Ow.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:va.scrollbarAlwaysOn,scrollbarStartGap:va.scrollbarStartGap,scrollbarEndGap:va.scrollbarEndGap,class:ky,style:$y,containerStyle:$y,getRowHeight:{type:pe(Function),required:!0},rowKey:wa.rowKey,onRowsRendered:{type:pe(Function)},onScroll:{type:pe(Function)}}),xle=He({cache:Pd.cache,estimatedRowHeight:wa.estimatedRowHeight,rowKey:Ey,headerClass:{type:pe([String,Function])},headerProps:{type:pe([Object,Function])},headerCellProps:{type:pe([Object,Function])},headerHeight:sv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:pe([String,Function])},rowProps:{type:pe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:pe([Object,Function])},columns:lc,data:Cy,dataGetter:{type:pe(Function)},fixedData:av,expandColumnKey:wa.expandColumnKey,expandedRowKeys:Sy,defaultExpandedRowKeys:Sy,class:ky,fixed:Boolean,style:{type:pe(Object)},width:_a,height:_a,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:va.hScrollbarSize,vScrollbarSize:va.vScrollbarSize,scrollbarAlwaysOn:Nw.alwaysOn,sortBy:{type:pe(Object),default:()=>({})},sortState:{type:pe(Object),default:void 0},onColumnSort:{type:pe(Function)},onExpandedRowsChange:{type:pe(Function)},onEndReached:{type:pe(Function)},onRowExpand:wa.onRowExpand,onScroll:Pd.onScroll,onRowsRendered:Pd.onRowsRendered,rowEventHandlers:wa.rowEventHandlers}),cv=(e,{slots:t})=>{var o;const{cellData:r,style:l}=e,n=((o=r==null?void 0:r.toString)==null?void 0:o.call(r))||"",a=be(t,"default",e,()=>[n]);return oe("div",{class:e.class,title:n,style:l},[a])};cv.displayName="ElTableV2Cell",cv.inheritAttrs=!1;const uv=(e,{slots:t})=>be(t,"default",e,()=>{var o,r;return[oe("div",{class:e.class,title:(o=e.column)==null?void 0:o.title},[(r=e.column)==null?void 0:r.title])]});uv.displayName="ElTableV2HeaderCell",uv.inheritAttrs=!1;const kle=He({class:String,columns:lc,columnsStyles:{type:pe(Object),required:!0},headerIndex:Number,style:{type:pe(Object)}}),Cle=B({name:"ElTableV2HeaderRow",props:kle,setup(e,{slots:t}){return()=>{const{columns:o,columnsStyles:r,headerIndex:l,style:n}=e;let a=o.map((i,c)=>t.cell({columns:o,column:i,columnIndex:c,headerIndex:l,style:r[i.key]}));return t.header&&(a=t.header({cells:a.map(i=>Ye(i)&&i.length===1?i[0]:i),columns:o,headerIndex:l})),oe("div",{class:e.class,style:n,role:"row"},[a])}}}),Sle=B({name:"ElTableV2Header",props:sv,setup(e,{slots:t,expose:o}){const r=Oe("table-v2"),l=V(),n=$(()=>Mn({width:e.width,height:e.height})),a=$(()=>Mn({width:e.rowWidth,height:e.height})),i=$(()=>Jn(s(e.headerHeight))),c=d=>{const f=s(l);et(()=>{f!=null&&f.scroll&&f.scroll({left:d})})},u=()=>{const d=r.e("fixed-header-row"),{columns:f,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((h,_)=>{var g;const y=Mn({height:m,width:"100%"});return(g=t.fixed)==null?void 0:g.call(t,{class:d,columns:f,rowData:h,rowIndex:-(_+1),style:y})})},p=()=>{const d=r.e("dynamic-header-row"),{columns:f}=e;return s(i).map((v,m)=>{var h;const _=Mn({width:"100%",height:v});return(h=t.dynamic)==null?void 0:h.call(t,{class:d,columns:f,headerIndex:m,style:_})})};return o({scrollToLeft:c}),()=>{if(!(e.height<=0))return oe("div",{ref:l,class:e.class,style:s(n),role:"rowgroup"},[oe("div",{style:s(a),class:r.e("header")},[p(),u()])])}}}),Ele=e=>{const{isScrolling:t}=Le(nv),o=V(!1),r=V(),l=$(()=>ct(e.estimatedRowHeight)&&e.rowIndex>=0),n=(c=!1)=>{const u=s(r);if(!u)return;const{columns:p,onRowHeightChange:d,rowKey:f,rowIndex:v,style:m}=e,{height:h}=u.getBoundingClientRect();o.value=!0,et(()=>{if(c||h!==Number.parseInt(m.height)){const _=p[0],g=(_==null?void 0:_.placeholderSign)===rc;d==null||d({rowKey:f,height:h,rowIndex:v},_&&!g&&_.fixed)}})},a=$(()=>{const{rowData:c,rowIndex:u,rowKey:p,onRowHover:d}=e,f=e.rowEventHandlers||{},v={};return Object.entries(f).forEach(([m,h])=>{ut(h)&&(v[m]=_=>{h({event:_,rowData:c,rowIndex:u,rowKey:p})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:h})=>{const _=v[m];v[m]=g=>{d({event:g,hovered:h,rowData:c,rowIndex:u,rowKey:p}),_==null||_(g)}}),v}),i=c=>{const{onRowExpand:u,rowData:p,rowIndex:d,rowKey:f}=e;u==null||u({expanded:c,rowData:p,rowIndex:d,rowKey:f})};return vt(()=>{s(l)&&n(!0)}),{isScrolling:t,measurable:l,measured:o,rowRef:r,eventHandlers:a,onExpand:i}},$le=B({name:"ElTableV2TableRow",props:wa,setup(e,{expose:t,slots:o,attrs:r}){const{eventHandlers:l,isScrolling:n,measurable:a,measured:i,rowRef:c,onExpand:u}=Ele(e);return t({onExpand:u}),()=>{const{columns:p,columnsStyles:d,expandColumnKey:f,depth:v,rowData:m,rowIndex:h,style:_}=e;let g=p.map((y,w)=>{const x=Ye(m.children)&&m.children.length>0&&y.key===f;return o.cell({column:y,columns:p,columnIndex:w,depth:v,style:d[y.key],rowData:m,rowIndex:h,isScrolling:s(n),expandIconProps:x?{rowData:m,rowIndex:h,onExpand:u}:void 0})});if(o.row&&(g=o.row({cells:g.map(y=>Ye(y)&&y.length===1?y[0]:y),style:_,columns:p,depth:v,rowData:m,rowIndex:h,isScrolling:s(n)})),s(a)){const{height:y,...w}=_||{},x=s(i);return oe("div",Et({ref:c,class:e.class,style:x?_:w,role:"row"},r,s(l)),[g])}return oe("div",Et(r,{ref:c,class:e.class,style:_,role:"row"},s(l)),[g])}}}),Tle=e=>{const{sortOrder:t}=e;return oe(Je,{size:14,class:e.class},{default:()=>[t===tc.ASC?oe(y3,null,null):oe(w3,null,null)]})},zle=e=>{const{expanded:t,expandable:o,onExpand:r,style:l,size:n}=e,a={onClick:o?()=>r(!t):void 0,class:e.class};return oe(Je,Et(a,{size:n,style:l}),{default:()=>[oe(Ko,null,null)]})},Mle="ElTableV2Grid",Ale=e=>{const t=V(),o=V(),r=$(()=>{const{data:h,rowHeight:_,estimatedRowHeight:g}=e;if(!g)return h.length*_}),l=$(()=>{const{fixedData:h,rowHeight:_}=e;return((h==null?void 0:h.length)||0)*_}),n=$(()=>Od(e.headerHeight)),a=$(()=>{const{height:h}=e;return Math.max(0,h-s(n)-s(l))}),i=$(()=>s(n)+s(l)>0),c=({data:h,rowIndex:_})=>h[_][e.rowKey];function u({rowCacheStart:h,rowCacheEnd:_,rowVisibleStart:g,rowVisibleEnd:y}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:h,rowCacheEnd:_,rowVisibleStart:g,rowVisibleEnd:y})}function p(h,_){var g;(g=o.value)==null||g.resetAfterRowIndex(h,_)}function d(h,_){const g=s(t),y=s(o);!g||!y||(Ct(h)?(g.scrollToLeft(h.scrollLeft),y.scrollTo(h)):(g.scrollToLeft(h),y.scrollTo({scrollLeft:h,scrollTop:_})))}function f(h){var _;(_=s(o))==null||_.scrollTo({scrollTop:h})}function v(h,_){var g;(g=s(o))==null||g.scrollToItem(h,1,_)}function m(){var h,_;(h=s(o))==null||h.$forceUpdate(),(_=s(t))==null||_.$forceUpdate()}return{bodyRef:o,forceUpdate:m,fixedRowHeight:l,gridHeight:a,hasHeader:i,headerHeight:n,headerRef:t,totalHeight:r,itemKey:c,onItemRendered:u,resetAfterRowIndex:p,scrollTo:d,scrollToTop:f,scrollToRow:v}},dv=B({name:Mle,props:Pd,setup(e,{slots:t,expose:o}){const{ns:r}=Le(nv),{bodyRef:l,fixedRowHeight:n,gridHeight:a,hasHeader:i,headerRef:c,headerHeight:u,totalHeight:p,forceUpdate:d,itemKey:f,onItemRendered:v,resetAfterRowIndex:m,scrollTo:h,scrollToTop:_,scrollToRow:g}=Ale(e);o({forceUpdate:d,totalHeight:p,scrollTo:h,scrollToTop:_,scrollToRow:g,resetAfterRowIndex:m});const y=()=>e.bodyWidth;return()=>{const{cache:w,columns:x,data:M,fixedData:T,useIsScrolling:O,scrollbarAlwaysOn:I,scrollbarEndGap:F,scrollbarStartGap:K,style:R,rowHeight:D,bodyWidth:j,estimatedRowHeight:Z,headerWidth:Q,height:J,width:L,getRowHeight:X,onScroll:N}=e,W=ct(Z),re=W?xte:bte,ie=s(u);return oe("div",{role:"table",class:[r.e("table"),e.class],style:R},[oe(re,{ref:l,data:M,useIsScrolling:O,itemKey:f,columnCache:0,columnWidth:W?y:j,totalColumn:1,totalRow:M.length,rowCache:w,rowHeight:W?X:D,width:L,height:s(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:K,scrollbarEndGap:F,scrollbarAlwaysOn:I,onScroll:N,onItemRendered:v,perfMode:!1},{default:se=>{var ve;const le=M[se.rowIndex];return(ve=t.row)==null?void 0:ve.call(t,{...se,columns:x,rowData:le})}}),s(i)&&oe(Sle,{ref:c,class:r.e("header-wrapper"),columns:x,headerData:M,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:Q,rowHeight:D,width:L,height:Math.min(ie+s(n),J)},{dynamic:t.header,fixed:t.row})])}}});function Ile(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Ole=(e,{slots:t})=>{const{mainTableRef:o,...r}=e;return oe(dv,Et({ref:o},r),Ile(t)?t:{default:()=>[t]})};function Ple(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Ble=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:o,...r}=e;return oe(dv,Et({ref:o},r),Ple(t)?t:{default:()=>[t]})};function Nle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Lle=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:o,...r}=e;return oe(dv,Et({ref:o},r),Nle(t)?t:{default:()=>[t]})};function Rle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Vle=(e,{slots:t})=>{const{columns:o,columnsStyles:r,depthMap:l,expandColumnKey:n,expandedRowKeys:a,estimatedRowHeight:i,hasFixedColumns:c,hoveringRowKey:u,rowData:p,rowIndex:d,style:f,isScrolling:v,rowProps:m,rowClass:h,rowKey:_,rowEventHandlers:g,ns:y,onRowHovered:w,onRowExpanded:x}=e,M=ba(h,{columns:o,rowData:p,rowIndex:d},""),T=ba(m,{columns:o,rowData:p,rowIndex:d}),O=p[_],I=l[O]||0,F=!!n,K=d<0,R=[y.e("row"),M,{[y.e(`row-depth-${I}`)]:F&&d>=0,[y.is("expanded")]:F&&a.includes(O),[y.is("hovered")]:!v&&O===u,[y.is("fixed")]:!I&&K,[y.is("customized")]:!!t.row}],D=c?w:void 0,j={...T,columns:o,columnsStyles:r,class:R,depth:I,expandColumnKey:n,estimatedRowHeight:K?void 0:i,isScrolling:v,rowIndex:d,rowData:p,rowKey:O,rowEventHandlers:g,style:f};return oe($le,Et(j,{onRowHover:D,onRowExpand:x}),Rle(t)?t:{default:()=>[t]})},pv=({columns:e,column:t,columnIndex:o,depth:r,expandIconProps:l,isScrolling:n,rowData:a,rowIndex:i,style:c,expandedRowKeys:u,ns:p,cellProps:d,expandColumnKey:f,indentSize:v,iconSize:m,rowKey:h},{slots:_})=>{const g=Mn(c);if(t.placeholderSign===rc)return oe("div",{class:p.em("row-cell","placeholder"),style:g},null);const{cellRenderer:y,dataKey:w,dataGetter:x}=t,M=ut(x)?x({columns:e,column:t,columnIndex:o,rowData:a,rowIndex:i}):oo(a,w??""),T=ba(d,{cellData:M,columns:e,column:t,columnIndex:o,rowIndex:i,rowData:a}),O={class:p.e("cell-text"),columns:e,column:t,columnIndex:o,cellData:M,isScrolling:n,rowData:a,rowIndex:i},I=xy(y),F=I?I(O):be(_,"default",O,()=>[oe(cv,O,null)]),K=[p.e("row-cell"),t.class,t.align===oc.CENTER&&p.is("align-center"),t.align===oc.RIGHT&&p.is("align-right")],R=i>=0&&f&&t.key===f,D=i>=0&&u.includes(a[h]);let j;const Z=`margin-inline-start: ${r*v}px;`;return R&&(Ct(l)?j=oe(zle,Et(l,{class:[p.e("expand-icon"),p.is("expanded",D)],size:m,expanded:D,style:Z,expandable:!0}),null):j=oe("div",{style:[Z,`width: ${m}px; height: ${m}px;`].join(" ")},null)),oe("div",Et({class:K,style:g},T,{role:"cell"}),[j,F])};pv.inheritAttrs=!1;function Hle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Fle=({columns:e,columnsStyles:t,headerIndex:o,style:r,headerClass:l,headerProps:n,ns:a},{slots:i})=>{const c={columns:e,headerIndex:o},u=[a.e("header-row"),ba(l,c,""),{[a.is("customized")]:!!i.header}],p={...ba(n,c),columnsStyles:t,class:u,columns:e,headerIndex:o,style:r};return oe(Cle,p,Hle(i)?i:{default:()=>[i]})},Ty=(e,{slots:t})=>{const{column:o,ns:r,style:l,onColumnSorted:n}=e,a=Mn(l);if(o.placeholderSign===rc)return oe("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:i,headerClass:c,sortable:u}=o,p={...e,class:r.e("header-cell-text")},d=xy(i),f=d?d(p):be(t,"default",p,()=>[oe(uv,p,null)]),{sortBy:v,sortState:m,headerCellProps:h}=e;let _,g;if(m){const x=m[o.key];_=!!lv[x],g=_?x:tc.ASC}else _=o.key===v.key,g=_?v.order:tc.ASC;const y=[r.e("header-cell"),ba(c,e,""),o.align===oc.CENTER&&r.is("align-center"),o.align===oc.RIGHT&&r.is("align-right"),u&&r.is("sortable")],w={...ba(h,e),onClick:o.sortable?n:void 0,class:y,style:a,"data-key":o.key};return oe("div",Et(w,{role:"columnheader"}),[f,u&&oe(Tle,{class:[r.e("sort-icon"),_&&r.is("sorting")],sortOrder:g},null)])},zy=(e,{slots:t})=>{var o;return oe("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};zy.displayName="ElTableV2Footer";const My=(e,{slots:t})=>{const o=be(t,"default",{},()=>[oe(fw,null,null)]);return oe("div",{class:e.class,style:e.style},[o])};My.displayName="ElTableV2Empty";const Ay=(e,{slots:t})=>{var o;return oe("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Ay.displayName="ElTableV2Overlay";function nc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const Dle=B({name:"ElTableV2",props:xle,setup(e,{slots:t,expose:o}){const r=Oe("table-v2"),{columnsStyles:l,fixedColumnsOnLeft:n,fixedColumnsOnRight:a,mainColumns:i,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:p,rightTableWidth:d,data:f,depthMap:v,expandedRowKeys:m,hasFixedColumns:h,hoveringRowKey:_,mainTableRef:g,leftTableRef:y,rightTableRef:w,isDynamic:x,isResetting:M,isScrolling:T,bodyWidth:O,emptyStyle:I,rootStyle:F,headerWidth:K,footerHeight:R,showEmpty:D,scrollTo:j,scrollToLeft:Z,scrollToTop:Q,scrollToRow:J,getRowHeight:L,onColumnSorted:X,onRowHeightChange:N,onRowHovered:W,onRowExpanded:re,onRowsRendered:ie,onScroll:se,onVerticalScroll:ve}=wle(e);return o({scrollTo:j,scrollToLeft:Z,scrollToTop:Q,scrollToRow:J}),zt(nv,{ns:r,isResetting:M,hoveringRowKey:_,isScrolling:T}),()=>{const{cache:le,cellProps:ge,estimatedRowHeight:_e,expandColumnKey:me,fixedData:Be,headerHeight:ye,headerClass:Me,headerProps:te,headerCellProps:ce,sortBy:we,sortState:Ae,rowHeight:Ie,rowClass:xe,rowEventHandlers:Ne,rowKey:Se,rowProps:ke,scrollbarAlwaysOn:$e,indentSize:Pe,iconSize:qe,useIsScrolling:Ke,vScrollbarSize:Ee,width:We}=e,nt=s(f),dt={cache:le,class:r.e("main"),columns:s(i),data:nt,fixedData:Be,estimatedRowHeight:_e,bodyWidth:s(O)+Ee,headerHeight:ye,headerWidth:s(K),height:s(c),mainTableRef:g,rowKey:Se,rowHeight:Ie,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,useIsScrolling:Ke,width:We,getRowHeight:L,onRowsRendered:ie,onScroll:se},gt=s(p),Y=s(u),C={cache:le,class:r.e("left"),columns:s(n),data:nt,estimatedRowHeight:_e,leftTableRef:y,rowHeight:Ie,bodyWidth:gt,headerWidth:gt,headerHeight:ye,height:Y,rowKey:Se,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,useIsScrolling:Ke,width:gt,getRowHeight:L,onScroll:ve},H=s(d)+Ee,ee={cache:le,class:r.e("right"),columns:s(a),data:nt,estimatedRowHeight:_e,rightTableRef:w,rowHeight:Ie,bodyWidth:H,headerWidth:H,headerHeight:ye,height:Y,rowKey:Se,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,width:H,style:`--${s(r.namespace)}-table-scrollbar-size: ${Ee}px`,useIsScrolling:Ke,getRowHeight:L,onScroll:ve},U=s(l),he={ns:r,depthMap:s(v),columnsStyles:U,expandColumnKey:me,expandedRowKeys:s(m),estimatedRowHeight:_e,hasFixedColumns:s(h),hoveringRowKey:s(_),rowProps:ke,rowClass:xe,rowKey:Se,rowEventHandlers:Ne,onRowHovered:W,onRowExpanded:re,onRowHeightChange:N},Ue={cellProps:ge,expandColumnKey:me,indentSize:Pe,iconSize:qe,rowKey:Se,expandedRowKeys:s(m),ns:r},st={ns:r,headerClass:Me,headerProps:te,columnsStyles:U},At={ns:r,sortBy:we,sortState:Ae,headerCellProps:ce,onColumnSorted:X},Mt={row:Ce=>oe(Vle,Et(Ce,he),{row:t.row,cell:De=>{let lt;return t.cell?oe(pv,Et(De,Ue,{style:U[De.column.key]}),nc(lt=t.cell(De))?lt:{default:()=>[lt]}):oe(pv,Et(De,Ue,{style:U[De.column.key]}),null)}}),header:Ce=>oe(Fle,Et(Ce,st),{header:t.header,cell:De=>{let lt;return t["header-cell"]?oe(Ty,Et(De,At,{style:U[De.column.key]}),nc(lt=t["header-cell"](De))?lt:{default:()=>[lt]}):oe(Ty,Et(De,At,{style:U[De.column.key]}),null)}})},Lt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:s(x)}],lo={class:r.e("footer"),style:s(R)};return oe("div",{class:Lt,style:s(F)},[oe(Ole,dt,nc(Mt)?Mt:{default:()=>[Mt]}),oe(Ble,C,nc(Mt)?Mt:{default:()=>[Mt]}),oe(Lle,ee,nc(Mt)?Mt:{default:()=>[Mt]}),t.footer&&oe(zy,lo,{default:t.footer}),s(D)&&oe(My,{class:r.e("empty"),style:s(I)},{default:t.empty}),t.overlay&&oe(Ay,{class:r.e("overlay")},{default:t.overlay})])}}}),jle=He({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:pe(Function)}}),Kle=B({name:"ElAutoResizer",props:jle,setup(e,{slots:t}){const o=Oe("auto-resizer"),{height:r,width:l,sizer:n}=_le(e),a={width:"100%",height:"100%"};return()=>{var i;return oe("div",{ref:n,class:o.b(),style:a},[(i=t.default)==null?void 0:i.call(t,{height:r.value,width:l.value})])}}}),Wle=xt(Dle),Ule=xt(Kle),Bd=Symbol("tabsRootContextKey"),qle=He({tabs:{type:pe(Array),default:()=>ro([])}}),Iy="ElTabBar",Yle=B({...B({name:Iy}),props:qle,setup(e,{expose:t}){const o=e,r=_t(),l=Le(Bd);l||So(Iy,"");const n=Oe("tabs"),a=V(),i=V(),c=()=>{let p=0,d=0;const f=["top","bottom"].includes(l.props.tabPosition)?"width":"height",v=f==="width"?"x":"y",m=v==="x"?"left":"top";return o.tabs.every(h=>{var _,g;const y=(g=(_=r.parent)==null?void 0:_.refs)==null?void 0:g[`tab-${h.uid}`];if(!y)return!1;if(!h.active)return!0;p=y[`offset${nl(m)}`],d=y[`client${nl(f)}`];const w=window.getComputedStyle(y);return f==="width"&&(o.tabs.length>1&&(d-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),p+=Number.parseFloat(w.paddingLeft)),!1}),{[f]:`${d}px`,transform:`translate${nl(v)}(${p}px)`}},u=()=>i.value=c();return Te(()=>o.tabs,async()=>{await et(),u()},{immediate:!0}),jo(a,()=>u()),t({ref:a,update:u}),(p,d)=>(b(),z("div",{ref_key:"barRef",ref:a,class:P([s(n).e("active-bar"),s(n).is(s(l).props.tabPosition)]),style:Qe(i.value)},null,6))}});var Gle=Fe(Yle,[["__file","tab-bar.vue"]]);const Xle=He({panes:{type:pe(Array),default:()=>ro([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Zle={tabClick:(e,t,o)=>o instanceof Event,tabRemove:(e,t)=>t instanceof Event},Oy="ElTabNav",Jle=B({name:Oy,props:Xle,emits:Zle,setup(e,{expose:t,emit:o}){const r=_t(),l=Le(Bd);l||So(Oy,"");const n=Oe("tabs"),a=y7(),i=P7(),c=V(),u=V(),p=V(),d=V(),f=V(!1),v=V(0),m=V(!1),h=V(!0),_=$(()=>["top","bottom"].includes(l.props.tabPosition)?"width":"height"),g=$(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${v.value}px)`})),y=()=>{if(!c.value)return;const F=c.value[`offset${nl(_.value)}`],K=v.value;if(!K)return;const R=K>F?K-F:0;v.value=R},w=()=>{if(!c.value||!u.value)return;const F=u.value[`offset${nl(_.value)}`],K=c.value[`offset${nl(_.value)}`],R=v.value;if(F-R<=K)return;const D=F-R>K*2?R+K:F-K;v.value=D},x=async()=>{const F=u.value;if(!f.value||!p.value||!c.value||!F)return;await et();const K=p.value.querySelector(".is-active");if(!K)return;const R=c.value,D=["top","bottom"].includes(l.props.tabPosition),j=K.getBoundingClientRect(),Z=R.getBoundingClientRect(),Q=D?F.offsetWidth-Z.width:F.offsetHeight-Z.height,J=v.value;let L=J;D?(j.leftZ.right&&(L=J+j.right-Z.right)):(j.topZ.bottom&&(L=J+(j.bottom-Z.bottom))),L=Math.max(L,0),v.value=Math.min(L,Q)},M=()=>{var F;if(!u.value||!c.value)return;e.stretch&&((F=d.value)==null||F.update());const K=u.value[`offset${nl(_.value)}`],R=c.value[`offset${nl(_.value)}`],D=v.value;R0&&(v.value=0))},T=F=>{const K=F.code,{up:R,down:D,left:j,right:Z}=tt;if(![R,D,j,Z].includes(K))return;const Q=Array.from(F.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),J=Q.indexOf(F.target);let L;K===j||K===R?J===0?L=Q.length-1:L=J-1:J{h.value&&(m.value=!0)},I=()=>m.value=!1;return Te(a,F=>{F==="hidden"?h.value=!1:F==="visible"&&setTimeout(()=>h.value=!0,50)}),Te(i,F=>{F?setTimeout(()=>h.value=!0,50):h.value=!1}),jo(p,M),vt(()=>setTimeout(()=>x(),0)),$l(()=>M()),t({scrollToActiveTab:x,removeFocus:I}),Te(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const F=f.value?[oe("span",{class:[n.e("nav-prev"),n.is("disabled",!f.value.prev)],onClick:y},[oe(Je,null,{default:()=>[oe(Nl,null,null)]})]),oe("span",{class:[n.e("nav-next"),n.is("disabled",!f.value.next)],onClick:w},[oe(Je,null,{default:()=>[oe(Ko,null,null)]})])]:null,K=e.panes.map((R,D)=>{var j,Z,Q,J;const L=R.uid,X=R.props.disabled,N=(Z=(j=R.props.name)!=null?j:R.index)!=null?Z:`${D}`,W=!X&&(R.isClosable||e.editable);R.index=`${D}`;const re=W?oe(Je,{class:"is-icon-close",onClick:ve=>o("tabRemove",R,ve)},{default:()=>[oe(Mr,null,null)]}):null,ie=((J=(Q=R.slots).label)==null?void 0:J.call(Q))||R.props.label,se=!X&&R.active?0:-1;return oe("div",{ref:`tab-${L}`,class:[n.e("item"),n.is(l.props.tabPosition),n.is("active",R.active),n.is("disabled",X),n.is("closable",W),n.is("focus",m.value)],id:`tab-${N}`,key:`tab-${L}`,"aria-controls":`pane-${N}`,role:"tab","aria-selected":R.active,tabindex:se,onFocus:()=>O(),onBlur:()=>I(),onClick:ve=>{I(),o("tabClick",R,N,ve)},onKeydown:ve=>{W&&(ve.code===tt.delete||ve.code===tt.backspace)&&o("tabRemove",R,ve)}},[ie,re])});return oe("div",{ref:p,class:[n.e("nav-wrap"),n.is("scrollable",!!f.value),n.is(l.props.tabPosition)]},[F,oe("div",{class:n.e("nav-scroll"),ref:c},[oe("div",{class:[n.e("nav"),n.is(l.props.tabPosition),n.is("stretch",e.stretch&&["top","bottom"].includes(l.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:T},[e.type?null:oe(Gle,{ref:d,tabs:[...e.panes]},null),K])])])}}}),Qle=He({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:pe(Function),default:()=>!0},stretch:Boolean}),fv=e=>ft(e)||ct(e),ene={[kt]:e=>fv(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>fv(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>fv(e),tabAdd:()=>!0},tne=B({name:"ElTabs",props:Qle,emits:ene,setup(e,{emit:t,slots:o,expose:r}){var l,n;const a=Oe("tabs"),{children:i,addChild:c,removeChild:u}=A0(_t(),"ElTabPane"),p=V(),d=V((n=(l=e.modelValue)!=null?l:e.activeName)!=null?n:"0"),f=async(_,g=!1)=>{var y,w,x;if(!(d.value===_||ko(_)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,_,d.value))!==!1&&(d.value=_,g&&(t(kt,_),t("tabChange",_)),(x=(w=p.value)==null?void 0:w.removeFocus)==null||x.call(w))}catch{}},v=(_,g,y)=>{_.props.disabled||(f(g,!0),t("tabClick",_,y))},m=(_,g)=>{_.props.disabled||ko(_.props.name)||(g.stopPropagation(),t("edit",_.props.name,"remove"),t("tabRemove",_.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return sl({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},$(()=>!!e.activeName)),Te(()=>e.activeName,_=>f(_)),Te(()=>e.modelValue,_=>f(_)),Te(d,async()=>{var _;await et(),(_=p.value)==null||_.scrollToActiveTab()}),zt(Bd,{props:e,currentName:d,registerPane:c,unregisterPane:u}),r({currentName:d}),()=>{const _=o.addIcon,g=e.editable||e.addable?oe("span",{class:a.e("new-tab"),tabindex:"0",onClick:h,onKeydown:x=>{x.code===tt.enter&&h()}},[_?be(o,"addIcon"):oe(Je,{class:a.is("icon-plus")},{default:()=>[oe(n0,null,null)]})]):null,y=oe("div",{class:[a.e("header"),a.is(e.tabPosition)]},[g,oe(Jle,{ref:p,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null)]),w=oe("div",{class:a.e("content")},[be(o,"default")]);return oe("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:e.type==="card",[a.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,w]:[w,y]])}}}),one=He({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),rne=["id","aria-hidden","aria-labelledby"],Py="ElTabPane",lne=B({...B({name:Py}),props:one,setup(e){const t=e,o=_t(),r=Bo(),l=Le(Bd);l||So(Py,"usage: ");const n=Oe("tab-pane"),a=V(),i=$(()=>t.closable||l.props.closable),c=C1(()=>{var v;return l.currentName.value===((v=t.name)!=null?v:a.value)}),u=V(c.value),p=$(()=>{var v;return(v=t.name)!=null?v:a.value}),d=C1(()=>!t.lazy||u.value||c.value);Te(c,v=>{v&&(u.value=!0)});const f=Ft({uid:o.uid,slots:r,props:t,paneName:p,active:c,index:a,isClosable:i});return vt(()=>{l.registerPane(f)}),cn(()=>{l.unregisterPane(f.uid)}),(v,m)=>s(d)?ht((b(),z("div",{key:0,id:`pane-${s(p)}`,class:P(s(n).b()),role:"tabpanel","aria-hidden":!s(c),"aria-labelledby":`tab-${s(p)}`},[be(v.$slots,"default")],10,rne)),[[Pt,s(c)]]):ue("v-if",!0)}});var By=Fe(lne,[["__file","tab-pane.vue"]]);const nne=xt(tne,{TabPane:By}),ane=fo(By),ine=He({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:il,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),sne=B({...B({name:"ElText"}),props:ine,setup(e){const t=e,o=Eo(),r=Oe("text"),l=$(()=>[r.b(),r.m(t.type),r.m(o.value),r.is("truncated",t.truncated),r.is("line-clamp",!ko(t.lineClamp))]);return(n,a)=>(b(),de(St(n.tag),{class:P(s(l)),style:Qe({"-webkit-line-clamp":n.lineClamp})},{default:ne(()=>[be(n.$slots,"default")]),_:3},8,["class","style"]))}});var cne=Fe(sne,[["__file","text.vue"]]);const une=xt(cne),dne=He({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:No,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:pe([String,Object]),default:()=>r0},clearIcon:{type:pe([String,Object]),default:()=>Ll}}),Yl=e=>{const t=(e||"").split(":");if(t.length>=2){let o=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),l=e.toUpperCase();return l.includes("AM")&&o===12?o=0:l.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:r}}return null},hv=(e,t)=>{const o=Yl(e);if(!o)return-1;const r=Yl(t);if(!r)return-1;const l=o.minutes+o.hours*60,n=r.minutes+r.hours*60;return l===n?0:l>n?1:-1},Ny=e=>`${e}`.padStart(2,"0"),_i=e=>`${Ny(e.hours)}:${Ny(e.minutes)}`,pne=(e,t)=>{const o=Yl(e);if(!o)return"";const r=Yl(t);if(!r)return"";const l={hours:o.hours,minutes:o.minutes};return l.minutes+=r.minutes,l.hours+=r.hours,l.hours+=Math.floor(l.minutes/60),l.minutes=l.minutes%60,_i(l)},fne=B({...B({name:"ElTimeSelect"}),props:dne,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const o=e;wt.extend(eh);const{Option:r}=ha,l=Oe("input"),n=V(),a=pr(),{lang:i}=Nt(),c=$(()=>o.modelValue),u=$(()=>{const g=Yl(o.start);return g?_i(g):null}),p=$(()=>{const g=Yl(o.end);return g?_i(g):null}),d=$(()=>{const g=Yl(o.step);return g?_i(g):null}),f=$(()=>{const g=Yl(o.minTime||"");return g?_i(g):null}),v=$(()=>{const g=Yl(o.maxTime||"");return g?_i(g):null}),m=$(()=>{const g=[];if(o.start&&o.end&&o.step){let y=u.value,w;for(;y&&p.value&&hv(y,p.value)<=0;)w=wt(y,"HH:mm").locale(i.value).format(o.format),g.push({value:w,disabled:hv(y,f.value||"-1:-1")<=0||hv(y,v.value||"100:100")>=0}),y=pne(y,d.value)}return g});return t({blur:()=>{var g,y;(y=(g=n.value)==null?void 0:g.blur)==null||y.call(g)},focus:()=>{var g,y;(y=(g=n.value)==null?void 0:g.focus)==null||y.call(g)}}),(g,y)=>(b(),de(s(ha),{ref_key:"select",ref:n,"model-value":s(c),disabled:s(a),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=w=>g.$emit("update:modelValue",w)),onChange:y[1]||(y[1]=w=>g.$emit("change",w)),onBlur:y[2]||(y[2]=w=>g.$emit("blur",w)),onFocus:y[3]||(y[3]=w=>g.$emit("focus",w))},{prefix:ne(()=>[g.prefixIcon?(b(),de(s(Je),{key:0,class:P(s(l).e("prefix-icon"))},{default:ne(()=>[(b(),de(St(g.prefixIcon)))]),_:1},8,["class"])):ue("v-if",!0)]),default:ne(()=>[(b(!0),z(Ge,null,Tt(s(m),w=>(b(),de(s(r),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Nd=Fe(fne,[["__file","time-select.vue"]]);Nd.install=e=>{e.component(Nd.name,Nd)};const hne=Nd,vne=B({name:"ElTimeline",setup(e,{slots:t}){const o=Oe("timeline");return zt("timeline",t),()=>rt("ul",{class:[o.b()]},[be(t,"default")])}}),mne=He({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ut},hollow:{type:Boolean,default:!1}}),gne=B({...B({name:"ElTimelineItem"}),props:mne,setup(e){const t=e,o=Oe("timeline-item"),r=$(()=>[o.e("node"),o.em("node",t.size||""),o.em("node",t.type||""),o.is("hollow",t.hollow)]);return(l,n)=>(b(),z("li",{class:P([s(o).b(),{[s(o).e("center")]:l.center}])},[E("div",{class:P(s(o).e("tail"))},null,2),l.$slots.dot?ue("v-if",!0):(b(),z("div",{key:0,class:P(s(r)),style:Qe({backgroundColor:l.color})},[l.icon?(b(),de(s(Je),{key:0,class:P(s(o).e("icon"))},{default:ne(()=>[(b(),de(St(l.icon)))]),_:1},8,["class"])):ue("v-if",!0)],6)),l.$slots.dot?(b(),z("div",{key:1,class:P(s(o).e("dot"))},[be(l.$slots,"dot")],2)):ue("v-if",!0),E("div",{class:P(s(o).e("wrapper"))},[!l.hideTimestamp&&l.placement==="top"?(b(),z("div",{key:0,class:P([s(o).e("timestamp"),s(o).is("top")])},ze(l.timestamp),3)):ue("v-if",!0),E("div",{class:P(s(o).e("content"))},[be(l.$slots,"default")],2),!l.hideTimestamp&&l.placement==="bottom"?(b(),z("div",{key:1,class:P([s(o).e("timestamp"),s(o).is("bottom")])},ze(l.timestamp),3)):ue("v-if",!0)],2)],2))}});var Ly=Fe(gne,[["__file","timeline-item.vue"]]);const bne=xt(vne,{TimelineItem:Ly}),_ne=fo(Ly),Ry=He({nowrap:Boolean});var Vy=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Vy||{});const wne=Object.values(Vy),vv=He({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:pe(Object),default:null}}),yne=He({side:{type:pe(String),values:wne,required:!0}}),xne=["absolute","fixed"],kne=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],mv=He({ariaLabel:String,arrowPadding:{type:pe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:pe(String),values:kne,default:"bottom"},reference:{type:pe(Object),default:null},offset:{type:Number,default:8},strategy:{type:pe(String),values:xne,default:"absolute"},showArrow:{type:Boolean,default:!1}}),gv=He({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:pe(Function)},"onUpdate:open":{type:pe(Function)}}),wi={type:pe(Function)},bv=He({onBlur:wi,onClick:wi,onFocus:wi,onMouseDown:wi,onMouseEnter:wi,onMouseLeave:wi}),Cne=He({...gv,...vv,...bv,...mv,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:pe(Object),default:null},teleported:Boolean,to:{type:pe(String),default:"body"}}),Ld=Symbol("tooltipV2"),Hy=Symbol("tooltipV2Content"),_v="tooltip_v2.open",Sne=B({...B({name:"ElTooltipV2Root"}),props:gv,setup(e,{expose:t}){const o=e,r=V(o.defaultOpen),l=V(null),n=$({get:()=>pM(o.open)?r.value:o.open,set:_=>{var g;r.value=_,(g=o["onUpdate:open"])==null||g.call(o,_)}}),a=$(()=>ct(o.delayDuration)&&o.delayDuration>0),{start:i,stop:c}=Un(()=>{n.value=!0},$(()=>o.delayDuration),{immediate:!1}),u=Oe("tooltip-v2"),p=dr(),d=()=>{c(),n.value=!0},f=()=>{s(a)?i():d()},v=d,m=()=>{c(),n.value=!1};return Te(n,_=>{var g;_&&(document.dispatchEvent(new CustomEvent(_v)),v()),(g=o.onOpenChange)==null||g.call(o,_)}),vt(()=>{document.addEventListener(_v,m)}),Zt(()=>{c(),document.removeEventListener(_v,m)}),zt(Ld,{contentId:p,triggerRef:l,ns:u,onClose:m,onDelayOpen:f,onOpen:v}),t({onOpen:v,onClose:m}),(_,g)=>be(_.$slots,"default",{open:s(n)})}});var Ene=Fe(Sne,[["__file","root.vue"]]);const $ne=B({...B({name:"ElTooltipV2Arrow"}),props:{...vv,...yne},setup(e){const t=e,{ns:o}=Le(Ld),{arrowRef:r}=Le(Hy),l=$(()=>{const{style:n,width:a,height:i}=t,c=o.namespace.value;return{[`--${c}-tooltip-v2-arrow-width`]:`${a}px`,[`--${c}-tooltip-v2-arrow-height`]:`${i}px`,[`--${c}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${c}-tooltip-v2-arrow-cover-width`]:a/2-1,...n||{}}});return(n,a)=>(b(),z("span",{ref_key:"arrowRef",ref:r,style:Qe(s(l)),class:P(s(o).e("arrow"))},null,6))}});var Fy=Fe($ne,[["__file","arrow.vue"]]);const Tne=He({style:{type:pe([String,Object,Array]),default:()=>({})}}),zne=B({...B({name:"ElVisuallyHidden"}),props:Tne,setup(e){const t=e,o=$(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,l)=>(b(),z("span",Et(r.$attrs,{style:s(o)}),[be(r.$slots,"default")],16))}});var Mne=Fe(zne,[["__file","visual-hidden.vue"]]);const Ane=["data-side"],Ine=B({...B({name:"ElTooltipV2Content"}),props:{...mv,...Ry},setup(e){const t=e,{triggerRef:o,contentId:r}=Le(Ld),l=V(t.placement),n=V(t.strategy),a=V(null),{referenceRef:i,contentRef:c,middlewareData:u,x:p,y:d,update:f}=kD({placement:l,strategy:n,middleware:$(()=>{const w=[lD(t.offset)];return t.showArrow&&w.push(CD({arrowRef:a})),w})}),v=ti().nextZIndex(),m=Oe("tooltip-v2"),h=$(()=>l.value.split("-")[0]),_=$(()=>({position:s(n),top:`${s(d)||0}px`,left:`${s(p)||0}px`,zIndex:v})),g=$(()=>{if(!t.showArrow)return{};const{arrow:w}=s(u);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),y=$(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(s(n)),t.contentClass]);return Te(a,()=>f()),Te(()=>t.placement,w=>l.value=w),vt(()=>{Te(()=>t.reference||o.value,w=>{i.value=w||void 0},{immediate:!0})}),zt(Hy,{arrowRef:a}),(w,x)=>(b(),z("div",{ref_key:"contentRef",ref:c,style:Qe(s(_)),"data-tooltip-v2-root":""},[w.nowrap?ue("v-if",!0):(b(),z("div",{key:0,"data-side":s(h),class:P(s(y))},[be(w.$slots,"default",{contentStyle:s(_),contentClass:s(y)}),oe(s(Mne),{id:s(r),role:"tooltip"},{default:ne(()=>[w.ariaLabel?(b(),z(Ge,{key:0},[$t(ze(w.ariaLabel),1)],64)):be(w.$slots,"default",{key:1})]),_:3},8,["id"]),be(w.$slots,"arrow",{style:Qe(s(g)),side:s(h)})],10,Ane))],4))}});var Dy=Fe(Ine,[["__file","content.vue"]]);const One=He({setRef:{type:pe(Function),required:!0},onlyChild:Boolean});var Pne=B({props:One,setup(e,{slots:t}){const o=V(),r=Au(o,l=>{l?e.setRef(l.nextElementSibling):e.setRef(null)});return()=>{var l;const[n]=((l=t.default)==null?void 0:l.call(t))||[],a=e.onlyChild?MH(n.children):n.children;return oe(Ge,{ref:r},[a])}}});const Bne=B({...B({name:"ElTooltipV2Trigger"}),props:{...Ry,...bv},setup(e){const t=e,{onClose:o,onOpen:r,onDelayOpen:l,triggerRef:n,contentId:a}=Le(Ld);let i=!1;const c=y=>{n.value=y},u=()=>{i=!1},p=uo(t.onMouseEnter,l),d=uo(t.onMouseLeave,o),f=uo(t.onMouseDown,()=>{o(),i=!0,document.addEventListener("mouseup",u,{once:!0})}),v=uo(t.onFocus,()=>{i||r()}),m=uo(t.onBlur,o),h=uo(t.onClick,y=>{y.detail===0&&o()}),_={blur:m,click:h,focus:v,mousedown:f,mouseenter:p,mouseleave:d},g=(y,w,x)=>{y&&Object.entries(w).forEach(([M,T])=>{y[x](M,T)})};return Te(n,(y,w)=>{g(y,_,"addEventListener"),g(w,_,"removeEventListener"),y&&y.setAttribute("aria-describedby",a.value)}),Zt(()=>{g(n.value,_,"removeEventListener"),document.removeEventListener("mouseup",u)}),(y,w)=>y.nowrap?(b(),de(s(Pne),{key:0,"set-ref":c,"only-child":""},{default:ne(()=>[be(y.$slots,"default")]),_:3})):(b(),z("button",Et({key:1,ref_key:"triggerRef",ref:n},y.$attrs),[be(y.$slots,"default")],16))}});var Nne=Fe(Bne,[["__file","trigger.vue"]]);const Lne=B({...B({name:"ElTooltipV2"}),props:Cne,setup(e){const o=Ao(e),r=Ft(Pl(o,Object.keys(vv))),l=Ft(Pl(o,Object.keys(mv))),n=Ft(Pl(o,Object.keys(gv))),a=Ft(Pl(o,Object.keys(bv)));return(i,c)=>(b(),de(Ene,Rr(Gc(n)),{default:ne(({open:u})=>[oe(Nne,Et(a,{nowrap:""}),{default:ne(()=>[be(i.$slots,"trigger")]),_:3},16),(b(),de(Xi,{to:i.to,disabled:!i.teleported},[i.fullTransition?(b(),de(_o,Rr(Et({key:0},i.transitionProps)),{default:ne(()=>[i.alwaysOn||u?(b(),de(Dy,Rr(Et({key:0},l)),{arrow:ne(({style:p,side:d})=>[i.showArrow?(b(),de(Fy,Et({key:0},r,{style:p,side:d}),null,16,["style","side"])):ue("v-if",!0)]),default:ne(()=>[be(i.$slots,"default")]),_:3},16)):ue("v-if",!0)]),_:2},1040)):(b(),z(Ge,{key:1},[i.alwaysOn||u?(b(),de(Dy,Rr(Et({key:0},l)),{arrow:ne(({style:p,side:d})=>[i.showArrow?(b(),de(Fy,Et({key:0},r,{style:p,side:d}),null,16,["style","side"])):ue("v-if",!0)]),default:ne(()=>[be(i.$slots,"default")]),_:3},16)):ue("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Rne=Fe(Lne,[["__file","tooltip.vue"]]);const Vne=xt(Rne),jy="left-check-change",Ky="right-check-change",yi=He({data:{type:pe(Array),default:()=>[]},titles:{type:pe(Array),default:()=>[]},buttonTexts:{type:pe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:pe(Function)},leftDefaultChecked:{type:pe(Array),default:()=>[]},rightDefaultChecked:{type:pe(Array),default:()=>[]},renderContent:{type:pe(Function)},modelValue:{type:pe(Array),default:()=>[]},format:{type:pe(Object),default:()=>({})},filterable:Boolean,props:{type:pe(Object),default:()=>ro({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),wv=(e,t)=>[e,t].every(Ye)||Ye(e)&&wo(t),Hne={[Jt]:(e,t,o)=>[e,o].every(Ye)&&["left","right"].includes(t),[kt]:e=>Ye(e),[jy]:wv,[Ky]:wv},yv="checked-change",Fne=He({data:yi.data,optionRender:{type:pe(Function)},placeholder:String,title:String,filterable:Boolean,format:yi.format,filterMethod:yi.filterMethod,defaultChecked:yi.leftDefaultChecked,props:yi.props}),Dne={[yv]:wv},ac=e=>{const t={label:"label",key:"key",disabled:"disabled"};return $(()=>({...t,...e.props}))},jne=(e,t,o)=>{const r=ac(e),l=$(()=>e.data.filter(p=>ut(e.filterMethod)?e.filterMethod(t.query,p):String(p[r.value.label]||p[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),n=$(()=>l.value.filter(p=>!p[r.value.disabled])),a=$(()=>{const p=t.checked.length,d=e.data.length,{noChecked:f,hasChecked:v}=e.format;return f&&v?p>0?v.replace(/\${checked}/g,p.toString()).replace(/\${total}/g,d.toString()):f.replace(/\${total}/g,d.toString()):`${p}/${d}`}),i=$(()=>{const p=t.checked.length;return p>0&&p{const p=n.value.map(d=>d[r.value.key]);t.allChecked=p.length>0&&p.every(d=>t.checked.includes(d))},u=p=>{t.checked=p?n.value.map(d=>d[r.value.key]):[]};return Te(()=>t.checked,(p,d)=>{if(c(),t.checkChangeByUser){const f=p.concat(d).filter(v=>!p.includes(v)||!d.includes(v));o(yv,p,f)}else o(yv,p),t.checkChangeByUser=!0}),Te(n,()=>{c()}),Te(()=>e.data,()=>{const p=[],d=l.value.map(f=>f[r.value.key]);t.checked.forEach(f=>{d.includes(f)&&p.push(f)}),t.checkChangeByUser=!1,t.checked=p}),Te(()=>e.defaultChecked,(p,d)=>{if(d&&p.length===d.length&&p.every(m=>d.includes(m)))return;const f=[],v=n.value.map(m=>m[r.value.key]);p.forEach(m=>{v.includes(m)&&f.push(m)}),t.checkChangeByUser=!1,t.checked=f},{immediate:!0}),{filteredData:l,checkableData:n,checkedSummary:a,isIndeterminate:i,updateAllChecked:c,handleAllCheckedChange:u}},Kne=(e,t)=>({onSourceCheckedChange:(l,n)=>{e.leftChecked=l,n&&t(jy,l,n)},onTargetCheckedChange:(l,n)=>{e.rightChecked=l,n&&t(Ky,l,n)}}),Wne=e=>{const t=ac(e),o=$(()=>e.data.reduce((n,a)=>(n[a[t.value.key]]=a)&&n,{})),r=$(()=>e.data.filter(n=>!e.modelValue.includes(n[t.value.key]))),l=$(()=>e.targetOrder==="original"?e.data.filter(n=>e.modelValue.includes(n[t.value.key])):e.modelValue.reduce((n,a)=>{const i=o.value[a];return i&&n.push(i),n},[]));return{sourceData:r,targetData:l}},Une=(e,t,o)=>{const r=ac(e),l=(i,c,u)=>{o(kt,i),o(Jt,i,c,u)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(c=>{const u=i.indexOf(c);u>-1&&i.splice(u,1)}),l(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const c=e.data.filter(u=>{const p=u[r.value.key];return t.leftChecked.includes(p)&&!e.modelValue.includes(p)}).map(u=>u[r.value.key]);i=e.targetOrder==="unshift"?c.concat(i):i.concat(c),e.targetOrder==="original"&&(i=e.data.filter(u=>i.includes(u[r.value.key])).map(u=>u[r.value.key])),l(i,"right",t.leftChecked)}}},qne=B({...B({name:"ElTransferPanel"}),props:Fne,emits:Dne,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),n=({option:w})=>w,{t:a}=Nt(),i=Oe("transfer"),c=Ft({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ac(r),{filteredData:p,checkedSummary:d,isIndeterminate:f,handleAllCheckedChange:v}=jne(r,c,o),m=$(()=>!Tr(c.query)&&Tr(p.value)),h=$(()=>!Tr(l.default()[0].children)),{checked:_,allChecked:g,query:y}=Ao(c);return t({query:y}),(w,x)=>(b(),z("div",{class:P(s(i).b("panel"))},[E("p",{class:P(s(i).be("panel","header"))},[oe(s(Nr),{modelValue:s(g),"onUpdate:modelValue":x[0]||(x[0]=M=>Kt(g)?g.value=M:null),indeterminate:s(f),"validate-event":!1,onChange:s(v)},{default:ne(()=>[$t(ze(w.title)+" ",1),E("span",null,ze(s(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:P([s(i).be("panel","body"),s(i).is("with-footer",s(h))])},[w.filterable?(b(),de(s(Wo),{key:0,modelValue:s(y),"onUpdate:modelValue":x[1]||(x[1]=M=>Kt(y)?y.value=M:null),class:P(s(i).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":s(_3),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ue("v-if",!0),ht(oe(s(h4),{modelValue:s(_),"onUpdate:modelValue":x[2]||(x[2]=M=>Kt(_)?_.value=M:null),"validate-event":!1,class:P([s(i).is("filterable",w.filterable),s(i).be("panel","list")])},{default:ne(()=>[(b(!0),z(Ge,null,Tt(s(p),M=>(b(),de(s(Nr),{key:M[s(u).key],class:P(s(i).be("panel","item")),label:M[s(u).key],disabled:M[s(u).disabled],"validate-event":!1},{default:ne(()=>{var T;return[oe(n,{option:(T=w.optionRender)==null?void 0:T.call(w,M)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Pt,!s(m)&&!s(Tr)(w.data)]]),ht(E("p",{class:P(s(i).be("panel","empty"))},ze(s(m)?s(a)("el.transfer.noMatch"):s(a)("el.transfer.noData")),3),[[Pt,s(m)||s(Tr)(w.data)]])],2),s(h)?(b(),z("p",{key:0,class:P(s(i).be("panel","footer"))},[be(w.$slots,"default")],2)):ue("v-if",!0)],2))}});var Wy=Fe(qne,[["__file","transfer-panel.vue"]]);const Yne={key:0},Gne={key:0},Xne=B({...B({name:"ElTransfer"}),props:yi,emits:Hne,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),{t:n}=Nt(),a=Oe("transfer"),{formItem:i}=Qo(),c=Ft({leftChecked:[],rightChecked:[]}),u=ac(r),{sourceData:p,targetData:d}=Wne(r),{onSourceCheckedChange:f,onTargetCheckedChange:v}=Kne(c,o),{addToLeft:m,addToRight:h}=Une(r,c,o),_=V(),g=V(),y=I=>{switch(I){case"left":_.value.query="";break;case"right":g.value.query="";break}},w=$(()=>r.buttonTexts.length===2),x=$(()=>r.titles[0]||n("el.transfer.titles.0")),M=$(()=>r.titles[1]||n("el.transfer.titles.1")),T=$(()=>r.filterPlaceholder||n("el.transfer.filterPlaceholder"));Te(()=>r.modelValue,()=>{var I;r.validateEvent&&((I=i==null?void 0:i.validate)==null||I.call(i,"change").catch(F=>void 0))});const O=$(()=>I=>r.renderContent?r.renderContent(rt,I):l.default?l.default({option:I}):rt("span",I[u.value.label]||I[u.value.key]));return t({clearQuery:y,leftPanel:_,rightPanel:g}),(I,F)=>(b(),z("div",{class:P(s(a).b())},[oe(Wy,{ref_key:"leftPanel",ref:_,data:s(p),"option-render":s(O),placeholder:s(T),title:s(x),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,"default-checked":I.leftDefaultChecked,props:r.props,onCheckedChange:s(f)},{default:ne(()=>[be(I.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:P(s(a).e("buttons"))},[oe(s(Vo),{type:"primary",class:P([s(a).e("button"),s(a).is("with-texts",s(w))]),disabled:s(Tr)(c.rightChecked),onClick:s(m)},{default:ne(()=>[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1}),s(ko)(I.buttonTexts[0])?ue("v-if",!0):(b(),z("span",Yne,ze(I.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),oe(s(Vo),{type:"primary",class:P([s(a).e("button"),s(a).is("with-texts",s(w))]),disabled:s(Tr)(c.leftChecked),onClick:s(h)},{default:ne(()=>[s(ko)(I.buttonTexts[1])?ue("v-if",!0):(b(),z("span",Gne,ze(I.buttonTexts[1]),1)),oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),oe(Wy,{ref_key:"rightPanel",ref:g,data:s(d),"option-render":s(O),placeholder:s(T),filterable:I.filterable,format:I.format,"filter-method":I.filterMethod,title:s(M),"default-checked":I.rightDefaultChecked,props:r.props,onCheckedChange:s(v)},{default:ne(()=>[be(I.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Zne=Fe(Xne,[["__file","transfer.vue"]]);const Jne=xt(Zne),xi="$treeNodeId",Uy=function(e,t){!t||t[xi]||Object.defineProperty(t,xi,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},xv=function(e,t){return e?t[e]:t[xi]},kv=(e,t,o)=>{const r=e.value.currentNode;o();const l=e.value.currentNode;r!==l&&t("current-change",l?l.data:null,l)},Cv=e=>{let t=!0,o=!0,r=!0;for(let l=0,n=e.length;l"u"){const n=r[t];return n===void 0?"":n}};let Qne=0,Sv=class sp{constructor(t){this.id=Qne++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const o in t)Ot(t,o)&&(this[o]=t[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const o=t.props;if(o&&typeof o.isLeaf<"u"){const n=Vd(this,"isLeaf");typeof n=="boolean"&&(this.isLeafByUser=n)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Uy(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,l=t.key;l&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||Uy(this,t),this.data=t,this.childNodes=[];let o;this.level===0&&Array.isArray(this.data)?o=this.data:o=Vd(this,"children")||[];for(let r=0,l=o.length;r-1)return t.childNodes[o+1]}return null}get previousSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return o>0?t.childNodes[o-1]:null}return null}contains(t,o=!0){return(this.childNodes||[]).some(r=>r===t||o&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,o,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof sp)){if(!r){const l=this.getChildren(!0);l.includes(t.data)||(typeof o>"u"||o<0?l.push(t.data):l.splice(o,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ft(new sp(t)),t instanceof sp&&t.initialize()}t.level=this.level+1,typeof o>"u"||o<0?this.childNodes.push(t):this.childNodes.splice(o,0,t),this.updateLeafState()}insertBefore(t,o){let r;o&&(r=this.childNodes.indexOf(o)),this.insertChild(t,r)}insertAfter(t,o){let r;o&&(r=this.childNodes.indexOf(o),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const o=this.getChildren()||[],r=o.indexOf(t.data);r>-1&&o.splice(r,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let o=null;for(let r=0;r{if(o){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Array.isArray(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Rd(this),r())}):r()}doCreateChildren(t,o={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},o),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,o,r,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:i}=Cv(this.childNodes);!this.isLeaf&&!a&&i&&(this.checked=!1,t=!1);const c=()=>{if(o){const u=this.childNodes;for(let f=0,v=u.length;f{c(),Rd(this)},{checked:t!==!1});return}else c()}const n=this.parent;!n||n.level===0||r||Rd(n)}getChildren(t=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const r=this.store.props;let l="children";return r&&(l=r.children||"children"),o[l]===void 0&&(o[l]=null),t&&!o[l]&&(o[l]=[]),o[l]}updateChildren(){const t=this.getChildren()||[],o=this.childNodes.map(n=>n.data),r={},l=[];t.forEach((n,a)=>{const i=n[xi];!!i&&o.findIndex(u=>u[xi]===i)>=0?r[i]={index:a,data:n}:l.push({index:a,data:n})}),this.store.lazy||o.forEach(n=>{r[n[xi]]||this.removeChildByData(n)}),l.forEach(({index:n,data:a})=>{this.insertChild({data:a},n)}),this.updateLeafState()}loadData(t,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const r=l=>{this.childNodes=[],this.doCreateChildren(l,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)};this.store.load(this,r)}else t&&t.call(this)}};class eae{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const o in t)Ot(t,o)&&(this[o]=t[o]);this.nodesMap={}}initialize(){if(this.root=new Sv({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const o=this.filterNodeMethod,r=this.lazy,l=function(n){const a=n.root?n.root.childNodes:n.childNodes;if(a.forEach(i=>{i.visible=o.call(i,t,i.data,i),l(i)}),!n.visible&&a.length){let i=!0;i=!a.some(c=>c.visible),n.root?n.root.visible=i===!1:n.visible=i===!1}t&&n.visible&&!n.isLeaf&&!r&&n.expand()};l(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Sv)return t;const o=Ct(t)?xv(this.key,t):t;return this.nodesMap[o]||null}insertBefore(t,o){const r=this.getNode(o);r.parent.insertBefore({data:t},r)}insertAfter(t,o){const r=this.getNode(o);r.parent.insertAfter({data:t},r)}remove(t){const o=this.getNode(t);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(t,o){const r=o?this.getNode(o):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],o=this.nodesMap;t.forEach(r=>{const l=o[r];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const o=this.key;!t||!t.data||(o?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,o=!1){const r=[],l=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{(i.checked||o&&i.indeterminate)&&(!t||t&&i.isLeaf)&&r.push(i.data),l(i)})};return l(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const t=[],o=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(n=>{n.indeterminate&&t.push(n.data),o(n)})};return o(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],o=this.nodesMap;for(const r in o)Ot(o,r)&&t.push(o[r]);return t}updateChildren(t,o){const r=this.nodesMap[t];if(!r)return;const l=r.childNodes;for(let n=l.length-1;n>=0;n--){const a=l[n];this.remove(a.data)}for(let n=0,a=o.length;nc.level-i.level),n=Object.create(null),a=Object.keys(r);l.forEach(i=>i.setChecked(!1,!1));for(let i=0,c=l.length;i0;)n[f.data[t]]=!0,f=f.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),o){u.setChecked(!1,!1);const v=function(m){m.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),v(_)})};v(u)}}}setCheckedNodes(t,o=!1){const r=this.key,l={};t.forEach(n=>{l[(n||{})[r]]=!0}),this._setCheckedKeys(r,o,l)}setCheckedKeys(t,o=!1){this.defaultCheckedKeys=t;const r=this.key,l={};t.forEach(n=>{l[n]=!0}),this._setCheckedKeys(r,o,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(o=>{const r=this.getNode(o);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,o,r){const l=this.getNode(t);l&&l.setChecked(!!o,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,o=!0){const r=t[this.key],l=this.nodesMap[r];this.setCurrentNode(l),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,o=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}var tae=Fe(B({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Oe("tree"),o=Le("NodeInstance"),r=Le("RootTree");return()=>{const l=e.node,{data:n,store:a}=l;return e.renderContent?e.renderContent(rt,{_self:o,node:l,data:n,store:a}):be(r.ctx.slots,"default",{node:l,data:n},()=>[rt("span",{class:t.be("node","label")},[l.label])])}}}),[["__file","tree-node-content.vue"]]);function qy(e){const t=Le("TreeNodeMap",null),o={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(o),zt("TreeNodeMap",o),{broadcastExpanded:r=>{if(e.accordion)for(const l of o.children)l.treeNodeExpand(r)}}}const Yy=Symbol("dragEvents");function oae({props:e,ctx:t,el$:o,dropIndicator$:r,store:l}){const n=Oe("tree"),a=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return zt(Yy,{treeNodeDragStart:({event:p,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return p.preventDefault(),!1;p.dataTransfer.effectAllowed="move";try{p.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=d,t.emit("node-drag-start",d.node,p)},treeNodeDragOver:({event:p,treeNode:d})=>{const f=d,v=a.value.dropNode;v&&v.node.id!==f.node.id&&sr(v.$el,n.is("drop-inner"));const m=a.value.draggingNode;if(!m||!f)return;let h=!0,_=!0,g=!0,y=!0;typeof e.allowDrop=="function"&&(h=e.allowDrop(m.node,f.node,"prev"),y=_=e.allowDrop(m.node,f.node,"inner"),g=e.allowDrop(m.node,f.node,"next")),p.dataTransfer.dropEffect=_||h||g?"move":"none",(h||_||g)&&(v==null?void 0:v.node.id)!==f.node.id&&(v&&t.emit("node-drag-leave",m.node,v.node,p),t.emit("node-drag-enter",m.node,f.node,p)),(h||_||g)&&(a.value.dropNode=f),f.node.nextSibling===m.node&&(g=!1),f.node.previousSibling===m.node&&(h=!1),f.node.contains(m.node,!1)&&(_=!1),(m.node===f.node||m.node.contains(f.node))&&(h=!1,_=!1,g=!1);const w=f.$el.querySelector(`.${n.be("node","content")}`).getBoundingClientRect(),x=o.value.getBoundingClientRect();let M;const T=h?_?.25:g?.45:1:-1,O=g?_?.75:h?.55:0:1;let I=-9999;const F=p.clientY-w.top;Fw.height*O?M="after":_?M="inner":M="none";const K=f.$el.querySelector(`.${n.be("node","expand-icon")}`).getBoundingClientRect(),R=r.value;M==="before"?I=K.top-x.top:M==="after"&&(I=K.bottom-x.top),R.style.top=`${I}px`,R.style.left=`${K.right-x.left}px`,M==="inner"?al(f.$el,n.is("drop-inner")):sr(f.$el,n.is("drop-inner")),a.value.showDropIndicator=M==="before"||M==="after",a.value.allowDrop=a.value.showDropIndicator||y,a.value.dropType=M,t.emit("node-drag-over",m.node,f.node,p)},treeNodeDragEnd:p=>{const{draggingNode:d,dropType:f,dropNode:v}=a.value;if(p.preventDefault(),p.dataTransfer.dropEffect="move",d&&v){const m={data:d.node.data};f!=="none"&&d.node.remove(),f==="before"?v.node.parent.insertBefore(m,v.node):f==="after"?v.node.parent.insertAfter(m,v.node):f==="inner"&&v.node.insertChild(m),f!=="none"&&l.value.registerNode(m),sr(v.$el,n.is("drop-inner")),t.emit("node-drag-end",d.node,v.node,f,p),f!=="none"&&t.emit("node-drop",d.node,v.node,f,p)}d&&!v&&t.emit("node-drag-end",d.node,null,f,p),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const rae=B({name:"ElTreeNode",components:{ElCollapseTransition:fd,ElCheckbox:Nr,NodeContent:tae,ElIcon:Je,Loading:Rl},props:{node:{type:Sv,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const o=Oe("tree"),{broadcastExpanded:r}=qy(e),l=Le("RootTree"),n=V(!1),a=V(!1),i=V(null),c=V(null),u=V(null),p=Le(Yy),d=_t();zt("NodeInstance",d),e.node.expanded&&(n.value=!0,a.value=!0);const f=l.props.props.children||"children";Te(()=>{const F=e.node.data[f];return F&&[...F]},()=>{e.node.updateChildren()}),Te(()=>e.node.indeterminate,F=>{h(e.node.checked,F)}),Te(()=>e.node.checked,F=>{h(F,e.node.indeterminate)}),Te(()=>e.node.expanded,F=>{et(()=>n.value=F),F&&(a.value=!0)});const v=F=>xv(l.props.nodeKey,F.data),m=F=>{const K=e.props.class;if(!K)return{};let R;if(ut(K)){const{data:D}=F;R=K(D,F)}else R=K;return ft(R)?{[R]:!0}:R},h=(F,K)=>{(i.value!==F||c.value!==K)&&l.ctx.emit("check-change",e.node.data,F,K),i.value=F,c.value=K},_=F=>{kv(l.store,l.ctx.emit,()=>l.store.value.setCurrentNode(e.node)),l.currentNode.value=e.node,l.props.expandOnClickNode&&y(),l.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,d,F)},g=F=>{l.instance.vnode.props.onNodeContextmenu&&(F.stopPropagation(),F.preventDefault()),l.ctx.emit("node-contextmenu",F,e.node.data,e.node,d)},y=()=>{e.node.isLeaf||(n.value?(l.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,d)))},w=(F,K)=>{e.node.setChecked(K.target.checked,!l.props.checkStrictly),et(()=>{const R=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:R.getCheckedNodes(),checkedKeys:R.getCheckedKeys(),halfCheckedNodes:R.getHalfCheckedNodes(),halfCheckedKeys:R.getHalfCheckedKeys()})})};return{ns:o,node$:u,tree:l,expanded:n,childNodeRendered:a,oldChecked:i,oldIndeterminate:c,getNodeKey:v,getNodeClass:m,handleSelectChange:h,handleClick:_,handleContextMenu:g,handleExpandIconClick:y,handleCheckChange:w,handleChildNodeExpand:(F,K,R)=>{r(K),l.ctx.emit("node-expand",F,K,R)},handleDragStart:F=>{l.props.draggable&&p.treeNodeDragStart({event:F,treeNode:e})},handleDragOver:F=>{F.preventDefault(),l.props.draggable&&p.treeNodeDragOver({event:F,treeNode:{$el:u.value,node:e.node}})},handleDrop:F=>{F.preventDefault()},handleDragEnd:F=>{l.props.draggable&&p.treeNodeDragEnd(F)},CaretRight:o0}}}),lae=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],nae=["aria-expanded"];function aae(e,t,o,r,l,n){const a=ot("el-icon"),i=ot("el-checkbox"),c=ot("loading"),u=ot("node-content"),p=ot("el-tree-node"),d=ot("el-collapse-transition");return ht((b(),z("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=it((...f)=>e.handleClick&&e.handleClick(...f),["stop"])),onContextmenu:t[2]||(t[2]=(...f)=>e.handleContextMenu&&e.handleContextMenu(...f)),onDragstart:t[3]||(t[3]=it((...f)=>e.handleDragStart&&e.handleDragStart(...f),["stop"])),onDragover:t[4]||(t[4]=it((...f)=>e.handleDragOver&&e.handleDragOver(...f),["stop"])),onDragend:t[5]||(t[5]=it((...f)=>e.handleDragEnd&&e.handleDragEnd(...f),["stop"])),onDrop:t[6]||(t[6]=it((...f)=>e.handleDrop&&e.handleDrop(...f),["stop"]))},[E("div",{class:P(e.ns.be("node","content")),style:Qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(b(),de(a,{key:0,class:P([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:it(e.handleExpandIconClick,["stop"])},{default:ne(()=>[(b(),de(St(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ue("v-if",!0),e.showCheckbox?(b(),de(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ue("v-if",!0),e.node.loading?(b(),de(a,{key:2,class:P([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ne(()=>[oe(c)]),_:1},8,["class"])):ue("v-if",!0),oe(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),oe(d,null,{default:ne(()=>[!e.renderAfterExpand||e.childNodeRendered?ht((b(),z("div",{key:0,class:P(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(b(!0),z(Ge,null,Tt(e.node.childNodes,f=>(b(),de(p,{key:e.getNodeKey(f),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:f,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,nae)),[[Pt,e.expanded]]):ue("v-if",!0)]),_:1})],42,lae)),[[Pt,e.node.visible]])}var iae=Fe(rae,[["render",aae],["__file","tree-node.vue"]]);function sae({el$:e},t){const o=Oe("tree"),r=qt([]),l=qt([]);vt(()=>{a()}),$l(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Te(l,i=>{i.forEach(c=>{c.setAttribute("tabindex","-1")})}),eo(e,"keydown",i=>{const c=i.target;if(!c.className.includes(o.b("node")))return;const u=i.code;r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));const p=r.value.indexOf(c);let d;if([tt.up,tt.down].includes(u)){if(i.preventDefault(),u===tt.up){d=p===-1?0:p!==0?p-1:r.value.length-1;const v=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d--,d===v){d=-1;break}d<0&&(d=r.value.length-1)}}else{d=p===-1?0:p=r.value.length&&(d=0)}}d!==-1&&r.value[d].focus()}[tt.left,tt.right].includes(u)&&(i.preventDefault(),c.click());const f=c.querySelector('[type="checkbox"]');[tt.enter,tt.space].includes(u)&&f&&(i.preventDefault(),f.click())});const a=()=>{var i;r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const c=e.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(i=r.value[0])==null||i.setAttribute("tabindex","0")}}const cae=B({name:"ElTree",components:{ElTreeNode:iae},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ut}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:o}=Nt(),r=Oe("tree"),l=V(new eae({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));l.value.initialize();const n=V(l.value.root),a=V(null),i=V(null),c=V(null),{broadcastExpanded:u}=qy(e),{dragState:p}=oae({props:e,ctx:t,el$:i,dropIndicator$:c,store:l});sae({el$:i},l);const d=$(()=>{const{childNodes:L}=n.value;return!L||L.length===0||L.every(({visible:X})=>!X)});Te(()=>e.currentNodeKey,L=>{l.value.setCurrentNodeKey(L)}),Te(()=>e.defaultCheckedKeys,L=>{l.value.setDefaultCheckedKey(L)}),Te(()=>e.defaultExpandedKeys,L=>{l.value.setDefaultExpandedKeys(L)}),Te(()=>e.data,L=>{l.value.setData(L)},{deep:!0}),Te(()=>e.checkStrictly,L=>{l.value.checkStrictly=L});const f=L=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");l.value.filter(L)},v=L=>xv(e.nodeKey,L.data),m=L=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const X=l.value.getNode(L);if(!X)return[];const N=[X.data];let W=X.parent;for(;W&&W!==n.value;)N.push(W.data),W=W.parent;return N.reverse()},h=(L,X)=>l.value.getCheckedNodes(L,X),_=L=>l.value.getCheckedKeys(L),g=()=>{const L=l.value.getCurrentNode();return L?L.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const L=g();return L?L[e.nodeKey]:null},w=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");l.value.setCheckedNodes(L,X)},x=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");l.value.setCheckedKeys(L,X)},M=(L,X,N)=>{l.value.setChecked(L,X,N)},T=()=>l.value.getHalfCheckedNodes(),O=()=>l.value.getHalfCheckedKeys(),I=(L,X=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");kv(l,t.emit,()=>l.value.setUserCurrentNode(L,X))},F=(L,X=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");kv(l,t.emit,()=>l.value.setCurrentNodeKey(L,X))},K=L=>l.value.getNode(L),R=L=>{l.value.remove(L)},D=(L,X)=>{l.value.append(L,X)},j=(L,X)=>{l.value.insertBefore(L,X)},Z=(L,X)=>{l.value.insertAfter(L,X)},Q=(L,X,N)=>{u(X),t.emit("node-expand",L,X,N)},J=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");l.value.updateChildren(L,X)};return zt("RootTree",{ctx:t,props:e,store:l,root:n,currentNode:a,instance:_t()}),zt(pl,void 0),{ns:r,store:l,root:n,currentNode:a,dragState:p,el$:i,dropIndicator$:c,isEmpty:d,filter:f,getNodeKey:v,getNodePath:m,getCheckedNodes:h,getCheckedKeys:_,getCurrentNode:g,getCurrentKey:y,setCheckedNodes:w,setCheckedKeys:x,setChecked:M,getHalfCheckedNodes:T,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:F,t:o,getNode:K,remove:R,append:D,insertBefore:j,insertAfter:Z,handleNodeExpand:Q,updateKeyChildren:J}}});function uae(e,t,o,r,l,n){const a=ot("el-tree-node");return b(),z("div",{ref:"el$",class:P([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(b(!0),z(Ge,null,Tt(e.root.childNodes,i=>(b(),de(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(b(),z("div",{key:0,class:P(e.ns.e("empty-block"))},[be(e.$slots,"empty",{},()=>{var i;return[E("span",{class:P(e.ns.e("empty-text"))},ze((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ue("v-if",!0),ht(E("div",{ref:"dropIndicator$",class:P(e.ns.e("drop-indicator"))},null,2),[[Pt,e.dragState.showDropIndicator]])],2)}var Hd=Fe(cae,[["render",uae],["__file","tree.vue"]]);Hd.install=e=>{e.component(Hd.name,Hd)};const Fd=Hd,dae=Fd,pae=(e,{attrs:t,emit:o},{tree:r,key:l})=>{const n=Oe("tree-select"),a={...Pl(Ao(e),Object.keys(ha.props)),...t,"onUpdate:modelValue":i=>o(kt,i),valueKey:l,popperClass:$(()=>{const i=[n.e("popper")];return e.popperClass&&i.push(e.popperClass),i.join(" ")}),filterMethod:(i="")=>{e.filterMethod&&e.filterMethod(i),et(()=>{var c;(c=r.value)==null||c.filter(i)})},onVisibleChange:i=>{var c;(c=t.onVisibleChange)==null||c.call(t,i),e.filterable&&i&&a.filterMethod()}};return a},fae=B({extends:yd,setup(e,t){const o=yd.setup(e,t);delete o.selectOptionClick;const r=_t().proxy;return et(()=>{o.select.cachedOptions.get(r.value)||o.select.onOptionCreate(r)}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Ev(e){return e||e===0}function $v(e){return Array.isArray(e)&&e.length}function ic(e){return Array.isArray(e)?e:Ev(e)?[e]:[]}function Dd(e,t,o,r,l){for(let n=0;n{Te(()=>e.modelValue,()=>{e.showCheckbox&&et(()=>{const f=n.value;f&&!ir(f.getCheckedKeys(),ic(e.modelValue))&&f.setCheckedKeys(ic(e.modelValue))})},{immediate:!0,deep:!0});const i=$(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),c=(f,v)=>{var m;const h=i.value[f];return ut(h)?h(v,(m=n.value)==null?void 0:m.getNode(c("value",v))):v[h]},u=ic(e.modelValue).map(f=>Dd(e.data||[],v=>c("value",v)===f,v=>c("children",v),(v,m,h,_)=>_&&c("value",_))).filter(f=>Ev(f)),p=$(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return Gy(e.data.concat(e.cacheData),v=>{const m=c("value",v);f.push({value:m,currentLabel:c("label",v),isDisabled:c("disabled",v)})},v=>c("children",v)),f}),d=$(()=>p.value.reduce((f,v)=>({...f,[v.value]:v}),{}));return{...Pl(Ao(e),Object.keys(Fd.props)),...t,nodeKey:a,expandOnClickNode:$(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:$(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:v,data:m,store:h})=>f(fae,{value:c("value",m),label:c("label",m),disabled:c("disabled",m)},e.renderContent?()=>e.renderContent(f,{node:v,data:m,store:h}):o.default?()=>o.default({node:v,data:m,store:h}):void 0),filterNodeMethod:(f,v,m)=>{var h;return e.filterNodeMethod?e.filterNodeMethod(f,v,m):f?(h=c("label",v))==null?void 0:h.includes(f):!0},onNodeClick:(f,v,m)=>{var h,_,g;if((h=t.onNodeClick)==null||h.call(t,f,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!c("disabled",f)){const y=(_=l.value)==null?void 0:_.options.get(c("value",f));(g=l.value)==null||g.handleOptionSelect(y)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(f,v)=>{if(!e.showCheckbox)return;const m=c("value",f),h=v.checkedKeys,_=e.multiple?ic(e.modelValue).filter(y=>y in d.value&&!n.value.getNode(y)&&!h.includes(y)):[],g=h.concat(_);if(e.checkStrictly)r(kt,e.multiple?g:g.includes(m)?m:void 0);else if(e.multiple)r(kt,n.value.getCheckedKeys(!0));else{const y=Dd([f],M=>!$v(c("children",M))&&!c("disabled",M),M=>c("children",M)),w=y?c("value",y):void 0,x=Ev(e.modelValue)&&!!Dd([f],M=>c("value",M)===e.modelValue,M=>c("children",M));r(kt,w===e.modelValue||x?void 0:w)}et(()=>{var y;const w=ic(e.modelValue);n.value.setCheckedKeys(w),(y=t.onCheck)==null||y.call(t,f,{checkedKeys:n.value.getCheckedKeys(),checkedNodes:n.value.getCheckedNodes(),halfCheckedKeys:n.value.getHalfCheckedKeys(),halfCheckedNodes:n.value.getHalfCheckedNodes()})})},cacheOptions:p}};var vae=B({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Le(Ys);return Te(()=>e.data,()=>{var o;e.data.forEach(l=>{t.cachedOptions.has(l.value)||t.cachedOptions.set(l.value,l)});const r=((o=t.selectWrapper)==null?void 0:o.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const mae=B({name:"ElTreeSelect",inheritAttrs:!1,props:{...ha.props,...Fd.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:o,expose:r}=t,l=V(),n=V(),a=$(()=>e.nodeKey||e.valueKey||"value"),i=pae(e,t,{select:l,tree:n,key:a}),{cacheOptions:c,...u}=hae(e,t,{select:l,tree:n,key:a}),p=Ft({});return r(p),vt(()=>{Object.assign(p,{...Pl(n.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Pl(l.value,["focus","blur"])})}),()=>rt(ha,Ft({...i,ref:d=>l.value=d}),{...o,default:()=>[rt(vae,{data:c.value}),rt(Fd,Ft({...u,ref:d=>n.value=d}))]})}});var jd=Fe(mae,[["__file","tree-select.vue"]]);jd.install=e=>{e.component(jd.name,jd)};const gae=jd,Tv=Symbol(),bae={key:-1,level:-1,data:{}};var sc=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(sc||{}),zv=(e=>(e.ADD="add",e.DELETE="delete",e))(zv||{});const Xy={type:Number,default:26},_ae=He({data:{type:pe(Array),default:()=>ro([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:pe(Object),default:()=>ro({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:pe(Array),default:()=>ro([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:pe(Array),default:()=>ro([])},indent:{type:Number,default:16},itemSize:Xy,icon:{type:Ut},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:pe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:pe(Function)},perfMode:{type:Boolean,default:!0}}),wae=He({node:{type:pe(Object),default:()=>ro(bae)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:Xy}),yae=He({node:{type:pe(Object),required:!0}}),Zy="node-click",Jy="node-expand",Qy="node-collapse",e8="current-change",t8="check",o8="check-change",r8="node-contextmenu",xae={[Zy]:(e,t,o)=>e&&t&&o,[Jy]:(e,t)=>e&&t,[Qy]:(e,t)=>e&&t,[e8]:(e,t)=>e&&t,[t8]:(e,t)=>e&&t,[o8]:(e,t)=>e&&typeof t=="boolean",[r8]:(e,t,o)=>e&&t&&o},kae={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Cae(e,t){const o=V(new Set),r=V(new Set),{emit:l}=_t();Te([()=>t.value,()=>e.defaultCheckedKeys],()=>et(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const n=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:x}=t.value,M=o.value,T=new Set;for(let O=x-1;O>=1;--O){const I=w.get(O);I&&I.forEach(F=>{const K=F.children;if(K){let R=!0,D=!1;for(const j of K){const Z=j.key;if(M.has(Z))D=!0;else if(T.has(Z)){R=!1,D=!0;break}else R=!1}R?M.add(F.key):D?(T.add(F.key),M.delete(F.key)):(M.delete(F.key),T.delete(F.key))}})}r.value=T},a=w=>o.value.has(w.key),i=w=>r.value.has(w.key),c=(w,x,M=!0)=>{const T=o.value,O=(I,F)=>{T[F?zv.ADD:zv.DELETE](I.key);const K=I.children;!e.checkStrictly&&K&&K.forEach(R=>{R.disabled||O(R,F)})};O(w,x),n(),M&&u(w,x)},u=(w,x)=>{const{checkedNodes:M,checkedKeys:T}=m(),{halfCheckedNodes:O,halfCheckedKeys:I}=h();l(t8,w.data,{checkedKeys:T,checkedNodes:M,halfCheckedKeys:I,halfCheckedNodes:O}),l(o8,w.data,x)};function p(w=!1){return m(w).checkedKeys}function d(w=!1){return m(w).checkedNodes}function f(){return h().halfCheckedKeys}function v(){return h().halfCheckedNodes}function m(w=!1){const x=[],M=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:T}=t.value;o.value.forEach(O=>{const I=T.get(O);I&&(!w||w&&I.isLeaf)&&(M.push(O),x.push(I.data))})}return{checkedKeys:M,checkedNodes:x}}function h(){const w=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:M}=t.value;r.value.forEach(T=>{const O=M.get(T);O&&(x.push(T),w.push(O.data))})}return{halfCheckedNodes:w,halfCheckedKeys:x}}function _(w){o.value.clear(),r.value.clear(),y(w)}function g(w,x){if(t!=null&&t.value&&e.showCheckbox){const M=t.value.treeNodeMap.get(w);M&&c(M,x,!1)}}function y(w){if(t!=null&&t.value){const{treeNodeMap:x}=t.value;if(e.showCheckbox&&x&&w)for(const M of w){const T=x.get(M);T&&!a(T)&&c(T,!0,!1)}}}return{updateCheckedKeys:n,toggleCheckbox:c,isChecked:a,isIndeterminate:i,getCheckedKeys:p,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:g,setCheckedKeys:_}}function Sae(e,t){const o=V(new Set([])),r=V(new Set([])),l=$(()=>ut(e.filterMethod));function n(i){var c;if(!l.value)return;const u=new Set,p=r.value,d=o.value,f=[],v=((c=t.value)==null?void 0:c.treeNodes)||[],m=e.filterMethod;d.clear();function h(_){_.forEach(g=>{f.push(g),m!=null&&m(i,g.data)?f.forEach(w=>{u.add(w.key)}):g.isLeaf&&d.add(g.key);const y=g.children;if(y&&h(y),!g.isLeaf){if(!u.has(g.key))d.add(g.key);else if(y){let w=!0;for(const x of y)if(!d.has(x.key)){w=!1;break}w?p.add(g.key):p.delete(g.key)}}f.pop()})}return h(v),u}function a(i){return r.value.has(i.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:o,doFilter:n,isForceHiddenExpandIcon:a}}function Eae(e,t){const o=V(new Set(e.defaultExpandedKeys)),r=V(),l=qt();Te(()=>e.currentNodeKey,me=>{r.value=me},{immediate:!0}),Te(()=>e.data,me=>{ge(me)},{immediate:!0});const{isIndeterminate:n,isChecked:a,toggleCheckbox:i,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:p,getHalfCheckedNodes:d,setChecked:f,setCheckedKeys:v}=Cae(e,l),{doFilter:m,hiddenNodeKeySet:h,isForceHiddenExpandIcon:_}=Sae(e,l),g=$(()=>{var me;return((me=e.props)==null?void 0:me.value)||sc.KEY}),y=$(()=>{var me;return((me=e.props)==null?void 0:me.children)||sc.CHILDREN}),w=$(()=>{var me;return((me=e.props)==null?void 0:me.disabled)||sc.DISABLED}),x=$(()=>{var me;return((me=e.props)==null?void 0:me.label)||sc.LABEL}),M=$(()=>{const me=o.value,Be=h.value,ye=[],Me=l.value&&l.value.treeNodes||[];function te(){const ce=[];for(let we=Me.length-1;we>=0;--we)ce.push(Me[we]);for(;ce.length;){const we=ce.pop();if(we&&(Be.has(we.key)||ye.push(we),me.has(we.key))){const Ae=we.children;if(Ae){const Ie=Ae.length;for(let xe=Ie-1;xe>=0;--xe)ce.push(Ae[xe])}}}}return te(),ye}),T=$(()=>M.value.length>0);function O(me){const Be=new Map,ye=new Map;let Me=1;function te(we,Ae=1,Ie=void 0){var xe;const Ne=[];for(const Se of we){const ke=K(Se),$e={level:Ae,key:ke,data:Se};$e.label=D(Se),$e.parent=Ie;const Pe=F(Se);$e.disabled=R(Se),$e.isLeaf=!Pe||Pe.length===0,Pe&&Pe.length&&($e.children=te(Pe,Ae+1,$e)),Ne.push($e),Be.set(ke,$e),ye.has(Ae)||ye.set(Ae,[]),(xe=ye.get(Ae))==null||xe.push($e)}return Ae>Me&&(Me=Ae),Ne}const ce=te(me);return{treeNodeMap:Be,levelTreeNodeMap:ye,maxLevel:Me,treeNodes:ce}}function I(me){const Be=m(me);Be&&(o.value=Be)}function F(me){return me[y.value]}function K(me){return me?me[g.value]:""}function R(me){return me[w.value]}function D(me){return me[x.value]}function j(me){o.value.has(me.key)?N(me):X(me)}function Z(me){o.value=new Set(me)}function Q(me,Be){t(Zy,me.data,me,Be),J(me),e.expandOnClickNode&&j(me),e.showCheckbox&&e.checkOnClickNode&&!me.disabled&&i(me,!a(me),!0)}function J(me){ie(me)||(r.value=me.key,t(e8,me.data,me))}function L(me,Be){i(me,Be)}function X(me){const Be=o.value;if(l.value&&e.accordion){const{treeNodeMap:ye}=l.value;Be.forEach(Me=>{const te=ye.get(Me);me&&me.level===(te==null?void 0:te.level)&&Be.delete(Me)})}Be.add(me.key),t(Jy,me.data,me)}function N(me){o.value.delete(me.key),t(Qy,me.data,me)}function W(me){return o.value.has(me.key)}function re(me){return!!me.disabled}function ie(me){const Be=r.value;return Be!==void 0&&Be===me.key}function se(){var me,Be;if(r.value)return(Be=(me=l.value)==null?void 0:me.treeNodeMap.get(r.value))==null?void 0:Be.data}function ve(){return r.value}function le(me){r.value=me}function ge(me){et(()=>l.value=O(me))}function _e(me){var Be;const ye=Ct(me)?K(me):me;return(Be=l.value)==null?void 0:Be.treeNodeMap.get(ye)}return{tree:l,flattenTree:M,isNotEmpty:T,getKey:K,getChildren:F,toggleExpand:j,toggleCheckbox:i,isExpanded:W,isChecked:a,isIndeterminate:n,isDisabled:re,isCurrent:ie,isForceHiddenExpandIcon:_,handleNodeClick:Q,handleNodeCheck:L,getCurrentNode:se,getCurrentKey:ve,setCurrentKey:le,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:p,getHalfCheckedNodes:d,setChecked:f,setCheckedKeys:v,filter:I,setData:ge,getNode:_e,expandNode:X,collapseNode:N,setExpandedKeys:Z}}var $ae=B({name:"ElTreeNodeContent",props:yae,setup(e){const t=Le(Tv),o=Oe("tree");return()=>{const r=e.node,{data:l}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:l}):rt("span",{class:o.be("node","label")},[r==null?void 0:r.label])}}});const Tae=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],zae=B({...B({name:"ElTreeNode"}),props:wae,emits:kae,setup(e,{emit:t}){const o=e,r=Le(Tv),l=Oe("tree"),n=$(()=>{var d;return(d=r==null?void 0:r.props.indent)!=null?d:16}),a=$(()=>{var d;return(d=r==null?void 0:r.props.icon)!=null?d:o0}),i=d=>{t("click",o.node,d)},c=()=>{t("toggle",o.node)},u=d=>{t("check",o.node,d)},p=d=>{var f,v,m,h;(m=(v=(f=r==null?void 0:r.instance)==null?void 0:f.vnode)==null?void 0:v.props)!=null&&m.onNodeContextmenu&&(d.stopPropagation(),d.preventDefault()),r==null||r.ctx.emit(r8,d,(h=o.node)==null?void 0:h.data,o.node)};return(d,f)=>{var v,m,h;return b(),z("div",{ref:"node$",class:P([s(l).b("node"),s(l).is("expanded",d.expanded),s(l).is("current",d.current),s(l).is("focusable",!d.disabled),s(l).is("checked",!d.disabled&&d.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":d.expanded,"aria-disabled":d.disabled,"aria-checked":d.checked,"data-key":(v=d.node)==null?void 0:v.key,onClick:it(i,["stop"]),onContextmenu:p},[E("div",{class:P(s(l).be("node","content")),style:Qe({paddingLeft:`${(d.node.level-1)*s(n)}px`,height:d.itemSize+"px"})},[s(a)?(b(),de(s(Je),{key:0,class:P([s(l).is("leaf",!!((m=d.node)!=null&&m.isLeaf)),s(l).is("hidden",d.hiddenExpandIcon),{expanded:!((h=d.node)!=null&&h.isLeaf)&&d.expanded},s(l).be("node","expand-icon")]),onClick:it(c,["stop"])},{default:ne(()=>[(b(),de(St(s(a))))]),_:1},8,["class","onClick"])):ue("v-if",!0),d.showCheckbox?(b(),de(s(Nr),{key:1,"model-value":d.checked,indeterminate:d.indeterminate,disabled:d.disabled,onChange:u,onClick:f[0]||(f[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ue("v-if",!0),oe(s($ae),{node:d.node},null,8,["node"])],6)],42,Tae)}}});var Mae=Fe(zae,[["__file","tree-node.vue"]]);const Aae=B({...B({name:"ElTreeV2"}),props:_ae,emits:xae,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),n=$(()=>r.itemSize);zt(Tv,{ctx:{emit:o,slots:l},props:r,instance:_t()}),zt(pl,void 0);const{t:a}=Nt(),i=Oe("tree"),{flattenTree:c,isNotEmpty:u,toggleExpand:p,isExpanded:d,isIndeterminate:f,isChecked:v,isDisabled:m,isCurrent:h,isForceHiddenExpandIcon:_,handleNodeClick:g,handleNodeCheck:y,toggleCheckbox:w,getCurrentNode:x,getCurrentKey:M,setCurrentKey:T,getCheckedKeys:O,getCheckedNodes:I,getHalfCheckedKeys:F,getHalfCheckedNodes:K,setChecked:R,setCheckedKeys:D,filter:j,setData:Z,getNode:Q,expandNode:J,collapseNode:L,setExpandedKeys:X}=Eae(r,o);return t({toggleCheckbox:w,getCurrentNode:x,getCurrentKey:M,setCurrentKey:T,getCheckedKeys:O,getCheckedNodes:I,getHalfCheckedKeys:F,getHalfCheckedNodes:K,setChecked:R,setCheckedKeys:D,filter:j,setData:Z,getNode:Q,expandNode:J,collapseNode:L,setExpandedKeys:X}),(N,W)=>{var re;return b(),z("div",{class:P([s(i).b(),{[s(i).m("highlight-current")]:N.highlightCurrent}]),role:"tree"},[s(u)?(b(),de(s(Vw),{key:0,"class-name":s(i).b("virtual-list"),data:s(c),total:s(c).length,height:N.height,"item-size":s(n),"perf-mode":N.perfMode},{default:ne(({data:ie,index:se,style:ve})=>[(b(),de(Mae,{key:ie[se].key,style:Qe(ve),node:ie[se],expanded:s(d)(ie[se]),"show-checkbox":N.showCheckbox,checked:s(v)(ie[se]),indeterminate:s(f)(ie[se]),"item-size":s(n),disabled:s(m)(ie[se]),current:s(h)(ie[se]),"hidden-expand-icon":s(_)(ie[se]),onClick:s(g),onToggle:s(p),onCheck:s(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(b(),z("div",{key:1,class:P(s(i).e("empty-block"))},[E("span",{class:P(s(i).e("empty-text"))},ze((re=N.emptyText)!=null?re:s(a)("el.tree.emptyText")),3)],2))],2)}}});var Iae=Fe(Aae,[["__file","tree.vue"]]);const Oae=xt(Iae),l8=Symbol("uploadContextKey"),Pae="ElUpload";class Bae extends Error{constructor(t,o,r,l){super(t),this.name="UploadAjaxError",this.status=o,this.method=r,this.url=l}}function n8(e,t,o){let r;return o.response?r=`${o.response.error||o.response}`:o.responseText?r=`${o.responseText}`:r=`fail to ${t.method} ${e} ${o.status}`,new Bae(r,o.status,t.method,e)}function Nae(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Lae=e=>{typeof XMLHttpRequest>"u"&&So(Pae,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,o=e.action;t.upload&&t.upload.addEventListener("progress",n=>{const a=n;a.percent=n.total>0?n.loaded/n.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[n,a]of Object.entries(e.data))Ye(a)&&a.length?r.append(n,...a):r.append(n,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(n8(o,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(n8(o,e,t));e.onSuccess(Nae(t))}),t.open(e.method,o,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((n,a)=>t.setRequestHeader(a,n));else for(const[n,a]of Object.entries(l))wo(a)||t.setRequestHeader(n,String(a));return t.send(r),t},a8=["text","picture","picture-card"];let Rae=1;const Mv=()=>Date.now()+Rae++,i8=He({action:{type:String,default:"#"},headers:{type:pe(Object)},method:{type:String,default:"post"},data:{type:pe([Object,Function,Promise]),default:()=>ro({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:pe(Array),default:()=>ro([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:a8,default:"text"},httpRequest:{type:pe(Function),default:Lae},disabled:Boolean,limit:Number}),Vae=He({...i8,beforeUpload:{type:pe(Function),default:Dt},beforeRemove:{type:pe(Function)},onRemove:{type:pe(Function),default:Dt},onChange:{type:pe(Function),default:Dt},onPreview:{type:pe(Function),default:Dt},onSuccess:{type:pe(Function),default:Dt},onProgress:{type:pe(Function),default:Dt},onError:{type:pe(Function),default:Dt},onExceed:{type:pe(Function),default:Dt}}),Hae=He({files:{type:pe(Array),default:()=>ro([])},disabled:{type:Boolean,default:!1},handlePreview:{type:pe(Function),default:Dt},listType:{type:String,values:a8,default:"text"}}),Fae={remove:e=>!!e},Dae=["onKeydown"],jae=["src"],Kae=["onClick"],Wae=["title"],Uae=["onClick"],qae=["onClick"],Yae=B({...B({name:"ElUploadList"}),props:Hae,emits:Fae,setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Oe("upload"),n=Oe("icon"),a=Oe("list"),i=pr(),c=V(!1),u=$(()=>[l.b("list"),l.bm("list",o.listType),l.is("disabled",o.disabled)]),p=d=>{t("remove",d)};return(d,f)=>(b(),de(_g,{tag:"ul",class:P(s(u)),name:s(a).b()},{default:ne(()=>[(b(!0),z(Ge,null,Tt(d.files,v=>(b(),z("li",{key:v.uid||v.name,class:P([s(l).be("list","item"),s(l).is(v.status),{focusing:c.value}]),tabindex:"0",onKeydown:Rt(m=>!s(i)&&p(v),["delete"]),onFocus:f[0]||(f[0]=m=>c.value=!0),onBlur:f[1]||(f[1]=m=>c.value=!1),onClick:f[2]||(f[2]=m=>c.value=!1)},[be(d.$slots,"default",{file:v},()=>[d.listType==="picture"||v.status!=="uploading"&&d.listType==="picture-card"?(b(),z("img",{key:0,class:P(s(l).be("list","item-thumbnail")),src:v.url,alt:""},null,10,jae)):ue("v-if",!0),v.status==="uploading"||d.listType!=="picture-card"?(b(),z("div",{key:1,class:P(s(l).be("list","item-info"))},[E("a",{class:P(s(l).be("list","item-name")),onClick:it(m=>d.handlePreview(v),["prevent"])},[oe(s(Je),{class:P(s(n).m("document"))},{default:ne(()=>[oe(s(c3))]),_:1},8,["class"]),E("span",{class:P(s(l).be("list","item-file-name")),title:v.name},ze(v.name),11,Wae)],10,Kae),v.status==="uploading"?(b(),de(s($w),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Qe(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ue("v-if",!0)],2)):ue("v-if",!0),E("label",{class:P(s(l).be("list","item-status-label"))},[d.listType==="text"?(b(),de(s(Je),{key:0,class:P([s(n).m("upload-success"),s(n).m("circle-check")])},{default:ne(()=>[oe(s(Tu))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(b(),de(s(Je),{key:1,class:P([s(n).m("upload-success"),s(n).m("check")])},{default:ne(()=>[oe(s(qa))]),_:1},8,["class"])):ue("v-if",!0)],2),s(i)?ue("v-if",!0):(b(),de(s(Je),{key:2,class:P(s(n).m("close")),onClick:m=>p(v)},{default:ne(()=>[oe(s(Mr))]),_:2},1032,["class","onClick"])),ue(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ue(" This is a bug which needs to be fixed "),ue(" TODO: Fix the incorrect navigation interaction "),s(i)?ue("v-if",!0):(b(),z("i",{key:3,class:P(s(n).m("close-tip"))},ze(s(r)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(b(),z("span",{key:4,class:P(s(l).be("list","item-actions"))},[E("span",{class:P(s(l).be("list","item-preview")),onClick:m=>d.handlePreview(v)},[oe(s(Je),{class:P(s(n).m("zoom-in"))},{default:ne(()=>[oe(s(i0))]),_:1},8,["class"])],10,Uae),s(i)?ue("v-if",!0):(b(),z("span",{key:0,class:P(s(l).be("list","item-delete")),onClick:m=>p(v)},[oe(s(Je),{class:P(s(n).m("delete"))},{default:ne(()=>[oe(s(s3))]),_:1},8,["class"])],10,qae))],2)):ue("v-if",!0)])],42,Dae))),128)),be(d.$slots,"append")]),_:3},8,["class","name"]))}});var s8=Fe(Yae,[["__file","upload-list.vue"]]);const Gae=He({disabled:{type:Boolean,default:!1}}),Xae={file:e=>Ye(e)},Zae=["onDrop","onDragover"],c8="ElUploadDrag",Jae=B({...B({name:c8}),props:Gae,emits:Xae,setup(e,{emit:t}){const o=Le(l8);o||So(c8,"usage: ");const r=Oe("upload"),l=V(!1),n=pr(),a=c=>{if(n.value)return;l.value=!1,c.stopPropagation();const u=Array.from(c.dataTransfer.files),p=o.accept.value;if(!p){t("file",u);return}const d=u.filter(f=>{const{type:v,name:m}=f,h=m.includes(".")?`.${m.split(".").pop()}`:"",_=v.replace(/\/.*$/,"");return p.split(",").map(g=>g.trim()).filter(g=>g).some(g=>g.startsWith(".")?h===g:/\/\*$/.test(g)?_===g.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(g)?v===g:!1)});t("file",d)},i=()=>{n.value||(l.value=!0)};return(c,u)=>(b(),z("div",{class:P([s(r).b("dragger"),s(r).is("dragover",l.value)]),onDrop:it(a,["prevent"]),onDragover:it(i,["prevent"]),onDragleave:u[0]||(u[0]=it(p=>l.value=!1,["prevent"]))},[be(c.$slots,"default")],42,Zae))}});var Qae=Fe(Jae,[["__file","upload-dragger.vue"]]);const eie=He({...i8,beforeUpload:{type:pe(Function),default:Dt},onRemove:{type:pe(Function),default:Dt},onStart:{type:pe(Function),default:Dt},onSuccess:{type:pe(Function),default:Dt},onProgress:{type:pe(Function),default:Dt},onError:{type:pe(Function),default:Dt},onExceed:{type:pe(Function),default:Dt}}),tie=["onKeydown"],oie=["name","multiple","accept"],rie=B({...B({name:"ElUploadContent",inheritAttrs:!1}),props:eie,setup(e,{expose:t}){const o=e,r=Oe("upload"),l=pr(),n=qt({}),a=qt(),i=h=>{if(h.length===0)return;const{autoUpload:_,limit:g,fileList:y,multiple:w,onStart:x,onExceed:M}=o;if(g&&y.length+h.length>g){M(h,y);return}w||(h=h.slice(0,1));for(const T of h){const O=T;O.uid=Mv(),x(O),_&&c(O)}},c=async h=>{if(a.value.value="",!o.beforeUpload)return p(h);let _,g={};try{const w=o.data,x=o.beforeUpload(h);g=xc(o.data)?xu(o.data):o.data,_=await x,xc(o.data)&&ir(w,g)&&(g=xu(o.data))}catch{_=!1}if(_===!1){o.onRemove(h);return}let y=h;_ instanceof Blob&&(_ instanceof File?y=_:y=new File([_],h.name,{type:h.type})),p(Object.assign(y,{uid:h.uid}),g)},u=async(h,_)=>ut(h)?h(_):h,p=async(h,_)=>{const{headers:g,data:y,method:w,withCredentials:x,name:M,action:T,onProgress:O,onSuccess:I,onError:F,httpRequest:K}=o;try{_=await u(_??y,h)}catch{o.onRemove(h);return}const{uid:R}=h,D={headers:g||{},withCredentials:x,file:h,data:_,method:w,filename:M,action:T,onProgress:Z=>{O(Z,h)},onSuccess:Z=>{I(Z,h),delete n.value[R]},onError:Z=>{F(Z,h),delete n.value[R]}},j=K(D);n.value[R]=j,j instanceof Promise&&j.then(D.onSuccess,D.onError)},d=h=>{const _=h.target.files;_&&i(Array.from(_))},f=()=>{l.value||(a.value.value="",a.value.click())},v=()=>{f()};return t({abort:h=>{hM(n.value).filter(h?([g])=>String(h.uid)===g:()=>!0).forEach(([g,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete n.value[g]})},upload:c}),(h,_)=>(b(),z("div",{class:P([s(r).b(),s(r).m(h.listType),s(r).is("drag",h.drag)]),tabindex:"0",onClick:f,onKeydown:Rt(it(v,["self"]),["enter","space"])},[h.drag?(b(),de(Qae,{key:0,disabled:s(l),onFile:i},{default:ne(()=>[be(h.$slots,"default")]),_:3},8,["disabled"])):be(h.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:a,class:P(s(r).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:d,onClick:_[0]||(_[0]=it(()=>{},["stop"]))},null,42,oie)],42,tie))}});var u8=Fe(rie,[["__file","upload-content.vue"]]);const d8="ElUpload",p8=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},lie=(e,t)=>{const o=O7(e,"fileList",void 0,{passive:!0}),r=f=>o.value.find(v=>v.uid===f.uid);function l(f){var v;(v=t.value)==null||v.abort(f)}function n(f=["ready","uploading","success","fail"]){o.value=o.value.filter(v=>!f.includes(v.status))}const a=(f,v)=>{const m=r(v);m&&(console.error(f),m.status="fail",o.value.splice(o.value.indexOf(m),1),e.onError(f,m,o.value),e.onChange(m,o.value))},i=(f,v)=>{const m=r(v);m&&(e.onProgress(f,m,o.value),m.status="uploading",m.percentage=Math.round(f.percent))},c=(f,v)=>{const m=r(v);m&&(m.status="success",m.response=f,e.onSuccess(f,m,o.value),e.onChange(m,o.value))},u=f=>{wo(f.uid)&&(f.uid=Mv());const v={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(f)}catch(m){m.message,e.onError(m,v,o.value)}o.value=[...o.value,v],e.onChange(v,o.value)},p=async f=>{const v=f instanceof File?r(f):f;v||So(d8,"file to be removed not found");const m=h=>{l(h);const _=o.value;_.splice(_.indexOf(h),1),e.onRemove(h,_),p8(h)};e.beforeRemove?await e.beforeRemove(v,o.value)!==!1&&m(v):m(v)};function d(){o.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var v;return f&&((v=t.value)==null?void 0:v.upload(f))})}return Te(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(o.value=o.value.map(v=>{const{raw:m,url:h}=v;if(!h&&m)try{v.url=URL.createObjectURL(m)}catch(_){e.onError(_,v,o.value)}return v}))}),Te(o,f=>{for(const v of f)v.uid||(v.uid=Mv()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:l,clearFiles:n,handleError:a,handleProgress:i,handleStart:u,handleSuccess:c,handleRemove:p,submit:d,revokeFileObjectURL:p8}},nie=B({...B({name:"ElUpload"}),props:Vae,setup(e,{expose:t}){const o=e,r=pr(),l=qt(),{abort:n,submit:a,clearFiles:i,uploadFiles:c,handleStart:u,handleError:p,handleRemove:d,handleSuccess:f,handleProgress:v,revokeFileObjectURL:m}=lie(o,l),h=$(()=>o.listType==="picture-card"),_=$(()=>({...o,fileList:c.value,onStart:u,onProgress:v,onSuccess:f,onError:p,onRemove:d}));return Zt(()=>{c.value.forEach(m)}),zt(l8,{accept:so(o,"accept")}),t({abort:n,submit:a,clearFiles:i,handleStart:u,handleRemove:d}),(g,y)=>(b(),z("div",null,[s(h)&&g.showFileList?(b(),de(s8,{key:0,disabled:s(r),"list-type":g.listType,files:s(c),"handle-preview":g.onPreview,onRemove:s(d)},Jr({append:ne(()=>[oe(u8,Et({ref_key:"uploadRef",ref:l},s(_)),{default:ne(()=>[g.$slots.trigger?be(g.$slots,"trigger",{key:0}):ue("v-if",!0),!g.$slots.trigger&&g.$slots.default?be(g.$slots,"default",{key:1}):ue("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:ne(({file:w})=>[be(g.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ue("v-if",!0),!s(h)||s(h)&&!g.showFileList?(b(),de(u8,Et({key:1,ref_key:"uploadRef",ref:l},s(_)),{default:ne(()=>[g.$slots.trigger?be(g.$slots,"trigger",{key:0}):ue("v-if",!0),!g.$slots.trigger&&g.$slots.default?be(g.$slots,"default",{key:1}):ue("v-if",!0)]),_:3},16)):ue("v-if",!0),g.$slots.trigger?be(g.$slots,"default",{key:2}):ue("v-if",!0),be(g.$slots,"tip"),!s(h)&&g.showFileList?(b(),de(s8,{key:3,disabled:s(r),"list-type":g.listType,files:s(c),"handle-preview":g.onPreview,onRemove:s(d)},Jr({_:2},[g.$slots.file?{name:"default",fn:ne(({file:w})=>[be(g.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ue("v-if",!0)]))}});var aie=Fe(nie,[["__file","upload.vue"]]);const iie=xt(aie),sie=He({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:pe([String,Array]),default:"Element Plus"},font:{type:pe(Object)},gap:{type:pe(Array),default:()=>[100,100]},offset:{type:pe(Array)}});function cie(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function uie(e){return Object.keys(e).map(t=>`${cie(t)}: ${e[t]};`).join(" ")}function die(){return window.devicePixelRatio||1}const pie=(e,t)=>{let o=!1;return e.removedNodes.length&&t&&(o=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(o=!0),o},f8=3;function Av(e,t,o=1){const r=document.createElement("canvas"),l=r.getContext("2d"),n=e*o,a=t*o;return r.setAttribute("width",`${n}px`),r.setAttribute("height",`${a}px`),l.save(),[l,r,n,a]}function fie(){function e(t,o,r,l,n,a,i,c){const[u,p,d,f]=Av(l,n,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,d,f);else{const{color:re,fontSize:ie,fontStyle:se,fontWeight:ve,fontFamily:le,textAlign:ge,textBaseline:_e}=a,me=Number(ie)*r;u.font=`${se} normal ${ve} ${me}px/${n}px ${le}`,u.fillStyle=re,u.textAlign=ge,u.textBaseline=_e;const Be=Array.isArray(t)?t:[t];Be==null||Be.forEach((ye,Me)=>{u.fillText(ye??"",d/2,Me*(me+f8*r))})}const v=Math.PI/180*Number(o),m=Math.max(l,n),[h,_,g]=Av(m,m,r);h.translate(g/2,g/2),h.rotate(v),d>0&&f>0&&h.drawImage(p,-d/2,-f/2);function y(re,ie){const se=re*Math.cos(v)-ie*Math.sin(v),ve=re*Math.sin(v)+ie*Math.cos(v);return[se,ve]}let w=0,x=0,M=0,T=0;const O=d/2,I=f/2;[[0-O,0-I],[0+O,0-I],[0+O,0+I],[0-O,0+I]].forEach(([re,ie])=>{const[se,ve]=y(re,ie);w=Math.min(w,se),x=Math.max(x,se),M=Math.min(M,ve),T=Math.max(T,ve)});const K=w+g/2,R=M+g/2,D=x-w,j=T-M,Z=i*r,Q=c*r,J=(D+Z)*2,L=j+Q,[X,N]=Av(J,L);function W(re=0,ie=0){X.drawImage(_,K,R,D,j,re,ie,D,j)}return W(),W(D+Z,-j/2-Q/2),W(D+Z,+j/2+Q/2),[N.toDataURL(),J/r,L/r]}return e}const hie=B({...B({name:"ElWatermark"}),props:sie,setup(e){const t=e,o={position:"relative"},r=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.color)!=null?R:"rgba(0,0,0,.15)"}),l=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontSize)!=null?R:16}),n=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontWeight)!=null?R:"normal"}),a=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontStyle)!=null?R:"normal"}),i=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontFamily)!=null?R:"sans-serif"}),c=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.textAlign)!=null?R:"center"}),u=$(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.textBaseline)!=null?R:"top"}),p=$(()=>t.gap[0]),d=$(()=>t.gap[1]),f=$(()=>p.value/2),v=$(()=>d.value/2),m=$(()=>{var K,R;return(R=(K=t.offset)==null?void 0:K[0])!=null?R:f.value}),h=$(()=>{var K,R;return(R=(K=t.offset)==null?void 0:K[1])!=null?R:v.value}),_=()=>{const K={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let R=m.value-f.value,D=h.value-v.value;return R>0&&(K.left=`${R}px`,K.width=`calc(100% - ${R}px)`,R=0),D>0&&(K.top=`${D}px`,K.height=`calc(100% - ${D}px)`,D=0),K.backgroundPosition=`${R}px ${D}px`,K},g=qt(null),y=qt(),w=V(!1),x=()=>{y.value&&(y.value.remove(),y.value=void 0)},M=(K,R)=>{var D;g.value&&y.value&&(w.value=!0,y.value.setAttribute("style",uie({..._(),backgroundImage:`url('${K}')`,backgroundSize:`${Math.floor(R)}px`})),(D=g.value)==null||D.append(y.value),setTimeout(()=>{w.value=!1}))},T=K=>{let R=120,D=64;const j=t.image,Z=t.content,Q=t.width,J=t.height;if(!j&&K.measureText){K.font=`${Number(l.value)}px ${i.value}`;const L=Array.isArray(Z)?Z:[Z],X=L.map(N=>{const W=K.measureText(N);return[W.width,W.fontBoundingBoxAscent!==void 0?W.fontBoundingBoxAscent+W.fontBoundingBoxDescent:W.actualBoundingBoxAscent+W.actualBoundingBoxDescent]});R=Math.ceil(Math.max(...X.map(N=>N[0]))),D=Math.ceil(Math.max(...X.map(N=>N[1])))*L.length+(L.length-1)*f8}return[Q??R,J??D]},O=fie(),I=()=>{const R=document.createElement("canvas").getContext("2d"),D=t.image,j=t.content,Z=t.rotate;if(R){y.value||(y.value=document.createElement("div"));const Q=die(),[J,L]=T(R),X=N=>{const[W,re]=O(N||"",Z,Q,J,L,{color:r.value,fontSize:l.value,fontStyle:a.value,fontWeight:n.value,fontFamily:i.value,textAlign:c.value,textBaseline:u.value},p.value,d.value);M(W,re)};if(D){const N=new Image;N.onload=()=>{X(N)},N.onerror=()=>{X(j)},N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=D}else X(j)}};return vt(()=>{I()}),Te(()=>t,()=>{I()},{deep:!0,flush:"post"}),Zt(()=>{x()}),T7(g,K=>{w.value||K.forEach(R=>{pie(R,y.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0}),(K,R)=>(b(),z("div",{ref_key:"containerRef",ref:g,style:Qe([o])},[be(K.$slots,"default")],4))}});var vie=Fe(hie,[["__file","watermark.vue"]]);const mie=xt(vie);var gie=[LD,WD,lW,Ule,uW,mW,v6,EW,$W,Vo,E6,NU,HU,ZU,JU,eY,Wq,nY,Nr,hq,h4,fY,TY,zY,yY,tG,MD,sG,cG,uG,dG,pG,EX,BX,NX,XX,ow,sZ,QZ,eJ,tJ,fw,Fj,Dj,Je,jJ,hw,Wo,vw,tQ,bQ,_Q,wQ,yQ,$Q,$ee,Aee,Ree,p6,$w,y4,$q,Eq,Qee,rte,cY,Kl,ha,yd,ree,Wte,Zte,Jte,Eoe,Moe,ry,Voe,Uoe,qoe,rre,ule,dle,Wle,nne,ane,js,une,gU,hne,bne,_ne,er,Vne,Jne,dae,gae,Oae,iie,mie];const Yr="ElInfiniteScroll",bie=50,_ie={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Iv=(e,t)=>Object.entries(_ie).reduce((o,[r,l])=>{var n,a;const{type:i,default:c}=l,u=e.getAttribute(`infinite-scroll-${r}`);let p=(a=(n=t[u])!=null?n:u)!=null?a:c;return p=p==="false"?!1:p,p=i(p),o[r]=Number.isNaN(p)?c:p,o},{}),h8=e=>{const{observer:t}=e[Yr];t&&(t.disconnect(),delete e[Yr].observer)},wie=(e,t)=>{const{container:o,containerEl:r,instance:l,observer:n,lastScrollTop:a}=e[Yr],{disabled:i,distance:c}=Iv(e,l),{clientHeight:u,scrollHeight:p,scrollTop:d}=r,f=d-a;if(e[Yr].lastScrollTop=d,n||i||f<0)return;let v=!1;if(o===e)v=p-(u+d)<=c;else{const{clientTop:m,scrollHeight:h}=e,_=L7(e,r);v=d+u>=_+m+h-c}v&&t.call(l)};function Ov(e,t){const{containerEl:o,instance:r}=e[Yr],{disabled:l}=Iv(e,r);l||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?t.call(r):h8(e))}const Pv={async mounted(e,t){const{instance:o,value:r}=t;ut(r)||So(Yr,"'v-infinite-scroll' binding value must be a function"),await et();const{delay:l,immediate:n}=Iv(e,o),a=t0(e,!0),i=a===window?document.documentElement:a,c=ea(wie.bind(null,e,r),l);if(a){if(e[Yr]={instance:o,container:a,containerEl:i,delay:l,cb:r,onScroll:c,lastScrollTop:i.scrollTop},n){const u=new MutationObserver(ea(Ov.bind(null,e,r),bie));e[Yr].observer=u,u.observe(e,{childList:!0,subtree:!0}),Ov(e,r)}a.addEventListener("scroll",c)}},unmounted(e){const{container:t,onScroll:o}=e[Yr];t==null||t.removeEventListener("scroll",o),h8(e)},async updated(e){if(!e[Yr])await et();else{const{containerEl:t,cb:o,observer:r}=e[Yr];t.clientHeight&&r&&Ov(e,o)}}};Pv.install=e=>{e.directive("InfiniteScroll",Pv)};const yie=Pv;function xie(e){let t;const o=V(!1),r=Ft({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(f){r.text=f}function n(){const f=r.parent,v=d.ns;if(!f.vLoadingAddClassList){let m=f.getAttribute("loading-number");m=Number.parseInt(m)-1,m?f.setAttribute("loading-number",m.toString()):(sr(f,v.bm("parent","relative")),f.removeAttribute("loading-number")),sr(f,v.bm("parent","hidden"))}a(),p.unmount()}function a(){var f,v;(v=(f=d.$el)==null?void 0:f.parentNode)==null||v.removeChild(d.$el)}function i(){var f;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=window.setTimeout(c,400),r.visible=!1,(f=e.closed)==null||f.call(e))}function c(){if(!o.value)return;const f=r.parent;o.value=!1,f.vLoadingAddClassList=void 0,n()}const p=$g(B({name:"ElLoading",setup(f,{expose:v}){const{ns:m,zIndex:h}=Ku("loading");return v({ns:m,zIndex:h}),()=>{const _=r.spinner||r.svg,g=rt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[rt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=r.text?rt("p",{class:m.b("text")},[r.text]):void 0;return rt(_o,{name:m.b("fade"),onAfterLeave:c},{default:ne(()=>[ht(oe("div",{style:{backgroundColor:r.background||""},class:[m.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[rt("div",{class:m.b("spinner")},[g,y])]),[[Pt,r.visible]])])})}}})),d=p.mount(document.createElement("div"));return{...Ao(r),setText:l,removeElLoadingChild:a,close:i,handleAfterLeave:c,vm:d,get $el(){return d.$el}}}let Kd;const Bv=function(e={}){if(!Bt)return;const t=kie(e);if(t.fullscreen&&Kd)return Kd;const o=xie({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(Kd=void 0)}});Cie(t,t.parent,o),v8(t,t.parent,o),t.parent.vLoadingAddClassList=()=>v8(t,t.parent,o);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(o.$el),et(()=>o.visible.value=t.visible),t.fullscreen&&(Kd=o),o},kie=e=>{var t,o,r,l;let n;return ft(e.target)?n=(t=document.querySelector(e.target))!=null?t:document.body:n=e.target||document.body,{parent:n===document.body||e.body?document.body:n,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:n===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,target:n}},Cie=async(e,t,o)=>{const{nextZIndex:r}=o.vm.zIndex||o.vm._.exposed.zIndex,l={};if(e.fullscreen)o.originalPosition.value=bn(document.body,"position"),o.originalOverflow.value=bn(document.body,"overflow"),l.zIndex=r();else if(e.parent===document.body){o.originalPosition.value=bn(document.body,"position"),await et();for(const n of["top","left"]){const a=n==="top"?"scrollTop":"scrollLeft";l[n]=`${e.target.getBoundingClientRect()[n]+document.body[a]+document.documentElement[a]-Number.parseInt(bn(document.body,`margin-${n}`),10)}px`}for(const n of["height","width"])l[n]=`${e.target.getBoundingClientRect()[n]}px`}else o.originalPosition.value=bn(t,"position");for(const[n,a]of Object.entries(l))o.$el.style[n]=a},v8=(e,t,o)=>{const r=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?sr(t,r.bm("parent","relative")):al(t,r.bm("parent","relative")),e.fullscreen&&e.lock?al(t,r.bm("parent","hidden")):sr(t,r.bm("parent","hidden"))},Nv=Symbol("ElLoading"),m8=(e,t)=>{var o,r,l,n;const a=t.instance,i=f=>Ct(t.value)?t.value[f]:void 0,c=f=>{const v=ft(f)&&(a==null?void 0:a[f])||f;return v&&V(v)},u=f=>c(i(f)||e.getAttribute(`element-loading-${en(f)}`)),p=(o=i("fullscreen"))!=null?o:t.modifiers.fullscreen,d={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:p,target:(r=i("target"))!=null?r:p?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(n=i("lock"))!=null?n:t.modifiers.lock};e[Nv]={options:d,instance:Bv(d)}},Sie=(e,t)=>{for(const o of Object.keys(t))Kt(t[o])&&(t[o].value=e[o])},g8={mounted(e,t){t.value&&m8(e,t)},updated(e,t){const o=e[Nv];t.oldValue!==t.value&&(t.value&&!t.oldValue?m8(e,t):t.value&&t.oldValue?Ct(t.value)&&Sie(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Nv])==null||t.instance.close()}},Eie={install(e){e.directive("loading",g8),e.config.globalProperties.$loading=Bv},directive:g8,service:Bv},b8=["success","info","warning","error"],hr=ro({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Bt?document.body:void 0}),$ie=He({customClass:{type:String,default:hr.customClass},center:{type:Boolean,default:hr.center},dangerouslyUseHTMLString:{type:Boolean,default:hr.dangerouslyUseHTMLString},duration:{type:Number,default:hr.duration},icon:{type:Ut,default:hr.icon},id:{type:String,default:hr.id},message:{type:pe([String,Object,Function]),default:hr.message},onClose:{type:pe(Function),required:!1},showClose:{type:Boolean,default:hr.showClose},type:{type:String,values:b8,default:hr.type},offset:{type:Number,default:hr.offset},zIndex:{type:Number,default:hr.zIndex},grouping:{type:Boolean,default:hr.grouping},repeatNum:{type:Number,default:hr.repeatNum}}),Tie={destroy:()=>!0},Gr=G2([]),zie=e=>{const t=Gr.findIndex(l=>l.id===e),o=Gr[t];let r;return t>0&&(r=Gr[t-1]),{current:o,prev:r}},Mie=e=>{const{prev:t}=zie(e);return t?t.vm.exposed.bottom.value:0},Aie=(e,t)=>Gr.findIndex(r=>r.id===e)>0?20:t,Iie=["id"],Oie=["innerHTML"],Pie=B({...B({name:"ElMessage"}),props:$ie,emits:Tie,setup(e,{expose:t}){const o=e,{Close:r}=s0,{ns:l,zIndex:n}=Ku("message"),{currentZIndex:a,nextZIndex:i}=n,c=V(),u=V(!1),p=V(0);let d;const f=$(()=>o.type?o.type==="error"?"danger":o.type:"info"),v=$(()=>{const O=o.type;return{[l.bm("icon",O)]:O&&_n[O]}}),m=$(()=>o.icon||_n[o.type]||""),h=$(()=>Mie(o.id)),_=$(()=>Aie(o.id,o.offset)+h.value),g=$(()=>p.value+_.value),y=$(()=>({top:`${_.value}px`,zIndex:a.value}));function w(){o.duration!==0&&({stop:d}=Un(()=>{M()},o.duration))}function x(){d==null||d()}function M(){u.value=!1}function T({code:O}){O===tt.esc&&M()}return vt(()=>{w(),i(),u.value=!0}),Te(()=>o.repeatNum,()=>{x(),w()}),eo(document,"keydown",T),jo(c,()=>{p.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:M}),(O,I)=>(b(),de(_o,{name:s(l).b("fade"),onBeforeLeave:O.onClose,onAfterLeave:I[0]||(I[0]=F=>O.$emit("destroy")),persisted:""},{default:ne(()=>[ht(E("div",{id:O.id,ref_key:"messageRef",ref:c,class:P([s(l).b(),{[s(l).m(O.type)]:O.type&&!O.icon},s(l).is("center",O.center),s(l).is("closable",O.showClose),O.customClass]),style:Qe(s(y)),role:"alert",onMouseenter:x,onMouseleave:w},[O.repeatNum>1?(b(),de(s(v6),{key:0,value:O.repeatNum,type:s(f),class:P(s(l).e("badge"))},null,8,["value","type","class"])):ue("v-if",!0),s(m)?(b(),de(s(Je),{key:1,class:P([s(l).e("icon"),s(v)])},{default:ne(()=>[(b(),de(St(s(m))))]),_:1},8,["class"])):ue("v-if",!0),be(O.$slots,"default",{},()=>[O.dangerouslyUseHTMLString?(b(),z(Ge,{key:1},[ue(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:P(s(l).e("content")),innerHTML:O.message},null,10,Oie)],2112)):(b(),z("p",{key:0,class:P(s(l).e("content"))},ze(O.message),3))]),O.showClose?(b(),de(s(Je),{key:2,class:P(s(l).e("closeBtn")),onClick:it(M,["stop"])},{default:ne(()=>[oe(s(r))]),_:1},8,["class","onClick"])):ue("v-if",!0)],46,Iie),[[Pt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Bie=Fe(Pie,[["__file","message.vue"]]);let Nie=1;const _8=e=>{const t=!e||ft(e)||Qt(e)||ut(e)?{message:e}:e,o={...hr,...t};if(!o.appendTo)o.appendTo=document.body;else if(ft(o.appendTo)){let r=document.querySelector(o.appendTo);zr(r)||(r=document.body),o.appendTo=r}return o},Lie=e=>{const t=Gr.indexOf(e);if(t===-1)return;Gr.splice(t,1);const{handler:o}=e;o.close()},Rie=({appendTo:e,...t},o)=>{const r=`message_${Nie++}`,l=t.onClose,n=document.createElement("div"),a={...t,id:r,onClose:()=>{l==null||l(),Lie(p)},onDestroy:()=>{La(null,n)}},i=oe(Bie,a,ut(a.message)||Qt(a.message)?{default:ut(a.message)?a.message:()=>a.message}:null);i.appContext=o||ki._context,La(i,n),e.appendChild(n.firstElementChild);const c=i.component,p={id:r,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return p},ki=(e={},t)=>{if(!Bt)return{close:()=>{}};if(ct(O0.max)&&Gr.length>=O0.max)return{close:()=>{}};const o=_8(e);if(o.grouping&&Gr.length){const l=Gr.find(({vnode:n})=>{var a;return((a=n.props)==null?void 0:a.message)===o.message});if(l)return l.props.repeatNum+=1,l.props.type=o.type,l.handler}const r=Rie(o,t);return Gr.push(r),r.handler};b8.forEach(e=>{ki[e]=(t={},o)=>{const r=_8(t);return ki({...r,type:e},o)}});function Vie(e){for(const t of Gr)(!e||e===t.props.type)&&t.handler.close()}ki.closeAll=Vie,ki._context=null;const Hie=$3(ki,"$message"),Fie=B({name:"ElMessageBox",directives:{TrapFocus:oU},components:{ElButton:Vo,ElFocusTrap:Qu,ElInput:Wo,ElOverlay:zh,ElIcon:Je,...s0},inheritAttrs:!1,props:{buttonSize:{type:String,validator:d0},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:o,zIndex:r,ns:l,size:n}=Ku("message-box",$(()=>e.buttonSize)),{t:a}=o,{nextZIndex:i}=r,c=V(!1),u=Ft({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),p=$(()=>{const Q=u.type;return{[l.bm("icon",Q)]:Q&&_n[Q]}}),d=dr(),f=dr(),v=$(()=>u.icon||_n[u.type]||""),m=$(()=>!!u.message),h=V(),_=V(),g=V(),y=V(),w=V(),x=$(()=>u.confirmButtonClass);Te(()=>u.inputValue,async Q=>{await et(),e.boxType==="prompt"&&Q!==null&&R()},{immediate:!0}),Te(()=>c.value,Q=>{var J,L;Q&&(e.boxType!=="prompt"&&(u.autofocus?g.value=(L=(J=w.value)==null?void 0:J.$el)!=null?L:h.value:g.value=h.value),u.zIndex=i()),e.boxType==="prompt"&&(Q?et().then(()=>{var X;y.value&&y.value.$el&&(u.autofocus?g.value=(X=D())!=null?X:h.value:g.value=h.value)}):(u.editorErrorMessage="",u.validateError=!1))});const M=$(()=>e.draggable);M3(h,_,M),vt(async()=>{await et(),e.closeOnHashChange&&window.addEventListener("hashchange",T)}),Zt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",T)});function T(){c.value&&(c.value=!1,et(()=>{u.action&&t("action",u.action)}))}const O=()=>{e.closeOnClickModal&&K(u.distinguishCancelAndClose?"close":"cancel")},I=C0(O),F=Q=>{if(u.inputType!=="textarea")return Q.preventDefault(),K("confirm")},K=Q=>{var J;e.boxType==="prompt"&&Q==="confirm"&&!R()||(u.action=Q,u.beforeClose?(J=u.beforeClose)==null||J.call(u,Q,u,T):T())},R=()=>{if(e.boxType==="prompt"){const Q=u.inputPattern;if(Q&&!Q.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const J=u.inputValidator;if(typeof J=="function"){const L=J(u.inputValue);if(L===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof L=="string")return u.editorErrorMessage=L,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const Q=y.value.$refs;return Q.input||Q.textarea},j=()=>{K("close")},Z=()=>{e.closeOnPressEscape&&j()};return e.lockScroll&&O3(c),{...Ao(u),ns:l,overlayEvent:I,visible:c,hasMessage:m,typeClass:p,contentId:d,inputId:f,btnSize:n,iconComponent:v,confirmButtonClasses:x,rootRef:h,focusStartRef:g,headerRef:_,inputRef:y,confirmRef:w,doClose:T,handleClose:j,onCloseRequested:Z,handleWrapperClick:O,handleInputEnter:F,handleAction:K,t:a}}}),Die=["aria-label","aria-describedby"],jie=["aria-label"],Kie=["id"];function Wie(e,t,o,r,l,n){const a=ot("el-icon"),i=ot("close"),c=ot("el-input"),u=ot("el-button"),p=ot("el-focus-trap"),d=ot("el-overlay");return b(),de(_o,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ne(()=>[ht(oe(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ne(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:P(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[oe(p,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[E("div",{ref:"rootRef",class:P([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(b(),z("div",{key:0,ref:"headerRef",class:P(e.ns.e("header"))},[E("div",{class:P(e.ns.e("title"))},[e.iconComponent&&e.center?(b(),de(a,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),E("span",null,ze(e.title),1)],2),e.showClose?(b(),z("button",{key:0,type:"button",class:P(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Rt(it(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[oe(a,{class:P(e.ns.e("close"))},{default:ne(()=>[oe(i)]),_:1},8,["class"])],42,jie)):ue("v-if",!0)],2)):ue("v-if",!0),E("div",{id:e.contentId,class:P(e.ns.e("content"))},[E("div",{class:P(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(b(),de(a,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),e.hasMessage?(b(),z("div",{key:1,class:P(e.ns.e("message"))},[be(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(b(),de(St(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(b(),de(St(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ne(()=>[$t(ze(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ue("v-if",!0)],2),ht(E("div",{class:P(e.ns.e("input"))},[oe(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:P({invalid:e.validateError}),onKeydown:Rt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:P(e.ns.e("errormsg")),style:Qe({visibility:e.editorErrorMessage?"visible":"hidden"})},ze(e.editorErrorMessage),7)],2),[[Pt,e.showInput]])],10,Kie),E("div",{class:P(e.ns.e("btns"))},[e.showCancelButton?(b(),de(u,{key:0,loading:e.cancelButtonLoading,class:P([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Rt(it(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ne(()=>[$t(ze(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ue("v-if",!0),ht(oe(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:P([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Rt(it(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ne(()=>[$t(ze(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Pt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Die)]),_:3},8,["z-index","overlay-class","mask"]),[[Pt,e.visible]])]),_:3})}var Uie=Fe(Fie,[["render",Wie],["__file","index.vue"]]);const cc=new Map,qie=e=>{let t=document.body;return e.appendTo&&(ft(e.appendTo)&&(t=document.querySelector(e.appendTo)),zr(e.appendTo)&&(t=e.appendTo),zr(t)||(t=document.body)),t},Yie=(e,t,o=null)=>{const r=oe(Uie,e,ut(e.message)||Qt(e.message)?{default:ut(e.message)?e.message:()=>e.message}:null);return r.appContext=o,La(r,t),qie(e).appendChild(t.firstElementChild),r.component},Gie=()=>document.createElement("div"),Xie=(e,t)=>{const o=Gie();e.onVanish=()=>{La(null,o),cc.delete(l)},e.onAction=n=>{const a=cc.get(l);let i;e.showInput?i={value:l.inputValue,action:n}:i=n,e.callback?e.callback(i,r.proxy):n==="cancel"||n==="close"?e.distinguishCancelAndClose&&n!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(i)};const r=Yie(e,o,t),l=r.proxy;for(const n in e)Ot(e,n)&&!Ot(l.$props,n)&&(l[n]=e[n]);return l.visible=!0,l};function Ci(e,t=null){if(!Bt)return Promise.reject();let o;return ft(e)||Qt(e)?e={message:e}:o=e.callback,new Promise((r,l)=>{const n=Xie(e,t??Ci._context);cc.set(n,{options:e,callback:o,resolve:r,reject:l})})}const Zie=["alert","confirm","prompt"],Jie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Zie.forEach(e=>{Ci[e]=Qie(e)});function Qie(e){return(t,o,r,l)=>{let n="";return Ct(o)?(r=o,n=""):ko(o)?n="":n=o,Ci(Object.assign({title:n,message:t,type:"",...Jie[e]},r,{boxType:e}),l)}}Ci.close=()=>{cc.forEach((e,t)=>{t.doClose()}),cc.clear()},Ci._context=null;const An=Ci;An.install=e=>{An._context=e._context,e.config.globalProperties.$msgbox=An,e.config.globalProperties.$messageBox=An,e.config.globalProperties.$alert=An.alert,e.config.globalProperties.$confirm=An.confirm,e.config.globalProperties.$prompt=An.prompt};const ese=An,w8=["success","info","warning","error"],tse=He({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Ut},id:{type:String,default:""},message:{type:pe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:pe(Function),default:()=>{}},onClose:{type:pe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...w8,""],default:""},zIndex:Number}),ose={destroy:()=>!0},rse=["id"],lse=["textContent"],nse={key:0},ase=["innerHTML"],ise=B({...B({name:"ElNotification"}),props:tse,emits:ose,setup(e,{expose:t}){const o=e,{ns:r,zIndex:l}=Ku("notification"),{nextZIndex:n,currentZIndex:a}=l,{Close:i}=E3,c=V(!1);let u;const p=$(()=>{const w=o.type;return w&&_n[o.type]?r.m(w):""}),d=$(()=>o.type&&_n[o.type]||o.icon),f=$(()=>o.position.endsWith("right")?"right":"left"),v=$(()=>o.position.startsWith("top")?"top":"bottom"),m=$(()=>{var w;return{[v.value]:`${o.offset}px`,zIndex:(w=o.zIndex)!=null?w:a.value}});function h(){o.duration>0&&({stop:u}=Un(()=>{c.value&&g()},o.duration))}function _(){u==null||u()}function g(){c.value=!1}function y({code:w}){w===tt.delete||w===tt.backspace?_():w===tt.esc?c.value&&g():h()}return vt(()=>{h(),n(),c.value=!0}),eo(document,"keydown",y),t({visible:c,close:g}),(w,x)=>(b(),de(_o,{name:s(r).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:x[1]||(x[1]=M=>w.$emit("destroy")),persisted:""},{default:ne(()=>[ht(E("div",{id:w.id,class:P([s(r).b(),w.customClass,s(f)]),style:Qe(s(m)),role:"alert",onMouseenter:_,onMouseleave:h,onClick:x[0]||(x[0]=(...M)=>w.onClick&&w.onClick(...M))},[s(d)?(b(),de(s(Je),{key:0,class:P([s(r).e("icon"),s(p)])},{default:ne(()=>[(b(),de(St(s(d))))]),_:1},8,["class"])):ue("v-if",!0),E("div",{class:P(s(r).e("group"))},[E("h2",{class:P(s(r).e("title")),textContent:ze(w.title)},null,10,lse),ht(E("div",{class:P(s(r).e("content")),style:Qe(w.title?void 0:{margin:0})},[be(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(b(),z(Ge,{key:1},[ue(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:w.message},null,8,ase)],2112)):(b(),z("p",nse,ze(w.message),1))])],6),[[Pt,w.message]]),w.showClose?(b(),de(s(Je),{key:0,class:P(s(r).e("closeBtn")),onClick:it(g,["stop"])},{default:ne(()=>[oe(s(i))]),_:1},8,["class","onClick"])):ue("v-if",!0)],2)],46,rse),[[Pt,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var sse=Fe(ise,[["__file","notification.vue"]]);const Wd={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Lv=16;let cse=1;const Si=function(e={},t=null){if(!Bt)return{close:()=>{}};(typeof e=="string"||Qt(e))&&(e={message:e});const o=e.position||"top-right";let r=e.offset||0;Wd[o].forEach(({vm:p})=>{var d;r+=(((d=p.el)==null?void 0:d.offsetHeight)||0)+Lv}),r+=Lv;const l=`notification_${cse++}`,n=e.onClose,a={...e,offset:r,id:l,onClose:()=>{use(l,o,n)}};let i=document.body;zr(e.appendTo)?i=e.appendTo:ft(e.appendTo)&&(i=document.querySelector(e.appendTo)),zr(i)||(i=document.body);const c=document.createElement("div"),u=oe(sse,a,Qt(a.message)?{default:()=>a.message}:null);return u.appContext=t??Si._context,u.props.onDestroy=()=>{La(null,c)},La(u,c),Wd[o].push({vm:u}),i.appendChild(c.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};w8.forEach(e=>{Si[e]=(t={})=>((typeof t=="string"||Qt(t))&&(t={message:t}),Si({...t,type:e}))});function use(e,t,o){const r=Wd[t],l=r.findIndex(({vm:u})=>{var p;return((p=u.component)==null?void 0:p.props.id)===e});if(l===-1)return;const{vm:n}=r[l];if(!n)return;o==null||o(n);const a=n.el.offsetHeight,i=t.split("-")[0];r.splice(l,1);const c=r.length;if(!(c<1))for(let u=l;u{t.component.exposed.visible.value=!1})}Si.closeAll=dse,Si._context=null;const pse=$3(Si,"$notify");var fse=[yie,Eie,Hie,ese,pse,Ew],hse=ID([...gie,...fse]);const vse={key:1,class:"no-found"},mse={__name:"CpList",props:{listClass:{type:String,default:""},customClass:{type:String,default:""},noFoundMsg:{type:String,default:""},foundStatus:{type:Boolean,default:!1}},setup(e,{expose:t}){const o=V(null),r=$(()=>{if(o.value){const l=o.value.querySelectorAll("li");return l.length<5?90*l.length:0}return 0});return t({list:o}),(l,n)=>(b(),z("ul",{ref_key:"list",ref:o,class:P(["list",e.listClass+" "+e.customClass]),style:Qe(`min-height: ${r.value}px`)},[e.foundStatus?be(l.$slots,"default",{key:0}):(b(),z("div",vse,ze(e.noFoundMsg),1))],6))}},gse={class:"content"},bse={key:0,class:"title"},_se={__name:"CpModal",props:{title:{type:String,required:!1,default:""},show:{type:Boolean,required:!1,default:!0},modalStyle:{type:Boolean,required:!1,default:!0}},emits:["close"],setup(e,{emit:t}){const o=V(null),r=t;return vt(()=>{o.value&&o.value.addEventListener("click",l=>{o.value==l.target&&r("close")})}),(l,n)=>e.modalStyle?(b(),z("div",{key:0,ref_key:"modal",ref:o,class:P(["modal",e.show?"active":""])},[E("div",gse,[e.title?(b(),z("div",bse,ze(e.title),1)):ue("",!0),be(l.$slots,"default")])],2)):be(l.$slots,"default",{key:1})}},wse=(e,t)=>{const o=e.__vccOpts||e;for(const[r,l]of t)o[r]=l;return o},yse={},xse={class:"waiting"},kse=[L5('',1)];function Cse(e,t){return b(),z("div",xse,kse)}const Sse=wse(yse,[["render",Cse]]),Ese={class:"full-height"},$se={class:"wrapper"},Tse={class:"inner"},zse=E("div",{class:"footer"},[E("span",{class:"powered-by"}," Powered by "),E("a",{href:"https://beycanpress.com/cryptopay?utm_source=lite_plugin&utm_medium=powered_by",target:"_blank"},"CryptoPay")],-1),Mse={__name:"CpContainer",setup(e){const t=V(null);return zt("container",t),(o,r)=>(b(),z("div",{class:P(["app","theme-"+o.$vars.theme])},[E("div",Ese,[E("div",$se,[E("div",{class:"container",ref_key:"container",ref:t},[E("div",Tse,[be(o.$slots,"default")]),zse],512)])])],2))}},Ase={config:h1("config",()=>{const e=V({order:{id:null,amount:0,currency:null},networks:[],started:!1,providerConfig:{},blockConfirmationCount:0,amountUpdateInterval:null}),t=n=>{if(typeof e.value[n]>"u")throw new Error(`Config key "${n}" not found`)},o=(n,a)=>{t(n),e.value[n]=a},r=()=>{clearInterval(e.value.amountUpdateInterval),e.value.amountUpdateInterval=null},l=$(()=>e.value.started);return{set:o,get:e,isAppStarted:l,stopAmountUpdateInterval:r}}),payment:v1},Ise=[{id:1,hexId:"0x1",name:"Ethereum",code:"evmchains",rpcUrl:"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",explorerUrl:"https://etherscan.io/",nativeCurrency:{symbol:"ETH",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"ETH"},{symbol:"USDT",address:"0xdac17f958d2ee523a2206206994597c13d831ec7"},{symbol:"USDC",address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},{symbol:"BUSD",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}]},{id:56,hexId:"0x38",name:"BNB Smart Chain",code:"evmchains",rpcUrl:"https://bsc-dataseed.binance.org/",explorerUrl:"https://bscscan.com/",nativeCurrency:{symbol:"BNB",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","binancewallet"],currencies:[{symbol:"BNB"},{symbol:"BUSD",address:"0xe9e7cea3dedca5984780bafc599bd69add087d56"},{symbol:"USDT",address:"0x55d398326f99059ff775485246999027b3197955"},{symbol:"USDC",address:"0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d"}]},{id:43114,hexId:"0xa86a",name:"Avalanche C-Chain",code:"evmchains",rpcUrl:"https://api.avax.network/ext/bc/C/rpc",explorerUrl:"https://cchain.explorer.avax.network/",nativeCurrency:{symbol:"AVAX",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"AVAX"},{symbol:"USDT",address:"0xde3a24028580884448a5397872046a019649b084"}]},{id:137,hexId:"0x89",name:"Polygon",code:"evmchains",rpcUrl:"https://polygon-rpc.com/",explorerUrl:"https://polygonscan.com/",nativeCurrency:{symbol:"MATIC",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"MATIC"},{symbol:"USDT",address:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f"}]},{id:250,hexId:"0xfa",name:"Fantom",code:"evmchains",rpcUrl:"https://rpc.fantom.network",explorerUrl:"https://ftmscan.com/",nativeCurrency:{symbol:"FTM",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"FTM"}]}],Ose=[{id:11155111,hexId:"0xaa36a7",mainnetId:1,code:"evmchains",name:"Ethereum Sepolia Testnet",rpcUrl:"https://sepolia.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",explorerUrl:"https://sepolia.etherscan.io/",nativeCurrency:{symbol:"ETH",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"ETH"}]},{id:97,hexId:"0x61",mainnetId:56,code:"evmchains",name:"BNB Smart Chain Testnet",rpcUrl:"https://bsc-testnet.publicnode.com",explorerUrl:"https://testnet.bscscan.com/",nativeCurrency:{symbol:"BNB",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","binancewallet"],currencies:[{symbol:"BNB"},{symbol:"BUSD",address:"0xeD24FC36d5Ee211Ea25A80239Fb8C4Cfd80f12Ee"},{symbol:"USDT",address:"0xba6670261a05b8504e8ab9c45d97a8ed42573822"}]},{id:43113,hexId:"0xa869",mainnetId:43114,code:"evmchains",name:"Avalanche FUJI C-Chain Testnet",rpcUrl:"https://api.avax-test.network/ext/bc/C/rpc",explorerUrl:"https://cchain.explorer.avax-test.network",nativeCurrency:{symbol:"AVAX",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"AVAX"},{symbol:"USDT",address:"0xFe143522938e253e5Feef14DB0732e9d96221D72"}]},{id:80001,hexId:"0x13881",mainnetId:137,code:"evmchains",name:"Polygon Mumbai Testnet",rpcUrl:"https://rpc-mumbai.maticvigil.com/",explorerUrl:"https://mumbai.polygonscan.com/",nativeCurrency:{symbol:"MATIC",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"MATIC"},{symbol:"USDT",address:"0xa02f6adc7926efebbd59fd43a84f4e0c0c91e832"}]},{id:4002,hexId:"0xfa2",mainnetId:250,code:"evmchains",name:"Fantom Testnet",rpcUrl:"https://rpc.testnet.fantom.network/",explorerUrl:"https://testnet.ftmscan.com/",nativeCurrency:{symbol:"FTM",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi"],currencies:[{symbol:"FTM"}]}],Pse=rx(ox);window.cplSwal=gr,window.cplTyping=k2;let y8=!1;window.InitCryptoPayLite=(e,t)=>{if(t=k2(t),y8)throw new Error("CryptoPay Lite already initialized");const o=QC(t);window.cplHelpers=o,y8=!0,t.theme&&document.querySelector("body").classList.add("cpl-theme-"+t.theme||"light"),co.defaults.baseURL=t.apiUrl;const r={dynamicData:ns,helpers:o,events:ZC(o)},l=xC();l.use(XC);const n=$g(YC);n.component("cp-list",mse),n.component("cp-modal",_se),n.component("cp-loading",Sse),n.component("cp-container",Mse);for(const[d,f]of Object.entries(yH))n.component(d,f);n.use(l),n.use(hse);const a={},i={};n.provide("$vars",i.$vars=t),n.provide("$lang",i.$lang=t.lang),n.provide("$events",i.$events=r.events),n.provide("$helpers",i.$helpers=o),Object.values(Ase).forEach(d=>{const f=d();a[f.$id]=f}),n.provide("$store",i.$store=a),n.provide("$getCoinIcon",i.$getCoinIcon=(d,f)=>d.imageUrl||t.imagesUrl+"icons/"+f.toLowerCase()+".svg"),n.config.globalProperties=i;const c=document.createElement("div");n.mount(c);const u=()=>new Promise(d=>{const f=Object.values(a);f.forEach(async(v,m)=>{await v.$reset(),m===f.length-1&&d()})}),p=(d,f={})=>{if(typeof d!="object")throw new Error("Order must be object");if(typeof f!="object")throw new Error("Params must be object");if(!d.amount)throw new Error("Order amount is required");if(!d.currency)throw new Error("Order currency is required");if(typeof d.currency!="string")throw new Error("Order currency must be string");if(typeof d.amount!="number")throw new Error("Order amount must be number");r!=null&&r.start&&delete r.start,co.defaults.params={params:f,cp_addon:t.addon};const v=(t.testnet?Ose:Ise).filter(y=>t.networks.includes(y.id));a.config.set("order",o.clone(d)),a.config.set("networks",o.clone(v));const m=document.getElementById(e);let h;m.shadowRoot?h=m.shadowRoot:h=m.attachShadow({mode:"open"});const _=new CSSStyleSheet;return _.replace(tx+Pse+ex),h.adoptedStyleSheets.push(_),h.innerHTML="",h.appendChild(c),a.config.set("started",!0),{store:a,reStart:async(y,w={})=>{await u(),p(y,w)}}};return r.start=p,r}}); + */var Ere=/["'&<>]/,$re=Tre;function Tre(e){var t=""+e,o=Ere.exec(t);if(!o)return t;var r,l="",n=0,a=0;for(n=o.index;ntypeof u=="string"?oo(i,u):u(i,c,e))):(t!=="$key"&&Ct(i)&&"$value"in i&&(i=i.$value),[Ct(i)?oo(i,t):i])},a=function(i,c){if(r)return r(i.value,c.value);for(let u=0,d=i.key.length;uc.key[u])return 1}return 0};return e.map((i,c)=>({value:i,index:c,key:n?n(i,c):null})).sort((i,c)=>{let u=a(i,c);return u||(u=i.index-c.index),u*+o}).map(i=>i.value)},gy=function(e,t){let o=null;return e.columns.forEach(r=>{r.id===t&&(o=r)}),o},Are=function(e,t){let o=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const o=t.split(".");let r=e;for(const l of o)r=r[l];return`${r}`}else if(typeof t=="function")return t.call(null,e)},ba=function(e,t){const o={};return(e||[]).forEach((r,l)=>{o[Ho(r,t)]={row:r,index:l}}),o};function Ore(e,t){const o={};let r;for(r in e)o[r]=e[r];for(r in t)if(It(t,r)){const l=t[r];typeof l<"u"&&(o[r]=l)}return o}function nv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function _y(e){return e===""||e!==void 0&&(e=nv(e),Number.isNaN(e)&&(e=80)),e}function Ire(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Pre(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,o)=>(...r)=>t(o(...r)))}function Qs(e,t,o){let r=!1;const l=e.indexOf(t),n=l!==-1,a=i=>{i==="add"?e.push(t):e.splice(l,1),r=!0,Ge(t.children)&&t.children.forEach(c=>{Qs(e,c,o??!n)})};return Co(o)?o&&!n?a("add"):!o&&n&&a("remove"):a(n?"remove":"add"),r}function Bre(e,t,o="children",r="hasChildren"){const l=a=>!(Array.isArray(a)&&a.length);function n(a,i,c){t(a,i,c),i.forEach(u=>{if(u[r]){t(u,null,c+1);return}const d=u[o];l(d)||n(u,d,c+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const i=a[o];l(i)||n(a,i,0)})}let Xr;function Nre(e,t,o,r,l){l=s3({enterable:!0,showArrow:!0},l);const n=e==null?void 0:e.dataset.prefix,a=e==null?void 0:e.querySelector(`.${n}-scrollbar__wrap`);function i(){const y=l.effect==="light",w=document.createElement("div");return w.className=[`${n}-popper`,y?"is-light":"is-dark",l.popperClass||""].join(" "),o=zre(o),w.innerHTML=o,w.style.zIndex=String(r()),e==null||e.appendChild(w),w}function c(){const y=document.createElement("div");return y.className=`${n}-popper__arrow`,y}function u(y){return{name:"updateState",enabled:!0,phase:"beforeWrite",fn:({state:w})=>{w.styles.popper.display=y},requires:["computeStyles"]}}function d(){l.showAfter&&(f==null||f.setOptions({modifiers:[u("block")]})),f==null||f.update()}const p=(Xr==null?void 0:Xr.trigger)!==t;Xr==null||Xr(),Xr=()=>{try{f&&f.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",v),t.removeEventListener("mouseleave",m),a==null||a.removeEventListener("scroll",Xr),Xr=void 0}catch{}},Xr.trigger=t;let f=null;const{onOpen:v,onClose:m}=__({showAfter:l.showAfter,hideAfter:l.hideAfter,open:d,close:Xr}),h=i();l.enterable&&(h.onmouseenter=v,h.onmouseleave=m);const _=[];if(l.offset&&_.push({name:"offset",options:{offset:[0,l.offset]}}),l.showArrow){const y=h.appendChild(c());_.push({name:"arrow",options:{element:y,padding:10}})}l.showAfter&&p&&_.push(u("none"));const g=l.popperOptions||{};return f=p_(t,h,{placement:l.placement||"top",strategy:"fixed",...g,modifiers:g.modifiers?_.concat(g.modifiers):_}),t.addEventListener("mouseenter",v),t.addEventListener("mouseleave",m),a==null||a.addEventListener("scroll",Xr),v(),f}function wy(e){return e.children?xM(e.children,wy):[e]}function yy(e,t){return e+t.colSpan}const xy=(e,t,o,r)=>{let l=0,n=e;const a=o.states.columns.value;if(r){const c=wy(r[e]);l=a.slice(0,a.indexOf(c[0])).reduce(yy,0),n=l+c.reduce(yy,0)-1}else l=e;let i;switch(t){case"left":n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right");break;default:n=a.length-o.states.rightFixedLeafColumnsLength.value&&(i="right")}return i?{direction:i,start:l,after:n}:{}},av=(e,t,o,r,l,n=0)=>{const a=[],{direction:i,start:c,after:u}=xy(t,o,r,l);if(i){const d=i==="left";a.push(`${e}-fixed-column--${i}`),d&&u+n===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&c-n===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function ky(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const iv=(e,t,o,r)=>{const{direction:l,start:n=0,after:a=0}=xy(e,t,o,r);if(!l)return;const i={},c=l==="left",u=o.states.columns.value;return c?i.left=u.slice(0,n).reduce(ky,0):i.right=u.slice(a+1).reverse().reduce(ky,0),i},_i=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Lre(e){const t=_t(),o=V(!1),r=V([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(o.value)r.value=c.slice();else if(u){const d=ba(r.value,u);r.value=c.reduce((p,f)=>{const v=Ho(f,u);return d[v]&&p.push(f),p},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{Qs(r.value,c,u)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,p=ba(u,d);r.value=c.reduce((f,v)=>{const m=p[v];return m&&f.push(m.row),f},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!ba(r.value,u)[Ho(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:o}}}function Rre(e){const t=_t(),o=V(null),r=V(null),l=u=>{t.store.assertRowKey(),o.value=u,a(u)},n=()=>{o.value=null},a=u=>{const{data:d,rowKey:p}=e;let f=null;p.value&&(f=(s(d)||[]).find(v=>Ho(v,p.value)===u)),r.value=f,t.emit("current-change",r.value,null)};return{setCurrentRowKey:l,restoreCurrentRowKey:n,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],p=r.value;if(!d.includes(p)&&p){if(u){const f=Ho(p,u);a(f)}else r.value=null;r.value===null&&t.emit("current-change",null,p)}else o.value&&(a(o.value),n())},states:{_currentRowKey:o,currentRow:r}}}function Vre(e){const t=V([]),o=V({}),r=V(16),l=V(!1),n=V({}),a=V("hasChildren"),i=V("children"),c=_t(),u=T(()=>{if(!e.rowKey.value)return{};const g=e.data.value||[];return p(g)}),d=T(()=>{const g=e.rowKey.value,y=Object.keys(n.value),w={};return y.length&&y.forEach(x=>{if(n.value[x].length){const M={children:[]};n.value[x].forEach(E=>{const I=Ho(E,g);M.children.push(I),E[a.value]&&!w[I]&&(w[I]={children:[]})}),w[x]=M}}),w}),p=g=>{const y=e.rowKey.value,w={};return Bre(g,(x,M,E)=>{const I=Ho(x,y);Array.isArray(M)?w[I]={children:M.map(O=>Ho(O,y)),level:E}:l.value&&(w[I]={children:[],lazy:!0,level:E})},i.value,a.value),w},f=(g=!1,y=(w=>(w=c.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const x=u.value,M=d.value,E=Object.keys(x),I={};if(E.length){const O=s(o),F=[],K=(D,j)=>{if(g)return t.value?y||t.value.includes(j):!!(y||D!=null&&D.expanded);{const Z=y||t.value&&t.value.includes(j);return!!(D!=null&&D.expanded||Z)}};E.forEach(D=>{const j=O[D],Z={...x[D]};if(Z.expanded=K(j,D),Z.lazy){const{loaded:Q=!1,loading:J=!1}=j||{};Z.loaded=!!Q,Z.loading=!!J,F.push(D)}I[D]=Z});const R=Object.keys(M);l.value&&R.length&&F.length&&R.forEach(D=>{const j=O[D],Z=M[D].children;if(F.includes(D)){if(I[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");I[D].children=Z}else{const{loaded:Q=!1,loading:J=!1}=j||{};I[D]={lazy:!0,loaded:!!Q,loading:!!J,expanded:K(j,D),children:Z,level:""}}})}o.value=I,(w=c.store)==null||w.updateTableScrollY()};Te(()=>t.value,()=>{f(!0)}),Te(()=>u.value,()=>{f()}),Te(()=>d.value,()=>{f()});const v=g=>{t.value=g,f()},m=(g,y)=>{c.store.assertRowKey();const w=e.rowKey.value,x=Ho(g,w),M=x&&o.value[x];if(x&&M&&"expanded"in M){const E=M.expanded;y=typeof y>"u"?!M.expanded:y,o.value[x].expanded=y,E!==y&&c.emit("expand-change",g,y),c.store.updateTableScrollY()}},h=g=>{c.store.assertRowKey();const y=e.rowKey.value,w=Ho(g,y),x=o.value[w];l.value&&x&&"loaded"in x&&!x.loaded?_(g,w,x):m(g,void 0)},_=(g,y,w)=>{const{load:x}=c.props;x&&!o.value[y].loaded&&(o.value[y].loading=!0,x(g,w,M=>{if(!Array.isArray(M))throw new TypeError("[ElTable] data must be an array");o.value[y].loading=!1,o.value[y].loaded=!0,o.value[y].expanded=!0,M.length&&(n.value[y]=M),c.emit("expand-change",g,!0)}))};return{loadData:_,loadOrToggle:h,toggleTreeExpansion:m,updateTreeExpandKeys:v,updateTreeData:f,normalize:p,states:{expandRowKeys:t,treeData:o,indent:r,lazy:l,lazyTreeNodeMap:n,lazyColumnIdentifier:a,childrenColumnName:i}}}const Hre=(e,t)=>{const o=t.sortingColumn;return!o||typeof o.sortable=="string"?e:Mre(e,t.sortProp,t.sortOrder,o.sortMethod,o.sortBy)},Bd=e=>{const t=[];return e.forEach(o=>{o.children&&o.children.length>0?t.push.apply(t,Bd(o.children)):t.push(o)}),t};function Fre(){var e;const t=_t(),{size:o}=Ao((e=t.proxy)==null?void 0:e.$props),r=V(null),l=V([]),n=V([]),a=V(!1),i=V([]),c=V([]),u=V([]),d=V([]),p=V([]),f=V([]),v=V([]),m=V([]),h=[],_=V(0),g=V(0),y=V(0),w=V(!1),x=V([]),M=V(!1),E=V(!1),I=V(null),O=V({}),F=V(null),K=V(null),R=V(null),D=V(null),j=V(null);Te(l,()=>t.state&&L(!1),{deep:!0});const Z=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},Q=Y=>{var C;(C=Y.children)==null||C.forEach(S=>{S.fixed=Y.fixed,Q(S)})},J=()=>{i.value.forEach(ee=>{Q(ee)}),d.value=i.value.filter(ee=>ee.fixed===!0||ee.fixed==="left"),p.value=i.value.filter(ee=>ee.fixed==="right"),d.value.length>0&&i.value[0]&&i.value[0].type==="selection"&&!i.value[0].fixed&&(i.value[0].fixed=!0,d.value.unshift(i.value[0]));const Y=i.value.filter(ee=>!ee.fixed);c.value=[].concat(d.value).concat(Y).concat(p.value);const C=Bd(Y),S=Bd(d.value),H=Bd(p.value);_.value=C.length,g.value=S.length,y.value=H.length,u.value=[].concat(S).concat(C).concat(H),a.value=d.value.length>0||p.value.length>0},L=(Y,C=!1)=>{Y&&J(),C?t.state.doLayout():t.state.debouncedUpdateLayout()},X=Y=>x.value.includes(Y),N=()=>{w.value=!1,x.value.length&&(x.value=[],t.emit("selection-change",[]))},W=()=>{let Y;if(r.value){Y=[];const C=ba(x.value,r.value),S=ba(l.value,r.value);for(const H in C)It(C,H)&&!S[H]&&Y.push(C[H].row)}else Y=x.value.filter(C=>!l.value.includes(C));if(Y.length){const C=x.value.filter(S=>!Y.includes(S));x.value=C,t.emit("selection-change",C.slice())}},re=()=>(x.value||[]).slice(),ie=(Y,C=void 0,S=!0)=>{if(Qs(x.value,Y,C)){const ee=(x.value||[]).slice();S&&t.emit("select",ee,Y),t.emit("selection-change",ee)}},se=()=>{var Y,C;const S=E.value?!w.value:!(w.value||x.value.length);w.value=S;let H=!1,ee=0;const U=(C=(Y=t==null?void 0:t.store)==null?void 0:Y.states)==null?void 0:C.rowKey.value;l.value.forEach((he,qe)=>{const st=qe+ee;I.value?I.value.call(null,he,st)&&Qs(x.value,he,S)&&(H=!0):Qs(x.value,he,S)&&(H=!0),ee+=ge(Ho(he,U))}),H&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",x.value)},ve=()=>{const Y=ba(x.value,r.value);l.value.forEach(C=>{const S=Ho(C,r.value),H=Y[S];H&&(x.value[H.index]=C)})},le=()=>{var Y,C,S;if(((Y=l.value)==null?void 0:Y.length)===0){w.value=!1;return}let H;r.value&&(H=ba(x.value,r.value));const ee=function(st){return H?!!H[Ho(st,r.value)]:x.value.includes(st)};let U=!0,he=0,qe=0;for(let st=0,At=(l.value||[]).length;st{var C;if(!t||!t.store)return 0;const{treeData:S}=t.store.states;let H=0;const ee=(C=S.value[Y])==null?void 0:C.children;return ee&&(H+=ee.length,ee.forEach(U=>{H+=ge(U)})),H},_e=(Y,C)=>{Array.isArray(Y)||(Y=[Y]);const S={};return Y.forEach(H=>{O.value[H.id]=C,S[H.columnKey||H.id]=C}),S},me=(Y,C,S)=>{K.value&&K.value!==Y&&(K.value.order=null),K.value=Y,R.value=C,D.value=S},Be=()=>{let Y=s(n);Object.keys(O.value).forEach(C=>{const S=O.value[C];if(!S||S.length===0)return;const H=gy({columns:u.value},C);H&&H.filterMethod&&(Y=Y.filter(ee=>S.some(U=>H.filterMethod.call(null,U,ee,H))))}),F.value=Y},ye=()=>{l.value=Hre(F.value,{sortingColumn:K.value,sortProp:R.value,sortOrder:D.value})},Me=(Y=void 0)=>{Y&&Y.filter||Be(),ye()},te=Y=>{const{tableHeaderRef:C}=t.refs;if(!C)return;const S=Object.assign({},C.filterPanels),H=Object.keys(S);if(H.length)if(typeof Y=="string"&&(Y=[Y]),Array.isArray(Y)){const ee=Y.map(U=>Are({columns:u.value},U));H.forEach(U=>{const he=ee.find(qe=>qe.id===U);he&&(he.filteredValue=[])}),t.store.commit("filterChange",{column:ee,values:[],silent:!0,multi:!0})}else H.forEach(ee=>{const U=u.value.find(he=>he.id===ee);U&&(U.filteredValue=[])}),O.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ce=()=>{K.value&&(me(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:we,toggleRowExpansion:Ae,updateExpandRows:Oe,states:xe,isRowExpanded:Ne}=Lre({data:l,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:ke,updateTreeData:$e,loadOrToggle:Pe,states:Ye}=Vre({data:l,rowKey:r}),{updateCurrentRowData:Ke,updateCurrentRow:Ee,setCurrentRowKey:Ue,states:nt}=Rre({data:l,rowKey:r});return{assertRowKey:Z,updateColumns:J,scheduleLayout:L,isSelected:X,clearSelection:N,cleanSelection:W,getSelectionRows:re,toggleRowSelection:ie,_toggleAllSelection:se,toggleAllSelection:null,updateSelectionByRowKey:ve,updateAllSelected:le,updateFilters:_e,updateCurrentRow:Ee,updateSort:me,execFilter:Be,execSort:ye,execQuery:Me,clearFilter:te,clearSort:ce,toggleRowExpansion:Ae,setExpandRowKeysAdapter:Y=>{we(Y),Se(Y)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(Y,C)=>{u.value.some(({type:H})=>H==="expand")?Ae(Y,C):ke(Y,C)},isRowExpanded:Ne,updateExpandRows:Oe,updateCurrentRowData:Ke,loadOrToggle:Pe,updateTreeData:$e,states:{tableSize:o,rowKey:r,data:l,_data:n,isComplex:a,_columns:i,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:p,leafColumns:f,fixedLeafColumns:v,rightFixedLeafColumns:m,updateOrderFns:h,leafColumnsLength:_,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:y,isAllSelected:w,selection:x,reserveSelection:M,selectOnIndeterminate:E,selectable:I,filters:O,filteredData:F,sortingColumn:K,sortProp:R,sortOrder:D,hoverRow:j,...xe,...Ye,...nt}}}function sv(e,t){return e.map(o=>{var r;return o.id===t.id?t:((r=o.children)!=null&&r.length&&(o.children=sv(o.children,t)),o)})}function cv(e){e.forEach(t=>{var o,r;t.no=(o=t.getColumnIndex)==null?void 0:o.call(t),(r=t.children)!=null&&r.length&&cv(t.children)}),e.sort((t,o)=>t.no-o.no)}function Dre(){const e=_t(),t=Fre();return{ns:Ie("table"),...t,mutations:{setData(a,i){const c=s(a._data)!==i;a.data.value=i,a._data.value=i,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),s(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,i,c,u){const d=s(a._columns);let p=[];c?(c&&!c.children&&(c.children=[]),c.children.push(i),p=sv(d,c)):(d.push(i),p=d),cv(p),a._columns.value=p,a.updateOrderFns.push(u),i.type==="selection"&&(a.selectable.value=i.selectable,a.reserveSelection.value=i.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,i){var c;((c=i.getColumnIndex)==null?void 0:c.call(i))!==i.no&&(cv(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,i,c,u){const d=s(a._columns)||[];if(c)c.children.splice(c.children.findIndex(f=>f.id===i.id),1),et(()=>{var f;((f=c.children)==null?void 0:f.length)===0&&delete c.children}),a._columns.value=sv(d,c);else{const f=d.indexOf(i);f>-1&&(d.splice(f,1),a._columns.value=d)}const p=a.updateOrderFns.indexOf(u);p>-1&&a.updateOrderFns.splice(p,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,i){const{prop:c,order:u,init:d}=i;if(c){const p=s(a.columns).find(f=>f.property===c);p&&(p.order=u,e.store.updateSort(p,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,i){const{sortingColumn:c,sortProp:u,sortOrder:d}=a,p=s(c),f=s(u),v=s(d);v===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!i||!(i.silent||i.init))&&e.emit("sort-change",{column:p,prop:f,order:v}),e.store.updateTableScrollY()},filterChange(a,i){const{column:c,values:u,silent:d}=i,p=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",p),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,i){e.store.toggleRowSelection(i),e.store.updateAllSelected()},setHoverRow(a,i){a.hoverRow.value=i},setCurrentRow(a,i){e.store.updateCurrentRow(i)}},commit:function(a,...i){const c=e.store.mutations;if(c[a])c[a].apply(e,[e.store.states].concat(i));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){et(()=>e.layout.updateScrollY.apply(e.layout))}}}const ec={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function jre(e,t){if(!e)throw new Error("Table is required.");const o=Dre();return o.toggleAllSelection=Zo(o._toggleAllSelection,10),Object.keys(ec).forEach(r=>{Cy(Sy(t,r),r,o)}),Kre(o,t),o}function Kre(e,t){Object.keys(ec).forEach(o=>{Te(()=>Sy(t,o),r=>{Cy(r,o,e)})})}function Cy(e,t,o){let r=e,l=ec[t];typeof ec[t]=="object"&&(l=l.key,r=r||ec[t].default),o.states[l].value=r}function Sy(e,t){if(t.includes(".")){const o=t.split(".");let r=e;return o.forEach(l=>{r=r[l]}),r}else return e[t]}class Wre{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const o in t)It(t,o)&&(Wt(this[o])?this[o].value=t[o]:this[o]=t[o]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const o=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(o!=null&&o.wrapRef)){let r=!0;const l=this.scrollY.value;return r=o.wrapRef.scrollHeight>o.wrapRef.clientHeight,this.scrollY.value=r,l!==r}return!1}setHeight(t,o="height"){if(!Bt)return;const r=this.table.vnode.el;if(t=Ire(t),this.height.value=Number(t),!r&&(t||t===0))return et(()=>this.setHeight(t,o));typeof t=="number"?(r.style[o]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[o]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let o=t;for(;o.tagName!=="DIV";){if(getComputedStyle(o).display==="none")return!0;o=o.parentElement}return!1}updateColumnsWidth(){if(!Bt)return;const t=this.fit,o=this.table.vnode.el.clientWidth;let r=0;const l=this.getFlattenColumns(),n=l.filter(c=>typeof c.width!="number");if(l.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),n.length>0&&t){if(l.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=o){this.scrollX.value=!1;const c=o-r;if(n.length===1)n[0].realWidth=Number(n[0].minWidth||80)+c;else{const u=n.reduce((f,v)=>f+Number(v.minWidth||80),0),d=c/u;let p=0;n.forEach((f,v)=>{if(v===0)return;const m=Math.floor(Number(f.minWidth||80)*d);p+=m,f.realWidth=Number(f.minWidth||80)+m}),n[0].realWidth=Number(n[0].minWidth||80)+c-p}}else this.scrollX.value=!0,n.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else l.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),r+=c.realWidth}),this.scrollX.value=r>o,this.bodyWidth.value=r;const a=this.store.states.fixedColumns.value;if(a.length>0){let c=0;a.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.fixedWidth.value=c}const i=this.store.states.rightFixedColumns.value;if(i.length>0){let c=0;i.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const o=this.observers.indexOf(t);o!==-1&&this.observers.splice(o,1)}notifyObservers(t){this.observers.forEach(r=>{var l,n;switch(t){case"columns":(l=r.state)==null||l.onColumnsChange(this);break;case"scrollable":(n=r.state)==null||n.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Ure}=Nr,qre=B({name:"ElTableFilterPanel",components:{ElCheckbox:Nr,ElCheckboxGroup:Ure,ElScrollbar:Kl,ElTooltip:er,ElIcon:Je,ArrowDown:Bl,ArrowUp:Cs},directives:{ClickOutside:Ul},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=_t(),{t:o}=Nt(),r=Ie("table-filter"),l=t==null?void 0:t.parent;l.filterPanels.value[e.column.id]||(l.filterPanels.value[e.column.id]=t);const n=V(!1),a=V(null),i=T(()=>e.column&&e.column.filters),c=T({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{u.value&&(typeof x<"u"&&x!==null?u.value.splice(0,1,x):u.value.splice(0,1))}}),u=T({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),d=T(()=>e.column?e.column.filterMultiple:!0),p=x=>x.value===c.value,f=()=>{n.value=!1},v=x=>{x.stopPropagation(),n.value=!n.value},m=()=>{n.value=!1},h=()=>{y(u.value),f()},_=()=>{u.value=[],y(u.value),f()},g=x=>{c.value=x,y(typeof x<"u"&&x!==null?u.value:[]),f()},y=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};Te(n,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const w=T(()=>{var x,M;return(M=(x=a.value)==null?void 0:x.popperRef)==null?void 0:M.contentRef});return{tooltipVisible:n,multiple:d,filteredValue:u,filterValue:c,filters:i,handleConfirm:h,handleReset:_,handleSelect:g,isActive:p,t:o,ns:r,showFilterPanel:v,hideFilterPanel:m,popperPaneRef:w,tooltip:a}}}),Yre={key:0},Gre=["disabled"],Xre=["label","onClick"];function Zre(e,t,o,r,l,n){const a=ot("el-checkbox"),i=ot("el-checkbox-group"),c=ot("el-scrollbar"),u=ot("arrow-up"),d=ot("arrow-down"),p=ot("el-icon"),f=ot("el-tooltip"),v=ji("click-outside");return b(),de(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:ne(()=>[e.multiple?(b(),z("div",Yre,[$("div",{class:P(e.ns.e("content"))},[oe(c,{"wrap-class":e.ns.e("wrap")},{default:ne(()=>[oe(i,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=m=>e.filteredValue=m),class:P(e.ns.e("checkbox-group"))},{default:ne(()=>[(b(!0),z(Xe,null,Tt(e.filters,m=>(b(),de(a,{key:m.value,label:m.value},{default:ne(()=>[$t(ze(m.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),$("div",{class:P(e.ns.e("bottom"))},[$("button",{class:P({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...m)=>e.handleConfirm&&e.handleConfirm(...m))},ze(e.t("el.table.confirmFilter")),11,Gre),$("button",{type:"button",onClick:t[2]||(t[2]=(...m)=>e.handleReset&&e.handleReset(...m))},ze(e.t("el.table.resetFilter")),1)],2)])):(b(),z("ul",{key:1,class:P(e.ns.e("list"))},[$("li",{class:P([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=m=>e.handleSelect(null))},ze(e.t("el.table.clearFilter")),3),(b(!0),z(Xe,null,Tt(e.filters,m=>(b(),z("li",{key:m.value,class:P([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:h=>e.handleSelect(m.value)},ze(m.text),11,Xre))),128))],2))]),default:ne(()=>[ht((b(),z("span",{class:P([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...m)=>e.showFilterPanel&&e.showFilterPanel(...m))},[oe(p,null,{default:ne(()=>[e.column.filterOpened?(b(),de(u,{key:0})):(b(),de(d,{key:1}))]),_:1})],2)),[[v,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var Jre=Fe(qre,[["render",Zre],["__file","filter-panel.vue"]]);function Ey(e){const t=_t();jc(()=>{o.value.addObserver(t)}),vt(()=>{r(o.value),l(o.value)}),Tl(()=>{r(o.value),l(o.value)}),cn(()=>{o.value.removeObserver(t)});const o=T(()=>{const n=e.layout;if(!n)throw new Error("Can not find table layout.");return n}),r=n=>{var a;const i=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!i.length)return;const c=n.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,p=i.length;d{var a,i;const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,p=c.length;d{h.stopPropagation()},n=(h,_)=>{!_.filters&&_.sortable?m(h,_,!1):_.filterable&&!_.sortable&&l(h),r==null||r.emit("header-click",_,h)},a=(h,_)=>{r==null||r.emit("header-contextmenu",_,h)},i=V(null),c=V(!1),u=V({}),d=(h,_)=>{if(Bt&&!(_.children&&_.children.length>0)&&i.value&&e.border){c.value=!0;const g=r;t("set-drag-visible",!0);const w=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,x=o.vnode.el.querySelector(`th.${_.id}`),M=x.getBoundingClientRect(),E=M.left-w+30;il(x,"noclick"),u.value={startMouseLeft:h.clientX,startLeft:M.right-w,startColumnLeft:M.left-w,tableLeft:w};const I=g==null?void 0:g.refs.resizeProxy;I.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=K=>{const R=K.clientX-u.value.startMouseLeft,D=u.value.startLeft+R;I.style.left=`${Math.max(E,D)}px`},F=()=>{if(c.value){const{startColumnLeft:K,startLeft:R}=u.value,j=Number.parseInt(I.style.left,10)-K;_.width=_.realWidth=j,g==null||g.emit("header-dragend",_.width,R-K,_,h),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,i.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",F),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{sr(x,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",F)}},p=(h,_)=>{if(_.children&&_.children.length>0)return;const g=h.target;if(!zr(g))return;const y=g==null?void 0:g.closest("th");if(!(!_||!_.resizable)&&!c.value&&e.border){const w=y.getBoundingClientRect(),x=document.body.style;w.width>12&&w.right-h.pageX<8?(x.cursor="col-resize",Wr(y,"is-sortable")&&(y.style.cursor="col-resize"),i.value=_):c.value||(x.cursor="",Wr(y,"is-sortable")&&(y.style.cursor="pointer"),i.value=null)}},f=()=>{Bt&&(document.body.style.cursor="")},v=({order:h,sortOrders:_})=>{if(h==="")return _[0];const g=_.indexOf(h||null);return _[g>_.length-2?0:g+1]},m=(h,_,g)=>{var y;h.stopPropagation();const w=_.order===g?null:g||v(_),x=(y=h.target)==null?void 0:y.closest("th");if(x&&Wr(x,"noclick")){sr(x,"noclick");return}if(!_.sortable)return;const M=e.store.states;let E=M.sortProp.value,I;const O=M.sortingColumn.value;(O!==_||O===_&&O.order===null)&&(O&&(O.order=null),M.sortingColumn.value=_,E=_.property),w?I=_.order=w:I=_.order=null,M.sortProp.value=E,M.sortOrder.value=I,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:n,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:m,handleFilterClick:l}}function ele(e){const t=Le(gl),o=Ie("table");return{getHeaderRowStyle:i=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:i}):c},getHeaderRowClass:i=>{const c=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?c.push(u):typeof u=="function"&&c.push(u.call(null,{rowIndex:i})),c.join(" ")},getHeaderCellStyle:(i,c,u,d)=>{var p;let f=(p=t==null?void 0:t.props.headerCellStyle)!=null?p:{};typeof f=="function"&&(f=f.call(null,{rowIndex:i,columnIndex:c,row:u,column:d}));const v=iv(c,d.fixed,e.store,u);return _i(v,"left"),_i(v,"right"),Object.assign({},f,v)},getHeaderCellClass:(i,c,u,d)=>{const p=av(o.b(),c,d.fixed,e.store,u),f=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...p];d.children||f.push("is-leaf"),d.sortable&&f.push("is-sortable");const v=t==null?void 0:t.props.headerCellClassName;return typeof v=="string"?f.push(v):typeof v=="function"&&f.push(v.call(null,{rowIndex:i,columnIndex:c,row:u,column:d})),f.push(o.e("cell")),f.filter(m=>!!m).join(" ")}}}const $y=e=>{const t=[];return e.forEach(o=>{o.children?(t.push(o),t.push.apply(t,$y(o.children))):t.push(o)}),t},tle=e=>{let t=1;const o=(n,a)=>{if(a&&(n.level=a.level+1,t{o(c,n),i+=c.colSpan}),n.colSpan=i}else n.colSpan=1};e.forEach(n=>{n.level=1,o(n,void 0)});const r=[];for(let n=0;n{n.children?(n.rowSpan=1,n.children.forEach(a=>a.isSubColumn=!0)):n.rowSpan=t-n.level+1,r[n.level-1].push(n)}),r};function ole(e){const t=Le(gl),o=T(()=>tle(e.store.states.originColumns.value));return{isGroup:T(()=>{const n=o.value.length>1;return n&&t&&(t.state.isGroup.value=!0),n}),toggleAllSelection:n=>{n.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:o}}var rle=B({name:"ElTableHeader",components:{ElCheckbox:Nr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const o=_t(),r=Le(gl),l=Ie("table"),n=V({}),{onColumnsChange:a,onScrollableChange:i}=Ey(r);vt(async()=>{await et(),await et();const{prop:E,order:I}=e.defaultSort;r==null||r.store.commit("sort",{prop:E,order:I,init:!0})});const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:v,handleFilterClick:m}=Qre(e,t),{getHeaderRowStyle:h,getHeaderRowClass:_,getHeaderCellStyle:g,getHeaderCellClass:y}=ele(e),{isGroup:w,toggleAllSelection:x,columnRows:M}=ole(e);return o.state={onColumnsChange:a,onScrollableChange:i},o.filterPanels=n,{ns:l,filterPanels:n,onColumnsChange:a,onScrollableChange:i,columnRows:M,getHeaderRowClass:_,getHeaderRowStyle:h,getHeaderCellClass:y,getHeaderCellStyle:g,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:p,handleMouseOut:f,handleSortClick:v,handleFilterClick:m,isGroup:w,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:o,getHeaderCellStyle:r,getHeaderCellClass:l,getHeaderRowClass:n,getHeaderRowStyle:a,handleHeaderClick:i,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:p,handleMouseOut:f,store:v,$parent:m}=this;let h=1;return rt("thead",{class:{[e.is("group")]:t}},o.map((_,g)=>rt("tr",{class:n(g),key:g,style:a(g)},_.map((y,w)=>(y.rowSpan>h&&(h=y.rowSpan),rt("th",{class:l(g,w,_,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:r(g,w,_,y),onClick:x=>i(x,y),onContextmenu:x=>c(x,y),onMousedown:x=>u(x,y),onMousemove:x=>d(x,y),onMouseout:f},[rt("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:w,store:v,_self:m}):y.label,y.sortable&&rt("span",{onClick:x=>p(x,y),class:"caret-wrapper"},[rt("i",{onClick:x=>p(x,y,"ascending"),class:"sort-caret ascending"}),rt("i",{onClick:x=>p(x,y,"descending"),class:"sort-caret descending"})]),y.filterable&&rt(Jre,{store:v,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(x,M)=>{y[x]=M}})])]))))))}});function lle(e){const t=Le(gl),o=V(""),r=V(rt("div")),{nextZIndex:l}=oi(),n=(m,h,_)=>{var g;const y=t,w=lv(m);let x;const M=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;w&&(x=by({columns:e.store.states.columns.value},w,M),x&&(y==null||y.emit(`cell-${_}`,h,x,w,m))),y==null||y.emit(`row-${_}`,h,x,m)},a=(m,h)=>{n(m,h,"dblclick")},i=(m,h)=>{e.store.commit("setCurrentRow",h),n(m,h,"click")},c=(m,h)=>{n(m,h,"contextmenu")},u=Zo(m=>{e.store.commit("setHoverRow",m)},30),d=Zo(()=>{e.store.commit("setHoverRow",null)},30),p=m=>{const h=window.getComputedStyle(m,null),_=Number.parseInt(h.paddingLeft,10)||0,g=Number.parseInt(h.paddingRight,10)||0,y=Number.parseInt(h.paddingTop,10)||0,w=Number.parseInt(h.paddingBottom,10)||0;return{left:_,right:g,top:y,bottom:w}};return{handleDoubleClick:a,handleClick:i,handleContextMenu:c,handleMouseEnter:u,handleMouseLeave:d,handleCellMouseEnter:(m,h,_)=>{var g;const y=t,w=lv(m),x=(g=y==null?void 0:y.vnode.el)==null?void 0:g.dataset.prefix;if(w){const L=by({columns:e.store.states.columns.value},w,x),X=y.hoverState={cell:w,column:L,row:h};y==null||y.emit("cell-mouse-enter",X.row,X.column,X.cell,m)}if(!_)return;const M=m.target.querySelector(".cell");if(!(Wr(M,`${x}-tooltip`)&&M.childNodes.length))return;const E=document.createRange();E.setStart(M,0),E.setEnd(M,M.childNodes.length);let I=E.getBoundingClientRect().width,O=E.getBoundingClientRect().height;I-Math.floor(I)<.001&&(I=Math.floor(I)),O-Math.floor(O)<.001&&(O=Math.floor(O));const{top:R,left:D,right:j,bottom:Z}=p(M),Q=D+j,J=R+Z;(I+Q>M.offsetWidth||O+J>M.offsetHeight||M.scrollWidth>M.offsetWidth)&&Nre(t==null?void 0:t.refs.tableWrapper,w,w.innerText||w.textContent,l,_)},handleCellMouseLeave:m=>{if(!lv(m))return;const _=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_==null?void 0:_.row,_==null?void 0:_.column,_==null?void 0:_.cell,m)},tooltipContent:o,tooltipTrigger:r}}function nle(e){const t=Le(gl),o=Ie("table");return{getRowStyle:(u,d)=>{const p=t==null?void 0:t.props.rowStyle;return typeof p=="function"?p.call(null,{row:u,rowIndex:d}):p||null},getRowClass:(u,d)=>{const p=[o.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&p.push("current-row"),e.stripe&&d%2===1&&p.push(o.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return typeof f=="string"?p.push(f):typeof f=="function"&&p.push(f.call(null,{row:u,rowIndex:d})),p},getCellStyle:(u,d,p,f)=>{const v=t==null?void 0:t.props.cellStyle;let m=v??{};typeof v=="function"&&(m=v.call(null,{rowIndex:u,columnIndex:d,row:p,column:f}));const h=iv(d,e==null?void 0:e.fixed,e.store);return _i(h,"left"),_i(h,"right"),Object.assign({},m,h)},getCellClass:(u,d,p,f,v)=>{const m=av(o.b(),d,e==null?void 0:e.fixed,e.store,void 0,v),h=[f.id,f.align,f.className,...m],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?h.push(_):typeof _=="function"&&h.push(_.call(null,{rowIndex:u,columnIndex:d,row:p,column:f})),h.push(o.e("cell")),h.filter(g=>!!g).join(" ")},getSpan:(u,d,p,f)=>{let v=1,m=1;const h=t==null?void 0:t.props.spanMethod;if(typeof h=="function"){const _=h({row:u,column:d,rowIndex:p,columnIndex:f});Array.isArray(_)?(v=_[0],m=_[1]):typeof _=="object"&&(v=_.rowspan,m=_.colspan)}return{rowspan:v,colspan:m}},getColspanRealWidth:(u,d,p)=>{if(d<1)return u[p].realWidth;const f=u.map(({realWidth:v,width:m})=>v||m).slice(p,p+d);return Number(f.reduce((v,m)=>Number(v)+Number(m),-1))}}}function ale(e){const t=Le(gl),o=Ie("table"),{handleDoubleClick:r,handleClick:l,handleContextMenu:n,handleMouseEnter:a,handleMouseLeave:i,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:p}=lle(e),{getRowStyle:f,getRowClass:v,getCellStyle:m,getCellClass:h,getSpan:_,getColspanRealWidth:g}=nle(e),y=T(()=>e.store.states.columns.value.findIndex(({type:I})=>I==="default")),w=(I,O)=>{const F=t.props.rowKey;return F?Ho(I,F):O},x=(I,O,F,K=!1)=>{const{tooltipEffect:R,tooltipOptions:D,store:j}=e,{indent:Z,columns:Q}=j.states,J=v(I,O);let L=!0;return F&&(J.push(o.em("row",`level-${F.level}`)),L=F.display),rt("tr",{style:[L?null:{display:"none"},f(I,O)],class:J,key:w(I,O),onDblclick:N=>r(N,I),onClick:N=>l(N,I),onContextmenu:N=>n(N,I),onMouseenter:()=>a(O),onMouseleave:i},Q.value.map((N,W)=>{const{rowspan:re,colspan:ie}=_(I,N,O,W);if(!re||!ie)return null;const se=Object.assign({},N);se.realWidth=g(Q.value,ie,W);const ve={store:e.store,_self:e.context||t,column:se,row:I,$index:O,cellIndex:W,expanded:K};W===y.value&&F&&(ve.treeNode={indent:F.level*Z.value,level:F.level},typeof F.expanded=="boolean"&&(ve.treeNode.expanded=F.expanded,"loading"in F&&(ve.treeNode.loading=F.loading),"noLazyChildren"in F&&(ve.treeNode.noLazyChildren=F.noLazyChildren)));const le=`${O},${W}`,ge=se.columnKey||se.rawColumnKey||"",_e=M(W,N,ve),me=N.showOverflowTooltip&&s3({effect:R},D,N.showOverflowTooltip);return rt("td",{style:m(O,W,I,N),class:h(O,W,I,N,ie-1),key:`${ge}${le}`,rowspan:re,colspan:ie,onMouseenter:Be=>c(Be,I,me),onMouseleave:u},[_e])}))},M=(I,O,F)=>O.renderCell(F);return{wrappedRowRender:(I,O)=>{const F=e.store,{isRowExpanded:K,assertRowKey:R}=F,{treeData:D,lazyTreeNodeMap:j,childrenColumnName:Z,rowKey:Q}=F.states,J=F.states.columns.value;if(J.some(({type:X})=>X==="expand")){const X=K(I),N=x(I,O,void 0,X),W=t.renderExpanded;return X?W?[[N,rt("tr",{key:`expanded-row__${N.key}`},[rt("td",{colspan:J.length,class:`${o.e("cell")} ${o.e("expanded-cell")}`},[W({row:I,$index:O,store:F,expanded:X})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(D.value).length){R();const X=Ho(I,Q.value);let N=D.value[X],W=null;N&&(W={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(W.noLazyChildren=!(N.children&&N.children.length)),W.loading=N.loading));const re=[x(I,O,W)];if(N){let ie=0;const se=(le,ge)=>{le&&le.length&&ge&&le.forEach(_e=>{const me={display:ge.display&&ge.expanded,level:ge.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Be=Ho(_e,Q.value);if(Be==null)throw new Error("For nested data item, row-key is required.");if(N={...D.value[Be]},N&&(me.expanded=N.expanded,N.level=N.level||me.level,N.display=!!(N.expanded&&me.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(me.noLazyChildren=!(N.children&&N.children.length)),me.loading=N.loading)),ie++,re.push(x(_e,O+ie,me)),N){const ye=j.value[Be]||_e[Z.value];se(ye,N)}})};N.display=!0;const ve=j.value[X]||I[Z.value];se(ve,N)}return re}else return x(I,O,void 0)},tooltipContent:d,tooltipTrigger:p}}var ile=B({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=_t(),o=Le(gl),r=Ie("table"),{wrappedRowRender:l,tooltipContent:n,tooltipTrigger:a}=ale(e),{onColumnsChange:i,onScrollableChange:c}=Ey(o);return Te(e.store.states.hoverRow,(u,d)=>{!e.store.states.isComplex.value||!Bt||Ga(()=>{const p=t==null?void 0:t.vnode.el,f=Array.from((p==null?void 0:p.children)||[]).filter(h=>h==null?void 0:h.classList.contains(`${r.e("row")}`)),v=f[d],m=f[u];v&&sr(v,"hover-row"),m&&il(m,"hover-row")})}),cn(()=>{var u;(u=Xr)==null||u()}),{ns:r,onColumnsChange:i,onScrollableChange:c,wrappedRowRender:l,tooltipContent:n,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,o=t.states.data.value||[];return rt("tbody",{tabIndex:-1},[o.reduce((r,l)=>r.concat(e(l,r.length)),[])])}});function sle(){const e=Le(gl),t=e==null?void 0:e.store,o=T(()=>t.states.fixedLeafColumnsLength.value),r=T(()=>t.states.rightFixedColumns.value.length),l=T(()=>t.states.columns.value.length),n=T(()=>t.states.fixedColumns.value.length),a=T(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:o,rightFixedLeafCount:r,columnsCount:l,leftFixedCount:n,rightFixedCount:a,columns:t.states.columns}}function cle(e){const{columns:t}=sle(),o=Ie("table");return{getCellClasses:(n,a)=>{const i=n[a],c=[o.e("cell"),i.id,i.align,i.labelClassName,...av(o.b(),a,i.fixed,e.store)];return i.className&&c.push(i.className),i.children||c.push(o.is("leaf")),c},getCellStyles:(n,a)=>{const i=iv(a,n.fixed,e.store);return _i(i,"left"),_i(i,"right"),i},columns:t}}var ule=B({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:o,columns:r}=cle(e);return{ns:Ie("table"),getCellClasses:t,getCellStyles:o,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:o,summaryMethod:r,sumText:l}=this,n=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:n}):e.forEach((i,c)=>{if(c===0){a[c]=l;return}const u=n.map(v=>Number(v[i.property])),d=[];let p=!0;u.forEach(v=>{if(!Number.isNaN(+v)){p=!1;const m=`${v}`.split(".")[1];d.push(m?m.length:0)}});const f=Math.max.apply(null,d);p?a[c]="":a[c]=u.reduce((v,m)=>{const h=Number(m);return Number.isNaN(+h)?v:Number.parseFloat((v+m).toFixed(Math.min(f,20)))},0)}),rt(rt("tfoot",[rt("tr",{},[...e.map((i,c)=>rt("td",{key:c,colspan:i.colSpan,rowspan:i.rowSpan,class:o(e,c),style:t(i,c)},[rt("div",{class:["cell",i.labelClassName]},[a[c]])]))])]))}});function dle(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,p)=>{e.toggleRowSelection(d,p,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,p)=>{e.toggleRowExpansionAdapter(d,p)},clearSort:()=>{e.clearSort()},sort:(d,p)=>{e.commit("sort",{prop:d,order:p})}}}function ple(e,t,o,r){const l=V(!1),n=V(null),a=V(!1),i=N=>{a.value=N},c=V({width:null,height:null,headerHeight:null}),u=V(!1),d={display:"inline-block",verticalAlign:"middle"},p=V(),f=V(0),v=V(0),m=V(0),h=V(0),_=V(0);lr(()=>{t.setHeight(e.height)}),lr(()=>{t.setMaxHeight(e.maxHeight)}),Te(()=>[e.currentRowKey,o.states.rowKey],([N,W])=>{!s(W)||!s(N)||o.setCurrentRowKey(`${N}`)},{immediate:!0}),Te(()=>e.data,N=>{r.store.commit("setData",N)},{immediate:!0,deep:!0}),lr(()=>{e.expandRowKeys&&o.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(N,W)=>{const{pixelX:re,pixelY:ie}=W;Math.abs(re)>=Math.abs(ie)&&(r.refs.bodyWrapper.scrollLeft+=W.pixelX/5)},w=T(()=>e.height||e.maxHeight||o.states.fixedColumns.value.length>0||o.states.rightFixedColumns.value.length>0),x=T(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),M=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(F)};vt(async()=>{await et(),o.updateColumns(),K(),requestAnimationFrame(M);const N=r.vnode.el,W=r.refs.headerWrapper;e.flexible&&N&&N.parentElement&&(N.parentElement.style.minWidth="0"),c.value={width:p.value=N.offsetWidth,height:N.offsetHeight,headerHeight:e.showHeader&&W?W.offsetHeight:null},o.states.columns.value.forEach(re=>{re.filteredValue&&re.filteredValue.length&&r.store.commit("filterChange",{column:re,values:re.filteredValue,silent:!0})}),r.$ready=!0});const E=(N,W)=>{if(!N)return;const re=Array.from(N.classList).filter(ie=>!ie.startsWith("is-scrolling-"));re.push(t.scrollX.value?W:"is-scrolling-none"),N.className=re.join(" ")},I=N=>{const{tableWrapper:W}=r.refs;E(W,N)},O=N=>{const{tableWrapper:W}=r.refs;return!!(W&&W.classList.contains(N))},F=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ge="is-scrolling-none";O(ge)||I(ge);return}const N=r.refs.scrollBarRef.wrapRef;if(!N)return;const{scrollLeft:W,offsetWidth:re,scrollWidth:ie}=N,{headerWrapper:se,footerWrapper:ve}=r.refs;se&&(se.scrollLeft=W),ve&&(ve.scrollLeft=W);const le=ie-re-1;W>=le?I("is-scrolling-right"):I(W===0?"is-scrolling-left":"is-scrolling-middle")},K=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&eo(r.refs.scrollBarRef.wrapRef,"scroll",F,{passive:!0}),e.fit?jo(r.vnode.el,R):eo(window,"resize",R),jo(r.refs.bodyWrapper,()=>{var N,W;R(),(W=(N=r.refs)==null?void 0:N.scrollBarRef)==null||W.update()}))},R=()=>{var N,W,re,ie;const se=r.vnode.el;if(!r.$ready||!se)return;let ve=!1;const{width:le,height:ge,headerHeight:_e}=c.value,me=p.value=se.offsetWidth;le!==me&&(ve=!0);const Be=se.offsetHeight;(e.height||w.value)&&ge!==Be&&(ve=!0);const ye=e.tableLayout==="fixed"?r.refs.headerWrapper:(N=r.refs.tableHeaderRef)==null?void 0:N.$el;e.showHeader&&(ye==null?void 0:ye.offsetHeight)!==_e&&(ve=!0),f.value=((W=r.refs.tableWrapper)==null?void 0:W.scrollHeight)||0,m.value=(ye==null?void 0:ye.scrollHeight)||0,h.value=((re=r.refs.footerWrapper)==null?void 0:re.offsetHeight)||0,_.value=((ie=r.refs.appendWrapper)==null?void 0:ie.offsetHeight)||0,v.value=f.value-m.value-h.value-_.value,ve&&(c.value={width:me,height:Be,headerHeight:e.showHeader&&(ye==null?void 0:ye.offsetHeight)||0},M())},D=Eo(),j=T(()=>{const{bodyWidth:N,scrollY:W,gutterWidth:re}=t;return N.value?`${N.value-(W.value?re:0)}px`:""}),Z=T(()=>e.maxHeight?"fixed":e.tableLayout),Q=T(()=>{if(e.data&&e.data.length)return null;let N="100%";e.height&&v.value&&(N=`${v.value}px`);const W=p.value;return{width:W?`${W}px`:"",height:N}}),J=T(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),L=T(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+h.value}px)`}:{maxHeight:`${e.maxHeight-m.value-h.value}px`}:{});return{isHidden:l,renderExpanded:n,setDragVisible:i,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:y,tableSize:D,emptyBlockStyle:Q,handleFixedMousewheel:(N,W)=>{const re=r.refs.bodyWrapper;if(Math.abs(W.spinY)>0){const ie=re.scrollTop;W.pixelY<0&&ie!==0&&N.preventDefault(),W.pixelY>0&&re.scrollHeight-re.clientHeight>ie&&N.preventDefault(),re.scrollTop+=Math.ceil(W.pixelY/5)}else re.scrollLeft+=Math.ceil(W.pixelX/5)},resizeProxyVisible:a,bodyWidth:j,resizeState:c,doLayout:M,tableBodyStyles:x,tableLayout:Z,scrollbarViewStyle:d,tableInnerStyle:J,scrollbarStyle:L}}function fle(e){const t=V(),o=()=>{const l=e.vnode.el.querySelector(".hidden-columns"),n={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(i=>i())}),t.value.observe(l,n)};vt(()=>{o()}),cn(()=>{var r;(r=t.value)==null||r.disconnect()})}var hle={data:{type:Array,default:()=>[]},size:No,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function Ty(e){const t=e.tableLayout==="auto";let o=e.columns||[];t&&o.every(l=>l.width===void 0)&&(o=[]);const r=l=>{const n={key:`${e.tableLayout}_${l.id}`,style:{},name:void 0};return t?n.style={width:`${l.width}px`}:n.name=l.id,n};return rt("colgroup",{},o.map(l=>rt("col",r(l))))}Ty.props=["columns","tableLayout"];const vle=()=>{const e=V(),t=(n,a)=>{const i=e.value;i&&i.scrollTo(n,a)},o=(n,a)=>{const i=e.value;i&&ct(a)&&["Top","Left"].includes(n)&&i[`setScroll${n}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:n=>o("Top",n),setScrollLeft:n=>o("Left",n)}};let mle=1;const gle=B({name:"ElTable",directives:{Mousewheel:AU},components:{TableHeader:rle,TableBody:ile,TableFooter:ule,ElScrollbar:Kl,hColgroup:Ty},props:hle,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Nt(),o=Ie("table"),r=_t();zt(gl,r);const l=jre(r,e);r.store=l;const n=new Wre({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=n;const a=T(()=>(l.states.data.value||[]).length===0),{setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:v,clearSort:m,sort:h}=dle(l),{isHidden:_,renderExpanded:g,setDragVisible:y,isGroup:w,handleMouseLeave:x,handleHeaderFooterMousewheel:M,tableSize:E,emptyBlockStyle:I,handleFixedMousewheel:O,resizeProxyVisible:F,bodyWidth:K,resizeState:R,doLayout:D,tableBodyStyles:j,tableLayout:Z,scrollbarViewStyle:Q,tableInnerStyle:J,scrollbarStyle:L}=ple(e,n,l,r),{scrollBarRef:X,scrollTo:N,setScrollLeft:W,setScrollTop:re}=vle(),ie=Zo(D,50),se=`${o.namespace.value}-table_${mle++}`;r.tableId=se,r.state={isGroup:w,resizeState:R,doLayout:D,debouncedUpdateLayout:ie};const ve=T(()=>e.sumText||t("el.table.sumText")),le=T(()=>e.emptyText||t("el.table.emptyText"));return fle(r),{ns:o,layout:n,store:l,handleHeaderFooterMousewheel:M,handleMouseLeave:x,tableId:se,tableSize:E,isHidden:_,isEmpty:a,renderExpanded:g,resizeProxyVisible:F,resizeState:R,isGroup:w,bodyWidth:K,tableBodyStyles:j,emptyBlockStyle:I,debouncedUpdateLayout:ie,handleFixedMousewheel:O,setCurrentRow:i,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:p,toggleAllSelection:f,toggleRowExpansion:v,clearSort:m,doLayout:D,sort:h,t,setDragVisible:y,context:r,computedSumText:ve,computedEmptyText:le,tableLayout:Z,scrollbarViewStyle:Q,tableInnerStyle:J,scrollbarStyle:L,scrollBarRef:X,scrollTo:N,setScrollLeft:W,setScrollTop:re}}}),ble=["data-prefix"],_le={ref:"hiddenColumns",class:"hidden-columns"};function wle(e,t,o,r,l,n){const a=ot("hColgroup"),i=ot("table-header"),c=ot("table-body"),u=ot("table-footer"),d=ot("el-scrollbar"),p=ji("mousewheel");return b(),z("div",{ref:"tableWrapper",class:P([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...f)=>e.handleMouseLeave&&e.handleMouseLeave(...f))},[$("div",{class:P(e.ns.e("inner-wrapper")),style:Qe(e.tableInnerStyle)},[$("div",_le,[be(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ht((b(),z("div",{key:0,ref:"headerWrapper",class:P(e.ns.e("header-wrapper"))},[$("table",{ref:"tableHeader",class:P(e.ns.e("header")),style:Qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),oe(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[p,e.handleHeaderFooterMousewheel]]):ue("v-if",!0),$("div",{ref:"bodyWrapper",class:P(e.ns.e("body-wrapper"))},[oe(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ne(()=>[$("table",{ref:"tableBody",class:P(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(b(),de(i,{key:0,ref:"tableHeaderRef",class:P(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):ue("v-if",!0),oe(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(b(),de(u,{key:1,class:P(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ue("v-if",!0)],6),e.isEmpty?(b(),z("div",{key:0,ref:"emptyBlock",style:Qe(e.emptyBlockStyle),class:P(e.ns.e("empty-block"))},[$("span",{class:P(e.ns.e("empty-text"))},[be(e.$slots,"empty",{},()=>[$t(ze(e.computedEmptyText),1)])],2)],6)):ue("v-if",!0),e.$slots.append?(b(),z("div",{key:1,ref:"appendWrapper",class:P(e.ns.e("append-wrapper"))},[be(e.$slots,"append")],2)):ue("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?ht((b(),z("div",{key:1,ref:"footerWrapper",class:P(e.ns.e("footer-wrapper"))},[$("table",{class:P(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Qe(e.tableBodyStyles)},[oe(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),oe(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Pt,!e.isEmpty],[p,e.handleHeaderFooterMousewheel]]):ue("v-if",!0),e.border||e.isGroup?(b(),z("div",{key:2,class:P(e.ns.e("border-left-patch"))},null,2)):ue("v-if",!0)],6),ht($("div",{ref:"resizeProxy",class:P(e.ns.e("column-resize-proxy"))},null,2),[[Pt,e.resizeProxyVisible]])],46,ble)}var yle=Fe(gle,[["render",wle],["__file","table.vue"]]);const xle={selection:"table-column--selection",expand:"table__expand-column"},kle={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Cle=e=>xle[e]||"",Sle={selection:{renderHeader({store:e,column:t}){function o(){return e.states.data.value&&e.states.data.value.length===0}return rt(Nr,{disabled:o(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:o,$index:r}){return rt(Nr,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:o.states.tableSize.value,onChange:()=>{o.commit("rowSelectedChanged",e)},onClick:l=>l.stopPropagation(),modelValue:o.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let o=t+1;const r=e.index;return typeof r=="number"?o=t+r:typeof r=="function"&&(o=r(t)),rt("div",{},[o])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:o}){const{ns:r}=t,l=[r.e("expand-icon")];return o&&l.push(r.em("expand-icon","expanded")),rt("div",{class:l,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[rt(Je,null,{default:()=>[rt(Ko)]})]})},sortable:!1,resizable:!1}};function Ele({row:e,column:t,$index:o}){var r;const l=t.property,n=l&&zu(e,l).value;return t&&t.formatter?t.formatter(e,t,n,o):((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||""}function $le({row:e,treeNode:t,store:o},r=!1){const{ns:l}=o;if(!t)return r?[rt("span",{class:l.e("placeholder")})]:null;const n=[],a=function(i){i.stopPropagation(),!t.loading&&o.loadOrToggle(e)};if(t.indent&&n.push(rt("span",{class:l.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const i=[l.e("expand-icon"),t.expanded?l.em("expand-icon","expanded"):""];let c=Ko;t.loading&&(c=Rl),n.push(rt("div",{class:i,onClick:a},{default:()=>[rt(Je,{class:{[l.is("loading")]:t.loading}},{default:()=>[rt(c)]})]}))}else n.push(rt("span",{class:l.e("placeholder")}));return n}function zy(e,t){return e.reduce((o,r)=>(o[r]=r,o),t)}function Tle(e,t){const o=_t();return{registerComplexWatchers:()=>{const n=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},i=zy(n,a);Object.keys(i).forEach(c=>{const u=a[c];It(t,u)&&Te(()=>t[u],d=>{let p=d;u==="width"&&c==="realWidth"&&(p=nv(d)),u==="minWidth"&&c==="realMinWidth"&&(p=_y(d)),o.columnConfig.value[u]=p,o.columnConfig.value[c]=p;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const n=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},i=zy(n,a);Object.keys(i).forEach(c=>{const u=a[c];It(t,u)&&Te(()=>t[u],d=>{o.columnConfig.value[c]=d})})}}}function zle(e,t,o){const r=_t(),l=V(""),n=V(!1),a=V(),i=V(),c=Ie("table");lr(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),lr(()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:a.value,i.value});const u=T(()=>{let x=r.vnode.vParent||r.parent;for(;x&&!x.tableId&&!x.columnId;)x=x.vnode.vParent||x.parent;return x}),d=T(()=>{const{store:x}=r.parent;if(!x)return!1;const{treeData:M}=x.states,E=M.value;return E&&Object.keys(E).length>0}),p=V(nv(e.width)),f=V(_y(e.minWidth)),v=x=>(p.value&&(x.width=p.value),f.value&&(x.minWidth=f.value),!p.value&&f.value&&(x.width=void 0),x.minWidth||(x.minWidth=80),x.realWidth=Number(x.width===void 0?x.minWidth:x.width),x),m=x=>{const M=x.type,E=Sle[M]||{};Object.keys(E).forEach(O=>{const F=E[O];O!=="className"&&F!==void 0&&(x[O]=F)});const I=Cle(M);if(I){const O=`${s(c.namespace)}-${I}`;x.className=x.className?`${x.className} ${O}`:O}return x},h=x=>{Array.isArray(x)?x.forEach(E=>M(E)):M(x);function M(E){var I;((I=E==null?void 0:E.type)==null?void 0:I.name)==="ElTableColumn"&&(E.vParent=r)}};return{columnId:l,realAlign:a,isSubColumn:n,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:v,setColumnForcedProps:m,setColumnRenders:x=>{e.renderHeader||x.type!=="selection"&&(x.renderHeader=E=>(r.columnConfig.value.label,be(t,"header",E,()=>[x.label])));let M=x.renderCell;return x.type==="expand"?(x.renderCell=E=>rt("div",{class:"cell"},[M(E)]),o.value.renderExpanded=E=>t.default?t.default(E):t.default):(M=M||Ele,x.renderCell=E=>{let I=null;if(t.default){const j=t.default(E);I=j.some(Z=>Z.type!==Yo)?j:M(E)}else I=M(E);const{columns:O}=o.value.store.states,F=O.value.findIndex(j=>j.type==="default"),K=d.value&&E.cellIndex===F,R=$le(E,K),D={class:"cell",style:{}};return x.showOverflowTooltip&&(D.class=`${D.class} ${s(c.namespace)}-tooltip`,D.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),h(I),rt("div",D,[R,I])}),x},getPropsData:(...x)=>x.reduce((M,E)=>(Array.isArray(E)&&E.forEach(I=>{M[I]=e[I]}),M),{}),getColumnElIndex:(x,M)=>Array.prototype.indexOf.call(x,M),updateColumnOrder:()=>{o.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var Mle={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let Ale=1;var My=B({name:"ElTableColumn",components:{ElCheckbox:Nr},props:Mle,setup(e,{slots:t}){const o=_t(),r=V({}),l=T(()=>{let w=o.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:n,registerComplexWatchers:a}=Tle(l,e),{columnId:i,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:f,setColumnRenders:v,getPropsData:m,getColumnElIndex:h,realAlign:_,updateColumnOrder:g}=zle(e,t,l),y=d.value;i.value=`${y.tableId||y.columnId}_column_${Ale++}`,jc(()=>{c.value=l.value!==y;const w=e.type||"default",x=e.sortable===""?!0:e.sortable,M=ko(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,E={...kle[w],id:i.value,type:w,property:e.prop||e.property,align:_,headerAlign:u,showOverflowTooltip:M,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:x,index:e.index,rawColumnKey:o.vnode.key};let R=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);R=Ore(E,R),R=Pre(v,p,f)(R),r.value=R,n(),a()}),vt(()=>{var w;const x=d.value,M=c.value?x.vnode.el.children:(w=x.refs.hiddenColumns)==null?void 0:w.children,E=()=>h(M||[],o.vnode.el);r.value.getColumnIndex=E,E()>-1&&l.value.store.commit("insertColumn",r.value,c.value?x.columnConfig.value:null,g)}),Zt(()=>{l.value.store.commit("removeColumn",r.value,c.value?y.columnConfig.value:null,g)}),o.columnId=i.value,o.columnConfig=r},render(){var e,t,o;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),l=[];if(Array.isArray(r))for(const a of r)((o=a.type)==null?void 0:o.name)==="ElTableColumn"||a.shapeFlag&2?l.push(a):a.type===Xe&&Array.isArray(a.children)&&a.children.forEach(i=>{(i==null?void 0:i.patchFlag)!==1024&&!ft(i==null?void 0:i.children)&&l.push(i)});return rt("div",l)}catch{return rt("div",[])}}});const Ole=xt(yle,{TableColumn:My}),Ile=fo(My);var tc=(e=>(e.ASC="asc",e.DESC="desc",e))(tc||{}),oc=(e=>(e.CENTER="center",e.RIGHT="right",e))(oc||{}),Ay=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ay||{});const uv={asc:"desc",desc:"asc"},rc=Symbol("placeholder"),Ple=(e,t,o)=>{var r;const l={flexGrow:0,flexShrink:0,...o?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};o||(l.flexShrink=1);const n={...(r=e.style)!=null?r:{},...l,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(n.maxWidth=e.maxWidth),e.minWidth&&(n.minWidth=e.minWidth)),n};function Ble(e,t,o){const r=T(()=>s(t).filter(h=>!h.hidden)),l=T(()=>s(r).filter(h=>h.fixed==="left"||h.fixed===!0)),n=T(()=>s(r).filter(h=>h.fixed==="right")),a=T(()=>s(r).filter(h=>!h.fixed)),i=T(()=>{const h=[];return s(l).forEach(_=>{h.push({..._,placeholderSign:rc})}),s(a).forEach(_=>{h.push(_)}),s(n).forEach(_=>{h.push({..._,placeholderSign:rc})}),h}),c=T(()=>s(l).length||s(n).length),u=T(()=>s(t).reduce((_,g)=>(_[g.key]=Ple(g,s(o),e.fixed),_),{})),d=T(()=>s(r).reduce((h,_)=>h+_.width,0)),p=h=>s(t).find(_=>_.key===h),f=h=>s(u)[h],v=(h,_)=>{h.width=_};function m(h){var _;const{key:g}=h.currentTarget.dataset;if(!g)return;const{sortState:y,sortBy:w}=e;let x=tc.ASC;Ct(y)?x=uv[y[g]]:x=uv[w.order],(_=e.onColumnSort)==null||_.call(e,{column:p(g),key:g,order:x})}return{columns:t,columnsStyles:u,columnsTotalWidth:d,fixedColumnsOnLeft:l,fixedColumnsOnRight:n,hasFixedColumns:c,mainColumns:i,normalColumns:a,visibleColumns:r,getColumn:p,getColumnStyle:f,updateColumnWidth:v,onColumnSorted:m}}const Nle=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:l})=>{const n=V({scrollLeft:0,scrollTop:0});function a(v){var m,h,_;const{scrollTop:g}=v;(m=t.value)==null||m.scrollTo(v),(h=o.value)==null||h.scrollToTop(g),(_=r.value)==null||_.scrollToTop(g)}function i(v){n.value=v,a(v)}function c(v){n.value.scrollTop=v,a(s(n))}function u(v){var m,h;n.value.scrollLeft=v,(h=(m=t.value)==null?void 0:m.scrollTo)==null||h.call(m,s(n))}function d(v){var m;i(v),(m=e.onScroll)==null||m.call(e,v)}function p({scrollTop:v}){const{scrollTop:m}=s(n);v!==m&&c(v)}function f(v,m="auto"){var h;(h=t.value)==null||h.scrollToRow(v,m)}return Te(()=>s(n).scrollTop,(v,m)=>{v>m&&l()}),{scrollPos:n,scrollTo:i,scrollToLeft:u,scrollToTop:c,scrollToRow:f,onScroll:d,onVerticalScroll:p}},Lle=(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r})=>{const l=_t(),{emit:n}=l,a=Yt(!1),i=Yt(null),c=V(e.defaultExpandedRowKeys||[]),u=V(-1),d=Yt(null),p=V({}),f=V({}),v=Yt({}),m=Yt({}),h=Yt({}),_=T(()=>ct(e.estimatedRowHeight));function g(O){var F;(F=e.onRowsRendered)==null||F.call(e,O),O.rowCacheEnd>s(u)&&(u.value=O.rowCacheEnd)}function y({hovered:O,rowKey:F}){i.value=O?F:null}function w({expanded:O,rowData:F,rowIndex:K,rowKey:R}){var D,j;const Z=[...s(c)],Q=Z.indexOf(R);O?Q===-1&&Z.push(R):Q>-1&&Z.splice(Q,1),c.value=Z,n("update:expandedRowKeys",Z),(D=e.onRowExpand)==null||D.call(e,{expanded:O,rowData:F,rowIndex:K,rowKey:R}),(j=e.onExpandedRowsChange)==null||j.call(e,Z)}const x=Zo(()=>{var O,F,K,R;a.value=!0,p.value={...s(p),...s(f)},M(s(d),!1),f.value={},d.value=null,(O=t.value)==null||O.forceUpdate(),(F=o.value)==null||F.forceUpdate(),(K=r.value)==null||K.forceUpdate(),(R=l.proxy)==null||R.$forceUpdate(),a.value=!1},0);function M(O,F=!1){s(_)&&[t,o,r].forEach(K=>{const R=s(K);R&&R.resetAfterRowIndex(O,F)})}function E(O,F,K){const R=s(d);(R===null||R>K)&&(d.value=K),f.value[O]=F}function I({rowKey:O,height:F,rowIndex:K},R){R?R===Ay.RIGHT?h.value[O]=F:v.value[O]=F:m.value[O]=F;const D=Math.max(...[v,h,m].map(j=>j.value[O]||0));s(p)[O]!==D&&(E(O,D,K),x())}return{hoveringRowKey:i,expandedRowKeys:c,lastRenderedRowIndex:u,isDynamic:_,isResetting:a,rowHeights:p,resetAfterIndex:M,onRowExpanded:w,onRowHovered:y,onRowsRendered:g,onRowHeightChange:I}},Rle=(e,{expandedRowKeys:t,lastRenderedRowIndex:o,resetAfterIndex:r})=>{const l=V({}),n=T(()=>{const i={},{data:c,rowKey:u}=e,d=s(t);if(!d||!d.length)return c;const p=[],f=new Set;d.forEach(m=>f.add(m));let v=c.slice();for(v.forEach(m=>i[m[u]]=0);v.length>0;){const m=v.shift();p.push(m),f.has(m[u])&&Array.isArray(m.children)&&m.children.length>0&&(v=[...m.children,...v],m.children.forEach(h=>i[h[u]]=i[m[u]]+1))}return l.value=i,p}),a=T(()=>{const{data:i,expandColumnKey:c}=e;return c?s(n):i});return Te(a,(i,c)=>{i!==c&&(o.value=-1,r(0,!0))}),{data:a,depthMap:l}},Vle=(e,t)=>e+t,Nd=e=>Ge(e)?e.reduce(Vle,0):e,_a=(e,t,o={})=>ut(e)?e(t):e??o,Mn=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=bo(e[t])}),e),Oy=e=>Qt(e)?t=>rt(e,t):e,Hle=(e,{columnsTotalWidth:t,data:o,fixedColumnsOnLeft:r,fixedColumnsOnRight:l})=>{const n=T(()=>{const{fixed:w,width:x,vScrollbarSize:M}=e,E=x-M;return w?Math.max(Math.round(s(t)),E):E}),a=T(()=>s(n)+(e.fixed?e.vScrollbarSize:0)),i=T(()=>{const{height:w=0,maxHeight:x=0,footerHeight:M,hScrollbarSize:E}=e;if(x>0){const I=s(m),O=s(c),K=s(v)+I+O+E;return Math.min(K,x-M)}return w-M}),c=T(()=>{const{rowHeight:w,estimatedRowHeight:x}=e,M=s(o);return ct(x)?M.length*x:M.length*w}),u=T(()=>{const{maxHeight:w}=e,x=s(i);if(ct(w)&&w>0)return x;const M=s(c)+s(v)+s(m);return Math.min(x,M)}),d=w=>w.width,p=T(()=>Nd(s(r).map(d))),f=T(()=>Nd(s(l).map(d))),v=T(()=>Nd(e.headerHeight)),m=T(()=>{var w;return(((w=e.fixedData)==null?void 0:w.length)||0)*e.rowHeight}),h=T(()=>s(i)-s(v)-s(m)),_=T(()=>{const{style:w={},height:x,width:M}=e;return Mn({...w,height:x,width:M})}),g=T(()=>Mn({height:e.footerHeight})),y=T(()=>({top:bo(s(v)),bottom:bo(e.footerHeight),width:bo(e.width)}));return{bodyWidth:n,fixedTableHeight:u,mainTableHeight:i,leftTableWidth:p,rightTableWidth:f,headerWidth:a,rowsHeight:c,windowHeight:h,footerHeight:g,emptyStyle:y,rootStyle:_,headerHeight:v}},Fle=e=>{const t=V(),o=V(0),r=V(0);let l;return vt(()=>{l=jo(t,([n])=>{const{width:a,height:i}=n.contentRect,{paddingLeft:c,paddingRight:u,paddingTop:d,paddingBottom:p}=getComputedStyle(n.target),f=Number.parseInt(c)||0,v=Number.parseInt(u)||0,m=Number.parseInt(d)||0,h=Number.parseInt(p)||0;o.value=a-f-v,r.value=i-m-h}).stop}),Zt(()=>{l==null||l()}),Te([o,r],([n,a])=>{var i;(i=e.onResize)==null||i.call(e,{width:n,height:a})}),{sizer:t,width:o,height:r}};function Dle(e){const t=V(),o=V(),r=V(),{columns:l,columnsStyles:n,columnsTotalWidth:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,hasFixedColumns:u,mainColumns:d,onColumnSorted:p}=Ble(e,so(e,"columns"),so(e,"fixed")),{scrollTo:f,scrollToLeft:v,scrollToTop:m,scrollToRow:h,onScroll:_,onVerticalScroll:g,scrollPos:y}=Nle(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r,onMaybeEndReached:te}),{expandedRowKeys:w,hoveringRowKey:x,lastRenderedRowIndex:M,isDynamic:E,isResetting:I,rowHeights:O,resetAfterIndex:F,onRowExpanded:K,onRowHeightChange:R,onRowHovered:D,onRowsRendered:j}=Lle(e,{mainTableRef:t,leftTableRef:o,rightTableRef:r}),{data:Z,depthMap:Q}=Rle(e,{expandedRowKeys:w,lastRenderedRowIndex:M,resetAfterIndex:F}),{bodyWidth:J,fixedTableHeight:L,mainTableHeight:X,leftTableWidth:N,rightTableWidth:W,headerWidth:re,rowsHeight:ie,windowHeight:se,footerHeight:ve,emptyStyle:le,rootStyle:ge,headerHeight:_e}=Hle(e,{columnsTotalWidth:a,data:Z,fixedColumnsOnLeft:i,fixedColumnsOnRight:c}),me=Yt(!1),Be=V(),ye=T(()=>{const ce=s(Z).length===0;return Ge(e.fixedData)?e.fixedData.length===0&&ce:ce});function Me(ce){const{estimatedRowHeight:we,rowHeight:Ae,rowKey:Oe}=e;return we?s(O)[s(Z)[ce][Oe]]||we:Ae}function te(){const{onEndReached:ce}=e;if(!ce)return;const{scrollTop:we}=s(y),Ae=s(ie),Oe=s(se),xe=Ae-(we+Oe)+e.hScrollbarSize;s(M)>=0&&Ae===we+s(X)-s(_e)&&ce(xe)}return Te(()=>e.expandedRowKeys,ce=>w.value=ce,{deep:!0}),{columns:l,containerRef:Be,mainTableRef:t,leftTableRef:o,rightTableRef:r,isDynamic:E,isResetting:I,isScrolling:me,hoveringRowKey:x,hasFixedColumns:u,columnsStyles:n,columnsTotalWidth:a,data:Z,expandedRowKeys:w,depthMap:Q,fixedColumnsOnLeft:i,fixedColumnsOnRight:c,mainColumns:d,bodyWidth:J,emptyStyle:le,rootStyle:ge,headerWidth:re,footerHeight:ve,mainTableHeight:X,fixedTableHeight:L,leftTableWidth:N,rightTableWidth:W,showEmpty:ye,getRowHeight:Me,onColumnSorted:p,onRowHovered:D,onRowExpanded:K,onRowsRendered:j,onRowHeightChange:R,scrollTo:f,scrollToLeft:v,scrollToTop:m,scrollToRow:h,onScroll:_,onVerticalScroll:g}}const dv=Symbol("tableV2"),Iy=String,lc={type:pe(Array),required:!0},pv={type:pe(Array)},Py={...pv,required:!0},jle=String,By={type:pe(Array),default:()=>ro([])},wa={type:Number,required:!0},Ny={type:pe([String,Number,Symbol]),default:"id"},Ly={type:pe(Object)},ya=He({class:String,columns:lc,columnsStyles:{type:pe(Object),required:!0},depth:Number,expandColumnKey:jle,estimatedRowHeight:{...ma.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:pe(Function)},onRowHover:{type:pe(Function)},onRowHeightChange:{type:pe(Function)},rowData:{type:pe(Object),required:!0},rowEventHandlers:{type:pe(Object)},rowIndex:{type:Number,required:!0},rowKey:Ny,style:{type:pe(Object)}}),fv={type:Number,required:!0},hv=He({class:String,columns:lc,fixedHeaderData:{type:pe(Array)},headerData:{type:pe(Array),required:!0},headerHeight:{type:pe([Number,Array]),default:50},rowWidth:fv,rowHeight:{type:Number,default:50},height:fv,width:fv}),Ld=He({columns:lc,data:Py,fixedData:pv,estimatedRowHeight:ya.estimatedRowHeight,width:wa,height:wa,headerWidth:wa,headerHeight:hv.headerHeight,bodyWidth:wa,rowHeight:wa,cache:jw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ma.scrollbarAlwaysOn,scrollbarStartGap:ma.scrollbarStartGap,scrollbarEndGap:ma.scrollbarEndGap,class:Iy,style:Ly,containerStyle:Ly,getRowHeight:{type:pe(Function),required:!0},rowKey:ya.rowKey,onRowsRendered:{type:pe(Function)},onScroll:{type:pe(Function)}}),Kle=He({cache:Ld.cache,estimatedRowHeight:ya.estimatedRowHeight,rowKey:Ny,headerClass:{type:pe([String,Function])},headerProps:{type:pe([Object,Function])},headerCellProps:{type:pe([Object,Function])},headerHeight:hv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:pe([String,Function])},rowProps:{type:pe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:pe([Object,Function])},columns:lc,data:Py,dataGetter:{type:pe(Function)},fixedData:pv,expandColumnKey:ya.expandColumnKey,expandedRowKeys:By,defaultExpandedRowKeys:By,class:Iy,fixed:Boolean,style:{type:pe(Object)},width:wa,height:wa,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ma.hScrollbarSize,vScrollbarSize:ma.vScrollbarSize,scrollbarAlwaysOn:Uw.alwaysOn,sortBy:{type:pe(Object),default:()=>({})},sortState:{type:pe(Object),default:void 0},onColumnSort:{type:pe(Function)},onExpandedRowsChange:{type:pe(Function)},onEndReached:{type:pe(Function)},onRowExpand:ya.onRowExpand,onScroll:Ld.onScroll,onRowsRendered:Ld.onRowsRendered,rowEventHandlers:ya.rowEventHandlers}),vv=(e,{slots:t})=>{var o;const{cellData:r,style:l}=e,n=((o=r==null?void 0:r.toString)==null?void 0:o.call(r))||"",a=be(t,"default",e,()=>[n]);return oe("div",{class:e.class,title:n,style:l},[a])};vv.displayName="ElTableV2Cell",vv.inheritAttrs=!1;const mv=(e,{slots:t})=>be(t,"default",e,()=>{var o,r;return[oe("div",{class:e.class,title:(o=e.column)==null?void 0:o.title},[(r=e.column)==null?void 0:r.title])]});mv.displayName="ElTableV2HeaderCell",mv.inheritAttrs=!1;const Wle=He({class:String,columns:lc,columnsStyles:{type:pe(Object),required:!0},headerIndex:Number,style:{type:pe(Object)}}),Ule=B({name:"ElTableV2HeaderRow",props:Wle,setup(e,{slots:t}){return()=>{const{columns:o,columnsStyles:r,headerIndex:l,style:n}=e;let a=o.map((i,c)=>t.cell({columns:o,column:i,columnIndex:c,headerIndex:l,style:r[i.key]}));return t.header&&(a=t.header({cells:a.map(i=>Ge(i)&&i.length===1?i[0]:i),columns:o,headerIndex:l})),oe("div",{class:e.class,style:n,role:"row"},[a])}}}),qle=B({name:"ElTableV2Header",props:hv,setup(e,{slots:t,expose:o}){const r=Ie("table-v2"),l=V(),n=T(()=>Mn({width:e.width,height:e.height})),a=T(()=>Mn({width:e.rowWidth,height:e.height})),i=T(()=>Qn(s(e.headerHeight))),c=p=>{const f=s(l);et(()=>{f!=null&&f.scroll&&f.scroll({left:p})})},u=()=>{const p=r.e("fixed-header-row"),{columns:f,fixedHeaderData:v,rowHeight:m}=e;return v==null?void 0:v.map((h,_)=>{var g;const y=Mn({height:m,width:"100%"});return(g=t.fixed)==null?void 0:g.call(t,{class:p,columns:f,rowData:h,rowIndex:-(_+1),style:y})})},d=()=>{const p=r.e("dynamic-header-row"),{columns:f}=e;return s(i).map((v,m)=>{var h;const _=Mn({width:"100%",height:v});return(h=t.dynamic)==null?void 0:h.call(t,{class:p,columns:f,headerIndex:m,style:_})})};return o({scrollToLeft:c}),()=>{if(!(e.height<=0))return oe("div",{ref:l,class:e.class,style:s(n),role:"rowgroup"},[oe("div",{style:s(a),class:r.e("header")},[d(),u()])])}}}),Yle=e=>{const{isScrolling:t}=Le(dv),o=V(!1),r=V(),l=T(()=>ct(e.estimatedRowHeight)&&e.rowIndex>=0),n=(c=!1)=>{const u=s(r);if(!u)return;const{columns:d,onRowHeightChange:p,rowKey:f,rowIndex:v,style:m}=e,{height:h}=u.getBoundingClientRect();o.value=!0,et(()=>{if(c||h!==Number.parseInt(m.height)){const _=d[0],g=(_==null?void 0:_.placeholderSign)===rc;p==null||p({rowKey:f,height:h,rowIndex:v},_&&!g&&_.fixed)}})},a=T(()=>{const{rowData:c,rowIndex:u,rowKey:d,onRowHover:p}=e,f=e.rowEventHandlers||{},v={};return Object.entries(f).forEach(([m,h])=>{ut(h)&&(v[m]=_=>{h({event:_,rowData:c,rowIndex:u,rowKey:d})})}),p&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:h})=>{const _=v[m];v[m]=g=>{p({event:g,hovered:h,rowData:c,rowIndex:u,rowKey:d}),_==null||_(g)}}),v}),i=c=>{const{onRowExpand:u,rowData:d,rowIndex:p,rowKey:f}=e;u==null||u({expanded:c,rowData:d,rowIndex:p,rowKey:f})};return vt(()=>{s(l)&&n(!0)}),{isScrolling:t,measurable:l,measured:o,rowRef:r,eventHandlers:a,onExpand:i}},Gle=B({name:"ElTableV2TableRow",props:ya,setup(e,{expose:t,slots:o,attrs:r}){const{eventHandlers:l,isScrolling:n,measurable:a,measured:i,rowRef:c,onExpand:u}=Yle(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:p,expandColumnKey:f,depth:v,rowData:m,rowIndex:h,style:_}=e;let g=d.map((y,w)=>{const x=Ge(m.children)&&m.children.length>0&&y.key===f;return o.cell({column:y,columns:d,columnIndex:w,depth:v,style:p[y.key],rowData:m,rowIndex:h,isScrolling:s(n),expandIconProps:x?{rowData:m,rowIndex:h,onExpand:u}:void 0})});if(o.row&&(g=o.row({cells:g.map(y=>Ge(y)&&y.length===1?y[0]:y),style:_,columns:d,depth:v,rowData:m,rowIndex:h,isScrolling:s(n)})),s(a)){const{height:y,...w}=_||{},x=s(i);return oe("div",Et({ref:c,class:e.class,style:x?_:w,role:"row"},r,s(l)),[g])}return oe("div",Et(r,{ref:c,class:e.class,style:_,role:"row"},s(l)),[g])}}}),Xle=e=>{const{sortOrder:t}=e;return oe(Je,{size:14,class:e.class},{default:()=>[t===tc.ASC?oe(A3,null,null):oe(M3,null,null)]})},Zle=e=>{const{expanded:t,expandable:o,onExpand:r,style:l,size:n}=e,a={onClick:o?()=>r(!t):void 0,class:e.class};return oe(Je,Et(a,{size:n,style:l}),{default:()=>[oe(Ko,null,null)]})},Jle="ElTableV2Grid",Qle=e=>{const t=V(),o=V(),r=T(()=>{const{data:h,rowHeight:_,estimatedRowHeight:g}=e;if(!g)return h.length*_}),l=T(()=>{const{fixedData:h,rowHeight:_}=e;return((h==null?void 0:h.length)||0)*_}),n=T(()=>Nd(e.headerHeight)),a=T(()=>{const{height:h}=e;return Math.max(0,h-s(n)-s(l))}),i=T(()=>s(n)+s(l)>0),c=({data:h,rowIndex:_})=>h[_][e.rowKey];function u({rowCacheStart:h,rowCacheEnd:_,rowVisibleStart:g,rowVisibleEnd:y}){var w;(w=e.onRowsRendered)==null||w.call(e,{rowCacheStart:h,rowCacheEnd:_,rowVisibleStart:g,rowVisibleEnd:y})}function d(h,_){var g;(g=o.value)==null||g.resetAfterRowIndex(h,_)}function p(h,_){const g=s(t),y=s(o);!g||!y||(Ct(h)?(g.scrollToLeft(h.scrollLeft),y.scrollTo(h)):(g.scrollToLeft(h),y.scrollTo({scrollLeft:h,scrollTop:_})))}function f(h){var _;(_=s(o))==null||_.scrollTo({scrollTop:h})}function v(h,_){var g;(g=s(o))==null||g.scrollToItem(h,1,_)}function m(){var h,_;(h=s(o))==null||h.$forceUpdate(),(_=s(t))==null||_.$forceUpdate()}return{bodyRef:o,forceUpdate:m,fixedRowHeight:l,gridHeight:a,hasHeader:i,headerHeight:n,headerRef:t,totalHeight:r,itemKey:c,onItemRendered:u,resetAfterRowIndex:d,scrollTo:p,scrollToTop:f,scrollToRow:v}},gv=B({name:Jle,props:Ld,setup(e,{slots:t,expose:o}){const{ns:r}=Le(dv),{bodyRef:l,fixedRowHeight:n,gridHeight:a,hasHeader:i,headerRef:c,headerHeight:u,totalHeight:d,forceUpdate:p,itemKey:f,onItemRendered:v,resetAfterRowIndex:m,scrollTo:h,scrollToTop:_,scrollToRow:g}=Qle(e);o({forceUpdate:p,totalHeight:d,scrollTo:h,scrollToTop:_,scrollToRow:g,resetAfterRowIndex:m});const y=()=>e.bodyWidth;return()=>{const{cache:w,columns:x,data:M,fixedData:E,useIsScrolling:I,scrollbarAlwaysOn:O,scrollbarEndGap:F,scrollbarStartGap:K,style:R,rowHeight:D,bodyWidth:j,estimatedRowHeight:Z,headerWidth:Q,height:J,width:L,getRowHeight:X,onScroll:N}=e,W=ct(Z),re=W?Kte:Hte,ie=s(u);return oe("div",{role:"table",class:[r.e("table"),e.class],style:R},[oe(re,{ref:l,data:M,useIsScrolling:I,itemKey:f,columnCache:0,columnWidth:W?y:j,totalColumn:1,totalRow:M.length,rowCache:w,rowHeight:W?X:D,width:L,height:s(a),class:r.e("body"),role:"rowgroup",scrollbarStartGap:K,scrollbarEndGap:F,scrollbarAlwaysOn:O,onScroll:N,onItemRendered:v,perfMode:!1},{default:se=>{var ve;const le=M[se.rowIndex];return(ve=t.row)==null?void 0:ve.call(t,{...se,columns:x,rowData:le})}}),s(i)&&oe(qle,{ref:c,class:r.e("header-wrapper"),columns:x,headerData:M,headerHeight:e.headerHeight,fixedHeaderData:E,rowWidth:Q,rowHeight:D,width:L,height:Math.min(ie+s(n),J)},{dynamic:t.header,fixed:t.row})])}}});function ene(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const tne=(e,{slots:t})=>{const{mainTableRef:o,...r}=e;return oe(gv,Et({ref:o},r),ene(t)?t:{default:()=>[t]})};function one(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const rne=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:o,...r}=e;return oe(gv,Et({ref:o},r),one(t)?t:{default:()=>[t]})};function lne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const nne=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:o,...r}=e;return oe(gv,Et({ref:o},r),lne(t)?t:{default:()=>[t]})};function ane(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const ine=(e,{slots:t})=>{const{columns:o,columnsStyles:r,depthMap:l,expandColumnKey:n,expandedRowKeys:a,estimatedRowHeight:i,hasFixedColumns:c,hoveringRowKey:u,rowData:d,rowIndex:p,style:f,isScrolling:v,rowProps:m,rowClass:h,rowKey:_,rowEventHandlers:g,ns:y,onRowHovered:w,onRowExpanded:x}=e,M=_a(h,{columns:o,rowData:d,rowIndex:p},""),E=_a(m,{columns:o,rowData:d,rowIndex:p}),I=d[_],O=l[I]||0,F=!!n,K=p<0,R=[y.e("row"),M,{[y.e(`row-depth-${O}`)]:F&&p>=0,[y.is("expanded")]:F&&a.includes(I),[y.is("hovered")]:!v&&I===u,[y.is("fixed")]:!O&&K,[y.is("customized")]:!!t.row}],D=c?w:void 0,j={...E,columns:o,columnsStyles:r,class:R,depth:O,expandColumnKey:n,estimatedRowHeight:K?void 0:i,isScrolling:v,rowIndex:p,rowData:d,rowKey:I,rowEventHandlers:g,style:f};return oe(Gle,Et(j,{onRowHover:D,onRowExpand:x}),ane(t)?t:{default:()=>[t]})},bv=({columns:e,column:t,columnIndex:o,depth:r,expandIconProps:l,isScrolling:n,rowData:a,rowIndex:i,style:c,expandedRowKeys:u,ns:d,cellProps:p,expandColumnKey:f,indentSize:v,iconSize:m,rowKey:h},{slots:_})=>{const g=Mn(c);if(t.placeholderSign===rc)return oe("div",{class:d.em("row-cell","placeholder"),style:g},null);const{cellRenderer:y,dataKey:w,dataGetter:x}=t,M=ut(x)?x({columns:e,column:t,columnIndex:o,rowData:a,rowIndex:i}):oo(a,w??""),E=_a(p,{cellData:M,columns:e,column:t,columnIndex:o,rowIndex:i,rowData:a}),I={class:d.e("cell-text"),columns:e,column:t,columnIndex:o,cellData:M,isScrolling:n,rowData:a,rowIndex:i},O=Oy(y),F=O?O(I):be(_,"default",I,()=>[oe(vv,I,null)]),K=[d.e("row-cell"),t.class,t.align===oc.CENTER&&d.is("align-center"),t.align===oc.RIGHT&&d.is("align-right")],R=i>=0&&f&&t.key===f,D=i>=0&&u.includes(a[h]);let j;const Z=`margin-inline-start: ${r*v}px;`;return R&&(Ct(l)?j=oe(Zle,Et(l,{class:[d.e("expand-icon"),d.is("expanded",D)],size:m,expanded:D,style:Z,expandable:!0}),null):j=oe("div",{style:[Z,`width: ${m}px; height: ${m}px;`].join(" ")},null)),oe("div",Et({class:K,style:g},E,{role:"cell"}),[j,F])};bv.inheritAttrs=!1;function sne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const cne=({columns:e,columnsStyles:t,headerIndex:o,style:r,headerClass:l,headerProps:n,ns:a},{slots:i})=>{const c={columns:e,headerIndex:o},u=[a.e("header-row"),_a(l,c,""),{[a.is("customized")]:!!i.header}],d={..._a(n,c),columnsStyles:t,class:u,columns:e,headerIndex:o,style:r};return oe(Ule,d,sne(i)?i:{default:()=>[i]})},Ry=(e,{slots:t})=>{const{column:o,ns:r,style:l,onColumnSorted:n}=e,a=Mn(l);if(o.placeholderSign===rc)return oe("div",{class:r.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:i,headerClass:c,sortable:u}=o,d={...e,class:r.e("header-cell-text")},p=Oy(i),f=p?p(d):be(t,"default",d,()=>[oe(mv,d,null)]),{sortBy:v,sortState:m,headerCellProps:h}=e;let _,g;if(m){const x=m[o.key];_=!!uv[x],g=_?x:tc.ASC}else _=o.key===v.key,g=_?v.order:tc.ASC;const y=[r.e("header-cell"),_a(c,e,""),o.align===oc.CENTER&&r.is("align-center"),o.align===oc.RIGHT&&r.is("align-right"),u&&r.is("sortable")],w={..._a(h,e),onClick:o.sortable?n:void 0,class:y,style:a,"data-key":o.key};return oe("div",Et(w,{role:"columnheader"}),[f,u&&oe(Xle,{class:[r.e("sort-icon"),_&&r.is("sorting")],sortOrder:g},null)])},Vy=(e,{slots:t})=>{var o;return oe("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Vy.displayName="ElTableV2Footer";const Hy=(e,{slots:t})=>{const o=be(t,"default",{},()=>[oe(kw,null,null)]);return oe("div",{class:e.class,style:e.style},[o])};Hy.displayName="ElTableV2Empty";const Fy=(e,{slots:t})=>{var o;return oe("div",{class:e.class,style:e.style},[(o=t.default)==null?void 0:o.call(t)])};Fy.displayName="ElTableV2Overlay";function nc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Qt(e)}const une=B({name:"ElTableV2",props:Kle,setup(e,{slots:t,expose:o}){const r=Ie("table-v2"),{columnsStyles:l,fixedColumnsOnLeft:n,fixedColumnsOnRight:a,mainColumns:i,mainTableHeight:c,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:p,data:f,depthMap:v,expandedRowKeys:m,hasFixedColumns:h,hoveringRowKey:_,mainTableRef:g,leftTableRef:y,rightTableRef:w,isDynamic:x,isResetting:M,isScrolling:E,bodyWidth:I,emptyStyle:O,rootStyle:F,headerWidth:K,footerHeight:R,showEmpty:D,scrollTo:j,scrollToLeft:Z,scrollToTop:Q,scrollToRow:J,getRowHeight:L,onColumnSorted:X,onRowHeightChange:N,onRowHovered:W,onRowExpanded:re,onRowsRendered:ie,onScroll:se,onVerticalScroll:ve}=Dle(e);return o({scrollTo:j,scrollToLeft:Z,scrollToTop:Q,scrollToRow:J}),zt(dv,{ns:r,isResetting:M,hoveringRowKey:_,isScrolling:E}),()=>{const{cache:le,cellProps:ge,estimatedRowHeight:_e,expandColumnKey:me,fixedData:Be,headerHeight:ye,headerClass:Me,headerProps:te,headerCellProps:ce,sortBy:we,sortState:Ae,rowHeight:Oe,rowClass:xe,rowEventHandlers:Ne,rowKey:Se,rowProps:ke,scrollbarAlwaysOn:$e,indentSize:Pe,iconSize:Ye,useIsScrolling:Ke,vScrollbarSize:Ee,width:Ue}=e,nt=s(f),dt={cache:le,class:r.e("main"),columns:s(i),data:nt,fixedData:Be,estimatedRowHeight:_e,bodyWidth:s(I)+Ee,headerHeight:ye,headerWidth:s(K),height:s(c),mainTableRef:g,rowKey:Se,rowHeight:Oe,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,useIsScrolling:Ke,width:Ue,getRowHeight:L,onRowsRendered:ie,onScroll:se},gt=s(d),Y=s(u),C={cache:le,class:r.e("left"),columns:s(n),data:nt,estimatedRowHeight:_e,leftTableRef:y,rowHeight:Oe,bodyWidth:gt,headerWidth:gt,headerHeight:ye,height:Y,rowKey:Se,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,useIsScrolling:Ke,width:gt,getRowHeight:L,onScroll:ve},H=s(p)+Ee,ee={cache:le,class:r.e("right"),columns:s(a),data:nt,estimatedRowHeight:_e,rightTableRef:w,rowHeight:Oe,bodyWidth:H,headerWidth:H,headerHeight:ye,height:Y,rowKey:Se,scrollbarAlwaysOn:$e,scrollbarStartGap:2,scrollbarEndGap:Ee,width:H,style:`--${s(r.namespace)}-table-scrollbar-size: ${Ee}px`,useIsScrolling:Ke,getRowHeight:L,onScroll:ve},U=s(l),he={ns:r,depthMap:s(v),columnsStyles:U,expandColumnKey:me,expandedRowKeys:s(m),estimatedRowHeight:_e,hasFixedColumns:s(h),hoveringRowKey:s(_),rowProps:ke,rowClass:xe,rowKey:Se,rowEventHandlers:Ne,onRowHovered:W,onRowExpanded:re,onRowHeightChange:N},qe={cellProps:ge,expandColumnKey:me,indentSize:Pe,iconSize:Ye,rowKey:Se,expandedRowKeys:s(m),ns:r},st={ns:r,headerClass:Me,headerProps:te,columnsStyles:U},At={ns:r,sortBy:we,sortState:Ae,headerCellProps:ce,onColumnSorted:X},Mt={row:Ce=>oe(ine,Et(Ce,he),{row:t.row,cell:De=>{let lt;return t.cell?oe(bv,Et(De,qe,{style:U[De.column.key]}),nc(lt=t.cell(De))?lt:{default:()=>[lt]}):oe(bv,Et(De,qe,{style:U[De.column.key]}),null)}}),header:Ce=>oe(cne,Et(Ce,st),{header:t.header,cell:De=>{let lt;return t["header-cell"]?oe(Ry,Et(De,At,{style:U[De.column.key]}),nc(lt=t["header-cell"](De))?lt:{default:()=>[lt]}):oe(Ry,Et(De,At,{style:U[De.column.key]}),null)}})},Lt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:s(x)}],lo={class:r.e("footer"),style:s(R)};return oe("div",{class:Lt,style:s(F)},[oe(tne,dt,nc(Mt)?Mt:{default:()=>[Mt]}),oe(rne,C,nc(Mt)?Mt:{default:()=>[Mt]}),oe(nne,ee,nc(Mt)?Mt:{default:()=>[Mt]}),t.footer&&oe(Vy,lo,{default:t.footer}),s(D)&&oe(Hy,{class:r.e("empty"),style:s(O)},{default:t.empty}),t.overlay&&oe(Fy,{class:r.e("overlay")},{default:t.overlay})])}}}),dne=He({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:pe(Function)}}),pne=B({name:"ElAutoResizer",props:dne,setup(e,{slots:t}){const o=Ie("auto-resizer"),{height:r,width:l,sizer:n}=Fle(e),a={width:"100%",height:"100%"};return()=>{var i;return oe("div",{ref:n,class:o.b(),style:a},[(i=t.default)==null?void 0:i.call(t,{height:r.value,width:l.value})])}}}),fne=xt(une),hne=xt(pne),Rd=Symbol("tabsRootContextKey"),vne=He({tabs:{type:pe(Array),default:()=>ro([])}}),Dy="ElTabBar",mne=B({...B({name:Dy}),props:vne,setup(e,{expose:t}){const o=e,r=_t(),l=Le(Rd);l||So(Dy,"");const n=Ie("tabs"),a=V(),i=V(),c=()=>{let d=0,p=0;const f=["top","bottom"].includes(l.props.tabPosition)?"width":"height",v=f==="width"?"x":"y",m=v==="x"?"left":"top";return o.tabs.every(h=>{var _,g;const y=(g=(_=r.parent)==null?void 0:_.refs)==null?void 0:g[`tab-${h.uid}`];if(!y)return!1;if(!h.active)return!0;d=y[`offset${al(m)}`],p=y[`client${al(f)}`];const w=window.getComputedStyle(y);return f==="width"&&(o.tabs.length>1&&(p-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),d+=Number.parseFloat(w.paddingLeft)),!1}),{[f]:`${p}px`,transform:`translate${al(v)}(${d}px)`}},u=()=>i.value=c();return Te(()=>o.tabs,async()=>{await et(),u()},{immediate:!0}),jo(a,()=>u()),t({ref:a,update:u}),(d,p)=>(b(),z("div",{ref_key:"barRef",ref:a,class:P([s(n).e("active-bar"),s(n).is(s(l).props.tabPosition)]),style:Qe(i.value)},null,6))}});var gne=Fe(mne,[["__file","tab-bar.vue"]]);const bne=He({panes:{type:pe(Array),default:()=>ro([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),_ne={tabClick:(e,t,o)=>o instanceof Event,tabRemove:(e,t)=>t instanceof Event},jy="ElTabNav",wne=B({name:jy,props:bne,emits:_ne,setup(e,{expose:t,emit:o}){const r=_t(),l=Le(Rd);l||So(jy,"");const n=Ie("tabs"),a=j7(),i=oS(),c=V(),u=V(),d=V(),p=V(),f=V(!1),v=V(0),m=V(!1),h=V(!0),_=T(()=>["top","bottom"].includes(l.props.tabPosition)?"width":"height"),g=T(()=>({transform:`translate${_.value==="width"?"X":"Y"}(-${v.value}px)`})),y=()=>{if(!c.value)return;const F=c.value[`offset${al(_.value)}`],K=v.value;if(!K)return;const R=K>F?K-F:0;v.value=R},w=()=>{if(!c.value||!u.value)return;const F=u.value[`offset${al(_.value)}`],K=c.value[`offset${al(_.value)}`],R=v.value;if(F-R<=K)return;const D=F-R>K*2?R+K:F-K;v.value=D},x=async()=>{const F=u.value;if(!f.value||!d.value||!c.value||!F)return;await et();const K=d.value.querySelector(".is-active");if(!K)return;const R=c.value,D=["top","bottom"].includes(l.props.tabPosition),j=K.getBoundingClientRect(),Z=R.getBoundingClientRect(),Q=D?F.offsetWidth-Z.width:F.offsetHeight-Z.height,J=v.value;let L=J;D?(j.leftZ.right&&(L=J+j.right-Z.right)):(j.topZ.bottom&&(L=J+(j.bottom-Z.bottom))),L=Math.max(L,0),v.value=Math.min(L,Q)},M=()=>{var F;if(!u.value||!c.value)return;e.stretch&&((F=p.value)==null||F.update());const K=u.value[`offset${al(_.value)}`],R=c.value[`offset${al(_.value)}`],D=v.value;R0&&(v.value=0))},E=F=>{const K=F.code,{up:R,down:D,left:j,right:Z}=tt;if(![R,D,j,Z].includes(K))return;const Q=Array.from(F.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),J=Q.indexOf(F.target);let L;K===j||K===R?J===0?L=Q.length-1:L=J-1:J{h.value&&(m.value=!0)},O=()=>m.value=!1;return Te(a,F=>{F==="hidden"?h.value=!1:F==="visible"&&setTimeout(()=>h.value=!0,50)}),Te(i,F=>{F?setTimeout(()=>h.value=!0,50):h.value=!1}),jo(d,M),vt(()=>setTimeout(()=>x(),0)),Tl(()=>M()),t({scrollToActiveTab:x,removeFocus:O}),Te(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const F=f.value?[oe("span",{class:[n.e("nav-prev"),n.is("disabled",!f.value.prev)],onClick:y},[oe(Je,null,{default:()=>[oe(Nl,null,null)]})]),oe("span",{class:[n.e("nav-next"),n.is("disabled",!f.value.next)],onClick:w},[oe(Je,null,{default:()=>[oe(Ko,null,null)]})])]:null,K=e.panes.map((R,D)=>{var j,Z,Q,J;const L=R.uid,X=R.props.disabled,N=(Z=(j=R.props.name)!=null?j:R.index)!=null?Z:`${D}`,W=!X&&(R.isClosable||e.editable);R.index=`${D}`;const re=W?oe(Je,{class:"is-icon-close",onClick:ve=>o("tabRemove",R,ve)},{default:()=>[oe(Mr,null,null)]}):null,ie=((J=(Q=R.slots).label)==null?void 0:J.call(Q))||R.props.label,se=!X&&R.active?0:-1;return oe("div",{ref:`tab-${L}`,class:[n.e("item"),n.is(l.props.tabPosition),n.is("active",R.active),n.is("disabled",X),n.is("closable",W),n.is("focus",m.value)],id:`tab-${N}`,key:`tab-${L}`,"aria-controls":`pane-${N}`,role:"tab","aria-selected":R.active,tabindex:se,onFocus:()=>I(),onBlur:()=>O(),onClick:ve=>{O(),o("tabClick",R,N,ve)},onKeydown:ve=>{W&&(ve.code===tt.delete||ve.code===tt.backspace)&&o("tabRemove",R,ve)}},[ie,re])});return oe("div",{ref:d,class:[n.e("nav-wrap"),n.is("scrollable",!!f.value),n.is(l.props.tabPosition)]},[F,oe("div",{class:n.e("nav-scroll"),ref:c},[oe("div",{class:[n.e("nav"),n.is(l.props.tabPosition),n.is("stretch",e.stretch&&["top","bottom"].includes(l.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:E},[e.type?null:oe(gne,{ref:p,tabs:[...e.panes]},null),K])])])}}}),yne=He({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:pe(Function),default:()=>!0},stretch:Boolean}),_v=e=>ft(e)||ct(e),xne={[kt]:e=>_v(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>_v(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>_v(e),tabAdd:()=>!0},kne=B({name:"ElTabs",props:yne,emits:xne,setup(e,{emit:t,slots:o,expose:r}){var l,n;const a=Ie("tabs"),{children:i,addChild:c,removeChild:u}=L0(_t(),"ElTabPane"),d=V(),p=V((n=(l=e.modelValue)!=null?l:e.activeName)!=null?n:"0"),f=async(_,g=!1)=>{var y,w,x;if(!(p.value===_||ko(_)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,_,p.value))!==!1&&(p.value=_,g&&(t(kt,_),t("tabChange",_)),(x=(w=d.value)==null?void 0:w.removeFocus)==null||x.call(w))}catch{}},v=(_,g,y)=>{_.props.disabled||(f(g,!0),t("tabClick",_,y))},m=(_,g)=>{_.props.disabled||ko(_.props.name)||(g.stopPropagation(),t("edit",_.props.name,"remove"),t("tabRemove",_.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return cl({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},T(()=>!!e.activeName)),Te(()=>e.activeName,_=>f(_)),Te(()=>e.modelValue,_=>f(_)),Te(p,async()=>{var _;await et(),(_=d.value)==null||_.scrollToActiveTab()}),zt(Rd,{props:e,currentName:p,registerPane:c,unregisterPane:u}),r({currentName:p}),()=>{const _=o.addIcon,g=e.editable||e.addable?oe("span",{class:a.e("new-tab"),tabindex:"0",onClick:h,onKeydown:x=>{x.code===tt.enter&&h()}},[_?be(o,"addIcon"):oe(Je,{class:a.is("icon-plus")},{default:()=>[oe(d0,null,null)]})]):null,y=oe("div",{class:[a.e("header"),a.is(e.tabPosition)]},[g,oe(wne,{ref:d,currentName:p.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:m},null)]),w=oe("div",{class:a.e("content")},[be(o,"default")]);return oe("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:e.type==="card",[a.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,w]:[w,y]])}}}),Cne=He({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Sne=["id","aria-hidden","aria-labelledby"],Ky="ElTabPane",Ene=B({...B({name:Ky}),props:Cne,setup(e){const t=e,o=_t(),r=Bo(),l=Le(Rd);l||So(Ky,"usage: ");const n=Ie("tab-pane"),a=V(),i=T(()=>t.closable||l.props.closable),c=P1(()=>{var v;return l.currentName.value===((v=t.name)!=null?v:a.value)}),u=V(c.value),d=T(()=>{var v;return(v=t.name)!=null?v:a.value}),p=P1(()=>!t.lazy||u.value||c.value);Te(c,v=>{v&&(u.value=!0)});const f=Ft({uid:o.uid,slots:r,props:t,paneName:d,active:c,index:a,isClosable:i});return vt(()=>{l.registerPane(f)}),cn(()=>{l.unregisterPane(f.uid)}),(v,m)=>s(p)?ht((b(),z("div",{key:0,id:`pane-${s(d)}`,class:P(s(n).b()),role:"tabpanel","aria-hidden":!s(c),"aria-labelledby":`tab-${s(d)}`},[be(v.$slots,"default")],10,Sne)),[[Pt,s(c)]]):ue("v-if",!0)}});var Wy=Fe(Ene,[["__file","tab-pane.vue"]]);const $ne=xt(kne,{TabPane:Wy}),Tne=fo(Wy),zne=He({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:sl,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Mne=B({...B({name:"ElText"}),props:zne,setup(e){const t=e,o=Eo(),r=Ie("text"),l=T(()=>[r.b(),r.m(t.type),r.m(o.value),r.is("truncated",t.truncated),r.is("line-clamp",!ko(t.lineClamp))]);return(n,a)=>(b(),de(St(n.tag),{class:P(s(l)),style:Qe({"-webkit-line-clamp":n.lineClamp})},{default:ne(()=>[be(n.$slots,"default")]),_:3},8,["class","style"]))}});var Ane=Fe(Mne,[["__file","text.vue"]]);const One=xt(Ane),Ine=He({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:No,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:pe([String,Object]),default:()=>c0},clearIcon:{type:pe([String,Object]),default:()=>Ll}}),Yl=e=>{const t=(e||"").split(":");if(t.length>=2){let o=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),l=e.toUpperCase();return l.includes("AM")&&o===12?o=0:l.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:r}}return null},wv=(e,t)=>{const o=Yl(e);if(!o)return-1;const r=Yl(t);if(!r)return-1;const l=o.minutes+o.hours*60,n=r.minutes+r.hours*60;return l===n?0:l>n?1:-1},Uy=e=>`${e}`.padStart(2,"0"),wi=e=>`${Uy(e.hours)}:${Uy(e.minutes)}`,Pne=(e,t)=>{const o=Yl(e);if(!o)return"";const r=Yl(t);if(!r)return"";const l={hours:o.hours,minutes:o.minutes};return l.minutes+=r.minutes,l.hours+=r.hours,l.hours+=Math.floor(l.minutes/60),l.minutes=l.minutes%60,wi(l)},Bne=B({...B({name:"ElTimeSelect"}),props:Ine,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const o=e;wt.extend(ah);const{Option:r}=va,l=Ie("input"),n=V(),a=pr(),{lang:i}=Nt(),c=T(()=>o.modelValue),u=T(()=>{const g=Yl(o.start);return g?wi(g):null}),d=T(()=>{const g=Yl(o.end);return g?wi(g):null}),p=T(()=>{const g=Yl(o.step);return g?wi(g):null}),f=T(()=>{const g=Yl(o.minTime||"");return g?wi(g):null}),v=T(()=>{const g=Yl(o.maxTime||"");return g?wi(g):null}),m=T(()=>{const g=[];if(o.start&&o.end&&o.step){let y=u.value,w;for(;y&&d.value&&wv(y,d.value)<=0;)w=wt(y,"HH:mm").locale(i.value).format(o.format),g.push({value:w,disabled:wv(y,f.value||"-1:-1")<=0||wv(y,v.value||"100:100")>=0}),y=Pne(y,p.value)}return g});return t({blur:()=>{var g,y;(y=(g=n.value)==null?void 0:g.blur)==null||y.call(g)},focus:()=>{var g,y;(y=(g=n.value)==null?void 0:g.focus)==null||y.call(g)}}),(g,y)=>(b(),de(s(va),{ref_key:"select",ref:n,"model-value":s(c),disabled:s(a),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=w=>g.$emit("update:modelValue",w)),onChange:y[1]||(y[1]=w=>g.$emit("change",w)),onBlur:y[2]||(y[2]=w=>g.$emit("blur",w)),onFocus:y[3]||(y[3]=w=>g.$emit("focus",w))},{prefix:ne(()=>[g.prefixIcon?(b(),de(s(Je),{key:0,class:P(s(l).e("prefix-icon"))},{default:ne(()=>[(b(),de(St(g.prefixIcon)))]),_:1},8,["class"])):ue("v-if",!0)]),default:ne(()=>[(b(!0),z(Xe,null,Tt(s(m),w=>(b(),de(s(r),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Vd=Fe(Bne,[["__file","time-select.vue"]]);Vd.install=e=>{e.component(Vd.name,Vd)};const Nne=Vd,Lne=B({name:"ElTimeline",setup(e,{slots:t}){const o=Ie("timeline");return zt("timeline",t),()=>rt("ul",{class:[o.b()]},[be(t,"default")])}}),Rne=He({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:qt},hollow:{type:Boolean,default:!1}}),Vne=B({...B({name:"ElTimelineItem"}),props:Rne,setup(e){const t=e,o=Ie("timeline-item"),r=T(()=>[o.e("node"),o.em("node",t.size||""),o.em("node",t.type||""),o.is("hollow",t.hollow)]);return(l,n)=>(b(),z("li",{class:P([s(o).b(),{[s(o).e("center")]:l.center}])},[$("div",{class:P(s(o).e("tail"))},null,2),l.$slots.dot?ue("v-if",!0):(b(),z("div",{key:0,class:P(s(r)),style:Qe({backgroundColor:l.color})},[l.icon?(b(),de(s(Je),{key:0,class:P(s(o).e("icon"))},{default:ne(()=>[(b(),de(St(l.icon)))]),_:1},8,["class"])):ue("v-if",!0)],6)),l.$slots.dot?(b(),z("div",{key:1,class:P(s(o).e("dot"))},[be(l.$slots,"dot")],2)):ue("v-if",!0),$("div",{class:P(s(o).e("wrapper"))},[!l.hideTimestamp&&l.placement==="top"?(b(),z("div",{key:0,class:P([s(o).e("timestamp"),s(o).is("top")])},ze(l.timestamp),3)):ue("v-if",!0),$("div",{class:P(s(o).e("content"))},[be(l.$slots,"default")],2),!l.hideTimestamp&&l.placement==="bottom"?(b(),z("div",{key:1,class:P([s(o).e("timestamp"),s(o).is("bottom")])},ze(l.timestamp),3)):ue("v-if",!0)],2)],2))}});var qy=Fe(Vne,[["__file","timeline-item.vue"]]);const Hne=xt(Lne,{TimelineItem:qy}),Fne=fo(qy),Yy=He({nowrap:Boolean});var Gy=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Gy||{});const Dne=Object.values(Gy),yv=He({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:pe(Object),default:null}}),jne=He({side:{type:pe(String),values:Dne,required:!0}}),Kne=["absolute","fixed"],Wne=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],xv=He({ariaLabel:String,arrowPadding:{type:pe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:pe(String),values:Wne,default:"bottom"},reference:{type:pe(Object),default:null},offset:{type:Number,default:8},strategy:{type:pe(String),values:Kne,default:"absolute"},showArrow:{type:Boolean,default:!1}}),kv=He({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:pe(Function)},"onUpdate:open":{type:pe(Function)}}),yi={type:pe(Function)},Cv=He({onBlur:yi,onClick:yi,onFocus:yi,onMouseDown:yi,onMouseEnter:yi,onMouseLeave:yi}),Une=He({...kv,...yv,...Cv,...xv,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:pe(Object),default:null},teleported:Boolean,to:{type:pe(String),default:"body"}}),Hd=Symbol("tooltipV2"),Xy=Symbol("tooltipV2Content"),Sv="tooltip_v2.open",qne=B({...B({name:"ElTooltipV2Root"}),props:kv,setup(e,{expose:t}){const o=e,r=V(o.defaultOpen),l=V(null),n=T({get:()=>PM(o.open)?r.value:o.open,set:_=>{var g;r.value=_,(g=o["onUpdate:open"])==null||g.call(o,_)}}),a=T(()=>ct(o.delayDuration)&&o.delayDuration>0),{start:i,stop:c}=qn(()=>{n.value=!0},T(()=>o.delayDuration),{immediate:!1}),u=Ie("tooltip-v2"),d=dr(),p=()=>{c(),n.value=!0},f=()=>{s(a)?i():p()},v=p,m=()=>{c(),n.value=!1};return Te(n,_=>{var g;_&&(document.dispatchEvent(new CustomEvent(Sv)),v()),(g=o.onOpenChange)==null||g.call(o,_)}),vt(()=>{document.addEventListener(Sv,m)}),Zt(()=>{c(),document.removeEventListener(Sv,m)}),zt(Hd,{contentId:d,triggerRef:l,ns:u,onClose:m,onDelayOpen:f,onOpen:v}),t({onOpen:v,onClose:m}),(_,g)=>be(_.$slots,"default",{open:s(n)})}});var Yne=Fe(qne,[["__file","root.vue"]]);const Gne=B({...B({name:"ElTooltipV2Arrow"}),props:{...yv,...jne},setup(e){const t=e,{ns:o}=Le(Hd),{arrowRef:r}=Le(Xy),l=T(()=>{const{style:n,width:a,height:i}=t,c=o.namespace.value;return{[`--${c}-tooltip-v2-arrow-width`]:`${a}px`,[`--${c}-tooltip-v2-arrow-height`]:`${i}px`,[`--${c}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${c}-tooltip-v2-arrow-cover-width`]:a/2-1,...n||{}}});return(n,a)=>(b(),z("span",{ref_key:"arrowRef",ref:r,style:Qe(s(l)),class:P(s(o).e("arrow"))},null,6))}});var Zy=Fe(Gne,[["__file","arrow.vue"]]);const Xne=He({style:{type:pe([String,Object,Array]),default:()=>({})}}),Zne=B({...B({name:"ElVisuallyHidden"}),props:Xne,setup(e){const t=e,o=T(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,l)=>(b(),z("span",Et(r.$attrs,{style:s(o)}),[be(r.$slots,"default")],16))}});var Jne=Fe(Zne,[["__file","visual-hidden.vue"]]);const Qne=["data-side"],eae=B({...B({name:"ElTooltipV2Content"}),props:{...xv,...Yy},setup(e){const t=e,{triggerRef:o,contentId:r}=Le(Hd),l=V(t.placement),n=V(t.strategy),a=V(null),{referenceRef:i,contentRef:c,middlewareData:u,x:d,y:p,update:f}=WD({placement:l,strategy:n,middleware:T(()=>{const w=[ED(t.offset)];return t.showArrow&&w.push(UD({arrowRef:a})),w})}),v=oi().nextZIndex(),m=Ie("tooltip-v2"),h=T(()=>l.value.split("-")[0]),_=T(()=>({position:s(n),top:`${s(p)||0}px`,left:`${s(d)||0}px`,zIndex:v})),g=T(()=>{if(!t.showArrow)return{};const{arrow:w}=s(u);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),y=T(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(s(n)),t.contentClass]);return Te(a,()=>f()),Te(()=>t.placement,w=>l.value=w),vt(()=>{Te(()=>t.reference||o.value,w=>{i.value=w||void 0},{immediate:!0})}),zt(Xy,{arrowRef:a}),(w,x)=>(b(),z("div",{ref_key:"contentRef",ref:c,style:Qe(s(_)),"data-tooltip-v2-root":""},[w.nowrap?ue("v-if",!0):(b(),z("div",{key:0,"data-side":s(h),class:P(s(y))},[be(w.$slots,"default",{contentStyle:s(_),contentClass:s(y)}),oe(s(Jne),{id:s(r),role:"tooltip"},{default:ne(()=>[w.ariaLabel?(b(),z(Xe,{key:0},[$t(ze(w.ariaLabel),1)],64)):be(w.$slots,"default",{key:1})]),_:3},8,["id"]),be(w.$slots,"arrow",{style:Qe(s(g)),side:s(h)})],10,Qne))],4))}});var Jy=Fe(eae,[["__file","content.vue"]]);const tae=He({setRef:{type:pe(Function),required:!0},onlyChild:Boolean});var oae=B({props:tae,setup(e,{slots:t}){const o=V(),r=Pu(o,l=>{l?e.setRef(l.nextElementSibling):e.setRef(null)});return()=>{var l;const[n]=((l=t.default)==null?void 0:l.call(t))||[],a=e.onlyChild?JH(n.children):n.children;return oe(Xe,{ref:r},[a])}}});const rae=B({...B({name:"ElTooltipV2Trigger"}),props:{...Yy,...Cv},setup(e){const t=e,{onClose:o,onOpen:r,onDelayOpen:l,triggerRef:n,contentId:a}=Le(Hd);let i=!1;const c=y=>{n.value=y},u=()=>{i=!1},d=uo(t.onMouseEnter,l),p=uo(t.onMouseLeave,o),f=uo(t.onMouseDown,()=>{o(),i=!0,document.addEventListener("mouseup",u,{once:!0})}),v=uo(t.onFocus,()=>{i||r()}),m=uo(t.onBlur,o),h=uo(t.onClick,y=>{y.detail===0&&o()}),_={blur:m,click:h,focus:v,mousedown:f,mouseenter:d,mouseleave:p},g=(y,w,x)=>{y&&Object.entries(w).forEach(([M,E])=>{y[x](M,E)})};return Te(n,(y,w)=>{g(y,_,"addEventListener"),g(w,_,"removeEventListener"),y&&y.setAttribute("aria-describedby",a.value)}),Zt(()=>{g(n.value,_,"removeEventListener"),document.removeEventListener("mouseup",u)}),(y,w)=>y.nowrap?(b(),de(s(oae),{key:0,"set-ref":c,"only-child":""},{default:ne(()=>[be(y.$slots,"default")]),_:3})):(b(),z("button",Et({key:1,ref_key:"triggerRef",ref:n},y.$attrs),[be(y.$slots,"default")],16))}});var lae=Fe(rae,[["__file","trigger.vue"]]);const nae=B({...B({name:"ElTooltipV2"}),props:Une,setup(e){const o=Ao(e),r=Ft(Pl(o,Object.keys(yv))),l=Ft(Pl(o,Object.keys(xv))),n=Ft(Pl(o,Object.keys(kv))),a=Ft(Pl(o,Object.keys(Cv)));return(i,c)=>(b(),de(Yne,Rr(Gc(n)),{default:ne(({open:u})=>[oe(lae,Et(a,{nowrap:""}),{default:ne(()=>[be(i.$slots,"trigger")]),_:3},16),(b(),de(Zi,{to:i.to,disabled:!i.teleported},[i.fullTransition?(b(),de(_o,Rr(Et({key:0},i.transitionProps)),{default:ne(()=>[i.alwaysOn||u?(b(),de(Jy,Rr(Et({key:0},l)),{arrow:ne(({style:d,side:p})=>[i.showArrow?(b(),de(Zy,Et({key:0},r,{style:d,side:p}),null,16,["style","side"])):ue("v-if",!0)]),default:ne(()=>[be(i.$slots,"default")]),_:3},16)):ue("v-if",!0)]),_:2},1040)):(b(),z(Xe,{key:1},[i.alwaysOn||u?(b(),de(Jy,Rr(Et({key:0},l)),{arrow:ne(({style:d,side:p})=>[i.showArrow?(b(),de(Zy,Et({key:0},r,{style:d,side:p}),null,16,["style","side"])):ue("v-if",!0)]),default:ne(()=>[be(i.$slots,"default")]),_:3},16)):ue("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var aae=Fe(nae,[["__file","tooltip.vue"]]);const iae=xt(aae),Qy="left-check-change",e8="right-check-change",xi=He({data:{type:pe(Array),default:()=>[]},titles:{type:pe(Array),default:()=>[]},buttonTexts:{type:pe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:pe(Function)},leftDefaultChecked:{type:pe(Array),default:()=>[]},rightDefaultChecked:{type:pe(Array),default:()=>[]},renderContent:{type:pe(Function)},modelValue:{type:pe(Array),default:()=>[]},format:{type:pe(Object),default:()=>({})},filterable:Boolean,props:{type:pe(Object),default:()=>ro({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Ev=(e,t)=>[e,t].every(Ge)||Ge(e)&&wo(t),sae={[Jt]:(e,t,o)=>[e,o].every(Ge)&&["left","right"].includes(t),[kt]:e=>Ge(e),[Qy]:Ev,[e8]:Ev},$v="checked-change",cae=He({data:xi.data,optionRender:{type:pe(Function)},placeholder:String,title:String,filterable:Boolean,format:xi.format,filterMethod:xi.filterMethod,defaultChecked:xi.leftDefaultChecked,props:xi.props}),uae={[$v]:Ev},ac=e=>{const t={label:"label",key:"key",disabled:"disabled"};return T(()=>({...t,...e.props}))},dae=(e,t,o)=>{const r=ac(e),l=T(()=>e.data.filter(d=>ut(e.filterMethod)?e.filterMethod(t.query,d):String(d[r.value.label]||d[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),n=T(()=>l.value.filter(d=>!d[r.value.disabled])),a=T(()=>{const d=t.checked.length,p=e.data.length,{noChecked:f,hasChecked:v}=e.format;return f&&v?d>0?v.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,p.toString()):f.replace(/\${total}/g,p.toString()):`${d}/${p}`}),i=T(()=>{const d=t.checked.length;return d>0&&d{const d=n.value.map(p=>p[r.value.key]);t.allChecked=d.length>0&&d.every(p=>t.checked.includes(p))},u=d=>{t.checked=d?n.value.map(p=>p[r.value.key]):[]};return Te(()=>t.checked,(d,p)=>{if(c(),t.checkChangeByUser){const f=d.concat(p).filter(v=>!d.includes(v)||!p.includes(v));o($v,d,f)}else o($v,d),t.checkChangeByUser=!0}),Te(n,()=>{c()}),Te(()=>e.data,()=>{const d=[],p=l.value.map(f=>f[r.value.key]);t.checked.forEach(f=>{p.includes(f)&&d.push(f)}),t.checkChangeByUser=!1,t.checked=d}),Te(()=>e.defaultChecked,(d,p)=>{if(p&&d.length===p.length&&d.every(m=>p.includes(m)))return;const f=[],v=n.value.map(m=>m[r.value.key]);d.forEach(m=>{v.includes(m)&&f.push(m)}),t.checkChangeByUser=!1,t.checked=f},{immediate:!0}),{filteredData:l,checkableData:n,checkedSummary:a,isIndeterminate:i,updateAllChecked:c,handleAllCheckedChange:u}},pae=(e,t)=>({onSourceCheckedChange:(l,n)=>{e.leftChecked=l,n&&t(Qy,l,n)},onTargetCheckedChange:(l,n)=>{e.rightChecked=l,n&&t(e8,l,n)}}),fae=e=>{const t=ac(e),o=T(()=>e.data.reduce((n,a)=>(n[a[t.value.key]]=a)&&n,{})),r=T(()=>e.data.filter(n=>!e.modelValue.includes(n[t.value.key]))),l=T(()=>e.targetOrder==="original"?e.data.filter(n=>e.modelValue.includes(n[t.value.key])):e.modelValue.reduce((n,a)=>{const i=o.value[a];return i&&n.push(i),n},[]));return{sourceData:r,targetData:l}},hae=(e,t,o)=>{const r=ac(e),l=(i,c,u)=>{o(kt,i),o(Jt,i,c,u)};return{addToLeft:()=>{const i=e.modelValue.slice();t.rightChecked.forEach(c=>{const u=i.indexOf(c);u>-1&&i.splice(u,1)}),l(i,"left",t.rightChecked)},addToRight:()=>{let i=e.modelValue.slice();const c=e.data.filter(u=>{const d=u[r.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[r.value.key]);i=e.targetOrder==="unshift"?c.concat(i):i.concat(c),e.targetOrder==="original"&&(i=e.data.filter(u=>i.includes(u[r.value.key])).map(u=>u[r.value.key])),l(i,"right",t.leftChecked)}}},vae=B({...B({name:"ElTransferPanel"}),props:cae,emits:uae,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),n=({option:w})=>w,{t:a}=Nt(),i=Ie("transfer"),c=Ft({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ac(r),{filteredData:d,checkedSummary:p,isIndeterminate:f,handleAllCheckedChange:v}=dae(r,c,o),m=T(()=>!Tr(c.query)&&Tr(d.value)),h=T(()=>!Tr(l.default()[0].children)),{checked:_,allChecked:g,query:y}=Ao(c);return t({query:y}),(w,x)=>(b(),z("div",{class:P(s(i).b("panel"))},[$("p",{class:P(s(i).be("panel","header"))},[oe(s(Nr),{modelValue:s(g),"onUpdate:modelValue":x[0]||(x[0]=M=>Wt(g)?g.value=M:null),indeterminate:s(f),"validate-event":!1,onChange:s(v)},{default:ne(()=>[$t(ze(w.title)+" ",1),$("span",null,ze(s(p)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),$("div",{class:P([s(i).be("panel","body"),s(i).is("with-footer",s(h))])},[w.filterable?(b(),de(s(Wo),{key:0,modelValue:s(y),"onUpdate:modelValue":x[1]||(x[1]=M=>Wt(y)?y.value=M:null),class:P(s(i).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":s(z3),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):ue("v-if",!0),ht(oe(s(C4),{modelValue:s(_),"onUpdate:modelValue":x[2]||(x[2]=M=>Wt(_)?_.value=M:null),"validate-event":!1,class:P([s(i).is("filterable",w.filterable),s(i).be("panel","list")])},{default:ne(()=>[(b(!0),z(Xe,null,Tt(s(d),M=>(b(),de(s(Nr),{key:M[s(u).key],class:P(s(i).be("panel","item")),label:M[s(u).key],disabled:M[s(u).disabled],"validate-event":!1},{default:ne(()=>{var E;return[oe(n,{option:(E=w.optionRender)==null?void 0:E.call(w,M)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Pt,!s(m)&&!s(Tr)(w.data)]]),ht($("p",{class:P(s(i).be("panel","empty"))},ze(s(m)?s(a)("el.transfer.noMatch"):s(a)("el.transfer.noData")),3),[[Pt,s(m)||s(Tr)(w.data)]])],2),s(h)?(b(),z("p",{key:0,class:P(s(i).be("panel","footer"))},[be(w.$slots,"default")],2)):ue("v-if",!0)],2))}});var t8=Fe(vae,[["__file","transfer-panel.vue"]]);const mae={key:0},gae={key:0},bae=B({...B({name:"ElTransfer"}),props:xi,emits:sae,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),{t:n}=Nt(),a=Ie("transfer"),{formItem:i}=Qo(),c=Ft({leftChecked:[],rightChecked:[]}),u=ac(r),{sourceData:d,targetData:p}=fae(r),{onSourceCheckedChange:f,onTargetCheckedChange:v}=pae(c,o),{addToLeft:m,addToRight:h}=hae(r,c,o),_=V(),g=V(),y=O=>{switch(O){case"left":_.value.query="";break;case"right":g.value.query="";break}},w=T(()=>r.buttonTexts.length===2),x=T(()=>r.titles[0]||n("el.transfer.titles.0")),M=T(()=>r.titles[1]||n("el.transfer.titles.1")),E=T(()=>r.filterPlaceholder||n("el.transfer.filterPlaceholder"));Te(()=>r.modelValue,()=>{var O;r.validateEvent&&((O=i==null?void 0:i.validate)==null||O.call(i,"change").catch(F=>void 0))});const I=T(()=>O=>r.renderContent?r.renderContent(rt,O):l.default?l.default({option:O}):rt("span",O[u.value.label]||O[u.value.key]));return t({clearQuery:y,leftPanel:_,rightPanel:g}),(O,F)=>(b(),z("div",{class:P(s(a).b())},[oe(t8,{ref_key:"leftPanel",ref:_,data:s(d),"option-render":s(I),placeholder:s(E),title:s(x),filterable:O.filterable,format:O.format,"filter-method":O.filterMethod,"default-checked":O.leftDefaultChecked,props:r.props,onCheckedChange:s(f)},{default:ne(()=>[be(O.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),$("div",{class:P(s(a).e("buttons"))},[oe(s(Vo),{type:"primary",class:P([s(a).e("button"),s(a).is("with-texts",s(w))]),disabled:s(Tr)(c.rightChecked),onClick:s(m)},{default:ne(()=>[oe(s(Je),null,{default:ne(()=>[oe(s(Nl))]),_:1}),s(ko)(O.buttonTexts[0])?ue("v-if",!0):(b(),z("span",mae,ze(O.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),oe(s(Vo),{type:"primary",class:P([s(a).e("button"),s(a).is("with-texts",s(w))]),disabled:s(Tr)(c.leftChecked),onClick:s(h)},{default:ne(()=>[s(ko)(O.buttonTexts[1])?ue("v-if",!0):(b(),z("span",gae,ze(O.buttonTexts[1]),1)),oe(s(Je),null,{default:ne(()=>[oe(s(Ko))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),oe(t8,{ref_key:"rightPanel",ref:g,data:s(p),"option-render":s(I),placeholder:s(E),filterable:O.filterable,format:O.format,"filter-method":O.filterMethod,title:s(M),"default-checked":O.rightDefaultChecked,props:r.props,onCheckedChange:s(v)},{default:ne(()=>[be(O.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var _ae=Fe(bae,[["__file","transfer.vue"]]);const wae=xt(_ae),ki="$treeNodeId",o8=function(e,t){!t||t[ki]||Object.defineProperty(t,ki,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Tv=function(e,t){return e?t[e]:t[ki]},zv=(e,t,o)=>{const r=e.value.currentNode;o();const l=e.value.currentNode;r!==l&&t("current-change",l?l.data:null,l)},Mv=e=>{let t=!0,o=!0,r=!0;for(let l=0,n=e.length;l"u"){const n=r[t];return n===void 0?"":n}};let yae=0,Av=class dp{constructor(t){this.id=yae++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const o in t)It(t,o)&&(this[o]=t[o]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const o=t.props;if(o&&typeof o.isLeaf<"u"){const n=Dd(this,"isLeaf");typeof n=="boolean"&&(this.isLeafByUser=n)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||o8(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,l=t.key;l&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),l&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||o8(this,t),this.data=t,this.childNodes=[];let o;this.level===0&&Array.isArray(this.data)?o=this.data:o=Dd(this,"children")||[];for(let r=0,l=o.length;r-1)return t.childNodes[o+1]}return null}get previousSibling(){const t=this.parent;if(t){const o=t.childNodes.indexOf(this);if(o>-1)return o>0?t.childNodes[o-1]:null}return null}contains(t,o=!0){return(this.childNodes||[]).some(r=>r===t||o&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,o,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof dp)){if(!r){const l=this.getChildren(!0);l.includes(t.data)||(typeof o>"u"||o<0?l.push(t.data):l.splice(o,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ft(new dp(t)),t instanceof dp&&t.initialize()}t.level=this.level+1,typeof o>"u"||o<0?this.childNodes.push(t):this.childNodes.splice(o,0,t),this.updateLeafState()}insertBefore(t,o){let r;o&&(r=this.childNodes.indexOf(o)),this.insertChild(t,r)}insertAfter(t,o){let r;o&&(r=this.childNodes.indexOf(o),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const o=this.getChildren()||[],r=o.indexOf(t.data);r>-1&&o.splice(r,1);const l=this.childNodes.indexOf(t);l>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(l,1)),this.updateLeafState()}removeChildByData(t){let o=null;for(let r=0;r{if(o){let l=this.parent;for(;l.level>0;)l.expanded=!0,l=l.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(l=>{l.canFocus=!0})};this.shouldLoadData()?this.loadData(l=>{Array.isArray(l)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Fd(this),r())}):r()}doCreateChildren(t,o={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},o),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,o,r,l){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:i}=Mv(this.childNodes);!this.isLeaf&&!a&&i&&(this.checked=!1,t=!1);const c=()=>{if(o){const u=this.childNodes;for(let f=0,v=u.length;f{c(),Fd(this)},{checked:t!==!1});return}else c()}const n=this.parent;!n||n.level===0||r||Fd(n)}getChildren(t=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const r=this.store.props;let l="children";return r&&(l=r.children||"children"),o[l]===void 0&&(o[l]=null),t&&!o[l]&&(o[l]=[]),o[l]}updateChildren(){const t=this.getChildren()||[],o=this.childNodes.map(n=>n.data),r={},l=[];t.forEach((n,a)=>{const i=n[ki];!!i&&o.findIndex(u=>u[ki]===i)>=0?r[i]={index:a,data:n}:l.push({index:a,data:n})}),this.store.lazy||o.forEach(n=>{r[n[ki]]||this.removeChildByData(n)}),l.forEach(({index:n,data:a})=>{this.insertChild({data:a},n)}),this.updateLeafState()}loadData(t,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const r=l=>{this.childNodes=[],this.doCreateChildren(l,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)};this.store.load(this,r)}else t&&t.call(this)}};class xae{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const o in t)It(t,o)&&(this[o]=t[o]);this.nodesMap={}}initialize(){if(this.root=new Av({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const o=this.filterNodeMethod,r=this.lazy,l=function(n){const a=n.root?n.root.childNodes:n.childNodes;if(a.forEach(i=>{i.visible=o.call(i,t,i.data,i),l(i)}),!n.visible&&a.length){let i=!0;i=!a.some(c=>c.visible),n.root?n.root.visible=i===!1:n.visible=i===!1}t&&n.visible&&!n.isLeaf&&!r&&n.expand()};l(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Av)return t;const o=Ct(t)?Tv(this.key,t):t;return this.nodesMap[o]||null}insertBefore(t,o){const r=this.getNode(o);r.parent.insertBefore({data:t},r)}insertAfter(t,o){const r=this.getNode(o);r.parent.insertAfter({data:t},r)}remove(t){const o=this.getNode(t);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(t,o){const r=o?this.getNode(o):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],o=this.nodesMap;t.forEach(r=>{const l=o[r];l&&l.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const o=this.key;!t||!t.data||(o?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,o=!1){const r=[],l=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(i=>{(i.checked||o&&i.indeterminate)&&(!t||t&&i.isLeaf)&&r.push(i.data),l(i)})};return l(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const t=[],o=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(n=>{n.indeterminate&&t.push(n.data),o(n)})};return o(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],o=this.nodesMap;for(const r in o)It(o,r)&&t.push(o[r]);return t}updateChildren(t,o){const r=this.nodesMap[t];if(!r)return;const l=r.childNodes;for(let n=l.length-1;n>=0;n--){const a=l[n];this.remove(a.data)}for(let n=0,a=o.length;nc.level-i.level),n=Object.create(null),a=Object.keys(r);l.forEach(i=>i.setChecked(!1,!1));for(let i=0,c=l.length;i0;)n[f.data[t]]=!0,f=f.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),o){u.setChecked(!1,!1);const v=function(m){m.childNodes.forEach(_=>{_.isLeaf||_.setChecked(!1,!1),v(_)})};v(u)}}}setCheckedNodes(t,o=!1){const r=this.key,l={};t.forEach(n=>{l[(n||{})[r]]=!0}),this._setCheckedKeys(r,o,l)}setCheckedKeys(t,o=!1){this.defaultCheckedKeys=t;const r=this.key,l={};t.forEach(n=>{l[n]=!0}),this._setCheckedKeys(r,o,l)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(o=>{const r=this.getNode(o);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,o,r){const l=this.getNode(t);l&&l.setChecked(!!o,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,o=!0){const r=t[this.key],l=this.nodesMap[r];this.setCurrentNode(l),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,o=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}var kae=Fe(B({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ie("tree"),o=Le("NodeInstance"),r=Le("RootTree");return()=>{const l=e.node,{data:n,store:a}=l;return e.renderContent?e.renderContent(rt,{_self:o,node:l,data:n,store:a}):be(r.ctx.slots,"default",{node:l,data:n},()=>[rt("span",{class:t.be("node","label")},[l.label])])}}}),[["__file","tree-node-content.vue"]]);function r8(e){const t=Le("TreeNodeMap",null),o={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(o),zt("TreeNodeMap",o),{broadcastExpanded:r=>{if(e.accordion)for(const l of o.children)l.treeNodeExpand(r)}}}const l8=Symbol("dragEvents");function Cae({props:e,ctx:t,el$:o,dropIndicator$:r,store:l}){const n=Ie("tree"),a=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return zt(l8,{treeNodeDragStart:({event:d,treeNode:p})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(p.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=p,t.emit("node-drag-start",p.node,d)},treeNodeDragOver:({event:d,treeNode:p})=>{const f=p,v=a.value.dropNode;v&&v.node.id!==f.node.id&&sr(v.$el,n.is("drop-inner"));const m=a.value.draggingNode;if(!m||!f)return;let h=!0,_=!0,g=!0,y=!0;typeof e.allowDrop=="function"&&(h=e.allowDrop(m.node,f.node,"prev"),y=_=e.allowDrop(m.node,f.node,"inner"),g=e.allowDrop(m.node,f.node,"next")),d.dataTransfer.dropEffect=_||h||g?"move":"none",(h||_||g)&&(v==null?void 0:v.node.id)!==f.node.id&&(v&&t.emit("node-drag-leave",m.node,v.node,d),t.emit("node-drag-enter",m.node,f.node,d)),(h||_||g)&&(a.value.dropNode=f),f.node.nextSibling===m.node&&(g=!1),f.node.previousSibling===m.node&&(h=!1),f.node.contains(m.node,!1)&&(_=!1),(m.node===f.node||m.node.contains(f.node))&&(h=!1,_=!1,g=!1);const w=f.$el.querySelector(`.${n.be("node","content")}`).getBoundingClientRect(),x=o.value.getBoundingClientRect();let M;const E=h?_?.25:g?.45:1:-1,I=g?_?.75:h?.55:0:1;let O=-9999;const F=d.clientY-w.top;Fw.height*I?M="after":_?M="inner":M="none";const K=f.$el.querySelector(`.${n.be("node","expand-icon")}`).getBoundingClientRect(),R=r.value;M==="before"?O=K.top-x.top:M==="after"&&(O=K.bottom-x.top),R.style.top=`${O}px`,R.style.left=`${K.right-x.left}px`,M==="inner"?il(f.$el,n.is("drop-inner")):sr(f.$el,n.is("drop-inner")),a.value.showDropIndicator=M==="before"||M==="after",a.value.allowDrop=a.value.showDropIndicator||y,a.value.dropType=M,t.emit("node-drag-over",m.node,f.node,d)},treeNodeDragEnd:d=>{const{draggingNode:p,dropType:f,dropNode:v}=a.value;if(d.preventDefault(),d.dataTransfer.dropEffect="move",p&&v){const m={data:p.node.data};f!=="none"&&p.node.remove(),f==="before"?v.node.parent.insertBefore(m,v.node):f==="after"?v.node.parent.insertAfter(m,v.node):f==="inner"&&v.node.insertChild(m),f!=="none"&&l.value.registerNode(m),sr(v.$el,n.is("drop-inner")),t.emit("node-drag-end",p.node,v.node,f,d),f!=="none"&&t.emit("node-drop",p.node,v.node,f,d)}p&&!v&&t.emit("node-drag-end",p.node,null,f,d),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const Sae=B({name:"ElTreeNode",components:{ElCollapseTransition:md,ElCheckbox:Nr,NodeContent:kae,ElIcon:Je,Loading:Rl},props:{node:{type:Av,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const o=Ie("tree"),{broadcastExpanded:r}=r8(e),l=Le("RootTree"),n=V(!1),a=V(!1),i=V(null),c=V(null),u=V(null),d=Le(l8),p=_t();zt("NodeInstance",p),e.node.expanded&&(n.value=!0,a.value=!0);const f=l.props.props.children||"children";Te(()=>{const F=e.node.data[f];return F&&[...F]},()=>{e.node.updateChildren()}),Te(()=>e.node.indeterminate,F=>{h(e.node.checked,F)}),Te(()=>e.node.checked,F=>{h(F,e.node.indeterminate)}),Te(()=>e.node.expanded,F=>{et(()=>n.value=F),F&&(a.value=!0)});const v=F=>Tv(l.props.nodeKey,F.data),m=F=>{const K=e.props.class;if(!K)return{};let R;if(ut(K)){const{data:D}=F;R=K(D,F)}else R=K;return ft(R)?{[R]:!0}:R},h=(F,K)=>{(i.value!==F||c.value!==K)&&l.ctx.emit("check-change",e.node.data,F,K),i.value=F,c.value=K},_=F=>{zv(l.store,l.ctx.emit,()=>l.store.value.setCurrentNode(e.node)),l.currentNode.value=e.node,l.props.expandOnClickNode&&y(),l.props.checkOnClickNode&&!e.node.disabled&&w(null,{target:{checked:!e.node.checked}}),l.ctx.emit("node-click",e.node.data,e.node,p,F)},g=F=>{l.instance.vnode.props.onNodeContextmenu&&(F.stopPropagation(),F.preventDefault()),l.ctx.emit("node-contextmenu",F,e.node.data,e.node,p)},y=()=>{e.node.isLeaf||(n.value?(l.ctx.emit("node-collapse",e.node.data,e.node,p),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,p)))},w=(F,K)=>{e.node.setChecked(K.target.checked,!l.props.checkStrictly),et(()=>{const R=l.store.value;l.ctx.emit("check",e.node.data,{checkedNodes:R.getCheckedNodes(),checkedKeys:R.getCheckedKeys(),halfCheckedNodes:R.getHalfCheckedNodes(),halfCheckedKeys:R.getHalfCheckedKeys()})})};return{ns:o,node$:u,tree:l,expanded:n,childNodeRendered:a,oldChecked:i,oldIndeterminate:c,getNodeKey:v,getNodeClass:m,handleSelectChange:h,handleClick:_,handleContextMenu:g,handleExpandIconClick:y,handleCheckChange:w,handleChildNodeExpand:(F,K,R)=>{r(K),l.ctx.emit("node-expand",F,K,R)},handleDragStart:F=>{l.props.draggable&&d.treeNodeDragStart({event:F,treeNode:e})},handleDragOver:F=>{F.preventDefault(),l.props.draggable&&d.treeNodeDragOver({event:F,treeNode:{$el:u.value,node:e.node}})},handleDrop:F=>{F.preventDefault()},handleDragEnd:F=>{l.props.draggable&&d.treeNodeDragEnd(F)},CaretRight:s0}}}),Eae=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],$ae=["aria-expanded"];function Tae(e,t,o,r,l,n){const a=ot("el-icon"),i=ot("el-checkbox"),c=ot("loading"),u=ot("node-content"),d=ot("el-tree-node"),p=ot("el-collapse-transition");return ht((b(),z("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=it((...f)=>e.handleClick&&e.handleClick(...f),["stop"])),onContextmenu:t[2]||(t[2]=(...f)=>e.handleContextMenu&&e.handleContextMenu(...f)),onDragstart:t[3]||(t[3]=it((...f)=>e.handleDragStart&&e.handleDragStart(...f),["stop"])),onDragover:t[4]||(t[4]=it((...f)=>e.handleDragOver&&e.handleDragOver(...f),["stop"])),onDragend:t[5]||(t[5]=it((...f)=>e.handleDragEnd&&e.handleDragEnd(...f),["stop"])),onDrop:t[6]||(t[6]=it((...f)=>e.handleDrop&&e.handleDrop(...f),["stop"]))},[$("div",{class:P(e.ns.be("node","content")),style:Qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(b(),de(a,{key:0,class:P([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:it(e.handleExpandIconClick,["stop"])},{default:ne(()=>[(b(),de(St(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ue("v-if",!0),e.showCheckbox?(b(),de(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=it(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):ue("v-if",!0),e.node.loading?(b(),de(a,{key:2,class:P([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ne(()=>[oe(c)]),_:1},8,["class"])):ue("v-if",!0),oe(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),oe(p,null,{default:ne(()=>[!e.renderAfterExpand||e.childNodeRendered?ht((b(),z("div",{key:0,class:P(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(b(!0),z(Xe,null,Tt(e.node.childNodes,f=>(b(),de(d,{key:e.getNodeKey(f),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:f,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,$ae)),[[Pt,e.expanded]]):ue("v-if",!0)]),_:1})],42,Eae)),[[Pt,e.node.visible]])}var zae=Fe(Sae,[["render",Tae],["__file","tree-node.vue"]]);function Mae({el$:e},t){const o=Ie("tree"),r=Yt([]),l=Yt([]);vt(()=>{a()}),Tl(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Te(l,i=>{i.forEach(c=>{c.setAttribute("tabindex","-1")})}),eo(e,"keydown",i=>{const c=i.target;if(!c.className.includes(o.b("node")))return;const u=i.code;r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));const d=r.value.indexOf(c);let p;if([tt.up,tt.down].includes(u)){if(i.preventDefault(),u===tt.up){p=d===-1?0:d!==0?d-1:r.value.length-1;const v=p;for(;!t.value.getNode(r.value[p].dataset.key).canFocus;){if(p--,p===v){p=-1;break}p<0&&(p=r.value.length-1)}}else{p=d===-1?0:d=r.value.length&&(p=0)}}p!==-1&&r.value[p].focus()}[tt.left,tt.right].includes(u)&&(i.preventDefault(),c.click());const f=c.querySelector('[type="checkbox"]');[tt.enter,tt.space].includes(u)&&f&&(i.preventDefault(),f.click())});const a=()=>{var i;r.value=Array.from(e.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),l.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const c=e.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(c.length){c[0].setAttribute("tabindex","0");return}(i=r.value[0])==null||i.setAttribute("tabindex","0")}}const Aae=B({name:"ElTree",components:{ElTreeNode:zae},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:qt}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:o}=Nt(),r=Ie("tree"),l=V(new xae({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));l.value.initialize();const n=V(l.value.root),a=V(null),i=V(null),c=V(null),{broadcastExpanded:u}=r8(e),{dragState:d}=Cae({props:e,ctx:t,el$:i,dropIndicator$:c,store:l});Mae({el$:i},l);const p=T(()=>{const{childNodes:L}=n.value;return!L||L.length===0||L.every(({visible:X})=>!X)});Te(()=>e.currentNodeKey,L=>{l.value.setCurrentNodeKey(L)}),Te(()=>e.defaultCheckedKeys,L=>{l.value.setDefaultCheckedKey(L)}),Te(()=>e.defaultExpandedKeys,L=>{l.value.setDefaultExpandedKeys(L)}),Te(()=>e.data,L=>{l.value.setData(L)},{deep:!0}),Te(()=>e.checkStrictly,L=>{l.value.checkStrictly=L});const f=L=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");l.value.filter(L)},v=L=>Tv(e.nodeKey,L.data),m=L=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const X=l.value.getNode(L);if(!X)return[];const N=[X.data];let W=X.parent;for(;W&&W!==n.value;)N.push(W.data),W=W.parent;return N.reverse()},h=(L,X)=>l.value.getCheckedNodes(L,X),_=L=>l.value.getCheckedKeys(L),g=()=>{const L=l.value.getCurrentNode();return L?L.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const L=g();return L?L[e.nodeKey]:null},w=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");l.value.setCheckedNodes(L,X)},x=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");l.value.setCheckedKeys(L,X)},M=(L,X,N)=>{l.value.setChecked(L,X,N)},E=()=>l.value.getHalfCheckedNodes(),I=()=>l.value.getHalfCheckedKeys(),O=(L,X=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");zv(l,t.emit,()=>l.value.setUserCurrentNode(L,X))},F=(L,X=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");zv(l,t.emit,()=>l.value.setCurrentNodeKey(L,X))},K=L=>l.value.getNode(L),R=L=>{l.value.remove(L)},D=(L,X)=>{l.value.append(L,X)},j=(L,X)=>{l.value.insertBefore(L,X)},Z=(L,X)=>{l.value.insertAfter(L,X)},Q=(L,X,N)=>{u(X),t.emit("node-expand",L,X,N)},J=(L,X)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");l.value.updateChildren(L,X)};return zt("RootTree",{ctx:t,props:e,store:l,root:n,currentNode:a,instance:_t()}),zt(fl,void 0),{ns:r,store:l,root:n,currentNode:a,dragState:d,el$:i,dropIndicator$:c,isEmpty:p,filter:f,getNodeKey:v,getNodePath:m,getCheckedNodes:h,getCheckedKeys:_,getCurrentNode:g,getCurrentKey:y,setCheckedNodes:w,setCheckedKeys:x,setChecked:M,getHalfCheckedNodes:E,getHalfCheckedKeys:I,setCurrentNode:O,setCurrentKey:F,t:o,getNode:K,remove:R,append:D,insertBefore:j,insertAfter:Z,handleNodeExpand:Q,updateKeyChildren:J}}});function Oae(e,t,o,r,l,n){const a=ot("el-tree-node");return b(),z("div",{ref:"el$",class:P([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(b(!0),z(Xe,null,Tt(e.root.childNodes,i=>(b(),de(a,{key:e.getNodeKey(i),node:i,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(b(),z("div",{key:0,class:P(e.ns.e("empty-block"))},[be(e.$slots,"empty",{},()=>{var i;return[$("span",{class:P(e.ns.e("empty-text"))},ze((i=e.emptyText)!=null?i:e.t("el.tree.emptyText")),3)]})],2)):ue("v-if",!0),ht($("div",{ref:"dropIndicator$",class:P(e.ns.e("drop-indicator"))},null,2),[[Pt,e.dragState.showDropIndicator]])],2)}var jd=Fe(Aae,[["render",Oae],["__file","tree.vue"]]);jd.install=e=>{e.component(jd.name,jd)};const Kd=jd,Iae=Kd,Pae=(e,{attrs:t,emit:o},{tree:r,key:l})=>{const n=Ie("tree-select"),a={...Pl(Ao(e),Object.keys(va.props)),...t,"onUpdate:modelValue":i=>o(kt,i),valueKey:l,popperClass:T(()=>{const i=[n.e("popper")];return e.popperClass&&i.push(e.popperClass),i.join(" ")}),filterMethod:(i="")=>{e.filterMethod&&e.filterMethod(i),et(()=>{var c;(c=r.value)==null||c.filter(i)})},onVisibleChange:i=>{var c;(c=t.onVisibleChange)==null||c.call(t,i),e.filterable&&i&&a.filterMethod()}};return a},Bae=B({extends:Cd,setup(e,t){const o=Cd.setup(e,t);delete o.selectOptionClick;const r=_t().proxy;return et(()=>{o.select.cachedOptions.get(r.value)||o.select.onOptionCreate(r)}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Ov(e){return e||e===0}function Iv(e){return Array.isArray(e)&&e.length}function ic(e){return Array.isArray(e)?e:Ov(e)?[e]:[]}function Wd(e,t,o,r,l){for(let n=0;n{Te(()=>e.modelValue,()=>{e.showCheckbox&&et(()=>{const f=n.value;f&&!ir(f.getCheckedKeys(),ic(e.modelValue))&&f.setCheckedKeys(ic(e.modelValue))})},{immediate:!0,deep:!0});const i=T(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),c=(f,v)=>{var m;const h=i.value[f];return ut(h)?h(v,(m=n.value)==null?void 0:m.getNode(c("value",v))):v[h]},u=ic(e.modelValue).map(f=>Wd(e.data||[],v=>c("value",v)===f,v=>c("children",v),(v,m,h,_)=>_&&c("value",_))).filter(f=>Ov(f)),d=T(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return n8(e.data.concat(e.cacheData),v=>{const m=c("value",v);f.push({value:m,currentLabel:c("label",v),isDisabled:c("disabled",v)})},v=>c("children",v)),f}),p=T(()=>d.value.reduce((f,v)=>({...f,[v.value]:v}),{}));return{...Pl(Ao(e),Object.keys(Kd.props)),...t,nodeKey:a,expandOnClickNode:T(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:T(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:v,data:m,store:h})=>f(Bae,{value:c("value",m),label:c("label",m),disabled:c("disabled",m)},e.renderContent?()=>e.renderContent(f,{node:v,data:m,store:h}):o.default?()=>o.default({node:v,data:m,store:h}):void 0),filterNodeMethod:(f,v,m)=>{var h;return e.filterNodeMethod?e.filterNodeMethod(f,v,m):f?(h=c("label",v))==null?void 0:h.includes(f):!0},onNodeClick:(f,v,m)=>{var h,_,g;if((h=t.onNodeClick)==null||h.call(t,f,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!c("disabled",f)){const y=(_=l.value)==null?void 0:_.options.get(c("value",f));(g=l.value)==null||g.handleOptionSelect(y)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(f,v)=>{if(!e.showCheckbox)return;const m=c("value",f),h=v.checkedKeys,_=e.multiple?ic(e.modelValue).filter(y=>y in p.value&&!n.value.getNode(y)&&!h.includes(y)):[],g=h.concat(_);if(e.checkStrictly)r(kt,e.multiple?g:g.includes(m)?m:void 0);else if(e.multiple)r(kt,n.value.getCheckedKeys(!0));else{const y=Wd([f],M=>!Iv(c("children",M))&&!c("disabled",M),M=>c("children",M)),w=y?c("value",y):void 0,x=Ov(e.modelValue)&&!!Wd([f],M=>c("value",M)===e.modelValue,M=>c("children",M));r(kt,w===e.modelValue||x?void 0:w)}et(()=>{var y;const w=ic(e.modelValue);n.value.setCheckedKeys(w),(y=t.onCheck)==null||y.call(t,f,{checkedKeys:n.value.getCheckedKeys(),checkedNodes:n.value.getCheckedNodes(),halfCheckedKeys:n.value.getHalfCheckedKeys(),halfCheckedNodes:n.value.getHalfCheckedNodes()})})},cacheOptions:d}};var Lae=B({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Le(Ys);return Te(()=>e.data,()=>{var o;e.data.forEach(l=>{t.cachedOptions.has(l.value)||t.cachedOptions.set(l.value,l)});const r=((o=t.selectWrapper)==null?void 0:o.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Rae=B({name:"ElTreeSelect",inheritAttrs:!1,props:{...va.props,...Kd.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:o,expose:r}=t,l=V(),n=V(),a=T(()=>e.nodeKey||e.valueKey||"value"),i=Pae(e,t,{select:l,tree:n,key:a}),{cacheOptions:c,...u}=Nae(e,t,{select:l,tree:n,key:a}),d=Ft({});return r(d),vt(()=>{Object.assign(d,{...Pl(n.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Pl(l.value,["focus","blur"])})}),()=>rt(va,Ft({...i,ref:p=>l.value=p}),{...o,default:()=>[rt(Lae,{data:c.value}),rt(Kd,Ft({...u,ref:p=>n.value=p}))]})}});var Ud=Fe(Rae,[["__file","tree-select.vue"]]);Ud.install=e=>{e.component(Ud.name,Ud)};const Vae=Ud,Pv=Symbol(),Hae={key:-1,level:-1,data:{}};var sc=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(sc||{}),Bv=(e=>(e.ADD="add",e.DELETE="delete",e))(Bv||{});const a8={type:Number,default:26},Fae=He({data:{type:pe(Array),default:()=>ro([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:pe(Object),default:()=>ro({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:pe(Array),default:()=>ro([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:pe(Array),default:()=>ro([])},indent:{type:Number,default:16},itemSize:a8,icon:{type:qt},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:pe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:pe(Function)},perfMode:{type:Boolean,default:!0}}),Dae=He({node:{type:pe(Object),default:()=>ro(Hae)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:a8}),jae=He({node:{type:pe(Object),required:!0}}),i8="node-click",s8="node-expand",c8="node-collapse",u8="current-change",d8="check",p8="check-change",f8="node-contextmenu",Kae={[i8]:(e,t,o)=>e&&t&&o,[s8]:(e,t)=>e&&t,[c8]:(e,t)=>e&&t,[u8]:(e,t)=>e&&t,[d8]:(e,t)=>e&&t,[p8]:(e,t)=>e&&typeof t=="boolean",[f8]:(e,t,o)=>e&&t&&o},Wae={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Uae(e,t){const o=V(new Set),r=V(new Set),{emit:l}=_t();Te([()=>t.value,()=>e.defaultCheckedKeys],()=>et(()=>{y(e.defaultCheckedKeys)}),{immediate:!0});const n=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:x}=t.value,M=o.value,E=new Set;for(let I=x-1;I>=1;--I){const O=w.get(I);O&&O.forEach(F=>{const K=F.children;if(K){let R=!0,D=!1;for(const j of K){const Z=j.key;if(M.has(Z))D=!0;else if(E.has(Z)){R=!1,D=!0;break}else R=!1}R?M.add(F.key):D?(E.add(F.key),M.delete(F.key)):(M.delete(F.key),E.delete(F.key))}})}r.value=E},a=w=>o.value.has(w.key),i=w=>r.value.has(w.key),c=(w,x,M=!0)=>{const E=o.value,I=(O,F)=>{E[F?Bv.ADD:Bv.DELETE](O.key);const K=O.children;!e.checkStrictly&&K&&K.forEach(R=>{R.disabled||I(R,F)})};I(w,x),n(),M&&u(w,x)},u=(w,x)=>{const{checkedNodes:M,checkedKeys:E}=m(),{halfCheckedNodes:I,halfCheckedKeys:O}=h();l(d8,w.data,{checkedKeys:E,checkedNodes:M,halfCheckedKeys:O,halfCheckedNodes:I}),l(p8,w.data,x)};function d(w=!1){return m(w).checkedKeys}function p(w=!1){return m(w).checkedNodes}function f(){return h().halfCheckedKeys}function v(){return h().halfCheckedNodes}function m(w=!1){const x=[],M=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:E}=t.value;o.value.forEach(I=>{const O=E.get(I);O&&(!w||w&&O.isLeaf)&&(M.push(I),x.push(O.data))})}return{checkedKeys:M,checkedNodes:x}}function h(){const w=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:M}=t.value;r.value.forEach(E=>{const I=M.get(E);I&&(x.push(E),w.push(I.data))})}return{halfCheckedNodes:w,halfCheckedKeys:x}}function _(w){o.value.clear(),r.value.clear(),y(w)}function g(w,x){if(t!=null&&t.value&&e.showCheckbox){const M=t.value.treeNodeMap.get(w);M&&c(M,x,!1)}}function y(w){if(t!=null&&t.value){const{treeNodeMap:x}=t.value;if(e.showCheckbox&&x&&w)for(const M of w){const E=x.get(M);E&&!a(E)&&c(E,!0,!1)}}}return{updateCheckedKeys:n,toggleCheckbox:c,isChecked:a,isIndeterminate:i,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:v,setChecked:g,setCheckedKeys:_}}function qae(e,t){const o=V(new Set([])),r=V(new Set([])),l=T(()=>ut(e.filterMethod));function n(i){var c;if(!l.value)return;const u=new Set,d=r.value,p=o.value,f=[],v=((c=t.value)==null?void 0:c.treeNodes)||[],m=e.filterMethod;p.clear();function h(_){_.forEach(g=>{f.push(g),m!=null&&m(i,g.data)?f.forEach(w=>{u.add(w.key)}):g.isLeaf&&p.add(g.key);const y=g.children;if(y&&h(y),!g.isLeaf){if(!u.has(g.key))p.add(g.key);else if(y){let w=!0;for(const x of y)if(!p.has(x.key)){w=!1;break}w?d.add(g.key):d.delete(g.key)}}f.pop()})}return h(v),u}function a(i){return r.value.has(i.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:o,doFilter:n,isForceHiddenExpandIcon:a}}function Yae(e,t){const o=V(new Set(e.defaultExpandedKeys)),r=V(),l=Yt();Te(()=>e.currentNodeKey,me=>{r.value=me},{immediate:!0}),Te(()=>e.data,me=>{ge(me)},{immediate:!0});const{isIndeterminate:n,isChecked:a,toggleCheckbox:i,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v}=Uae(e,l),{doFilter:m,hiddenNodeKeySet:h,isForceHiddenExpandIcon:_}=qae(e,l),g=T(()=>{var me;return((me=e.props)==null?void 0:me.value)||sc.KEY}),y=T(()=>{var me;return((me=e.props)==null?void 0:me.children)||sc.CHILDREN}),w=T(()=>{var me;return((me=e.props)==null?void 0:me.disabled)||sc.DISABLED}),x=T(()=>{var me;return((me=e.props)==null?void 0:me.label)||sc.LABEL}),M=T(()=>{const me=o.value,Be=h.value,ye=[],Me=l.value&&l.value.treeNodes||[];function te(){const ce=[];for(let we=Me.length-1;we>=0;--we)ce.push(Me[we]);for(;ce.length;){const we=ce.pop();if(we&&(Be.has(we.key)||ye.push(we),me.has(we.key))){const Ae=we.children;if(Ae){const Oe=Ae.length;for(let xe=Oe-1;xe>=0;--xe)ce.push(Ae[xe])}}}}return te(),ye}),E=T(()=>M.value.length>0);function I(me){const Be=new Map,ye=new Map;let Me=1;function te(we,Ae=1,Oe=void 0){var xe;const Ne=[];for(const Se of we){const ke=K(Se),$e={level:Ae,key:ke,data:Se};$e.label=D(Se),$e.parent=Oe;const Pe=F(Se);$e.disabled=R(Se),$e.isLeaf=!Pe||Pe.length===0,Pe&&Pe.length&&($e.children=te(Pe,Ae+1,$e)),Ne.push($e),Be.set(ke,$e),ye.has(Ae)||ye.set(Ae,[]),(xe=ye.get(Ae))==null||xe.push($e)}return Ae>Me&&(Me=Ae),Ne}const ce=te(me);return{treeNodeMap:Be,levelTreeNodeMap:ye,maxLevel:Me,treeNodes:ce}}function O(me){const Be=m(me);Be&&(o.value=Be)}function F(me){return me[y.value]}function K(me){return me?me[g.value]:""}function R(me){return me[w.value]}function D(me){return me[x.value]}function j(me){o.value.has(me.key)?N(me):X(me)}function Z(me){o.value=new Set(me)}function Q(me,Be){t(i8,me.data,me,Be),J(me),e.expandOnClickNode&&j(me),e.showCheckbox&&e.checkOnClickNode&&!me.disabled&&i(me,!a(me),!0)}function J(me){ie(me)||(r.value=me.key,t(u8,me.data,me))}function L(me,Be){i(me,Be)}function X(me){const Be=o.value;if(l.value&&e.accordion){const{treeNodeMap:ye}=l.value;Be.forEach(Me=>{const te=ye.get(Me);me&&me.level===(te==null?void 0:te.level)&&Be.delete(Me)})}Be.add(me.key),t(s8,me.data,me)}function N(me){o.value.delete(me.key),t(c8,me.data,me)}function W(me){return o.value.has(me.key)}function re(me){return!!me.disabled}function ie(me){const Be=r.value;return Be!==void 0&&Be===me.key}function se(){var me,Be;if(r.value)return(Be=(me=l.value)==null?void 0:me.treeNodeMap.get(r.value))==null?void 0:Be.data}function ve(){return r.value}function le(me){r.value=me}function ge(me){et(()=>l.value=I(me))}function _e(me){var Be;const ye=Ct(me)?K(me):me;return(Be=l.value)==null?void 0:Be.treeNodeMap.get(ye)}return{tree:l,flattenTree:M,isNotEmpty:E,getKey:K,getChildren:F,toggleExpand:j,toggleCheckbox:i,isExpanded:W,isChecked:a,isIndeterminate:n,isDisabled:re,isCurrent:ie,isForceHiddenExpandIcon:_,handleNodeClick:Q,handleNodeCheck:L,getCurrentNode:se,getCurrentKey:ve,setCurrentKey:le,getCheckedKeys:c,getCheckedNodes:u,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v,filter:O,setData:ge,getNode:_e,expandNode:X,collapseNode:N,setExpandedKeys:Z}}var Gae=B({name:"ElTreeNodeContent",props:jae,setup(e){const t=Le(Pv),o=Ie("tree");return()=>{const r=e.node,{data:l}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:l}):rt("span",{class:o.be("node","label")},[r==null?void 0:r.label])}}});const Xae=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Zae=B({...B({name:"ElTreeNode"}),props:Dae,emits:Wae,setup(e,{emit:t}){const o=e,r=Le(Pv),l=Ie("tree"),n=T(()=>{var p;return(p=r==null?void 0:r.props.indent)!=null?p:16}),a=T(()=>{var p;return(p=r==null?void 0:r.props.icon)!=null?p:s0}),i=p=>{t("click",o.node,p)},c=()=>{t("toggle",o.node)},u=p=>{t("check",o.node,p)},d=p=>{var f,v,m,h;(m=(v=(f=r==null?void 0:r.instance)==null?void 0:f.vnode)==null?void 0:v.props)!=null&&m.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),r==null||r.ctx.emit(f8,p,(h=o.node)==null?void 0:h.data,o.node)};return(p,f)=>{var v,m,h;return b(),z("div",{ref:"node$",class:P([s(l).b("node"),s(l).is("expanded",p.expanded),s(l).is("current",p.current),s(l).is("focusable",!p.disabled),s(l).is("checked",!p.disabled&&p.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":p.expanded,"aria-disabled":p.disabled,"aria-checked":p.checked,"data-key":(v=p.node)==null?void 0:v.key,onClick:it(i,["stop"]),onContextmenu:d},[$("div",{class:P(s(l).be("node","content")),style:Qe({paddingLeft:`${(p.node.level-1)*s(n)}px`,height:p.itemSize+"px"})},[s(a)?(b(),de(s(Je),{key:0,class:P([s(l).is("leaf",!!((m=p.node)!=null&&m.isLeaf)),s(l).is("hidden",p.hiddenExpandIcon),{expanded:!((h=p.node)!=null&&h.isLeaf)&&p.expanded},s(l).be("node","expand-icon")]),onClick:it(c,["stop"])},{default:ne(()=>[(b(),de(St(s(a))))]),_:1},8,["class","onClick"])):ue("v-if",!0),p.showCheckbox?(b(),de(s(Nr),{key:1,"model-value":p.checked,indeterminate:p.indeterminate,disabled:p.disabled,onChange:u,onClick:f[0]||(f[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):ue("v-if",!0),oe(s(Gae),{node:p.node},null,8,["node"])],6)],42,Xae)}}});var Jae=Fe(Zae,[["__file","tree-node.vue"]]);const Qae=B({...B({name:"ElTreeV2"}),props:Fae,emits:Kae,setup(e,{expose:t,emit:o}){const r=e,l=Bo(),n=T(()=>r.itemSize);zt(Pv,{ctx:{emit:o,slots:l},props:r,instance:_t()}),zt(fl,void 0);const{t:a}=Nt(),i=Ie("tree"),{flattenTree:c,isNotEmpty:u,toggleExpand:d,isExpanded:p,isIndeterminate:f,isChecked:v,isDisabled:m,isCurrent:h,isForceHiddenExpandIcon:_,handleNodeClick:g,handleNodeCheck:y,toggleCheckbox:w,getCurrentNode:x,getCurrentKey:M,setCurrentKey:E,getCheckedKeys:I,getCheckedNodes:O,getHalfCheckedKeys:F,getHalfCheckedNodes:K,setChecked:R,setCheckedKeys:D,filter:j,setData:Z,getNode:Q,expandNode:J,collapseNode:L,setExpandedKeys:X}=Yae(r,o);return t({toggleCheckbox:w,getCurrentNode:x,getCurrentKey:M,setCurrentKey:E,getCheckedKeys:I,getCheckedNodes:O,getHalfCheckedKeys:F,getHalfCheckedNodes:K,setChecked:R,setCheckedKeys:D,filter:j,setData:Z,getNode:Q,expandNode:J,collapseNode:L,setExpandedKeys:X}),(N,W)=>{var re;return b(),z("div",{class:P([s(i).b(),{[s(i).m("highlight-current")]:N.highlightCurrent}]),role:"tree"},[s(u)?(b(),de(s(Gw),{key:0,"class-name":s(i).b("virtual-list"),data:s(c),total:s(c).length,height:N.height,"item-size":s(n),"perf-mode":N.perfMode},{default:ne(({data:ie,index:se,style:ve})=>[(b(),de(Jae,{key:ie[se].key,style:Qe(ve),node:ie[se],expanded:s(p)(ie[se]),"show-checkbox":N.showCheckbox,checked:s(v)(ie[se]),indeterminate:s(f)(ie[se]),"item-size":s(n),disabled:s(m)(ie[se]),current:s(h)(ie[se]),"hidden-expand-icon":s(_)(ie[se]),onClick:s(g),onToggle:s(d),onCheck:s(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(b(),z("div",{key:1,class:P(s(i).e("empty-block"))},[$("span",{class:P(s(i).e("empty-text"))},ze((re=N.emptyText)!=null?re:s(a)("el.tree.emptyText")),3)],2))],2)}}});var eie=Fe(Qae,[["__file","tree.vue"]]);const tie=xt(eie),h8=Symbol("uploadContextKey"),oie="ElUpload";class rie extends Error{constructor(t,o,r,l){super(t),this.name="UploadAjaxError",this.status=o,this.method=r,this.url=l}}function v8(e,t,o){let r;return o.response?r=`${o.response.error||o.response}`:o.responseText?r=`${o.responseText}`:r=`fail to ${t.method} ${e} ${o.status}`,new rie(r,o.status,t.method,e)}function lie(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const nie=e=>{typeof XMLHttpRequest>"u"&&So(oie,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,o=e.action;t.upload&&t.upload.addEventListener("progress",n=>{const a=n;a.percent=n.total>0?n.loaded/n.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[n,a]of Object.entries(e.data))Ge(a)&&a.length?r.append(n,...a):r.append(n,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(v8(o,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(v8(o,e,t));e.onSuccess(lie(t))}),t.open(e.method,o,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach((n,a)=>t.setRequestHeader(a,n));else for(const[n,a]of Object.entries(l))wo(a)||t.setRequestHeader(n,String(a));return t.send(r),t},m8=["text","picture","picture-card"];let aie=1;const Nv=()=>Date.now()+aie++,g8=He({action:{type:String,default:"#"},headers:{type:pe(Object)},method:{type:String,default:"post"},data:{type:pe([Object,Function,Promise]),default:()=>ro({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:pe(Array),default:()=>ro([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:m8,default:"text"},httpRequest:{type:pe(Function),default:nie},disabled:Boolean,limit:Number}),iie=He({...g8,beforeUpload:{type:pe(Function),default:jt},beforeRemove:{type:pe(Function)},onRemove:{type:pe(Function),default:jt},onChange:{type:pe(Function),default:jt},onPreview:{type:pe(Function),default:jt},onSuccess:{type:pe(Function),default:jt},onProgress:{type:pe(Function),default:jt},onError:{type:pe(Function),default:jt},onExceed:{type:pe(Function),default:jt}}),sie=He({files:{type:pe(Array),default:()=>ro([])},disabled:{type:Boolean,default:!1},handlePreview:{type:pe(Function),default:jt},listType:{type:String,values:m8,default:"text"}}),cie={remove:e=>!!e},uie=["onKeydown"],die=["src"],pie=["onClick"],fie=["title"],hie=["onClick"],vie=["onClick"],mie=B({...B({name:"ElUploadList"}),props:sie,emits:cie,setup(e,{emit:t}){const o=e,{t:r}=Nt(),l=Ie("upload"),n=Ie("icon"),a=Ie("list"),i=pr(),c=V(!1),u=T(()=>[l.b("list"),l.bm("list",o.listType),l.is("disabled",o.disabled)]),d=p=>{t("remove",p)};return(p,f)=>(b(),de(Sg,{tag:"ul",class:P(s(u)),name:s(a).b()},{default:ne(()=>[(b(!0),z(Xe,null,Tt(p.files,v=>(b(),z("li",{key:v.uid||v.name,class:P([s(l).be("list","item"),s(l).is(v.status),{focusing:c.value}]),tabindex:"0",onKeydown:Rt(m=>!s(i)&&d(v),["delete"]),onFocus:f[0]||(f[0]=m=>c.value=!0),onBlur:f[1]||(f[1]=m=>c.value=!1),onClick:f[2]||(f[2]=m=>c.value=!1)},[be(p.$slots,"default",{file:v},()=>[p.listType==="picture"||v.status!=="uploading"&&p.listType==="picture-card"?(b(),z("img",{key:0,class:P(s(l).be("list","item-thumbnail")),src:v.url,alt:""},null,10,die)):ue("v-if",!0),v.status==="uploading"||p.listType!=="picture-card"?(b(),z("div",{key:1,class:P(s(l).be("list","item-info"))},[$("a",{class:P(s(l).be("list","item-name")),onClick:it(m=>p.handlePreview(v),["prevent"])},[oe(s(Je),{class:P(s(n).m("document"))},{default:ne(()=>[oe(s(_3))]),_:1},8,["class"]),$("span",{class:P(s(l).be("list","item-file-name")),title:v.name},ze(v.name),11,fie)],10,pie),v.status==="uploading"?(b(),de(s(Lw),{key:0,type:p.listType==="picture-card"?"circle":"line","stroke-width":p.listType==="picture-card"?6:2,percentage:Number(v.percentage),style:Qe(p.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ue("v-if",!0)],2)):ue("v-if",!0),$("label",{class:P(s(l).be("list","item-status-label"))},[p.listType==="text"?(b(),de(s(Je),{key:0,class:P([s(n).m("upload-success"),s(n).m("circle-check")])},{default:ne(()=>[oe(s(Au))]),_:1},8,["class"])):["picture-card","picture"].includes(p.listType)?(b(),de(s(Je),{key:1,class:P([s(n).m("upload-success"),s(n).m("check")])},{default:ne(()=>[oe(s(Ya))]),_:1},8,["class"])):ue("v-if",!0)],2),s(i)?ue("v-if",!0):(b(),de(s(Je),{key:2,class:P(s(n).m("close")),onClick:m=>d(v)},{default:ne(()=>[oe(s(Mr))]),_:2},1032,["class","onClick"])),ue(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ue(" This is a bug which needs to be fixed "),ue(" TODO: Fix the incorrect navigation interaction "),s(i)?ue("v-if",!0):(b(),z("i",{key:3,class:P(s(n).m("close-tip"))},ze(s(r)("el.upload.deleteTip")),3)),p.listType==="picture-card"?(b(),z("span",{key:4,class:P(s(l).be("list","item-actions"))},[$("span",{class:P(s(l).be("list","item-preview")),onClick:m=>p.handlePreview(v)},[oe(s(Je),{class:P(s(n).m("zoom-in"))},{default:ne(()=>[oe(s(f0))]),_:1},8,["class"])],10,hie),s(i)?ue("v-if",!0):(b(),z("span",{key:0,class:P(s(l).be("list","item-delete")),onClick:m=>d(v)},[oe(s(Je),{class:P(s(n).m("delete"))},{default:ne(()=>[oe(s(b3))]),_:1},8,["class"])],10,vie))],2)):ue("v-if",!0)])],42,uie))),128)),be(p.$slots,"append")]),_:3},8,["class","name"]))}});var b8=Fe(mie,[["__file","upload-list.vue"]]);const gie=He({disabled:{type:Boolean,default:!1}}),bie={file:e=>Ge(e)},_ie=["onDrop","onDragover"],_8="ElUploadDrag",wie=B({...B({name:_8}),props:gie,emits:bie,setup(e,{emit:t}){const o=Le(h8);o||So(_8,"usage: ");const r=Ie("upload"),l=V(!1),n=pr(),a=c=>{if(n.value)return;l.value=!1,c.stopPropagation();const u=Array.from(c.dataTransfer.files),d=o.accept.value;if(!d){t("file",u);return}const p=u.filter(f=>{const{type:v,name:m}=f,h=m.includes(".")?`.${m.split(".").pop()}`:"",_=v.replace(/\/.*$/,"");return d.split(",").map(g=>g.trim()).filter(g=>g).some(g=>g.startsWith(".")?h===g:/\/\*$/.test(g)?_===g.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(g)?v===g:!1)});t("file",p)},i=()=>{n.value||(l.value=!0)};return(c,u)=>(b(),z("div",{class:P([s(r).b("dragger"),s(r).is("dragover",l.value)]),onDrop:it(a,["prevent"]),onDragover:it(i,["prevent"]),onDragleave:u[0]||(u[0]=it(d=>l.value=!1,["prevent"]))},[be(c.$slots,"default")],42,_ie))}});var yie=Fe(wie,[["__file","upload-dragger.vue"]]);const xie=He({...g8,beforeUpload:{type:pe(Function),default:jt},onRemove:{type:pe(Function),default:jt},onStart:{type:pe(Function),default:jt},onSuccess:{type:pe(Function),default:jt},onProgress:{type:pe(Function),default:jt},onError:{type:pe(Function),default:jt},onExceed:{type:pe(Function),default:jt}}),kie=["onKeydown"],Cie=["name","multiple","accept"],Sie=B({...B({name:"ElUploadContent",inheritAttrs:!1}),props:xie,setup(e,{expose:t}){const o=e,r=Ie("upload"),l=pr(),n=Yt({}),a=Yt(),i=h=>{if(h.length===0)return;const{autoUpload:_,limit:g,fileList:y,multiple:w,onStart:x,onExceed:M}=o;if(g&&y.length+h.length>g){M(h,y);return}w||(h=h.slice(0,1));for(const E of h){const I=E;I.uid=Nv(),x(I),_&&c(I)}},c=async h=>{if(a.value.value="",!o.beforeUpload)return d(h);let _,g={};try{const w=o.data,x=o.beforeUpload(h);g=xc(o.data)?Su(o.data):o.data,_=await x,xc(o.data)&&ir(w,g)&&(g=Su(o.data))}catch{_=!1}if(_===!1){o.onRemove(h);return}let y=h;_ instanceof Blob&&(_ instanceof File?y=_:y=new File([_],h.name,{type:h.type})),d(Object.assign(y,{uid:h.uid}),g)},u=async(h,_)=>ut(h)?h(_):h,d=async(h,_)=>{const{headers:g,data:y,method:w,withCredentials:x,name:M,action:E,onProgress:I,onSuccess:O,onError:F,httpRequest:K}=o;try{_=await u(_??y,h)}catch{o.onRemove(h);return}const{uid:R}=h,D={headers:g||{},withCredentials:x,file:h,data:_,method:w,filename:M,action:E,onProgress:Z=>{I(Z,h)},onSuccess:Z=>{O(Z,h),delete n.value[R]},onError:Z=>{F(Z,h),delete n.value[R]}},j=K(D);n.value[R]=j,j instanceof Promise&&j.then(D.onSuccess,D.onError)},p=h=>{const _=h.target.files;_&&i(Array.from(_))},f=()=>{l.value||(a.value.value="",a.value.click())},v=()=>{f()};return t({abort:h=>{NM(n.value).filter(h?([g])=>String(h.uid)===g:()=>!0).forEach(([g,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete n.value[g]})},upload:c}),(h,_)=>(b(),z("div",{class:P([s(r).b(),s(r).m(h.listType),s(r).is("drag",h.drag)]),tabindex:"0",onClick:f,onKeydown:Rt(it(v,["self"]),["enter","space"])},[h.drag?(b(),de(yie,{key:0,disabled:s(l),onFile:i},{default:ne(()=>[be(h.$slots,"default")]),_:3},8,["disabled"])):be(h.$slots,"default",{key:1}),$("input",{ref_key:"inputRef",ref:a,class:P(s(r).e("input")),name:h.name,multiple:h.multiple,accept:h.accept,type:"file",onChange:p,onClick:_[0]||(_[0]=it(()=>{},["stop"]))},null,42,Cie)],42,kie))}});var w8=Fe(Sie,[["__file","upload-content.vue"]]);const y8="ElUpload",x8=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Eie=(e,t)=>{const o=tS(e,"fileList",void 0,{passive:!0}),r=f=>o.value.find(v=>v.uid===f.uid);function l(f){var v;(v=t.value)==null||v.abort(f)}function n(f=["ready","uploading","success","fail"]){o.value=o.value.filter(v=>!f.includes(v.status))}const a=(f,v)=>{const m=r(v);m&&(console.error(f),m.status="fail",o.value.splice(o.value.indexOf(m),1),e.onError(f,m,o.value),e.onChange(m,o.value))},i=(f,v)=>{const m=r(v);m&&(e.onProgress(f,m,o.value),m.status="uploading",m.percentage=Math.round(f.percent))},c=(f,v)=>{const m=r(v);m&&(m.status="success",m.response=f,e.onSuccess(f,m,o.value),e.onChange(m,o.value))},u=f=>{wo(f.uid)&&(f.uid=Nv());const v={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(f)}catch(m){m.message,e.onError(m,v,o.value)}o.value=[...o.value,v],e.onChange(v,o.value)},d=async f=>{const v=f instanceof File?r(f):f;v||So(y8,"file to be removed not found");const m=h=>{l(h);const _=o.value;_.splice(_.indexOf(h),1),e.onRemove(h,_),x8(h)};e.beforeRemove?await e.beforeRemove(v,o.value)!==!1&&m(v):m(v)};function p(){o.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var v;return f&&((v=t.value)==null?void 0:v.upload(f))})}return Te(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(o.value=o.value.map(v=>{const{raw:m,url:h}=v;if(!h&&m)try{v.url=URL.createObjectURL(m)}catch(_){e.onError(_,v,o.value)}return v}))}),Te(o,f=>{for(const v of f)v.uid||(v.uid=Nv()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:l,clearFiles:n,handleError:a,handleProgress:i,handleStart:u,handleSuccess:c,handleRemove:d,submit:p,revokeFileObjectURL:x8}},$ie=B({...B({name:"ElUpload"}),props:iie,setup(e,{expose:t}){const o=e,r=pr(),l=Yt(),{abort:n,submit:a,clearFiles:i,uploadFiles:c,handleStart:u,handleError:d,handleRemove:p,handleSuccess:f,handleProgress:v,revokeFileObjectURL:m}=Eie(o,l),h=T(()=>o.listType==="picture-card"),_=T(()=>({...o,fileList:c.value,onStart:u,onProgress:v,onSuccess:f,onError:d,onRemove:p}));return Zt(()=>{c.value.forEach(m)}),zt(h8,{accept:so(o,"accept")}),t({abort:n,submit:a,clearFiles:i,handleStart:u,handleRemove:p}),(g,y)=>(b(),z("div",null,[s(h)&&g.showFileList?(b(),de(b8,{key:0,disabled:s(r),"list-type":g.listType,files:s(c),"handle-preview":g.onPreview,onRemove:s(p)},tl({append:ne(()=>[oe(w8,Et({ref_key:"uploadRef",ref:l},s(_)),{default:ne(()=>[g.$slots.trigger?be(g.$slots,"trigger",{key:0}):ue("v-if",!0),!g.$slots.trigger&&g.$slots.default?be(g.$slots,"default",{key:1}):ue("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:ne(({file:w})=>[be(g.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ue("v-if",!0),!s(h)||s(h)&&!g.showFileList?(b(),de(w8,Et({key:1,ref_key:"uploadRef",ref:l},s(_)),{default:ne(()=>[g.$slots.trigger?be(g.$slots,"trigger",{key:0}):ue("v-if",!0),!g.$slots.trigger&&g.$slots.default?be(g.$slots,"default",{key:1}):ue("v-if",!0)]),_:3},16)):ue("v-if",!0),g.$slots.trigger?be(g.$slots,"default",{key:2}):ue("v-if",!0),be(g.$slots,"tip"),!s(h)&&g.showFileList?(b(),de(b8,{key:3,disabled:s(r),"list-type":g.listType,files:s(c),"handle-preview":g.onPreview,onRemove:s(p)},tl({_:2},[g.$slots.file?{name:"default",fn:ne(({file:w})=>[be(g.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ue("v-if",!0)]))}});var Tie=Fe($ie,[["__file","upload.vue"]]);const zie=xt(Tie),Mie=He({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:pe([String,Array]),default:"Element Plus"},font:{type:pe(Object)},gap:{type:pe(Array),default:()=>[100,100]},offset:{type:pe(Array)}});function Aie(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Oie(e){return Object.keys(e).map(t=>`${Aie(t)}: ${e[t]};`).join(" ")}function Iie(){return window.devicePixelRatio||1}const Pie=(e,t)=>{let o=!1;return e.removedNodes.length&&t&&(o=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(o=!0),o},k8=3;function Lv(e,t,o=1){const r=document.createElement("canvas"),l=r.getContext("2d"),n=e*o,a=t*o;return r.setAttribute("width",`${n}px`),r.setAttribute("height",`${a}px`),l.save(),[l,r,n,a]}function Bie(){function e(t,o,r,l,n,a,i,c){const[u,d,p,f]=Lv(l,n,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,p,f);else{const{color:re,fontSize:ie,fontStyle:se,fontWeight:ve,fontFamily:le,textAlign:ge,textBaseline:_e}=a,me=Number(ie)*r;u.font=`${se} normal ${ve} ${me}px/${n}px ${le}`,u.fillStyle=re,u.textAlign=ge,u.textBaseline=_e;const Be=Array.isArray(t)?t:[t];Be==null||Be.forEach((ye,Me)=>{u.fillText(ye??"",p/2,Me*(me+k8*r))})}const v=Math.PI/180*Number(o),m=Math.max(l,n),[h,_,g]=Lv(m,m,r);h.translate(g/2,g/2),h.rotate(v),p>0&&f>0&&h.drawImage(d,-p/2,-f/2);function y(re,ie){const se=re*Math.cos(v)-ie*Math.sin(v),ve=re*Math.sin(v)+ie*Math.cos(v);return[se,ve]}let w=0,x=0,M=0,E=0;const I=p/2,O=f/2;[[0-I,0-O],[0+I,0-O],[0+I,0+O],[0-I,0+O]].forEach(([re,ie])=>{const[se,ve]=y(re,ie);w=Math.min(w,se),x=Math.max(x,se),M=Math.min(M,ve),E=Math.max(E,ve)});const K=w+g/2,R=M+g/2,D=x-w,j=E-M,Z=i*r,Q=c*r,J=(D+Z)*2,L=j+Q,[X,N]=Lv(J,L);function W(re=0,ie=0){X.drawImage(_,K,R,D,j,re,ie,D,j)}return W(),W(D+Z,-j/2-Q/2),W(D+Z,+j/2+Q/2),[N.toDataURL(),J/r,L/r]}return e}const Nie=B({...B({name:"ElWatermark"}),props:Mie,setup(e){const t=e,o={position:"relative"},r=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.color)!=null?R:"rgba(0,0,0,.15)"}),l=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontSize)!=null?R:16}),n=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontWeight)!=null?R:"normal"}),a=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontStyle)!=null?R:"normal"}),i=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.fontFamily)!=null?R:"sans-serif"}),c=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.textAlign)!=null?R:"center"}),u=T(()=>{var K,R;return(R=(K=t.font)==null?void 0:K.textBaseline)!=null?R:"top"}),d=T(()=>t.gap[0]),p=T(()=>t.gap[1]),f=T(()=>d.value/2),v=T(()=>p.value/2),m=T(()=>{var K,R;return(R=(K=t.offset)==null?void 0:K[0])!=null?R:f.value}),h=T(()=>{var K,R;return(R=(K=t.offset)==null?void 0:K[1])!=null?R:v.value}),_=()=>{const K={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let R=m.value-f.value,D=h.value-v.value;return R>0&&(K.left=`${R}px`,K.width=`calc(100% - ${R}px)`,R=0),D>0&&(K.top=`${D}px`,K.height=`calc(100% - ${D}px)`,D=0),K.backgroundPosition=`${R}px ${D}px`,K},g=Yt(null),y=Yt(),w=V(!1),x=()=>{y.value&&(y.value.remove(),y.value=void 0)},M=(K,R)=>{var D;g.value&&y.value&&(w.value=!0,y.value.setAttribute("style",Oie({..._(),backgroundImage:`url('${K}')`,backgroundSize:`${Math.floor(R)}px`})),(D=g.value)==null||D.append(y.value),setTimeout(()=>{w.value=!1}))},E=K=>{let R=120,D=64;const j=t.image,Z=t.content,Q=t.width,J=t.height;if(!j&&K.measureText){K.font=`${Number(l.value)}px ${i.value}`;const L=Array.isArray(Z)?Z:[Z],X=L.map(N=>{const W=K.measureText(N);return[W.width,W.fontBoundingBoxAscent!==void 0?W.fontBoundingBoxAscent+W.fontBoundingBoxDescent:W.actualBoundingBoxAscent+W.actualBoundingBoxDescent]});R=Math.ceil(Math.max(...X.map(N=>N[0]))),D=Math.ceil(Math.max(...X.map(N=>N[1])))*L.length+(L.length-1)*k8}return[Q??R,J??D]},I=Bie(),O=()=>{const R=document.createElement("canvas").getContext("2d"),D=t.image,j=t.content,Z=t.rotate;if(R){y.value||(y.value=document.createElement("div"));const Q=Iie(),[J,L]=E(R),X=N=>{const[W,re]=I(N||"",Z,Q,J,L,{color:r.value,fontSize:l.value,fontStyle:a.value,fontWeight:n.value,fontFamily:i.value,textAlign:c.value,textBaseline:u.value},d.value,p.value);M(W,re)};if(D){const N=new Image;N.onload=()=>{X(N)},N.onerror=()=>{X(j)},N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=D}else X(j)}};return vt(()=>{O()}),Te(()=>t,()=>{O()},{deep:!0,flush:"post"}),Zt(()=>{x()}),X7(g,K=>{w.value||K.forEach(R=>{Pie(R,y.value)&&(x(),O())})},{attributes:!0,subtree:!0,childList:!0}),(K,R)=>(b(),z("div",{ref_key:"containerRef",ref:g,style:Qe([o])},[be(K.$slots,"default")],4))}});var Lie=Fe(Nie,[["__file","watermark.vue"]]);const Rie=xt(Lie);var Vie=[nj,fj,EW,hne,OW,RW,S6,YW,GW,Vo,N6,lq,sq,_q,wq,xY,fY,$Y,Nr,Nq,C4,BY,XY,ZY,jY,kG,JD,MG,AG,OG,IG,PG,YX,rZ,lZ,bZ,pw,MZ,yJ,xJ,kJ,kw,cK,uK,Je,dQ,Cw,Wo,Sw,kQ,HQ,FQ,DQ,jQ,GQ,Gee,Qee,ate,x6,Lw,A4,Gq,Yq,yte,Ste,AY,Kl,va,Cd,See,foe,_oe,woe,Yoe,Joe,fy,ire,hre,vre,Sre,Ole,Ile,fne,$ne,Tne,js,One,VU,Nne,Hne,Fne,er,iae,wae,Iae,Vae,tie,zie,Rie];const Zr="ElInfiniteScroll",Hie=50,Fie={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Rv=(e,t)=>Object.entries(Fie).reduce((o,[r,l])=>{var n,a;const{type:i,default:c}=l,u=e.getAttribute(`infinite-scroll-${r}`);let d=(a=(n=t[u])!=null?n:u)!=null?a:c;return d=d==="false"?!1:d,d=i(d),o[r]=Number.isNaN(d)?c:d,o},{}),C8=e=>{const{observer:t}=e[Zr];t&&(t.disconnect(),delete e[Zr].observer)},Die=(e,t)=>{const{container:o,containerEl:r,instance:l,observer:n,lastScrollTop:a}=e[Zr],{disabled:i,distance:c}=Rv(e,l),{clientHeight:u,scrollHeight:d,scrollTop:p}=r,f=p-a;if(e[Zr].lastScrollTop=p,n||i||f<0)return;let v=!1;if(o===e)v=d-(u+p)<=c;else{const{clientTop:m,scrollHeight:h}=e,_=nS(e,r);v=p+u>=_+m+h-c}v&&t.call(l)};function Vv(e,t){const{containerEl:o,instance:r}=e[Zr],{disabled:l}=Rv(e,r);l||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?t.call(r):C8(e))}const Hv={async mounted(e,t){const{instance:o,value:r}=t;ut(r)||So(Zr,"'v-infinite-scroll' binding value must be a function"),await et();const{delay:l,immediate:n}=Rv(e,o),a=i0(e,!0),i=a===window?document.documentElement:a,c=ta(Die.bind(null,e,r),l);if(a){if(e[Zr]={instance:o,container:a,containerEl:i,delay:l,cb:r,onScroll:c,lastScrollTop:i.scrollTop},n){const u=new MutationObserver(ta(Vv.bind(null,e,r),Hie));e[Zr].observer=u,u.observe(e,{childList:!0,subtree:!0}),Vv(e,r)}a.addEventListener("scroll",c)}},unmounted(e){const{container:t,onScroll:o}=e[Zr];t==null||t.removeEventListener("scroll",o),C8(e)},async updated(e){if(!e[Zr])await et();else{const{containerEl:t,cb:o,observer:r}=e[Zr];t.clientHeight&&r&&Vv(e,o)}}};Hv.install=e=>{e.directive("InfiniteScroll",Hv)};const jie=Hv;function Kie(e){let t;const o=V(!1),r=Ft({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(f){r.text=f}function n(){const f=r.parent,v=p.ns;if(!f.vLoadingAddClassList){let m=f.getAttribute("loading-number");m=Number.parseInt(m)-1,m?f.setAttribute("loading-number",m.toString()):(sr(f,v.bm("parent","relative")),f.removeAttribute("loading-number")),sr(f,v.bm("parent","hidden"))}a(),d.unmount()}function a(){var f,v;(v=(f=p.$el)==null?void 0:f.parentNode)==null||v.removeChild(p.$el)}function i(){var f;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=window.setTimeout(c,400),r.visible=!1,(f=e.closed)==null||f.call(e))}function c(){if(!o.value)return;const f=r.parent;o.value=!1,f.vLoadingAddClassList=void 0,n()}const d=Ig(B({name:"ElLoading",setup(f,{expose:v}){const{ns:m,zIndex:h}=qu("loading");return v({ns:m,zIndex:h}),()=>{const _=r.spinner||r.svg,g=rt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",..._?{innerHTML:_}:{}},[rt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=r.text?rt("p",{class:m.b("text")},[r.text]):void 0;return rt(_o,{name:m.b("fade"),onAfterLeave:c},{default:ne(()=>[ht(oe("div",{style:{backgroundColor:r.background||""},class:[m.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[rt("div",{class:m.b("spinner")},[g,y])]),[[Pt,r.visible]])])})}}})),p=d.mount(document.createElement("div"));return{...Ao(r),setText:l,removeElLoadingChild:a,close:i,handleAfterLeave:c,vm:p,get $el(){return p.$el}}}let qd;const Fv=function(e={}){if(!Bt)return;const t=Wie(e);if(t.fullscreen&&qd)return qd;const o=Kie({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(qd=void 0)}});Uie(t,t.parent,o),S8(t,t.parent,o),t.parent.vLoadingAddClassList=()=>S8(t,t.parent,o);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(o.$el),et(()=>o.visible.value=t.visible),t.fullscreen&&(qd=o),o},Wie=e=>{var t,o,r,l;let n;return ft(e.target)?n=(t=document.querySelector(e.target))!=null?t:document.body:n=e.target||document.body,{parent:n===document.body||e.body?document.body:n,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:n===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,target:n}},Uie=async(e,t,o)=>{const{nextZIndex:r}=o.vm.zIndex||o.vm._.exposed.zIndex,l={};if(e.fullscreen)o.originalPosition.value=bn(document.body,"position"),o.originalOverflow.value=bn(document.body,"overflow"),l.zIndex=r();else if(e.parent===document.body){o.originalPosition.value=bn(document.body,"position"),await et();for(const n of["top","left"]){const a=n==="top"?"scrollTop":"scrollLeft";l[n]=`${e.target.getBoundingClientRect()[n]+document.body[a]+document.documentElement[a]-Number.parseInt(bn(document.body,`margin-${n}`),10)}px`}for(const n of["height","width"])l[n]=`${e.target.getBoundingClientRect()[n]}px`}else o.originalPosition.value=bn(t,"position");for(const[n,a]of Object.entries(l))o.$el.style[n]=a},S8=(e,t,o)=>{const r=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?sr(t,r.bm("parent","relative")):il(t,r.bm("parent","relative")),e.fullscreen&&e.lock?il(t,r.bm("parent","hidden")):sr(t,r.bm("parent","hidden"))},Dv=Symbol("ElLoading"),E8=(e,t)=>{var o,r,l,n;const a=t.instance,i=f=>Ct(t.value)?t.value[f]:void 0,c=f=>{const v=ft(f)&&(a==null?void 0:a[f])||f;return v&&V(v)},u=f=>c(i(f)||e.getAttribute(`element-loading-${en(f)}`)),d=(o=i("fullscreen"))!=null?o:t.modifiers.fullscreen,p={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=i("target"))!=null?r:d?void 0:e,body:(l=i("body"))!=null?l:t.modifiers.body,lock:(n=i("lock"))!=null?n:t.modifiers.lock};e[Dv]={options:p,instance:Fv(p)}},qie=(e,t)=>{for(const o of Object.keys(t))Wt(t[o])&&(t[o].value=e[o])},$8={mounted(e,t){t.value&&E8(e,t)},updated(e,t){const o=e[Dv];t.oldValue!==t.value&&(t.value&&!t.oldValue?E8(e,t):t.value&&t.oldValue?Ct(t.value)&&qie(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Dv])==null||t.instance.close()}},Yie={install(e){e.directive("loading",$8),e.config.globalProperties.$loading=Fv},directive:$8,service:Fv},T8=["success","info","warning","error"],hr=ro({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Bt?document.body:void 0}),Gie=He({customClass:{type:String,default:hr.customClass},center:{type:Boolean,default:hr.center},dangerouslyUseHTMLString:{type:Boolean,default:hr.dangerouslyUseHTMLString},duration:{type:Number,default:hr.duration},icon:{type:qt,default:hr.icon},id:{type:String,default:hr.id},message:{type:pe([String,Object,Function]),default:hr.message},onClose:{type:pe(Function),required:!1},showClose:{type:Boolean,default:hr.showClose},type:{type:String,values:T8,default:hr.type},offset:{type:Number,default:hr.offset},zIndex:{type:Number,default:hr.zIndex},grouping:{type:Boolean,default:hr.grouping},repeatNum:{type:Number,default:hr.repeatNum}}),Xie={destroy:()=>!0},Jr=tm([]),Zie=e=>{const t=Jr.findIndex(l=>l.id===e),o=Jr[t];let r;return t>0&&(r=Jr[t-1]),{current:o,prev:r}},Jie=e=>{const{prev:t}=Zie(e);return t?t.vm.exposed.bottom.value:0},Qie=(e,t)=>Jr.findIndex(r=>r.id===e)>0?20:t,ese=["id"],tse=["innerHTML"],ose=B({...B({name:"ElMessage"}),props:Gie,emits:Xie,setup(e,{expose:t}){const o=e,{Close:r}=h0,{ns:l,zIndex:n}=qu("message"),{currentZIndex:a,nextZIndex:i}=n,c=V(),u=V(!1),d=V(0);let p;const f=T(()=>o.type?o.type==="error"?"danger":o.type:"info"),v=T(()=>{const I=o.type;return{[l.bm("icon",I)]:I&&_n[I]}}),m=T(()=>o.icon||_n[o.type]||""),h=T(()=>Jie(o.id)),_=T(()=>Qie(o.id,o.offset)+h.value),g=T(()=>d.value+_.value),y=T(()=>({top:`${_.value}px`,zIndex:a.value}));function w(){o.duration!==0&&({stop:p}=qn(()=>{M()},o.duration))}function x(){p==null||p()}function M(){u.value=!1}function E({code:I}){I===tt.esc&&M()}return vt(()=>{w(),i(),u.value=!0}),Te(()=>o.repeatNum,()=>{x(),w()}),eo(document,"keydown",E),jo(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:g,close:M}),(I,O)=>(b(),de(_o,{name:s(l).b("fade"),onBeforeLeave:I.onClose,onAfterLeave:O[0]||(O[0]=F=>I.$emit("destroy")),persisted:""},{default:ne(()=>[ht($("div",{id:I.id,ref_key:"messageRef",ref:c,class:P([s(l).b(),{[s(l).m(I.type)]:I.type&&!I.icon},s(l).is("center",I.center),s(l).is("closable",I.showClose),I.customClass]),style:Qe(s(y)),role:"alert",onMouseenter:x,onMouseleave:w},[I.repeatNum>1?(b(),de(s(S6),{key:0,value:I.repeatNum,type:s(f),class:P(s(l).e("badge"))},null,8,["value","type","class"])):ue("v-if",!0),s(m)?(b(),de(s(Je),{key:1,class:P([s(l).e("icon"),s(v)])},{default:ne(()=>[(b(),de(St(s(m))))]),_:1},8,["class"])):ue("v-if",!0),be(I.$slots,"default",{},()=>[I.dangerouslyUseHTMLString?(b(),z(Xe,{key:1},[ue(" Caution here, message could've been compromised, never use user's input as message "),$("p",{class:P(s(l).e("content")),innerHTML:I.message},null,10,tse)],2112)):(b(),z("p",{key:0,class:P(s(l).e("content"))},ze(I.message),3))]),I.showClose?(b(),de(s(Je),{key:2,class:P(s(l).e("closeBtn")),onClick:it(M,["stop"])},{default:ne(()=>[oe(s(r))]),_:1},8,["class","onClick"])):ue("v-if",!0)],46,ese),[[Pt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var rse=Fe(ose,[["__file","message.vue"]]);let lse=1;const z8=e=>{const t=!e||ft(e)||Qt(e)||ut(e)?{message:e}:e,o={...hr,...t};if(!o.appendTo)o.appendTo=document.body;else if(ft(o.appendTo)){let r=document.querySelector(o.appendTo);zr(r)||(r=document.body),o.appendTo=r}return o},nse=e=>{const t=Jr.indexOf(e);if(t===-1)return;Jr.splice(t,1);const{handler:o}=e;o.close()},ase=({appendTo:e,...t},o)=>{const r=`message_${lse++}`,l=t.onClose,n=document.createElement("div"),a={...t,id:r,onClose:()=>{l==null||l(),nse(d)},onDestroy:()=>{Ra(null,n)}},i=oe(rse,a,ut(a.message)||Qt(a.message)?{default:ut(a.message)?a.message:()=>a.message}:null);i.appContext=o||Ci._context,Ra(i,n),e.appendChild(n.firstElementChild);const c=i.component,d={id:r,vnode:i,vm:c,handler:{close:()=>{c.exposed.visible.value=!1}},props:i.component.props};return d},Ci=(e={},t)=>{if(!Bt)return{close:()=>{}};if(ct(V0.max)&&Jr.length>=V0.max)return{close:()=>{}};const o=z8(e);if(o.grouping&&Jr.length){const l=Jr.find(({vnode:n})=>{var a;return((a=n.props)==null?void 0:a.message)===o.message});if(l)return l.props.repeatNum+=1,l.props.type=o.type,l.handler}const r=ase(o,t);return Jr.push(r),r.handler};T8.forEach(e=>{Ci[e]=(t={},o)=>{const r=z8(t);return Ci({...r,type:e},o)}});function ise(e){for(const t of Jr)(!e||e===t.props.type)&&t.handler.close()}Ci.closeAll=ise,Ci._context=null;const sse=L3(Ci,"$message"),cse=B({name:"ElMessageBox",directives:{TrapFocus:CU},components:{ElButton:Vo,ElFocusTrap:od,ElInput:Wo,ElOverlay:Bh,ElIcon:Je,...h0},inheritAttrs:!1,props:{buttonSize:{type:String,validator:g0},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:o,zIndex:r,ns:l,size:n}=qu("message-box",T(()=>e.buttonSize)),{t:a}=o,{nextZIndex:i}=r,c=V(!1),u=Ft({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=T(()=>{const Q=u.type;return{[l.bm("icon",Q)]:Q&&_n[Q]}}),p=dr(),f=dr(),v=T(()=>u.icon||_n[u.type]||""),m=T(()=>!!u.message),h=V(),_=V(),g=V(),y=V(),w=V(),x=T(()=>u.confirmButtonClass);Te(()=>u.inputValue,async Q=>{await et(),e.boxType==="prompt"&&Q!==null&&R()},{immediate:!0}),Te(()=>c.value,Q=>{var J,L;Q&&(e.boxType!=="prompt"&&(u.autofocus?g.value=(L=(J=w.value)==null?void 0:J.$el)!=null?L:h.value:g.value=h.value),u.zIndex=i()),e.boxType==="prompt"&&(Q?et().then(()=>{var X;y.value&&y.value.$el&&(u.autofocus?g.value=(X=D())!=null?X:h.value:g.value=h.value)}):(u.editorErrorMessage="",u.validateError=!1))});const M=T(()=>e.draggable);H3(h,_,M),vt(async()=>{await et(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),Zt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){c.value&&(c.value=!1,et(()=>{u.action&&t("action",u.action)}))}const I=()=>{e.closeOnClickModal&&K(u.distinguishCancelAndClose?"close":"cancel")},O=M0(I),F=Q=>{if(u.inputType!=="textarea")return Q.preventDefault(),K("confirm")},K=Q=>{var J;e.boxType==="prompt"&&Q==="confirm"&&!R()||(u.action=Q,u.beforeClose?(J=u.beforeClose)==null||J.call(u,Q,u,E):E())},R=()=>{if(e.boxType==="prompt"){const Q=u.inputPattern;if(Q&&!Q.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const J=u.inputValidator;if(typeof J=="function"){const L=J(u.inputValue);if(L===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof L=="string")return u.editorErrorMessage=L,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const Q=y.value.$refs;return Q.input||Q.textarea},j=()=>{K("close")},Z=()=>{e.closeOnPressEscape&&j()};return e.lockScroll&&j3(c),{...Ao(u),ns:l,overlayEvent:O,visible:c,hasMessage:m,typeClass:d,contentId:p,inputId:f,btnSize:n,iconComponent:v,confirmButtonClasses:x,rootRef:h,focusStartRef:g,headerRef:_,inputRef:y,confirmRef:w,doClose:E,handleClose:j,onCloseRequested:Z,handleWrapperClick:I,handleInputEnter:F,handleAction:K,t:a}}}),use=["aria-label","aria-describedby"],dse=["aria-label"],pse=["id"];function fse(e,t,o,r,l,n){const a=ot("el-icon"),i=ot("close"),c=ot("el-input"),u=ot("el-button"),d=ot("el-focus-trap"),p=ot("el-overlay");return b(),de(_o,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ne(()=>[ht(oe(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ne(()=>[$("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:P(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[oe(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ne(()=>[$("div",{ref:"rootRef",class:P([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=it(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(b(),z("div",{key:0,ref:"headerRef",class:P(e.ns.e("header"))},[$("div",{class:P(e.ns.e("title"))},[e.iconComponent&&e.center?(b(),de(a,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),$("span",null,ze(e.title),1)],2),e.showClose?(b(),z("button",{key:0,type:"button",class:P(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Rt(it(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[oe(a,{class:P(e.ns.e("close"))},{default:ne(()=>[oe(i)]),_:1},8,["class"])],42,dse)):ue("v-if",!0)],2)):ue("v-if",!0),$("div",{id:e.contentId,class:P(e.ns.e("content"))},[$("div",{class:P(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(b(),de(a,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ne(()=>[(b(),de(St(e.iconComponent)))]),_:1},8,["class"])):ue("v-if",!0),e.hasMessage?(b(),z("div",{key:1,class:P(e.ns.e("message"))},[be(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(b(),de(St(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(b(),de(St(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ne(()=>[$t(ze(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ue("v-if",!0)],2),ht($("div",{class:P(e.ns.e("input"))},[oe(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:P({invalid:e.validateError}),onKeydown:Rt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),$("div",{class:P(e.ns.e("errormsg")),style:Qe({visibility:e.editorErrorMessage?"visible":"hidden"})},ze(e.editorErrorMessage),7)],2),[[Pt,e.showInput]])],10,pse),$("div",{class:P(e.ns.e("btns"))},[e.showCancelButton?(b(),de(u,{key:0,loading:e.cancelButtonLoading,class:P([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Rt(it(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ne(()=>[$t(ze(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ue("v-if",!0),ht(oe(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:P([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Rt(it(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ne(()=>[$t(ze(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Pt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,use)]),_:3},8,["z-index","overlay-class","mask"]),[[Pt,e.visible]])]),_:3})}var hse=Fe(cse,[["render",fse],["__file","index.vue"]]);const cc=new Map,vse=e=>{let t=document.body;return e.appendTo&&(ft(e.appendTo)&&(t=document.querySelector(e.appendTo)),zr(e.appendTo)&&(t=e.appendTo),zr(t)||(t=document.body)),t},mse=(e,t,o=null)=>{const r=oe(hse,e,ut(e.message)||Qt(e.message)?{default:ut(e.message)?e.message:()=>e.message}:null);return r.appContext=o,Ra(r,t),vse(e).appendChild(t.firstElementChild),r.component},gse=()=>document.createElement("div"),bse=(e,t)=>{const o=gse();e.onVanish=()=>{Ra(null,o),cc.delete(l)},e.onAction=n=>{const a=cc.get(l);let i;e.showInput?i={value:l.inputValue,action:n}:i=n,e.callback?e.callback(i,r.proxy):n==="cancel"||n==="close"?e.distinguishCancelAndClose&&n!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(i)};const r=mse(e,o,t),l=r.proxy;for(const n in e)It(e,n)&&!It(l.$props,n)&&(l[n]=e[n]);return l.visible=!0,l};function Si(e,t=null){if(!Bt)return Promise.reject();let o;return ft(e)||Qt(e)?e={message:e}:o=e.callback,new Promise((r,l)=>{const n=bse(e,t??Si._context);cc.set(n,{options:e,callback:o,resolve:r,reject:l})})}const _se=["alert","confirm","prompt"],wse={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};_se.forEach(e=>{Si[e]=yse(e)});function yse(e){return(t,o,r,l)=>{let n="";return Ct(o)?(r=o,n=""):ko(o)?n="":n=o,Si(Object.assign({title:n,message:t,type:"",...wse[e]},r,{boxType:e}),l)}}Si.close=()=>{cc.forEach((e,t)=>{t.doClose()}),cc.clear()},Si._context=null;const An=Si;An.install=e=>{An._context=e._context,e.config.globalProperties.$msgbox=An,e.config.globalProperties.$messageBox=An,e.config.globalProperties.$alert=An.alert,e.config.globalProperties.$confirm=An.confirm,e.config.globalProperties.$prompt=An.prompt};const xse=An,M8=["success","info","warning","error"],kse=He({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:qt},id:{type:String,default:""},message:{type:pe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:pe(Function),default:()=>{}},onClose:{type:pe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...M8,""],default:""},zIndex:Number}),Cse={destroy:()=>!0},Sse=["id"],Ese=["textContent"],$se={key:0},Tse=["innerHTML"],zse=B({...B({name:"ElNotification"}),props:kse,emits:Cse,setup(e,{expose:t}){const o=e,{ns:r,zIndex:l}=qu("notification"),{nextZIndex:n,currentZIndex:a}=l,{Close:i}=N3,c=V(!1);let u;const d=T(()=>{const w=o.type;return w&&_n[o.type]?r.m(w):""}),p=T(()=>o.type&&_n[o.type]||o.icon),f=T(()=>o.position.endsWith("right")?"right":"left"),v=T(()=>o.position.startsWith("top")?"top":"bottom"),m=T(()=>{var w;return{[v.value]:`${o.offset}px`,zIndex:(w=o.zIndex)!=null?w:a.value}});function h(){o.duration>0&&({stop:u}=qn(()=>{c.value&&g()},o.duration))}function _(){u==null||u()}function g(){c.value=!1}function y({code:w}){w===tt.delete||w===tt.backspace?_():w===tt.esc?c.value&&g():h()}return vt(()=>{h(),n(),c.value=!0}),eo(document,"keydown",y),t({visible:c,close:g}),(w,x)=>(b(),de(_o,{name:s(r).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:x[1]||(x[1]=M=>w.$emit("destroy")),persisted:""},{default:ne(()=>[ht($("div",{id:w.id,class:P([s(r).b(),w.customClass,s(f)]),style:Qe(s(m)),role:"alert",onMouseenter:_,onMouseleave:h,onClick:x[0]||(x[0]=(...M)=>w.onClick&&w.onClick(...M))},[s(p)?(b(),de(s(Je),{key:0,class:P([s(r).e("icon"),s(d)])},{default:ne(()=>[(b(),de(St(s(p))))]),_:1},8,["class"])):ue("v-if",!0),$("div",{class:P(s(r).e("group"))},[$("h2",{class:P(s(r).e("title")),textContent:ze(w.title)},null,10,Ese),ht($("div",{class:P(s(r).e("content")),style:Qe(w.title?void 0:{margin:0})},[be(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(b(),z(Xe,{key:1},[ue(" Caution here, message could've been compromised, never use user's input as message "),$("p",{innerHTML:w.message},null,8,Tse)],2112)):(b(),z("p",$se,ze(w.message),1))])],6),[[Pt,w.message]]),w.showClose?(b(),de(s(Je),{key:0,class:P(s(r).e("closeBtn")),onClick:it(g,["stop"])},{default:ne(()=>[oe(s(i))]),_:1},8,["class","onClick"])):ue("v-if",!0)],2)],46,Sse),[[Pt,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Mse=Fe(zse,[["__file","notification.vue"]]);const Yd={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},jv=16;let Ase=1;const Ei=function(e={},t=null){if(!Bt)return{close:()=>{}};(typeof e=="string"||Qt(e))&&(e={message:e});const o=e.position||"top-right";let r=e.offset||0;Yd[o].forEach(({vm:d})=>{var p;r+=(((p=d.el)==null?void 0:p.offsetHeight)||0)+jv}),r+=jv;const l=`notification_${Ase++}`,n=e.onClose,a={...e,offset:r,id:l,onClose:()=>{Ose(l,o,n)}};let i=document.body;zr(e.appendTo)?i=e.appendTo:ft(e.appendTo)&&(i=document.querySelector(e.appendTo)),zr(i)||(i=document.body);const c=document.createElement("div"),u=oe(Mse,a,Qt(a.message)?{default:()=>a.message}:null);return u.appContext=t??Ei._context,u.props.onDestroy=()=>{Ra(null,c)},Ra(u,c),Yd[o].push({vm:u}),i.appendChild(c.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};M8.forEach(e=>{Ei[e]=(t={})=>((typeof t=="string"||Qt(t))&&(t={message:t}),Ei({...t,type:e}))});function Ose(e,t,o){const r=Yd[t],l=r.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(l===-1)return;const{vm:n}=r[l];if(!n)return;o==null||o(n);const a=n.el.offsetHeight,i=t.split("-")[0];r.splice(l,1);const c=r.length;if(!(c<1))for(let u=l;u{t.component.exposed.visible.value=!1})}Ei.closeAll=Ise,Ei._context=null;const Pse=L3(Ei,"$notify");var Bse=[jie,Yie,sse,xse,Pse,Nw],Nse=ej([...Vie,...Bse]);const Lse={key:1,class:"no-found"},Rse={__name:"CpList",props:{listClass:{type:String,default:""},customClass:{type:String,default:""},noFoundMsg:{type:String,default:""},foundStatus:{type:Boolean,default:!1}},setup(e,{expose:t}){const o=V(null),r=T(()=>{if(o.value){const l=o.value.querySelectorAll("li");return l.length<5?90*l.length:0}return 0});return t({list:o}),(l,n)=>(b(),z("ul",{ref_key:"list",ref:o,class:P(["list",e.listClass+" "+e.customClass]),style:Qe(`min-height: ${r.value}px`)},[e.foundStatus?be(l.$slots,"default",{key:0}):(b(),z("div",Lse,ze(e.noFoundMsg),1))],6))}},Vse={class:"content"},Hse={key:0,class:"title"},Fse={__name:"CpModal",props:{title:{type:String,required:!1,default:""},show:{type:Boolean,required:!1,default:!0},modalStyle:{type:Boolean,required:!1,default:!0}},emits:["close"],setup(e,{emit:t}){const o=V(null),r=t;return vt(()=>{o.value&&o.value.addEventListener("click",l=>{o.value==l.target&&r("close")})}),(l,n)=>e.modalStyle?(b(),z("div",{key:0,ref_key:"modal",ref:o,class:P(["modal",e.show?"active":""])},[$("div",Vse,[e.title?(b(),z("div",Hse,ze(e.title),1)):ue("",!0),be(l.$slots,"default")])],2)):be(l.$slots,"default",{key:1})}},Dse=(e,t)=>{const o=e.__vccOpts||e;for(const[r,l]of t)o[r]=l;return o},jse={},Kse={class:"waiting"},Wse=[q5('',1)];function Use(e,t){return b(),z("div",Kse,Wse)}const qse=Dse(jse,[["render",Use]]),Yse={class:"full-height"},Gse={class:"wrapper"},Xse={class:"inner"},Zse=$("div",{class:"footer"},[$("span",{class:"powered-by"}," Powered by "),$("a",{href:"https://beycanpress.com/cryptopay?utm_source=lite_plugin&utm_medium=powered_by",target:"_blank"},"CryptoPay")],-1),Jse={__name:"CpContainer",setup(e){const t=V(null);return zt("container",t),(o,r)=>(b(),z("div",{class:P(["app","theme-"+o.$vars.theme])},[$("div",Yse,[$("div",Gse,[$("div",{class:"container",ref_key:"container",ref:t},[$("div",Xse,[be(o.$slots,"default")]),Zse],512)])])],2))}},Qse={config:C1("config",()=>{const e=V({order:{id:null,amount:0,currency:null},networks:[],started:!1,providerConfig:{},blockConfirmationCount:0,amountUpdateInterval:null}),t=n=>{if(typeof e.value[n]>"u")throw new Error(`Config key "${n}" not found`)},o=(n,a)=>{t(n),e.value[n]=a},r=()=>{clearInterval(e.value.amountUpdateInterval),e.value.amountUpdateInterval=null},l=T(()=>e.value.started);return{set:o,get:e,isAppStarted:l,stopAmountUpdateInterval:r}}),payment:S1},ece=[{id:1,hexId:"0x1",name:"Ethereum",code:"evmchains",rpcUrl:"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",explorerUrl:"https://etherscan.io/",nativeCurrency:{symbol:"ETH",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"ETH"},{symbol:"USDT",address:"0xdac17f958d2ee523a2206206994597c13d831ec7"},{symbol:"USDC",address:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"},{symbol:"BUSD",address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53"}]},{id:56,hexId:"0x38",name:"BNB Smart Chain",code:"evmchains",rpcUrl:"https://bsc-dataseed.binance.org/",explorerUrl:"https://bscscan.com/",nativeCurrency:{symbol:"BNB",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"BNB"},{symbol:"BUSD",address:"0xe9e7cea3dedca5984780bafc599bd69add087d56"},{symbol:"USDT",address:"0x55d398326f99059ff775485246999027b3197955"},{symbol:"USDC",address:"0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d"}]},{id:43114,hexId:"0xa86a",name:"Avalanche C-Chain",code:"evmchains",rpcUrl:"https://api.avax.network/ext/bc/C/rpc",explorerUrl:"https://cchain.explorer.avax.network/",nativeCurrency:{symbol:"AVAX",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"AVAX"},{symbol:"USDT",address:"0xde3a24028580884448a5397872046a019649b084"}]},{id:137,hexId:"0x89",name:"Polygon",code:"evmchains",rpcUrl:"https://polygon-rpc.com/",explorerUrl:"https://polygonscan.com/",nativeCurrency:{symbol:"MATIC",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"MATIC"},{symbol:"USDT",address:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f"}]},{id:250,hexId:"0xfa",name:"Fantom",code:"evmchains",rpcUrl:"https://rpc.fantom.network",explorerUrl:"https://ftmscan.com/",nativeCurrency:{symbol:"FTM",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"FTM"}]}],tce=[{id:11155111,hexId:"0xaa36a7",mainnetId:1,code:"evmchains",name:"Ethereum Sepolia Testnet",rpcUrl:"https://sepolia.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161",explorerUrl:"https://sepolia.etherscan.io/",nativeCurrency:{symbol:"ETH",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"ETH"}]},{id:97,hexId:"0x61",mainnetId:56,code:"evmchains",name:"BNB Smart Chain Testnet",rpcUrl:"https://bsc-testnet.publicnode.com",explorerUrl:"https://testnet.bscscan.com/",nativeCurrency:{symbol:"BNB",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"BNB"},{symbol:"BUSD",address:"0xeD24FC36d5Ee211Ea25A80239Fb8C4Cfd80f12Ee"},{symbol:"USDT",address:"0xba6670261a05b8504e8ab9c45d97a8ed42573822"}]},{id:43113,hexId:"0xa869",mainnetId:43114,code:"evmchains",name:"Avalanche FUJI C-Chain Testnet",rpcUrl:"https://api.avax-test.network/ext/bc/C/rpc",explorerUrl:"https://cchain.explorer.avax-test.network",nativeCurrency:{symbol:"AVAX",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"AVAX"},{symbol:"USDT",address:"0xFe143522938e253e5Feef14DB0732e9d96221D72"}]},{id:80001,hexId:"0x13881",mainnetId:137,code:"evmchains",name:"Polygon Mumbai Testnet",rpcUrl:"https://rpc-mumbai.maticvigil.com/",explorerUrl:"https://mumbai.polygonscan.com/",nativeCurrency:{symbol:"MATIC",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"MATIC"},{symbol:"USDT",address:"0xa02f6adc7926efebbd59fd43a84f4e0c0c91e832"}]},{id:4002,hexId:"0xfa2",mainnetId:250,code:"evmchains",name:"Fantom Testnet",rpcUrl:"https://rpc.testnet.fantom.network/",explorerUrl:"https://testnet.ftmscan.com/",nativeCurrency:{symbol:"FTM",decimals:18},wallets:["metamask","trustwallet","bitget","okx","xdefi","walletconnect"],currencies:[{symbol:"FTM"}]}],oce=fx(px);window.cplSwal=gr,window.cplTyping=z2;let A8=!1;window.InitCryptoPayLite=(e,t)=>{if(t=z2(t),A8)throw new Error("CryptoPay Lite already initialized");const o=y7(t);window.cplHelpers=o,A8=!0,t.theme&&document.querySelector("body").classList.add("cpl-theme-"+t.theme||"light"),co.defaults.baseURL=t.apiUrl;const r={dynamicData:ns,helpers:o,events:_7(o)},l=KC();l.use(b7);const n=Ig(m7);n.component("cp-list",Rse),n.component("cp-modal",Fse),n.component("cp-loading",qse),n.component("cp-container",Jse);for(const[p,f]of Object.entries(jH))n.component(p,f);n.use(l),n.use(Nse);const a={},i={};n.provide("$vars",i.$vars=t),n.provide("$lang",i.$lang=t.lang),n.provide("$events",i.$events=r.events),n.provide("$helpers",i.$helpers=o),Object.values(Qse).forEach(p=>{const f=p();a[f.$id]=f}),n.provide("$store",i.$store=a),n.provide("$getCoinIcon",i.$getCoinIcon=(p,f)=>p.imageUrl||t.imagesUrl+"icons/"+f.toLowerCase()+".svg"),n.config.globalProperties=i;const c=document.createElement("div");n.mount(c);const u=()=>new Promise(p=>{const f=Object.values(a);f.forEach(async(v,m)=>{await v.$reset(),m===f.length-1&&p()})}),d=(p,f={})=>{if(typeof p!="object")throw new Error("Order must be object");if(typeof f!="object")throw new Error("Params must be object");if(!p.amount)throw new Error("Order amount is required");if(!p.currency)throw new Error("Order currency is required");if(typeof p.currency!="string")throw new Error("Order currency must be string");if(typeof p.amount!="number")throw new Error("Order amount must be number");r!=null&&r.start&&delete r.start,co.defaults.params={params:f,cp_addon:t.addon};const v=(t.testnet?tce:ece).filter(y=>t.networks.includes(y.id));a.config.set("order",o.clone(p)),a.config.set("networks",o.clone(v));const m=document.getElementById(e);let h;m.shadowRoot?h=m.shadowRoot:h=m.attachShadow({mode:"open"});const _=new CSSStyleSheet;return _.replace(dx+oce+ux),h.adoptedStyleSheets.push(_),h.innerHTML="",h.appendChild(c),a.config.set("started",!0),{store:a,reStart:async(y,w={})=>{await u(),d(y,w)}}};return r.start=d,r}}); diff --git a/assets/js/evm-chains-provider.js b/assets/js/evm-chains-provider.js index 5fcc2d2..74d9f98 100644 --- a/assets/js/evm-chains-provider.js +++ b/assets/js/evm-chains-provider.js @@ -1,5 +1,5 @@ /*! For license information please see evm-chains-provider.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("EvmChains",[],e):"object"==typeof exports?exports.EvmChains=e():t.EvmChains=e()}(this,(()=>(()=>{var t={5507:(t,e)=>{"use strict";function r(t){if(Array.isArray(t)){const e=[];let n=0;for(let i=0;it.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,r)}function i(t){if(0===t[0])throw new Error("invalid RLP: extra zeros");return u(l(t))}function s(t,e){if(t<56)return Uint8Array.from([t+e]);const r=f(t),n=f(e+55+r.length/2);return Uint8Array.from(h(n+r))}function o(t,e=!1){if(null==t||0===t.length)return Uint8Array.from([]);const r=a(g(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function a(t){let e,r,s,o,c;const l=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(e=u-127,s=128===u?Uint8Array.from([]):n(t,1,e),2===e&&s[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:s,remainder:t.slice(e)}}if(u<=191){if(r=u-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(o=n(t,r,s);o.length;)c=a(o),l.push(c.data),o=c.remainder;return{data:l,remainder:t.slice(s)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.RLP=e.utils=e.decode=e.encode=void 0,e.encode=r,e.decode=o;const c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){let e="";for(let r=0;rt+e.length),0),r=new Uint8Array(e);for(let e=0,n=0;e=2&&"0"===t[0]&&"x"===t[1]}function g(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return m(t)?h((e="string"!=typeof(r=t)?r:m(r)?r.slice(2):r).length%2?`0${e}`:e):p(t);var e,r;if("number"==typeof t||"bigint"==typeof t)return t?h(f(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}e.utils={bytesToHex:l,concatBytes:d,hexToBytes:h,utf8ToBytes:p},e.RLP={encode:r,decode:o}},8e3:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const i=r(5507),s=r(2192),o=r(5053),a=r(8040),c=r(8289),l=r(6219),u=r(8480),h=r(4712),d=BigInt(0);class p{constructor(t=d,e=d,r=l.KECCAK256_RLP,n=l.KECCAK256_NULL){this.nonce=t,this.balance=e,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(t){const{nonce:e,balance:r,storageRoot:n,codeHash:i}=t;return new p(void 0!==e?(0,c.bufferToBigInt)((0,c.toBuffer)(e)):void 0,void 0!==r?(0,c.bufferToBigInt)((0,c.toBuffer)(r)):void 0,void 0!==n?(0,c.toBuffer)(n):void 0,void 0!==i?(0,c.toBuffer)(i):void 0)}static fromRlpSerializedAccount(t){const e=(0,c.arrToBufArr)(i.RLP.decode(Uint8Array.from(t)));if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)}static fromValuesArray(t){const[e,r,n,i]=t;return new p((0,c.bufferToBigInt)(e),(0,c.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce=8?d+=r[t].toUpperCase():d+=r[t];return d},e.isValidChecksumAddress=function(t,r){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,r)===t},e.generateAddress=function(t,e){return(0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,c.bufferToBigInt)(e)===BigInt(0)?n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,null])))).slice(-20):n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,e])))).slice(-20)},e.generateAddress2=function(t,e,r){if((0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(r),20!==t.length)throw new Error("Expected from to be of length 20");if(32!==e.length)throw new Error("Expected salt to be of length 32");const i=(0,s.keccak256)(n.concat([n.from("ff","hex"),t,e,(0,s.keccak256)(r)]));return(0,c.toBuffer)(i).slice(-20)},e.isValidPrivate=function(t){return o.secp256k1.utils.isValidPrivateKey(t)},e.isValidPublic=function(t,e=!1){if((0,u.assertIsBuffer)(t),64===t.length)try{return o.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),t])),!0}catch(t){return!1}if(!e)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(t),!0}catch(t){return!1}},e.pubToAddress=function(t,e=!1){if((0,u.assertIsBuffer)(t),e&&64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),64!==t.length)throw new Error("Expected pubKey to be of length 64");return n.from((0,s.keccak256)(t)).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(t){return(0,u.assertIsBuffer)(t),n.from(o.secp256k1.ProjectivePoint.fromPrivateKey(t).toRawBytes(!1).slice(1))},e.privateToAddress=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))},e.importPublic=function(t){return(0,u.assertIsBuffer)(t),64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),t},e.zeroAddress=function(){const t=(0,c.zeros)(20);return(0,c.bufferToHex)(t)},e.isZeroAddress=function(t){try{(0,u.assertIsString)(t)}catch(t){return!1}return(0,e.zeroAddress)()===t},e.accountBodyFromSlim=f;const m=new Uint8Array(0);e.accountBodyToSlim=function(t){const[e,r,n,i]=t;return[e,r,(0,c.arrToBufArr)(n).equals(l.KECCAK256_RLP)?m:n,(0,c.arrToBufArr)(i).equals(l.KECCAK256_NULL)?m:i]},e.accountBodyToRLP=function(t,e=!0){const r=e?f(t):t;return(0,c.arrToBufArr)(i.RLP.encode(r))}},3415:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;const i=r(8e3),s=r(8289);class o{constructor(t){if(20!==t.length)throw new Error("Invalid address length");this.buf=t}static zero(){return new o((0,s.zeros)(20))}static fromString(t){if(!(0,i.isValidAddress)(t))throw new Error("Invalid address");return new o((0,s.toBuffer)(t))}static fromPublicKey(t){if(!n.isBuffer(t))throw new Error("Public key should be Buffer");const e=(0,i.pubToAddress)(t);return new o(e)}static fromPrivateKey(t){if(!n.isBuffer(t))throw new Error("Private key should be Buffer");const e=(0,i.privateToAddress)(t);return new o(e)}static generate(t,e){if("bigint"!=typeof e)throw new Error("Expected nonce to be a bigint");return new o((0,i.generateAddress)(t.buf,(0,s.bigIntToBuffer)(e)))}static generate2(t,e,r){if(!n.isBuffer(e))throw new Error("Expected salt to be a Buffer");if(!n.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new o((0,i.generateAddress2)(t.buf,e,r))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const t=(0,s.bufferToBigInt)(this.buf),e=BigInt(0),r=BigInt("0xffff");return t>=e&&t<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}e.Address=o},7285:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncEventEmitter=void 0;const n=r(7187);class i extends n.EventEmitter{emit(t,...e){let[r,n]=e;const i=this;let s=i._events[t]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),"newListener"!==t&&"removeListener"!==t||(r={event:r,fn:n},n=void 0),s=Array.isArray(s)?s:[s],async function(t,e,r){let n;for await(const i of e)try{i.length<2?i.call(t,r):await new Promise(((e,n)=>{i.call(t,r,(t=>{t?n(t):e()}))}))}catch(t){n=t}if(n)throw n}(i,s.slice(),r).then(n).catch(n),i.listenerCount(t)>0}once(t,e){const r=this;let n;if("function"!=typeof e)throw new TypeError("listener must be a function");return n=e.length>=2?function(i,s){r.removeListener(t,n),e(i,s)}:function(i){r.removeListener(t,n),e(i,n)},r.on(t,n),r}first(t,e){let r=this._events[t]??[];if("function"!=typeof e)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[t]=r=[r]),r.unshift(e),this}before(t,e,r){return this.beforeOrAfter(t,e,r)}after(t,e,r){return this.beforeOrAfter(t,e,r,"after")}beforeOrAfter(t,e,r,n){let i,s,o=this._events[t]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof e)throw new TypeError("target must be a function");for(Array.isArray(o)||(this._events[t]=o=[o]),s=o.length,i=o.length;i--;)if(o[i]===e){s=i+a;break}return o.splice(s,0,r),this}on(t,e){return super.on(t,e)}addListener(t,e){return super.addListener(t,e)}prependListener(t,e){return super.prependListener(t,e)}prependOnceListener(t,e){return super.prependOnceListener(t,e)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,e){return super.removeListener(t,e)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}e.AsyncEventEmitter=i},8289:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const i=r(8480),s=r(4712);e.intToHex=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},e.intToBuffer=function(t){const r=(0,e.intToHex)(t);return n.from((0,s.padToEven)(r.slice(2)),"hex")},e.zeros=function(t){return n.allocUnsafe(t).fill(0)};const o=function(t,r,n){const i=(0,e.zeros)(r);return n?t.length0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};function c(t){const r=(0,e.bufferToHex)(t);return"0x"===r?BigInt(0):BigInt(r)}function l(t){return(0,e.toBuffer)("0x"+t.toString(16))}e.unpadBuffer=function(t){return(0,i.assertIsBuffer)(t),a(t)},e.unpadArray=function(t){return(0,i.assertIsArray)(t),a(t)},e.unpadHexString=function(t){return(0,i.assertIsHexString)(t),t=(0,s.stripHexPrefix)(t),"0x"+a(t)},e.toBuffer=function(t){if(null==t)return n.allocUnsafe(0);if(n.isBuffer(t))return n.from(t);if(Array.isArray(t)||t instanceof Uint8Array)return n.from(t);if("string"==typeof t){if(!(0,s.isHexString)(t))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${t}`);return n.from((0,s.padToEven)((0,s.stripHexPrefix)(t)),"hex")}if("number"==typeof t)return(0,e.intToBuffer)(t);if("bigint"==typeof t){if(t0&&0===r[0])throw new Error(`${e} cannot have leading zeroes, received: ${r.toString("hex")}`)},e.arrToBufArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):n.from(e)},e.bufArrToArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):Uint8Array.from(e??[])},e.bigIntToHex=t=>"0x"+t.toString(16),e.bigIntToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)(l(t))},e.intToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)((0,e.intToBuffer)(t))}},6219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const n=r(8764),i=r(5053);e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=i.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=n.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16},3791:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0,e.hasTerminator=t=>t.length>0&&16===t[t.length-1],e.nibblesToBytes=(t,e)=>{for(let r=0,n=0;n{let r=0;(0,e.hasTerminator)(t)&&(r=1,t=t.subarray(0,t.length-1));const n=new Uint8Array(t.length/2+1);return n[0]=r<<5,1==(1&t.length)&&(n[0]|=16,n[0]|=t[0],t=t.subarray(1)),(0,e.nibblesToBytes)(t,n.subarray(1)),n},e.bytesToNibbles=t=>{const e=2*t.length+1,r=new Uint8Array(e);for(let e=0;e{if(0===t.length)return t;let r=(0,e.bytesToNibbles)(t);r[0]<2&&(r=r.subarray(0,r.length-1));const n=2-(1&r[0]);return r.subarray(n)}},8480:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;const i=r(4712);e.assertIsHexString=function(t){if(!(0,i.isHexString)(t))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${t}`)},e.assertIsBuffer=function(t){if(!n.isBuffer(t))throw new Error(`This method only supports Buffer but input was: ${t}`)},e.assertIsArray=function(t){if(!Array.isArray(t))throw new Error(`This method only supports number arrays but input was: ${t}`)},e.assertIsString=function(t){if("string"!=typeof t)throw new Error(`This method only supports strings but input was: ${t}`)}},2730:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,i(r(6219),e),i(r(4554),e),i(r(8e3),e),i(r(3415),e),i(r(4683),e),i(r(5026),e),i(r(8289),e),i(r(1200),e),i(r(3791),e),i(r(7285),e);var s=r(4712);Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return s.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return s.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return s.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return s.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return s.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return s.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return s.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return s.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return s.toAscii}}),i(r(3543),e),i(r(438),e)},4712:(t,e,r)=>{"use strict";var n=r(8764).Buffer;function i(t){if("string"!=typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof t);return"0"===t[0]&&"x"===t[1]}function s(t){let e=t;if("string"!=typeof e)throw new Error("[padToEven] value must be type 'string', received "+typeof e);return e.length%2&&(e=`0${e}`),e}Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=i,e.stripHexPrefix=t=>{if("string"!=typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof t);return i(t)?t.slice(2):t},e.padToEven=s,e.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return n.byteLength(t,"utf8")},e.arrayContainsArray=function(t,e,r){if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[!0===r?"some":"every"]((e=>t.indexOf(e)>=0))},e.toAscii=function(t){let e="",r=0;const n=t.length;for("0x"===t.substring(0,2)&&(r=2);r0&&t.length!==2+2*e)}},3543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lock=void 0,e.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((t=>this.promiseResolverQueue.push(t)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}},438:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=e.fetchFromProvider=void 0;const n=r(4898);e.fetchFromProvider=async(t,e)=>(await(0,n.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result,e.getProvider=t=>{if("string"==typeof t)return t;if(void 0!==t?.connection?.url)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},5026:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;const i=r(2192),s=r(5053),o=r(8289),a=r(6219),c=r(8480);function l(t,e){return t===BigInt(0)||t===BigInt(1)?t:void 0===e?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function u(t){return t===BigInt(0)||t===BigInt(1)}e.ecsign=function(t,e,r){const i=s.secp256k1.sign(t,e),o=i.toCompactRawBytes();return{r:n.from(o.slice(0,32)),s:n.from(o.slice(32,64)),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2)}},e.ecrecover=function(t,e,r,i,a){const c=n.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(i,32)],64),h=l(e,a);if(!u(h))throw new Error("Invalid signature v value");const d=s.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(h)).recoverPublicKey(t);return n.from(d.toRawBytes(!1).slice(1))},e.toRpcSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(t)]))},e.toCompactSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");let s=r;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(s=n.from(r),s[0]|=128),(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(s,32)]))},e.fromRpcSig=function(t){const e=(0,o.toBuffer)(t);let r,n,i;if(e.length>=65)r=e.slice(0,32),n=e.slice(32,64),i=(0,o.bufferToBigInt)(e.slice(64));else{if(64!==e.length)throw new Error("Invalid signature length");r=e.slice(0,32),n=e.slice(32,64),i=BigInt((0,o.bufferToInt)(e.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r,s:n}},e.isValidSignature=function(t,e,r,n=!0,i){if(32!==e.length||32!==r.length)return!1;if(!u(l(t,i)))return!1;const s=(0,o.bufferToBigInt)(e),c=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||c===BigInt(0)||c>=a.SECP256K1_ORDER||n&&c>=a.SECP256K1_ORDER_DIV_2)},e.hashPersonalMessage=function(t){(0,c.assertIsBuffer)(t);const e=n.from(`Ethereum Signed Message:\n${t.length}`,"utf-8");return n.from((0,i.keccak256)(n.concat([e,t])))}},1200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const n=r(8289),i=r(4712);var s;!function(t){t[t.Number=0]="Number",t[t.BigInt=1]="BigInt",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"}(s=e.TypeOutput||(e.TypeOutput={})),e.toType=function(t,e){if(null===t)return null;if(void 0===t)return;if("string"==typeof t&&!(0,i.isHexString)(t))throw new Error(`A string must be provided with a 0x-prefix, given: ${t}`);if("number"==typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(t);switch(e){case s.Buffer:return r;case s.BigInt:return(0,n.bufferToBigInt)(r);case s.Number:{const t=(0,n.bufferToBigInt)(r);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case s.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}},4554:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GWEI_TO_WEI=void 0,e.GWEI_TO_WEI=BigInt(1e9)},4683:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Withdrawal=void 0;const i=r(3415),s=r(8289),o=r(1200);class a{constructor(t,e,r,n){this.index=t,this.validatorIndex=e,this.address=r,this.amount=n}static fromWithdrawalData(t){const{index:e,validatorIndex:r,address:n,amount:s}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt),l=(0,o.toType)(r,o.TypeOutput.BigInt),u=new i.Address((0,o.toType)(n,o.TypeOutput.Buffer)),h=(0,o.toType)(s,o.TypeOutput.BigInt);return new a(c,l,u,h)}static fromValuesArray(t){if(4!==t.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[e,r,n,i]=t;return a.fromWithdrawalData({index:e,validatorIndex:r,address:n,amount:i})}static toBufferArray(t){const{index:e,validatorIndex:r,address:s,amount:a}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(e,o.TypeOutput.Buffer),l=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer);let u;return u=s instanceof i.Address?s.buf:(0,o.toType)(s,o.TypeOutput.Buffer),[c,l,u,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,s.bigIntToHex)(this.index),validatorIndex:(0,s.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,s.bigIntToHex)(this.amount)}}}e.Withdrawal=a},2816:(t,e,r)=>{"use strict";r.d(e,{RQ:()=>Ot,_R:()=>_});let n=!1,i=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=s.default,a=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var l,u;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const h="0123456789abcdef";class d{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>s[r]||console.log.apply(console,e)}debug(...t){this._log(d.levels.DEBUG,t)}info(...t){this._log(d.levels.INFO,t)}warn(...t){this._log(d.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=h[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const s=t;let o="";switch(e){case u.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=e,Object.keys(r).forEach((function(t){a[t]=r[t]})),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,d.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?o=e:d.globalLogger().warn("invalid log level - "+t)}static from(t){return new d(t)}}function p(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}d.errors=u,d.levels=l,new d("properties/5.7.0");const f="abi/5.7.0",m=new d(f),g={};let y={calldata:!0,memory:!0,storage:!0},w={calldata:!0,memory:!0};function b(t,e){if("bytes"===t||"string"===t){if(y[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&w[e])return!0;return(y[e]||"payable"===e)&&m.throwArgumentError("invalid modifier","name",e),!1}function v(t,e){for(let r in e)p(t,r,e[r])}const E=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),x=new RegExp(/^(.*)\[([0-9]*)\]$/);class _{constructor(t,e){t!==g&&m.throwError("use fromString",d.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,e);let r=this.type.match(x);v(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:_.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=E.sighash),E[t]||m.throwArgumentError("invalid format type","format",t),t===E.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==E.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===E.full?", ":",")+")"):e+=this.type,t!==E.sighash&&(!0===this.indexed&&(e+=" indexed"),t===E.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?_.fromString(t,e):_.fromObject(t)}static fromObject(t){return _.isParamType(t)?t:new _(g,{name:t.name||null,type:A(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(_.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){m.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let s={type:"",name:"",state:{allowType:!0}},o=s;for(let r=0;r=256)return!1}return!0}function P(t,e){if(e||(e={}),"number"==typeof t){k.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),C(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),S(t)&&(t=t.toHexString()),T(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":k.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;tP(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),C(n)}function T(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const N="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){k.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=N[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),S(t))return t.toHexString();if(T(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":k.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(I(t)){let e="0x";for(let r=0;r>4]+N[15&n]}return e}return k.throwArgumentError("invalid hexlify value","value",t)}var B=r(3877),j=r.n(B)().BN;const L=new d("bignumber/5.7.0"),U={},D=9007199254740991;let $=!1;class F{constructor(t,e){t!==U&&L.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return H(W(this).fromTwos(t))}toTwos(t){return H(W(this).toTwos(t))}abs(){return"-"===this._hex[0]?F.from(this._hex.substring(1)):this}add(t){return H(W(this).add(W(t)))}sub(t){return H(W(this).sub(W(t)))}div(t){return F.from(t).isZero()&&q("division-by-zero","div"),H(W(this).div(W(t)))}mul(t){return H(W(this).mul(W(t)))}mod(t){const e=W(t);return e.isNeg()&&q("division-by-zero","mod"),H(W(this).umod(e))}pow(t){const e=W(t);return e.isNeg()&&q("negative-power","pow"),H(W(this).pow(e))}and(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","and"),H(W(this).and(e))}or(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","or"),H(W(this).or(e))}xor(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","xor"),H(W(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&q("negative-width","mask"),H(W(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&q("negative-width","shl"),H(W(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&q("negative-width","shr"),H(W(this).shrn(t))}eq(t){return W(this).eq(W(t))}lt(t){return W(this).lt(W(t))}lte(t){return W(this).lte(W(t))}gt(t){return W(this).gt(W(t))}gte(t){return W(this).gte(W(t))}isNegative(){return"-"===this._hex[0]}isZero(){return W(this).isZero()}toNumber(){try{return W(this).toNumber()}catch(t){q("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return L.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?$||($=!0,L.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?L.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):L.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),W(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof F)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new F(U,z(t)):t.match(/^-?[0-9]+$/)?new F(U,z(new j(t))):L.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&q("underflow","BigNumber.from",t),(t>=D||t<=-D)&&q("overflow","BigNumber.from",t),F.from(String(t));const e=t;if("bigint"==typeof e)return F.from(e.toString());if(I(e))return F.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return F.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(T(t)||"-"===t[0]&&T(t.substring(1))))return F.from(t)}return L.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function z(t){if("string"!=typeof t)return z(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&L.throwArgumentError("invalid hex","value",t),"0x00"===(t=z(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function H(t){return F.from(z(t))}function W(t){const e=F.from(t).toHexString();return"-"===e[0]?new j("-"+e.substring(3),16):new j(e.substring(2),16)}function q(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),L.throwError(t,d.errors.NUMERIC_FAULT,n)}const V=new d(f);class G{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){V.throwArgumentError(t,this.localName,e)}}class K{constructor(t){p(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return function(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(O(t._data))}writeBytes(t){let e=P(t);const r=e.length%this.wordSize;return r&&(e=O([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=P(F.from(t));return e.length>this.wordSize&&V.throwError("value out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=O([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Z{constructor(t,e,r,n){p(this,"_data",P(t)),p(this,"wordSize",e||32),p(this,"_coerceFunc",r),p(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Z.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:V.throwError("data out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Z(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return F.from(this.readBytes(this.wordSize))}}var J=r(1094),Q=r.n(J);const Y=new d("address/5.7.0");function X(t){T(t,20)||Y.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=P((i=r,"0x"+Q().keccak_256(P(i))));var i;for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const tt={};for(let t=0;t<10;t++)tt[String(t)]=String(t);for(let t=0;t<26;t++)tt[String.fromCharCode(65+t)]=String(10+t);const et=Math.floor((rt=9007199254740991,Math.log10?Math.log10(rt):Math.log(rt)/Math.LN10));var rt;function nt(t){let e=null;if("string"!=typeof t&&Y.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=X(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Y.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>tt[t])).join("");for(;e.length>=et;){let t=e.substring(0,et);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Y.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new j(r,36).toString(16);e.length<40;)e="0"+e;e=X("0x"+e)}else Y.throwArgumentError("invalid address","address",t);var r;return e}class it extends G{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=nt(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return nt(function(t,e){for("string"!=typeof t?t=R(t):T(t)||k.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&k.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}(t.readValue().toHexString(),20))}}class st extends G{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const ot=new d(f);function at(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||ot.throwError("cannot encode object for signature with missing names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&ot.throwError("cannot encode object for signature with duplicate names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else ot.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&ot.throwArgumentError("types/value length mismatch","tuple",r);let i=new K(t.wordSize),s=new K(t.wordSize),o=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=s.length;t.encode(s,r);let n=i.writeUpdatableValue();o.push((t=>{n(t+e)}))}else t.encode(i,r)})),o.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function ct(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),s=n.subReader(r.toNumber());try{i=e.decode(s)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const s=r[e];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s}));for(let t=0;t{throw e}})}return Object.freeze(r)}class lt extends G{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;rt._data.length&&ot.throwError("insufficient data length",d.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t>6==2;n++)t++;return t}return t===xt.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Et||(Et={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(xt||(xt={}));const At=Object.freeze({error:function(t,e,r,n,i){return vt.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:_t,replace:function(t,e,r,n,i){return t===xt.OVERLONG?(n.push(i),0):(n.push(65533),_t(t,e,r))}});function kt(t,e){return function(t,e){null==e&&(e=At.error),t=P(t);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let s=null,o=null;if(192==(224&i))s=1,o=127;else if(224==(240&i))s=2,o=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?xt.UNEXPECTED_CONTINUE:xt.BAD_PREFIX,n-1,t,r);continue}s=3,o=65535}if(n-1+s>=t.length){n+=e(xt.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let i=0;i1114111?n+=e(xt.OUT_OF_RANGE,n-1-s,t,r,a):a>=55296&&a<=57343?n+=e(xt.UTF16_SURROGATE,n-1-s,t,r,a):a<=o?n+=e(xt.OVERLONG,n-1-s,t,r,a):r.push(a))}return r}(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}class St extends ht{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,function(t,e=Et.current){e!=Et.current&&(vt.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return P(r)}(e))}decode(t){return kt(super.decode(t))}}class Ct extends G{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)})),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return at(t,this.coders,e)}decode(t){return t.coerce(this.name,ct(t,this.coders))}}const Mt=new d(f),It=new RegExp(/^bytes([0-9]*)$/),Pt=new RegExp(/^(u?int)([0-9]*)$/);class Ot{constructor(t){p(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new it(t.name);case"bool":return new ut(t.name);case"string":return new St(t.name);case"bytes":return new dt(t.name);case"array":return new lt(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Ct((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new ft(t.name)}let e=t.type.match(Pt);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Mt.throwArgumentError("invalid "+e[1]+" bit length","param",t),new bt(r/8,"int"===e[1],t.name)}if(e=t.type.match(It),e){let r=parseInt(e[1]);return(0===r||r>32)&&Mt.throwArgumentError("invalid bytes length","param",t),new pt(r,t.name)}return Mt.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Z(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new K(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(_.from(t))));return new Ct(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Mt.throwError("types/values length mismatch",d.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(_.from(t)))),n=new Ct(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(_.from(t))));return new Ct(n,"_").decode(this._getReader(P(e),r))}}new Ot},3877:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8677).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],p=[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],f=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=p[t],u=f[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new S(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function E(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(t,e){t.iushrn(this.n,0,e)},E.prototype.imulK=function(t){return t.imul(this.k)},i(x,E),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new _;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return v[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,S),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5946:(t,e,r)=>{const n=r(8269),i=r(4431),s=r(2295),o=r(661);s.addABI(o),t.exports={hex:t=>"0x"+t.toString(16),toHex(t,e){let r="1"+"0".repeat(e),s=new i(t.toString(10),10).times(r);return n.toHex(s.toString(10))},toDec(t,e){let r="1"+"0".repeat(e),n=new i(t.toString(10),10).dividedBy(r);return parseFloat(n.toString(10))},abiDecoder:t=>s.decodeMethod(t),isNumeric:t=>!isNaN(Number(t)),getTokenABI:()=>o,isMobile(){let t=!1;return t=!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}()),t}}},4900:function(t,e,r){var n;n=()=>(()=>{var t,e,n={39016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletSDK=void 0;const n=r(52719),i=r(82704),s=r(49682),o=r(83143),a=r(31405),c=r(16570),l=r(27472),u=r(94643),h=r(43604);class d{constructor(t){var e,r,n;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const o=t.linkAPIUrl||i.LINK_API_URL;let u;if(u=t.uiConstructor?t.uiConstructor:t=>new a.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(n=t.reloadOnDisconnect)||void 0===n||n;const p=new URL(o),f=`${p.protocol}//${p.host}`;this._storage=new s.ScopedLocalStorage(`-walletlink:${f}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new l.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:o,version:h.LIB_VERSION,darkMode:!!t.darkMode,uiConstructor:u,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode||this._relay.attachUI())}makeWeb3Provider(t="",e=1){const r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof r.disableReloadOnDisconnect&&r.disableReloadOnDisconnect(),r;const n=this.coinbaseBrowser;if(n)return n;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,e){var r;this._appName=t||"DApp",this._appLogoUrl=e||(0,u.getFavicon)();const n=this.walletExtension;n?this.isCipherProvider(n)||n.setAppInfo(this._appName,this._appLogoUrl):null===(r=this._relay)||void 0===r||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,n.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{const r=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!r)return;return"isCoinbaseBrowser"in r&&r.isCoinbaseBrowser?r:void 0}catch(t){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=h.LIB_VERSION},52719:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0,e.walletLogo=(t,e)=>{let r;switch(t){case"standard":default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},57816:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},95558:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(94643),c=r(43604),l=r(37598),u=n(r(417)),h=n(r(12348)),d=r(18646),p=n(r(35666)),f=n(r(30019)),m=r(67494),g=r(70381),y=r(88727),w=n(r(57816)),b={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:x},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:u.default,steps:_}},v=t=>"light"===t?"#FFFFFF":"#0A0B0D";function E({title:t,description:e,icon:r,selected:n,theme:o,onClick:a}){return(0,s.h)("div",{onClick:a,class:(0,i.default)("-cbwsdk-connect-item",o,{selected:n})},(0,s.h)("div",null,(0,s.h)("img",{src:r,alt:t})),(0,s.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,s.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,s.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function x({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"Scan")," "),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:v(t)})))))}function _({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"More")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(m.StatusDotIcon,{fill:v(t)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:v(t)})))))}e.ConnectContent=function(t){const{theme:e}=t,[r,n]=(0,o.useState)("coinbase-wallet-app"),u=(0,o.useCallback)((t=>{n(t)}),[]),h=(0,a.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId);if(!r)return null;const d=b[r].steps,m="coinbase-app"===r;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,s.h)("style",null,w.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,s.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,s.h)(l.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,s.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,s.h)("div",null,Object.entries(b).map((([t,n])=>(0,s.h)(E,{key:t,title:n.title,description:n.description,icon:n.icon,selected:r===t,onClick:()=>u(t),theme:e})))),m&&(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Don’t see a ",(0,s.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,s.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,s.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,s.h)(g.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:(v=r,"coinbase-app"===v?p.default:f.default),width:25,height:25}}),(0,s.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:h})),(0,s.h)(d,{theme:e}),!t.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,s.h)(y.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))));var v},e.ConnectItem=E,e.CoinbaseWalletSteps=x,e.CoinbaseAppSteps=_},96956:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},98845:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(95558),c=r(26868),l=n(r(96956));e.ConnectDialog=t=>{const{isOpen:e,darkMode:r}=t,[n,u]=(0,o.useState)(!e),[h,d]=(0,o.useState)(!e);(0,o.useEffect)((()=>{const t=[window.setTimeout((()=>{d(!e)}),10)];return e?u(!1):t.push(window.setTimeout((()=>{u(!0)}),360)),()=>{t.forEach(window.clearTimeout)}}),[t.isOpen]);const p=r?"dark":"light";return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",p,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,s.h)(a.ConnectContent,{theme:p,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,s.h)(c.TryExtensionContent,{theme:p}))))}},27759:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;const n=r(6400),i=r(34143),s=r(98845);e.LinkFlow=class{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((t=>{this.isConnected!==t&&(this.isConnected=t,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((t=>{this.chainId!==t&&(this.chainId=t,this.render())})))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,n.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const t=this.extensionUI$.subscribe((()=>{this.root&&(0,n.render)((0,n.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}));this.subscriptions.add(t)}}},70381:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;const s=r(6400),o=r(30396),a=i(r(7713));e.QRCode=t=>{const[e,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var e,i;const s=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(e=t.width)&&void 0!==e?e:256,height:null!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),o=n.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${o}`)})),e?(0,s.h)("img",{src:e,alt:"QR Code"}):null}},24325:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},19199:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=n(r(24325));function c(t){return"coinbase-app"===t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}e.Snackbar=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([t,r])=>(0,s.h)(e.SnackbarInstance,Object.assign({},r,{key:t})))))),this.root)}},e.SnackbarContainer=t=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,a.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},t.children)),e.SnackbarInstance=({autoExpand:t,message:e,menuItems:r,appSrc:n})=>{const[a,l]=(0,o.useState)(!0),[u,h]=(0,o.useState)(null!=t&&t);return(0,o.useEffect)((()=>{const t=[window.setTimeout((()=>{l(!1)}),1),window.setTimeout((()=>{h(!0)}),1e4)];return()=>{t.forEach(window.clearTimeout)}})),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",u&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!u)}},(0,s.h)("img",{src:c(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,s.h)("div",{class:"-gear-container"},!u&&(0,s.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,s.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map(((t,e)=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,s.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info))))))}},22061:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},88727:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;const i=r(6400),s=n(r(22061));e.Spinner=t=>{var e;const r=null!==(e=t.size)&&void 0!==e?e:64,n=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,s.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))}},5157:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},26868:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(79414),c=r(52467),l=r(25178),u=n(r(5157));e.TryExtensionContent=function({theme:t}){const[e,r]=(0,o.useState)(!1),n=(0,o.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),h=(0,o.useCallback)((()=>{e?window.location.reload():(n(),r(!0))}),[n,e]);return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,s.h)("style",null,u.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,s.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,s.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,s.h)("div",null,!e&&(0,s.h)(a.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(c.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(l.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},79414:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;const n=r(6400);e.ArrowLeftIcon=function(t){return(0,n.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},37598:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;const n=r(6400);e.CloseIcon=function(t){return(0,n.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},52467:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;const n=r(6400);e.LaptopIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,n.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},18646:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;const n=r(6400);e.QRCodeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,n.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,n.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,n.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,n.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,n.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,n.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,n.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,n.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},35666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n'},30019:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n \n'},25178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;const n=r(6400);e.SafeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},67494:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;const n=r(6400);e.StatusDotIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},417:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},12348:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},85755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},32191:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},80179:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;const n=r(34143),i=r(11717);var s;!function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"}(s=e.ConnectionState||(e.ConnectionState={})),e.RxWebSocket=class{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new n.BehaviorSubject(s.DISCONNECTED),this.incomingDataSubject=new n.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,n.throwError)(new Error("webSocket object is not null")):new n.Observable((t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(e){return void t.error(e)}this.connectionStateSubject.next(s.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(new Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(s.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(s.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(s.DISCONNECTED);try{t.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((t=>{let e;try{e=JSON.parse(t)}catch(t){return(0,n.empty)()}return(0,n.of)(e)})))}sendData(t){const{webSocket:e}=this;if(!e)throw new Error("websocket is not connected");e.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}},76156:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"==typeof t.id&&"string"==typeof t.sessionId&&"string"==typeof t.error}},18876:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;const n=r(34143),i=r(11717),s=r(73526),o=r(91295),a=r(85755),c=r(32191),l=r(80179),u=r(76156);e.WalletSDKConnection=class{constructor(t,e,r,a,u=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=a,this.subscriptions=new n.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,o.IntNumber)(1),this.connectedSubject=new n.BehaviorSubject(!1),this.linkedSubject=new n.BehaviorSubject(!1),this.sessionConfigSubject=new n.ReplaySubject(1);const h=new l.RxWebSocket(r+"/rpc",u);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)((e=>{var r;return null===(r=this.diagnostic)||void 0===r?void 0:r.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:s.Session.hash(t)})})),(0,i.skip)(1),(0,i.filter)((t=>t===l.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((t=>!this.destroyed)),(0,i.flatMap)((t=>h.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((t=>(0,n.iif)((()=>t===l.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((t=>this.sendIsLinked())),(0,i.tap)((t=>this.sendGetSessionConfig())),(0,i.map)((t=>!0))),(0,n.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((t=>(0,n.of)(!1)))).subscribe((t=>this.connectedSubject.next(t)))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((t=>(0,n.iif)((()=>t===l.ConnectionState.CONNECTED),(0,n.timer)(0,1e4))))).subscribe((t=>0===t?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)((t=>"h"===t))).subscribe((t=>this.updateLastHeartbeat()))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["IsLinkedOK","Linked"].includes(t.type)))).subscribe((e=>{var r;const n=e;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.LINKED,{sessionIdHash:s.Session.hash(t),linked:n.linked,type:e.type,onlineGuests:n.onlineGuests}),this.linkedSubject.next(n.linked||n.onlineGuests>0)}))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type)))).subscribe((e=>{var r;const n=e;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(t),metadata_keys:n&&n.metadata?Object.keys(n.metadata):void 0}),this.sessionConfigSubject.next({webhookId:n.webhookId,webhookUrl:n.webhookUrl,metadata:n.metadata})})))}connect(){var t;if(this.destroyed)throw new Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.STARTED_CONNECTING,{sessionIdHash:s.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.DISCONNECTED,{sessionIdHash:s.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((t=>{if("Event"!==t.type)return!1;const e=t;return"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data})),(0,i.map)((t=>t)))}setSessionMetadata(t,e){const r=(0,a.ClientMessageSetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)((t=>this.makeRequest(r))),(0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to set session metadata")})))}publishEvent(t,e,r=!1){const n=(0,a.ClientMessagePublishEvent)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:r});return this.onceLinked$.pipe((0,i.flatMap)((t=>this.makeRequest(n))),(0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to publish event");return t.eventId})))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){const r=t.id;try{this.sendData(t)}catch(t){return(0,n.throwError)(t)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,n.throwError)(new Error(`request ${r} timed out`))),(0,i.filter)((t=>t.id===r)),(0,i.take)(1))}authenticate(){const t=(0,a.ClientMessageHostSession)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(t).pipe((0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")})))}sendIsLinked(){const t=(0,a.ClientMessageIsLinked)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){const t=(0,a.ClientMessageGetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}},82704:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINK_API_URL=void 0,e.LINK_API_URL="https://www.walletlink.org"},69621:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getErrorCode=e.serializeError=e.standardErrors=e.standardErrorMessage=e.standardErrorCodes=void 0;const n=r(79826),i=r(67386),s=r(43604);e.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},n.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},n.errorCodes.provider),{unsupportedChain:4902}))})),e.standardErrorMessage=function(t){return void 0!==t?(0,n.getMessageFromCode)(t):"Unknown error"},e.standardErrors=Object.freeze(Object.assign(Object.assign({},n.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},n.ethErrors.provider),{unsupportedChain:(t="")=>n.ethErrors.provider.custom({code:e.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${t}. Try adding the chain using wallet_addEthereumChain first.`})}))})),e.serializeError=function(t,r){const o=(0,n.serializeError)(function(t){return"string"==typeof t?{message:t,code:e.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(t)?Object.assign(Object.assign({},t),{message:t.errorMessage,code:t.errorCode,data:{method:t.method,result:t.result}}):t}(t),{shouldIncludeStack:!0}),a=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");a.searchParams.set("version",s.LIB_VERSION),a.searchParams.set("code",o.code.toString());const c=function(t,e){var r;return(null===(r=t)||void 0===r?void 0:r.method)||(void 0===e?void 0:"string"==typeof e?e:Array.isArray(e)?e.length>0?e[0].method:void 0:e.method)}(o.data,r);return c&&a.searchParams.set("method",c),a.searchParams.set("message",o.message),Object.assign(Object.assign({},o),{docUrl:a.href})},e.getErrorCode=function(t){var e;return"number"==typeof t?t:function(t){return"object"==typeof t&&null!==t&&("number"==typeof t.code||"number"==typeof t.errorCode)}(t)?null!==(e=t.code)&&void 0!==e?e:t.errorCode:void 0}},45811:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const n=r(39016),i=r(83143);var s=r(39016);Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var o=r(83143);Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return o.CoinbaseWalletProvider}}),e.default=n.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=n.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=n.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},49682:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0,e.ScopedLocalStorage=class{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),e=[];for(let r=0;rlocalStorage.removeItem(t)))}scopedKey(t){return`${this.scope}:${t}`}}},1119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},27162:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;const i=n(r(1119));e.injectCssReset=function(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},83143:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=void 0;const s=i(r(19394)),o=i(r(13550)),a=r(32191),c=r(69621),l=r(73526),u=r(15633),h=r(93083),d=r(67386),p=r(94643),f=i(r(14497)),m=r(33648),g=r(28565),y=r(5313),w="DefaultChainId",b="DefaultJsonRpcUrl";class v extends s.default{constructor(t){var e,r;super(),this._filterPolyfill=new m.FilterPolyfill(this),this._subscriptionManager=new y.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this.isCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,this.qrUrl=t.qrUrl;const n=this.getChainId(),i=(0,p.prepend0x)(n.toString(16));this.emit("connect",{chainIdStr:i});const s=this._storage.getItem(u.LOCAL_STORAGE_ADDRESSES_KEY);if(s){const t=s.split(" ");""!==t[0]&&(this._addresses=t.map((t=>(0,p.ensureAddressString)(t))),this.emit("accountsChanged",t))}this._subscriptionManager.events.on("notification",(t=>{this.emit("message",{type:t.method,data:t.params})})),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",(t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("dappChainSwitched"===t.data.data.action){const r=t.data.data.chainId,n=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(n,Number(r))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,p.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return null!==(t=this._storage.getItem(b))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(b,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;const r=this.getChainId();this._storage.setItem(w,e.toString(10)),(0,p.ensureIntNumber)(e)===r&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,r,n,i,s){const o=await this.initializeRelay();return!!(await o.watchAsset(t,e,r,n,i,null==s?void 0:s.toString()).promise).result}async addEthereumChain(t,e,r,n,i,s){var o,a;if((0,p.ensureIntNumber)(t)===this.getChainId())return!1;const c=await this.initializeRelay(),l=c.inlineAddEthereumChain(t.toString());this._isAuthorized()||l||await c.requestEthereumAccounts().promise;const u=await c.addEthereumChain(t.toString(),e,i,r,n,s).promise;return!0===(null===(o=u.result)||void 0===o?void 0:o.isApproved)&&this.updateProviderInfo(e[0],t),!0===(null===(a=u.result)||void 0===a?void 0:a.isApproved)}async switchEthereumChain(t){const e=await this.initializeRelay(),r=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,d.isErrorResponse)(r)&&r.errorCode)throw r.errorCode===c.standardErrorCodes.provider.unsupportedChain?c.standardErrors.provider.unsupportedChain(t):c.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode});const n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then((r=>r.setAppInfo(t,e)))}async enable(){var t;return null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(g.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(t,e){try{const r=this._send(t,e);if(r instanceof Promise)return r.catch((e=>{throw(0,c.serializeError)(e,t)}))}catch(e){throw(0,c.serializeError)(e,t)}}_send(t,e){if("string"==typeof t){const r={jsonrpc:"2.0",id:0,method:t,params:Array.isArray(e)?e:void 0!==e?[e]:[]};return this._sendRequestAsync(r).then((t=>t.result))}if("function"==typeof e){const r=t,n=e;return this._sendAsync(r,n)}if(Array.isArray(t))return t.map((t=>this._sendRequest(t)));const r=t;return this._sendRequest(r)}async sendAsync(t,e){try{return this._sendAsync(t,e).catch((e=>{throw(0,c.serializeError)(e,t)}))}catch(e){return Promise.reject((0,c.serializeError)(e,t))}}async _sendAsync(t,e){if("function"!=typeof e)throw new Error("callback is required");if(Array.isArray(t)){const r=e;return void this._sendMultipleRequestsAsync(t).then((t=>r(null,t))).catch((t=>r(t,null)))}const r=e;return this._sendRequestAsync(t).then((t=>r(null,t))).catch((t=>r(t,null)))}async request(t){try{return this._request(t).catch((e=>{throw(0,c.serializeError)(e,t.method)}))}catch(e){return Promise.reject((0,c.serializeError)(e,t.method))}}async _request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw c.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:r}=t;if("string"!=typeof e||0===e.length)throw c.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw c.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});const n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:e,params:n,jsonrpc:"2.0",id:i})).result}async scanQRCode(t){var e;const r=await this.initializeRelay(),n=await r.scanQRCode((0,p.ensureRegExpString)(t)).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.scanQRCode);return n.result}async genericRequest(t,e){var r;const n=await this.initializeRelay(),i=await n.genericRequest(t,e).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(r=i.errorMessage)&&void 0!==r?r:"result was not a string",h.Web3Method.generic);return i.result}async selectProvider(t){var e;const r=await this.initializeRelay(),n=await r.selectProvider(t).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.selectProvider);return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const e={jsonrpc:"2.0",id:t.id},{method:r}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw new Error("addresses is not an array");const r=t.map((t=>(0,p.ensureAddressString)(t)));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(u.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(t){return new Promise(((e,r)=>{try{const n=this._handleSynchronousMethods(t);if(void 0!==n)return e({jsonrpc:"2.0",id:t.id,result:n});const i=this._handleAsynchronousFilterMethods(t);if(void 0!==i)return void i.then((r=>e(Object.assign(Object.assign({},r),{id:t.id})))).catch((t=>r(t)));const s=this._handleSubscriptionMethods(t);if(void 0!==s)return void s.then((r=>e({jsonrpc:"2.0",id:t.id,result:r.result}))).catch((t=>r(t)))}catch(t){return r(t)}this._handleAsynchronousMethods(t).then((r=>r&&e(Object.assign(Object.assign({},r),{id:t.id})))).catch((t=>r(t)))}))}_sendMultipleRequestsAsync(t){return Promise.all(t.map((t=>this._sendRequestAsync(t))))}_handleSynchronousMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_accounts:return this._eth_accounts();case g.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case g.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case g.JSONRPCMethod.net_version:return this._net_version();case g.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case g.JSONRPCMethod.eth_sign:return this._eth_sign(r);case g.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case g.JSONRPCMethod.personal_sign:return this._personal_sign(r);case g.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case g.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case g.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case g.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case g.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case g.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case g.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case g.JSONRPCMethod.eth_signTypedData_v4:case g.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case g.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case g.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case g.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case g.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case g.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case g.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case g.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case g.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case g.JSONRPCMethod.eth_subscribe:case g.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const e=(0,p.ensureAddressString)(t);return this._addresses.map((t=>(0,p.ensureAddressString)(t))).includes(e)}catch(t){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const e=t.from?(0,p.ensureAddressString)(t.from):this.selectedAddress;if(!e)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(e),{fromAddress:e,toAddress:t.to?(0,p.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,p.ensureBN)(t.value):new o.default(0),data:t.data?(0,p.ensureBuffer)(t.data):n.alloc(0),nonce:null!=t.nonce?(0,p.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,p.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,p.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,p.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,p.ensureBN)(t.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw c.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw c.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,e,r,n){this._ensureKnownAddress(e);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(t,e,r,n).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied message signature");throw t}}async _ethereumAddressFromSignedMessage(t,e,r){const n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.ethereumAddressFromSignedMessage(t,e,r).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,p.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem(w);if(!t)return(0,p.ensureIntNumber)(this._chainIdFromOpts);const e=parseInt(t,10);return(0,p.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;if(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let e;try{const t=await this.initializeRelay();e=await t.requestEthereumAccounts().promise}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied account authorization");throw t}if(!e.result)throw new Error("accounts received is empty");return this._setAddresses(e.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const e=(0,p.ensureAddressString)(t[0]),r=(0,p.ensureBuffer)(t[1]);return this._signEthereumMessage(r,e,!1)}_eth_ecRecover(t){const e=(0,p.ensureBuffer)(t[0]),r=(0,p.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!1)}_personal_sign(t){this._requireAuthorization();const e=(0,p.ensureBuffer)(t[0]),r=(0,p.ensureAddressString)(t[1]);return this._signEthereumMessage(e,r,!0)}_personal_ecRecover(t){const e=(0,p.ensureBuffer)(t[0]),r=(0,p.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_sendRawTransaction(t){const e=(0,p.ensureBuffer)(t[0]),r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.submitEthereumTransaction(e,this.getChainId()).promise).result}}async _eth_sendTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signAndSubmitEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_signTypedData_v1(t){this._requireAuthorization();const e=(0,p.ensureParsedJSONObject)(t[0]),r=(0,p.ensureAddressString)(t[1]);this._ensureKnownAddress(r);const n=f.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();const e=(0,p.ensureAddressString)(t[0]),r=(0,p.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const n=f.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();const e=(0,p.ensureAddressString)(t[0]),r=(0,p.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const n=f.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _cbwallet_arbitrary(t){const e=t[0],r=t[1];if("string"!=typeof r)throw new Error("parameter must be a string");if("object"!=typeof e||null===e)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(e,r)}}async _wallet_addEthereumChain(t){var e,r,n,i;const s=t[0];if(0===(null===(e=s.rpcUrls)||void 0===e?void 0:e.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw c.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw c.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){const e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const e=Array.isArray(t)?t[0]:t;if(!e.type)throw c.standardErrors.rpc.invalidParams("Type is required");if("ERC20"!==(null==e?void 0:e.type))throw c.standardErrors.rpc.invalidParams(`Asset of type '${e.type}' is not supported`);if(!(null==e?void 0:e.options))throw c.standardErrors.rpc.invalidParams("Options are required");if(!(null==e?void 0:e.options.address))throw c.standardErrors.rpc.invalidParams("Address is required");const r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=e.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(e.type,n,i,o,s,r)}}_eth_uninstallFilter(t){const e=(0,p.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){const e=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(e)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){const e=(0,p.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){const e=(0,p.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((t=>(t.setAccountsCallback(((t,e)=>this._setAddresses(t,e))),t.setChainCallback(((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))})),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t)))}}e.CoinbaseWalletProvider=v},33648:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;const n=r(91295),i=r(94643),s={jsonrpc:"2.0",id:0};function o(t){return{fromBlock:c(t.fromBlock),toBlock:c(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function a(t){const e={fromBlock:l(t.fromBlock),toBlock:l(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function c(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,n.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw new Error(`Invalid block option: ${String(t)}`)}function l(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function u(){return Object.assign(Object.assign({},s),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},s),{result:[]})}e.FilterPolyfill=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,n.IntNumber)(1),this.provider=t}async newFilter(t){const e=o(t),r=this.makeFilterId(),n=await this.setInitialCursorPosition(r,e.fromBlock);return console.log(`Installing new log filter(${r}):`,e,"initial cursor position:",n),this.logFilters.set(r,e),this.setFilterTimeout(r),(0,i.hexStringFromIntNumber)(r)}async newBlockFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){const e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){const e=(0,i.intNumberFromHexString)(t);return this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e)?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(u())}async getFilterLogs(t){const e=(0,i.intNumberFromHexString)(t),r=this.logFilters.get(e);return r?this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[a(r)]})):u()}makeFilterId(){return(0,n.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise(((e,r)=>{this.provider.sendAsync(t,((t,n)=>t?r(t):Array.isArray(n)||null==n?r(new Error(`unexpected response received: ${JSON.stringify(n)}`)):void e(n)))}))}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const e=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!e)return u();const o=await this.getCurrentBlockHeight(),c="latest"===e.toBlock?o:e.toBlock;if(r>o)return h();if(r>e.toBlock)return h();console.log(`Fetching logs from ${r} to ${c} for filter ${t}`);const l=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[a(Object.assign(Object.assign({},e),{fromBlock:r,toBlock:c}))]}));if(Array.isArray(l.result)){const e=l.result.map((t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0"))),s=Math.max(...e);if(s&&s>r){const e=(0,n.IntNumber)(s+1);console.log(`Moving cursor position for filter (${t}) from ${r} to ${e}`),this.cursors.set(t,e)}}return l}async getBlockFilterChanges(t){const e=this.cursors.get(t);if(!e)return u();const r=await this.getCurrentBlockHeight();if(e>r)return h();console.log(`Fetching blocks from ${e} to ${r} for filter (${t})`);const o=(await Promise.all((0,i.range)(e,r+1).map((t=>this.getBlockHashByNumber((0,n.IntNumber)(t)))))).filter((t=>!!t)),a=(0,n.IntNumber)(e+o.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${a}`),this.cursors.set(t,a),Object.assign(Object.assign({},s),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(h())}async setInitialCursorPosition(t,e){const r=await this.getCurrentBlockHeight(),n="number"==typeof e&&e>r?e:r;return this.cursors.set(t,n),n}setFilterTimeout(t){const e=this.timeouts.get(t);e&&window.clearTimeout(e);const r=window.setTimeout((()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)}),3e5);this.timeouts.set(t,r)}async getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){const e=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}},e.filterFromParam=o},28565:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,(r=e.JSONRPCMethod||(e.JSONRPCMethod={})).eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"},5313:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;const n=r(6842),i=r(68961),s=()=>{};e.SubscriptionManager=class{constructor(t){const e=new n.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:s}=i({blockTracker:e,provider:t});this.events=r,this.subscriptionMiddleware=s}async handleRequest(t){const e={};return await this.subscriptionMiddleware(t,e,s,s),e}destroy(){this.subscriptionMiddleware.destroy()}}},31405:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;const n=r(27759),i=r(19199),s=r(27162);e.WalletSDKUI=class{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new n.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,s.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(e)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}},85813:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,(r=e.RelayMessageType||(e.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"},73526:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;const n=r(89072),i=r(94643),s="session:id",o="session:secret",a="session:linked";class c{constructor(t,e,r,s){this._storage=t,this._id=e||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=(new n.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(t){const e=t.getItem(s),r=t.getItem(a),n=t.getItem(o);return e&&n?new c(t,e,n,"1"===r):null}static hash(t){return(new n.sha256).update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?"1":"0")}}e.Session=c},16570:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;const c=a(r(47056)),l=r(34143),u=r(11717),h=r(32191),d=r(18876),p=r(69621),f=r(91295),m=r(94643),g=o(r(20235)),y=r(73526),w=r(15633),b=r(93083),v=r(85186),E=r(3770),x=r(67386),_=r(50287);class A extends w.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:r,ui:n,connection:i}=this.subscribe();if(this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=n}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)})));const t=y.Session.load(this.storage)||new y.Session(this.storage).save(),e=new d.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,u.filter)((t=>"Web3Response"===t.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,u.skip)(1),(0,u.tap)((t=>{var e;this.isLinked=t;const r=this.storage.getItem(w.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,r){const n=r.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==n[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const t=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:t})}}}))).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>!!t.metadata&&"1"===t.metadata.__destroyed))).subscribe((()=>{var t;const r=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:r,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.WalletUsername))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.WalletUsername,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.AppVersion))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.AppVersion,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl))).pipe((0,u.mergeMap)((e=>(0,l.zip)(g.decrypt(e.metadata.ChainId,t.secret),g.decrypt(e.metadata.JsonRpcUrl,t.secret))))).pipe((0,u.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.EthereumAddress))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.EthereumAddress,t.secret)))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),A.accountRequestCallbackIds.size>0&&(Array.from(A.accountRequestCallbackIds.values()).forEach((e=>{const r=(0,_.Web3ResponseMessage)({id:e,response:(0,x.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},r),{id:e}))})),A.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.AppSrc))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.AppSrc,t.secret)))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:r,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,u.timeout)(1e3),(0,u.catchError)((t=>(0,l.of)(null)))).subscribe((t=>{var e,r,n;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(t){null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const s=y.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:y.Session.hash(s.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new l.Subscription;const{session:o,ui:a,connection:c}=this.subscribe();this._session=o,this.connection=c,this.ui=a,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,r,n){return this.sendRequest({method:b.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),address:e,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(t,e,r){return this.sendRequest({method:b.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),signature:(0,m.hexStringFromBuffer)(e,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,m.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:b.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:b.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:b.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null;const r=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,n),null==e||e()};return{promise:new Promise(((i,s)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,(t=>{if(null==e||e(),t.errorMessage)return s(new Error(t.errorMessage));i(t)})),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)})),cancel:n}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var r;const n=(0,E.Web3RequestMessage)({id:t,request:e}),i=y.Session.load(this.storage);null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.WEB3_REQUEST,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",n,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:n.id,response:{method:n.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){const e=(0,v.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,r){const n=this.session.secret;return new l.Observable((t=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),n).then((e=>{t.next(e),t.complete()}))})).pipe((0,u.mergeMap)((e=>this.connection.publishEvent(t,e,r))))}handleIncomingEvent(t){try{this.subscriptions.add((0,l.from)(g.decrypt(t.data,this.session.secret)).pipe((0,u.map)((t=>JSON.parse(t)))).subscribe({next:t=>{const e=(0,_.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(t){var e;const{response:r}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,x.isRequestEthereumAccountsResponse)(r))return A.accountRequestCallbackIds.forEach((e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e})))),void A.accountRequestCallbackIds.clear();this.invokeCallback(t)}handleErrorResponse(t,e,r,n){var i;const s=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:(0,p.standardErrorMessage)(n);this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:t,response:{method:e,errorMessage:s,errorCode:n}}))}invokeCallback(t){const e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:b.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,r)};return{promise:new Promise(((n,i)=>{var s;this.relayEventManager.callbacks.set(e,(t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(new Error(t.errorMessage));n(t)}));const o=(null===(s=null===window||void 0===window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)){let t;try{t=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(e){t=window.location}t.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(t.href)}`}else{if(this.ui.inlineAccountsResponse()){const t=t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:e,response:(0,x.RequestEthereumAccountsResponse)(t)}))};this.ui.requestEthereumAccounts({onCancel:r,onAccounts:t})}else{const t=p.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(t)})}A.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)}})),cancel:r}}selectProvider(t){const e={method:b.Web3Method.selectProvider,params:{providerOptions:t}},r=(0,m.randomBytesHex)(8);return{cancel:t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,t)},promise:new Promise(((e,n)=>{this.relayEventManager.callbacks.set(r,(t=>{if(t.errorMessage)return n(new Error(t.errorMessage));e(t)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:r,response:(0,x.SelectProviderResponse)(t)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:r,response:(0,x.SelectProviderResponse)(f.ProviderType.Unselected)}))},providerOptions:t})}))}}watchAsset(t,e,r,n,i,s){const o={method:b.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:r,decimals:n,image:i},chainId:s}};let a=null;const c=(0,m.randomBytesHex)(8),l=t=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,t),null==a||a()};return this.ui.inlineWatchAsset()||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{cancel:l,promise:new Promise(((l,u)=>{this.relayEventManager.callbacks.set(c,(t=>{if(null==a||a(),t.errorMessage)return u(new Error(t.errorMessage));l(t)})),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:c,response:(0,x.WatchAssetReponse)(!0)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:c,response:(0,x.WatchAssetReponse)(!1)}))},type:t,address:e,symbol:r,decimals:n,image:i,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)}))}}addEthereumChain(t,e,r,n,i,s){const o={method:b.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}};let a=null;const c=(0,m.randomBytesHex)(8),l=t=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,t),null==a||a()};return this.ui.inlineAddEthereumChain(t)||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise(((e,r)=>{this.relayEventManager.callbacks.set(c,(t=>{if(null==a||a(),t.errorMessage)return r(new Error(t.errorMessage));e(t)})),this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:c,response:(0,x.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:c,response:(0,x.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),this.ui.inlineAddEthereumChain(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)})),cancel:l}}switchEthereumChain(t,e){const r={method:b.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},n=(0,m.randomBytesHex)(8);return{promise:new Promise(((e,i)=>{this.relayEventManager.callbacks.set(n,(t=>(0,x.isErrorResponse)(t)&&t.errorCode?i(p.standardErrors.provider.custom({code:t.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):t.errorMessage?i(new Error(t.errorMessage)):void e(t))),this.ui.switchEthereumChain({onCancel:e=>{var r;if(e){const i=null!==(r=(0,p.getErrorCode)(e))&&void 0!==r?r:p.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(n,b.Web3Method.switchEthereumChain,e instanceof Error?e:p.standardErrors.provider.unsupportedChain(t),i)}else this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:n,response:(0,x.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:n,response:(0,x.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:r.params.chainId,address:r.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(n,r)})),cancel:t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,t)}}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return y.Session.hash(this._session.id)}sendRequestStandalone(t,e){const r=r=>{this.handleErrorResponse(t,e.method,r)},n=e=>{this.handleWeb3ResponseMessage((0,_.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case b.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:n});break;default:r()}}onSessionConfigChanged(t){}}A.accountRequestCallbackIds=new Set,s([c.default],A.prototype,"resetAndReload",null),s([c.default],A.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=A},15633:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayAbstract=e.APP_VERSION_KEY=e.LOCAL_STORAGE_ADDRESSES_KEY=e.WALLET_USER_NAME_KEY=void 0;const n=r(69621);e.WALLET_USER_NAME_KEY="walletUsername",e.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",e.APP_VERSION_KEY="AppVersion",e.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(t,e){if(!e)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(e,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then((t=>t.json())).then((e=>{if(!e)throw n.standardErrors.rpc.parse({});const r=e,{error:i}=r;if(i)throw(0,n.serializeError)(i,t.method);return r}))}}},27472:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;const n=r(94643);e.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,e=(0,n.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}},93083:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,(r=e.Web3Method||(e.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"},85186:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;const n=r(85813);e.Web3RequestCanceledMessage=function(t){return{type:n.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},3770:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;const n=r(85813);e.Web3RequestMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_REQUEST},t)}},67386:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.isErrorResponse=void 0;const n=r(93083);e.isErrorResponse=function(t){var e,r;return void 0!==(null===(e=t)||void 0===e?void 0:e.method)&&void 0!==(null===(r=t)||void 0===r?void 0:r.errorMessage)},e.AddEthereumChainResponse=function(t){return{method:n.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:n.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:n.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:n.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:n.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===n.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:n.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:n.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:n.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:n.Web3Method.ethereumAddressFromSignedMessage,result:t}}},50287:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;const n=r(85813);e.Web3ResponseMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===n.RelayMessageType.WEB3_RESPONSE}},20235:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;const n=r(94643);e.encrypt=async function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");const r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,s.encode(t)),a=o.slice(o.byteLength-16),c=o.slice(0,o.byteLength-16),l=new Uint8Array(a),u=new Uint8Array(c),h=new Uint8Array([...r,...l,...u]);return(0,n.uint8ArrayToHex)(h)},e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new Promise(((r,i)=>{!async function(){const s=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,n.hexStringToUint8Array)(t),a=o.slice(0,12),c=o.slice(12,28),l=o.slice(28),u=new Uint8Array([...l,...c]),h={name:"AES-GCM",iv:new Uint8Array(a)};try{const t=await window.crypto.subtle.decrypt(h,s,u),e=new TextDecoder;r(e.decode(t))}catch(t){i(t)}}()}))}},91295:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=function(){return t=>t},e.HexString=t=>t,e.AddressString=t=>t,e.BigIntString=t=>t,e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=t=>t,(r=e.ProviderType||(e.ProviderType={})).CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""},94643:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;const s=i(r(13550)),o=r(80129),a=r(69621),c=r(91295),l=/^[0-9]*$/,u=/^[a-f0-9]*$/;function h(t){return[...t].map((t=>t.toString(16).padStart(2,"0"))).join("")}function d(t){return t.startsWith("0x")||t.startsWith("0X")}function p(t){return d(t)?t.slice(2):t}function f(t){return d(t)?"0x"+t.slice(2):"0x"+t}function m(t){if("string"!=typeof t)return!1;const e=p(t).toLowerCase();return u.test(e)}function g(t,e=!1){if("string"==typeof t){const r=p(t).toLowerCase();if(u.test(r))return(0,c.HexString)(e?"0x"+r:r)}throw a.standardErrors.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function y(t,e=!1){let r=g(t,!1);return r.length%2==1&&(r=(0,c.HexString)("0"+r)),e?(0,c.HexString)("0x"+r):r}function w(t){if("number"==typeof t&&Number.isInteger(t))return(0,c.IntNumber)(t);if("string"==typeof t){if(l.test(t))return(0,c.IntNumber)(Number(t));if(m(t))return(0,c.IntNumber)(new s.default(y(t,!1),16).toNumber())}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}function b(t){if(null==t||"function"!=typeof t.constructor)return!1;const{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return h(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=h,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map((t=>parseInt(t,16))))},e.hexStringFromBuffer=function(t,e=!1){const r=t.toString("hex");return(0,c.HexString)(e?"0x"+r:r)},e.bigIntStringFromBN=function(t){return(0,c.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,c.IntNumber)(new s.default(y(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,c.HexString)("0x"+new s.default(t).toString(16))},e.has0xPrefix=d,e.strip0x=p,e.prepend0x=f,e.isHexString=m,e.ensureHexString=g,e.ensureEvenLengthHexString=y,e.ensureAddressString=function(t){if("string"==typeof t){const e=p(t).toLowerCase();if(m(e)&&40===e.length)return(0,c.AddressString)(f(e))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)},e.ensureBuffer=function(t){if(n.isBuffer(t))return t;if("string"==typeof t){if(m(t)){const e=y(t,!1);return n.from(e,"hex")}return n.from(t,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(t)}`)},e.ensureIntNumber=w,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,c.RegExpString)(t.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(t)}`)},e.ensureBN=function(t){if(null!==t&&(s.default.isBN(t)||b(t)))return new s.default(t.toString(10),10);if("number"==typeof t)return new s.default(w(t));if("string"==typeof t){if(l.test(t))return new s.default(t,10);if(m(t))return new s.default(y(t,!1),16)}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)},e.isBigNumber=b,e.range=function(t,e){return Array.from({length:e-t},((e,r)=>t+r))},e.getFavicon=function(){const t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${r}${n}`},e.createQrUrl=function(t,e,r,n,i,s){const a=n?"parent-id":"id";return`${r}/#/link?${(0,o.stringify)({[a]:t,secret:e,server:r,v:i,chainId:s})}`},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}},36089:(t,e,r)=>{var n=r(48764).Buffer;const i=r(32518),s=r(13550);function o(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function a(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function c(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function l(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function u(t){var e=typeof t;if("string"===e)return i.isHexString(t)?new s(i.stripHexPrefix(t),16):new s(t,10);if("number"===e)return new s(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function h(t,e){var r,o,d,p;if("address"===t)return h("uint160",u(e));if("bool"===t)return h("uint8",e?1:0);if("string"===t)return h("bytes",new n(e,"utf8"));if(function(t){return t.lastIndexOf("]")===t.length-1}(t)){if(void 0===e.length)throw new Error("Not an array?");if("dynamic"!==(r=l(t))&&0!==r&&e.length>r)throw new Error("Elements exceed array size: "+r);for(p in d=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof e&&(e=JSON.parse(e)),e)d.push(h(t,e[p]));if("dynamic"===r){var f=h("uint256",e.length);d.unshift(f)}return n.concat(d)}if("bytes"===t)return e=new n(e),d=n.concat([h("uint256",e.length),e]),e.length%32!=0&&(d=n.concat([d,i.zeros(32-e.length%32)])),d;if(t.startsWith("bytes")){if((r=a(t))<1||r>32)throw new Error("Invalid bytes width: "+r);return i.setLengthRight(e,32)}if(t.startsWith("uint")){if((r=a(t))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((o=u(e)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(n,"be",32)}if(t.startsWith("int")){if((r=a(t))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((o=u(e)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(n,"be",32)}if(t.startsWith("ufixed")){if(r=c(t),(o=u(e))<0)throw new Error("Supplied ufixed is negative");return h("uint256",o.mul(new s(2).pow(new s(r[1]))))}if(t.startsWith("fixed"))return r=c(t),h("int256",u(e).mul(new s(2).pow(new s(r[1]))));throw new Error("Unsupported or invalid type: "+t)}function d(t){return"string"===t||"bytes"===t||"dynamic"===l(t)}function p(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var r,s,c=[],l=0;l32)throw new Error("Invalid bytes width: "+r);c.push(i.setLengthRight(d,r))}else if(h.startsWith("uint")){if((r=a(h))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((s=u(d)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());c.push(s.toArrayLike(n,"be",r/8))}else{if(!h.startsWith("int"))throw new Error("Unsupported or invalid type: "+h);if((r=a(h))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((s=u(d)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());c.push(s.toTwos(r).toArrayLike(n,"be",r/8))}}return n.concat(c)}t.exports={rawEncode:function(t,e){var r=[],i=[],s=32*t.length;for(var a in t){var c=o(t[a]),l=h(c,e[a]);d(c)?(r.push(h("uint256",s)),i.push(l),s+=l.length):r.push(l)}return n.concat(r.concat(i))},solidityPack:p,soliditySHA3:function(t,e){return i.keccak(p(t,e))}}},14497:(t,e,r)=>{var n=r(48764).Buffer;const i=r(32518),s=r(36089),o={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(t,e,r,o=!0){const a=["bytes32"],c=[this.hashType(t,r)];if(o){const l=(t,e,a)=>{if(void 0!==r[e])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(e,a,r,o))];if(void 0===a)throw new Error(`missing value for field ${t} of type ${e}`);if("bytes"===e)return["bytes32",i.keccak(a)];if("string"===e)return"string"==typeof a&&(a=n.from(a,"utf8")),["bytes32",i.keccak(a)];if(e.lastIndexOf("]")===e.length-1){const r=e.slice(0,e.lastIndexOf("[")),n=a.map((e=>l(t,r,e)));return["bytes32",i.keccak(s.rawEncode(n.map((([t])=>t)),n.map((([,t])=>t))))]}return[e,a]};for(const n of r[t]){const[t,r]=l(n.name,n.type,e[n.name]);a.push(t),c.push(r)}}else for(const s of r[t]){let t=e[s.name];if(void 0!==t)if("bytes"===s.type)a.push("bytes32"),t=i.keccak(t),c.push(t);else if("string"===s.type)a.push("bytes32"),"string"==typeof t&&(t=n.from(t,"utf8")),t=i.keccak(t),c.push(t);else if(void 0!==r[s.type])a.push("bytes32"),t=i.keccak(this.encodeData(s.type,t,r,o)),c.push(t);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),c.push(t)}}return s.rawEncode(a,c)},encodeType(t,e){let r="",n=this.findTypeDependencies(t,e).filter((e=>e!==t));n=[t].concat(n.sort());for(const t of n){if(!e[t])throw new Error("No type definition specified: "+t);r+=t+"("+e[t].map((({name:t,type:e})=>e+" "+t)).join(",")+")"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\w*/)[0],r.includes(t)||void 0===e[t])return r;r.push(t);for(const n of e[t])for(const t of this.findTypeDependencies(n.type,e,r))!r.includes(t)&&r.push(t);return r},hashStruct(t,e,r,n=!0){return i.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return i.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const r in o.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){const r=this.sanitizeData(t),s=[n.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",r.domain,r.types,e)),"EIP712Domain"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,e)),i.keccak(n.concat(s))}};t.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(t){return function(t){const e=new Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;const r=t.map((function(t){return"bytes"===t.type?i.toBuffer(t.value):t.value})),n=t.map((function(t){return t.type})),o=t.map((function(t){if(!t.name)throw e;return t.type+" "+t.name}));return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(new Array(t.length).fill("string"),o),s.soliditySHA3(n,r)])}(t.data)},hashForSignTypedData_v3:function(t){return a.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return a.hash(t.data)}}},32518:(t,e,r)=>{var n=r(48764).Buffer;const i=r(95811),s=r(13550);function o(t){return n.allocUnsafe(t).fill(0)}function a(t,e,r){const n=o(e);return t=c(t),r?t.length{function e(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e65536?(i[0]=240|(1835008&s)>>>18,i[1]=128|(258048&s)>>>12,i[2]=128|(4032&s)>>>6,i[3]=128|63&s):s>2048?(i[0]=224|(61440&s)>>>12,i[1]=128|(4032&s)>>>6,i[2]=128|63&s):s>128?(i[0]=192|(1984&s)>>>6,i[1]=128|63&s):i[0]=s,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=i.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=i.getBCHTypeInfo(r),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o}for(s=0;s<15;s++)o=!t&&1==(n>>s&1),s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,s=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var c=0;c<2;c++)if(null==this.modules[n][a-c]){var l=!1;o>>s&1)),i.getMask(e,n,a-c)&&(l=!l),this.modules[n][a-c]=l,-1==--s&&(o++,s=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var s=c.getRSBlocks(t,e),o=new l,a=0;a8*h)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*h+")");for(o.getLengthInBits()+4<=8*h&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*h||(o.put(r.PAD0,8),o.getLengthInBits()>=8*h));)o.put(r.PAD1,8);return r.createBytes(o,s)},r.createBytes=function(t,e){for(var r=0,n=0,s=0,o=new Array(e.length),c=new Array(e.length),l=0;l=0?f.get(m):0}}var g=0;for(d=0;d=0;)e^=i.G15<=0;)e^=i.G18<>>=1;return e},getPatternPosition:function(t){return i.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case 0:return(e+r)%2==0;case 1:return e%2==0;case 2:return r%3==0;case 3:return(e+r)%3==0;case 4:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case 5:return e*r%2+e*r%3==0;case 6:return(e*r%2+e*r%3)%2==0;case 7:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),r=0;r5&&(r+=3+s-5)}for(n=0;n=256;)t-=255;return s.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},o=0;o<8;o++)s.EXP_TABLE[o]=1<>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var u=[[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]];function h(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(t,e){for(var r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),n=1,i=0,s=0,o=u.length;s<=o;s++){var a=u[s];if(!a)throw new Error("Content too long: expected "+i+" but got "+r);switch(e){case"L":i=a[0];break;case"M":i=a[1];break;case"Q":i=a[2];break;case"H":i=a[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(r<=i)break;n++}if(n>u.length)throw new Error("Content too long");return n}(n,this.options.ecl),s=function(t){switch(t){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(i,s),this.qrcode.addData(n),this.qrcode.make()}h.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var n=void 0===e.pretty||!!e.pretty,i=n?" ":"",s=n?"\r\n":"",o=e.width,a=e.height,c=r.length,l=o/(c+2*e.padding),u=a/(c+2*e.padding),h=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,p=void 0===e.xmlDeclaration||!!e.xmlDeclaration,f=void 0!==e.predefined&&!!e.predefined,m=f?i+''+s:"",g=i+''+s,y="",w="",b=0;b'+s:i+''+s}h&&(y=i+'');let S="";if(void 0!==this.options.image&&this.options.image.svg){const t=o*this.options.image.width/100,e=a*this.options.image.height/100;S+=``,S+=this.options.image.svg+s,S+=""}var C="";switch(t.container){case"svg":p&&(C+=''+s),C+=''+s,C+=m+g+y,C+=S,C+="";break;case"svg-viewbox":p&&(C+=''+s),C+=''+s,C+=m+g+y,C+=S,C+="";break;case"g":C+=''+s,C+=m+g+y,C+=S,C+="";break;default:C+=(m+g+y+S).replace(/^\s+/,"")}return C},t.exports=h},43604:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.7.2"},5507:(t,e)=>{"use strict";function r(t){if(Array.isArray(t)){const e=[];let n=0;for(let i=0;it.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,r)}function i(t){if(0===t[0])throw new Error("invalid RLP: extra zeros");return u(l(t))}function s(t,e){if(t<56)return Uint8Array.from([t+e]);const r=f(t),n=f(e+55+r.length/2);return Uint8Array.from(h(n+r))}function o(t,e=!1){if(null==t||0===t.length)return Uint8Array.from([]);const r=a(g(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function a(t){let e,r,s,o,c;const l=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(e=u-127,s=128===u?Uint8Array.from([]):n(t,1,e),2===e&&s[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:s,remainder:t.slice(e)}}if(u<=191){if(r=u-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(o=n(t,r,s);o.length;)c=a(o),l.push(c.data),o=c.remainder;return{data:l,remainder:t.slice(s)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.RLP=e.utils=e.decode=e.encode=void 0,e.encode=r,e.decode=o;const c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){let e="";for(let r=0;rt+e.length),0),r=new Uint8Array(e);for(let e=0,n=0;e=2&&"0"===t[0]&&"x"===t[1]}function g(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return m(t)?h((e="string"!=typeof(r=t)?r:m(r)?r.slice(2):r).length%2?`0${e}`:e):p(t);var e,r;if("number"==typeof t||"bigint"==typeof t)return t?h(f(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}e.utils={bytesToHex:l,concatBytes:d,hexToBytes:h,utf8ToBytes:p},e.RLP={encode:r,decode:o}},78e3:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const i=r(5507),s=r(82192),o=r(95053),a=r(58040),c=r(38289),l=r(66219),u=r(38480),h=r(24712),d=BigInt(0);class p{constructor(t=d,e=d,r=l.KECCAK256_RLP,n=l.KECCAK256_NULL){this.nonce=t,this.balance=e,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(t){const{nonce:e,balance:r,storageRoot:n,codeHash:i}=t;return new p(void 0!==e?(0,c.bufferToBigInt)((0,c.toBuffer)(e)):void 0,void 0!==r?(0,c.bufferToBigInt)((0,c.toBuffer)(r)):void 0,void 0!==n?(0,c.toBuffer)(n):void 0,void 0!==i?(0,c.toBuffer)(i):void 0)}static fromRlpSerializedAccount(t){const e=(0,c.arrToBufArr)(i.RLP.decode(Uint8Array.from(t)));if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)}static fromValuesArray(t){const[e,r,n,i]=t;return new p((0,c.bufferToBigInt)(e),(0,c.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce=8?d+=r[t].toUpperCase():d+=r[t];return d},e.isValidChecksumAddress=function(t,r){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,r)===t},e.generateAddress=function(t,e){return(0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,c.bufferToBigInt)(e)===BigInt(0)?n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,null])))).slice(-20):n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,e])))).slice(-20)},e.generateAddress2=function(t,e,r){if((0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(r),20!==t.length)throw new Error("Expected from to be of length 20");if(32!==e.length)throw new Error("Expected salt to be of length 32");const i=(0,s.keccak256)(n.concat([n.from("ff","hex"),t,e,(0,s.keccak256)(r)]));return(0,c.toBuffer)(i).slice(-20)},e.isValidPrivate=function(t){return o.secp256k1.utils.isValidPrivateKey(t)},e.isValidPublic=function(t,e=!1){if((0,u.assertIsBuffer)(t),64===t.length)try{return o.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),t])),!0}catch(t){return!1}if(!e)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(t),!0}catch(t){return!1}},e.pubToAddress=function(t,e=!1){if((0,u.assertIsBuffer)(t),e&&64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),64!==t.length)throw new Error("Expected pubKey to be of length 64");return n.from((0,s.keccak256)(t)).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(t){return(0,u.assertIsBuffer)(t),n.from(o.secp256k1.ProjectivePoint.fromPrivateKey(t).toRawBytes(!1).slice(1))},e.privateToAddress=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))},e.importPublic=function(t){return(0,u.assertIsBuffer)(t),64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),t},e.zeroAddress=function(){const t=(0,c.zeros)(20);return(0,c.bufferToHex)(t)},e.isZeroAddress=function(t){try{(0,u.assertIsString)(t)}catch(t){return!1}return(0,e.zeroAddress)()===t},e.accountBodyFromSlim=f;const m=new Uint8Array(0);e.accountBodyToSlim=function(t){const[e,r,n,i]=t;return[e,r,(0,c.arrToBufArr)(n).equals(l.KECCAK256_RLP)?m:n,(0,c.arrToBufArr)(i).equals(l.KECCAK256_NULL)?m:i]},e.accountBodyToRLP=function(t,e=!0){const r=e?f(t):t;return(0,c.arrToBufArr)(i.RLP.encode(r))}},13415:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;const i=r(78e3),s=r(38289);class o{constructor(t){if(20!==t.length)throw new Error("Invalid address length");this.buf=t}static zero(){return new o((0,s.zeros)(20))}static fromString(t){if(!(0,i.isValidAddress)(t))throw new Error("Invalid address");return new o((0,s.toBuffer)(t))}static fromPublicKey(t){if(!n.isBuffer(t))throw new Error("Public key should be Buffer");const e=(0,i.pubToAddress)(t);return new o(e)}static fromPrivateKey(t){if(!n.isBuffer(t))throw new Error("Private key should be Buffer");const e=(0,i.privateToAddress)(t);return new o(e)}static generate(t,e){if("bigint"!=typeof e)throw new Error("Expected nonce to be a bigint");return new o((0,i.generateAddress)(t.buf,(0,s.bigIntToBuffer)(e)))}static generate2(t,e,r){if(!n.isBuffer(e))throw new Error("Expected salt to be a Buffer");if(!n.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new o((0,i.generateAddress2)(t.buf,e,r))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const t=(0,s.bufferToBigInt)(this.buf),e=BigInt(0),r=BigInt("0xffff");return t>=e&&t<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}e.Address=o},67285:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncEventEmitter=void 0;const n=r(17187);class i extends n.EventEmitter{emit(t,...e){let[r,n]=e;const i=this;let s=i._events[t]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),"newListener"!==t&&"removeListener"!==t||(r={event:r,fn:n},n=void 0),s=Array.isArray(s)?s:[s],async function(t,e,r){let n;for await(const i of e)try{i.length<2?i.call(t,r):await new Promise(((e,n)=>{i.call(t,r,(t=>{t?n(t):e()}))}))}catch(t){n=t}if(n)throw n}(i,s.slice(),r).then(n).catch(n),i.listenerCount(t)>0}once(t,e){const r=this;let n;if("function"!=typeof e)throw new TypeError("listener must be a function");return n=e.length>=2?function(i,s){r.removeListener(t,n),e(i,s)}:function(i){r.removeListener(t,n),e(i,n)},r.on(t,n),r}first(t,e){let r=this._events[t]??[];if("function"!=typeof e)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[t]=r=[r]),r.unshift(e),this}before(t,e,r){return this.beforeOrAfter(t,e,r)}after(t,e,r){return this.beforeOrAfter(t,e,r,"after")}beforeOrAfter(t,e,r,n){let i,s,o=this._events[t]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof e)throw new TypeError("target must be a function");for(Array.isArray(o)||(this._events[t]=o=[o]),s=o.length,i=o.length;i--;)if(o[i]===e){s=i+a;break}return o.splice(s,0,r),this}on(t,e){return super.on(t,e)}addListener(t,e){return super.addListener(t,e)}prependListener(t,e){return super.prependListener(t,e)}prependOnceListener(t,e){return super.prependOnceListener(t,e)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,e){return super.removeListener(t,e)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}e.AsyncEventEmitter=i},38289:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const i=r(38480),s=r(24712);e.intToHex=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},e.intToBuffer=function(t){const r=(0,e.intToHex)(t);return n.from((0,s.padToEven)(r.slice(2)),"hex")},e.zeros=function(t){return n.allocUnsafe(t).fill(0)};const o=function(t,r,n){const i=(0,e.zeros)(r);return n?t.length0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};function c(t){const r=(0,e.bufferToHex)(t);return"0x"===r?BigInt(0):BigInt(r)}function l(t){return(0,e.toBuffer)("0x"+t.toString(16))}e.unpadBuffer=function(t){return(0,i.assertIsBuffer)(t),a(t)},e.unpadArray=function(t){return(0,i.assertIsArray)(t),a(t)},e.unpadHexString=function(t){return(0,i.assertIsHexString)(t),t=(0,s.stripHexPrefix)(t),"0x"+a(t)},e.toBuffer=function(t){if(null==t)return n.allocUnsafe(0);if(n.isBuffer(t))return n.from(t);if(Array.isArray(t)||t instanceof Uint8Array)return n.from(t);if("string"==typeof t){if(!(0,s.isHexString)(t))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${t}`);return n.from((0,s.padToEven)((0,s.stripHexPrefix)(t)),"hex")}if("number"==typeof t)return(0,e.intToBuffer)(t);if("bigint"==typeof t){if(t0&&0===r[0])throw new Error(`${e} cannot have leading zeroes, received: ${r.toString("hex")}`)},e.arrToBufArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):n.from(e)},e.bufArrToArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):Uint8Array.from(e??[])},e.bigIntToHex=t=>"0x"+t.toString(16),e.bigIntToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)(l(t))},e.intToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)((0,e.intToBuffer)(t))}},66219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const n=r(48764),i=r(95053);e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=i.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=n.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16},33791:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0,e.hasTerminator=t=>t.length>0&&16===t[t.length-1],e.nibblesToBytes=(t,e)=>{for(let r=0,n=0;n{let r=0;(0,e.hasTerminator)(t)&&(r=1,t=t.subarray(0,t.length-1));const n=new Uint8Array(t.length/2+1);return n[0]=r<<5,1==(1&t.length)&&(n[0]|=16,n[0]|=t[0],t=t.subarray(1)),(0,e.nibblesToBytes)(t,n.subarray(1)),n},e.bytesToNibbles=t=>{const e=2*t.length+1,r=new Uint8Array(e);for(let e=0;e{if(0===t.length)return t;let r=(0,e.bytesToNibbles)(t);r[0]<2&&(r=r.subarray(0,r.length-1));const n=2-(1&r[0]);return r.subarray(n)}},38480:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;const i=r(24712);e.assertIsHexString=function(t){if(!(0,i.isHexString)(t))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${t}`)},e.assertIsBuffer=function(t){if(!n.isBuffer(t))throw new Error(`This method only supports Buffer but input was: ${t}`)},e.assertIsArray=function(t){if(!Array.isArray(t))throw new Error(`This method only supports number arrays but input was: ${t}`)},e.assertIsString=function(t){if("string"!=typeof t)throw new Error(`This method only supports strings but input was: ${t}`)}},92730:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,i(r(66219),e),i(r(4554),e),i(r(78e3),e),i(r(13415),e),i(r(44683),e),i(r(85026),e),i(r(38289),e),i(r(21200),e),i(r(33791),e),i(r(67285),e);var s=r(24712);Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return s.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return s.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return s.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return s.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return s.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return s.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return s.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return s.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return s.toAscii}}),i(r(43543),e),i(r(10438),e)},24712:(t,e,r)=>{"use strict";var n=r(48764).Buffer;function i(t){if("string"!=typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof t);return"0"===t[0]&&"x"===t[1]}function s(t){let e=t;if("string"!=typeof e)throw new Error("[padToEven] value must be type 'string', received "+typeof e);return e.length%2&&(e=`0${e}`),e}Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=i,e.stripHexPrefix=t=>{if("string"!=typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof t);return i(t)?t.slice(2):t},e.padToEven=s,e.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return n.byteLength(t,"utf8")},e.arrayContainsArray=function(t,e,r){if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[!0===r?"some":"every"]((e=>t.indexOf(e)>=0))},e.toAscii=function(t){let e="",r=0;const n=t.length;for("0x"===t.substring(0,2)&&(r=2);r0&&t.length!==2+2*e)}},43543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lock=void 0,e.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((t=>this.promiseResolverQueue.push(t)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}},10438:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=e.fetchFromProvider=void 0;const n=r(64898);e.fetchFromProvider=async(t,e)=>(await(0,n.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result,e.getProvider=t=>{if("string"==typeof t)return t;if(void 0!==t?.connection?.url)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},85026:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;const i=r(82192),s=r(95053),o=r(38289),a=r(66219),c=r(38480);function l(t,e){return t===BigInt(0)||t===BigInt(1)?t:void 0===e?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function u(t){return t===BigInt(0)||t===BigInt(1)}e.ecsign=function(t,e,r){const i=s.secp256k1.sign(t,e),o=i.toCompactRawBytes();return{r:n.from(o.slice(0,32)),s:n.from(o.slice(32,64)),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2)}},e.ecrecover=function(t,e,r,i,a){const c=n.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(i,32)],64),h=l(e,a);if(!u(h))throw new Error("Invalid signature v value");const d=s.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(h)).recoverPublicKey(t);return n.from(d.toRawBytes(!1).slice(1))},e.toRpcSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(t)]))},e.toCompactSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");let s=r;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(s=n.from(r),s[0]|=128),(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(s,32)]))},e.fromRpcSig=function(t){const e=(0,o.toBuffer)(t);let r,n,i;if(e.length>=65)r=e.slice(0,32),n=e.slice(32,64),i=(0,o.bufferToBigInt)(e.slice(64));else{if(64!==e.length)throw new Error("Invalid signature length");r=e.slice(0,32),n=e.slice(32,64),i=BigInt((0,o.bufferToInt)(e.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r,s:n}},e.isValidSignature=function(t,e,r,n=!0,i){if(32!==e.length||32!==r.length)return!1;if(!u(l(t,i)))return!1;const s=(0,o.bufferToBigInt)(e),c=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||c===BigInt(0)||c>=a.SECP256K1_ORDER||n&&c>=a.SECP256K1_ORDER_DIV_2)},e.hashPersonalMessage=function(t){(0,c.assertIsBuffer)(t);const e=n.from(`Ethereum Signed Message:\n${t.length}`,"utf-8");return n.from((0,i.keccak256)(n.concat([e,t])))}},21200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const n=r(38289),i=r(24712);var s;!function(t){t[t.Number=0]="Number",t[t.BigInt=1]="BigInt",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"}(s=e.TypeOutput||(e.TypeOutput={})),e.toType=function(t,e){if(null===t)return null;if(void 0===t)return;if("string"==typeof t&&!(0,i.isHexString)(t))throw new Error(`A string must be provided with a 0x-prefix, given: ${t}`);if("number"==typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(t);switch(e){case s.Buffer:return r;case s.BigInt:return(0,n.bufferToBigInt)(r);case s.Number:{const t=(0,n.bufferToBigInt)(r);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case s.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}},4554:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GWEI_TO_WEI=void 0,e.GWEI_TO_WEI=BigInt(1e9)},44683:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Withdrawal=void 0;const i=r(13415),s=r(38289),o=r(21200);class a{constructor(t,e,r,n){this.index=t,this.validatorIndex=e,this.address=r,this.amount=n}static fromWithdrawalData(t){const{index:e,validatorIndex:r,address:n,amount:s}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt),l=(0,o.toType)(r,o.TypeOutput.BigInt),u=new i.Address((0,o.toType)(n,o.TypeOutput.Buffer)),h=(0,o.toType)(s,o.TypeOutput.BigInt);return new a(c,l,u,h)}static fromValuesArray(t){if(4!==t.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[e,r,n,i]=t;return a.fromWithdrawalData({index:e,validatorIndex:r,address:n,amount:i})}static toBufferArray(t){const{index:e,validatorIndex:r,address:s,amount:a}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(e,o.TypeOutput.Buffer),l=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer);let u;return u=s instanceof i.Address?s.buf:(0,o.toType)(s,o.TypeOutput.Buffer),[c,l,u,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,s.bigIntToHex)(this.index),validatorIndex:(0,s.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,s.bigIntToHex)(this.amount)}}}e.Withdrawal=a},12816:(t,e,r)=>{"use strict";r.d(e,{RQ:()=>Pt,_R:()=>_});let n=!1,i=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=s.default,a=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var l,u;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const h="0123456789abcdef";class d{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>s[r]||console.log.apply(console,e)}debug(...t){this._log(d.levels.DEBUG,t)}info(...t){this._log(d.levels.INFO,t)}warn(...t){this._log(d.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=h[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const s=t;let o="";switch(e){case u.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=e,Object.keys(r).forEach((function(t){a[t]=r[t]})),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,d.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?o=e:d.globalLogger().warn("invalid log level - "+t)}static from(t){return new d(t)}}function p(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}d.errors=u,d.levels=l,new d("properties/5.7.0");const f="abi/5.7.0",m=new d(f),g={};let y={calldata:!0,memory:!0,storage:!0},w={calldata:!0,memory:!0};function b(t,e){if("bytes"===t||"string"===t){if(y[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&w[e])return!0;return(y[e]||"payable"===e)&&m.throwArgumentError("invalid modifier","name",e),!1}function v(t,e){for(let r in e)p(t,r,e[r])}const E=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),x=new RegExp(/^(.*)\[([0-9]*)\]$/);class _{constructor(t,e){t!==g&&m.throwError("use fromString",d.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,e);let r=this.type.match(x);v(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:_.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=E.sighash),E[t]||m.throwArgumentError("invalid format type","format",t),t===E.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==E.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===E.full?", ":",")+")"):e+=this.type,t!==E.sighash&&(!0===this.indexed&&(e+=" indexed"),t===E.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?_.fromString(t,e):_.fromObject(t)}static fromObject(t){return _.isParamType(t)?t:new _(g,{name:t.name||null,type:A(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(_.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){m.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let s={type:"",name:"",state:{allowType:!0}},o=s;for(let r=0;r=256)return!1}return!0}function P(t,e){if(e||(e={}),"number"==typeof t){k.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),C(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),S(t)&&(t=t.toHexString()),T(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":k.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;tP(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),C(n)}function T(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const N="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){k.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=N[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),S(t))return t.toHexString();if(T(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":k.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(I(t)){let e="0x";for(let r=0;r>4]+N[15&n]}return e}return k.throwArgumentError("invalid hexlify value","value",t)}var B=r(13550),j=r.n(B)().BN;const L=new d("bignumber/5.7.0"),U={},D=9007199254740991;let $=!1;class F{constructor(t,e){t!==U&&L.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return H(W(this).fromTwos(t))}toTwos(t){return H(W(this).toTwos(t))}abs(){return"-"===this._hex[0]?F.from(this._hex.substring(1)):this}add(t){return H(W(this).add(W(t)))}sub(t){return H(W(this).sub(W(t)))}div(t){return F.from(t).isZero()&&q("division-by-zero","div"),H(W(this).div(W(t)))}mul(t){return H(W(this).mul(W(t)))}mod(t){const e=W(t);return e.isNeg()&&q("division-by-zero","mod"),H(W(this).umod(e))}pow(t){const e=W(t);return e.isNeg()&&q("negative-power","pow"),H(W(this).pow(e))}and(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","and"),H(W(this).and(e))}or(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","or"),H(W(this).or(e))}xor(t){const e=W(t);return(this.isNegative()||e.isNeg())&&q("unbound-bitwise-result","xor"),H(W(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&q("negative-width","mask"),H(W(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&q("negative-width","shl"),H(W(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&q("negative-width","shr"),H(W(this).shrn(t))}eq(t){return W(this).eq(W(t))}lt(t){return W(this).lt(W(t))}lte(t){return W(this).lte(W(t))}gt(t){return W(this).gt(W(t))}gte(t){return W(this).gte(W(t))}isNegative(){return"-"===this._hex[0]}isZero(){return W(this).isZero()}toNumber(){try{return W(this).toNumber()}catch(t){q("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return L.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?$||($=!0,L.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?L.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):L.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),W(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof F)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new F(U,z(t)):t.match(/^-?[0-9]+$/)?new F(U,z(new j(t))):L.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&q("underflow","BigNumber.from",t),(t>=D||t<=-D)&&q("overflow","BigNumber.from",t),F.from(String(t));const e=t;if("bigint"==typeof e)return F.from(e.toString());if(I(e))return F.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return F.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(T(t)||"-"===t[0]&&T(t.substring(1))))return F.from(t)}return L.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function z(t){if("string"!=typeof t)return z(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&L.throwArgumentError("invalid hex","value",t),"0x00"===(t=z(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function H(t){return F.from(z(t))}function W(t){const e=F.from(t).toHexString();return"-"===e[0]?new j("-"+e.substring(3),16):new j(e.substring(2),16)}function q(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),L.throwError(t,d.errors.NUMERIC_FAULT,n)}const V=new d(f);class G{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){V.throwArgumentError(t,this.localName,e)}}class K{constructor(t){p(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return function(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(O(t._data))}writeBytes(t){let e=P(t);const r=e.length%this.wordSize;return r&&(e=O([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=P(F.from(t));return e.length>this.wordSize&&V.throwError("value out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=O([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Z{constructor(t,e,r,n){p(this,"_data",P(t)),p(this,"wordSize",e||32),p(this,"_coerceFunc",r),p(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Z.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:V.throwError("data out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Z(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return F.from(this.readBytes(this.wordSize))}}var J=r(91094),Q=r.n(J);const Y=new d("address/5.7.0");function X(t){T(t,20)||Y.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=P((i=r,"0x"+Q().keccak_256(P(i))));var i;for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const tt={};for(let t=0;t<10;t++)tt[String(t)]=String(t);for(let t=0;t<26;t++)tt[String.fromCharCode(65+t)]=String(10+t);const et=Math.floor((rt=9007199254740991,Math.log10?Math.log10(rt):Math.log(rt)/Math.LN10));var rt;function nt(t){let e=null;if("string"!=typeof t&&Y.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=X(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Y.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>tt[t])).join("");for(;e.length>=et;){let t=e.substring(0,et);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Y.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new j(r,36).toString(16);e.length<40;)e="0"+e;e=X("0x"+e)}else Y.throwArgumentError("invalid address","address",t);var r;return e}class it extends G{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=nt(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return nt(function(t,e){for("string"!=typeof t?t=R(t):T(t)||k.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&k.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}(t.readValue().toHexString(),20))}}class st extends G{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const ot=new d(f);function at(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||ot.throwError("cannot encode object for signature with missing names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&ot.throwError("cannot encode object for signature with duplicate names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else ot.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&ot.throwArgumentError("types/value length mismatch","tuple",r);let i=new K(t.wordSize),s=new K(t.wordSize),o=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=s.length;t.encode(s,r);let n=i.writeUpdatableValue();o.push((t=>{n(t+e)}))}else t.encode(i,r)})),o.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function ct(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),s=n.subReader(r.toNumber());try{i=e.decode(s)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const s=r[e];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s}));for(let t=0;t{throw e}})}return Object.freeze(r)}class lt extends G{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;rt._data.length&&ot.throwError("insufficient data length",d.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t>6==2;n++)t++;return t}return t===xt.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Et||(Et={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(xt||(xt={}));const At=Object.freeze({error:function(t,e,r,n,i){return vt.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:_t,replace:function(t,e,r,n,i){return t===xt.OVERLONG?(n.push(i),0):(n.push(65533),_t(t,e,r))}});class kt extends ht{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,function(t,e=Et.current){e!=Et.current&&(vt.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return P(r)}(e))}decode(t){return function(t,e){return function(t,e){null==e&&(e=At.error),t=P(t);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let s=null,o=null;if(192==(224&i))s=1,o=127;else if(224==(240&i))s=2,o=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?xt.UNEXPECTED_CONTINUE:xt.BAD_PREFIX,n-1,t,r);continue}s=3,o=65535}if(n-1+s>=t.length){n+=e(xt.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let i=0;i1114111?n+=e(xt.OUT_OF_RANGE,n-1-s,t,r,a):a>=55296&&a<=57343?n+=e(xt.UTF16_SURROGATE,n-1-s,t,r,a):a<=o?n+=e(xt.OVERLONG,n-1-s,t,r,a):r.push(a))}return r}(t,void 0).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}(super.decode(t))}}class St extends G{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)})),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return at(t,this.coders,e)}decode(t){return t.coerce(this.name,ct(t,this.coders))}}const Ct=new d(f),Mt=new RegExp(/^bytes([0-9]*)$/),It=new RegExp(/^(u?int)([0-9]*)$/);class Pt{constructor(t){p(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new it(t.name);case"bool":return new ut(t.name);case"string":return new kt(t.name);case"bytes":return new dt(t.name);case"array":return new lt(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new St((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new ft(t.name)}let e=t.type.match(It);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Ct.throwArgumentError("invalid "+e[1]+" bit length","param",t),new bt(r/8,"int"===e[1],t.name)}if(e=t.type.match(Mt),e){let r=parseInt(e[1]);return(0===r||r>32)&&Ct.throwArgumentError("invalid bytes length","param",t),new pt(r,t.name)}return Ct.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Z(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new K(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(_.from(t))));return new St(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Ct.throwError("types/values length mismatch",d.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(_.from(t)))),n=new St(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(_.from(t))));return new St(n,"_").decode(this._getReader(P(e),r))}}new Pt},19394:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(17187);function i(t,e,r){try{Reflect.apply(t,e,r)}catch(t){setTimeout((()=>{throw t}))}}class s extends n.EventEmitter{emit(t,...e){let r="error"===t;const n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let t;if(e.length>0&&([t]=e),t instanceof Error)throw t;const r=new Error("Unhandled error."+(t?` (${t.message})`:""));throw r.context=t,r}const s=n[t];if(void 0===s)return!1;if("function"==typeof s)i(s,this,e);else{const t=s.length,r=function(t){const e=t.length,r=new Array(e);for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertExhaustive=e.assertStruct=e.assert=e.AssertionError=void 0;const n=r(11821);function i(t,e){return r=t,Boolean("string"==typeof(null===(i=null===(n=null==r?void 0:r.prototype)||void 0===n?void 0:n.constructor)||void 0===i?void 0:i.name))?new t({message:e}):t({message:e});var r,n,i}class s extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}e.AssertionError=s,e.assert=function(t,e="Assertion failed.",r=s){if(!t){if(e instanceof Error)throw e;throw i(r,e)}},e.assertStruct=function(t,e,r="Assertion failed",o=s){try{(0,n.assert)(t,e)}catch(t){throw i(o,`${r}: ${function(t){const e=function(t){return"object"==typeof t&&null!==t&&"message"in t}(t)?t.message:String(t);return e.endsWith(".")?e.slice(0,-1):e}(t)}.`)}},e.assertExhaustive=function(t){throw new Error("Invalid branch reached. Should be detected during compilation.")}},47207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64=void 0;const n=r(11821),i=r(31422);e.base64=(t,e={})=>{var r,s;const o=null!==(r=e.paddingRequired)&&void 0!==r&&r,a=null!==(s=e.characterSet)&&void 0!==s?s:"base64";let c,l;return"base64"===a?c=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===a),c=String.raw`[-_A-Za-z0-9]`),l=o?new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,n.pattern)(t,l)}},8476:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createDataView=e.concatBytes=e.valueToBytes=e.stringToBytes=e.numberToBytes=e.signedBigIntToBytes=e.bigIntToBytes=e.hexToBytes=e.bytesToString=e.bytesToNumber=e.bytesToSignedBigInt=e.bytesToBigInt=e.bytesToHex=e.assertIsBytes=e.isBytes=void 0;const i=r(31422),s=r(62009),o=function(){const t=[];return()=>{if(0===t.length)for(let e=0;e<256;e++)t.push(e.toString(16).padStart(2,"0"));return t}}();function a(t){return t instanceof Uint8Array}function c(t){(0,i.assert)(a(t),"Value must be a Uint8Array.")}function l(t){if(c(t),0===t.length)return"0x";const e=o(),r=new Array(t.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint."),h(t.toString(16))}function p(t){return(0,i.assert)("number"==typeof t,"Value must be a number."),(0,i.assert)(t>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToBytes` instead."),h(t.toString(16))}function f(t){return(0,i.assert)("string"==typeof t,"Value must be a string."),(new TextEncoder).encode(t)}function m(t){if("bigint"==typeof t)return d(t);if("number"==typeof t)return p(t);if("string"==typeof t)return t.startsWith("0x")?h(t):f(t);if(a(t))return t;throw new TypeError(`Unsupported value type: "${typeof t}".`)}e.isBytes=a,e.assertIsBytes=c,e.bytesToHex=l,e.bytesToBigInt=u,e.bytesToSignedBigInt=function(t){c(t);let e=BigInt(0);for(const r of t)e=(e<0,"Byte length must be greater than 0."),(0,i.assert)(function(t,e){(0,i.assert)(e>0);const r=t>>BigInt(31);return!((~t&r)+(t&~r)>>BigInt(8*e-1))}(t,e),"Byte length is too small to represent the given value.");let r=t;const n=new Uint8Array(e);for(let t=0;t>=BigInt(8);return n.reverse()},e.numberToBytes=p,e.stringToBytes=f,e.valueToBytes=m,e.concatBytes=function(t){const e=new Array(t.length);let r=0;for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChecksumStruct=void 0;const n=r(11821),i=r(47207);e.ChecksumStruct=(0,n.size)((0,i.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},73557:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHex=e.createBytes=e.createBigInt=e.createNumber=void 0;const n=r(11821),i=r(31422),s=r(8476),o=r(62009),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),c=(0,n.coerce)((0,n.number)(),a,Number),l=(0,n.coerce)((0,n.bigint)(),a,BigInt),u=((0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]),(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),s.hexToBytes)),h=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),s.bytesToHex);e.createNumber=function(t){try{const e=(0,n.create)(t,c);return(0,i.assert)(Number.isFinite(e),`Expected a number-like value, got "${t}".`),e}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a number-like value, got "${t}".`);throw e}},e.createBigInt=function(t){try{return(0,n.create)(t,l)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${String(t.value)}".`);throw t}},e.createBytes=function(t){if("string"==typeof t&&"0x"===t.toLowerCase())return new Uint8Array;try{return(0,n.create)(t,u)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}},e.createHex=function(t){if(t instanceof Uint8Array&&0===t.length||"string"==typeof t&&"0x"===t.toLowerCase())return"0x";try{return(0,n.create)(t,h)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}}},94283:function(t,e){"use strict";var r,n,i=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},s=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};Object.defineProperty(e,"__esModule",{value:!0}),e.FrozenSet=e.FrozenMap=void 0;class o{constructor(t){r.set(this,void 0),i(this,r,new Map(t),"f"),Object.freeze(this)}get size(){return s(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return s(this,r,"f")[Symbol.iterator]()}entries(){return s(this,r,"f").entries()}forEach(t,e){return s(this,r,"f").forEach(((r,n,i)=>t.call(e,r,n,this)))}get(t){return s(this,r,"f").get(t)}has(t){return s(this,r,"f").has(t)}keys(){return s(this,r,"f").keys()}values(){return s(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([t,e])=>`${String(t)} => ${String(e)}`)).join(", ")} `:""}}`}}e.FrozenMap=o;class a{constructor(t){n.set(this,void 0),i(this,n,new Set(t),"f"),Object.freeze(this)}get size(){return s(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return s(this,n,"f")[Symbol.iterator]()}entries(){return s(this,n,"f").entries()}forEach(t,e){return s(this,n,"f").forEach(((r,n,i)=>t.call(e,r,n,this)))}has(t){return s(this,n,"f").has(t)}keys(){return s(this,n,"f").keys()}values(){return s(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((t=>String(t))).join(", ")} `:""}}`}}e.FrozenSet=a,Object.freeze(o),Object.freeze(o.prototype),Object.freeze(a),Object.freeze(a.prototype)},62009:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const n=r(11821),i=r(31422);function s(t){return(0,n.is)(t,e.HexStruct)}function o(t){return(0,n.is)(t,e.StrictHexStruct)}e.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),e.isHexString=s,e.isStrictHexString=o,e.assertIsHexString=function(t){(0,i.assert)(s(t),"Value must be a hexadecimal string.")},e.assertIsStrictHexString=function(t){(0,i.assert)(o(t),'Value must be a hexadecimal string, starting with "0x".')},e.add0x=function(t){return t.startsWith("0x")?t:t.startsWith("0X")?`0x${t.substring(2)}`:`0x${t}`},e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.substring(2):t}},42451:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(31422),e),i(r(47207),e),i(r(8476),e),i(r(85013),e),i(r(73557),e),i(r(94283),e),i(r(62009),e),i(r(22497),e),i(r(20160),e),i(r(66215),e),i(r(89679),e),i(r(99108),e),i(r(97772),e),i(r(88426),e)},22497:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateJsonAndGetSize=e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.isValidJson=e.JsonStruct=void 0;const n=r(11821),i=r(31422),s=r(66215);function o(t,e=!1){const r=new Set;return function t(e,n){if(void 0===e)return[!1,0];if(null===e)return[!0,n?0:s.JsonSize.Null];const i=typeof e;try{if("function"===i)return[!1,0];if("string"===i||e instanceof String)return[!0,n?0:(0,s.calculateStringSize)(e)+2*s.JsonSize.Quote];if("boolean"===i||e instanceof Boolean)return n?[!0,0]:[!0,1==e?s.JsonSize.True:s.JsonSize.False];if("number"===i||e instanceof Number)return n?[!0,0]:[!0,(0,s.calculateNumberSize)(e)];if(e instanceof Date)return n?[!0,0]:[!0,isNaN(e.getDate())?s.JsonSize.Null:s.JsonSize.Date+2*s.JsonSize.Quote]}catch(t){return[!1,0]}if(!(0,s.isPlainObject)(e)&&!Array.isArray(e))return[!1,0];if(r.has(e))return[!1,0];r.add(e);try{return[!0,Object.entries(e).reduce(((i,[o,a],c,l)=>{let[u,h]=t(a,n);if(!u)throw new Error("JSON validation did not pass. Validation process stopped.");return r.delete(e),n?0:i+(Array.isArray(e)?0:o.length+s.JsonSize.Comma+2*s.JsonSize.Colon)+h+(c{const[e]=o(t,!0);return!!e||"Expected a valid JSON-serializable value"})),e.isValidJson=function(t){return(0,n.is)(t,e.JsonStruct)},e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,n.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),e.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(e.JsonStruct),stack:(0,n.optional)((0,n.string)())}),e.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),e.JsonStruct),(0,n.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,n.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,n.omit)(e.JsonRpcRequestStruct,["id"]),e.isJsonRpcNotification=function(t){return(0,n.is)(t,e.JsonRpcNotificationStruct)},e.assertIsJsonRpcNotification=function(t,r){(0,i.assertStruct)(t,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",r)},e.isJsonRpcRequest=function(t){return(0,n.is)(t,e.JsonRpcRequestStruct)},e.assertIsJsonRpcRequest=function(t,r){(0,i.assertStruct)(t,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",r)},e.PendingJsonRpcResponseStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,n.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]),e.isPendingJsonRpcResponse=function(t){return(0,n.is)(t,e.PendingJsonRpcResponseStruct)},e.assertIsPendingJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",r)},e.isJsonRpcResponse=function(t){return(0,n.is)(t,e.JsonRpcResponseStruct)},e.assertIsJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",r)},e.isJsonRpcSuccess=function(t){return(0,n.is)(t,e.JsonRpcSuccessStruct)},e.assertIsJsonRpcSuccess=function(t,r){(0,i.assertStruct)(t,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",r)},e.isJsonRpcFailure=function(t){return(0,n.is)(t,e.JsonRpcFailureStruct)},e.assertIsJsonRpcFailure=function(t,r){(0,i.assertStruct)(t,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",r)},e.isJsonRpcError=function(t){return(0,n.is)(t,e.JsonRpcErrorStruct)},e.assertIsJsonRpcError=function(t,r){(0,i.assertStruct)(t,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",r)},e.getJsonRpcIdValidator=function(t){const{permitEmptyString:e,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},t);return t=>Boolean("number"==typeof t&&(r||Number.isInteger(t))||"string"==typeof t&&(e||t.length>0)||n&&null===t)},e.validateJsonAndGetSize=o},20160:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.createProjectLogger=void 0;const i=(0,n(r(11227)).default)("metamask");e.createProjectLogger=function(t){return i.extend(t)},e.createModuleLogger=function(t,e){return t.extend(e)}},66215:(t,e)=>{"use strict";function r(t){return t.charCodeAt(0)<=127}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0,e.isNonEmptyArray=function(t){return Array.isArray(t)&&t.length>0},e.isNullOrUndefined=function(t){return null==t},e.isObject=function(t){return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)},e.hasProperty=(t,e)=>Object.hasOwnProperty.call(t,e),(n=e.JsonSize||(e.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,e.isPlainObject=function(t){if("object"!=typeof t||null===t)return!1;try{let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}catch(t){return!1}},e.isASCII=r,e.calculateStringSize=function(t){var n;return t.split("").reduce(((t,e)=>r(e)?t+1:t+2),0)+(null!==(n=t.match(e.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},e.calculateNumberSize=function(t){return t.toString().length}},89679:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBigInt=e.hexToNumber=e.bigIntToHex=e.numberToHex=void 0;const n=r(31422),i=r(62009);e.numberToHex=t=>((0,n.assert)("number"==typeof t,"Value must be a number."),(0,n.assert)(t>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(t.toString(16))),e.bigIntToHex=t=>((0,n.assert)("bigint"==typeof t,"Value must be a bigint."),(0,n.assert)(t>=0,"Value must be a non-negative bigint."),(0,i.add0x)(t.toString(16))),e.hexToNumber=t=>{(0,i.assertIsHexString)(t);const e=parseInt(t,16);return(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `hexToBigInt` instead."),e},e.hexToBigInt=t=>((0,i.assertIsHexString)(t),BigInt((0,i.add0x)(t)))},99108:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},97772:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(r=e.Duration||(e.Duration={}))[r.Millisecond=1]="Millisecond",r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Year=31536e6]="Year";const n=(t,e)=>{if(!(t=>Number.isInteger(t)&&t>=0)(t))throw new Error(`"${e}" must be a non-negative integer. Received: "${t}".`)};e.inMilliseconds=function(t,e){return n(t,"count"),t*e},e.timeSince=function(t){return n(t,"timestamp"),Date.now()-t}},88426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const n=r(81249),i=r(11821),s=r(31422);e.VersionStruct=(0,i.refine)((0,i.string)(),"Version",(t=>null!==(0,n.valid)(t)||`Expected SemVer version, got "${t}"`)),e.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",(t=>null!==(0,n.validRange)(t)||`Expected SemVer range, got "${t}"`)),e.isValidSemVerVersion=function(t){return(0,i.is)(t,e.VersionStruct)},e.isValidSemVerRange=function(t){return(0,i.is)(t,e.VersionRangeStruct)},e.assertIsSemVerVersion=function(t){(0,s.assertStruct)(t,e.VersionStruct)},e.assertIsSemVerRange=function(t){(0,s.assertStruct)(t,e.VersionRangeStruct)},e.gtVersion=function(t,e){return(0,n.gt)(t,e)},e.gtRange=function(t,e){return(0,n.gtr)(t,e)},e.satisfiesVersionRange=function(t,e){return(0,n.satisfies)(t,e,{includePrerelease:!0})}},5946:(t,e,r)=>{const n=r(18269),i=r(44431),s=r(42295),o=r(80661);s.addABI(o),t.exports={hex:t=>"0x"+t.toString(16),toHex(t,e){let r="1"+"0".repeat(e),s=new i(t.toString(10),10).times(r);return n.toHex(s.toString(10))},toDec(t,e){let r="1"+"0".repeat(e),n=new i(t.toString(10),10).dividedBy(r);return parseFloat(n.toString(10))},abiDecoder:t=>s.decodeMethod(t),isNumeric:t=>!isNaN(Number(t)),getTokenABI:()=>o,isMobile(){let t=!1;return t=!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}()),t}}},98099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(97117);function i(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function s(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function o(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function a(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function c(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function l(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function u(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function h(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function d(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),u(t/4294967296>>>0,e,r),u(t>>>0,e,r+4),e}function p(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),h(t>>>0,e,r),h(t/4294967296>>>0,e,r+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=s,e.writeInt16LE=s,e.readInt32BE=o,e.readUint32BE=a,e.readInt32LE=c,e.readUint32LE=l,e.writeUint32BE=u,e.writeInt32BE=u,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var r=o(t,e),n=o(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*a(t,e)+a(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var r=c(t,e);return 4294967296*c(t,e+4)+r-4294967296*(r>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var r=l(t,e);return 4294967296*l(t,e+4)+r},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=p,e.writeInt64LE=p,e.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=t/8+r-1;s>=r;s--)n+=e[s]*i,i*=256;return n},e.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s=i;o--)r[o]=e/s&255,s*=256;return r},e.writeUintLE=function(t,e,r,i){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var s=1,o=i;o{"use strict";var n=r(25439),i=r(63027),s=r(17309),o=r(98099),a=r(4153);e.Cv=32,e.WH=12,e.pg=16;var c=new Uint8Array(16),l=function(){function t(t){if(this.nonceLength=e.WH,this.tagLength=e.pg,t.length!==e.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var a=new Uint8Array(32);n.stream(this._key,o,a,4);var c,l=e.length+this.tagLength;if(i){if(i.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");c=i}else c=new Uint8Array(l);return n.streamXOR(this._key,o,e,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},t.prototype.open=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&a.update(c.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&o.writeUint64LE(n.length,l),a.update(l),o.writeUint64LE(r.length,l),a.update(l);for(var u=a.digest(),h=0;h{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(98099),i=r(17309);function s(t,e,r){for(var i=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],l=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=r[19]<<24|r[18]<<16|r[17]<<8|r[16],p=r[23]<<24|r[22]<<16|r[21]<<8|r[20],f=r[27]<<24|r[26]<<16|r[25]<<8|r[24],m=r[31]<<24|r[30]<<16|r[29]<<8|r[28],g=e[3]<<24|e[2]<<16|e[1]<<8|e[0],y=e[7]<<24|e[6]<<16|e[5]<<8|e[4],w=e[11]<<24|e[10]<<16|e[9]<<8|e[8],b=e[15]<<24|e[14]<<16|e[13]<<8|e[12],v=i,E=s,x=o,_=a,A=c,k=l,S=u,C=h,M=d,I=p,P=f,O=m,T=g,N=y,R=w,B=b,j=0;j<20;j+=2)A=(A^=M=M+(T=(T^=v=v+A|0)>>>16|T<<16)|0)>>>20|A<<12,k=(k^=I=I+(N=(N^=E=E+k|0)>>>16|N<<16)|0)>>>20|k<<12,S=(S^=P=P+(R=(R^=x=x+S|0)>>>16|R<<16)|0)>>>20|S<<12,C=(C^=O=O+(B=(B^=_=_+C|0)>>>16|B<<16)|0)>>>20|C<<12,S=(S^=P=P+(R=(R^=x=x+S|0)>>>24|R<<8)|0)>>>25|S<<7,C=(C^=O=O+(B=(B^=_=_+C|0)>>>24|B<<8)|0)>>>25|C<<7,k=(k^=I=I+(N=(N^=E=E+k|0)>>>24|N<<8)|0)>>>25|k<<7,A=(A^=M=M+(T=(T^=v=v+A|0)>>>24|T<<8)|0)>>>25|A<<7,k=(k^=P=P+(B=(B^=v=v+k|0)>>>16|B<<16)|0)>>>20|k<<12,S=(S^=O=O+(T=(T^=E=E+S|0)>>>16|T<<16)|0)>>>20|S<<12,C=(C^=M=M+(N=(N^=x=x+C|0)>>>16|N<<16)|0)>>>20|C<<12,A=(A^=I=I+(R=(R^=_=_+A|0)>>>16|R<<16)|0)>>>20|A<<12,C=(C^=M=M+(N=(N^=x=x+C|0)>>>24|N<<8)|0)>>>25|C<<7,A=(A^=I=I+(R=(R^=_=_+A|0)>>>24|R<<8)|0)>>>25|A<<7,S=(S^=O=O+(T=(T^=E=E+S|0)>>>24|T<<8)|0)>>>25|S<<7,k=(k^=P=P+(B=(B^=v=v+k|0)>>>24|B<<8)|0)>>>25|k<<7;n.writeUint32LE(v+i|0,t,0),n.writeUint32LE(E+s|0,t,4),n.writeUint32LE(x+o|0,t,8),n.writeUint32LE(_+a|0,t,12),n.writeUint32LE(A+c|0,t,16),n.writeUint32LE(k+l|0,t,20),n.writeUint32LE(S+u|0,t,24),n.writeUint32LE(C+h|0,t,28),n.writeUint32LE(M+d|0,t,32),n.writeUint32LE(I+p|0,t,36),n.writeUint32LE(P+f|0,t,40),n.writeUint32LE(O+m|0,t,44),n.writeUint32LE(T+g|0,t,48),n.writeUint32LE(N+y|0,t,52),n.writeUint32LE(R+w|0,t,56),n.writeUint32LE(B+b|0,t,60)}function o(t,e,r,n,o){if(void 0===o&&(o=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=o,e.stream=function(t,e,r,n){return void 0===n&&(n=0),i.wipe(r),o(t,e,r,r,n)}},4153:(t,e)=>{"use strict";function r(t,e){if(t.length!==e.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,r){return~(t-1)&e|t-1&r},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},31050:(t,e,r)=>{"use strict";e.Xx=e._w=e.aP=e.KS=e.jQ=void 0,r(31416);const n=r(93350);function i(t){const e=new Float64Array(16);if(t)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,d(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function f(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function m(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function g(t,e,r){let n,i,s=0,o=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,f=0,m=0,g=0,y=0,w=0,b=0,v=0,E=0,x=0,_=0,A=0,k=0,S=0,C=0,M=0,I=0,P=0,O=0,T=0,N=0,R=0,B=0,j=r[0],L=r[1],U=r[2],D=r[3],$=r[4],F=r[5],z=r[6],H=r[7],W=r[8],q=r[9],V=r[10],G=r[11],K=r[12],Z=r[13],J=r[14],Q=r[15];n=e[0],s+=n*j,o+=n*L,a+=n*U,c+=n*D,l+=n*$,u+=n*F,h+=n*z,d+=n*H,p+=n*W,f+=n*q,m+=n*V,g+=n*G,y+=n*K,w+=n*Z,b+=n*J,v+=n*Q,n=e[1],o+=n*j,a+=n*L,c+=n*U,l+=n*D,u+=n*$,h+=n*F,d+=n*z,p+=n*H,f+=n*W,m+=n*q,g+=n*V,y+=n*G,w+=n*K,b+=n*Z,v+=n*J,E+=n*Q,n=e[2],a+=n*j,c+=n*L,l+=n*U,u+=n*D,h+=n*$,d+=n*F,p+=n*z,f+=n*H,m+=n*W,g+=n*q,y+=n*V,w+=n*G,b+=n*K,v+=n*Z,E+=n*J,x+=n*Q,n=e[3],c+=n*j,l+=n*L,u+=n*U,h+=n*D,d+=n*$,p+=n*F,f+=n*z,m+=n*H,g+=n*W,y+=n*q,w+=n*V,b+=n*G,v+=n*K,E+=n*Z,x+=n*J,_+=n*Q,n=e[4],l+=n*j,u+=n*L,h+=n*U,d+=n*D,p+=n*$,f+=n*F,m+=n*z,g+=n*H,y+=n*W,w+=n*q,b+=n*V,v+=n*G,E+=n*K,x+=n*Z,_+=n*J,A+=n*Q,n=e[5],u+=n*j,h+=n*L,d+=n*U,p+=n*D,f+=n*$,m+=n*F,g+=n*z,y+=n*H,w+=n*W,b+=n*q,v+=n*V,E+=n*G,x+=n*K,_+=n*Z,A+=n*J,k+=n*Q,n=e[6],h+=n*j,d+=n*L,p+=n*U,f+=n*D,m+=n*$,g+=n*F,y+=n*z,w+=n*H,b+=n*W,v+=n*q,E+=n*V,x+=n*G,_+=n*K,A+=n*Z,k+=n*J,S+=n*Q,n=e[7],d+=n*j,p+=n*L,f+=n*U,m+=n*D,g+=n*$,y+=n*F,w+=n*z,b+=n*H,v+=n*W,E+=n*q,x+=n*V,_+=n*G,A+=n*K,k+=n*Z,S+=n*J,C+=n*Q,n=e[8],p+=n*j,f+=n*L,m+=n*U,g+=n*D,y+=n*$,w+=n*F,b+=n*z,v+=n*H,E+=n*W,x+=n*q,_+=n*V,A+=n*G,k+=n*K,S+=n*Z,C+=n*J,M+=n*Q,n=e[9],f+=n*j,m+=n*L,g+=n*U,y+=n*D,w+=n*$,b+=n*F,v+=n*z,E+=n*H,x+=n*W,_+=n*q,A+=n*V,k+=n*G,S+=n*K,C+=n*Z,M+=n*J,I+=n*Q,n=e[10],m+=n*j,g+=n*L,y+=n*U,w+=n*D,b+=n*$,v+=n*F,E+=n*z,x+=n*H,_+=n*W,A+=n*q,k+=n*V,S+=n*G,C+=n*K,M+=n*Z,I+=n*J,P+=n*Q,n=e[11],g+=n*j,y+=n*L,w+=n*U,b+=n*D,v+=n*$,E+=n*F,x+=n*z,_+=n*H,A+=n*W,k+=n*q,S+=n*V,C+=n*G,M+=n*K,I+=n*Z,P+=n*J,O+=n*Q,n=e[12],y+=n*j,w+=n*L,b+=n*U,v+=n*D,E+=n*$,x+=n*F,_+=n*z,A+=n*H,k+=n*W,S+=n*q,C+=n*V,M+=n*G,I+=n*K,P+=n*Z,O+=n*J,T+=n*Q,n=e[13],w+=n*j,b+=n*L,v+=n*U,E+=n*D,x+=n*$,_+=n*F,A+=n*z,k+=n*H,S+=n*W,C+=n*q,M+=n*V,I+=n*G,P+=n*K,O+=n*Z,T+=n*J,N+=n*Q,n=e[14],b+=n*j,v+=n*L,E+=n*U,x+=n*D,_+=n*$,A+=n*F,k+=n*z,S+=n*H,C+=n*W,M+=n*q,I+=n*V,P+=n*G,O+=n*K,T+=n*Z,N+=n*J,R+=n*Q,n=e[15],v+=n*j,E+=n*L,x+=n*U,_+=n*D,A+=n*$,k+=n*F,S+=n*z,C+=n*H,M+=n*W,I+=n*q,P+=n*V,O+=n*G,T+=n*K,N+=n*Z,R+=n*J,B+=n*Q,s+=38*E,o+=38*x,a+=38*_,c+=38*A,l+=38*k,u+=38*S,h+=38*C,d+=38*M,p+=38*I,f+=38*P,m+=38*O,g+=38*T,y+=38*N,w+=38*R,b+=38*B,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),t[0]=s,t[1]=o,t[2]=a,t[3]=c,t[4]=l,t[5]=u,t[6]=h,t[7]=d,t[8]=p,t[9]=f,t[10]=m,t[11]=g,t[12]=y,t[13]=w,t[14]=b,t[15]=v}function y(t,e){g(t,e,e)}function w(t,e){const r=i(),n=i(),s=i(),o=i(),c=i(),l=i(),u=i(),h=i(),d=i();m(r,t[1],t[0]),m(d,e[1],e[0]),g(r,r,d),f(n,t[0],t[1]),f(d,e[0],e[1]),g(n,n,d),g(s,t[3],e[3]),g(s,s,a),g(o,t[2],e[2]),f(o,o,o),m(c,n,r),m(l,o,s),f(u,o,s),f(h,n,r),g(t[0],c,l),g(t[1],h,u),g(t[2],u,l),g(t[3],c,h)}function b(t,e,r){for(let n=0;n<4;n++)d(t[n],e[n],r)}function v(t,e){const r=i(),n=i(),s=i();(function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)y(r,r),2!==n&&4!==n&&g(r,r,e);for(n=0;n<16;n++)t[n]=r[n]})(s,e[2]),g(r,e[0],s),g(n,e[1],s),p(t,n),t[31]^=function(t){const e=new Uint8Array(32);return p(e,t),1&e[0]}(r)<<7}function E(t,e){const r=[i(),i(),i(),i()];u(r[0],c),u(r[1],l),u(r[2],o),g(r[3],c,l),function(t,e,r){u(t[0],s),u(t[1],o),u(t[2],o),u(t[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;b(t,e,i),w(e,t),w(t,t),b(t,e,i)}}(t,r,e)}i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),e._w=function(t){if(t.length!==e.aP)throw new Error(`ed25519: seed must be ${e.aP} bytes`);const r=(0,n.hash)(t);r[0]&=248,r[31]&=127,r[31]|=64;const s=new Uint8Array(32),o=[i(),i(),i(),i()];E(o,r),v(s,o);const a=new Uint8Array(64);return a.set(t),a.set(s,32),{publicKey:s,secretKey:a}};const x=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 _(t,e){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i>4)*x[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*x[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function A(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;_(t,e)}e.Xx=function(t,e){const r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const a=new Uint8Array(64);a.set(o.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(e);const l=c.digest();c.clean(),A(l),E(s,l),v(a,s),c.reset(),c.update(a.subarray(0,32)),c.update(t.subarray(32)),c.update(e);const u=c.digest();A(u);for(let t=0;t<32;t++)r[t]=l[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)r[t+e]+=u[t]*o[e];return _(a.subarray(32),r),a}},79984:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSerializableHash=function(t){return void 0!==t.saveState&&void 0!==t.restoreState&&void 0!==t.cleanSavedState}},512:(t,e,r)=>{"use strict";var n=r(25629),i=r(17309),s=function(){function t(t,e,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var s=n.hmac(this._hash,r,e);this._hmac=new n.HMAC(t,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(79984),i=r(4153),s=r(17309),o=function(){function t(t,e){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);e.length>this.blockSize?this._inner.update(e).finish(r).clean():r.set(e);for(var i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},63027:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4153),i=r(17309);e.DIGEST_LENGTH=16;var s=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=8191&r;var n=t[2]|t[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var s=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|s<<9);var o=t[8]|t[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=t[12]|t[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var l=t[14]|t[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],h=this._h[7],d=this._h[8],p=this._h[9],f=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],w=this._r[4],b=this._r[5],v=this._r[6],E=this._r[7],x=this._r[8],_=this._r[9];r>=16;){var A=t[e+0]|t[e+1]<<8;i+=8191&A;var k=t[e+2]|t[e+3]<<8;s+=8191&(A>>>13|k<<3);var S=t[e+4]|t[e+5]<<8;o+=8191&(k>>>10|S<<6);var C=t[e+6]|t[e+7]<<8;a+=8191&(S>>>7|C<<9);var M=t[e+8]|t[e+9]<<8;c+=8191&(C>>>4|M<<12),l+=M>>>1&8191;var I=t[e+10]|t[e+11]<<8;u+=8191&(M>>>14|I<<2);var P=t[e+12]|t[e+13]<<8;h+=8191&(I>>>11|P<<5);var O=t[e+14]|t[e+15]<<8,T=0,N=T;N+=i*f,N+=s*(5*_),N+=o*(5*x),N+=a*(5*E),T=(N+=c*(5*v))>>>13,N&=8191,N+=l*(5*b),N+=u*(5*w),N+=h*(5*y),N+=(d+=8191&(P>>>8|O<<8))*(5*g);var R=T+=(N+=(p+=O>>>5|n)*(5*m))>>>13;R+=i*m,R+=s*f,R+=o*(5*_),R+=a*(5*x),T=(R+=c*(5*E))>>>13,R&=8191,R+=l*(5*v),R+=u*(5*b),R+=h*(5*w),R+=d*(5*y),T+=(R+=p*(5*g))>>>13,R&=8191;var B=T;B+=i*g,B+=s*m,B+=o*f,B+=a*(5*_),T=(B+=c*(5*x))>>>13,B&=8191,B+=l*(5*E),B+=u*(5*v),B+=h*(5*b),B+=d*(5*w);var j=T+=(B+=p*(5*y))>>>13;j+=i*y,j+=s*g,j+=o*m,j+=a*f,T=(j+=c*(5*_))>>>13,j&=8191,j+=l*(5*x),j+=u*(5*E),j+=h*(5*v),j+=d*(5*b);var L=T+=(j+=p*(5*w))>>>13;L+=i*w,L+=s*y,L+=o*g,L+=a*m,T=(L+=c*f)>>>13,L&=8191,L+=l*(5*_),L+=u*(5*x),L+=h*(5*E),L+=d*(5*v);var U=T+=(L+=p*(5*b))>>>13;U+=i*b,U+=s*w,U+=o*y,U+=a*g,T=(U+=c*m)>>>13,U&=8191,U+=l*f,U+=u*(5*_),U+=h*(5*x),U+=d*(5*E);var D=T+=(U+=p*(5*v))>>>13;D+=i*v,D+=s*b,D+=o*w,D+=a*y,T=(D+=c*g)>>>13,D&=8191,D+=l*m,D+=u*f,D+=h*(5*_),D+=d*(5*x);var $=T+=(D+=p*(5*E))>>>13;$+=i*E,$+=s*v,$+=o*b,$+=a*w,T=($+=c*y)>>>13,$&=8191,$+=l*g,$+=u*m,$+=h*f,$+=d*(5*_);var F=T+=($+=p*(5*x))>>>13;F+=i*x,F+=s*E,F+=o*v,F+=a*b,T=(F+=c*w)>>>13,F&=8191,F+=l*y,F+=u*g,F+=h*m,F+=d*f;var z=T+=(F+=p*(5*_))>>>13;z+=i*_,z+=s*x,z+=o*E,z+=a*v,T=(z+=c*b)>>>13,z&=8191,z+=l*w,z+=u*y,z+=h*g,z+=d*m,i=N=8191&(T=(T=((T+=(z+=p*f)>>>13)<<2)+T|0)+(N&=8191)|0),s=R+=T>>>=13,o=B&=8191,a=j&=8191,c=L&=8191,l=U&=8191,u=D&=8191,h=$&=8191,d=F&=8191,p=z&=8191,e+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=h,this._h[8]=d,this._h[9]=p},t.prototype.finish=function(t,e){void 0===e&&(e=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(n=~n,s=0;s<10;s++)this._h[s]=this._h[s]&n|o[s];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),i=this._h[0]+this._pad[0],this._h[0]=65535&i,s=1;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,r=0,n=t.length;if(this._leftover){(e=16-this._leftover)>n&&(e=n);for(var i=0;i=16&&(e=n-n%16,this._blocks(t,r,e),r+=e,n-=e),n){for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const n=r(46008),i=r(98099),s=r(17309);function o(t,r=e.defaultRandomSource){return r.randomBytes(t)}e.defaultRandomSource=new n.SystemRandomSource,e.randomBytes=o,e.randomUint32=function(t=e.defaultRandomSource){const r=o(4,t),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(t,r=a,n=e.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;t>0;){const e=o(Math.ceil(256*t/l),n);for(let n=0;n0;n++){const s=e[n];s{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRandomSource=void 0,e.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeRandomSource=void 0;const n=r(17309);e.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const t=r(35883);t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemRandomSource=void 0;const n=r(75455),i=r(58871);e.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}}},73294:(t,e,r)=>{"use strict";var n=r(98099),i=r(17309);e.k=32,e.cn=64;var s=function(){function t(){this.digestLength=e.k,this.blockSize=e.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],e--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(r=a(this._temp,this._state,t,r,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[r++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.mE=s;var o=new Int32Array([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 a(t,e,r,i,s){for(;s>=64;){for(var a=e[0],c=e[1],l=e[2],u=e[3],h=e[4],d=e[5],p=e[6],f=e[7],m=0;m<16;m++){var g=i+4*m;t[m]=n.readUint32BE(r,g)}for(m=16;m<64;m++){var y=t[m-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,b=((y=t[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;t[m]=(w+t[m-7]|0)+(b+t[m-16]|0)}for(m=0;m<64;m++)w=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)|0)+(f+(o[m]+t[m]|0)|0)|0,b=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&l^c&l)|0,f=p,p=d,d=h,h=u+w|0,u=l,l=c,c=a,a=w+b|0;e[0]+=a,e[1]+=c,e[2]+=l,e[3]+=u,e[4]+=h,e[5]+=d,e[6]+=p,e[7]+=f,i+=64,s-=64}return i}e.vp=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},93350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(98099),i=r(17309);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var s=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,r){if(void 0===r&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=s;var o=new Int32Array([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 a(t,e,r,i,s,a,c){for(var l,u,h,d,p,f,m,g,y=r[0],w=r[1],b=r[2],v=r[3],E=r[4],x=r[5],_=r[6],A=r[7],k=i[0],S=i[1],C=i[2],M=i[3],I=i[4],P=i[5],O=i[6],T=i[7];c>=128;){for(var N=0;N<16;N++){var R=8*N+a;t[N]=n.readUint32BE(s,R),e[N]=n.readUint32BE(s,R+4)}for(N=0;N<80;N++){var B,j,L=y,U=w,D=b,$=v,F=E,z=x,H=_,W=k,q=S,V=C,G=M,K=I,Z=P,J=O;if(p=65535&(u=T),f=u>>>16,m=65535&(l=A),g=l>>>16,p+=65535&(u=(I>>>14|E<<18)^(I>>>18|E<<14)^(E>>>9|I<<23)),f+=u>>>16,m+=65535&(l=(E>>>14|I<<18)^(E>>>18|I<<14)^(I>>>9|E<<23)),g+=l>>>16,p+=65535&(u=I&P^~I&O),f+=u>>>16,m+=65535&(l=E&x^~E&_),g+=l>>>16,l=o[2*N],p+=65535&(u=o[2*N+1]),f+=u>>>16,m+=65535&l,g+=l>>>16,l=t[N%16],f+=(u=e[N%16])>>>16,m+=65535&l,g+=l>>>16,m+=(f+=(p+=65535&u)>>>16)>>>16,p=65535&(u=d=65535&p|f<<16),f=u>>>16,m=65535&(l=h=65535&m|(g+=m>>>16)<<16),g=l>>>16,p+=65535&(u=(k>>>28|y<<4)^(y>>>2|k<<30)^(y>>>7|k<<25)),f+=u>>>16,m+=65535&(l=(y>>>28|k<<4)^(k>>>2|y<<30)^(k>>>7|y<<25)),g+=l>>>16,f+=(u=k&S^k&C^S&C)>>>16,m+=65535&(l=y&w^y&b^w&b),g+=l>>>16,B=65535&(m+=(f+=(p+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,j=65535&p|f<<16,p=65535&(u=G),f=u>>>16,m=65535&(l=$),g=l>>>16,f+=(u=d)>>>16,m+=65535&(l=h),g+=l>>>16,w=L,b=U,v=D,E=$=65535&(m+=(f+=(p+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,x=F,_=z,A=H,y=B,S=W,C=q,M=V,I=G=65535&p|f<<16,P=K,O=Z,T=J,k=j,N%16==15)for(R=0;R<16;R++)l=t[R],p=65535&(u=e[R]),f=u>>>16,m=65535&l,g=l>>>16,l=t[(R+9)%16],p+=65535&(u=e[(R+9)%16]),f+=u>>>16,m+=65535&l,g+=l>>>16,h=t[(R+1)%16],p+=65535&(u=((d=e[(R+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),f+=u>>>16,m+=65535&(l=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),g+=l>>>16,h=t[(R+14)%16],f+=(u=((d=e[(R+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,m+=65535&(l=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,t[R]=65535&m|g<<16,e[R]=65535&p|f<<16}p=65535&(u=k),f=u>>>16,m=65535&(l=y),g=l>>>16,l=r[0],f+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[0]=y=65535&m|g<<16,i[0]=k=65535&p|f<<16,p=65535&(u=S),f=u>>>16,m=65535&(l=w),g=l>>>16,l=r[1],f+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[1]=w=65535&m|g<<16,i[1]=S=65535&p|f<<16,p=65535&(u=C),f=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],f+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=C=65535&p|f<<16,p=65535&(u=M),f=u>>>16,m=65535&(l=v),g=l>>>16,l=r[3],f+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[3]=v=65535&m|g<<16,i[3]=M=65535&p|f<<16,p=65535&(u=I),f=u>>>16,m=65535&(l=E),g=l>>>16,l=r[4],f+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[4]=E=65535&m|g<<16,i[4]=I=65535&p|f<<16,p=65535&(u=P),f=u>>>16,m=65535&(l=x),g=l>>>16,l=r[5],f+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[5]=x=65535&m|g<<16,i[5]=P=65535&p|f<<16,p=65535&(u=O),f=u>>>16,m=65535&(l=_),g=l>>>16,l=r[6],f+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[6]=_=65535&m|g<<16,i[6]=O=65535&p|f<<16,p=65535&(u=T),f=u>>>16,m=65535&(l=A),g=l>>>16,l=r[7],f+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[7]=A=65535&m|g<<16,i[7]=T=65535&p|f<<16,a+=128,c-=128}return a}e.hash=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},17309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var e=0;e{"use strict";e.gi=e.Au=e.KS=e.kz=void 0;const n=r(31416),i=r(17309);function s(t){const e=new Float64Array(16);if(t)for(let r=0;r=0;--t){const e=r[t>>>3]>>>(7&t)&1;l(i,o,e),l(f,m,e),u(g,i,f),h(i,i,f),u(f,o,m),h(o,o,m),p(m,g),p(y,i),d(i,f,i),d(f,o,g),u(g,i,f),h(i,i,f),p(o,i),h(f,m,y),d(i,f,a),u(i,i,m),d(f,f,i),d(i,m,y),d(m,o,n),p(o,g),l(i,o,e),l(f,m,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=f[t],n[t+48]=o[t],n[t+64]=m[t];const w=n.subarray(32),b=n.subarray(16);!function(t,e){const r=s();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)p(r,r),2!==t&&4!==t&&d(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(w,w),d(b,b,w);const v=new Uint8Array(32);return function(t,e){const r=s(),n=s();for(let t=0;t<16;t++)n[t]=e[t];c(n),c(n),c(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,l(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(v,b),v}e.Au=function(t){const r=(0,n.randomBytes)(32,t),s=function(t){if(t.length!==e.KS)throw new Error(`x25519: seed must be ${e.KS} bytes`);const r=new Uint8Array(t);return{publicKey:(n=r,f(n,o)),secretKey:r};var n}(r);return(0,i.wipe)(r),s},e.gi=function(t,r,n=!1){if(t.length!==e.kz)throw new Error("X25519: incorrect secret key length");if(r.length!==e.kz)throw new Error("X25519: incorrect public key length");const i=f(t,r);if(n){let t=0;for(let e=0;e{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){const t=n();return t.subtle||t.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=n,e.getSubtleCrypto=i,e.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},88618:(t,e,r)=>{"use strict";var n=r(34155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=i,e.isNode=s,e.isBrowser=function(){return!i()&&!s()}},1468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(40926),e),n.__exportStar(r(88618),e)},33098:(t,e,r)=>{"use strict";r.d(e,{EthereumProvider:()=>ms});var n=r(17187),i=r.n(n),s=r(49795);const o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(t,e){if(!("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e))return e;!function(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}(t)}function u(t,e={}){if("string"!=typeof t)return t;const r=t.trim();if('"'===t[0]&&'"'===t.at(-1)&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){const t=r.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!c.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(o.test(t)||a.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,l)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}var h=r(48764).Buffer;function d(t,...e){try{return(r=t(...e))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(t){return Promise.reject(t)}var r}function p(t){if(function(t){const e=typeof t;return null===t||"object"!==e&&"function"!==e}(t))return String(t);if(function(t){const e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}(t)||Array.isArray(t))return JSON.stringify(t);if("function"==typeof t.toJSON)return p(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function f(){if(void 0===typeof h)throw new TypeError("[unstorage] Buffer is not supported!")}const m="base64:";function g(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function y(...t){return g(t.join(":"))}function w(t){return(t=g(t))?t+":":""}const b=()=>{const t=new Map;return{name:"memory",options:{},hasItem:e=>t.has(e),getItem:e=>t.get(e)??null,getItemRaw:e=>t.get(e)??null,setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys:()=>Array.from(t.keys()),clear(){t.clear()},dispose(){t.clear()}}};function v(t,e,r){return t.watch?t.watch(((t,n)=>e(t,r+n))):()=>{}}async function E(t){"function"==typeof t.dispose&&await d(t.dispose)}function x(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function _(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=x(r);return(t,r)=>n.then((n=>r(n.transaction(e,t).objectStore(e))))}let A;function k(){return A||(A=_("keyval-store","keyval")),A}function S(t,e=k()){return e("readonly",(e=>x(e.get(t))))}function C(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return(t=>{const e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,((t,e)=>"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e))})(t)}catch(e){return t}}function M(t){return"string"==typeof t?t:(t=>JSON.stringify(t,((t,e)=>"bigint"==typeof e?e.toString()+"n":e)))(t)||""}var I=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",r=t=>e+t;let n;return t.dbName&&t.storeName&&(n=_(t.dbName,t.storeName)),{name:"idb-keyval",options:t,hasItem:async t=>!(typeof await S(r(t),n)>"u"),getItem:async t=>await S(r(t),n)??null,setItem:(t,e)=>function(t,e,r=k()){return r("readwrite",(r=>(r.put(e,t),x(r.transaction))))}(r(t),e,n),removeItem:t=>function(t,e=k()){return e("readwrite",(e=>(e.delete(t),x(e.transaction))))}(r(t),n),getKeys:()=>function(t=k()){return t("readonly",(t=>{if(t.getAllKeys)return x(t.getAllKeys());const e=[];return function(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},x(t.transaction)}(t,(t=>e.push(t.key))).then((()=>e))}))}(n),clear:()=>function(t=k()){return t("readwrite",(t=>(t.clear(),x(t.transaction))))}(n)}};class P{constructor(){this.indexedDb=function(t={}){const e={mounts:{"":t.driver||b()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const r of e.mountpoints)if(t.startsWith(r))return{base:r,relativeKey:t.slice(r.length),driver:e.mounts[r]};return{base:"",relativeKey:t,driver:e.mounts[""]}},n=(t,r)=>e.mountpoints.filter((e=>e.startsWith(t)||r&&t.startsWith(e))).map((r=>({relativeBase:t.length>r.length?t.slice(r.length):void 0,mountpoint:r,driver:e.mounts[r]}))),i=(t,r)=>{if(e.watching){r=g(r);for(const n of e.watchListeners)n(t,r)}},s=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},o=(t,e,n)=>{const i=new Map,s=t=>{let e=i.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},i.set(t.base,e)),e};for(const n of t){const t="string"==typeof n,i=g(t?n:n.key),o=t?void 0:n.value,a=t||!n.options?e:{...e,...n.options},c=r(i);s(c).items.push({key:i,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...i.values()].map((t=>n(t)))).then((t=>t.flat()))},a={hasItem(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return d(i.hasItem,n,e)},getItem(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return d(i.getItem,n,e).then((t=>u(t)))},getItems:(t,e)=>o(t,e,(t=>t.driver.getItems?d(t.driver.getItems,t.items.map((t=>({key:t.relativeKey,options:t.options}))),e).then((e=>e.map((e=>({key:y(t.base,e.key),value:u(e.value)}))))):Promise.all(t.items.map((e=>d(t.driver.getItem,e.relativeKey,e.options).then((t=>({key:e.key,value:u(t)})))))))),getItemRaw(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return i.getItemRaw?d(i.getItemRaw,n,e):d(i.getItem,n,e).then((t=>function(t){return"string"!=typeof t?t:t.startsWith(m)?(f(),h.from(t.slice(7),"base64")):t}(t)))},async setItem(t,e,n={}){if(void 0===e)return a.removeItem(t);t=g(t);const{relativeKey:s,driver:o}=r(t);o.setItem&&(await d(o.setItem,s,p(e),n),o.watch||i("update",t))},async setItems(t,e){await o(t,e,(async t=>{t.driver.setItems&&await d(t.driver.setItems,t.items.map((t=>({key:t.relativeKey,value:p(t.value),options:t.options}))),e),t.driver.setItem&&await Promise.all(t.items.map((e=>d(t.driver.setItem,e.relativeKey,p(e.value),e.options))))}))},async setItemRaw(t,e,n={}){if(void 0===e)return a.removeItem(t,n);t=g(t);const{relativeKey:s,driver:o}=r(t);if(o.setItemRaw)await d(o.setItemRaw,s,e,n);else{if(!o.setItem)return;await d(o.setItem,s,function(t){if("string"==typeof t)return t;f();const e=h.from(t).toString("base64");return m+e}(e),n)}o.watch||i("update",t)},async removeItem(t,e={}){"boolean"==typeof e&&(e={removeMeta:e}),t=g(t);const{relativeKey:n,driver:s}=r(t);s.removeItem&&(await d(s.removeItem,n,e),(e.removeMeta||e.removeMata)&&await d(s.removeItem,n+"$",e),s.watch||i("remove",t))},async getMeta(t,e={}){"boolean"==typeof e&&(e={nativeOnly:e}),t=g(t);const{relativeKey:n,driver:i}=r(t),s=Object.create(null);if(i.getMeta&&Object.assign(s,await d(i.getMeta,n,e)),!e.nativeOnly){const t=await d(i.getItem,n+"$",e).then((t=>u(t)));t&&"object"==typeof t&&("string"==typeof t.atime&&(t.atime=new Date(t.atime)),"string"==typeof t.mtime&&(t.mtime=new Date(t.mtime)),Object.assign(s,t))}return s},setMeta(t,e,r={}){return this.setItem(t+"$",e,r)},removeMeta(t,e={}){return this.removeItem(t+"$",e)},async getKeys(t,e={}){t=w(t);const r=n(t,!0);let i=[];const s=[];for(const t of r){const r=(await d(t.driver.getKeys,t.relativeBase,e)).map((e=>t.mountpoint+g(e))).filter((t=>!i.some((e=>t.startsWith(e)))));s.push(...r),i=[t.mountpoint,...i.filter((e=>!e.startsWith(t.mountpoint)))]}return t?s.filter((e=>e.startsWith(t)&&!e.endsWith("$"))):s.filter((t=>!t.endsWith("$")))},async clear(t,e={}){t=w(t),await Promise.all(n(t,!1).map((async t=>{if(t.driver.clear)return d(t.driver.clear,t.relativeBase,e);if(t.driver.removeItem){const r=await t.driver.getKeys(t.relativeBase||"",e);return Promise.all(r.map((r=>t.driver.removeItem(r,e))))}})))},async dispose(){await Promise.all(Object.values(e.mounts).map((t=>E(t))))},watch:async t=>(await(async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await v(e.mounts[t],i,t)}})(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter((e=>e!==t)),0===e.watchListeners.length&&await s()}),async unwatch(){e.watchListeners=[],await s()},mount(t,r){if((t=w(t))&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort(((t,e)=>e.length-t.length))),e.mounts[t]=r,e.watching&&Promise.resolve(v(r,i,t)).then((r=>{e.unwatch[t]=r})).catch(console.error),a},async unmount(t,r=!0){(t=w(t))&&e.mounts[t]&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),r&&await E(e.mounts[t]),e.mountpoints=e.mountpoints.filter((e=>e!==t)),delete e.mounts[t])},getMount(t=""){t=g(t)+":";const e=r(t);return{driver:e.driver,base:e.base}},getMounts:(t="",e={})=>(t=g(t),n(t,e.parents).map((t=>({driver:t.driver,base:t.mountpoint}))))};return a}({driver:I({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((t=>[t.key,t.value]))}async getItem(t){const e=await this.indexedDb.getItem(t);if(null!==e)return e}async setItem(t,e){await this.indexedDb.setItem(t,M(e))}async removeItem(t){await this.indexedDb.removeItem(t)}}var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},T={exports:{}};function N(t){var e;return[t[0],C(null!=(e=t[1])?e:"")]}!function(){let t;function e(){}t=e,t.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){const t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof O<"u"&&O.localStorage?T.exports=O.localStorage:typeof window<"u"&&window.localStorage?T.exports=window.localStorage:T.exports=new e}();class R{constructor(){this.localStorage=T.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(N)}async getItem(t){const e=this.localStorage.getItem(t);if(null!==e)return C(e)}async setItem(t,e){this.localStorage.setItem(t,M(e))}async removeItem(t){this.localStorage.removeItem(t)}}class B{constructor(){this.initialized=!1,this.setInitialized=t=>{this.storage=t,this.initialized=!0};const t=new R;this.storage=t;try{(async(t,e,r)=>{const n="wc_storage_version",i=await e.getItem(n);if(i&&i>=1)return void r(e);const s=await t.getKeys();if(!s.length)return void r(e);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){const n=await t.getItem(r);await e.setItem(r,n),o.push(r)}}await e.setItem(n,1),r(e),(async(t,e)=>{e.length&&e.forEach((async e=>{await t.removeItem(e)}))})(t,o)})(t,new P,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(t){return await this.initialize(),this.storage.getItem(t)}async setItem(t,e){return await this.initialize(),this.storage.setItem(t,e)}async removeItem(t){return await this.initialize(),this.storage.removeItem(t)}async initialize(){this.initialized||await new Promise((t=>{const e=setInterval((()=>{this.initialized&&(clearInterval(e),t())}),20)}))}}var j=r(90772),L=r(9107),U=r(38200);class D extends U.q{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}}class $ extends U.q{constructor(t,e){super(),this.core=t,this.logger=e,this.records=new Map}}class F{constructor(t,e){this.logger=t,this.core=e}}class z extends U.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class H extends U.q{constructor(t){super()}}class W{constructor(t,e,r,n){this.core=t,this.logger=e,this.name=r}}class q extends U.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class V extends U.q{constructor(t,e){super(),this.core=t,this.logger=e}}class G{constructor(t,e){this.projectId=t,this.logger=e}}class K{constructor(t,e){this.projectId=t,this.logger=e}}class Z{constructor(t){this.opts=t,this.protocol="wc",this.version=2}}class J{constructor(t){this.client=t}}var Q=r(31050),Y=r(31416),X=r(66736);const tt="base64url",et="did",rt="key",nt="base58btc";var it=r(20605),st=r(92263),ot=r(52217);function at(t){return(0,st.B)((0,ot.m)(M(t),"utf8"),tt)}function ct(t){const e=(0,ot.m)("K36",nt),r="z"+(0,st.B)((0,it.z)([e,t]),nt);return[et,rt,r].join(":")}function lt(t=(0,Y.randomBytes)(32)){return Q._w(t)}r(43014);var ut=r(37466);const ht="INTERNAL_ERROR",dt="SERVER_ERROR",pt=[-32700,-32600,-32601,-32602,-32603],ft={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[ht]:{code:-32603,message:"Internal error"},[dt]:{code:-32e3,message:"Server error"}},mt=dt;function gt(t){return Object.keys(ft).includes(t)?ft[t]:ft[mt]}function yt(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var wt=r(1468);function bt(t=3){return Date.now()*Math.pow(10,t)+Math.floor(Math.random()*Math.pow(10,t))}function vt(t=6){return BigInt(bt(t))}function Et(t,e,r){return{id:r||bt(),jsonrpc:"2.0",method:t,params:e}}function xt(t,e){return{id:t,jsonrpc:"2.0",result:e}}function _t(t,e,r){return{id:t,jsonrpc:"2.0",error:At(e,r)}}function At(t,e){return void 0===t?gt(ht):("string"==typeof t&&(t=Object.assign(Object.assign({},gt(dt)),{message:t})),void 0!==e&&(t.data=e),r=t.code,pt.includes(r)&&(t=function(t){return Object.values(ft).find((e=>e.code===t))||ft[mt]}(t.code)),t);var r}class kt{}class St extends kt{constructor(){super()}}class Ct extends St{constructor(t){super()}}function Mt(t,e){const r=function(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==r&&new RegExp(e).test(r)}function It(t){return Mt(t,"^https?:")}function Pt(t){return Mt(t,"^wss?:")}function Ot(t){return"object"==typeof t&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function Tt(t){return Ot(t)&&"method"in t}function Nt(t){return Ot(t)&&(Rt(t)||Bt(t))}function Rt(t){return"result"in t}function Bt(t){return"error"in t}class jt extends Ct{constructor(t){super(t),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async request(t,e){return this.requestStrict(Et(t.method,t.params||[],t.id||vt().toString()),e)}async requestStrict(t,e){return new Promise((async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(t){n(t)}this.events.on(`${t.id}`,(t=>{Bt(t)?n(t.error):r(t.result)}));try{await this.connection.send(t,e)}catch(t){n(t)}}))}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Nt(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&3e3===t.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof t&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(t=>this.onPayload(t))),this.connection.on("close",(t=>this.onClose(t))),this.connection.on("error",(t=>this.events.emit("error",t))),this.connection.on("register_error",(t=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const Lt=t=>t.split("?")[0],Ut=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(57026);class Dt{constructor(t){if(this.url=t,this.events=new n.EventEmitter,this.registering=!1,!Pt(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){return new Promise(((t,e)=>{typeof this.socket>"u"?e(new Error("Connection already closed")):(this.socket.onclose=e=>{this.onClose(e),t()},this.socket.close())}))}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(M(t))}catch(e){this.onError(t.id,e)}}register(t=this.url){if(!Pt(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return e(new Error("WebSocket connection is missing or invalid"));t(this.socket)}))}))}return this.url=t,this.registering=!0,new Promise(((e,n)=>{const i=new URLSearchParams(t).get("origin"),s=(0,wt.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:(a=t,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},o=new Ut(t,[],s);var a;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?o.onerror=t=>{const e=t;n(this.emitError(e.error))}:o.on("error",(t=>{n(this.emitError(t))})),o.onopen=()=>{this.onOpen(o),e(o)}}))}onOpen(t){t.onmessage=t=>this.onPayload(t),t.onclose=t=>this.onClose(t),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const e="string"==typeof t.data?C(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=_t(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return yt(t,Lt(e),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(t){const e=this.parseError(new Error(t?.message||`WebSocket connection failed for host: ${Lt(this.url)}`));return this.events.emit("register_error",e),e}}var $t=r(72307),Ft=r.n($t),zt=r(80204),Ht=r.n(zt),Wt=r(34155);const qt=t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")};class Vt{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Gt{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return Zt(this,t)}}class Kt{constructor(t){this.decoders=t}or(t){return Zt(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Zt=(t,e)=>new Kt({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class Jt{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new Vt(t,e,r),this.decoder=new Gt(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Qt=({name:t,prefix:e,encode:r,decode:n})=>new Jt(t,e,r,n),Yt=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var p=s-i;p!==s&&0===o[p];)p++;for(var f=new Uint8Array(n+(s-p)),m=n;p!==s;)f[m++]=o[p++];return f}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,p=o-1;(0!==h||d>>0,l[p]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var f=o-n;f!==o&&0===l[f];)f++;for(var m=c.repeat(r);fqt(i(t))})},Xt=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>Qt({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),te=Qt({prefix:"\0",name:"identity",encode:t=>(t=>(new TextDecoder).decode(t))(t),decode:t=>(t=>(new TextEncoder).encode(t))(t)});var ee=Object.freeze({__proto__:null,identity:te});const re=Xt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ne=Object.freeze({__proto__:null,base2:re});const ie=Xt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var se=Object.freeze({__proto__:null,base8:ie});const oe=Yt({prefix:"9",name:"base10",alphabet:"0123456789"});var ae=Object.freeze({__proto__:null,base10:oe});const ce=Xt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),le=Xt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var ue=Object.freeze({__proto__:null,base16:ce,base16upper:le});const he=Xt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),de=Xt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),pe=Xt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),fe=Xt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),me=Xt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ge=Xt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ye=Xt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),we=Xt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),be=Xt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ve=Object.freeze({__proto__:null,base32:he,base32upper:de,base32pad:pe,base32padupper:fe,base32hex:me,base32hexupper:ge,base32hexpad:ye,base32hexpadupper:we,base32z:be});const Ee=Yt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),xe=Yt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var _e=Object.freeze({__proto__:null,base36:Ee,base36upper:xe});const Ae=Yt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),ke=Yt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Se=Object.freeze({__proto__:null,base58btc:Ae,base58flickr:ke});const Ce=Xt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Me=Xt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ie=Xt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Pe=Xt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Oe=Object.freeze({__proto__:null,base64:Ce,base64pad:Me,base64url:Ie,base64urlpad:Pe});const Te=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Ne=Te.reduce(((t,e,r)=>(t[r]=e,t)),[]),Re=Te.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Be=Qt({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+Ne[e]),"")},decode:function(t){const e=[];for(const r of t){const t=Re[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var je=Object.freeze({__proto__:null,base256emoji:Be}),Le=Math.pow(2,31),Ue=Math.pow(2,7),De=Math.pow(2,14),$e=Math.pow(2,21),Fe=Math.pow(2,28),ze=Math.pow(2,35),He=Math.pow(2,42),We=Math.pow(2,49),qe=Math.pow(2,56),Ve=Math.pow(2,63),Ge=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=Le;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r};const Ke=(t,e,r=0)=>(Ge(t,e,r),e),Ze=t=>function(t){return t{const r=e.byteLength,n=Ze(t),i=n+Ze(r),s=new Uint8Array(i+r);return Ke(t,s,0),Ke(r,s,n),s.set(e,i),new Qe(t,r,e,s)};class Qe{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const Ye=({name:t,code:e,encode:r})=>new Xe(t,e,r);class Xe{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?Je(this.code,e):e.then((t=>Je(this.code,t)))}throw Error("Unknown type, must be binary type")}}const tr=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),er=Ye({name:"sha2-256",code:18,encode:tr("SHA-256")}),rr=Ye({name:"sha2-512",code:19,encode:tr("SHA-512")});Object.freeze({__proto__:null,sha256:er,sha512:rr});const nr=qt,ir={code:0,name:"identity",encode:nr,digest:t=>Je(0,nr(t))};Object.freeze({__proto__:null,identity:ir}),new TextEncoder,new TextDecoder;const sr={...ee,...ne,...se,...ae,...ue,...ve,..._e,...Se,...Oe,...je};function or(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function ar(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const cr=ar("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),lr=ar("ascii","a",(t=>{let e="a";for(let r=0;r{const e=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?or(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length);for(let r=0;r{if(!this.initialized){const t=await this.getKeyChain();typeof t<"u"&&(this.keychain=t),this.initialized=!0}},this.has=t=>(this.isInitialized(),this.keychain.has(t)),this.set=async(t,e)=>{this.isInitialized(),this.keychain.set(t,e),await this.persist()},this.get=t=>{this.isInitialized();const e=this.keychain.get(t);if(typeof e>"u"){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e},this.del=async t=>{this.isInitialized(),this.keychain.delete(t),await this.persist()},this.core=t,this.logger=(0,L.generateChildLogger)(e,this.name)}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,(0,s.KC)(t))}async getKeyChain(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?(0,s.IP)(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Gr{constructor(t,e,r){this.core=t,this.logger=e,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=t=>(this.isInitialized(),this.keychain.has(t)),this.getClientId=async()=>(this.isInitialized(),ct(lt(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();const t=(0,s.Au)();return this.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=async t=>{this.isInitialized();const e=lt(await this.getClientSeed()),r=(0,s.jd)(),n=mr;return await async function(t,e,r,n,i=(0,X.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:ct(n.publicKey),sub:t,aud:e,iat:i,exp:i+r},a=(c={header:s,payload:o},(0,ot.m)([at(c.header),at(c.payload)].join("."),"utf8"));var c;return function(t){return[at(t.header),at(t.payload),(e=t.signature,(0,st.B)(e,tt))].join(".");var e}({header:s,payload:o,signature:Q.Xx(n.secretKey,a)})}(r,t,n,e)},this.generateSharedKey=(t,e,r)=>{this.isInitialized();const n=this.getPrivateKey(t),i=(0,s.m$)(n,e);return this.setSymKey(i,r)},this.setSymKey=async(t,e)=>{this.isInitialized();const r=e||(0,s.Ym)(t);return await this.keychain.set(r,t),r},this.deleteKeyPair=async t=>{this.isInitialized(),await this.keychain.del(t)},this.deleteSymKey=async t=>{this.isInitialized(),await this.keychain.del(t)},this.encode=async(t,e,r)=>{this.isInitialized();const n=(0,s.EN)(r),i=M(e);if((0,s.Q8)(n)){const e=n.senderPublicKey,r=n.receiverPublicKey;t=await this.generateSharedKey(e,r)}const o=this.getSymKey(t),{type:a,senderPublicKey:c}=n;return(0,s.HI)({type:a,symKey:o,message:i,senderPublicKey:c})},this.decode=async(t,e,r)=>{this.isInitialized();const n=(0,s.Ll)(e,r);if((0,s.Q8)(n)){const e=n.receiverPublicKey,r=n.senderPublicKey;t=await this.generateSharedKey(e,r)}try{const r=this.getSymKey(t);return C((0,s.pe)({symKey:r,encoded:e}))}catch(e){this.logger.error(`Failed to decode message from topic: '${t}', clientId: '${await this.getClientId()}'`),this.logger.error(e)}},this.getPayloadType=t=>{const e=(0,s.vB)(t);return(0,s.WG)(e.type)},this.getPayloadSenderPublicKey=t=>{const e=(0,s.vB)(t);return e.senderPublicKey?(0,ut.BB)(e.senderPublicKey,s.AW):void 0},this.core=t,this.logger=(0,L.generateChildLogger)(e,this.name),this.keychain=r||new Vr(this.core,this.logger)}get context(){return(0,L.getLoggerContext)(this.logger)}async setPrivateKey(t,e){return await this.keychain.set(t,e),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(fr)}catch{t=(0,s.jd)(),await this.keychain.set(fr,t)}return function(t,e="utf8"){const r=ur[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):or(globalThis.Buffer.from(t,"utf-8"))}(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Kr extends F{constructor(t,e){super(t,e),this.logger=t,this.core=e,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const t=await this.getRelayerMessages();typeof t<"u"&&(this.messages=t),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}finally{this.initialized=!0}}},this.set=async(t,e)=>{this.isInitialized();const r=(0,s.rj)(e);let n=this.messages.get(t);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=e,this.messages.set(t,n),await this.persist()),r},this.get=t=>{this.isInitialized();let e=this.messages.get(t);return typeof e>"u"&&(e={}),e},this.has=(t,e)=>(this.isInitialized(),typeof this.get(t)[(0,s.rj)(e)]<"u"),this.del=async t=>{this.isInitialized(),this.messages.delete(t),await this.persist()},this.logger=(0,L.generateChildLogger)(t,this.name),this.core=e}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,(0,s.KC)(t))}async getRelayerMessages(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?(0,s.IP)(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Zr extends z{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.events=new n.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,X.toMiliseconds)(X.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(t,e,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}});try{const i=r?.ttl||gr,o=(0,s._H)(r),a=r?.prompt||!1,c=r?.tag||0,l=r?.id||vt().toString(),u={topic:t,message:e,opts:{ttl:i,relay:o,prompt:a,tag:c,id:l}},h=setTimeout((()=>this.queue.set(l,u)),this.publishTimeout);try{await await(0,s.hF)(this.rpcPublish(t,e,i,o,a,c,l),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(l),this.relayer.events.emit(Ar,u)}catch(t){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,null!=(n=r?.internal)&&n.throwOnFailedPublish)throw this.removeRequestFromQueue(l),t;return}finally{clearTimeout(h)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(t),t}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.relayer=t,this.logger=(0,L.generateChildLogger)(e,this.name),this.registerEventListeners()}get context(){return(0,L.getLoggerContext)(this.logger)}rpcPublish(t,e,r,n,i,o,a){var c,l,u,h;const d={method:(0,s.cO)(n.protocol).publish,params:{topic:t,message:e,ttl:r,prompt:i,tag:o},id:a};return(0,s.o8)(null==(c=d.params)?void 0:c.prompt)&&(null==(l=d.params)||delete l.prompt),(0,s.o8)(null==(u=d.params)?void 0:u.tag)&&(null==(h=d.params)||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(t){this.queue.delete(t)}checkQueue(){this.queue.forEach((async t=>{const{topic:e,message:r,opts:n}=t;await this.publish(e,r,n)}))}registerEventListeners(){this.relayer.core.heartbeat.on(j.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(_r);this.checkQueue()})),this.relayer.on(vr,(t=>{this.removeRequestFromQueue(t.id.toString())}))}}class Jr{constructor(){this.map=new Map,this.set=(t,e)=>{const r=this.get(t);this.exists(t,e)||this.map.set(t,[...r,e])},this.get=t=>this.map.get(t)||[],this.exists=(t,e)=>this.get(t).includes(e),this.delete=(t,e)=>{if(typeof e>"u")return void this.map.delete(t);if(!this.map.has(t))return;const r=this.get(t);if(!this.exists(t,e))return;const n=r.filter((t=>t!==e));n.length?this.map.set(t,n):this.map.delete(t)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Qr=Object.defineProperty,Yr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,nn=(t,e,r)=>e in t?Qr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sn=(t,e)=>{for(var r in e||(e={}))en.call(e,r)&&nn(t,r,e[r]);if(tn)for(var r of tn(e))rn.call(e,r)&&nn(t,r,e[r]);return t},on=(t,e)=>Yr(t,Xr(e));class an extends q{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.subscriptions=new Map,this.topicMap=new Jr,this.events=new n.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=dr,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}});try{const r=(0,s._H)(e),n={topic:t,relay:r};this.pending.set(t,n);const i=await this.rpcSubscribe(t,r);return this.onSubscribe(i,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}}),i}catch(t){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(t),t}},this.unsubscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),typeof e?.id<"u"?await this.unsubscribeById(t,e.id,e):await this.unsubscribeByTopic(t,e)},this.isSubscribed=async t=>!!this.topics.includes(t)||await new Promise(((e,r)=>{const n=new X.Watch;n.start(this.pendingSubscriptionWatchLabel);const i=setInterval((()=>{!this.pending.has(t)&&this.topics.includes(t)&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),e(!0)),n.elapsed(this.pendingSubscriptionWatchLabel)>=Nr&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),r(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1)),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,L.generateChildLogger)(e,this.name),this.clientId=""}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,e){let r=!1;try{r=this.getSubscription(t).topic===e}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(t,e){const r=this.topicMap.get(t);await Promise.all(r.map((async r=>await this.unsubscribeById(t,r,e))))}async unsubscribeById(t,e,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}});try{const n=(0,s._H)(r);await this.rpcUnsubscribe(t,e,n);const i=(0,s.D6)("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,e,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(t),t}}async rpcSubscribe(t,e){const r={method:(0,s.cO)(e.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{await await(0,s.hF)(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(_r)}return(0,s.rj)(t+this.clientId)}async rpcBatchSubscribe(t){if(!t.length)return;const e=t[0].relay,r={method:(0,s.cO)(e.protocol).batchSubscribe,params:{topics:t.map((t=>t.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await(0,s.hF)(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(_r)}}rpcUnsubscribe(t,e,r){const n={method:(0,s.cO)(r.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),this.relayer.request(n)}onSubscribe(t,e){this.setSubscription(t,on(sn({},e),{id:t})),this.pending.delete(e.topic)}onBatchSubscribe(t){t.length&&t.forEach((t=>{this.setSubscription(t.id,sn({},t)),this.pending.delete(t.topic)}))}async onUnsubscribe(t,e,r){this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,r),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,e){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e))}addSubscription(t,e){this.subscriptions.set(t,sn({},e)),this.topicMap.set(e.topic,t),this.events.emit(Pr,e)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});const e=this.subscriptions.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}deleteSubscription(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});const r=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(r.topic,t),this.events.emit(Or,on(sn({},r),{reason:e}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}async reset(){if(this.cached.length){const t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let e=0;e"u"||!t.length)return;if(this.subscriptions.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async batchSubscribe(t){if(!t.length)return;const e=await this.rpcBatchSubscribe(t);(0,s.qt)(e)&&this.onBatchSubscribe(e.map(((e,r)=>on(sn({},t[r]),{id:e}))))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const t=[];this.pending.forEach((e=>{t.push(e)})),await this.batchSubscribe(t)}registerEventListeners(){this.relayer.core.heartbeat.on(j.HEARTBEAT_EVENTS.pulse,(async()=>{await this.checkPending()})),this.relayer.on(Er,(async()=>{await this.onConnect()})),this.relayer.on(xr,(()=>{this.onDisconnect()})),this.events.on(Pr,(async t=>{const e=Pr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()})),this.events.on(Or,(async t=>{const e=Or;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise((t=>{const e=setInterval((()=>{this.restartInProgress||(clearInterval(e),t())}),this.pollingInterval)}))}}var cn=Object.defineProperty,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,dn=(t,e,r)=>e in t?cn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;class pn extends H{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new n.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async t=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(t)}catch(t){throw this.logger.debug("Failed to Publish Request"),this.logger.error(t),t}},this.onPayloadHandler=t=>{this.onProviderPayload(t)},this.onConnectHandler=()=>{this.events.emit(Er)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.error(t),this.events.emit("relayer_error",t),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(kr,this.onPayloadHandler),this.provider.on(Sr,this.onConnectHandler),this.provider.on(Cr,this.onDisconnectHandler),this.provider.on(Mr,this.onProviderErrorHandler)},this.core=t.core,this.logger=typeof t.logger<"u"&&"string"!=typeof t.logger?(0,L.generateChildLogger)(t.logger,this.name):(0,L.pino)((0,L.getDefaultLoggerOptions)({level:t.logger||"error"})),this.messages=new Kr(this.logger,t.core),this.subscriber=new an(this,this.logger),this.publisher=new Zr(this,this.logger),this.relayUrl=t?.relayUrl||yr,this.projectId=t.projectId,this.bundleId=(0,s.X_)(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${wr}...`),await this.restartTransport(wr)}this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return(0,L.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,e,r){this.isInitialized(),await this.publisher.publish(t,e,r),await this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()})}async subscribe(t,e){var r;this.isInitialized();let n,i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"";if(i)return i;const s=e=>{e.topic===t&&(this.subscriber.off(Pr,s),n())};return await Promise.all([new Promise((t=>{n=t,this.subscriber.on(Pr,s)})),new Promise((async r=>{i=await this.subscriber.subscribe(t,e),r()}))]),i}async unsubscribe(t,e){this.isInitialized(),await this.subscriber.unsubscribe(t,e)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await(0,s.hF)(this.provider.disconnect(),1e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.connected&&await this.provider.disconnect()}async transportOpen(t){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){t&&t!==this.relayUrl&&(this.relayUrl=t,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise((t=>{if(!this.initialized)return t();this.subscriber.once(Tr,(()=>{t()}))})),new Promise((async(t,e)=>{try{await(0,s.hF)(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(t){return void e(t)}t()}))])}catch(t){this.logger.error(t);const e=t;if(!this.isConnectionStalled(e.message))throw t;this.provider.events.emit(Cr)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(t){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=t||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await(0,s.Gg)())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(t){return this.staleConnectionErrors.some((e=>t.includes(e)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const t=await this.core.crypto.signJWT(this.relayUrl);this.provider=new jt(new Dt((0,s.$0)({sdkVersion:"2.11.0",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(t){const{topic:e,message:r}=t;await this.messages.set(e,r)}async shouldIgnoreMessageEvent(t){const{topic:e,message:r}=t;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(e))return this.logger.debug(`Ignoring message for non-subscribed topic ${e}`),!0;const n=this.messages.has(e,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),Tt(t)){if(!t.method.endsWith("_subscription"))return;const e=t.params,{topic:r,message:n,publishedAt:i}=e.data,s={topic:r,message:n,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((t,e)=>{for(var r in e||(e={}))un.call(e,r)&&dn(t,r,e[r]);if(ln)for(var r of ln(e))hn.call(e,r)&&dn(t,r,e[r]);return t})({type:"event",event:e.id},s)),this.events.emit(e.id,s),await this.acknowledgePayload(t),await this.onMessageEvent(s)}else Nt(t)&&this.events.emit(vr,t)}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(br,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){const e=xt(t.id,!0);await this.provider.connection.send(e)}unregisterProviderListeners(){this.provider.off(kr,this.onPayloadHandler),this.provider.off(Sr,this.onConnectHandler),this.provider.off(Cr,this.onDisconnectHandler),this.provider.off(Mr,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(_r,(()=>{this.restartTransport().catch((t=>this.logger.error(t)))}));let t=await(0,s.Gg)();(0,s.uw)((async e=>{this.initialized&&t!==e&&(t=e,e?await this.restartTransport().catch((t=>this.logger.error(t))):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch((t=>this.logger.error(t)))))}))}onProviderDisconnect(){this.events.emit(xr),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout((async()=>{await this.restartTransport().catch((t=>this.logger.error(t)))}),(0,X.toMiliseconds)(Ir)))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise((t=>{const e=setInterval((()=>{this.connected&&(clearInterval(e),t())}),this.connectionStatusPollingInterval)}));await this.restartTransport()}}}var fn=Object.defineProperty,mn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,wn=(t,e,r)=>e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bn=(t,e)=>{for(var r in e||(e={}))gn.call(e,r)&&wn(t,r,e[r]);if(mn)for(var r of mn(e))yn.call(e,r)&&wn(t,r,e[r]);return t};class vn extends W{constructor(t,e,r,n=dr,i){super(t,e,r,n),this.core=t,this.logger=e,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>{this.getKey&&null!==t&&!(0,s.o8)(t)?this.map.set(this.getKey(t),t):(0,s.xW)(t)?this.map.set(t.id,t):(0,s.h1)(t)&&this.map.set(t.topic,t)})),this.cached=[],this.initialized=!0)},this.set=async(t,e)=>{this.isInitialized(),this.map.has(t)?await this.update(t,e):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),await this.persist())},this.get=t=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:t}),this.getData(t)),this.getAll=t=>(this.isInitialized(),t?this.values.filter((e=>Object.keys(t).every((r=>Ft()(e[r],t[r]))))):this.values),this.update=async(t,e)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e});const r=bn(bn({},this.getData(t)),e);this.map.set(t,r),await this.persist()},this.delete=async(t,e)=>{this.isInitialized(),this.map.has(t)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),await this.persist())},this.logger=(0,L.generateChildLogger)(e,this.name),this.storagePrefix=n,this.getKey=i}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){const e=this.map.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}async persist(){await this.setDataStore(this.values)}async restore(){try{const t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class En{constructor(t,e){this.core=t,this.logger=e,this.name="pairing",this.version="0.3",this.events=new(i()),this.initialized=!1,this.storagePrefix=dr,this.ignoredPayloadTypes=[s.rV],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:t})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...t])]},this.create=async()=>{this.isInitialized();const t=(0,s.jd)(),e=await this.core.crypto.setSymKey(t),r=(0,s.gn)(X.FIVE_MINUTES),n={protocol:"irn"},i={topic:e,expiry:r,relay:n,active:!1},o=(0,s.Bv)({protocol:this.core.protocol,version:this.core.version,topic:e,symKey:t,relay:n});return await this.pairings.set(e,i),await this.core.relayer.subscribe(e),this.core.expirer.set(e,r),{topic:e,uri:o}},this.pair=async t=>{this.isInitialized(),this.isValidPair(t);const{topic:e,symKey:r,relay:n}=(0,s.he)(t.uri);let i;if(this.pairings.keys.includes(e)&&(i=this.pairings.get(e),i.active))throw new Error(`Pairing already exists: ${e}. Please try again with a new connection URI.`);const o=(0,s.gn)(X.FIVE_MINUTES),a={topic:e,relay:n,expiry:o,active:!1};return await this.pairings.set(e,a),this.core.expirer.set(e,o),t.activatePairing&&await this.activate({topic:e}),this.events.emit(Br,a),this.core.crypto.keychain.has(e)||(await this.core.crypto.setSymKey(r,e),await this.core.relayer.subscribe(e,{relay:n})),a},this.activate=async({topic:t})=>{this.isInitialized();const e=(0,s.gn)(X.THIRTY_DAYS);await this.pairings.update(t,{active:!0,expiry:e}),this.core.expirer.set(t,e)},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.pairings.keys.includes(e)){const t=await this.sendRequest(e,"wc_pairingPing",{}),{done:r,resolve:n,reject:i}=(0,s.H1)();this.events.once((0,s.E0)("pairing_ping",t),(({error:t})=>{t?i(t):n()})),await r()}},this.updateExpiry=async({topic:t,expiry:e})=>{this.isInitialized(),await this.pairings.update(t,{expiry:e})},this.updateMetadata=async({topic:t,metadata:e})=>{this.isInitialized(),await this.pairings.update(t,{peerMetadata:e})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.pairings.keys.includes(e)&&(await this.sendRequest(e,"wc_pairingDelete",(0,s.D6)("USER_DISCONNECTED")),await this.deletePairing(e))},this.sendRequest=async(t,e,r)=>{const n=Et(e,r),i=await this.core.crypto.encode(t,n),s=Rr[e].req;return this.core.history.set(t,n),this.core.relayer.publish(t,i,s),n.id},this.sendResult=async(t,e,r)=>{const n=xt(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Rr[s.request.method].res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.sendError=async(t,e,r)=>{const n=_t(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Rr[s.request.method]?Rr[s.request.method].res:Rr.unregistered_method.res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.deletePairing=async(t,e)=>{await this.core.relayer.unsubscribe(t),await Promise.all([this.pairings.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)])},this.cleanup=async()=>{const t=this.pairings.getAll().filter((t=>(0,s.Bw)(t.expiry)));await Promise.all(t.map((t=>this.deletePairing(t.topic))))},this.onRelayEventRequest=t=>{const{topic:e,payload:r}=t;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(e,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(e,r);default:return this.onUnknownRpcMethodRequest(e,r)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.core.history.get(e,r.id)).request.method;return"wc_pairingPing"===n?this.onPairingPingResponse(e,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult(r,t,!0),this.events.emit("pairing_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onPairingPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{Rt(e)?this.events.emit((0,s.E0)("pairing_ping",r),{}):Bt(e)&&this.events.emit((0,s.E0)("pairing_ping",r),{error:e.error})}),500)},this.onPairingDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t}),await this.deletePairing(t),this.events.emit("pairing_delete",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodRequest=async(t,e)=>{const{id:r,method:n}=e;try{if(this.registeredMethods.includes(n))return;const e=(0,s.D6)("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,t,e),this.logger.error(e)}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodResponse=t=>{this.registeredMethods.includes(t)||this.logger.error((0,s.D6)("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=t=>{var e;if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pair() params: ${t}`);throw new Error(e)}if(!(0,s.jv)(t.uri)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pair() uri: ${t.uri}`);throw new Error(e)}const r=(0,s.he)(t.uri);if(null==(e=r?.relay)||!e.protocol){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(t)}if(null==r||!r.symKey){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(t)}},this.isValidPing=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidDisconnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidPairingTopic=async t=>{if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.pairings.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.pairings.get(t).expiry)){await this.deletePairing(t);const{message:e}=(0,s.Z7)("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}},this.core=t,this.logger=(0,L.generateChildLogger)(e,this.name),this.pairings=new vn(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,L.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(br,(async t=>{const{topic:e,message:r}=t;if(!this.pairings.keys.includes(e)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(e,r);try{Tt(n)?(this.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Nt(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.core.history.delete(e,n.id))}catch(t){this.logger.error(t)}}))}registerExpirerEvents(){this.core.expirer.on(Fr,(async t=>{const{topic:e}=(0,s.iP)(t.target);e&&this.pairings.keys.includes(e)&&(await this.deletePairing(e,!0),this.events.emit("pairing_expire",{topic:e}))}))}}class xn extends ${constructor(t,e){super(t,e),this.core=t,this.logger=e,this.records=new Map,this.events=new n.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.records.set(t.id,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(t,e,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:t,request:e,chainId:r}),this.records.has(e.id))return;const n={id:e.id,topic:t,request:{method:e.method,params:e.params||null},chainId:r,expiry:(0,s.gn)(X.THIRTY_DAYS)};this.records.set(n.id,n),this.events.emit(jr,n)},this.resolve=async t=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:t}),!this.records.has(t.id))return;const e=await this.getRecord(t.id);typeof e.response>"u"&&(e.response=Bt(t)?{error:t.error}:{result:t.result},this.records.set(e.id,e),this.events.emit(Lr,e))},this.get=async(t,e)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),await this.getRecord(e)),this.delete=(t,e)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:e}),this.values.forEach((r=>{if(r.topic===t){if(typeof e<"u"&&r.id!==e)return;this.records.delete(r.id),this.events.emit(Ur,r)}}))},this.exists=async(t,e)=>(this.isInitialized(),!!this.records.has(e)&&(await this.getRecord(e)).topic===t),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,L.generateChildLogger)(e,this.name)}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const t=[];return this.values.forEach((e=>{if(typeof e.response<"u")return;const r={topic:e.topic,request:Et(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(r)})),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();const e=this.records.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{const t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(jr,(t=>{const e=jr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(Lr,(t=>{const e=Lr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(Ur,(t=>{const e=Ur;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.core.heartbeat.on(j.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.records.forEach((t=>{(0,X.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.delete(t.topic,t.id))}))}catch(t){this.logger.warn(t)}}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class _n extends V{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.expirations=new Map,this.events=new n.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.expirations.set(t.target,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=t=>{try{const e=this.formatTarget(t);return typeof this.getExpiration(e)<"u"}catch{return!1}},this.set=(t,e)=>{this.isInitialized();const r=this.formatTarget(t),n={target:r,expiry:e};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(Dr,{target:r,expiration:n})},this.get=t=>{this.isInitialized();const e=this.formatTarget(t);return this.getExpiration(e)},this.del=t=>{if(this.isInitialized(),this.has(t)){const e=this.formatTarget(t),r=this.getExpiration(e);this.expirations.delete(e),this.events.emit($r,{target:e,expiration:r})}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,L.generateChildLogger)(e,this.name)}get context(){return(0,L.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if("string"==typeof t)return(0,s.Z4)(t);if("number"==typeof t)return(0,s.Gq)(t);const{message:e}=(0,s.Z7)("UNKNOWN_TYPE","Target type: "+typeof t);throw new Error(e)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}async restore(){try{const t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){const e=this.expirations.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}checkExpiry(t,e){const{expiry:r}=e;(0,X.toMiliseconds)(r)-Date.now()<=0&&this.expire(t,e)}expire(t,e){this.expirations.delete(t),this.events.emit(Fr,{target:t,expiration:e})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((t,e)=>this.checkExpiry(e,t)))}registerEventListeners(){this.core.heartbeat.on(j.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(Dr,(t=>{const e=Dr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(Fr,(t=>{const e=Fr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on($r,(t=>{const e=$r;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class An extends G{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.name=zr,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async t=>{if(this.verifyDisabled||(0,s.b$)()||!(0,s.jU)())return;const e=this.getVerifyUrl(t?.verifyUrl);this.verifyUrl!==e&&this.removeIframe(),this.verifyUrl=e;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t)}if(!this.initialized){this.removeIframe(),this.verifyUrl=Wr;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t),this.verifyDisabled=!0}}},this.register=async t=>{this.initialized?this.sendPost(t.attestationId):(this.addToQueue(t.attestationId),await this.init())},this.resolve=async t=>{if(this.isDevEnv)return"";const e=this.getVerifyUrl(t?.verifyUrl);let r;try{r=await this.fetchAttestation(t.attestationId,e)}catch(n){this.logger.info(`failed to resolve attestation: ${t.attestationId} from url: ${e}`),this.logger.info(n),r=await this.fetchAttestation(t.attestationId,Wr)}return r},this.fetchAttestation=async(t,e)=>{this.logger.info(`resolving attestation: ${t} from url: ${e}`);const r=this.startAbortTimer(2*X.ONE_SECOND),n=await fetch(`${e}/attestation/${t}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=t=>{this.queue.push(t)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((t=>this.sendPost(t))),this.queue=[])},this.sendPost=t=>{var e;try{if(!this.iframe)return;null==(e=this.iframe.contentWindow)||e.postMessage(t,"*"),this.logger.info(`postMessage sent: ${t} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let t;const e=r=>{"verify_ready"===r.data&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",e),t())};await Promise.race([new Promise((r=>{if(document.getElementById(zr))return r();window.addEventListener("message",e);const n=document.createElement("iframe");n.id=zr,n.src=`${this.verifyUrl}/${this.projectId}`,n.style.display="none",document.body.append(n),this.iframe=n,t=r})),new Promise(((t,r)=>setTimeout((()=>{window.removeEventListener("message",e),r("verify iframe load timeout")}),(0,X.toMiliseconds)(X.FIVE_SECONDS))))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=t=>{let e=t||Hr;return qr.includes(e)||(this.logger.info(`verify url: ${e}, not included in trusted list, assigning default: ${Hr}`),e=Hr),e},this.logger=(0,L.generateChildLogger)(e,this.name),this.verifyUrl=Hr,this.abortController=new AbortController,this.isDevEnv=(0,s.UG)()&&Wt.env.IS_VITEST}get context(){return(0,L.getLoggerContext)(this.logger)}startAbortTimer(t){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,X.toMiliseconds)(t))}}class kn extends K{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.context="echo",this.registerDeviceToken=async t=>{const{clientId:e,token:r,notificationType:n,enableEncrypted:i=!1}=t,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await Ht()(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:e,type:n,token:r,always_raw:i})})},this.logger=(0,L.generateChildLogger)(e,this.context)}}var Sn=Object.defineProperty,Cn=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,On=(t,e)=>{for(var r in e||(e={}))Mn.call(e,r)&&Pn(t,r,e[r]);if(Cn)for(var r of Cn(e))In.call(e,r)&&Pn(t,r,e[r]);return t};class Tn extends D{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=hr,this.events=new n.EventEmitter,this.initialized=!1,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.projectId=t?.projectId,this.relayUrl=t?.relayUrl||yr,this.customStoragePrefix=null!=t&&t.customStoragePrefix?`:${t.customStoragePrefix}`:"";const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,L.pino)((0,L.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.logger=(0,L.generateChildLogger)(e,this.name),this.heartbeat=new j.HeartBeat,this.crypto=new Gr(this,this.logger,t?.keychain),this.history=new xn(this,this.logger),this.expirer=new _n(this,this.logger),this.storage=null!=t&&t.storage?t.storage:new B(On(On({},pr),t?.storageOptions)),this.relayer=new pn({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new En(this,this.logger),this.verify=new An(this.projectId||"",this.logger),this.echoClient=new kn(this.projectId||"",this.logger)}static async init(t){const e=new Tn(t);await e.initialize();const r=await e.crypto.getClientId();return await e.storage.setItem("WALLETCONNECT_CLIENT_ID",r),e}get context(){return(0,L.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}}const Nn=Tn,Rn="client",Bn=`wc@2:${Rn}:`,jn=Rn,Ln="WALLETCONNECT_DEEPLINK_CHOICE",Un="Proposal expired",Dn=X.SEVEN_DAYS,$n={wc_sessionPropose:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1104},res:{ttl:X.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1106},res:{ttl:X.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1112},res:{ttl:X.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1115}}},Fn={min:X.FIVE_MINUTES,max:X.SEVEN_DAYS},zn="IDLE",Hn="ACTIVE",Wn=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var qn=Object.defineProperty,Vn=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Qn=(t,e,r)=>e in t?qn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e||(e={}))Zn.call(e,r)&&Qn(t,r,e[r]);if(Kn)for(var r of Kn(e))Jn.call(e,r)&&Qn(t,r,e[r]);return t},Xn=(t,e)=>Vn(t,Gn(e));class ti extends J{constructor(t){super(t),this.name="engine",this.events=new(i()),this.initialized=!1,this.ignoredPayloadTypes=[s.rV],this.requestQueue={state:zn,queue:[]},this.sessionRequestQueue={state:zn,queue:[]},this.requestQueueDelay=X.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys($n)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,X.toMiliseconds)(this.requestQueueDelay)))},this.connect=async t=>{await this.isInitialized();const e=Xn(Yn({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(e);const{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:o,relays:a}=e;let c,l=r,u=!1;if(l&&(u=this.client.core.pairing.pairings.get(l).active),!l||!u){const{topic:t,uri:e}=await this.client.core.pairing.create();l=t,c=e}const h=await this.client.core.crypto.generateKeyPair(),d=Yn({requiredNamespaces:n,optionalNamespaces:i,relays:a??[{protocol:"irn"}],proposer:{publicKey:h,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:p,resolve:f,done:m}=(0,s.H1)(X.FIVE_MINUTES,Un);if(this.events.once((0,s.E0)("session_connect"),(async({error:t,session:e})=>{if(t)p(t);else if(e){e.self.publicKey=h;const t=Xn(Yn({},e),{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces});await this.client.session.set(e.topic,t),await this.setExpiry(e.topic,e.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:e.peer.metadata}),f(t)}})),!l){const{message:t}=(0,s.Z7)("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(t)}const g=await this.sendRequest({topic:l,method:"wc_sessionPropose",params:d}),y=(0,s.gn)(X.FIVE_MINUTES);return await this.setProposal(g,Yn({id:g,expiry:y},d)),{uri:c,approval:m}},this.pair=async t=>(await this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{await this.isInitialized(),await this.isValidApprove(t);const{id:e,relayProtocol:r,namespaces:n,sessionProperties:i}=t,o=this.client.proposal.get(e);let{pairingTopic:a,proposer:c,requiredNamespaces:l,optionalNamespaces:u}=o;a=a||"",(0,s.L5)(l)||(l=(0,s.fc)(n,"approve()"));const h=await this.client.core.crypto.generateKeyPair(),d=c.publicKey,p=await this.client.core.crypto.generateSharedKey(h,d);a&&e&&(await this.client.core.pairing.updateMetadata({topic:a,metadata:c.metadata}),await this.sendResult({id:e,topic:a,result:{relay:{protocol:r??"irn"},responderPublicKey:h}}),await this.client.proposal.delete(e,(0,s.D6)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a}));const f=Yn({relay:{protocol:r??"irn"},namespaces:n,requiredNamespaces:l,optionalNamespaces:u,pairingTopic:a,controller:{publicKey:h,metadata:this.client.metadata},expiry:(0,s.gn)(Dn)},i&&{sessionProperties:i});await this.client.core.relayer.subscribe(p),await this.sendRequest({topic:p,method:"wc_sessionSettle",params:f,throwOnFailedPublish:!0});const m=Xn(Yn({},f),{topic:p,pairingTopic:a,acknowledged:!1,self:f.controller,peer:{publicKey:c.publicKey,metadata:c.metadata},controller:h});return await this.client.session.set(p,m),await this.setExpiry(p,(0,s.gn)(Dn)),{topic:p,acknowledged:()=>new Promise((t=>setTimeout((()=>t(this.client.session.get(p))),500)))}},this.reject=async t=>{await this.isInitialized(),await this.isValidReject(t);const{id:e,reason:r}=t,{pairingTopic:n}=this.client.proposal.get(e);n&&(await this.sendError(e,n,r),await this.client.proposal.delete(e,(0,s.D6)("USER_DISCONNECTED")))},this.update=async t=>{await this.isInitialized(),await this.isValidUpdate(t);const{topic:e,namespaces:r}=t,n=await this.sendRequest({topic:e,method:"wc_sessionUpdate",params:{namespaces:r}}),{done:i,resolve:o,reject:a}=(0,s.H1)();return this.events.once((0,s.E0)("session_update",n),(({error:t})=>{t?a(t):o()})),await this.client.session.update(e,{namespaces:r}),{acknowledged:i}},this.extend=async t=>{await this.isInitialized(),await this.isValidExtend(t);const{topic:e}=t,r=await this.sendRequest({topic:e,method:"wc_sessionExtend",params:{}}),{done:n,resolve:i,reject:o}=(0,s.H1)();return this.events.once((0,s.E0)("session_extend",r),(({error:t})=>{t?o(t):i()})),await this.setExpiry(e,(0,s.gn)(Dn)),{acknowledged:n}},this.request=async t=>{await this.isInitialized(),await this.isValidRequest(t);const{chainId:e,request:r,topic:n,expiry:i}=t,o=bt(),{done:a,resolve:c,reject:l}=(0,s.H1)(i,"Request expired. Please try again.");return this.events.once((0,s.E0)("session_request",o),(({error:t,result:e})=>{t?l(t):c(e)})),await Promise.all([new Promise((async t=>{await this.sendRequest({clientRpcId:o,topic:n,method:"wc_sessionRequest",params:{request:r,chainId:e},expiry:i,throwOnFailedPublish:!0}).catch((t=>l(t))),this.client.events.emit("session_request_sent",{topic:n,request:r,chainId:e,id:o}),t()})),new Promise((async t=>{const e=await(0,s.bW)(this.client.core.storage,Ln);(0,s.Hh)({id:o,topic:n,wcDeepLink:e}),t()})),a()]).then((t=>t[2]))},this.respond=async t=>{await this.isInitialized(),await this.isValidRespond(t);const{topic:e,response:r}=t,{id:n}=r;Rt(r)?await this.sendResult({id:n,topic:e,result:r.result,throwOnFailedPublish:!0}):Bt(r)&&await this.sendError(n,e,r.error),this.cleanupAfterResponse(t)},this.ping=async t=>{await this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.client.session.keys.includes(e)){const t=await this.sendRequest({topic:e,method:"wc_sessionPing",params:{}}),{done:r,resolve:n,reject:i}=(0,s.H1)();this.events.once((0,s.E0)("session_ping",t),(({error:t})=>{t?i(t):n()})),await r()}else this.client.core.pairing.pairings.keys.includes(e)&&await this.client.core.pairing.ping({topic:e})},this.emit=async t=>{await this.isInitialized(),await this.isValidEmit(t);const{topic:e,event:r,chainId:n}=t;await this.sendRequest({topic:e,method:"wc_sessionEvent",params:{event:r,chainId:n}})},this.disconnect=async t=>{await this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.client.session.keys.includes(e)?(await this.sendRequest({topic:e,method:"wc_sessionDelete",params:(0,s.D6)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(e)):await this.client.core.pairing.disconnect({topic:e})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter((e=>(0,s.Ih)(e,t)))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async t=>{if(t.pairingTopic)try{const e=this.client.core.pairing.pairings.get(t.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&r.topic&&r.topic!==e.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((t=>this.client.core.pairing.disconnect({topic:t.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async(t,e)=>{const{self:r}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),this.client.session.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(r.publicKey)&&await this.client.core.crypto.deleteKeyPair(r.publicKey),this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteSymKey(t),e||this.client.core.expirer.del(t),this.client.core.storage.removeItem(Ln).catch((t=>this.client.logger.warn(t))),this.getPendingSessionRequests().forEach((e=>{e.topic===t&&this.deletePendingSessionRequest(e.id,(0,s.D6)("USER_DISCONNECTED"))}))},this.deleteProposal=async(t,e)=>{await Promise.all([this.client.proposal.delete(t,(0,s.D6)("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,e,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((e=>e.id!==t)),r&&(this.sessionRequestQueue.state=zn)},this.setExpiry=async(t,e)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:e}),this.client.core.expirer.set(t,e)},this.setProposal=async(t,e)=>{await this.client.proposal.set(t,e),this.client.core.expirer.set(t,e.expiry)},this.setPendingSessionRequest=async t=>{const e=$n.wc_sessionRequest.req.ttl,{id:r,topic:n,params:i,verifyContext:o}=t;await this.client.pendingRequest.set(r,{id:r,topic:n,params:i,verifyContext:o}),e&&this.client.core.expirer.set(r,(0,s.gn)(e))},this.sendRequest=async t=>{const{topic:e,method:r,params:n,expiry:i,relayRpcId:o,clientRpcId:a,throwOnFailedPublish:c}=t,l=Et(r,n,a);if((0,s.jU)()&&Wn.includes(r)){const t=(0,s.rj)(JSON.stringify(l));this.client.core.verify.register({attestationId:t})}const u=await this.client.core.crypto.encode(e,l),h=$n[r].req;return i&&(h.ttl=i),o&&(h.id=o),this.client.core.history.set(e,l),c?(h.internal=Xn(Yn({},h.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(e,u,h)):this.client.core.relayer.publish(e,u,h).catch((t=>this.client.logger.error(t))),l.id},this.sendResult=async t=>{const{id:e,topic:r,result:n,throwOnFailedPublish:i}=t,s=xt(e,n),o=await this.client.core.crypto.encode(r,s),a=await this.client.core.history.get(r,e),c=$n[a.request.method].res;i?(c.internal=Xn(Yn({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,o,c)):this.client.core.relayer.publish(r,o,c).catch((t=>this.client.logger.error(t))),await this.client.core.history.resolve(s)},this.sendError=async(t,e,r)=>{const n=_t(t,r),i=await this.client.core.crypto.encode(e,n),s=await this.client.core.history.get(e,t),o=$n[s.request.method].res;this.client.core.relayer.publish(e,i,o),await this.client.core.history.resolve(n)},this.cleanup=async()=>{const t=[],e=[];this.client.session.getAll().forEach((e=>{(0,s.Bw)(e.expiry)&&t.push(e.topic)})),this.client.proposal.getAll().forEach((t=>{(0,s.Bw)(t.expiry)&&e.push(t.id)})),await Promise.all([...t.map((t=>this.deleteSession(t))),...e.map((t=>this.deleteProposal(t)))])},this.onRelayEventRequest=async t=>{this.requestQueue.queue.push(t),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==Hn){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Hn;const t=this.requestQueue.queue.shift();if(t)try{this.processRequest(t),await new Promise((t=>setTimeout(t,300)))}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=zn}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=t=>{const{topic:e,payload:r}=t,n=r.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeRequest(e,r);case"wc_sessionSettle":return this.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return this.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return this.onSessionExtendRequest(e,r);case"wc_sessionPing":return this.onSessionPingRequest(e,r);case"wc_sessionDelete":return this.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return this.onSessionRequest(e,r);case"wc_sessionEvent":return this.onSessionEventRequest(e,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.client.core.history.get(e,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(e,r);case"wc_sessionSettle":return this.onSessionSettleResponse(e,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(e,r);case"wc_sessionExtend":return this.onSessionExtendResponse(e,r);case"wc_sessionPing":return this.onSessionPingResponse(e,r);case"wc_sessionRequest":return this.onSessionRequestResponse(e,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=t=>{const{topic:e}=t,{message:r}=(0,s.Z7)("MISSING_OR_INVALID",`Decoded payload on topic ${e} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.onSessionProposeRequest=async(t,e)=>{const{params:r,id:n}=e;try{this.isValidConnect(Yn({},e.params));const i=(0,s.gn)(X.FIVE_MINUTES),o=Yn({id:n,pairingTopic:t,expiry:i},r);await this.setProposal(n,o);const a=(0,s.rj)(JSON.stringify(e)),c=await this.getVerifyContext(a,o.proposer.metadata);this.client.events.emit("session_proposal",{id:n,params:o,verifyContext:c})}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.onSessionProposeResponse=async(t,e)=>{const{id:r}=e;if(Rt(e)){const{result:n}=e;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const i=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const s=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s});const o=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:o});const a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:a});const c=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:t})}else Bt(e)&&(await this.client.proposal.delete(r,(0,s.D6)("USER_DISCONNECTED")),this.events.emit((0,s.E0)("session_connect"),{error:e.error}))},this.onSessionSettleRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidSessionSettleRequest(n);const{relay:r,controller:i,expiry:o,namespaces:a,requiredNamespaces:c,optionalNamespaces:l,sessionProperties:u,pairingTopic:h}=e.params,d=Yn({topic:t,relay:r,expiry:o,namespaces:a,acknowledged:!0,pairingTopic:h,requiredNamespaces:c,optionalNamespaces:l,controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},u&&{sessionProperties:u});await this.sendResult({id:e.id,topic:t,result:!0}),this.events.emit((0,s.E0)("session_connect"),{session:d}),this.cleanupDuplicatePairings(d)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionSettleResponse=async(t,e)=>{const{id:r}=e;Rt(e)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit((0,s.E0)("session_approve",r),{})):Bt(e)&&(await this.client.session.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.events.emit((0,s.E0)("session_approve",r),{error:e.error}))},this.onSessionUpdateRequest=async(t,e)=>{const{params:r,id:n}=e;try{const e=`${t}_session_update`,i=s.O6.get(e);if(i&&this.isRequestOutOfSync(i,n))return void this.client.logger.info(`Discarding out of sync request - ${n}`);this.isValidUpdate(Yn({topic:t},r)),await this.client.session.update(t,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:t,result:!0}),this.client.events.emit("session_update",{id:n,topic:t,params:r}),s.O6.set(e,n)}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.isRequestOutOfSync=(t,e)=>parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3)),this.onSessionUpdateResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_update",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_update",r),{error:e.error})},this.onSessionExtendRequest=async(t,e)=>{const{id:r}=e;try{this.isValidExtend({topic:t}),await this.setExpiry(t,(0,s.gn)(Dn)),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_extend",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionExtendResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_extend",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_extend",r),{error:e.error})},this.onSessionPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{Rt(e)?this.events.emit((0,s.E0)("session_ping",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_ping",r),{error:e.error})}),500)},this.onSessionDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t,reason:e.params}),await Promise.all([new Promise((e=>{this.client.core.relayer.once(Ar,(async()=>{e(await this.deleteSession(t))}))})),this.sendResult({id:r,topic:t,result:!0})]),this.client.events.emit("session_delete",{id:r,topic:t})}catch(t){this.client.logger.error(t)}},this.onSessionRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidRequest(Yn({topic:t},n));const e=(0,s.rj)(JSON.stringify(Et("wc_sessionRequest",n,r))),i=this.client.session.get(t),o={id:r,topic:t,params:n,verifyContext:await this.getVerifyContext(e,i.peer.metadata)};await this.setPendingSessionRequest(o),this.addSessionRequestToSessionRequestQueue(o),this.processSessionRequestQueue()}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionRequestResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_request",r),{result:e.result}):Bt(e)&&this.events.emit((0,s.E0)("session_request",r),{error:e.error})},this.onSessionEventRequest=async(t,e)=>{const{id:r,params:n}=e;try{const e=`${t}_session_event_${n.event.name}`,i=s.O6.get(e);if(i&&this.isRequestOutOfSync(i,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(Yn({topic:t},n)),this.client.events.emit("session_event",{id:r,topic:t,params:n}),s.O6.set(e,r)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.addSessionRequestToSessionRequestQueue=t=>{this.sessionRequestQueue.queue.push(t)},this.cleanupAfterResponse=t=>{this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=zn,this.processSessionRequestQueue()}),(0,X.toMiliseconds)(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Hn)return void this.client.logger.info("session request queue is already active.");const t=this.sessionRequestQueue.queue[0];if(t)try{this.sessionRequestQueue.state=Hn,this.client.events.emit("session_request",t)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.onPairingCreated=t=>{if(t.active)return;const e=this.client.proposal.getAll().find((e=>e.pairingTopic===t.topic));e&&this.onSessionProposeRequest(t.topic,Et("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))},this.isValidConnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(e)}const{pairingTopic:e,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:o}=t;if((0,s.o8)(e)||await this.isValidPairingTopic(e),!(0,s.PM)(o,!0)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(t)}!(0,s.o8)(r)&&0!==(0,s.L5)(r)&&this.validateNamespaces(r,"requiredNamespaces"),!(0,s.o8)(n)&&0!==(0,s.L5)(n)&&this.validateNamespaces(n,"optionalNamespaces"),(0,s.o8)(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(t,e)=>{const r=(0,s.n)(t,"connect()",e);if(r)throw new Error(r.message)},this.isValidApprove=async t=>{if(!(0,s.EJ)(t))throw new Error((0,s.Z7)("MISSING_OR_INVALID",`approve() params: ${t}`).message);const{id:e,namespaces:r,relayProtocol:n,sessionProperties:i}=t;await this.isValidProposalId(e);const o=this.client.proposal.get(e),a=(0,s.in)(r,"approve()");if(a)throw new Error(a.message);const c=(0,s.rF)(o.requiredNamespaces,r,"approve()");if(c)throw new Error(c.message);if(!(0,s.M_)(n,!0)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw new Error(t)}(0,s.o8)(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(e)}const{id:e,reason:r}=t;if(await this.isValidProposalId(e),!(0,s.$t)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidSessionSettleRequest=t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(e)}const{relay:e,controller:r,namespaces:n,expiry:i}=t;if(!(0,s.Z2)(e)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(t)}const o=(0,s.Dd)(r,"onSessionSettleRequest()");if(o)throw new Error(o.message);const a=(0,s.in)(n,"onSessionSettleRequest()");if(a)throw new Error(a.message);if((0,s.Bw)(i)){const{message:t}=(0,s.Z7)("EXPIRED","onSessionSettleRequest()");throw new Error(t)}},this.isValidUpdate=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(e)}const{topic:e,namespaces:r}=t;await this.isValidSessionTopic(e);const n=this.client.session.get(e),i=(0,s.in)(r,"update()");if(i)throw new Error(i.message);const o=(0,s.rF)(n.requiredNamespaces,r,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionTopic(e)},this.isValidRequest=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(e)}const{topic:e,request:r,chainId:n,expiry:i}=t;await this.isValidSessionTopic(e);const{namespaces:o}=this.client.session.get(e);if(!(0,s.p8)(o,n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() chainId: ${n}`);throw new Error(t)}if(!(0,s.hH)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(t)}if(!(0,s.al)(o,n,r.method)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(t)}if(i&&!(0,s.ON)(i,Fn)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${Fn.min} and ${Fn.max}`);throw new Error(t)}},this.isValidRespond=async t=>{var e;if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(e)}const{topic:r,response:n}=t;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(e=t?.response)&&e.id&&this.cleanupAfterResponse(t),r}if(!(0,s.JT)(n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(n)}`);throw new Error(t)}},this.isValidPing=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.isValidEmit=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(e)}const{topic:e,event:r,chainId:n}=t;await this.isValidSessionTopic(e);const{namespaces:i}=this.client.session.get(e);if(!(0,s.p8)(i,n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw new Error(t)}if(!(0,s.nf)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}if(!(0,s.sI)(i,n,r.name)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidDisconnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.getVerifyContext=async(t,e)=>{const r={verified:{verifyUrl:e.verifyUrl||Hr,validation:"UNKNOWN",origin:e.url||""}};try{const n=await this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(e.url).origin?"VALID":"INVALID")}catch(t){this.client.logger.info(t)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(t,e)=>{Object.values(t).forEach((t=>{if(!(0,s.M_)(t,!1)){const{message:r}=(0,s.Z7)("MISSING_OR_INVALID",`${e} must be in Record format. Received: ${JSON.stringify(t)}`);throw new Error(r)}}))}}async isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(br,(async t=>{const{topic:e,message:r}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(r)))return;const n=await this.client.core.crypto.decode(e,r);try{Tt(n)?(this.client.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Nt(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.client.core.history.delete(e,n.id)):this.onRelayEventUnknownPayload({topic:e,payload:n})}catch(t){this.client.logger.error(t)}}))}registerExpirerEvents(){this.client.core.expirer.on(Fr,(async t=>{const{topic:e,id:r}=(0,s.iP)(t.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,(0,s.Z7)("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession(e,!0),this.client.events.emit("session_expire",{topic:e})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))}))}registerPairingEvents(){this.client.core.pairing.events.on(Br,(t=>this.onPairingCreated(t)))}isValidPairingTopic(t){if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.core.pairing.pairings.get(t).expiry)){const{message:e}=(0,s.Z7)("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}}async isValidSessionTopic(t){if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(e)}if(!this.client.session.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.session.get(t).expiry)){await this.deleteSession(t);const{message:e}=(0,s.Z7)("EXPIRED",`session topic: ${t}`);throw new Error(e)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else{if(!this.client.core.pairing.pairings.keys.includes(t)){if((0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(e)}{const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(e)}}this.isValidPairingTopic(t)}}async isValidProposalId(t){if(!(0,s.Q0)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(e)}if(!this.client.proposal.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);const{message:e}=(0,s.Z7)("EXPIRED",`proposal id: ${t}`);throw new Error(e)}}}class ei extends vn{constructor(t,e){super(t,e,"proposal",Bn),this.core=t,this.logger=e}}class ri extends vn{constructor(t,e){super(t,e,"session",Bn),this.core=t,this.logger=e}}class ni extends vn{constructor(t,e){super(t,e,"request",Bn,(t=>t.id)),this.core=t,this.logger=e}}class ii extends Z{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=jn,this.events=new n.EventEmitter,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(t){throw this.logger.error(t.message),t}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(t){throw this.logger.error(t.message),t}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(t){throw this.logger.error(t.message),t}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(t){throw this.logger.error(t.message),t}},this.update=async t=>{try{return await this.engine.update(t)}catch(t){throw this.logger.error(t.message),t}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(t){throw this.logger.error(t.message),t}},this.request=async t=>{try{return await this.engine.request(t)}catch(t){throw this.logger.error(t.message),t}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(t){throw this.logger.error(t.message),t}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(t){throw this.logger.error(t.message),t}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(t){throw this.logger.error(t.message),t}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(t){throw this.logger.error(t.message),t}},this.find=t=>{try{return this.engine.find(t)}catch(t){throw this.logger.error(t.message),t}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.name=t?.name||jn,this.metadata=t?.metadata||(0,s.D)();const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,L.pino)((0,L.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.core=t?.core||new Nn(t),this.logger=(0,L.generateChildLogger)(e,this.name),this.session=new ri(this.core,this.logger),this.proposal=new ei(this.core,this.logger),this.pendingRequest=new ni(this.core,this.logger),this.engine=new ti(this)}static async init(t){const e=new ii(t);return await e.initialize(),e}get context(){return(0,L.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}}var si=r(54098),oi=r.n(si);const ai={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class ci{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new n.EventEmitter,this.isAvailable=!1,this.registering=!1,!It(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,e){this.isAvailable||await this.register();try{const e=M(t),r=await oi()(this.url,Object.assign(Object.assign({},ai),{body:e})),n=await r.json();this.onPayload({data:n})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!It(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.isAvailable)return e(new Error("HTTP connection is missing or invalid"));t()}))}))}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=M({id:1,jsonrpc:"2.0",method:"test",params:[]});await oi()(t,Object.assign(Object.assign({},ai),{body:e}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(void 0===t.data)return;const e="string"==typeof t.data?C(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=_t(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return yt(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const li=ci,ui="error",hi="wc@2:universal_provider:",di="default_chain_changed";var pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},fi={exports:{}};!function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",s="__lodash_placeholder__",o=32,a=128,c=1/0,l=9007199254740991,u=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],p="[object Arguments]",f="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",v="[object Map]",E="[object Number]",x="[object Object]",_="[object Promise]",A="[object RegExp]",k="[object Set]",S="[object String]",C="[object Symbol]",M="[object WeakMap]",I="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",U="[object Uint16Array]",D="[object Uint32Array]",$=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,q=RegExp(H.source),V=RegExp(W.source),G=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(X.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="["+bt+"]",Ct="["+kt+"]",Mt="["+vt+"]",It="\\d+",Pt="["+Et+"]",Ot="["+xt+"]",Tt="[^"+bt+kt+It+Et+xt+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+bt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+_t+"]",Ut="\\u200d",Dt="(?:"+Ot+"|"+Tt+")",$t="(?:"+Lt+"|"+Tt+")",Ft="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Mt+"|"+Nt+")?",Wt="["+At+"]?",qt=Wt+Ht+"(?:"+Ut+"(?:"+[Rt,Bt,jt].join("|")+")"+Wt+Ht+")*",Vt="(?:"+[Pt,Bt,jt].join("|")+")"+qt,Gt="(?:"+[Rt+Mt+"?",Mt,Bt,jt,St].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(Mt,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Gt+qt,"g"),Qt=RegExp([Lt+"?"+Ot+"+"+Ft+"(?="+[Ct,Lt,"$"].join("|")+")",$t+"+"+zt+"(?="+[Ct,Lt+Dt,"$"].join("|")+")",Lt+"?"+Dt+"+"+Ft,Lt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Vt].join("|"),"g"),Yt=RegExp("["+Ut+bt+vt+At+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,re={};re[O]=re[T]=re[N]=re[R]=re[B]=re[j]=re[L]=re[U]=re[D]=!0,re[p]=re[f]=re[I]=re[m]=re[P]=re[g]=re[y]=re[w]=re[v]=re[E]=re[x]=re[A]=re[k]=re[S]=re[M]=!1;var ne={};ne[p]=ne[f]=ne[I]=ne[P]=ne[m]=ne[g]=ne[O]=ne[T]=ne[N]=ne[R]=ne[B]=ne[v]=ne[E]=ne[x]=ne[A]=ne[k]=ne[S]=ne[C]=ne[j]=ne[L]=ne[U]=ne[D]=!0,ne[y]=ne[w]=ne[M]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,oe=parseInt,ae="object"==typeof pi&&pi&&pi.Object===Object&&pi,ce="object"==typeof self&&self&&self.Object===Object&&self,le=ae||ce||Function("return this")(),ue=e&&!e.nodeType&&e,he=ue&&t&&!t.nodeType&&t,de=he&&he.exports===ue,pe=de&&ae.process,fe=function(){try{return he&&he.require&&he.require("util").types||pe&&pe.binding&&pe.binding("util")}catch{}}(),me=fe&&fe.isArrayBuffer,ge=fe&&fe.isDate,ye=fe&&fe.isMap,we=fe&&fe.isRegExp,be=fe&&fe.isSet,ve=fe&&fe.isTypedArray;function Ee(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function xe(t,e,r,n){for(var i=-1,s=null==t?0:t.length;++i-1}function Me(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Qe(t,e){for(var r=t.length;r--&&Le(e,t[r],0)>-1;);return r}var Ye=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xe=ze({"&":"&","<":"<",">":">",'"':""","'":"'"});function tr(t){return"\\"+ie[t]}function er(t){return Yt.test(t)}function rr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function nr(t,e){return function(r){return t(e(r))}}function ir(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),ur=function t(e){var rt=(e=null==e?le:ur.defaults(le.Object(),e,ur.pick(le,te))).Array,bt=e.Date,vt=e.Error,Et=e.Function,xt=e.Math,_t=e.Object,At=e.RegExp,kt=e.String,St=e.TypeError,Ct=rt.prototype,Mt=Et.prototype,It=_t.prototype,Pt=e["__core-js_shared__"],Ot=Mt.toString,Tt=It.hasOwnProperty,Nt=0,Rt=function(){var t=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Bt=It.toString,jt=Ot.call(_t),Lt=le._,Ut=At("^"+Ot.call(Tt).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=de?e.Buffer:r,$t=e.Symbol,Ft=e.Uint8Array,zt=Dt?Dt.allocUnsafe:r,Ht=nr(_t.getPrototypeOf,_t),Wt=_t.create,qt=It.propertyIsEnumerable,Vt=Ct.splice,Gt=$t?$t.isConcatSpreadable:r,Jt=$t?$t.iterator:r,Yt=$t?$t.toStringTag:r,ie=function(){try{var t=os(_t,"defineProperty");return t({},"",{}),t}catch{}}(),ae=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=bt&&bt.now!==le.Date.now&&bt.now,ue=e.setTimeout!==le.setTimeout&&e.setTimeout,he=xt.ceil,pe=xt.floor,fe=_t.getOwnPropertySymbols,Re=Dt?Dt.isBuffer:r,ze=e.isFinite,hr=Ct.join,dr=nr(_t.keys,_t),pr=xt.max,fr=xt.min,mr=bt.now,gr=e.parseInt,yr=xt.random,wr=Ct.reverse,br=os(e,"DataView"),vr=os(e,"Map"),Er=os(e,"Promise"),xr=os(e,"Set"),_r=os(e,"WeakMap"),Ar=os(_t,"create"),kr=_r&&new _r,Sr={},Cr=Rs(br),Mr=Rs(vr),Ir=Rs(Er),Pr=Rs(xr),Or=Rs(_r),Tr=$t?$t.prototype:r,Nr=Tr?Tr.valueOf:r,Rr=Tr?Tr.toString:r;function Br(t){if(Yo(t)&&!Fo(t)&&!(t instanceof Dr)){if(t instanceof Ur)return t;if(Tt.call(t,"__wrapped__"))return Bs(t)}return new Ur(t)}var jr=function(){function t(){}return function(e){if(!Qo(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Lr(){}function Ur(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Dr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function $r(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function nn(t,e,n,i,s,o){var a,c=1&e,l=2&e,u=4&e;if(n&&(a=s?n(t,i,s,o):n(t)),a!==r)return a;if(!Qo(t))return t;var h=Fo(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Ai(t,a)}else{var d=ls(t),f=d==w||d==b;if(qo(t))return wi(t,c);if(d==x||d==p||f&&!s){if(a=l||f?{}:hs(t),!c)return l?function(t,e){return ki(t,cs(t),e)}(t,function(t,e){return t&&ki(e,Ia(e),t)}(a,t)):function(t,e){return ki(t,as(t),e)}(t,Xr(a,t))}else{if(!ne[d])return s?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case I:return bi(t);case m:case g:return new n(+t);case P:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case O:case T:case N:case R:case B:case j:case L:case U:case D:return vi(t,r);case v:return new n;case E:case S:return new n(t);case A:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new n;case C:return function(t){return Nr?_t(Nr.call(t)):{}}(t)}}(t,d,c)}}o||(o=new Wr);var y=o.get(t);if(y)return y;o.set(t,a),na(t)?t.forEach((function(r){a.add(nn(r,e,n,r,t,o))})):Xo(t)&&t.forEach((function(r,i){a.set(i,nn(r,e,n,i,t,o))}));var _=h?r:(u?l?Xi:Yi:l?Ia:Ma)(t);return _e(_||t,(function(r,i){_&&(r=t[i=r]),Jr(a,i,nn(r,e,n,i,t,o))})),a}function sn(t,e,n){var i=n.length;if(null==t)return!i;for(t=_t(t);i--;){var s=n[i],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function on(t,e,i){if("function"!=typeof t)throw new St(n);return ks((function(){t.apply(r,i)}),e)}function an(t,e,r,n){var i=-1,s=Ce,o=!0,a=t.length,c=[],l=e.length;if(!a)return c;r&&(e=Ie(e,Ge(r))),n?(s=Me,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hr(e));t:for(;++i-1},Fr.prototype.set=function(t,e){var r=this.__data__,n=Qr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new $r,map:new(vr||Fr),string:new $r}},zr.prototype.delete=function(t){var e=is(this,t).delete(t);return this.size-=e?1:0,e},zr.prototype.get=function(t){return is(this,t).get(t)},zr.prototype.has=function(t){return is(this,t).has(t)},zr.prototype.set=function(t,e){var r=is(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(t){return this.__data__.set(t,i),this},Hr.prototype.has=function(t){return this.__data__.has(t)},Wr.prototype.clear=function(){this.__data__=new Fr,this.size=0},Wr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Wr.prototype.get=function(t){return this.__data__.get(t)},Wr.prototype.has=function(t){return this.__data__.has(t)},Wr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Fr){var n=r.__data__;if(!vr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(t,e),this.size=r.size,this};var cn=Mi(gn),ln=Mi(yn,!0);function un(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function hn(t,e,n){for(var i=-1,s=t.length;++i0&&r(a)?e>1?pn(a,e-1,r,n,i):Pe(i,a):n||(i[i.length]=a)}return i}var fn=Ii(),mn=Ii(!0);function gn(t,e){return t&&fn(t,e,Ma)}function yn(t,e){return t&&mn(t,e,Ma)}function wn(t,e){return Se(e,(function(e){return Ko(t[e])}))}function bn(t,e){for(var n=0,i=(e=fi(e,t)).length;null!=t&&ne}function _n(t,e){return null!=t&&Tt.call(t,e)}function An(t,e){return null!=t&&e in _t(t)}function kn(t,e,n){for(var i=n?Me:Ce,s=t[0].length,o=t.length,a=o,c=rt(o),l=1/0,u=[];a--;){var h=t[a];a&&e&&(h=Ie(h,Ge(e))),l=fr(h.length,l),c[a]=!n&&(e||s>=120&&h.length>=120)?new Hr(a&&h):r}h=t[0];var d=-1,p=c[0];t:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(i)}function $n(t,e,r){for(var n=-1,i=e.length,s={};++n-1;)a!==t&&Vt.call(a,c,1),Vt.call(t,c,1);return t}function zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==s){var s=i;ps(i)?Vt.call(t,i,1):oi(t,i)}}return t}function Hn(t,e){return t+pe(yr()*(e-t+1))}function Wn(t,e){var r="";if(!t||e<1||e>l)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function qn(t,e){return Ss(Es(t,e,tc),t+"")}function Vn(t){return Vr(La(t))}function Gn(t,e){var r=La(t);return Is(r,rn(e,0,r.length))}function Kn(t,e,n,i){if(!Qo(t))return t;for(var s=-1,o=(e=fi(e,t)).length,a=o-1,c=t;null!=c&&++si?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=rt(i);++n>>1,o=t[s];null!==o&&!sa(o)&&(r?o<=e:o=200){var l=e?null:Wi(t);if(l)return sr(l);o=!1,i=Ze,c=new Hr}else c=e?[]:a;t:for(;++n=i?t:Yn(t,e,n)}var yi=ae||function(t){return le.clearTimeout(t)};function wi(t,e){if(e)return t.slice();var r=t.length,n=zt?zt(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function vi(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,o=sa(t),a=e!==r,c=null===e,l=e==e,u=sa(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!u&&t1?n[s-1]:r,a=s>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(s--,o):r,a&&fs(n[0],n[1],a)&&(o=s<3?r:o,s=1),e=_t(e);++i-1?s[o?e[a]:a]:r}}function Ri(t){return Qi((function(e){var i=e.length,s=i,o=Ur.prototype.thru;for(t&&e.reverse();s--;){var a=e[s];if("function"!=typeof a)throw new St(n);if(o&&!c&&"wrapper"==es(a))var c=new Ur([],!0)}for(s=c?s:i;++s1&&b.reverse(),d&&uc))return!1;var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var d=-1,p=!0,f=2&n?new Hr:r;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return _e(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(st):[]}(n),r)))}function Ms(t){var e=0,n=0;return function(){var i=mr(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Is(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,eo(t,n)}));function co(t){var e=Br(t);return e.__chain__=!0,e}function lo(t,e){return e(t)}var uo=Qi((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return en(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Dr&&ps(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:lo,args:[s],thisArg:r}),new Ur(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(s)})),ho=Si((function(t,e,r){Tt.call(t,r)?++t[r]:tn(t,r,1)})),po=Ni(Ds),fo=Ni($s);function mo(t,e){return(Fo(t)?_e:cn)(t,ns(e,3))}function go(t,e){return(Fo(t)?Ae:ln)(t,ns(e,3))}var yo=Si((function(t,e,r){Tt.call(t,r)?t[r].push(e):tn(t,r,[e])})),wo=qn((function(t,e,r){var n=-1,i="function"==typeof e,s=Ho(t)?rt(t.length):[];return cn(t,(function(t){s[++n]=i?Ee(e,t,r):Sn(t,e,r)})),s})),bo=Si((function(t,e,r){tn(t,r,e)}));function vo(t,e){return(Fo(t)?Ie:Rn)(t,ns(e,3))}var Eo=Si((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),xo=qn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&fs(t,e[0],e[1])?e=[]:r>2&&fs(e[0],e[1],e[2])&&(e=[e[0]]),Dn(t,pn(e,1),[])})),_o=ce||function(){return le.Date.now()};function Ao(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Vi(t,a,r,r,r,r,e)}function ko(t,e){var i;if("function"!=typeof e)throw new St(n);return t=ha(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var So=qn((function(t,e,r){var n=1;if(r.length){var i=ir(r,rs(So));n|=o}return Vi(t,n,e,r,i)})),Co=qn((function(t,e,r){var n=3;if(r.length){var i=ir(r,rs(Co));n|=o}return Vi(e,n,t,r,i)}));function Mo(t,e,i){var s,o,a,c,l,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new St(n);function m(e){var n=s,i=o;return s=o=r,h=e,c=t.apply(i,n)}function g(t){var n=t-u;return u===r||n>=e||n<0||p&&t-h>=a}function y(){var t=_o();if(g(t))return w(t);l=ks(y,function(t){var r=e-(t-u);return p?fr(r,a-(t-h)):r}(t))}function w(t){return l=r,f&&s?m(t):(s=o=r,c)}function b(){var t=_o(),n=g(t);if(s=arguments,o=this,u=t,n){if(l===r)return function(t){return h=t,l=ks(y,e),d?m(t):c}(u);if(p)return yi(l),l=ks(y,e),m(u)}return l===r&&(l=ks(y,e)),c}return e=pa(e)||0,Qo(i)&&(d=!!i.leading,a=(p="maxWait"in i)?pr(pa(i.maxWait)||0,e):a,f="trailing"in i?!!i.trailing:f),b.cancel=function(){l!==r&&yi(l),h=0,s=u=o=l=r},b.flush=function(){return l===r?c:w(_o())},b}var Io=qn((function(t,e){return on(t,1,e)})),Po=qn((function(t,e,r){return on(t,pa(e)||0,r)}));function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Oo.Cache||zr),r}function To(t){if("function"!=typeof t)throw new St(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oo.Cache=zr;var No=mi((function(t,e){var r=(e=1==e.length&&Fo(e[0])?Ie(e[0],Ge(ns())):Ie(pn(e,1),Ge(ns()))).length;return qn((function(n){for(var i=-1,s=fr(n.length,r);++i=e})),$o=Cn(function(){return arguments}())?Cn:function(t){return Yo(t)&&Tt.call(t,"callee")&&!qt.call(t,"callee")},Fo=rt.isArray,zo=me?Ge(me):function(t){return Yo(t)&&En(t)==I};function Ho(t){return null!=t&&Jo(t.length)&&!Ko(t)}function Wo(t){return Yo(t)&&Ho(t)}var qo=Re||pc,Vo=ge?Ge(ge):function(t){return Yo(t)&&En(t)==g};function Go(t){if(!Yo(t))return!1;var e=En(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ea(t)}function Ko(t){if(!Qo(t))return!1;var e=En(t);return e==w||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==ha(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function Qo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yo(t){return null!=t&&"object"==typeof t}var Xo=ye?Ge(ye):function(t){return Yo(t)&&ls(t)==v};function ta(t){return"number"==typeof t||Yo(t)&&En(t)==E}function ea(t){if(!Yo(t)||En(t)!=x)return!1;var e=Ht(t);if(null===e)return!0;var r=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ot.call(r)==jt}var ra=we?Ge(we):function(t){return Yo(t)&&En(t)==A},na=be?Ge(be):function(t){return Yo(t)&&ls(t)==k};function ia(t){return"string"==typeof t||!Fo(t)&&Yo(t)&&En(t)==S}function sa(t){return"symbol"==typeof t||Yo(t)&&En(t)==C}var oa=ve?Ge(ve):function(t){return Yo(t)&&Jo(t.length)&&!!re[En(t)]},aa=Fi(Nn),ca=Fi((function(t,e){return t<=e}));function la(t){if(!t)return[];if(Ho(t))return ia(t)?ar(t):Ai(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=ls(t);return(e==v?rr:e==k?sr:La)(t)}function ua(t){return t?(t=pa(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var e=ua(t),r=e%1;return e==e?r?e-r:e:0}function da(t){return t?rn(ha(t),0,h):0}function pa(t){if("number"==typeof t)return t;if(sa(t))return u;if(Qo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=dt.test(t);return r||ft.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?u:+t}function fa(t){return ki(t,Ia(t))}function ma(t){return null==t?"":ii(t)}var ga=Ci((function(t,e){if(ws(e)||Ho(e))ki(e,Ma(e),t);else for(var r in e)Tt.call(e,r)&&Jr(t,r,e[r])})),ya=Ci((function(t,e){ki(e,Ia(e),t)})),wa=Ci((function(t,e,r,n){ki(e,Ia(e),t,n)})),ba=Ci((function(t,e,r,n){ki(e,Ma(e),t,n)})),va=Qi(en),Ea=qn((function(t,e){t=_t(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&fs(e[0],e[1],s)&&(i=1);++n1),e})),ki(t,Xi(t),r),n&&(r=nn(r,7,Zi));for(var i=e.length;i--;)oi(r,e[i]);return r})),Na=Qi((function(t,e){return null==t?{}:function(t,e){return $n(t,e,(function(e,r){return Aa(t,r)}))}(t,e)}));function Ra(t,e){if(null==t)return{};var r=Ie(Xi(t),(function(t){return[t]}));return e=ns(e),$n(t,r,(function(t,r){return e(t,r[0])}))}var Ba=qi(Ma),ja=qi(Ia);function La(t){return null==t?[]:Ke(t,Ma(t))}var Ua=Oi((function(t,e,r){return e=e.toLowerCase(),t+(r?Da(e):e)}));function Da(t){return Ga(ma(t).toLowerCase())}function $a(t){return(t=ma(t))&&t.replace(gt,Ye).replace(Zt,"")}var Fa=Oi((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),za=Oi((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Ha=Pi("toLowerCase"),Wa=Oi((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qa=Oi((function(t,e,r){return t+(r?" ":"")+Ga(e)})),Va=Oi((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ga=Pi("toUpperCase");function Ka(t,e,n){return t=ma(t),(e=n?r:e)===r?function(t){return Xt.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ot)||[]}(t):t.match(e)||[]}var Za=qn((function(t,e){try{return Ee(t,r,e)}catch(t){return Go(t)?t:new vt(t)}})),Ja=Qi((function(t,e){return _e(e,(function(e){e=Ns(e),tn(t,e,So(t[e],t))})),t}));function Qa(t){return function(){return t}}var Ya=Ri(),Xa=Ri(!0);function tc(t){return t}function ec(t){return On("function"==typeof t?t:nn(t,1))}var rc=qn((function(t,e){return function(r){return Sn(r,t,e)}})),nc=qn((function(t,e){return function(r){return Sn(t,r,e)}}));function ic(t,e,r){var n=Ma(e),i=wn(e,n);null==r&&(!Qo(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=wn(e,Ma(e)));var s=!(Qo(r)&&"chain"in r&&!r.chain),o=Ko(t);return _e(i,(function(r){var n=e[r];t[r]=n,o&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__);return(r.__actions__=Ai(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Pe([this.value()],arguments))})})),t}function sc(){}var oc=Ui(Ie),ac=Ui(ke),cc=Ui(Ne);function lc(t){return ms(t)?Fe(Ns(t)):function(t){return function(e){return bn(e,t)}}(t)}var uc=$i(),hc=$i(!0);function dc(){return[]}function pc(){return!1}var fc=Li((function(t,e){return t+e}),0),mc=Hi("ceil"),gc=Li((function(t,e){return t/e}),1),yc=Hi("floor"),wc=Li((function(t,e){return t*e}),1),bc=Hi("round"),vc=Li((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new St(n);return t=ha(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=Ao,Br.assign=ga,Br.assignIn=ya,Br.assignInWith=wa,Br.assignWith=ba,Br.at=va,Br.before=ko,Br.bind=So,Br.bindAll=Ja,Br.bindKey=Co,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fo(t)?t:[t]},Br.chain=co,Br.chunk=function(t,e,n){e=(n?fs(t,e,n):e===r)?1:pr(ha(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var s=0,o=0,a=rt(he(i/e));ss?0:s+n),(i=i===r||i>s?s:ha(i))<0&&(i+=s),i=n>i?0:da(i);n>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ra(e))&&!(e=ii(e))&&er(t)?gi(ar(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new St(n);return e=null==e?0:pr(ha(e),0),qn((function(r){var n=r[e],i=gi(r,0,e);return n&&Pe(i,n),Ee(t,this,i)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?Yn(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?Yn(t,0,(e=n||e===r?1:ha(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Yn(t,(e=i-(e=n||e===r?1:ha(e)))<0?0:e,i):[]},Br.takeRightWhile=function(t,e){return t&&t.length?ci(t,ns(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?ci(t,ns(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var i=!0,s=!0;if("function"!=typeof t)throw new St(n);return Qo(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),Mo(t,e,{leading:i,maxWait:e,trailing:s})},Br.thru=lo,Br.toArray=la,Br.toPairs=Ba,Br.toPairsIn=ja,Br.toPath=function(t){return Fo(t)?Ie(t,Ns):sa(t)?[t]:Ai(Ts(ma(t)))},Br.toPlainObject=fa,Br.transform=function(t,e,r){var n=Fo(t),i=n||qo(t)||oa(t);if(e=ns(e,4),null==r){var s=t&&t.constructor;r=i?n?new s:[]:Qo(t)&&Ko(s)?jr(Ht(t)):{}}return(i?_e:gn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Br.unary=function(t){return Ao(t,1)},Br.union=Qs,Br.unionBy=Ys,Br.unionWith=Xs,Br.uniq=function(t){return t&&t.length?si(t):[]},Br.uniqBy=function(t,e){return t&&t.length?si(t,ns(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?si(t,r,e):[]},Br.unset=function(t,e){return null==t||oi(t,e)},Br.unzip=to,Br.unzipWith=eo,Br.update=function(t,e,r){return null==t?t:ai(t,e,pi(r))},Br.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ai(t,e,pi(n),i)},Br.values=La,Br.valuesIn=function(t){return null==t?[]:Ke(t,Ia(t))},Br.without=ro,Br.words=Ka,Br.wrap=function(t,e){return Ro(pi(e),t)},Br.xor=no,Br.xorBy=io,Br.xorWith=so,Br.zip=oo,Br.zipObject=function(t,e){return hi(t||[],e||[],Jr)},Br.zipObjectDeep=function(t,e){return hi(t||[],e||[],Kn)},Br.zipWith=ao,Br.entries=Ba,Br.entriesIn=ja,Br.extend=ya,Br.extendWith=wa,ic(Br,Br),Br.add=fc,Br.attempt=Za,Br.camelCase=Ua,Br.capitalize=Da,Br.ceil=mc,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=pa(n))==n?n:0),e!==r&&(e=(e=pa(e))==e?e:0),rn(pa(t),e,n)},Br.clone=function(t){return nn(t,4)},Br.cloneDeep=function(t){return nn(t,5)},Br.cloneDeepWith=function(t,e){return nn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return nn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||sn(t,e,Ma(e))},Br.deburr=$a,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=gc,Br.endsWith=function(t,e,n){t=ma(t),e=ii(e);var i=t.length,s=n=n===r?i:rn(ha(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},Br.eq=Lo,Br.escape=function(t){return(t=ma(t))&&V.test(t)?t.replace(W,Xe):t},Br.escapeRegExp=function(t){return(t=ma(t))&&tt.test(t)?t.replace(X,"\\$&"):t},Br.every=function(t,e,n){var i=Fo(t)?ke:un;return n&&fs(t,e,n)&&(e=r),i(t,ns(e,3))},Br.find=po,Br.findIndex=Ds,Br.findKey=function(t,e){return Be(t,ns(e,3),gn)},Br.findLast=fo,Br.findLastIndex=$s,Br.findLastKey=function(t,e){return Be(t,ns(e,3),yn)},Br.floor=yc,Br.forEach=mo,Br.forEachRight=go,Br.forIn=function(t,e){return null==t?t:fn(t,ns(e,3),Ia)},Br.forInRight=function(t,e){return null==t?t:mn(t,ns(e,3),Ia)},Br.forOwn=function(t,e){return t&&gn(t,ns(e,3))},Br.forOwnRight=function(t,e){return t&&yn(t,ns(e,3))},Br.get=_a,Br.gt=Uo,Br.gte=Do,Br.has=function(t,e){return null!=t&&us(t,e,_n)},Br.hasIn=Aa,Br.head=zs,Br.identity=tc,Br.includes=function(t,e,r,n){t=Ho(t)?t:La(t),r=r&&!n?ha(r):0;var i=t.length;return r<0&&(r=pr(i+r,0)),ia(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Le(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:ha(r);return i<0&&(i=pr(n+i,0)),Le(t,e,i)},Br.inRange=function(t,e,n){return e=ua(e),n===r?(n=e,e=0):n=ua(n),function(t,e,r){return t>=fr(e,r)&&t=-l&&t<=l},Br.isSet=na,Br.isString=ia,Br.isSymbol=sa,Br.isTypedArray=oa,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return Yo(t)&&ls(t)==M},Br.isWeakSet=function(t){return Yo(t)&&"[object WeakSet]"==En(t)},Br.join=function(t,e){return null==t?"":hr.call(t,e)},Br.kebabCase=Fa,Br.last=Vs,Br.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=ha(n))<0?pr(i+s,0):fr(s,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,s):je(t,De,s,!0)},Br.lowerCase=za,Br.lowerFirst=Ha,Br.lt=aa,Br.lte=ca,Br.max=function(t){return t&&t.length?hn(t,tc,xn):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,ns(e,2),xn):r},Br.mean=function(t){return $e(t,tc)},Br.meanBy=function(t,e){return $e(t,ns(e,2))},Br.min=function(t){return t&&t.length?hn(t,tc,Nn):r},Br.minBy=function(t,e){return t&&t.length?hn(t,ns(e,2),Nn):r},Br.stubArray=dc,Br.stubFalse=pc,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=wc,Br.nth=function(t,e){return t&&t.length?Un(t,ha(e)):r},Br.noConflict=function(){return le._===this&&(le._=Lt),this},Br.noop=sc,Br.now=_o,Br.pad=function(t,e,r){t=ma(t);var n=(e=ha(e))?or(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Di(pe(i),r)+t+Di(he(i),r)},Br.padEnd=function(t,e,r){t=ma(t);var n=(e=ha(e))?or(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var s=yr();return fr(t+s*(e-t+se("1e-"+((s+"").length-1))),e)}return Hn(t,e)},Br.reduce=function(t,e,r){var n=Fo(t)?Oe:He,i=arguments.length<3;return n(t,ns(e,4),r,i,cn)},Br.reduceRight=function(t,e,r){var n=Fo(t)?Te:He,i=arguments.length<3;return n(t,ns(e,4),r,i,ln)},Br.repeat=function(t,e,n){return e=(n?fs(t,e,n):e===r)?1:ha(e),Wn(ma(t),e)},Br.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var i=-1,s=(e=fi(e,t)).length;for(s||(s=1,t=r);++il)return[];var r=h,n=fr(t,h);e=ns(e),t-=h;for(var i=qe(n,e);++r=o)return t;var c=n-or(i);if(c<1)return i;var l=a?gi(a,0,c).join(""):t.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(t.slice(c).search(s)){var u,h=l;for(s.global||(s=At(s.source,ma(ut.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var d=u.index;l=l.slice(0,d===r?c:d)}}else if(t.indexOf(ii(s),c)!=c){var p=l.lastIndexOf(s);p>-1&&(l=l.slice(0,p))}return l+i},Br.unescape=function(t){return(t=ma(t))&&q.test(t)?t.replace(H,lr):t},Br.uniqueId=function(t){var e=++Nt;return ma(t)+e},Br.upperCase=Va,Br.upperFirst=Ga,Br.each=mo,Br.eachRight=go,Br.first=zs,ic(Br,function(){var t={};return gn(Br,(function(e,r){Tt.call(Br.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),Br.VERSION="4.17.21",_e(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),_e(["drop","take"],(function(t,e){Dr.prototype[t]=function(n){n=n===r?1:pr(ha(n),0);var i=this.__filtered__&&!e?new Dr(this):this.clone();return i.__filtered__?i.__takeCount__=fr(n,i.__takeCount__):i.__views__.push({size:fr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Dr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_e(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Dr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ns(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),_e(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Dr.prototype[t]=function(){return this[r](1).value()[0]}})),_e(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Dr.prototype[t]=function(){return this.__filtered__?new Dr(this):this[r](1)}})),Dr.prototype.compact=function(){return this.filter(tc)},Dr.prototype.find=function(t){return this.filter(t).head()},Dr.prototype.findLast=function(t){return this.reverse().find(t)},Dr.prototype.invokeMap=qn((function(t,e){return"function"==typeof t?new Dr(this):this.map((function(r){return Sn(r,t,e)}))})),Dr.prototype.reject=function(t){return this.filter(To(ns(t)))},Dr.prototype.slice=function(t,e){t=ha(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Dr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ha(e))<0?n.dropRight(-e):n.take(e-t)),n)},Dr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Dr.prototype.toArray=function(){return this.take(h)},gn(Dr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=Br[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(Br.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof Dr,l=a[0],u=c||Fo(e),h=function(t){var e=s.apply(Br,Pe([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,m=c&&!p;if(!o&&u){e=m?e:new Dr(this);var g=t.apply(e,a);return g.__actions__.push({func:lo,args:[h],thisArg:r}),new Ur(g,d)}return f&&m?t.apply(this,a):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),_e(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ct[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Fo(i)?i:[],t)}return this[r]((function(r){return e.apply(Fo(r)?r:[],t)}))}})),gn(Dr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";Tt.call(Sr,n)||(Sr[n]=[]),Sr[n].push({name:e,func:r})}})),Sr[Bi(r,2).name]=[{name:"wrapper",func:r}],Dr.prototype.clone=function(){var t=new Dr(this.__wrapped__);return t.__actions__=Ai(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ai(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ai(this.__views__),t},Dr.prototype.reverse=function(){if(this.__filtered__){var t=new Dr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Dr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Fo(t),n=e<0,i=r?t.length:0,s=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof Lr;){var i=Bs(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Dr){var e=t;return this.__actions__.length&&(e=new Dr(this)),(e=e.reverse()).__actions__.push({func:lo,args:[Js],thisArg:r}),new Ur(e,this.__chain__)}return this.thru(Js)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Jt&&(Br.prototype[Jt]=function(){return this}),Br}();he?((he.exports=ur)._=ur,ue._=ur):le._=ur}).call(pi)}(fi,fi.exports);var mi=Object.defineProperty,gi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ei=(t,e,r)=>e in t?mi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xi=(t,e)=>{for(var r in e||(e={}))bi.call(e,r)&&Ei(t,r,e[r]);if(wi)for(var r of wi(e))vi.call(e,r)&&Ei(t,r,e[r]);return t},_i=(t,e)=>gi(t,yi(e));function Ai(t,e,r){var n;const i=(0,s.DQ)(t);return(null==(n=e.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function ki(t){return t.includes(":")?t.split(":")[1]:t}function Si(t){return t.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))}function Ci(t){var e,r,n,i;const o={};if(!(0,s.L5)(t))return o;for(const[a,c]of Object.entries(t)){const t=(0,s.gp)(a)?[a]:c.chains,l=c.methods||[],u=c.events||[],h=c.rpcMap||{},d=(0,s.M)(a);o[d]=_i(xi(xi({},o[d]),c),{chains:(0,s.eG)(t,null==(e=o[d])?void 0:e.chains),methods:(0,s.eG)(l,null==(r=o[d])?void 0:r.methods),events:(0,s.eG)(u,null==(n=o[d])?void 0:n.events),rpcMap:xi(xi({},h),null==(i=o[d])?void 0:i.rpcMap)})}return o}function Mi(t){return t.includes(":")?t.split(":")[2]:t}function Ii(t){const e={};for(const[r,n]of Object.entries(t)){const t=n.methods||[],i=n.events||[],o=n.accounts||[],a=(0,s.gp)(r)?[r]:n.chains?n.chains:Si(n.accounts);e[r]={chains:a,methods:t,events:i,accounts:o}}return e}function Pi(t){return"number"==typeof t?t:t.includes("0x")?parseInt(t,16):t.includes(":")?Number(t.split(":")[1]):Number(t)}const Oi={},Ti=t=>Oi[t],Ni=(t,e)=>{Oi[t]=e};class Ri{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=ki(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class Bi{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(di,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const r=e||Ai(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new ci(r,Ti("disableProviderPing")))}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=parseInt(ki(e));t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,r;let n=t.request.params?null==(e=t.request.params[0])?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const i=parseInt(n,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`)}return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}}class ji{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=ki(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class Li{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=ki(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class Ui{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{const r=this.getCardanoRPCUrl(e),n=ki(e);t[n]=this.createHttpProvider(n,r)})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||this.getCardanoRPCUrl(t);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class Di{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=ki(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class $i{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=ki(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new jt(new li(r,Ti("disableProviderPing")))}}class Fi{constructor(t){this.name="near",this.namespace=t.namespace,this.events=Ti("events"),this.client=Ti("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const r=e||Ai(`${this.name}:${t}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,r)}this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;t[e]=this.createHttpProvider(e,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||Ai(t,this.namespace);return typeof r>"u"?void 0:new jt(new li(r,Ti("disableProviderPing")))}}var zi=Object.defineProperty,Hi=Object.defineProperties,Wi=Object.getOwnPropertyDescriptors,qi=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Ki=(t,e,r)=>e in t?zi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Zi=(t,e)=>{for(var r in e||(e={}))Vi.call(e,r)&&Ki(t,r,e[r]);if(qi)for(var r of qi(e))Gi.call(e,r)&&Ki(t,r,e[r]);return t},Ji=(t,e)=>Hi(t,Wi(e));class Qi{constructor(t){this.events=new(i()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,L.pino)((0,L.getDefaultLoggerOptions)({level:t?.logger||ui})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new Qi(t);return await e.initialize(),e}async request(t,e){const[r,n]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(r).request({request:Zi({},t),chainId:`${r}:${n}`,topic:this.session.topic})}sendAsync(t,e,r){const n=(new Date).getTime();this.request(t,r).then((t=>e(null,xt(n,t)))).catch((t=>e(t,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(t=this.session)?void 0:t.topic,reason:(0,s.D6)("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:n}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await n().then((t=>{this.session=t,this.namespaces||(this.namespaces=Ii(t.namespaces),this.persist("namespaces",this.namespaces))})).catch((t=>{if(t.message!==Un)throw t;e++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[r,n]=this.validateChain(t);this.getProvider(r).setDefaultChain(n,e)}catch(t){if(!/Please call connect/.test(t.message))throw t}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if((0,s.qt)(e)){for(const r of e)t.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await ii.init({logger:this.providerOpts.logger||ui,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map((t=>(0,s.M)(t))))];Ni("client",this.client),Ni("events",this.events),Ni("disableProviderPing",this.disableProviderPing),t.forEach((t=>{if(!this.session)return;const e=function(t,e){const r=Object.keys(e.namespaces).filter((e=>e.includes(t)));if(!r.length)return[];const n=[];return r.forEach((t=>{const r=e.namespaces[t].accounts;n.push(...r)})),n}(t,this.session),r=Si(e),n=function(t={},e={}){const r=Ci(t),n=Ci(e);return fi.exports.merge(r,n)}(this.namespaces,this.optionalNamespaces),i=Ji(Zi({},n[t]),{accounts:e,chains:r});switch(t){case"eip155":this.rpcProviders[t]=new Bi({namespace:i});break;case"solana":this.rpcProviders[t]=new ji({namespace:i});break;case"cosmos":this.rpcProviders[t]=new Li({namespace:i});break;case"polkadot":this.rpcProviders[t]=new Ri({namespace:i});break;case"cip34":this.rpcProviders[t]=new Ui({namespace:i});break;case"elrond":this.rpcProviders[t]=new Di({namespace:i});break;case"multiversx":this.rpcProviders[t]=new $i({namespace:i});break;case"near":this.rpcProviders[t]=new Fi({namespace:i})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(t=>{this.events.emit("session_ping",t)})),this.client.on("session_event",(t=>{const{params:e}=t,{event:r}=e;if("accountsChanged"===r.name){const t=r.data;t&&(0,s.qt)(t)&&this.events.emit("accountsChanged",t.map(Mi))}else if("chainChanged"===r.name){const t=e.chainId,r=e.event.data,n=(0,s.M)(t),i=Pi(t)!==Pi(r)?`${n}:${Pi(r)}`:t;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit("session_event",t)})),this.client.on("session_update",(({topic:t,params:e})=>{var r;const{namespaces:n}=e,i=null==(r=this.client)?void 0:r.session.get(t);this.session=Ji(Zi({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})})),this.client.on("session_delete",(async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",Ji(Zi({},(0,s.D6)("USER_DISCONNECTED")),{data:t.topic}))})),this.on(di,(t=>{this.onChainChanged(t,!0)}))}getProvider(t){if(!this.rpcProviders[t])throw new Error(`Provider not found: ${t}`);return this.rpcProviders[t]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((t=>{var e;this.getProvider(t).updateNamespace(null==(e=this.session)?void 0:e.namespaces[t])}))}setNamespaces(t){const{namespaces:e,optionalNamespaces:r,sessionProperties:n}=t;e&&Object.keys(e).length&&(this.namespaces=e),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist("namespaces",e),this.persist("optionalNamespaces",r)}validateChain(t){const[e,r]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,r];if(e&&!Object.keys(this.namespaces||{}).map((t=>(0,s.M)(t))).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&r)return[e,r];const n=(0,s.M)(Object.keys(this.namespaces)[0]);return[n,this.rpcProviders[n].getDefaultChain()]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){var r;if(!this.namespaces)return;const[n,i]=this.validateChain(t);e||this.getProvider(n).setDefaultChain(i),(null!=(r=this.namespaces[n])?r:this.namespaces[`${n}:${i}`]).defaultChain=i,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${hi}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${hi}/${t}`)}}const Yi=Qi,Xi=["eth_sendTransaction","personal_sign"],ts=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],es=["chainChanged","accountsChanged"],rs=["chainChanged","accountsChanged","message","disconnect","connect"];var ns=Object.defineProperty,is=Object.defineProperties,ss=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,as=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,ls=(t,e,r)=>e in t?ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,us=(t,e)=>{for(var r in e||(e={}))as.call(e,r)&&ls(t,r,e[r]);if(os)for(var r of os(e))cs.call(e,r)&&ls(t,r,e[r]);return t},hs=(t,e)=>is(t,ss(e));function ds(t){return Number(t[0].split(":")[1])}function ps(t){return`0x${t.toString(16)}`}class fs{constructor(){this.events=new n.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(t,e)=>(this.events.on(t,e),this),this.once=(t,e)=>(this.events.once(t,e),this),this.removeListener=(t,e)=>(this.events.removeListener(t,e),this),this.off=(t,e)=>(this.events.off(t,e),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const e=new fs;return await e.initialize(t),e}async request(t){return await this.signer.request(t,this.formatChainId(this.chainId))}sendAsync(t,e){this.signer.sendAsync(t,e,this.formatChainId(this.chainId))}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:e,optional:r}=function(t){const{chains:e,optionalChains:r,methods:n,optionalMethods:i,events:o,optionalEvents:a,rpcMap:c}=t;if(!(0,s.qt)(e))throw new Error("Invalid chains");const l={chains:e,methods:n||Xi,events:o||es,rpcMap:us({},e.length?{[ds(e)]:c[ds(e)]}:{})},u=o?.filter((t=>!es.includes(t))),h=n?.filter((t=>!Xi.includes(t)));if(!(r||a||i||null!=u&&u.length||null!=h&&h.length))return{required:e.length?l:void 0};const d={chains:[...new Set(u?.length&&h?.length||!r?l.chains.concat(r||[]):r)],methods:[...new Set(l.methods.concat(null!=i&&i.length?i:ts))],events:[...new Set(l.events.concat(null!=a&&a.length?a:rs))],rpcMap:c};return{required:e.length?l:void 0,optional:r.length?d:void 0}}(this.rpc);try{const n=await new Promise((async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((t=>{!t.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(hs(us({namespaces:us({},e&&{[this.namespace]:e})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:t?.pairingTopic})).then((t=>{n(t)})).catch((t=>{i(new Error(t.message))}))}));if(!n)return;const i=(0,s.gu)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit("connect",{chainId:ps(this.chainId)})}catch(t){throw this.signer.logger.error(t),t}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(t=>{const{params:e}=t,{event:r}=e;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",t)})),this.signer.on("chainChanged",(t=>{const e=parseInt(t);this.chainId=e,this.events.emit("chainChanged",ps(this.chainId)),this.persist()})),this.signer.on("session_update",(t=>{this.events.emit("session_update",t)})),this.signer.on("session_delete",(t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",hs(us({},(0,s.D6)("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(t=>{var e,r;this.rpc.showQrModal&&(null==(e=this.modal)||e.closeModal(),null==(r=this.modal)||r.openModal({uri:t})),this.events.emit("display_uri",t)}))}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return"string"==typeof t&&t.startsWith(`${this.namespace}:`)}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const e=t.filter((t=>this.isCompatibleChainId(t))).map((t=>this.parseChainId(t)));e.length&&(this.chainId=e[0],this.events.emit("chainChanged",ps(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const e=this.parseChainId(t);this.chainId=e,this.switchEthereumChain(e)}}parseAccountId(t){const[e,r,n]=t.split(":");return{chainId:`${e}:${r}`,address:n}}setAccounts(t){this.accounts=t.filter((t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId)).map((t=>this.parseAccountId(t).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var e,r;const n=null!=(e=t?.chains)?e:[],i=null!=(r=t?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=n.length?t?.methods||Xi:[],a=n.length?t?.events||es:[],c=t?.optionalMethods||[],l=t?.optionalEvents||[],u=t?.rpcMap||this.buildRpcMap(s,t.projectId),h=t?.qrModalOptions||void 0;return{chains:n?.map((t=>this.formatChainId(t))),optionalChains:i.map((t=>this.formatChainId(t))),methods:o,events:a,optionalMethods:c,optionalEvents:l,rpcMap:u,showQrModal:!(null==t||!t.showQrModal),qrModalOptions:h,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,e){const r={};return t.forEach((t=>{r[t]=this.getRpcUrl(t,e)})),r}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?ds(this.rpc.chains):ds(this.rpc.optionalChains),this.signer=await Yi.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{const{WalletConnectModal:t}=await Promise.resolve().then(r.bind(r,59343));e=t}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(us({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(t){throw this.signer.logger.error(t),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:e,optionalChains:r,rpcMap:n}=t;e&&(0,s.qt)(e)&&(this.rpc.chains=e.map((t=>this.formatChainId(t))),e.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)}))),r&&(0,s.qt)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((t=>this.formatChainId(t))),r.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)})))}getRpcUrl(t,e){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[t])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${t}&projectId=${e||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),e=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:e?.accounts),this.setAccounts(e?.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return"string"==typeof t||t instanceof String?[this.parseAccount(t)]:t.map((t=>this.parseAccount(t)))}}const ms=fs},38200:(t,e,r)=>{"use strict";r.d(e,{q:()=>n});class n{}},30997:(t,e,r)=>{"use strict";r.r(e),r.d(e,{IEvents:()=>n.q});var n=r(38200)},32568:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HEARTBEAT_EVENTS=e.HEARTBEAT_INTERVAL=void 0;const n=r(66736);e.HEARTBEAT_INTERVAL=n.FIVE_SECONDS,e.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},53401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(32568),e)},38969:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeat=void 0;const n=r(70655),i=r(17187),s=r(66736),o=r(1614),a=r(53401);class c extends o.IHeartBeat{constructor(t){super(t),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(null==t?void 0:t.interval)||a.HEARTBEAT_INTERVAL}static init(t){return n.__awaiter(this,void 0,void 0,(function*(){const e=new c(t);return yield e.init(),e}))}init(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}initialize(){return n.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),s.toMiliseconds(this.interval))}))}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}e.HeartBeat=c},90772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(38969),e),n.__exportStar(r(1614),e),n.__exportStar(r(53401),e)},44174:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IHeartBeat=void 0;const n=r(30997);class i extends n.IEvents{constructor(t){super()}}e.IHeartBeat=i},1614:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(44174),e)},65727:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PINO_CUSTOM_CONTEXT_KEY=e.PINO_LOGGER_DEFAULTS=void 0,e.PINO_LOGGER_DEFAULTS={level:"info"},e.PINO_CUSTOM_CONTEXT_KEY="custom_context"},9107:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pino=void 0;const n=r(70655),i=n.__importDefault(r(36559));Object.defineProperty(e,"pino",{enumerable:!0,get:function(){return i.default}}),n.__exportStar(r(65727),e),n.__exportStar(r(58048),e)},58048:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateChildLogger=e.formatChildLoggerContext=e.getLoggerContext=e.setBrowserLoggerContext=e.getBrowserLoggerContext=e.getDefaultLoggerOptions=void 0;const n=r(65727);function i(t,e=n.PINO_CUSTOM_CONTEXT_KEY){return t[e]||""}function s(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){return t[r]=e,t}function o(t,e=n.PINO_CUSTOM_CONTEXT_KEY){let r="";return r=void 0===t.bindings?i(t,e):t.bindings().context||"",r}function a(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=o(t,r);return i.trim()?`${i}/${e}`:e}e.getDefaultLoggerOptions=function(t){return Object.assign(Object.assign({},t),{level:(null==t?void 0:t.level)||n.PINO_LOGGER_DEFAULTS.level})},e.getBrowserLoggerContext=i,e.setBrowserLoggerContext=s,e.getLoggerContext=o,e.formatChildLoggerContext=a,e.generateChildLogger=function(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=a(t,e,r);return s(t.child({context:i}),i,r)}},61882:()=>{},43014:()=>{},36900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(46869),e),n.__exportStar(r(88033),e)},46869:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_THOUSAND=e.ONE_HUNDRED=void 0,e.ONE_HUNDRED=100,e.ONE_THOUSAND=1e3},88033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=5*e.ONE_MINUTE,e.TEN_MINUTES=10*e.ONE_MINUTE,e.THIRTY_MINUTES=30*e.ONE_MINUTE,e.SIXTY_MINUTES=60*e.ONE_MINUTE,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=3*e.ONE_HOUR,e.SIX_HOURS=6*e.ONE_HOUR,e.TWELVE_HOURS=12*e.ONE_HOUR,e.TWENTY_FOUR_HOURS=24*e.ONE_HOUR,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=3*e.ONE_DAY,e.FIVE_DAYS=5*e.ONE_DAY,e.SEVEN_DAYS=7*e.ONE_DAY,e.THIRTY_DAYS=30*e.ONE_DAY,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=2*e.ONE_WEEK,e.THREE_WEEKS=3*e.ONE_WEEK,e.FOUR_WEEKS=4*e.ONE_WEEK,e.ONE_YEAR=365*e.ONE_DAY},66736:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(44273),e),n.__exportStar(r(47001),e),n.__exportStar(r(52939),e),n.__exportStar(r(36900),e)},52939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(88766),e)},88766:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWatch=void 0,e.IWatch=class{}},83207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromMiliseconds=e.toMiliseconds=void 0;const n=r(36900);e.toMiliseconds=function(t){return t*n.ONE_THOUSAND},e.fromMiliseconds=function(t){return Math.floor(t/n.ONE_THOUSAND)}},83873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0,e.delay=function(t){return new Promise((e=>{setTimeout((()=>{e(!0)}),t)}))}},44273:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(83873),e),n.__exportStar(r(83207),e)},47001:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const e=this.get(t);if(void 0!==e.elapsed)throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-e.started;this.timestamps.set(t,{started:e.started,elapsed:r})}get(t){const e=this.timestamps.get(t);if(void 0===e)throw new Error(`No timestamp found for label: ${t}`);return e}elapsed(t){const e=this.get(t);return e.elapsed||Date.now()-e.started}}e.Watch=r,e.default=r},49795:(t,e,r)=>{"use strict";r.d(e,{AW:()=>I,O6:()=>Pe,rV:()=>T,gn:()=>yt,H1:()=>ht,hF:()=>dt,WG:()=>U,pe:()=>$,m$:()=>B,vB:()=>F,HI:()=>D,E0:()=>bt,Gq:()=>mt,$0:()=>at,Z4:()=>ft,Bv:()=>Nt,Au:()=>N,jd:()=>R,gu:()=>S,D:()=>st,X_:()=>it,bW:()=>xt,Z7:()=>Jt,cO:()=>At,_H:()=>_t,fc:()=>Wt,D6:()=>Qt,Hh:()=>Et,Ym:()=>j,rj:()=>L,jU:()=>rt,gp:()=>qt,rF:()=>Ae,Bw:()=>wt,UG:()=>tt,Gg:()=>Ce,xW:()=>oe,b$:()=>et,Ih:()=>ne,h1:()=>ae,Q8:()=>W,o8:()=>te,qt:()=>Yt,Dd:()=>ce,$t:()=>ye,nf:()=>ve,Q0:()=>me,in:()=>de,p8:()=>Ee,sI:()=>_e,al:()=>xe,L5:()=>Xt,EJ:()=>ge,Z2:()=>pe,PM:()=>fe,hH:()=>we,ON:()=>Se,n:()=>he,JT:()=>be,M_:()=>ee,jv:()=>se,KC:()=>lt,eG:()=>vt,fK:()=>Gt,IP:()=>ut,DQ:()=>k,iP:()=>gt,M:()=>Vt,he:()=>Ot,uw:()=>Me,Ll:()=>z,EN:()=>H});var n=r(15501),i=r(512),s=r(31416),o=r(73294),a=r(57664),c=r(37466),l=r(34155),u=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,s=e.length;i{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.accounts)})),r}function C(t,e){return t.includes(":")?[t]:e.chains||[]}const M="base10",I="base16",P="base64pad",O="utf8",T=1;function N(){const t=a.Au();return{privateKey:(0,c.BB)(t.secretKey,I),publicKey:(0,c.BB)(t.publicKey,I)}}function R(){const t=(0,s.randomBytes)(32);return(0,c.BB)(t,I)}function B(t,e){const r=a.gi((0,c.mL)(t,I),(0,c.mL)(e,I),!0),n=new i.t(o.mE,r).expand(32);return(0,c.BB)(n,I)}function j(t){const e=(0,o.vp)((0,c.mL)(t,I));return(0,c.BB)(e,I)}function L(t){const e=(0,o.vp)((0,c.mL)(t,O));return(0,c.BB)(e,I)}function U(t){return Number((0,c.BB)(t,M))}function D(t){const e=function(t){return(0,c.mL)(`${t}`,M)}(typeof t.type<"u"?t.type:0);if(U(e)===T&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof t.senderPublicKey<"u"?(0,c.mL)(t.senderPublicKey,I):void 0,i=typeof t.iv<"u"?(0,c.mL)(t.iv,I):(0,s.randomBytes)(12);return function(t){if(U(t.type)===T){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,c.BB)((0,c.zo)([t.type,t.senderPublicKey,t.iv,t.sealed]),P)}return(0,c.BB)((0,c.zo)([t.type,t.iv,t.sealed]),P)}({type:e,sealed:new n.OK((0,c.mL)(t.symKey,I)).seal(i,(0,c.mL)(t.message,O)),iv:i,senderPublicKey:r})}function $(t){const e=new n.OK((0,c.mL)(t.symKey,I)),{sealed:r,iv:i}=F(t.encoded),s=e.open(i,r);if(null===s)throw new Error("Failed to decrypt");return(0,c.BB)(s,O)}function F(t){const e=(0,c.mL)(t,P),r=e.slice(0,1);if(U(r)===T){const t=33,n=t+12,i=e.slice(1,t),s=e.slice(t,n);return{type:r,sealed:e.slice(n),iv:s,senderPublicKey:i}}const n=e.slice(1,13);return{type:r,sealed:e.slice(13),iv:n}}function z(t,e){const r=F(t);return H({type:U(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?(0,c.BB)(r.senderPublicKey,I):void 0,receiverPublicKey:e?.receiverPublicKey})}function H(t){const e=t?.type||0;if(e===T){if(typeof t?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof t?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function W(t){return t.type===T&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}var q=Object.defineProperty,V=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Z=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,J=(t,e)=>{for(var r in e||(e={}))G.call(e,r)&&Z(t,r,e[r]);if(V)for(var r of V(e))K.call(e,r)&&Z(t,r,e[r]);return t};const Q="react-native",Y="browser",X="js";function tt(){return typeof A<"u"&&typeof A.versions<"u"&&typeof A.versions.node<"u"}function et(){return!(0,v.getDocument)()&&!!(0,v.getNavigator)()&&"ReactNative"===navigator.product}function rt(){return!tt()&&!!(0,v.getNavigator)()&&!!(0,v.getDocument)()}function nt(){return et()?Q:tt()?"node":rt()?Y:"unknown"}function it(){var t;try{return et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}function st(){return(0,E.D)()||{name:"",description:"",url:"",icons:[""]}}function ot(t,e,n){const i=function(){if(nt()===Q&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:t,Version:e}=r.g.Platform;return[t,e].join("-")}const t="undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new m:"undefined"!=typeof navigator?function(t){var e=function(t){return""!==t&&y.reduce((function(e,r){var n=r[0],i=r[1];if(e)return e;var s=i.exec(t);return!!s&&[n,s]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new f;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=u(u([],i,!0),function(t){for(var e=[],r=0;re.includes(t))).length===t.length}function lt(t){return Object.fromEntries(t.entries())}function ut(t){return new Map(Object.entries(t))}function ht(t=b.FIVE_MINUTES,e){const r=(0,b.toMiliseconds)(t||b.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}function dt(t,e,r){return new Promise((async(n,i)=>{const s=setTimeout((()=>i(new Error(r))),e);try{n(await t)}catch(t){i(t)}clearTimeout(s)}))}function pt(t,e){if("string"==typeof e&&e.startsWith(`${t}:`))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function ft(t){return pt("topic",t)}function mt(t){return pt("id",t)}function gt(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}function yt(t,e){return(0,b.fromMiliseconds)((e||Date.now())+(0,b.toMiliseconds)(t))}function wt(t){return Date.now()>=(0,b.toMiliseconds)(t)}function bt(t,e){return`${t}${e?`:${e}`:""}`}function vt(t=[],e=[]){return[...new Set([...t,...e])]}async function Et({id:t,topic:e,wcDeepLink:n}){try{if(!n)return;let i=("string"==typeof n?JSON.parse(n):n)?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const s=`${i}/wc?requestId=${t}&sessionTopic=${e}`,o=nt();o===Y?s.startsWith("https://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===Q&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}}async function xt(t,e){try{return await t.getItem(e)||(rt()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}function _t(t){return t?.relay||{protocol:"irn"}}function At(t){const e=_[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var kt=Object.defineProperty,St=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,It=(t,e,r)=>e in t?kt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;function Pt(t,e="-"){const r={},n="relay"+e;return Object.keys(t).forEach((e=>{if(e.startsWith(n)){const i=e.replace(n,""),s=t[e];r[i]=s}})),r}function Ot(t){const e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),r=-1!==t.indexOf("?")?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split("@"),s=typeof r<"u"?t.substring(r):"",o=x.parse(s);return{protocol:n,topic:Tt(i[0]),version:parseInt(i[1],10),symKey:o.symKey,relay:Pt(o)}}function Tt(t){return t.startsWith("//")?t.substring(2):t}function Nt(t){return`${t.protocol}:${t.topic}@${t.version}?`+x.stringify(((t,e)=>{for(var r in e||(e={}))Ct.call(e,r)&&It(t,r,e[r]);if(St)for(var r of St(e))Mt.call(e,r)&&It(t,r,e[r]);return t})({symKey:t.symKey},function(t,e="-"){const r={};return Object.keys(t).forEach((n=>{const i="relay"+e+n;t[n]&&(r[i]=t[n])})),r}(t.relay)))}var Rt=Object.defineProperty,Bt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,$t=(t,e,r)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ft=(t,e)=>{for(var r in e||(e={}))Ut.call(e,r)&&$t(t,r,e[r]);if(Lt)for(var r of Lt(e))Dt.call(e,r)&&$t(t,r,e[r]);return t},zt=(t,e)=>Bt(t,jt(e));function Ht(t){const e=[];return t.forEach((t=>{const[r,n]=t.split(":");e.push(`${r}:${n}`)})),e}function Wt(t,e){const r=de(t,e);if(r)throw new Error(r.message);const n={};for(const[e,r]of Object.entries(t))n[e]={methods:r.methods,events:r.events,chains:r.accounts.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))};return n}function qt(t){return t.includes(":")}function Vt(t){return qt(t)?t.split(":")[0]:t}function Gt(t){var e,r,n;const i={};if(!Xt(t))return i;for(const[s,o]of Object.entries(t)){const t=qt(s)?[s]:o.chains,a=o.methods||[],c=o.events||[],l=Vt(s);i[l]=zt(Ft({},i[l]),{chains:vt(t,null==(e=i[l])?void 0:e.chains),methods:vt(a,null==(r=i[l])?void 0:r.methods),events:vt(c,null==(n=i[l])?void 0:n.events)})}return i}const Kt={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Zt={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Jt(t,e){const{message:r,code:n}=Zt[t];return{message:e?`${r} ${e}`:r,code:n}}function Qt(t,e){const{message:r,code:n}=Kt[t];return{message:e?`${r} ${e}`:r,code:n}}function Yt(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}function Xt(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function te(t){return typeof t>"u"}function ee(t,e){return!(!e||!te(t))||"string"==typeof t&&!!t.trim().length}function re(t,e){return!(!e||!te(t))||"number"==typeof t&&!isNaN(t)}function ne(t,e){const{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r);let s=!0;return!!ct(i,n)&&(n.forEach((e=>{const{accounts:n,methods:i,events:o}=t.namespaces[e],a=Ht(n),c=r[e];ct(C(e,c),a)&&ct(c.methods,i)&&ct(c.events,o)||(s=!1)})),s)}function ie(t){return!(!ee(t,!1)||!t.includes(":"))&&2===t.split(":").length}function se(t){if(ee(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}function oe(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}function ae(t){return t?.topic}function ce(t,e){let r=null;return ee(t?.publicKey,!1)||(r=Jt("MISSING_OR_INVALID",`${e} controller public key should be a string`)),r}function le(t){let e=!0;return Yt(t)?t.length&&(e=t.every((t=>ee(t,!1)))):e=!1,e}function ue(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return le(t?.methods)?le(t?.events)||(r=Qt("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):r=Qt("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),r}(t,`${e}, namespace`);n&&(r=n)})),r}function he(t,e,r){let n=null;if(t&&Xt(t)){const i=ue(t,e);i&&(n=i);const s=function(t,e,r){let n=null;return Object.entries(t).forEach((([t,i])=>{if(n)return;const s=function(t,e,r){let n=null;return Yt(e)&&e.length?e.forEach((t=>{n||ie(t)||(n=Qt("UNSUPPORTED_CHAINS",`${r}, chain ${t} should be a string and conform to "namespace:chainId" format`))})):ie(t)||(n=Qt("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}(t,C(t,i),`${e} ${r}`);s&&(n=s)})),n}(t,e,r);s&&(n=s)}else n=Jt("MISSING_OR_INVALID",`${e}, ${r} should be an object with data`);return n}function de(t,e){let r=null;if(t&&Xt(t)){const n=ue(t,e);n&&(r=n);const i=function(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return Yt(t)?t.forEach((t=>{r||function(t){if(ee(t,!1)&&t.includes(":")){const e=t.split(":");if(3===e.length){const t=e[0]+":"+e[1];return!!e[2]&&ie(t)}}return!1}(t)||(r=Qt("UNSUPPORTED_ACCOUNTS",`${e}, account ${t} should be a string and conform to "namespace:chainId:address" format`))})):r=Qt("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}(t?.accounts,`${e} namespace`);n&&(r=n)})),r}(t,e);i&&(r=i)}else r=Jt("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return r}function pe(t){return ee(t.protocol,!0)}function fe(t,e){let r=!1;return e&&!t?r=!0:t&&Yt(t)&&t.length&&t.forEach((t=>{r=pe(t)})),r}function me(t){return"number"==typeof t}function ge(t){return typeof t<"u"&&null!==typeof t}function ye(t){return!!(t&&"object"==typeof t&&t.code&&re(t.code,!1)&&t.message&&ee(t.message,!1))}function we(t){return!(te(t)||!ee(t.method,!1))}function be(t){return!(te(t)||te(t.result)&&te(t.error)||!re(t.id,!1)||!ee(t.jsonrpc,!1))}function ve(t){return!(te(t)||!ee(t.name,!1))}function Ee(t,e){return!(!ie(e)||!function(t){const e=[];return Object.values(t).forEach((t=>{e.push(...Ht(t.accounts))})),e}(t).includes(e))}function xe(t,e,r){return!!ee(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{Ht(t.accounts).includes(e)&&r.push(...t.methods)})),r}(t,e).includes(r)}function _e(t,e,r){return!!ee(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{Ht(t.accounts).includes(e)&&r.push(...t.events)})),r}(t,e).includes(r)}function Ae(t,e,r){let n=null;const i=function(t){const e={};return Object.keys(t).forEach((r=>{var n;r.includes(":")?e[r]=t[r]:null==(n=t[r].chains)||n.forEach((n=>{e[n]={methods:t[r].methods,events:t[r].events}}))})),e}(t),s=function(t){const e={};return Object.keys(t).forEach((r=>{r.includes(":")?e[r]=t[r]:Ht(t[r].accounts)?.forEach((n=>{e[n]={accounts:t[r].accounts.filter((t=>t.includes(`${n}:`))),methods:t[r].methods,events:t[r].events}}))})),e}(e),o=Object.keys(i),a=Object.keys(s),c=ke(Object.keys(t)),l=ke(Object.keys(e)),u=c.filter((t=>!l.includes(t)));return u.length&&(n=Jt("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(e).toString()}`)),ct(o,a)||(n=Jt("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(e).forEach((t=>{if(!t.includes(":")||n)return;const i=Ht(e[t].accounts);i.includes(t)||(n=Jt("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n Required: ${t}\n Approved: ${i.toString()}`))})),o.forEach((t=>{n||(ct(i[t].methods,s[t].methods)?ct(i[t].events,s[t].events)||(n=Jt("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${t}`)):n=Jt("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${t}`))})),n}function ke(t){return[...new Set(t.map((t=>t.includes(":")?t.split(":")[0]:t)))]}function Se(t,e){return re(t,!1)&&t<=e.max&&t>=e.min}function Ce(){const t=nt();return new Promise((e=>{switch(t){case Y:e(rt()&&navigator?.onLine);break;case Q:e(async function(){return!(et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo)||(await(null==r.g?void 0:r.g.NetInfo.fetch()))?.isConnected}());break;default:e(!0)}}))}function Me(t){switch(nt()){case Y:!function(t){!et()&&rt()&&(window.addEventListener("online",(()=>t(!0))),window.addEventListener("offline",(()=>t(!1))))}(t);break;case Q:!function(t){et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((e=>t(e?.isConnected)))}(t)}}const Ie={};class Pe{static get(t){return Ie[t]}static set(t,e){Ie[t]=e}static delete(t){delete Ie[t]}}},66151:(t,e,r)=>{"use strict";const n=r(70610),i=r(44020),s=r(80500),o=r(92806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=f(r[t],e);else n[t]=f(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=p,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},62873:(t,e)=>{"use strict";function r(t){let e;return"undefined"!=typeof window&&void 0!==window[t]&&(e=window[t]),e}function n(t){const e=r(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLocalStorage=e.getLocalStorageOrThrow=e.getCrypto=e.getCryptoOrThrow=e.getLocation=e.getLocationOrThrow=e.getNavigator=e.getNavigatorOrThrow=e.getDocument=e.getDocumentOrThrow=e.getFromWindowOrThrow=e.getFromWindow=void 0,e.getFromWindow=r,e.getFromWindowOrThrow=n,e.getDocumentOrThrow=function(){return n("document")},e.getDocument=function(){return r("document")},e.getNavigatorOrThrow=function(){return n("navigator")},e.getNavigator=function(){return r("navigator")},e.getLocationOrThrow=function(){return n("location")},e.getLocation=function(){return r("location")},e.getCryptoOrThrow=function(){return n("crypto")},e.getCrypto=function(){return r("crypto")},e.getLocalStorageOrThrow=function(){return n("localStorage")},e.getLocalStorage=function(){return r("localStorage")}},65755:(t,e,r)=>{"use strict";e.D=void 0;const n=r(62873);e.D=function(){let t,e;try{t=n.getDocumentOrThrow(),e=n.getLocationOrThrow()}catch(t){return null}function r(...e){const r=t.getElementsByTagName("meta");for(let t=0;tn.getAttribute(t))).filter((t=>!!t&&e.includes(t)));if(i.length&&i){const t=n.getAttribute("content");if(t)return t}}return""}const i=function(){let e=r("name","og:site_name","og:title","twitter:title");return e||(e=t.title),e}();return{description:r("description","og:description","twitter:description","keywords"),url:e.origin,icons:function(){const r=t.getElementsByTagName("link"),n=[];for(let t=0;t-1){const t=i.getAttribute("href");if(t)if(-1===t.toLowerCase().indexOf("https:")&&-1===t.toLowerCase().indexOf("http:")&&0!==t.indexOf("//")){let r=e.protocol+"//"+e.host;if(0===t.indexOf("/"))r+=t;else{const n=e.pathname.split("/");n.pop(),r+=n.join("/")+"/"+t}n.push(r)}else if(0===t.indexOf("//")){const r=e.protocol+t;n.push(r)}else n.push(t)}}return n}(),name:i}}},42295:(t,e,r)=>{const{sha3:n,BN:i}=r(18269),s=r(93338),o={savedABIs:[],methodIDs:{},keepNonDecodedLogs:!1};function a(t){return"tuple"===t.type?"("+t.components.map(a).join(",")+")":t.type}t.exports={getABIs:function(){return o.savedABIs},addABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map(a).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]=t:o.methodIDs[e.slice(2,10)]=t}})),o.savedABIs=o.savedABIs.concat(t)},getMethodIDs:function(){return o.methodIDs},decodeMethod:function(t){const e=t.slice(2,10),r=o.methodIDs[e];if(r){let e=s.decodeParameters(r.inputs,t.slice(10)),n={name:r.name,params:[]};for(let t=0;tnew i(t).toString())):new i(s).toString()),l&&(o=Array.isArray(s)?s.map((t=>t.toLowerCase())):s.toLowerCase()),n.params.push({name:r.inputs[t].name,value:o,type:r.inputs[t].type})}return n}},decodeLogs:function(t){return t.filter((t=>t.topics.length>0)).map((t=>{const e=t.topics[0].slice(2),r=o.methodIDs[e];if(r){const e=t.data;let n=[],o=0,a=1,c=[];r.inputs.map((function(t){t.indexed||c.push(t.type)}));const l=s.decodeParameters(c,e.slice(2));return r.inputs.map((function(e){let r={name:e.name,type:e.type};if(e.indexed?(r.value=t.topics[a],a++):(r.value=l[o],o++),"address"===e.type&&(r.value=r.value.toLowerCase(),r.value.length>42)){let t=r.value.length-42,e=r.value.split("");e.splice(2,t),r.value=e.join("")}"uint256"!==e.type&&"uint8"!==e.type&&"int"!==e.type||("string"==typeof r.value&&r.value.startsWith("0x")?r.value=new i(r.value.slice(2),16).toString(10):r.value=new i(r.value).toString(10)),n.push(r)})),{name:r.name,events:n,address:t.address}}})).filter((t=>o.keepNonDecodedLogs||t))},removeABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map((function(t){return t.type})).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]&&delete o.methodIDs[e.slice(2)]:o.methodIDs[e.slice(2,10)]&&delete o.methodIDs[e.slice(2,10)]}}))},keepNonDecodedLogs:function(){o.keepNonDecodedLogs=!0},discardNonDecodedLogs:function(){o.keepNonDecodedLogs=!1}}},85078:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(33649),i=r(2403),s=function(){function t(){this._semaphore=new i.default(1)}return t.prototype.acquire=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();e.default=s},2403:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(33649),i=function(){function t(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return t.prototype.acquire=function(){var t=this,e=this.isLocked(),r=new Promise((function(e){return t._queue.push(e)}));return e||this._dispatch(),r},t.prototype.runExclusive=function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r,i;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.acquire()];case 1:e=n.sent(),r=e[0],i=e[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,n.sent()];case 4:return i(),[7];case 5:return[2]}}))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}();e.default=i},48125:(t,e,r)=>{"use strict";e.WU=void 0;var n=r(85078);Object.defineProperty(e,"WU",{enumerable:!0,get:function(){return n.default}}),r(2403),r(41960)},41960:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=void 0;var n=r(33649);e.withTimeout=function(t,e,r){var i=this;return void 0===r&&(r=new Error("timeout")),{acquire:function(){return new Promise((function(s,o){return n.__awaiter(i,void 0,void 0,(function(){var i,a;return n.__generator(this,(function(n){switch(n.label){case 0:return i=!1,setTimeout((function(){i=!0,o(r)}),e),[4,t.acquire()];case 1:return a=n.sent(),i?(Array.isArray(a)?a[1]:a)():s(a),[2]}}))}))}))},runExclusive:function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r;return n.__generator(this,(function(n){switch(n.label){case 0:e=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return r=n.sent(),Array.isArray(r)?(e=r[1],[4,t(r[0])]):[3,4];case 3:return[2,n.sent()];case 4:return e=r,[4,t()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}},79742:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=a(t),o=s[0],c=s[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,c)),u=0,h=c>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,l=n-i;al?l:a+o));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,s,o=[],a=e;a>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},44431:function(t,e,r){var n;!function(i){"use strict";var s,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e=0|t;return t>0||t===e?e:e-1}function w(t){for(var e,r,n=1,i=t.length,s=t[0]+"";nl^r?1:-1;for(a=(c=i.length)<(l=s.length)?c:l,o=0;os[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function v(t,e,r,n){if(tr||t!==c(t))throw Error(l+(n||"Argument")+("number"==typeof t?tr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function E(t){var e=t.c.length-1;return y(t.e/d)==e&&t.c[e]%2!=0}function x(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function _(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else eL?y.c=y.e=null:t.e=10;h/=10,l++);return void(l>L?y.c=y.e=null:(y.e=l,y.c=[t]))}g=String(t)}else{if(!o.test(g=String(t)))return i(y,g,f);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(l<0&&(l=h),l+=+g.slice(h+1),g=g.substring(0,h)):l<0&&(l=g.length)}else{if(v(e,2,z.length,"Base"),10==e&&H)return K(y=new W(t),T+y.e+1,N);if(g=String(t),f="number"==typeof t){if(0*t!=0)return i(y,g,f,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,W.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=z.slice(0,e),l=h=0,m=g.length;hl){l=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,l=0;continue}return i(y,String(t),f,e)}f=!1,(l=(g=n(g,e,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,f&&W.DEBUG&&m>15&&(t>p||t!==c(t)))throw Error(u+y.s*t);if((l=l-h-1)>L)y.c=y.e=null;else if(l=B)?x(c,o):_(c,o,"0");else if(s=(t=K(new W(t),e,r)).e,a=(c=w(t.c)).length,1==n||2==n&&(e<=s||s<=R)){for(;aa){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=s-a)>0)for(s+1==a&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function V(t,e){for(var r,n,i=1,s=new W(t[0]);i=10;i/=10,n++);return(r=n+r*d-1)>L?t.c=t.e=null:r=10;l/=10,i++);if((s=e-i)<0)s+=d,o=e,u=g[p=0],m=c(u/y[i-o-1]%10);else if((p=a((s+1)/d))>=g.length){if(!n)break t;for(;g.length<=p;g.push(0));u=m=0,i=1,o=(s%=d)-d+1}else{for(u=l=g[p],i=1;l>=10;l/=10,i++);m=(o=(s%=d)-d+i)<0?0:c(u/y[i-o-1]%10)}if(n=n||e<0||null!=g[p+1]||(o<0?u:u%y[i-o-1]),n=r<4?(m||n)&&(0==r||r==(t.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(s>0?o>0?u/y[i-o]:0:g[p-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,n?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==s?(g.length=p,l=1,p--):(g.length=p+1,l=y[d-s],g[p]=o>0?c(u/y[i-o]%y[o])*l:0),n)for(;;){if(0==p){for(s=1,o=g[0];o>=10;o/=10,s++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);s!=l&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[p]+=l,g[p]!=h)break;g[p--]=0,l=1}for(s=g.length;0===g[--s];g.pop());}t.e>L?t.c=t.e=null:t.e=B?x(e,r):_(e,r,"0"),t.s<0?"-"+e:e)}return W.clone=t,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(l+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(v(r=t[e],0,g,e),T=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(v(r=t[e],0,8,e),N=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(v(r[0],-g,0,e),v(r[1],0,g,e),R=r[0],B=r[1]):(v(r,-g,g,e),R=-(B=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)v(r[0],-g,-1,e),v(r[1],1,g,e),j=r[0],L=r[1];else{if(v(r,-g,g,e),!r)throw Error(l+e+" cannot be zero: "+r);j=-(L=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(l+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!r,Error(l+"crypto unavailable");U=r}else U=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(v(r=t[e],0,9,e),D=r),t.hasOwnProperty(e="POW_PRECISION")&&(v(r=t[e],0,g,e),$=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(l+e+" not an object: "+r);F=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+e+" invalid: "+r);H="0123456789"==r.slice(0,10),z=r}}return{DECIMAL_PLACES:T,ROUNDING_MODE:N,EXPONENTIAL_AT:[R,B],RANGE:[j,L],CRYPTO:U,MODULO_MODE:D,POW_PRECISION:$,FORMAT:F,ALPHABET:z}},W.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!W.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===s||-1===s)&&i>=-g&&i<=g&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%d)<1&&(e+=d),String(n[0]).length==e){for(e=0;e=h||r!==c(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+t)},W.maximum=W.max=function(){return V(arguments,-1)},W.minimum=W.min=function(){return V(arguments,1)},W.random=(s=9007199254740992,A=Math.random()*s&2097151?function(){return c(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,s,o=0,u=[],h=new W(O);if(null==t?t=T:v(t,0,g),i=a(t/d),U)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));o>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[o]=r[0],e[o+1]=r[1]):(u.push(s%1e14),o+=2);o=i/2}else{if(!crypto.randomBytes)throw U=!1,Error(l+"crypto unavailable");for(e=crypto.randomBytes(i*=7);o=9e15?crypto.randomBytes(7).copy(e,o):(u.push(s%1e14),o+=7);o=i/7}if(!U)for(;o=10;s/=10,o++);or-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,s,o,a){var c,l,u,h,d,p,f,m,g=n.indexOf("."),y=T,b=N;for(g>=0&&(h=$,$=0,n=n.replace(".",""),p=(m=new W(i)).pow(n.length-g),$=h,m.c=e(_(w(p.c),p.e,"0"),10,s,t),m.e=m.c.length),u=h=(f=e(n,i,s,a?(c=z,t):(c=t,z))).length;0==f[--h];f.pop());if(!f[0])return c.charAt(0);if(g<0?--u:(p.c=f,p.e=u,p.s=o,f=(p=r(p,m,y,b,s)).c,d=p.r,u=p.e),g=f[l=u+y+1],h=s/2,d=d||l<0||null!=f[l+1],d=b<4?(null!=g||d)&&(0==b||b==(p.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&f[l-1]||b==(p.s<0?8:7)),l<1||!f[0])n=d?_(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(f.length=l,d)for(--s;++f[--l]>s;)f[l]=0,l||(++u,f=[1].concat(f));for(h=f.length;!f[--h];);for(g=0,n="";g<=h;n+=c.charAt(f[g++]));n=_(n,u,c.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,s,o,a=0,c=t.length,l=e%m,u=e/m|0;for(t=t.slice();c--;)a=((i=l*(s=t[c]%m)+(n=u*s+(o=t[c]/m|0)*l)%m*m+a)/r|0)+(n/m|0)+u*o,t[c]=i%r;return a&&(t=[a].concat(t)),t}function e(t,e,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;ie[i]?1:-1;break}return s}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]1;t.splice(0,1));}return function(n,i,s,o,a){var l,u,p,f,m,g,w,b,v,E,x,_,A,k,S,C,M,I=n.s==i.s?1:-1,P=n.c,O=i.c;if(!(P&&P[0]&&O&&O[0]))return new W(n.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*I:I/0:NaN);for(v=(b=new W(I)).c=[],I=s+(u=n.e-i.e)+1,a||(a=h,u=y(n.e/d)-y(i.e/d),I=I/d|0),p=0;O[p]==(P[p]||0);p++);if(O[p]>(P[p]||0)&&u--,I<0)v.push(1),f=!0;else{for(k=P.length,C=O.length,p=0,I+=2,(m=c(a/(O[0]+1)))>1&&(O=t(O,m,a),P=t(P,m,a),C=O.length,k=P.length),A=C,x=(E=P.slice(0,C)).length;x=a/2&&S++;do{if(m=0,(l=e(O,E,C,x))<0){if(_=E[0],C!=x&&(_=_*a+(E[1]||0)),(m=c(_/S))>1)for(m>=a&&(m=a-1),w=(g=t(O,m,a)).length,x=E.length;1==e(g,E,w,x);)m--,r(g,C=10;I/=10,p++);K(b,s+(b.e=p+u*d-1)+1,o,f)}else b.e=u,b.r=+f;return b}}(),k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,C=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,s=r?e:e.replace(I,"");if(M.test(s))t.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(k,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,s=s.replace(S,"$1").replace(C,"0.$1")),e!=s))return new W(s,i);if(W.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},P.absoluteValue=P.abs=function(){var t=new W(this);return t.s<0&&(t.s=1),t},P.comparedTo=function(t,e){return b(this,new W(t,e))},P.decimalPlaces=P.dp=function(t,e){var r,n,i,s=this;if(null!=t)return v(t,0,g),null==e?e=N:v(e,0,8),K(new W(s),t+s.e+1,e);if(!(r=s.c))return null;if(n=((i=r.length-1)-y(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(t,e){return r(this,new W(t,e),T,N)},P.dividedToIntegerBy=P.idiv=function(t,e){return r(this,new W(t,e),0,1)},P.exponentiatedBy=P.pow=function(t,e){var r,n,i,s,o,u,h,p,f=this;if((t=new W(t)).c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+Z(t));if(null!=e&&(e=new W(e)),o=t.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!t.c||!t.c[0])return p=new W(Math.pow(+Z(f),o?t.s*(2-E(t)):+Z(t))),e?p.mod(e):p;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new W(NaN);(n=!u&&f.isInteger()&&e.isInteger())&&(f=f.mod(e))}else{if(t.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||o&&f.c[1]>=24e7:f.c[0]<8e13||o&&f.c[0]<=9999975e7)))return s=f.s<0&&E(t)?-0:0,f.e>-1&&(s=1/s),new W(u?1/s:s);$&&(s=a($/d+2))}for(o?(r=new W(.5),u&&(t.s=1),h=E(t)):h=(i=Math.abs(+Z(t)))%2,p=new W(O);;){if(h){if(!(p=p.times(f)).c)break;s?p.c.length>s&&(p.c.length=s):n&&(p=p.mod(e))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(K(t=t.times(r),t.e+1,1),t.e>14)h=E(t);else{if(0==(i=+Z(t)))break;h=i%2}f=f.times(f),s?f.c&&f.c.length>s&&(f.c.length=s):n&&(f=f.mod(e))}return n?p:(u&&(p=O.div(p)),e?p.mod(e):s?K(p,$,N,void 0):p)},P.integerValue=function(t){var e=new W(this);return null==t?t=N:v(t,0,8),K(e,e.e+1,t)},P.isEqualTo=P.eq=function(t,e){return 0===b(this,new W(t,e))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(t,e){return b(this,new W(t,e))>0},P.isGreaterThanOrEqualTo=P.gte=function(t,e){return 1===(e=b(this,new W(t,e)))||0===e},P.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},P.isLessThan=P.lt=function(t,e){return b(this,new W(t,e))<0},P.isLessThanOrEqualTo=P.lte=function(t,e){return-1===(e=b(this,new W(t,e)))||0===e},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(t,e){var r,n,i,s,o=this,a=o.s;if(e=(t=new W(t,e)).s,!a||!e)return new W(NaN);if(a!=e)return t.s=-e,o.plus(t);var c=o.e/d,l=t.e/d,u=o.c,p=t.c;if(!c||!l){if(!u||!p)return u?(t.s=-e,t):new W(p?o:NaN);if(!u[0]||!p[0])return p[0]?(t.s=-e,t):new W(u[0]?o:3==N?-0:0)}if(c=y(c),l=y(l),u=u.slice(),a=c-l){for((s=a<0)?(a=-a,i=u):(l=c,i=p),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(n=(s=(a=u.length)<(e=p.length))?a:e,a=e=0;e0)for(;e--;u[r++]=0);for(e=h-1;n>a;){if(u[--n]=0;){for(r=0,f=_[i]%v,g=_[i]/v|0,s=i+(o=c);s>i;)r=((l=f*(l=x[--o]%v)+(a=g*l+(u=x[o]/v|0)*f)%v*v+w[s]+r)/b|0)+(a/v|0)+g*u,w[s--]=l%b;w[s]=r}return r?++n:w.splice(0,1),G(t,w,n)},P.negated=function(){var t=new W(this);return t.s=-t.s||null,t},P.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new W(t,e)).s,!i||!e)return new W(NaN);if(i!=e)return t.s=-e,n.minus(t);var s=n.e/d,o=t.e/d,a=n.c,c=t.c;if(!s||!o){if(!a||!c)return new W(i/0);if(!a[0]||!c[0])return c[0]?t:new W(a[0]?n:0*i)}if(s=y(s),o=y(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=c):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(e=c.length)<0&&(r=c,c=a,a=r,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++o),G(t,a,o)},P.precision=P.sd=function(t,e){var r,n,i,s=this;if(null!=t&&t!==!!t)return v(t,1,g),null==e?e=N:v(e,0,8),K(new W(s),t,e);if(!(r=s.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&s.e+1>n&&(n=s.e+1),n},P.shiftedBy=function(t){return v(t,-9007199254740991,p),this.times("1e"+t)},P.squareRoot=P.sqrt=function(){var t,e,n,i,s,o=this,a=o.c,c=o.s,l=o.e,u=T+4,h=new W("0.5");if(1!==c||!a||!a[0])return new W(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(c=Math.sqrt(+Z(o)))||c==1/0?(((e=w(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(+e),l=y((l+1)/2)-(l<0||l%2),n=new W(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new W(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(s=n,n=h.times(s.plus(r(o,s,u,1))),w(s.c).slice(0,c)===(e=w(n.c)).slice(0,c)){if(n.e0&&m>0){for(s=m%a||a,h=f.substr(0,s);s0&&(h+=u+f.slice(s)),p&&(h="-"+h)}n=d?h+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):h}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(t){var e,n,i,s,o,a,c,u,h,p,m,g,y=this,b=y.c;if(null!=t&&(!(c=new W(t)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!b)return new W(y);for(e=new W(O),h=n=new W(O),i=u=new W(O),g=w(b),o=e.e=g.length-y.e-1,e.c[0]=f[(a=o%d)<0?d+a:a],t=!t||c.comparedTo(e)>0?o>0?e:h:c,a=L,L=1/0,c=new W(g),u.c[0]=0;p=r(c,e,0,1),1!=(s=n.plus(p.times(i))).comparedTo(t);)n=i,i=s,h=u.plus(p.times(s=h)),u=s,e=c.minus(p.times(s=e)),c=s;return s=r(t.minus(n),i,0,1),u=u.plus(s.times(h)),n=n.plus(s.times(i)),u.s=h.s=y.s,m=r(h,i,o*=2,N).minus(y).abs().comparedTo(r(u,n,o,N).minus(y).abs())<1?[h,i]:[u,n],L=a,m},P.toNumber=function(){return+Z(this)},P.toPrecision=function(t,e){return null!=t&&v(t,1,g),q(this,t,e,2)},P.toString=function(t){var e,r=this,i=r.s,s=r.e;return null===s?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=s<=R||s>=B?x(w(r.c),s):_(w(r.c),s,"0"):10===t&&H?e=_(w((r=K(new W(r),T+s+1,N)).c),r.e,"0"):(v(t,2,z.length,"Base"),e=n(_(w(r.c),s,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},P.valueOf=P.toJSON=function(){return Z(this)},P._isBigNumber=!0,null!=e&&W.set(e),W}(),s.default=s.BigNumber=s,void 0===(n=function(){return s}.call(e,r,e,t))||(t.exports=n)}()},47056:(t,e)=>{"use strict";var r;function n(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(r||(r={})),e.bind=n,e.default=n},13550:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],p=[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],f=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=p[t],u=f[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new S(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function E(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(t,e){t.iushrn(this.n,0,e)},E.prototype.imulK=function(t){return t.imul(this.k)},i(x,E),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new _;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return v[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,S),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},48764:(t,e,r)=>{"use strict";const n=r(79742),i=r(80645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|m(t,e);let n=a(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);const i=function(t){if(c.isBuffer(t)){const e=0|f(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),a(t<0?0:0|f(t))}function d(t){const e=t.length<0?0:0|f(t.length),r=a(e);for(let n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(i)return n?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),J(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let s,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let n=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){let r=!0;for(let n=0;ni&&(n=i):n=i;const s=e.length;let o;for(n>s/2&&(n=s/2),o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+o<=r){let r,n,a,c;switch(o){case 1:e<128&&(s=e);break;case 2:r=t[i+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(s=c));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.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;er&&(t+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.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===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0);const a=Math.min(s,o),l=this.slice(n,i),u=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return x(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function M(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,i,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i){z(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function B(t,e,r,n,i){z(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s>>=8,t[r+6]=s,s>>=8,t[r+5]=s,s>>=8,t[r+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function j(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,s){return e=+e,r>>>=0,s||j(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function U(t,e,r,n,s){return e=+e,r>>>=0,s||j(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.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||T(t,e,this.length);let n=this[t],i=1,s=0;for(;++s>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Y((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],i=1,s=0;for(;++s=i&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=e,i=1,s=this[t+--n];for(;n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Y((function(t){H(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||W(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeBigUInt64LE=Y((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Y((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,t,e,r,n-1,-n)}let i=0,s=1,o=0;for(this[e]=255&t;++i>0)-o&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,t,e,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/s>>0)-o&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeBigInt64LE=Y((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Y((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return U(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return U(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,i,s){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||W(e,t.length-(r+1))}(n,i,s)}function H(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,r){if(Math.floor(t)!==t)throw H(t,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}$("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),$("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),$("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=F(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const n=t.length;let i=null;const s=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function G(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const Q=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Y(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}},21924:(t,e,r)=>{"use strict";var n=r(40210),i=r(55559),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},55559:(t,e,r)=>{"use strict";var n=r(58612),i=r(40210),s=r(67771),o=i("%TypeError%"),a=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||n.call(c,a),u=i("%Object.defineProperty%",!0),h=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){if("function"!=typeof t)throw new o("a function is required");var e=l(n,c,arguments);return s(e,1+h(0,t.length-(arguments.length-1)),!0)};var d=function(){return l(n,a,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},86010:(t,e,r)=>{"use strict";function n(t){var e,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;ei,default:()=>s});const s=i},54098:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in t,o="ArrayBuffer"in t;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=f(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];E.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(t,r){return new Promise((function(n,s){var o=new b(t,r);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new E(i,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=d,t.Request=b,t.Response=E),e.Headers=d,e.Request=b,e.Response=E,e.fetch=_,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},27484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",s="hour",o="day",a="week",c="month",l="quarter",u="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},y={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()1)return t(o[0])}else{var a=e.name;b[a]=e,i=a}return!n&&i&&(w=i),i||!n&&w},_=function(t,e){if(E(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},A=y;A.l=x,A.i=E,A.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function m(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var g=m.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return _(t)0,g<=m.r||!m.r){g<=1&&f>0&&(m=d[f-1]);var y=h[m.l];a&&(g=a(""+g)),l="string"==typeof y?y.replace("%d",g):y(g,n,m.l,u);break}}if(n)return l;var w=u?h.future:h.past;return"function"==typeof w?w(l):w.replace("%s",l)},n.to=function(t,e){return s(t,e,this,!0)},n.from=function(t,e){return s(t,e,this)};var o=function(t){return t.$u?r.utc():r()};n.toNow=function(t){return this.to(o(this),t)},n.fromNow=function(t){return this.from(o(this),t)}}}()},70660:function(t){t.exports=function(){"use strict";return function(t,e,r){r.updateLocale=function(t,e){var n=r.Ls[t];if(n)return(e?Object.keys(e):[]).forEach((function(t){n[t]=e[t]})),n}}}()},11227:(t,e,r)=>{var n=r(34155);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=r(82447)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},82447:(t,e,r)=>{t.exports=function(t){function e(t){let r,i,s,o=null;function a(...t){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=e.formatters[i];if("function"==typeof s){const e=t[o];r=s.call(n,e),t.splice(o,1),o--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==e.namespaces&&(i=e.namespaces,s=e.enabled(t)),s),set:t=>{o=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e{"use strict";var e="%[a-f0-9]{2}",r=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],i(r),i(n))}function s(t){try{return decodeURIComponent(t)}catch(s){for(var e=t.match(r)||[],n=1;n{"use strict";var n=r(31044)(),i=r(40210),s=n&&i("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(t){s=!1}var o=i("%SyntaxError%"),a=i("%TypeError%"),c=r(27296);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!c&&c(t,e);if(s)s(t,e,{configurable:null===l&&h?h.configurable:!l,enumerable:null===n&&h?h.enumerable:!n,value:r,writable:null===i&&h?h.writable:!i});else{if(!u&&(n||i||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},65987:t=>{"use strict";var e={single_source_shortest_paths:function(t,r,n){var i={},s={};s[r]=0;var o,a,c,l,u,h,d,p=e.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(c in a=(o=p.pop()).value,l=o.cost,u=t[a]||{})u.hasOwnProperty(c)&&(h=l+u[c],d=s[c],(void 0===s[c]||d>h)&&(s[c]=h,p.push(c,h),i[c]=a));if(void 0!==n&&void 0===s[n]){var f=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,r,n){var i=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,i={};for(r in t=t||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},62378:t=>{"use strict";t.exports=function(t){for(var e=[],r=t.length,n=0;n=55296&&i<=56319&&r>n+1){var s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(i=1024*(i-55296)+s-56320+65536,n+=1)}i<128?e.push(i):i<2048?(e.push(i>>6|192),e.push(63&i|128)):i<55296||i>=57344&&i<65536?(e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)):i>=65536&&i<=1114111?(e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},60190:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBlockTracker=void 0;const i=n(r(19394)),s=(t,e)=>t+e,o=["sync","latest"];class a extends i.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||2e4,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise((t=>this.once("latest",t)))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){o.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map((t=>this.listenerCount(t))).reduce(s)}_newPotentialLatest(t){const e=this._currentBlock;e&&c(t)<=c(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){const e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}function c(t){return Number.parseInt(t,16)}e.BaseBlockTracker=a},30790:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PollingBlockTracker=void 0;const i=n(r(23420)),s=n(r(12352)),o=r(60190),a=r(59579),c=(0,a.createModuleLogger)(a.projectLogger,"polling-block-tracker"),l=(0,i.default)();class u extends o.BaseBlockTracker{constructor(t={}){var e;if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(e=t.blockResetDuration)&&void 0!==e?e:t.pollingInterval}),this._provider=t.provider,this._pollingInterval=t.pollingInterval||2e4,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===t.keepEventLoopActive||t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();const t=h(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await t}catch(e){const r=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${null!==(t=e.stack)&&void 0!==t?t:e}`);try{this.emit("error",r)}catch(t){console.error(r)}const n=h(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:l(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),c("Making request",t);const e=await(0,s.default)((e=>this._provider.sendAsync(t,e)))();if(c("Got response",e),e.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\n${e.error.message}`);return e.result}}function h(t,e){return new Promise((r=>{const n=setTimeout(r,t);n.unref&&e&&n.unref()}))}e.PollingBlockTracker=u},66767:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscribeBlockTracker=void 0;const i=n(r(23420)),s=r(60190),o=(0,i.default)();class a extends s.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{const t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...e){return new Promise(((r,n)=>{this._provider.sendAsync({id:o(),method:t,params:e,jsonrpc:"2.0"},((t,e)=>{t?n(t):r(e.result)}))}))}_handleSubData(t,e){var r;"eth_subscription"===e.method&&(null===(r=e.params)||void 0===r?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(e.params.result.number)}}e.SubscribeBlockTracker=a},6842:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(30790),e),i(r(66767),e),i(r(77627),e)},59579:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const n=r(42451);Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),e.projectLogger=(0,n.createProjectLogger)("eth-block-tracker")},77627:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},23256:(t,e,r)=>{const n=r(76622);t.exports=class extends n{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}},76622:(t,e,r)=>{const n=r(19394).default;t.exports=class extends n{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach((t=>this.emit("update",t)))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}}},72785:(t,e,r)=>{const n=r(76622),i=r(40207),{incrementHexInt:s}=r(98112);t.exports=class extends n{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){const r=e,n=s(t),o=(await i({provider:this.provider,fromBlock:n,toBlock:r})).map((t=>t.hash));this.addResults(o)}}},40207:t=>{function e(t){return null==t?t:Number.parseInt(t,16)}function r(t){return null==t?t:"0x"+t.toString(16)}function n(t,e){return new Promise(((r,n)=>{t.sendAsync(e,((t,e)=>{t?n(t):e.error?n(e.error):e.result?r(e.result):n(new Error("Result was empty"))}))}))}t.exports=async function({provider:t,fromBlock:i,toBlock:s}){i||(i=s);const o=e(i),a=e(s),c=Array(a-o+1).fill().map(((t,e)=>o+e)).map(r);return await Promise.all(c.map((e=>async function(t,e,r){for(let e=0;e<3;e++)try{return await n(t,{id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:r})}catch(t){console.error(`provider.sendAsync failed: ${t.stack||t.message||t}`)}throw new Error(`Block not found for params: ${JSON.stringify(r)}`)}(t,0,[e,!1]))))}},98112:t=>{function e(t){return t.sort(((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e)))}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){if(null==t)return t;let e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function i(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...t){return e(t)[0]},maxBlockRef:function(...t){const r=e(t);return r[r.length-1]},sortBlockRefs:e,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){return null==t?t:n(r(t)+1)},intToHex:n,unsafeRandomBytes:function(t){let e="0x";for(let r=0;r{const n=r(48125).WU,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(88625),o=r(81663),a=r(72785),c=r(25792),{intToHex:l,hexToInt:u}=r(98112);function h(t){return d((async(...e)=>{const r=await t(...e);return l(r.id)}))}function d(t){return i((async(e,r)=>{const n=await t.apply(null,e.params);r.result=n}))}function p(t,e){const r=[];for(let e in t)r.push(t[e]);return r}t.exports=function({blockTracker:t,provider:e}){let r=0,i={};const f=new n,m=function({mutex:t}){return e=>async(r,n,i,s)=>{(await t.acquire())(),e(r,n,i,s)}}({mutex:f}),g=s({eth_newFilter:m(h(w)),eth_newBlockFilter:m(h(b)),eth_newPendingTransactionFilter:m(h(v)),eth_uninstallFilter:m(d(_)),eth_getFilterChanges:m(d(E)),eth_getFilterLogs:m(d(x))}),y=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;const r=await f.acquire();try{await Promise.all(p(i).map((async r=>{try{await r.update({oldBlock:t,newBlock:e})}catch(t){console.error(t)}})))}catch(t){console.error(t)}r()};return g.newLogFilter=w,g.newBlockFilter=b,g.newPendingTransactionFilter=v,g.uninstallFilter=_,g.getFilterChanges=E,g.getFilterLogs=x,g.destroy=()=>{!async function(){const t=p(i).length;i={},k({prevFilterCount:t,newFilterCount:0})}()},g;async function w(t){const r=new o({provider:e,params:t});return await A(r),r}async function b(){const t=new a({provider:e});return await A(t),t}async function v(){const t=new c({provider:e});return await A(t),t}async function E(t){const e=u(t),r=i[e];if(!r)throw new Error(`No filter for index "${e}"`);return r.getChangesAndClear()}async function x(t){const e=u(t),r=i[e];if(!r)throw new Error(`No filter for index "${e}"`);let n=[];return"log"===r.type&&(n=r.getAllResults()),n}async function _(t){const e=u(t),r=i[e],n=Boolean(r);return n&&await async function(t){const e=p(i).length;delete i[t],k({prevFilterCount:e,newFilterCount:p(i).length})}(e),n}async function A(e){const n=p(i).length,s=await t.getLatestBlock();return await e.initialize({currentBlock:s}),r++,i[r]=e,e.id=r,e.idHex=l(r),k({prevFilterCount:n,newFilterCount:p(i).length}),r}function k({prevFilterCount:e,newFilterCount:r}){0===e&&r>0?t.on("sync",y):e>0&&0===r&&t.removeListener("sync",y)}}},81663:(t,e,r)=>{const n=r(75682),i=r(6417),s=r(23256),{bnToHex:o,hexToInt:a,incrementHexInt:c,minBlockRef:l,blockRefIsNumber:u}=r(98112);t.exports=class extends s{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new n(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((t=>t.toLowerCase())))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;const r=l(this.params.toBlock,t),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){const r=e;let n;n=t?c(t):e;const i=Object.assign({},this.params,{fromBlock:n,toBlock:r}),s=(await this._fetchLogs(i)).filter((t=>this.matchLog(t)));this.addResults(s)}async _fetchLogs(t){return await i((e=>this.ethQuery.getLogs(t,e)))()}matchLog(t){if(a(this.params.fromBlock)>=a(t.blockNumber))return!1;if(u(this.params.toBlock)&&a(this.params.toBlock)<=a(t.blockNumber))return!1;const e=t.address&&t.address.toLowerCase();return!(this.params.address&&e&&!this.params.address.includes(e))&&this.params.topics.every(((e,r)=>{let n=t.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map((t=>t.toLowerCase())),i.includes(n))}))}}},6417:t=>{"use strict";const e=(t,e,r,n)=>function(...i){return new(0,e.promiseModule)(((s,o)=>{e.multiArgs?i.push(((...t)=>{e.errorFirst?t[0]?o(t):(t.shift(),s(t)):s(t)})):e.errorFirst?i.push(((t,e)=>{t?o(t):s(e)})):i.push(s);const a=this===r?n:this;Reflect.apply(t,a,i)}))},r=new WeakMap;t.exports=(t,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};const i=typeof t;if(null===t||"object"!==i&&"function"!==i)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":i}\``);const s=new WeakMap,o=new Proxy(t,{apply(t,r,i){const a=s.get(t);if(a)return Reflect.apply(a,r,i);const c=n.excludeMain?t:e(t,n,o,t);return s.set(t,c),Reflect.apply(c,r,i)},get(t,i){const a=t[i];if(!((t,e)=>{let i=r.get(t);if(i||(i={},r.set(t,i)),e in i)return i[e];const s=t=>"string"==typeof t||"symbol"==typeof e?e===t:t.test(e),o=Reflect.getOwnPropertyDescriptor(t,e),a=void 0===o||o.writable||o.configurable,c=(n.include?n.include.some(s):!n.exclude.some(s))&&a;return i[e]=c,c})(t,i)||a===Function.prototype[i])return a;const c=s.get(a);if(c)return c;if("function"==typeof a){const r=e(a,n,o,t);return s.set(a,r),r}return a}});return o}},68961:(t,e,r)=>{const n=r(19394).default,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(88625),o=r(98406),{unsafeRandomBytes:a,incrementHexInt:c}=r(98112),l=r(40207);function u(t){return null==t?null:{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}t.exports=function({blockTracker:t,provider:e}){const r={},h=o({blockTracker:t,provider:e});let d=!1;const p=new n,f=s({eth_subscribe:i((async function(n,i){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const s=n.params[0],o=a(16);let p;switch(s){case"newHeads":p=function({subId:r}){const n={type:s,destroy:async()=>{t.removeListener("sync",n.update)},update:async({oldBlock:t,newBlock:n})=>{const i=n,s=c(t);(await l({provider:e,fromBlock:s,toBlock:i})).map(u).filter((t=>null!==t)).forEach((t=>{m(r,t)}))}};return t.on("sync",n.update),n}({subId:o});break;case"logs":const r=n.params[1];p=function({subId:t,filter:e}){return e.on("update",(e=>m(t,e))),{type:s,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:o,filter:await h.newLogFilter(r)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${s}"`)}return r[o]=p,void(i.result=o)})),eth_unsubscribe:i((async function(t,e){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const n=t.params[0],i=r[n];i?(delete r[n],await i.destroy(),e.result=!0):e.result=!1}))});return f.destroy=function(){p.removeAllListeners();for(const t in r)r[t].destroy(),delete r[t];d=!0},{events:p,middleware:f};function m(t,e){p.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},25792:(t,e,r)=>{const n=r(76622),i=r(40207),{incrementHexInt:s}=r(98112);t.exports=class extends n{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const e=t,r=s(t),n=await i({provider:this.provider,fromBlock:r,toBlock:e}),o=[];for(const t of n)o.push(...t.transactions);this.addResults(o)}}},75682:(t,e,r)=>{const n=r(47529),i=r(23420)();function s(t){this.currentProvider=t}function o(t){return function(){var e=[].slice.call(arguments),r=e.pop();this.sendAsync({method:t,params:e},r)}}function a(t,e){return function(){var r=[].slice.call(arguments),n=r.pop();r.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;const n=r(4445);class i extends Error{constructor(t,e,r){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==r&&(this.data=r)}serialize(){const t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return n.default(this.serialize(),s,2)}}function s(t,e){if("[Circular]"!==e)return e}e.EthereumRpcError=i,e.EthereumProviderError=class extends i{constructor(t,e,r){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,r)}}},92662:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},e.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},68797:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const n=r(12294),i=r(68753),s=r(92662);function o(t,e){const[r,s]=c(e);return new n.EthereumRpcError(t,r||i.getMessageFromCode(t),s)}function a(t,e){const[r,s]=c(e);return new n.EthereumProviderError(t,r||i.getMessageFromCode(t),s)}function c(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}e.ethErrors={rpc:{parse:t=>o(s.errorCodes.rpc.parse,t),invalidRequest:t=>o(s.errorCodes.rpc.invalidRequest,t),invalidParams:t=>o(s.errorCodes.rpc.invalidParams,t),methodNotFound:t=>o(s.errorCodes.rpc.methodNotFound,t),internal:t=>o(s.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(e,t)},invalidInput:t=>o(s.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>o(s.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>o(s.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>o(s.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>o(s.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>o(s.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>a(s.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>a(s.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>a(s.errorCodes.provider.unsupportedMethod,t),disconnected:t=>a(s.errorCodes.provider.disconnected,t),chainDisconnected:t=>a(s.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:i}=t;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(e,r,i)}}}},79826:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const n=r(12294);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});const i=r(68753);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const s=r(68797);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});const o=r(92662);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},68753:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=r(92662),i=r(12294),s=n.errorCodes.rpc.internal,o={code:s,message:a(s)};function a(t,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){const r=t.toString();if(h(n.errorValues,r))return n.errorValues[r].message;if(l(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function c(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!n.errorValues[e]||!!l(t)}function l(t){return t>=-32099&&t<=-32e3}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(t,{fallbackError:e=o,shouldIncludeStack:r=!1}={}){var n,s;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const l={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&c(t.code)){const e=t;l.code=e.code,e.message&&"string"==typeof e.message?(l.message=e.message,h(e,"data")&&(l.data=e.data)):(l.message=a(l.code),l.data={originalError:u(t)})}else{l.code=e.code;const r=null===(n=t)||void 0===n?void 0:n.message;l.message=r&&"string"==typeof r?r:e.message,l.data={originalError:u(t)}}const d=null===(s=t)||void 0===s?void 0:s.stack;return r&&t&&d&&"string"==typeof d&&(l.stack=d),l}},46877:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(339);function i(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{512}$/i.test(t)||!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))}function s(t,e){"object"==typeof e&&e.constructor===Uint8Array&&(e=n.bytesToHex(e));const r=n.keccak256(e).replace("0x","");for(let e=0;e<12;e+=4){const n=(parseInt(r.substr(e,2),16)<<8)+parseInt(r.substr(e+2,2),16)&2047,i=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function a(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{64}$/i.test(t)||!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))}function c(t){return!("string"!=typeof t||!t.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=i,e.isInBloom=s,e.isUserEthereumAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid ethereum address given: "${e}"`);return s(t,n.padLeft(e,64))},e.isContractAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid contract address given: "${e}"`);return s(t,e)},e.isTopicInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!a(e))throw new Error("Invalid topic");return s(t,e)},e.isTopic=a,e.isAddress=c},339:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(91094);function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);const r=[];for(let e=0;e=256||parseInt(String(r))!=r)return!1}return!0}(t))return s(new Uint8Array(t));throw new Error("invalid arrayify value")}function s(t){return void 0!==t.slice||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}e.keccak256=function(t){return"0x"+n.keccak_256(i(t))},e.padLeft=(t,e)=>{const r=/^0x/i.test(t)||"number"==typeof t,n=e-(t=t.toString().replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=function(t){const e=[];for(let r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return`0x${e.join("").replace(/^0+/,"")}`},e.toByteArray=i},82192:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak512=e.keccak384=e.keccak256=e.keccak224=void 0;const n=r(84589),i=r(58040);e.keccak224=(0,i.wrapHash)(n.keccak_224),e.keccak256=(()=>{const t=(0,i.wrapHash)(n.keccak_256);return t.create=n.keccak_256.create,t})(),e.keccak384=(0,i.wrapHash)(n.keccak_384),e.keccak512=(0,i.wrapHash)(n.keccak_512)},37270:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(45238),i=r(23037),s=r(70409);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},46061:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(66998),i=r(4870),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=p,n>c&&(n-=d,s+=o);const a=e,f=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[f]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},31315:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(66998),i=r(4870),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),p=o(0,u),f=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(p,t,f,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:p,expand:f,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===f)v=u(t,g,b,p);else if("xof"===f)v=h(t,g,b,a,p);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');v=t}const E=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},66998:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(4870),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function p(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function f(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=p,e.tonelliShanks=f,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?p(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*p(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>p(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s}},4870:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),f=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=p(t),i=p(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=p())=>{i=a(f([0]),t),n=a(),0!==t.length&&(i=a(f([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},70409:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(66998),i=r(4870),s=r(4870),o=r(46061),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),p=BigInt(4);function f(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function p(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),p=r.mul(o,o),f=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,f),l=r.add(c,l),c=r.sub(p,l),l=r.add(p,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),f=r.mul(t,f),m=r.sub(h,f),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,f),h=r.mul(h,m),l=r.add(l,h),f=r.mul(o,a),f=r.add(f,f),h=r.mul(f,m),c=r.sub(c,h),u=r.mul(f,p),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const p=e.a,f=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),E=r.add(o,a);v=r.mul(v,E),E=r.add(m,g),v=r.sub(v,E),E=r.add(n,s);let x=r.add(o,c);return E=r.mul(E,x),x=r.add(m,b),E=r.sub(E,x),x=r.add(i,s),l=r.add(a,c),x=r.mul(x,l),l=r.add(g,b),x=r.sub(x,l),h=r.mul(p,E),l=r.mul(f,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(p,b),E=r.mul(f,E),g=r.add(g,b),b=r.sub(m,b),b=r.mul(p,b),E=r.add(E,b),m=r.mul(g,E),u=r.add(u,m),m=r.mul(x,E),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(x,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(f(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,p=this;for(;o>l||c>l;)o&u&&(h=h.add(p)),c&u&&(d=d.add(p)),p=p.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){f(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:p}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,f),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=f,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function p(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=f({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function E(t){return t>c>>u}const x=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class _{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new _(x(t,0,e),x(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new _(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new _(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=p(-o*h),f=p(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,f);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const A={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=r.randomBytes(a.BYTES+8),e=n.hashToPrivateScalar(t,c);return i.numberToBytesBE(e,r.nByteLength)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function k(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const S=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return p(S(t))},M=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:f}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),x=[I(v),I(w)];if(null!=f){const t=!0===f?c(a.BYTES):f;x.push((0,s.ensureBytes)("extraEntropy",t,a.BYTES))}const A=i.concatBytes(...x),k=w;return{seed:A,k2sig:function(t){const e=S(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=p(n.x);if(i===l)return;const s=p(r*p(k+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&E(s)&&(a=function(t){return E(t)?p(-t):t}(s),o^=1),new _(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=_.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=_.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new _(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:f}=u,y=C(n),w=m(f),b=p(y*w),v=p(d*w),E=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!E&&p(E.x)===d},ProjectivePoint:g,Signature:_,utils:A}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:p}=r(s,l);h=t.mul(i,n),h=t.mul(h,p),u=t.cmov(u,o,d),h=t.cmov(h,p,d);const f=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,f),u=t.div(u,a),{x:u,y:h}}}},70041:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(10820),i=r(23037),s=r(66998),o=r(70409),a=r(4870),c=r(31315),l=r(37270),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),f=(t,e)=>(t+e/p)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,f=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(f,r,e)*d%e,y=(0,s.pow2)(m,p,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,E=(0,s.pow2)(v,l,e)*v%e,x=(0,s.pow2)(E,c,e)*b%e,_=(0,s.pow2)(x,r,e)*d%e,A=(0,s.pow2)(_,a,e)*w%e,k=(0,s.pow2)(A,n,e)*h%e,S=(0,s.pow2)(k,p,e);if(!g.eql(g.sqr(S),t))throw new Error("Cannot find square root");return S}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=f(o*t,e),l=f(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),p=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=p>a;if(m&&(u=e-u),g&&(p=e-p),u>a||p>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:p}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const E=t=>t.toRawBytes(!0).slice(1),x=t=>(0,a.numberToBytesBE)(t,32),_=t=>(0,s.mod)(t,u),A=t=>(0,s.mod)(t,h),k=e.secp256k1.ProjectivePoint;function S(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:A(-r),bytes:E(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=_(t*t);let r=m(_(e*t+BigInt(7)));r%p!==y&&(r=_(-r));const n=new k(t,r,d);return n.assertValidity(),n}function M(...t){return A((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!(t=>"bigint"==typeof t&&yk.BASE.multiplyAndAddUnsafe(t,e,r))(t,r,A(-o));return!(!c||!c.hasEvenY()||c.toAffine().x!==e)}catch(t){return!1}}e.schnorr={getPublicKey:function(t){return S(t).bytes},sign:function(t,e,r=(0,i.randomBytes)(32)){const n=(0,a.ensureBytes)("message",t),{bytes:s,scalar:o}=S(e),c=(0,a.ensureBytes)("auxRand",r,32),l=x(o^(0,a.bytesToNumberBE)(v("BIP0340/aux",c))),u=v("BIP0340/nonce",l,s,n),h=A((0,a.bytesToNumberBE)(u));if(h===y)throw new Error("sign failed: k is zero");const{bytes:d,scalar:p}=S(h),f=M(d,s,n),m=new Uint8Array(64);if(m.set(d,0),m.set(x(A(p+f*o)),32),!I(m,n,s))throw new Error("sign: Invalid signature produced");return m},verify:I,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:C,pointToBytes:E,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:v,mod:s.mod}};const P=(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))),O=(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),T=(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});e.hashToCurve=T.hashToCurve,e.encodeToCurve=T.encodeToCurve},79131:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(79131),i=r(23037);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){n.default.exists(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.fromBig=i,e.split=s,e.toBig=(t,e)=>BigInt(t>>>0)<>>0),e.add=o;const a={fromBig:i,split:s,toBig:e.toBig,shrSH:(t,e,r)=>t>>>r,shrSL:(t,e,r)=>t<<32-r|e>>>r,rotrSH:(t,e,r)=>t>>>r|e<<32-r,rotrSL:(t,e,r)=>t<<32-r|e>>>r,rotrBH:(t,e,r)=>t<<64-r|e>>>r-32,rotrBL:(t,e,r)=>t>>>r-32|e<<64-r,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,r)=>t<>>32-r,rotlSL:(t,e,r)=>e<>>32-r,rotlBH:(t,e,r)=>e<>>64-r,rotlBL:(t,e,r)=>t<>>64-r,add:o,add3L:(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),add3H:(t,e,r,n)=>e+r+n+(t/2**32|0)|0,add4L:(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),add4H:(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,add5H:(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,add5L:(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};e.default=a},38378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},45238:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(79131),i=r(23037);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,n.default.hash(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},10820:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(14955),i=r(23037),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:p}=this;for(let t=0;t<64;t++){const e=p+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((f=u)&h^~f&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;p=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var f;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,n,a,l,u,h,d,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},84589:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(79131),i=r(97946),s=r(23037),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),p=BigInt(256),f=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*f)%p,e&h&&(i^=u<<(u<r>32?i.default.rotlBH(t,e,r):i.default.rotlSH(t,e,r),w=(t,e,r)=>r>32?i.default.rotlBL(t,e,r):i.default.rotlSL(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){n.default.exists(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(n.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const E=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=E(6,144,28),e.sha3_256=E(6,136,32),e.sha3_384=E(6,104,48),e.sha3_512=E(6,72,64),e.keccak_224=E(1,144,28),e.keccak_256=E(1,136,32),e.keccak_384=E(1,104,48),e.keccak_512=E(1,72,64);const x=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=x(31,168,16),e.shake256=x(31,136,32)},23037:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(38378),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}},e.checkOpts=function(t,e){if(void 0!==e&&("object"!=typeof e||(r=e,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new Error("Options should be object or undefined");var r;return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},95053:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var n=r(70041);Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},58040:function(t,e,r){"use strict";t=r.nmd(t);var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const i=n(r(79131)),s=r(23037),o=i.default.bool;e.assertBool=o;const a=i.default.bytes;e.assertBytes=a;var c=r(23037);Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),e.bytesToUtf8=function(t){if(!(t instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof t);return(new TextDecoder).decode(t)},e.hexToBytes=function(t){const e=t.startsWith("0x")?t.substring(2):t;return(0,s.hexToBytes)(e)},e.equalsBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;r(i.default.bytes(e),t(e))},e.crypto=(()=>{const e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},94278:(t,e,r)=>{"use strict";var n=r(43614),i=r(83206),s=new n(0),o=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(t){var e=t?t.toLowerCase():"ether",r=a[e];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(r,10)}function l(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"==typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}t.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(t,e,r){var n=i(t),l=n.lt(s),u=c(e),h=a[e].length-1||1,d=r||{};l&&(n=n.mul(o));for(var p=n.mod(u).toString(10);p.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var d=h[0],p=h[1];if(d||(d="0"),p||(p="0"),p.length>s)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;p.length=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],p=h[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);r=(f=f.idivn(p)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function f(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):f(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return g[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},26729:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,n,s,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,s||t,o),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,s,o,l;if(a(r),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),void 0===o)o=s[e]=r,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=c(t))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var l=c.length,u=f(c,l);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},4445:t=>{t.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var e="[...]",r="[Circular]",n=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(t,e,r,o){var a;void 0===o&&(o=s()),c(t,"",0,[],void 0,0,o);try{a=0===i.length?JSON.stringify(t,e,r):JSON.stringify(t,d(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function a(t,e,r,s){var o=Object.getOwnPropertyDescriptor(s,r);void 0!==o.get?o.configurable?(Object.defineProperty(s,r,{value:t}),n.push([s,r,e,o])):i.push([e,r,t]):(s[r]=t,n.push([s,r,e]))}function c(t,n,i,s,o,l,u){var h;if(l+=1,"object"==typeof t&&null!==t){for(h=0;hu.depthLimit)return void a(e,t,n,o);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(e,t,n,o);if(s.push(t),Array.isArray(t))for(h=0;he?1:0}function u(t,e,r,o){void 0===o&&(o=s());var a,c=h(t,"",0,[],void 0,0,o)||t;try{a=0===i.length?JSON.stringify(c,e,r):JSON.stringify(c,d(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function h(t,i,s,o,c,u,d){var p;if(u+=1,"object"==typeof t&&null!==t){for(p=0;pd.depthLimit)return void a(e,t,i,c);if(void 0!==d.edgesLimit&&s+1>d.edgesLimit)return void a(e,t,i,c);if(o.push(t),Array.isArray(t))for(p=0;p0)for(var n=0;n{"use strict";t.exports=function(t,e){for(var r={},n=Object.keys(t),i=Array.isArray(e),s=0;s{"use strict";var n=r(95320),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(t)?function(t,e,r){for(var n=0,i=t.length;n{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";var n=r(17648);t.exports=Function.prototype.bind||n},40210:(t,e,r)=>{"use strict";var n,i=SyntaxError,s=Function,o=TypeError,a=function(t){try{return s('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,h=r(41405)(),d=r(28185)(),p=Object.getPrototypeOf||(d?function(t){return t.__proto__}:null),f={},m="undefined"!=typeof Uint8Array&&p?p(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&p?p(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(t){var y=p(p(t));g["%Error.prototype%"]=y}var w=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&p&&(r=p(i.prototype))}return g[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(58612),E=r(48824),x=v.call(Function.call,Array.prototype.concat),_=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),k=v.call(Function.call,String.prototype.slice),S=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,I=function(t,e){var r,n=t;if(E(b,n)&&(n="%"+(r=b[n])[0]+"%"),E(g,n)){var s=g[n];if(s===f&&(s=w(n)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=k(t,0,1),r=k(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return A(t,C,(function(t,e,r,i){n[n.length]=r?A(i,M,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",s=I("%"+n+"%",e),a=s.name,l=s.value,u=!1,h=s.alias;h&&(n=h[0],_(r,x([0,1],h)));for(var d=1,p=!0;d=r.length){var w=c(l,f);l=(p=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[f]}else p=E(l,f),l=l[f];p&&!u&&(g[a]=l)}}return l}},27296:(t,e,r)=>{"use strict";var n=r(40210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},31044:(t,e,r)=>{"use strict";var n=r(40210)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},28185:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},41405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(55419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:(t,e,r)=>{"use strict";var n=r(55419);t.exports=function(){return n()&&!!Symbol.toStringTag}},48824:(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(58612);t.exports=s.call(n,i)},80645:(t,e)=>{e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,c=(1<>1,u=-7,h=r?i-1:0,d=r?-1:1,p=t[e+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=l}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,c,l=8*s-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&a,p+=f,a/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=f,o/=256,l-=8);t[r+p-f]|=128*m}},35717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},82584:(t,e,r)=>{"use strict";var n=r(96410)(),i=r(21924)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},95320:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;c.call(d)===c.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(o(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},48662:(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=r(96410)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(o.test(s.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},23944:t=>{t.exports=function(t){if("string"!=typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},85692:(t,e,r)=>{"use strict";var n=r(86430);t.exports=function(t){return!!n(t)}},80204:(t,e,r)=>{t.exports=self.fetch||(self.fetch=r(25869).default||r(25869))},91094:(t,e,r)=>{var n,i=r(34155);!function(){"use strict";var s="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:c&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&t.exports,u=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],f=[0,8,16,24],m=[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],y=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var v=function(t,e,r){return function(n){return new B(t,e,t).update(n)[r]()}},E=function(t,e,r){return function(n,i){return new B(t,e,i).update(n)[r]()}},x=function(t,e,r){return function(e,n,i,s){return C["cshake"+t].update(e,n,i,s)[r]()}},_=function(t,e,r){return function(e,n,i,s){return C["kmac"+t].update(e,n,i,s)[r]()}},A=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(t,e,r){B.call(this,t,e,r)}B.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,c=t.length,l=this.blockCount,u=0,d=this.s;u>2]|=t[u]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=a){for(this.start=n-a,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},B.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];o%e==0&&(L(r),s=0)}return i&&(t=r[s],a+=d[t>>4&15]+d[15&t],i>1&&(a+=d[t>>12&15]+d[t>>8&15]),i>2&&(a+=d[t>>20&15]+d[t>>16&15])),a},B.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&L(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},j.prototype=new B,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,s,o,a,c,l,u,h,d,p,f,g,y,w,b,v,E,x,_,A,k,S,C,M,I,P,O,T,N,R,B,j,L,U,D,$,F,z,H,W,q,V,G,K,Z,J,Q,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(u<<1|h>>>31),r=a^(h<<1|u>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=u^(i<<1|s>>>31),r=h^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,f=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,W=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,T=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,Q=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,N=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,$=t[27]<<25|t[26]>>>7,E=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,F=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,_=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=f^~y&b,t[1]=g^~w&v,t[10]=k^~C&I,t[11]=S^~M&P,t[20]=B^~L&D,t[21]=j^~U&$,t[30]=q^~G&Z,t[31]=V^~K&J,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&E,t[3]=w^~v&x,t[12]=C^~I&O,t[13]=M^~P&T,t[22]=L^~D&F,t[23]=U^~$&z,t[32]=G^~Z&Q,t[33]=K^~J&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~E&_,t[5]=v^~x&A,t[14]=I^~O&N,t[15]=P^~T&R,t[24]=D^~F&H,t[25]=$^~z&W,t[34]=Z^~Q&X,t[35]=J^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=E^~_&f,t[7]=x^~A&g,t[16]=O^~N&k,t[17]=T^~R&S,t[26]=F^~H&B,t[27]=z^~W&j,t[36]=Q^~X&q,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=_^~f&y,t[9]=A^~g&w,t[18]=N^~k&C,t[19]=R^~S&M,t[28]=H^~B&L,t[29]=W^~j&U,t[38]=X^~q&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=m[n],t[1]^=m[n+1]};if(l)t.exports=C;else{for(I=0;I{try{const[i,s,a]=await o._runAllMiddleware(t,e,this._middleware);return s?(await o._runReturnHandlers(a),n(i)):r((async t=>{try{await o._runReturnHandlers(a)}catch(e){return t(e)}return t()}))}catch(t){return n(t)}}}async _handleBatch(t,e){try{const r=await Promise.all(t.map(this._promiseHandle.bind(this)));return e?e(null,r):r}catch(t){if(e)return e(t);throw t}}_promiseHandle(t){return new Promise((e=>{this._handle(t,((t,r)=>{e(r)}))}))}async _handle(t,e){if(!t||Array.isArray(t)||"object"!=typeof t){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof t,{request:t});return e(r,{id:void 0,jsonrpc:"2.0",error:r})}if("string"!=typeof t.method){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof t.method,{request:t});return e(r,{id:t.id,jsonrpc:"2.0",error:r})}const r=Object.assign({},t),n={id:r.id,jsonrpc:r.jsonrpc};let i=null;try{await this._processRequest(r,n)}catch(t){i=t}return i&&(delete n.result,n.error||(n.error=s.serializeError(i))),e(i,n)}async _processRequest(t,e){const[r,n,i]=await o._runAllMiddleware(t,e,this._middleware);if(o._checkForCompletion(t,e,n),await o._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(t,e,r){const n=[];let i=null,s=!1;for(const a of r)if([i,s]=await o._runMiddleware(t,e,a,n),s)break;return[i,s,n.reverse()]}static _runMiddleware(t,e,r,n){return new Promise((i=>{const o=t=>{const r=t||e.error;r&&(e.error=s.serializeError(r)),i([r,!0])},c=r=>{e.error?o(e.error):(r&&("function"!=typeof r&&o(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof r}" for request:\n${a(t)}`,{request:t})),n.push(r)),i([null,!1]))};try{r(t,e,c,o)}catch(t){o(t)}}))}static async _runReturnHandlers(t){for(const e of t)await new Promise(((t,r)=>{e((e=>e?r(e):t()))}))}static _checkForCompletion(t,e,r){if(!("result"in e)&&!("error"in e))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${a(t)}`,{request:t});if(!r)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${a(t)}`,{request:t})}}function a(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=o},31841:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return async(e,r,n,i)=>{let s;const o=new Promise((t=>{s=t}));let a=null,c=!1;const l=async()=>{c=!0,n((t=>{a=t,s()})),await o};try{await t(e,r,l),c?(await o,a(null)):i(null)}catch(t){a?a(t):i(t)}}}},48508:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return(e,r,n,i)=>{const s=t[e.method];return void 0===s?n():"function"==typeof s?s(e,r,n,i):(r.result=s,i())}}},33107:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUniqueId=void 0;const r=4294967295;let n=Math.floor(Math.random()*r);e.getUniqueId=function(){return n=(n+1)%r,n}},85086:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;const n=r(33107);e.createIdRemapMiddleware=function(){return(t,e,r,i)=>{const s=t.id,o=n.getUniqueId();t.id=o,e.id=o,r((r=>{t.id=s,e.id=s,r()}))}}},88625:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(85086),e),i(r(31841),e),i(r(48508),e),i(r(33107),e),i(r(17398),e),i(r(79962),e)},79962:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;const n=r(17398);e.mergeMiddleware=function(t){const e=new n.JsonRpcEngine;return t.forEach((t=>e.push(t))),e.asMiddleware()}},23420:t=>{t.exports=function(t){var e=(t=t||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==t.start?t.start:Math.floor(Math.random()*e);return function(){return r%=e,r++}}},95811:(t,e,r)=>{t.exports=r(26066)(r(79653))},26066:(t,e,r)=>{const n=r(37016),i=r(5675);t.exports=function(t){const e=n(t),r=i(t);return function(t,n){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},37016:(t,e,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i,s){super(s),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=s,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},5675:(t,e,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},34040:(t,e)=>{const r=[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];e.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],o=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],u=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49];let p=h^(s<<1|o>>>31),f=d^(o<<1|s>>>31);const m=t[0]^p,g=t[1]^f,y=t[10]^p,w=t[11]^f,b=t[20]^p,v=t[21]^f,E=t[30]^p,x=t[31]^f,_=t[40]^p,A=t[41]^f;p=n^(a<<1|c>>>31),f=i^(c<<1|a>>>31);const k=t[2]^p,S=t[3]^f,C=t[12]^p,M=t[13]^f,I=t[22]^p,P=t[23]^f,O=t[32]^p,T=t[33]^f,N=t[42]^p,R=t[43]^f;p=s^(l<<1|u>>>31),f=o^(u<<1|l>>>31);const B=t[4]^p,j=t[5]^f,L=t[14]^p,U=t[15]^f,D=t[24]^p,$=t[25]^f,F=t[34]^p,z=t[35]^f,H=t[44]^p,W=t[45]^f;p=a^(h<<1|d>>>31),f=c^(d<<1|h>>>31);const q=t[6]^p,V=t[7]^f,G=t[16]^p,K=t[17]^f,Z=t[26]^p,J=t[27]^f,Q=t[36]^p,Y=t[37]^f,X=t[46]^p,tt=t[47]^f;p=l^(n<<1|i>>>31),f=u^(i<<1|n>>>31);const et=t[8]^p,rt=t[9]^f,nt=t[18]^p,it=t[19]^f,st=t[28]^p,ot=t[29]^f,at=t[38]^p,ct=t[39]^f,lt=t[48]^p,ut=t[49]^f,ht=m,dt=g,pt=w<<4|y>>>28,ft=y<<4|w>>>28,mt=b<<3|v>>>29,gt=v<<3|b>>>29,yt=x<<9|E>>>23,wt=E<<9|x>>>23,bt=_<<18|A>>>14,vt=A<<18|_>>>14,Et=k<<1|S>>>31,xt=S<<1|k>>>31,_t=M<<12|C>>>20,At=C<<12|M>>>20,kt=I<<10|P>>>22,St=P<<10|I>>>22,Ct=T<<13|O>>>19,Mt=O<<13|T>>>19,It=N<<2|R>>>30,Pt=R<<2|N>>>30,Ot=j<<30|B>>>2,Tt=B<<30|j>>>2,Nt=L<<6|U>>>26,Rt=U<<6|L>>>26,Bt=$<<11|D>>>21,jt=D<<11|$>>>21,Lt=F<<15|z>>>17,Ut=z<<15|F>>>17,Dt=W<<29|H>>>3,$t=H<<29|W>>>3,Ft=q<<28|V>>>4,zt=V<<28|q>>>4,Ht=K<<23|G>>>9,Wt=G<<23|K>>>9,qt=Z<<25|J>>>7,Vt=J<<25|Z>>>7,Gt=Q<<21|Y>>>11,Kt=Y<<21|Q>>>11,Zt=tt<<24|X>>>8,Jt=X<<24|tt>>>8,Qt=et<<27|rt>>>5,Yt=rt<<27|et>>>5,Xt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=ot<<7|st>>>25,re=st<<7|ot>>>25,ne=at<<8|ct>>>24,ie=ct<<8|at>>>24,se=lt<<14|ut>>>18,oe=ut<<14|lt>>>18;t[0]=ht^~_t&Bt,t[1]=dt^~At&jt,t[10]=Ft^~Xt&mt,t[11]=zt^~te>,t[20]=Et^~Nt&qt,t[21]=xt^~Rt&Vt,t[30]=Qt^~pt&kt,t[31]=Yt^~ft&St,t[40]=Ot^~Ht&ee,t[41]=Tt^~Wt&re,t[2]=_t^~Bt&Gt,t[3]=At^~jt&Kt,t[12]=Xt^~mt&Ct,t[13]=te^~gt&Mt,t[22]=Nt^~qt&ne,t[23]=Rt^~Vt&ie,t[32]=pt^~kt&Lt,t[33]=ft^~St&Ut,t[42]=Ht^~ee&yt,t[43]=Wt^~re&wt,t[4]=Bt^~Gt&se,t[5]=jt^~Kt&oe,t[14]=mt^~Ct&Dt,t[15]=gt^~Mt&$t,t[24]=qt^~ne&bt,t[25]=Vt^~ie&vt,t[34]=kt^~Lt&Zt,t[35]=St^~Ut&Jt,t[44]=ee^~yt&It,t[45]=re^~wt&Pt,t[6]=Gt^~se&ht,t[7]=Kt^~oe&dt,t[16]=Ct^~Dt&Ft,t[17]=Mt^~$t&zt,t[26]=ne^~bt&Et,t[27]=ie^~vt&xt,t[36]=Lt^~Zt&Qt,t[37]=Ut^~Jt&Yt,t[46]=yt^~It&Ot,t[47]=wt^~Pt&Tt,t[8]=se^~ht&_t,t[9]=oe^~dt&At,t[18]=Dt^~Ft&Xt,t[19]=$t^~zt&te,t[28]=bt^~Et&Nt,t[29]=vt^~xt&Rt,t[38]=Zt^~Qt&pt,t[39]=Jt^~Yt&ft,t[48]=It^~Ot&Ht,t[49]=Pt^~Tt&Wt,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},79653:(t,e,r)=>{var n=r(48764).Buffer;const i=r(34040);function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(t){for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return e},s.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=s},72307:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[s]=_[o]=_[b]=_[a]=_[v]=_[c]=_[l]=_[u]=_[h]=_[d]=_[p]=_[m]=_[g]=_[y]=_[w]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,S=A||k||Function("return this")(),C=e&&!e.nodeType&&e,M=C&&t&&!t.nodeType&&t,I=M&&M.exports===C,P=I&&A.process,O=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),T=O&&O.isTypedArray;function N(t,e){for(var r=-1,n=null==t?0:t.length;++ra))return!1;var l=s.get(t);if(l&&s.get(e))return l==e;var u=-1,h=!0,d=2&r?new bt:void 0;for(s.set(t,e),s.set(e,t);++u-1},yt.prototype.set=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(it||yt),string:new gt}},wt.prototype.delete=function(t){var e=Ct(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ct(this,t).get(t)},wt.prototype.has=function(t){return Ct(this,t).has(t)},wt.prototype.set=function(t,e){var r=Ct(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,n),this},bt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.clear=function(){this.__data__=new yt,this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(n)}return r.set(t,e),this.size=r.size,this};var It=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,i=null==e?0:e.length,s=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=i}function Dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $t(t){return null!=t&&"object"==typeof t}var Ft=T?function(t){return function(e){return t(e)}}(T):function(t){return $t(t)&&Ut(t.length)&&!!_[xt(t)]};function zt(t){return null!=(e=t)&&Ut(e.length)&&!Lt(e)?function(t,e){var r=Bt(t),n=!r&&Rt(t),i=!r&&!n&&jt(t),s=!r&&!n&&!i&&Ft(t),o=r||n||i||s,a=o?function(t,e){for(var r=-1,n=Array(t);++r{"use strict";const n=r(34411),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1,m=(t,e,r)=>{const n=t[d].get(e);if(n){const e=n.value;if(g(t,e)){if(w(t,n),!t[a])return}else r&&(t[p]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[c])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[c]&&r>t[c]},y=t=>{if(t[s]>t[i])for(let e=t[h].tail;t[s]>t[i]&&null!==e;){const r=e.prev;w(t,e),e=r}},w=(t,e)=>{if(e){const r=e.value;t[l]&&t[l](r.key,r.value),t[s]-=r.length,t[d].delete(r.key),t[h].removeNode(e)}};class b{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const v=(t,e,r,n)=>{let i=r.value;g(t,i)&&(w(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||f;if(this[o]="function"!=typeof e?f:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0,this[l]=t.dispose,this[u]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[c]=t,y(this)}get maxAge(){return this[c]}set lengthCalculator(t){"function"!=typeof t&&(t=f),t!==this[o]&&(this[o]=t,this[s]=0,this[h].forEach((t=>{t.length=this[o](t.value,t.key),this[s]+=t.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;v(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;v(this,t,r,e),r=n}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[l]&&this[h]&&this[h].length&&this[h].forEach((t=>this[l](t.key,t.value))),this[d]=new Map,this[h]=new n,this[s]=0}dump(){return this[h].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](e,t);if(this[d].has(t)){if(a>this[i])return w(this,this[d].get(t)),!1;const o=this[d].get(t).value;return this[l]&&(this[u]||this[l](t,o.value)),o.now=n,o.maxAge=r,o.value=e,this[s]+=a-o.length,o.length=a,this.get(t),y(this),!0}const p=new b(t,e,a,n,r);return p.length>this[i]?(this[l]&&this[l](t,e),!1):(this[s]+=p.length,this[h].unshift(p),this[d].set(t,this[h].head),y(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!g(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[h].tail;return t?(w(this,t),t.value):null}del(t){w(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[d].forEach(((t,e)=>m(this,e,!1)))}}},64898:(t,e,r)=>{"use strict";var n=r(48764).Buffer,i=r(34155);Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidStatusCodeError=e.InvalidCertError=void 0;const s=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class o extends Error{constructor(t,e){super(t),this.fingerprint256=e}}e.InvalidCertError=o;class a extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}function c(t,e){if(!e||"text"===e||"json"===e)try{let r=new TextDecoder("utf8",{fatal:!0}).decode(t);if("text"===e)return r;try{return JSON.parse(r)}catch(t){if("json"===e)throw t;return r}}catch(t){if("text"===e||"json"===e)throw t}return t}e.InvalidStatusCodeError=a;let l={};function u(t,e){let i={...s,...e};const h=r(72260),d=r(72895),p=r(31865),{promisify:f}=r(89539),{resolve:m}=r(8575),g=!!/^https/.test(t);let y={method:i.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const w=t=>t.replace(/:| /g,"").toLowerCase();if(i.keepAlive){const t={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},e=[g,g&&i.sslPinnedCertificates?.map((t=>w(t))).sort()].join();y.agent=l[e]||(l[e]=new(g?d:h).Agent(t))}return"json"===i.type&&(y.headers["Content-Type"]="application/json"),i.data&&(i.method||(y.method="POST"),y.body="json"===i.type?JSON.stringify(i.data):i.data),y.headers={...y.headers,...i.headers},i.sslAllowSelfSigned&&(y.rejectUnauthorized=!1),new Promise(((e,r)=>{const s=async e=>{if(e&&"DEPTH_ZERO_SELF_SIGNED_CERT"===e.code)try{await u(t,{...i,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(t){t&&t.fingerprint256&&(e=new o(`Self-signed SSL certificate: ${t.fingerprint256}`,t.fingerprint256))}r(e)},l=(g?d:h).request(t,y,(o=>{o.on("error",s),(async()=>{try{e(await(async e=>{const r=e.statusCode;if(i.redirect&&300<=r&&r<400&&e.headers.location){if(10==i._redirectCount)throw new Error("Request failed. Too much redirects.");return i._redirectCount+=1,await u(m(t,e.headers.location),i)}if(i.expectStatusCode&&r!==i.expectStatusCode)throw e.resume(),new a(r);let s=[];for await(const t of e)s.push(t);let o=n.concat(s);const l=e.headers["content-encoding"];"br"===l&&(o=await f(p.brotliDecompress)(o)),"gzip"!==l&&"deflate"!==l||(o=await f(p.unzip)(o));const h=c(o,i.type);return i.full?{headers:e.headers,status:r,body:h}:h})(o))}catch(t){r(t)}})()}));l.on("error",s);const b=i.sslPinnedCertificates?.map((t=>w(t))),v=t=>{const e=w(t.getPeerCertificate()?.fingerprint256||"");if((e||!t.isSessionReused())&&!b.includes(e))return l.emit("error",new o(`Invalid SSL certificate: ${e} Expected: ${b}`,e)),l.abort()};i.sslPinnedCertificates&&l.on("socket",(t=>{t.listeners("secureConnect").map((t=>(t.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||t.on("secureConnect",v.bind(null,t))})),i.keepAlive&&l.setNoDelay(!0),y.body&&l.write(y.body),l.end()}))}const h=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((t=>t.toLowerCase()))),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((t=>t.toLowerCase())));async function p(t,e){let r={...s,...e};const n=new Headers;"json"===r.type&&n.set("Content-Type","application/json");let i=new URL(t);if(i.username){const t=btoa(`${i.username}:${i.password}`);n.set("Authorization",`Basic ${t}`),i.username="",i.password=""}t=""+i;for(let t in r.headers){const e=t.toLowerCase();(h.has(e)||r.cors&&!d.has(e))&&n.set(t,r.headers[t])}let o={headers:n,redirect:r.redirect?"follow":"manual"};r.referrer||(o.referrerPolicy="no-referrer"),r.cors&&(o.mode="cors"),r.data&&(r.method||(o.method="POST"),o.body="json"===r.type?JSON.stringify(r.data):r.data);const l=await fetch(t,o);if(r.expectStatusCode&&l.status!==r.expectStatusCode)throw new a(l.status);const u=c(new Uint8Array(await l.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(l.headers.entries()),status:l.status,body:u}:u}const f=!!("object"==typeof i&&i.versions&&i.versions.node&&i.versions.v8);e.default=function(t,e){return(f?u:p)(t,e)}},57824:t=>{var e=1e3,r=60*e,n=60*r,i=24*n;function s(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,o){o=o||{};var a,c,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(s){var o=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(t);if("number"===l&&isFinite(t))return o.long?(a=t,(c=Math.abs(a))>=i?s(a,c,i,"day"):c>=n?s(a,c,n,"hour"):c>=r?s(a,c,r,"minute"):c>=e?s(a,c,e,"second"):a+" ms"):function(t){var s=Math.abs(t);return s>=i?Math.round(t/i)+"d":s>=n?Math.round(t/n)+"h":s>=r?Math.round(t/r)+"m":s>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},45033:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=r(48764).Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],p=h[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);r=(f=f.idivn(p)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function f(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):f(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return g[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},83206:(t,e,r)=>{var n=r(45033),i=r(49604);t.exports=function(t){if("string"==typeof t||"number"==typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),s="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),o=i(r);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),e=new n(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new n(o,16).mul(e);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new n(o,10).mul(e)}else if("object"==typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},70631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,w=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,x=RegExp.prototype.test,_=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,S=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||x.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-S(-t):S(t);if(n!==t){var i=String(n),s=w.call(e,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var B=r(24654),j=B.custom,L=z(j)?j:null;function U(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function D(t){return b.call(String(t),/"/g,""")}function $(t){return!("[object Array]"!==q(t)||O&&"object"==typeof t&&O in t)}function F(t){return!("[object RegExp]"!==q(t)||O&&"object"==typeof t&&O in t)}function z(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,i,a){var c=n||{};if(W(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var x=String(e);return v?R(e,x):x}if("bigint"==typeof e){var S=String(e)+"n";return v?R(e,S):S}var M=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=M&&M>0&&"object"==typeof e)return $(e)?"[Array]":"[Object]";var j,H=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(c,i);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function K(e,r,n){if(r&&(a=k.call(a)).push(r),n){var s={depth:c.depth};return W(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,i+1,a)}return t(e,c,i+1,a)}if("function"==typeof e&&!F(e)){var tt=function(t){if(t.name)return t.name;var e=y.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=X(e,K);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+A.call(et,", ")+" }":"")}if(z(e)){var rt=P?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||P?rt:Z(rt)}if((j=e)&&"object"==typeof j&&("undefined"!=typeof HTMLElement&&j instanceof HTMLElement||"string"==typeof j.nodeName&&"function"==typeof j.getAttribute)){for(var nt="<"+E.call(String(e.nodeName)),it=e.attributes||[],st=0;st"}if($(e)){if(0===e.length)return"[]";var ot=X(e,K);return H&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+Y(ot,H)+"]":"[ "+A.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==q(t)||O&&"object"==typeof t&&O in t)}(e)){var at=X(e,K);return"cause"in Error.prototype||!("cause"in e)||T.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(at,", ")+" }":"{ ["+String(e)+"] "+A.call(_.call("[cause]: "+K(e.cause),at),", ")+" }"}if("object"==typeof e&&m){if(L&&"function"==typeof e[L]&&B)return B(e,{depth:M-i});if("symbol"!==m&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return o&&o.call(e,(function(t,r){ct.push(K(r,e,!0)+" => "+K(t,e))})),Q("Map",s.call(e),ct,H)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var lt=[];return u&&u.call(e,(function(t){lt.push(K(t,e))})),Q("Set",l.call(e),lt,H)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return J("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return J("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(e))return J("WeakRef");if(function(t){return!("[object Number]"!==q(t)||O&&"object"==typeof t&&O in t)}(e))return Z(K(Number(e)));if(function(t){if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}(e))return Z(K(C.call(e)));if(function(t){return!("[object Boolean]"!==q(t)||O&&"object"==typeof t&&O in t)}(e))return Z(f.call(e));if(function(t){return!("[object String]"!==q(t)||O&&"object"==typeof t&&O in t)}(e))return Z(K(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==q(t)||O&&"object"==typeof t&&O in t)}(e)&&!F(e)){var ut=X(e,K),ht=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",pt=!ht&&O&&Object(e)===e&&O in e?w.call(q(e),8,-1):dt?"Object":"",ft=(ht||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||dt?"["+A.call(_.call([],pt||[],dt||[]),": ")+"] ":"");return 0===ut.length?ft+"{}":H?ft+"{"+Y(ut,H)+"}":ft+"{ "+A.call(ut,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return H.call(t,e)}function q(t){return m.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(w.call(t,0,e.maxStringLength),e)+n}return U(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function Z(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function Q(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):A.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=$(t),n=[];if(r){n.length=t.length;for(var i=0;i{"use strict";const e=(t,e)=>function(){const r=e.promiseModule,n=new Array(arguments.length);for(let t=0;t{e.errorFirst?n.push((function(t,n){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=t=>{const e=e=>"string"==typeof e?t===e:e.test(t);return r.include?r.include.some(e):!r.exclude.some(e)};let i;i="function"==typeof t?function(){return r.excludeMain?t.apply(this,arguments):e(t,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const s in t){const o=t[s];i[s]="function"==typeof o&&n(s)?e(o,r):o}return i}},6400:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>x,Fragment:()=>E,cloneElement:()=>W,createContext:()=>q,createElement:()=>w,createRef:()=>v,h:()=>w,hydrate:()=>H,isValidElement:()=>o,options:()=>i,render:()=>z,toChildArray:()=>P});var n,i,s,o,a,c,l,u,h,d={},p=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(t,e){for(var r in e)t[r]=e[r];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,r){var i,s,o,a={};for(o in e)"key"==o?i=e[o]:"ref"==o?s=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return b(t,a,i,s,null)}function b(t,e,r,n,o){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=i.vnode&&i.vnode(a),a}function v(){return{current:null}}function E(t){return t.children}function x(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__i+1):null;for(var r;ee&&a.sort(u));S.__r=0}function C(t,e,r,n,i,s,o,a,c,l,u){var h,f,m,g,y,w=n&&n.__k||p,b=e.length;for(r.__d=c,M(r,e,w),c=r.__d,h=0;h0?b(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=t,i.__b=t.__b+1,a=O(i,r,o=n+h,u),i.__i=a,s=null,-1!==a&&(u--,(s=r[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&h--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a===o+1?h++:a>o?u>c-o?h+=a-o:h--:h=a(null!=c&&0==(131072&c.__u)?1:0))for(;o>=0||a=0){if((c=e[o])&&0==(131072&c.__u)&&i==c.key&&s===c.type)return o;o--}if(a2&&(c.children=arguments.length>3?n.call(arguments,2):r),b(t.type,c,i||t.key,s||t.ref,null)}function q(t,e){var r={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some((function(t){t.__e=!0,k(t)}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}n=p.slice,i={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(e){t=e}throw t}},s=0,o=function(t){return null!=t&&null==t.constructor},x.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},r),this.props)),t&&g(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),k(this))},x.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),k(this))},x.prototype.render=E,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(t,e){return t.__v.__b-e.__v.__b},S.__r=0,h=0},30396:(t,e,r)=>{"use strict";r.r(e),r.d(e,{useCallback:()=>A,useContext:()=>k,useDebugValue:()=>S,useEffect:()=>b,useErrorBoundary:()=>C,useId:()=>M,useImperativeHandle:()=>x,useLayoutEffect:()=>v,useMemo:()=>_,useReducer:()=>w,useRef:()=>E,useState:()=>y});var n,i,s,o,a=r(6400),c=0,l=[],u=[],h=a.options.__b,d=a.options.__r,p=a.options.diffed,f=a.options.__c,m=a.options.unmount;function g(t,e){a.options.__h&&a.options.__h(i,t,c||e),c=0;var r=i.__H||(i.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:u}),r.__[t]}function y(t){return c=1,w(B,t)}function w(t,e,r){var s=g(n++,2);if(s.t=t,!s.__c&&(s.__=[r?r(e):B(void 0,e),function(t){var e=s.__N?s.__N[0]:s.__[0],r=s.t(e,t);e!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(t,e,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!a||a.call(this,t,e,r);var i=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&s.__c.props===t)&&(!a||a.call(this,t,e,r))};i.u=!0;var a=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(t,e,r){if(this.__e){var n=a;a=void 0,o(t,e,r),a=n}c&&c.call(this,t,e,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function b(t,e){var r=g(n++,3);!a.options.__s&&R(r.__H,e)&&(r.__=t,r.i=e,i.__H.__h.push(r))}function v(t,e){var r=g(n++,4);!a.options.__s&&R(r.__H,e)&&(r.__=t,r.i=e,i.__h.push(r))}function E(t){return c=5,_((function(){return{current:t}}),[])}function x(t,e,r){c=6,v((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==r?r:r.concat(t))}function _(t,e){var r=g(n++,7);return R(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function A(t,e){return c=8,_((function(){return t}),e)}function k(t){var e=i.context[t.__c],r=g(n++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(i)),e.props.value):t.__}function S(t,e){a.options.useDebugValue&&a.options.useDebugValue(e?e(t):t)}function C(t){var e=g(n++,10),r=y();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,n){e.__&&e.__(t,n),r[1](t)}),[r[0],function(){r[1](void 0)}]}function M(){var t=g(n++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function I(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(T),t.__H.__h.forEach(N),t.__H.__h=[]}catch(e){t.__H.__h=[],a.options.__e(e,t.__v)}}a.options.__b=function(t){i=null,h&&h(t)},a.options.__r=function(t){d&&d(t),n=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(T),e.__h.forEach(N),e.__h=[],n=0)),s=i},a.options.diffed=function(t){p&&p(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||O)(I)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),s=i=null},a.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(T),t.__h=t.__h.filter((function(t){return!t.__||N(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.options.__e(r,t.__v)}})),f&&f(t,e)},a.options.unmount=function(t){m&&m(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{T(t)}catch(t){e=t}})),r.__H=void 0,e&&a.options.__e(e,r.__v))};var P="function"==typeof requestAnimationFrame;function O(t){var e,r=function(){clearTimeout(n),P&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);P&&(e=requestAnimationFrame(r))}function T(t){var e=i,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),i=e}function N(t){var e=i;t.__c=t.__(),i=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function B(t,e){return"function"==typeof e?e(t):e}},34155:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&d())}function d(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function m(t){throw new RangeError(d[t])}function g(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+g((t=t.replace(h,".")).split("."),e).join(".")}function w(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i65535&&(e+=f((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+f(t)})).join("")}function v(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=c)t=p(t/35);return p(n+36*t/(t+38))}function x(t){var e,r,n,i,s,o,l,u,h,d,f,g=[],y=t.length,w=0,v=128,x=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),g.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((u=(f=t.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c)>=c||u>p((a-w)/o))&&m("overflow"),w+=u*o,!(u<(h=l<=x?1:l>=x+26?26:l-x));l+=c)o>p(a/(d=c-h))&&m("overflow"),o*=d;x=E(w-s,e=g.length+1,0==s),p(w/e)>a-v&&m("overflow"),v+=p(w/e),w%=e,g.splice(w++,0,v)}return b(g)}function _(t){var e,r,n,i,s,o,l,u,h,d,g,y,b,x,_,A=[];for(y=(t=w(t)).length,e=128,r=0,s=72,o=0;o=e&&gp((a-r)/(b=n+1))&&m("overflow"),r+=(l-e)*b,e=l,o=0;oa&&m("overflow"),g==e){for(u=r,h=c;!(u<(d=h<=s?1:h>=s+26?26:h-s));h+=c)_=u-d,x=c-d,A.push(f(v(d+_%x,0))),u=p(_/x);A.push(f(v(u,0))),s=E(r,b,n==i),r=0,++n}++r,++e}return A.join("")}o={version:"1.4.1",ucs2:{decode:w,encode:b},decode:x,encode:_,toASCII:function(t){return y(t,(function(t){return u.test(t)?"xn--"+_(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?x(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},92592:(t,e,r)=>{const n=r(47138),i=r(95115),s=r(6907),o=r(93776);function a(t,e,r,s,o){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=e,e=s=void 0):2!==c||e.getContext||(s=r,r=e,e=void 0),new Promise((function(n,o){try{const o=i.create(r,s);n(t(o,e,s))}catch(t){o(t)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=r,r=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=e,e=void 0));try{const n=i.create(r,s);o(null,t(n,e,s))}catch(t){o(t)}}e.create=i.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,r){return o.render(t,r)}))},47138:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:(t,e,r)=>{const n=r(10242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),i=145===r?26:2*Math.ceil((r-13)/(2*e-2)),s=[r-7];for(let t=1;t{const n=r(76910),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*i.indexOf(this.data[e]);r+=i.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[e]),6)},t.exports=s},97245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},73280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,n){const i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},43424:(t,e,r)=>{const n=r(62378),i=r(76910);function s(t){this.mode=i.BYTE,"string"==typeof t&&(t=n(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,r=this.data.length;e{const n=r(64908),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},64908:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},76526:(t,e,r)=>{const n=r(10242).getSymbolSize;e.getPositions=function(t){const e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},61642:(t,e,r)=>{const n=r(10242),i=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){const r=t.bit<<3|e;let s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)r[e]=t,n[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return n[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[n[t]+n[e]]}},35442:(t,e,r)=>{const n=r(76910),i=r(10242);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=s},27126:(t,e)=>{function r(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let r=0,n=0,i=0,s=null,o=null;for(let a=0;a=5&&(r+=n-5+3),s=e,n=1),e=t.get(c,a),e===o?i++:(i>=5&&(r+=i-5+3),o=e,i=1)}n>=5&&(r+=n-5+3),i>=5&&(r+=i-5+3)}return r},e.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(o,s),o>=10&&(1488===i||93===i)&&r++}return 40*r},e.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let n=0;n{const n=r(43114),i=r(7007);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}},41085:(t,e,r)=>{const n=r(76910);function i(t){this.mode=n.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);const i=this.data.length-e;i>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*i+1))},t.exports=i},26143:(t,e,r)=>{const n=r(69729);e.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){const t=r[0];for(let i=0;i{const n=r(10242),i=r(64908),s=r(97245),o=r(73280),a=r(21845),c=r(76526),l=r(27126),u=r(35393),h=r(52882),d=r(23103),p=r(61642),f=r(76910),m=r(16130);function g(t,e,r){const n=t.size,i=p.getEncodedBits(e,r);let s,o;for(s=0;s<15;s++)o=1==(i>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function y(t,e,r,i){let p;if(Array.isArray(t))p=m.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=e;if(!n){const e=m.rawSplit(t);n=d.getBestVersionForData(e,r)}p=m.fromString(t,n||40)}}const y=d.getBestVersionForData(p,r);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===e||6===e)||e>=2&&e<=4&&n>=2&&n<=4?t.set(i+e,s+n,!0,!0):t.set(i+e,s+n,!1,!0))}}(v,e),function(t){const e=t.size;for(let r=8;r=7&&function(t,e){const r=t.size,n=d.getEncodedBits(e);let i,s,o;for(let e=0;e<18;e++)i=Math.floor(e/3),s=e%3+r-8-3,o=1==(n>>e&1),t.set(i,s,o,!0),t.set(s,i,o,!0)}(v,e),function(t,e){const r=t.size;let n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!t.isReserved(i,a-r)){let n=!1;o>>s&1)),t.set(i,a-r,n),s--,-1===s&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(v,w),isNaN(i)&&(i=l.getBestMask(v,g.bind(null,v,r))),l.applyMask(i,v),g(v,r,i),{modules:v,version:e,errorCorrectionLevel:r,maskPattern:i,segments:p}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,s,o=i.M;return void 0!==e&&(o=i.from(e.errorCorrectionLevel,i.M),r=d.from(e.version),s=l.from(e.maskPattern),e.toSJISFunc&&n.setToSJISFunction(e.toSJISFunc)),y(t,r,o,s)}},52882:(t,e,r)=>{const n=r(26143);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=n.mod(e,this.genPoly),i=this.degree-r.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(r,i),t}return r},t.exports=i},7007:(t,e)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const s=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return s.test(t)},e.testNumeric=function(t){return o.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},16130:(t,e,r)=>{const n=r(76910),i=r(41085),s=r(8260),o=r(43424),a=r(35442),c=r(7007),l=r(10242),u=r(65987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const n=[];let i;for(;null!==(i=t.exec(r));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function p(t){const e=d(c.NUMERIC,n.NUMERIC,t),r=d(c.ALPHANUMERIC,n.ALPHANUMERIC,t);let i,s;return l.isKanjiModeEnabled()?(i=d(c.BYTE,n.BYTE,t),s=d(c.KANJI,n.KANJI,t)):(i=d(c.BYTE_KANJI,n.BYTE,t),s=[]),e.concat(r,i,s).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case n.NUMERIC:return i.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){let r;const c=n.getBestModeForData(t);if(r=n.from(e,c),r!==n.BYTE&&r.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(p(t,l.isKanjiModeEnabled()))}},10242:(t,e)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},43114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},23103:(t,e,r)=>{const n=r(10242),i=r(35393),s=r(64908),o=r(76910),a=r(43114),c=n.getBCHDigit(7973);function l(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let r=0;return t.forEach((function(t){const n=l(t.mode,e);r+=n+t.getBitsLength()})),r}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const s=8*(n.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e));if(r===o.MIXED)return s;const c=s-l(r,t);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,r){let n;const i=s.from(r,s.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,r,o.MIXED))return n}(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(let i=1;i<=40;i++)if(r<=e.getCapacity(i,n,t))return i}(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-c>=0;)e^=7973<{const n=r(89653);e.render=function(t,e,r){let i=r,s=e;void 0!==i||e&&e.getContext||(i=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const o=n.getImageWidth(t.modules.size,i),a=s.getContext("2d"),c=a.createImageData(o,o);return n.qrToImageData(c.data,t,i),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});const s=e.render(t,r,i),o=i.type||"image/png",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},93776:(t,e,r)=>{const n=r(89653);function i(t,e){const r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function s(t,e,r){let n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){const o=n.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,u=o.color.light.a?"':"",h="0&&l>0&&t[c-1]||(n+=o?s("M",l+r,.5+u+r):s("m",i,0),i=0,o=!1),l+1',d='viewBox="0 0 '+l+" "+l+'"',p=''+u+h+"\n";return"function"==typeof r&&r(null,p),p}},89653:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){const n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){const i=r.modules.size,s=r.modules.data,o=e.getScale(i,n),a=Math.floor((i+2*n.margin)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let e=0;e=c&&r>=c&&e{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},80129:(t,e,r)=>{"use strict";var n=r(58261),i=r(55235),s=r(55798);t.exports={formats:s,parse:i,stringify:n}},55235:(t,e,r)=>{"use strict";var n=r(12769),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,r,n){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),l=a?s.slice(0,a.index):s,u=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var h=0;r.depth>0&&null!==(a=o.exec(s))&&h=0;--s){var o,a=t[s];if("[]"===a&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=i:"__proto__"!==l&&(o[l]=i):o={0:i}}i=o}return i}(u,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset;return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var r,l={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=u.split(e.delimiter,h),p=-1,f=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(g=s(g)?[g]:g),i.call(l,m)?l[m]=n.combine(l[m],g):l[m]=g}return l}(t,r):t,h=r.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p{"use strict";var n=r(37478),i=r(12769),s=r(55798),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,l=Array.prototype.push,u=function(t,e){l.apply(t,c(e)?e:[e])},h=Date.prototype.toISOString,d=s.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},f={},m=function t(e,r,s,o,a,l,h,d,m,g,y,w,b,v,E,x){for(var _,A=e,k=x,S=0,C=!1;void 0!==(k=k.get(f))&&!C;){var M=k.get(e);if(S+=1,void 0!==M){if(M===S)throw new RangeError("Cyclic object value");C=!0}void 0===k.get(f)&&(S=0)}if("function"==typeof d?A=d(r,A):A instanceof Date?A=y(A):"comma"===s&&c(A)&&(A=i.maybeMap(A,(function(t){return t instanceof Date?y(t):t}))),null===A){if(a)return h&&!v?h(r,p.encoder,E,"key",w):r;A=""}if("string"==typeof(_=A)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||i.isBuffer(A))return h?[b(v?r:h(r,p.encoder,E,"key",w))+"="+b(h(A,p.encoder,E,"value",w))]:[b(r)+"="+b(String(A))];var I,P=[];if(void 0===A)return P;if("comma"===s&&c(A))v&&h&&(A=i.maybeMap(A,h)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(d))I=d;else{var O=Object.keys(A);I=m?O.sort(m):O}for(var T=o&&c(A)&&1===A.length?r+"[]":r,N=0;N0?E+v:""}},12769:(t,e,r)=>{"use strict";var n=r(55798),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var n=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var r=[],n=0;n{"use strict";function e(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}t.exports=function(t,r,n){var i=n&&n.stringify||e;if("object"==typeof t&&null!==t){var s=r.length+1;if(1===s)return t;var o=new Array(s);o[0]=i(t);for(var a=1;a-1?h:0,t.charCodeAt(p+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;h=c)break;if(null==r[u])break;h=c)break;if(void 0===r[u])break;h",h=p+2,p++;break}l+=i(r[u]),h=p+2,p++;break;case 115:if(u>=c)break;h{"use strict";var n=r(34155),i=65536,s=r(89509).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,s,o,a;if("string"==typeof e&&"not "===e.substr(0,4)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length)," argument"===t.substring(r-9,r)}(t))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var c=("number"!=typeof a&&(a=0),a+1>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");s='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},56753:(t,e,r)=>{"use strict";var n=r(34155),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=u;var s=r(79481),o=r(64229);r(35717)(u,s);for(var a=i(o.prototype),c=0;c{"use strict";t.exports=i;var n=r(74605);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(35717)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},79481:(t,e,r)=>{"use strict";var n,i=r(34155);t.exports=k,k.ReadableState=A,r(17187).EventEmitter;var s,o=function(t,e){return t.listeners(e).length},a=r(22503),c=r(48764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(94616);s=u&&u.debuglog?u.debuglog("stream"):function(){};var h,d,p,f=r(57327),m=r(61195),g=r(82457).getHighWaterMark,y=r(94281).q,w=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,E=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(35717)(k,a);var x=m.errorOrDestroy,_=["error","close","destroy","pause","resume"];function A(t,e,i){n=n||r(56753),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(32553).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function k(t){if(n=n||r(56753),!(this instanceof k))return new k(t);var e=this instanceof n;this._readableState=new A(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function S(t,e,r,n,i){s("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(s("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?P(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,O(t)))}}(t,a);else if(i||(o=function(t,e){var r,n;return n=e,c.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],e)),r}(a,e)),o)x(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n)a.endEmitted?x(t,new E):C(t,a,e,!0);else if(a.ended)x(t,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?C(t,a,e,!1):T(t,a)):C(t,a,e,!1)}else n||(a.reading=!1,T(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=M?t=M:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(O,t))}function O(t){var e=t._readableState;s("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,L(t)}function T(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(N,t,e))}function N(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function B(t){s("readable nexttick read 0"),t.read(0)}function j(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),L(t),e.flowing&&!e.reading&&t.read(0)}function L(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function U(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function D(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick($,e,t))}function $(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function F(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return s("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):P(this),null;if(0===(t=I(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,i=e.needReadable;return s("need readable",i),(0===e.length||e.length-t0?U(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(t){x(this,new v("_read()"))},k.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,e);var a=e&&!1===e.end||t===i.stdout||t===i.stderr?m:c;function c(){s("onend"),t.end()}n.endEmitted?i.nextTick(a):r.once("end",a),t.on("unpipe",(function e(i,o){s("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",p),t.removeListener("finish",f),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",e),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,L(t))}}(r);t.on("drain",l);var u=!1;function h(e){s("ondata");var i=t.write(e);s("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==F(n.pipes,t))&&!u&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(e){s("onerror",e),m(),t.removeListener("error",d),0===o(t,"error")&&x(t,e)}function p(){t.removeListener("finish",f),m()}function f(){s("onfinish"),t.removeListener("close",p),m()}function m(){s("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",p),t.once("finish",f),t.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?P(this):n.reading||i.nextTick(B,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(R,this),r},k.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(R,this),e},k.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(j,t,e))}(this,t)),t.paused=!1,this},k.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<_.length;o++)t.on(_[o],this.emit.bind(this,_[o]));return this._read=function(e){s("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(45850)),d(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=U,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,e){return void 0===p&&(p=r(15167)),p(k,t,e)})},74605:(t,e,r)=>{"use strict";t.exports=u;var n=r(94281).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(56753);function l(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n,i=r(34155);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=k,k.WritableState=A;var o,a={deprecate:r(94927)},c=r(22503),l=r(48764).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=r(61195),d=r(82457).getHighWaterMark,p=r(94281).q,f=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,w=p.ERR_STREAM_DESTROYED,b=p.ERR_STREAM_NULL_VALUES,v=p.ERR_STREAM_WRITE_AFTER_END,E=p.ERR_UNKNOWN_ENCODING,x=h.errorOrDestroy;function _(){}function A(t,e,o){n=n||r(56753),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(O,t,e),t._writableState.errorEmitted=!0,x(t,n)):(s(n),t._writableState.errorEmitted=!0,x(t,n),O(t,e))}(t,r,n,e,s);else{var o=I(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||M(t,r),n?i.nextTick(C,t,r,o,s):C(t,r,o,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function k(t){var e=this instanceof(n=n||r(56753));if(!e&&!o.call(k,this))return new k(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function S(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new w("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function C(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),O(t,e)}function M(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,S(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,h=r.callback;if(S(t,e,!1,e.objectMode?1:l.length,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function I(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final((function(r){e.pendingcb--,r&&x(t,r),e.prefinished=!0,t.emit("prefinish"),O(t,e)}))}function O(t,e){var r=I(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(35717)(k,c),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===k&&t&&t._writableState instanceof A}})):o=function(t){return t instanceof this},k.prototype.pipe=function(){x(this,new y)},k.prototype.write=function(t,e,r){var n,s=this._writableState,o=!1,a=!s.objectMode&&(n=t,l.isBuffer(n)||n instanceof u);return a&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=_),s.ending?function(t,e){var r=new v;x(t,r),i.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var s;return null===r?s=new b:"string"==typeof r||e.objectMode||(s=new f("chunk",["string","Buffer"],r)),!s||(x(t,s),i.nextTick(n,s),!1)}(this,s,t,r))&&(s.pendingcb++,o=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r)),e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length-1))throw new E(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(t,e,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,O(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(t,e){e(t)}},45850:(t,e,r)=>{"use strict";var n,i=r(34155);function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(8610),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),p=Symbol("stream");function f(t,e){return{value:t,done:e}}function m(t){var e=t[a];if(null!==e){var r=t[p].read();null!==r&&(t[h]=null,t[a]=null,t[c]=null,e(f(r,!1)))}}function g(t){i.nextTick(m,t)}var y=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((s(n={get stream(){return this[p]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(f(void 0,!0));if(this[p].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[l]?r(t[l]):e(f(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[u]?r(f(void 0,!0)):e[d](r,n)}),n)}}(n,this));else{var s=this[p].read();if(null!==s)return Promise.resolve(f(s,!1));r=new Promise(this[d])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var t=this;return new Promise((function(e,r){t[p].destroy(null,(function(t){t?r(t):e(f(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(w,(s(e={},p,{value:t,writable:!0}),s(e,a,{value:null,writable:!0}),s(e,c,{value:null,writable:!0}),s(e,l,{value:null,writable:!0}),s(e,u,{value:t._readableState.endEmitted,writable:!0}),s(e,d,{value:function(t,e){var n=r[p].read();n?(r[h]=null,r[a]=null,r[c]=null,t(f(n,!1))):(r[a]=t,r[c]=e)},writable:!0}),e));return r[h]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[c];return null!==e&&(r[h]=null,r[a]=null,r[c]=null,e(t)),void(r[l]=t)}var n=r[a];null!==n&&(r[h]=null,r[a]=null,r[c]=null,n(f(void 0,!0))),r[u]=!0})),t.on("readable",g.bind(null,r)),r}},57327:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),s=this.head,o=0;s;)e=s.data,r=i,n=o,a.prototype.copy.call(e,r,n),o+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return c(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&function(t,e){for(var r=0;r{"use strict";var n=r(34155);function i(t,e){o(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,t)):n.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(s,r),e(t)):n.nextTick(s,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},8610:(t,e,r)=>{"use strict";var n=r(94281).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},59946:(t,e,r)=>{"use strict";var n,i=r(94281).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function c(t){t()}function l(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i0,(function(t){u||(u=t),t&&d.forEach(c),s||(d.forEach(c),h(u))}))}));return e.reduce(l)}},82457:(t,e,r)=>{"use strict";var n=r(94281).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},22503:(t,e,r)=>{t.exports=r(17187).EventEmitter},88473:(t,e,r)=>{(e=t.exports=r(79481)).Stream=e,e.Readable=e,e.Writable=r(64229),e.Duplex=r(56753),e.Transform=r(74605),e.PassThrough=r(82725),e.finished=r(8610),e.pipeline=r(59946)},34143:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>P.W,AsyncSubject:()=>u.c,BehaviorSubject:()=>c.X,ConnectableObservable:()=>i.c,EMPTY:()=>Z.E,EmptyError:()=>O.K,GroupedObservable:()=>s.T,NEVER:()=>ht,Notification:()=>k.P,NotificationKind:()=>k.W,ObjectUnsubscribedError:()=>T.N,Observable:()=>n.y,ReplaySubject:()=>l.t,Scheduler:()=>x.b,Subject:()=>a.xQ,Subscriber:()=>A.L,Subscription:()=>_.w,TimeoutError:()=>R.W,UnsubscriptionError:()=>N.B,VirtualAction:()=>E,VirtualTimeScheduler:()=>v,animationFrame:()=>b,animationFrameScheduler:()=>w,asap:()=>h.e,asapScheduler:()=>h.E,async:()=>d.P,asyncScheduler:()=>d.z,bindCallback:()=>D,bindNodeCallback:()=>z,combineLatest:()=>V.aj,concat:()=>G.z,config:()=>It.v,defer:()=>K.P,empty:()=>Z.c,forkJoin:()=>Y,from:()=>Q.D,fromEvent:()=>et,fromEventPattern:()=>nt,generate:()=>it,identity:()=>M.y,iif:()=>ot,interval:()=>ct,isObservable:()=>I,merge:()=>ut.T,never:()=>dt,noop:()=>C.Z,observable:()=>o.L,of:()=>pt.of,onErrorResumeNext:()=>ft,pairs:()=>mt,partition:()=>vt,pipe:()=>S.z,queue:()=>p.c,queueScheduler:()=>p.N,race:()=>Et.S3,range:()=>xt,scheduled:()=>Mt.x,throwError:()=>At._,timer:()=>kt.H,using:()=>St,zip:()=>Ct.$R});var n=r(92772),i=r(33140),s=r(11120),o=r(15050),a=r(70211),c=r(89233),l=r(12630),u=r(60364),h=r(6650),d=r(90964),p=r(92546),f=r(70655),m=r(96114),g=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return f.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(m.o),y=r(78399),w=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++ne.index?1:-1:t.delay>e.delay?1:-1},e}(m.o),x=r(38725),_=r(98760),A=r(10979),k=r(42632),S=r(62561),C=r(33306),M=r(43608);function I(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var P=r(76565),O=r(26929),T=r(41016),N=r(28782),R=r(81462),B=r(55709),j=r(93642),L=r(59026),U=r(17507);function D(t,e,r){if(e){if(!(0,U.K)(e))return function(){for(var n=[],i=0;i1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function rt(t,e,r,n,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var o=t;t.addEventListener(e,r,i),s=function(){return o.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var a=t;t.on(e,r),s=function(){return a.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),s=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,u=t.length;l=e){n.complete();break}if(n.next(s++),n.closed)break}}))}function _t(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}var At=r(64944),kt=r(69604);function St(t,e){return new n.y((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var s=(i?(0,Q.D)(i):Z.E).subscribe(r);return function(){s.unsubscribe(),n&&n.unsubscribe()}}))}var Ct=r(25080),Mt=r(38107),It=r(30150)},60364:(t,e,r)=>{"use strict";r.d(e,{c:()=>o});var n=r(70655),i=r(70211),s=r(98760),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return n.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),s.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),s.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},89233:(t,e,r)=>{"use strict";r.d(e,{X:()=>o});var n=r(70655),i=r(70211),s=r(41016),o=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return n.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},42632:(t,e,r)=>{"use strict";r.d(e,{P:()=>a,W:()=>n});var n,i=r(5631),s=r(18170),o=r(64944);n||(n={});var a=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},92772:(t,e,r)=>{"use strict";r.d(e,{y:()=>u});var n=r(93642),i=r(10979),s=r(23142),o=r(32174),a=r(15050),c=r(62561),l=r(30150),u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,a=function(t,e,r){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||r?new i.L(t,e,r):new i.L(o.c)}(t,e,r);if(n?a.add(n.call(a,this.source)):a.add(this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,n._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";r.d(e,{c:()=>s});var n=r(30150),i=r(71644),s={closed:!0,next:function(t){},error:function(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},62039:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(70655),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(10979).L)},12630:(t,e,r)=>{"use strict";r.d(e,{t:()=>u});var n=r(70655),i=r(70211),s=r(92546),o=r(98760),a=r(89276),c=r(41016),l=r(18253),u=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;if(this.closed)throw new c.N;if(this.isStopped||this.hasError?e=o.w.EMPTY:(this.observers.push(t),e=new l.W(this,t)),i&&t.add(t=new a.ht(t,i)),r)for(var u=0;ue&&(s=Math.max(s,i-e)),s>0&&n.splice(0,s),n},e}(i.xQ),h=function(t,e){this.time=t,this.value=e}},38725:(t,e,r)=>{"use strict";r.d(e,{b:()=>n});var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}()},70211:(t,e,r)=>{"use strict";r.d(e,{Yc:()=>u,xQ:()=>h});var n=r(70655),i=r(92772),s=r(10979),o=r(98760),a=r(41016),c=r(18253),l=r(23142),u=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return n.__extends(e,t),e}(s.L),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return n.__extends(e,t),e.prototype[l.b]=function(){return new u(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.N;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i{"use strict";r.d(e,{W:()=>i});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return n.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(r(98760).w)},10979:(t,e,r)=>{"use strict";r.d(e,{L:()=>u});var n=r(70655),i=r(14156),s=r(32174),o=r(98760),a=r(23142),c=r(30150),l=r(71644),u=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.c;break;case 1:if(!r){o.destination=s.c;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,r,n,i)}return o}return n.__extends(e,t),e.prototype[a.b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(o.w),h=function(t){function e(e,r,n,o){var a,c=t.call(this)||this;c._parentSubscriber=e;var l=c;return(0,i.m)(r)?a=r:r&&(a=r.next,n=r.error,o=r.complete,r!==s.c&&(l=Object.create(r),(0,i.m)(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=a,c._error=n,c._complete=o,c}return n.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;(0,l.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw t;(0,l.z)(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return c.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,l.z)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},98760:(t,e,r)=>{"use strict";r.d(e,{w:()=>a});var n=r(59026),i=r(92009),s=r(14156),o=r(28782),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,a=r._parentOrParents,l=r._ctorUnsubscribe,u=r._unsubscribe,h=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var d=0;d{"use strict";r.d(e,{v:()=>i});var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},17604:(t,e,r)=>{"use strict";r.d(e,{Ds:()=>c,IY:()=>a,ft:()=>l});var n=r(70655),i=r(10979),s=r(92772),o=r(67843),a=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.L),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.L);function l(t,e){if(!e.closed){if(t instanceof s.y)return t.subscribe(e);var r;try{r=(0,o.s)(t)(e)}catch(t){e.error(t)}return r}}},33140:(t,e,r)=>{"use strict";r.d(e,{N:()=>l,c:()=>c});var n=r(70655),i=r(70211),s=r(92772),o=r(98760),a=r(3018),c=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return n.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new o.w).add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t},e.prototype.refCount=function(){return(0,a.x)()(this)},e}(s.y),l=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),u=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.Yc)},75142:(t,e,r)=>{"use strict";r.d(e,{Ms:()=>h,aj:()=>u});var n=r(70655),i=r(17507),s=r(59026),o=r(62039),a=r(52080),c=r(43375),l={};function u(){for(var t=[],e=0;e{"use strict";r.d(e,{z:()=>s});var n=r(18170),i=r(52257);function s(){for(var t=[],e=0;e{"use strict";r.d(e,{P:()=>o});var n=r(92772),i=r(55760),s=r(5631);function o(t){return new n.y((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?(0,i.D)(r):(0,s.c)()).subscribe(e)}))}},5631:(t,e,r)=>{"use strict";r.d(e,{E:()=>i,c:()=>s});var n=r(92772),i=new n.y((function(t){return t.complete()}));function s(t){return t?function(t){return new n.y((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},55760:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(92772),i=r(67843),s=r(38107);function o(t,e){return e?(0,s.x)(t,e):t instanceof n.y?t:new n.y((0,i.s)(t))}},43375:(t,e,r)=>{"use strict";r.d(e,{n:()=>o});var n=r(92772),i=r(56900),s=r(53109);function o(t,e){return e?(0,s.r)(t,e):new n.y((0,i.V)(t))}},14370:(t,e,r)=>{"use strict";r.d(e,{T:()=>a});var n=r(92772),i=r(17507),s=r(22556),o=r(43375);function a(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof c&&(r=t.pop()),null===a&&1===t.length&&t[0]instanceof n.y?t[0]:(0,s.J)(r)((0,o.n)(t,a))}},18170:(t,e,r)=>{"use strict";r.d(e,{of:()=>o});var n=r(17507),i=r(43375),s=r(53109);function o(){for(var t=[],e=0;e{"use strict";r.d(e,{S3:()=>c});var n=r(70655),i=r(59026),s=r(43375),o=r(62039),a=r(52080);function c(){for(var t=[],e=0;e{"use strict";r.d(e,{_:()=>i});var n=r(92772);function i(t,e){return e?new n.y((function(r){return e.schedule(s,0,{error:t,subscriber:r})})):new n.y((function(e){return e.error(t)}))}function s(t){var e=t.error;t.subscriber.error(e)}},69604:(t,e,r)=>{"use strict";r.d(e,{H:()=>a});var n=r(92772),i=r(90964),s=r(35812),o=r(17507);function a(t,e,r){void 0===t&&(t=0);var a=-1;return(0,s.k)(e)?a=Number(e)<1?1:Number(e):(0,o.K)(e)&&(r=e),(0,o.K)(r)||(r=i.P),new n.y((function(e){var n=(0,s.k)(t)?t:+t-r.now();return r.schedule(c,n,{index:0,period:a,subscriber:e})}))}function c(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}},25080:(t,e,r)=>{"use strict";r.d(e,{$R:()=>l,mx:()=>u});var n=r(70655),i=r(43375),s=r(59026),o=r(10979),a=r(999),c=r(17604);function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),f=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.__extends(e,t),e.prototype[a.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,c.ft)(this.observable,new c.IY(this))},e}(c.Ds)},52257:(t,e,r)=>{"use strict";r.d(e,{u:()=>i});var n=r(22556);function i(){return(0,n.J)(1)}},66008:(t,e,r)=>{"use strict";r.d(e,{h:()=>s});var n=r(70655),i=r(10979);function s(t,e){return function(r){return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.L)},11120:(t,e,r)=>{"use strict";r.d(e,{T:()=>d,v:()=>c});var n=r(70655),i=r(10979),s=r(98760),o=r(92772),a=r(70211);function c(t,e,r,n){return function(i){return i.lift(new l(t,e,r,n))}}var l=function(){function t(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),u=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.keySelector=r,o.elementSelector=n,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var r=this.groups;r||(r=this.groups=new Map);var n,i=r.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(t){this.error(t)}else n=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.xQ,r.set(e,i);var s=new d(e,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(o.subscribe(new h(e,i,this)))}}i.closed||i.next(n)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,r){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),h=function(t){function e(e,r,n){var i=t.call(this,r)||this;return i.key=e,i.group=r,i.parent=n,i}return n.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),d=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return n.__extends(e,t),e.prototype._subscribe=function(t){var e=new s.w,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new p(r)),e.add(n.subscribe(t)),e},e}(o.y),p=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return n.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.w)},55709:(t,e,r)=>{"use strict";r.d(e,{U:()=>s});var n=r(70655),i=r(10979);function s(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}(),a=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.L)},22556:(t,e,r)=>{"use strict";r.d(e,{J:()=>s});var n=r(47746),i=r(43608);function s(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,n.zg)(i.y,t)}},47746:(t,e,r)=>{"use strict";r.d(e,{VS:()=>u,zg:()=>a});var n=r(70655),i=r(55709),s=r(55760),o=r(17604);function a(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(a((function(r,n){return(0,s.D)(t(r,n)).pipe((0,i.U)((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new c(t,r))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.Ds),u=a},89276:(t,e,r)=>{"use strict";r.d(e,{QV:()=>o,ht:()=>c});var n=r(70655),i=r(10979),s=r(42632);function o(t,e){return void 0===e&&(e=0),function(r){return r.lift(new a(t,e))}}var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return n.__extends(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new l(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()},e}(i.L),l=function(t,e){this.notification=t,this.destination=e}},3018:(t,e,r)=>{"use strict";r.d(e,{x:()=>s});var n=r(70655),i=r(10979);function s(){return function(t){return t.lift(new o(t))}}var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new a(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(i.L)},53109:(t,e,r)=>{"use strict";r.d(e,{r:()=>s});var n=r(92772),i=r(98760);function s(t,e){return new n.y((function(r){var n=new i.w,s=0;return n.add(e.schedule((function(){s!==t.length?(r.next(t[s++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}},38107:(t,e,r)=>{"use strict";r.d(e,{x:()=>u});var n=r(92772),i=r(98760),s=r(15050),o=r(53109),a=r(999),c=r(70336),l=r(39217);function u(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new n.y((function(r){var n=new i.w;return n.add(e.schedule((function(){var i=t[s.L]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if((0,c.t)(t))return function(t,e){return new n.y((function(r){var n=new i.w;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if((0,l.z)(t))return(0,o.r)(t,e);if(function(t){return t&&"function"==typeof t[a.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y((function(r){var n,s=new i.w;return s.add((function(){n&&"function"==typeof n.return&&n.return()})),s.add(e.schedule((function(){n=t[a.hZ](),s.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),s}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},96114:(t,e,r)=>{"use strict";r.d(e,{o:()=>i});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return n.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return n.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(98760).w))},78399:(t,e,r)=>{"use strict";r.d(e,{v:()=>s});var n=r(70655),i=r(38725),s=function(t){function e(r,n){void 0===n&&(n=i.b.now);var s=t.call(this,r,(function(){return e.delegate&&e.delegate!==s?e.delegate.now():n()}))||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return n.__extends(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(i.b)},6650:(t,e,r)=>{"use strict";r.d(e,{e:()=>u,E:()=>l});var n=r(70655),i=1,s=Promise.resolve(),o={};function a(t){return t in o&&(delete o[t],!0)}var c=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(c=e.flush.bind(e,null),l=i++,o[l]=!0,s.then((function(){return a(l)&&c()})),l)));var c,l},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(a(r),e.scheduled=void 0)},e}(r(96114).o),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n{"use strict";r.d(e,{P:()=>s,z:()=>i});var n=r(96114),i=new(r(78399).v)(n.o),s=i},92546:(t,e,r)=>{"use strict";r.d(e,{c:()=>o,N:()=>s});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(r(96114).o),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r(78399).v))(i),o=s},999:(t,e,r)=>{"use strict";r.d(e,{hZ:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},15050:(t,e,r)=>{"use strict";r.d(e,{L:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},23142:(t,e,r)=>{"use strict";r.d(e,{b:()=>n});var n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},76565:(t,e,r)=>{"use strict";r.d(e,{W:()=>n});var n=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},26929:(t,e,r)=>{"use strict";r.d(e,{K:()=>n});var n=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},41016:(t,e,r)=>{"use strict";r.d(e,{N:()=>n});var n=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},81462:(t,e,r)=>{"use strict";r.d(e,{W:()=>n});var n=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},28782:(t,e,r)=>{"use strict";r.d(e,{B:()=>n});var n=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},93642:(t,e,r)=>{"use strict";r.d(e,{_:()=>i});var n=r(10979);function i(t){for(;t;){var e=t,r=e.closed,i=e.destination,s=e.isStopped;if(r||s)return!1;t=i&&i instanceof n.L?i:null}return!0}},71644:(t,e,r)=>{"use strict";function n(t){setTimeout((function(){throw t}),0)}r.d(e,{z:()=>n})},43608:(t,e,r)=>{"use strict";function n(t){return t}r.d(e,{y:()=>n})},59026:(t,e,r)=>{"use strict";r.d(e,{k:()=>n});var n=Array.isArray||function(t){return t&&"number"==typeof t.length}},39217:(t,e,r)=>{"use strict";r.d(e,{z:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},14156:(t,e,r)=>{"use strict";function n(t){return"function"==typeof t}r.d(e,{m:()=>n})},35812:(t,e,r)=>{"use strict";r.d(e,{k:()=>i});var n=r(59026);function i(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},92009:(t,e,r)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,{K:()=>n})},70336:(t,e,r)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.d(e,{t:()=>n})},17507:(t,e,r)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}r.d(e,{K:()=>n})},33306:(t,e,r)=>{"use strict";function n(){}r.d(e,{Z:()=>n})},18463:(t,e,r)=>{"use strict";function n(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}r.d(e,{f:()=>n})},62561:(t,e,r)=>{"use strict";r.d(e,{U:()=>s,z:()=>i});var n=r(43608);function i(){for(var t=[],e=0;e{"use strict";r.d(e,{s:()=>u});var n=r(56900),i=r(71644),s=r(999),o=r(15050),a=r(39217),c=r(70336),l=r(92009),u=function(t){if(t&&"function"==typeof t[o.L])return u=t,function(t){var e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.z),t};if(t&&"function"==typeof t[s.hZ])return e=t,function(t){for(var r=e[s.hZ]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,u,h=(0,l.K)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+h+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},56900:(t,e,r)=>{"use strict";r.d(e,{V:()=>n});var n=function(t){return function(e){for(var r=0,n=t.length;r{"use strict";r.d(e,{D:()=>a});var n=r(70655),i=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r(10979).L),s=r(67843),o=r(92772);function a(t,e,r,n,a){if(void 0===a&&(a=new i(t,r,n)),!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},11717:(t,e,r)=>{"use strict";r.r(e),r.d(e,{audit:()=>s,auditTime:()=>u,buffer:()=>h,bufferCount:()=>m,bufferTime:()=>v,bufferToggle:()=>P,bufferWhen:()=>N,catchError:()=>j,combineAll:()=>$,combineLatest:()=>H,concat:()=>q,concatAll:()=>V.u,concatMap:()=>K,concatMapTo:()=>Z,count:()=>J,debounce:()=>X,debounceTime:()=>rt,defaultIfEmpty:()=>ot,delay:()=>ht,delayWhen:()=>gt,dematerialize:()=>Et,distinct:()=>At,distinctUntilChanged:()=>Ct,distinctUntilKeyChanged:()=>Pt,elementAt:()=>zt,endWith:()=>Wt,every:()=>qt,exhaust:()=>Kt,exhaustMap:()=>Yt,expand:()=>ee,filter:()=>Tt.h,finalize:()=>ie,find:()=>ae,findIndex:()=>ue,first:()=>de,flatMap:()=>G.VS,groupBy:()=>pe.v,ignoreElements:()=>fe,isEmpty:()=>ye,last:()=>_e,map:()=>Qt.U,mapTo:()=>Ae,materialize:()=>Ce,max:()=>Be,merge:()=>Le,mergeAll:()=>Ue.J,mergeMap:()=>G.zg,mergeMapTo:()=>De,mergeScan:()=>$e,min:()=>He,multicast:()=>qe,observeOn:()=>Ge.QV,onErrorResumeNext:()=>Ke,pairwise:()=>Qe,partition:()=>er,pluck:()=>rr,publish:()=>ir,publishBehavior:()=>or,publishLast:()=>cr,publishReplay:()=>ur,race:()=>dr,reduce:()=>Re,refCount:()=>kr.x,repeat:()=>pr,repeatWhen:()=>gr,retry:()=>br,retryWhen:()=>xr,sample:()=>Sr,sampleTime:()=>Ir,scan:()=>Pe,sequenceEqual:()=>Nr,share:()=>Ur,shareReplay:()=>Dr,single:()=>$r,skip:()=>Hr,skipLast:()=>Vr,skipUntil:()=>Zr,skipWhile:()=>Yr,startWith:()=>en,subscribeOn:()=>on,switchAll:()=>hn,switchMap:()=>cn,switchMapTo:()=>dn,take:()=>Dt,takeLast:()=>ve,takeUntil:()=>pn,takeWhile:()=>gn,tap:()=>En,throttle:()=>kn,throttleTime:()=>Mn,throwIfEmpty:()=>Rt,timeInterval:()=>Nn,timeout:()=>$n,timeoutWith:()=>jn,timestamp:()=>Fn,toArray:()=>Wn,window:()=>qn,windowCount:()=>Kn,windowTime:()=>Qn,windowToggle:()=>ii,windowWhen:()=>ai,withLatestFrom:()=>ui,zip:()=>fi,zipAll:()=>mi});var n=r(70655),i=r(17604);function s(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var r=(0,i.ft)(e,new i.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,r=t.hasValue,n=t.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),r&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),c=r(90964),l=r(69604);function u(t,e){return void 0===e&&(e=c.P),s((function(){return(0,l.H)(t,e)}))}function h(t){return function(e){return e.lift(new d(t))}}var d=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,r){var n=t.call(this,e)||this;return n.buffer=[],n.add((0,i.ft)(r,new i.IY(n))),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),f=r(10979);function m(t,e){return void 0===e&&(e=null),function(r){return r.lift(new g(t,e))}}var g=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?w:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,r){var n=t.call(this,e)||this;return n.bufferSize=r,n.buffer=[],n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(f.L),w=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.bufferSize=r,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return n.__extends(e,t),e.prototype._next=function(t){var e=this,r=e.bufferSize,n=e.startBufferEvery,i=e.buffers,s=e.count;this.count++,s%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(t),a.length===r&&(i.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,r=this.destination;e.length>0;){var n=e.shift();n.length>0&&r.next(n)}t.prototype._complete.call(this)},e}(f.L),b=r(17507);function v(t){var e=arguments.length,r=c.P;(0,b.K)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new E(t,n,i,r))}}var E=function(){function t(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new _(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),x=function(){this.buffer=[]},_=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.bufferTimeSpan=r,o.bufferCreationInterval=n,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var a=o.openContext();if(o.timespanOnly=null==n||n<0,o.timespanOnly){var c={subscriber:o,context:a,bufferTimeSpan:r};o.add(a.closeAction=s.schedule(A,r,c))}else{var l={subscriber:o,context:a},u={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:o,scheduler:s};o.add(a.closeAction=s.schedule(S,r,l)),o.add(s.schedule(k,n,u))}return o}return n.__extends(e,t),e.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;i0;){var n=e.shift();r.next(n.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(A,r,n))}},e.prototype.openContext=function(){var t=new x;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(f.L);function A(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function k(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,s=n.openContext();n.closed||(n.add(s.closeAction=i.schedule(S,r,{subscriber:n,context:s})),this.schedule(t,e))}function S(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var C=r(98760),M=r(52080),I=r(62039);function P(t,e){return function(r){return r.lift(new O(t,e))}}var O=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new T(t,this.openings,this.closingSelector))},t}(),T=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.contexts=[],i.add((0,M.D)(i,r)),i}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,r=new C.w,n={buffer:[],subscription:r};e.push(n);var i=(0,M.D)(this,t,n);!i||i.closed?this.closeBuffer(n):(i.context=n,this.add(i),r.add(i))},e}(I.L);function N(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.closingSelector))},t}(),B=function(t){function e(e,r){var n=t.call(this,e)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new C.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function j(t){return function(e){var r=new L(t),n=e.lift(r);return r.caught=n}}var L=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new U(t,this.selector,this.caught))},t}(),U=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.selector=r,i.caught=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var n=new i.IY(this);this.add(n);var s=(0,i.ft)(r,n);s!==n&&this.add(s)}},e}(i.Ds),D=r(75142);function $(t){return function(e){return e.lift(new D.Ms(t))}}var F=r(59026),z=r(55760);function H(){for(var t=[],e=0;e0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var s=Math.max(0,r[0].time-n.now());this.schedule(t,s)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new ft(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ut.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ut.P.createComplete()),this.unsubscribe()},e}(f.L),ft=function(t,e){this.time=t,this.notification=e},mt=r(92772);function gt(t,e){return e?function(r){return new bt(r,e).lift(new yt(t))}:function(e){return e.lift(new yt(t))}}var yt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new wt(t,this.delayDurationSelector))},t}(),wt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var r=this.delayDurationSelector(t,e);r&&this.tryDelay(r,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var r=(0,M.D)(this,t,e);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(I.L),bt=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subscriptionDelay=r,n}return n.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new vt(t,this.source))},e}(mt.y),vt=function(t){function e(e,r){var n=t.call(this)||this;return n.parent=e,n.source=r,n.sourceSubscribed=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(f.L);function Et(){return function(t){return t.lift(new xt)}}var xt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new _t(t))},t}(),_t=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(f.L);function At(t,e){return function(r){return r.lift(new kt(t,e))}}var kt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new St(t,this.keySelector,this.flushes))},t}(),St=function(t){function e(e,r,n){var s=t.call(this,e)||this;return s.keySelector=r,s.values=new Set,n&&s.add((0,i.ft)(n,new i.IY(s))),s}return n.__extends(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(t){return void r.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},e}(i.Ds);function Ct(t,e){return function(r){return r.lift(new Mt(t,e))}}var Mt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new It(t,this.compare,this.keySelector))},t}(),It=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(f.L);function Pt(t,e){return Ct((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}var Ot=r(76565),Tt=r(66008),Nt=r(26929);function Rt(t){return void 0===t&&(t=Lt),function(e){return e.lift(new Bt(t))}}var Bt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new jt(t,this.errorFactory))},t}(),jt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(f.L);function Lt(){return new Nt.K}var Ut=r(5631);function Dt(t){return function(e){return 0===t?(0,Ut.c)():e.lift(new $t(t))}}var $t=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.W}return t.prototype.call=function(t,e){return e.subscribe(new Ft(t,this.total))},t}(),Ft=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(f.L);function zt(t,e){if(t<0)throw new Ot.W;var r=arguments.length>=2;return function(n){return n.pipe((0,Tt.h)((function(e,r){return r===t})),Dt(1),r?ot(e):Rt((function(){return new Ot.W})))}}var Ht=r(18170);function Wt(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function ie(t){return function(e){return e.lift(new se(t))}}var se=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.callback))},t}(),oe=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new C.w(r)),n}return n.__extends(e,t),e}(f.L);function ae(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(r){return r.lift(new ce(t,r,!1,e))}}var ce=function(){function t(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new le(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),le=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.predicate=r,o.source=n,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,r=this.thisArg,n=this.index++;try{e.call(r||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(f.L);function ue(t,e){return function(r){return r.lift(new ce(t,r,!0,e))}}var he=r(43608);function de(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,Tt.h)((function(e,r){return t(e,r,n)})):he.y,Dt(1),r?ot(e):Rt((function(){return new Nt.K})))}}var pe=r(11120);function fe(){return function(t){return t.lift(new me)}}var me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ge(t))},t}(),ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype._next=function(t){},e}(f.L);function ye(){return function(t){return t.lift(new we)}}var we=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(f.L);function ve(t){return function(e){return 0===t?(0,Ut.c)():e.lift(new Ee(t))}}var Ee=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.W}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.total))},t}(),xe=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=new Array,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i=2;return function(n){return n.pipe(t?(0,Tt.h)((function(e,r){return t(e,r,n)})):he.y,ve(1),r?ot(e):Rt((function(){return new Nt.K})))}}function Ae(t){return function(e){return e.lift(new ke(t))}}var ke=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Se(t,this.value))},t}(),Se=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(f.L);function Ce(){return function(t){return t.lift(new Me)}}var Me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ie(t))},t}(),Ie=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(ut.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ut.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ut.P.createComplete()),t.complete()},e}(f.L);function Pe(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new Oe(t,e,r))}}var Oe=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.accumulator,this.seed,this.hasSeed))},t}(),Te=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.accumulator=r,s._seed=n,s.hasSeed=i,s.index=0,s}return n.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(f.L),Ne=r(62561);function Re(t,e){return arguments.length>=2?function(r){return(0,Ne.z)(Pe(t,e),ve(1),ot(e))(r)}:function(e){return(0,Ne.z)(Pe((function(e,r,n){return t(e,r,n+1)})),ve(1))(e)}}function Be(t){return Re("function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e})}var je=r(14370);function Le(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function He(t){return Re("function"==typeof t?function(e,r){return t(e,r)<0?e:r}:function(t,e){return t-1&&(this.count=r-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(f.L);function gr(t){return function(e){return e.lift(new yr(t))}}var yr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new wr(t,this.notifier,e))},t}(),wr=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return n.__extends(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new nr.xQ;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function br(t){return void 0===t&&(t=-1),function(e){return e.lift(new vr(t,e))}}var vr=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Er(t,this.count,this.source))},t}(),Er=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(f.L);function xr(t){return function(e){return e.lift(new _r(t,e))}}var _r=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ar(t,this.notifier,this.source))},t}(),Ar=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,s=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new nr.xQ;try{n=(0,this.notifier)(r)}catch(e){return t.prototype.error.call(this,e)}s=(0,i.ft)(n,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=s,r.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),kr=r(3018);function Sr(t){return function(e){return e.lift(new Cr(t))}}var Cr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new Mr(t),n=e.subscribe(r);return n.add((0,i.ft)(this.notifier,new i.IY(r))),n},t}(),Mr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return n.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function Ir(t,e){return void 0===e&&(e=c.P),function(r){return r.lift(new Pr(t,e))}}var Pr=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Or(t,this.period,this.scheduler))},t}(),Or=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.period=r,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(Tr,r,{subscriber:i,period:r})),i}return n.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(f.L);function Tr(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}function Nr(t,e){return function(r){return r.lift(new Rr(t,e))}}var Rr=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Br(t,this.compareTo,this.comparator))},t}(),Br=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.compareTo=r,i.comparator=n,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(r.subscribe(new jr(e,i))),i}return n.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,r=t._b,n=t.comparator;e.length>0&&r.length>0;){var i=e.shift(),s=r.shift(),o=!1;try{o=n?n(i,s):i===s}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(f.L),jr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.parent=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(f.L);function Lr(){return new nr.xQ}function Ur(){return function(t){return(0,kr.x)()(qe(Lr)(t))}}function Dr(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){return t.lift(function(t){var e,r,n=t.bufferSize,i=void 0===n?Number.POSITIVE_INFINITY:n,s=t.windowTime,o=void 0===s?Number.POSITIVE_INFINITY:s,a=t.refCount,c=t.scheduler,l=0,u=!1,h=!1;return function(t){var n;l++,!e||u?(u=!1,e=new lr.t(i,o,c),n=e.subscribe(this),r=t.subscribe({next:function(t){e.next(t)},error:function(t){u=!0,e.error(t)},complete:function(){h=!0,r=void 0,e.complete()}}),h&&(r=void 0)):n=e.subscribe(this),this.add((function(){l--,n.unsubscribe(),n=void 0,r&&!h&&a&&0===l&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function $r(t){return function(e){return e.lift(new Fr(t,e))}}var Fr=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.predicate,this.source))},t}(),zr=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.seenValue=!1,i.index=0,i}return n.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Nt.K)},e}(f.L);function Hr(t){return function(e){return e.lift(new Wr(t))}}var Wr=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.total))},t}(),qr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(f.L);function Vr(t){return function(e){return e.lift(new Gr(t))}}var Gr=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ot.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new f.L(t)):e.subscribe(new Kr(t,this._skipCount))},t}(),Kr=function(t){function e(e,r){var n=t.call(this,e)||this;return n._skipCount=r,n._count=0,n._ring=new Array(r),n}return n.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,r=this._count++;if(r0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,o=0;o=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new nr.xQ;i.push(c),r.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(f.L);function Qn(t){var e=c.P,r=null,n=Number.POSITIVE_INFINITY;return(0,b.K)(arguments[3])&&(e=arguments[3]),(0,b.K)(arguments[2])?e=arguments[2]:(0,nn.k)(arguments[2])&&(n=Number(arguments[2])),(0,b.K)(arguments[1])?e=arguments[1]:(0,nn.k)(arguments[1])&&(r=Number(arguments[1])),function(i){return i.lift(new Yn(t,r,n,e))}}var Yn=function(){function t(t,e,r,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Xn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return n.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(nr.xQ),ti=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.destination=e,o.windowTimeSpan=r,o.windowCreationInterval=n,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var a=o.openWindow();if(null!==n&&n>=0){var c={subscriber:o,window:a,context:null},l={windowTimeSpan:r,windowCreationInterval:n,subscriber:o,scheduler:s};o.add(s.schedule(ni,r,c)),o.add(s.schedule(ri,n,l))}else{var u={subscriber:o,window:a,windowTimeSpan:r};o.add(s.schedule(ei,r,u))}return o}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Xn;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(f.L);function ei(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,r)}function ri(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,s=r.openWindow(),o=this,a={action:o,subscription:null},c={subscriber:r,window:s,context:a};a.subscription=n.schedule(ni,e,c),o.add(a.subscription),o.schedule(t,i)}function ni(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}function ii(t,e){return function(r){return r.lift(new si(t,e))}}var si=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new oi(t,this.openings,this.closingSelector))},t}(),oi=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.openings=r,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=(0,M.D)(i,r,r)),i}return n.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n0){var i=n.indexOf(r);-1!==i&&n.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(I.L),pi=r(25080);function fi(){for(var t=[],e=0;e{var n=r(48764),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},22257:(t,e,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(t.value,e).test(this.value):""===t.operator?""===t.value||new h(this.value,e).test(t.semver):!((e=s(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const s=r(12893),{safeRe:o,t:a}=r(55765),c=r(7539),l=r(74225),u=r(26376),h=r(66902)},66902:(t,e,r)=>{class n{constructor(t,e){if(e=s(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!g(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+t,r=i.get(e);if(r)return r;const n=this.options.loose,s=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];t=t.replace(s,I(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(l[u.COMPARATORTRIM],h),a("comparator trim",t),t=t.replace(l[u.TILDETRIM],d),a("tilde trim",t),t=t.replace(l[u.CARETTRIM],p),a("caret trim",t);let c=t.split(" ").map((t=>b(t,this.options))).join(" ").split(/\s+/).map((t=>M(t,this.options)));n&&(c=c.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(l[u.COMPARATORLOOSE]))))),a("range list",c);const y=new Map,w=c.map((t=>new o(t,this.options)));for(const t of w){if(g(t))return[t];y.set(t.value,t)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return i.set(e,v),v}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>w(r,e)&&t.set.some((t=>w(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}for(let e=0;e"<0.0.0-0"===t.value,y=t=>""===t.value,w=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},b=(t,e)=>(a("comp",t,e),t=_(t,e),a("caret",t),t=E(t,e),a("tildes",t),t=k(t,e),a("xrange",t),t=C(t,e),a("stars",t),t),v=t=>!t||"x"===t.toLowerCase()||"*"===t,E=(t,e)=>t.trim().split(/\s+/).map((t=>x(t,e))).join(" "),x=(t,e)=>{const r=e.loose?l[u.TILDELOOSE]:l[u.TILDE];return t.replace(r,((e,r,n,i,s)=>{let o;return a("tilde",t,e,r,n,i,s),v(r)?o="":v(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:v(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},_=(t,e)=>t.trim().split(/\s+/).map((t=>A(t,e))).join(" "),A=(t,e)=>{a("caret",t,e);const r=e.loose?l[u.CARETLOOSE]:l[u.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,s,o)=>{let c;return a("caret",t,e,r,i,s,o),v(r)?c="":v(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(s)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),c="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",c),c}))},k=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>S(t,e))).join(" ")),S=(t,e)=>{t=t.trim();const r=e.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return t.replace(r,((r,n,i,s,o,c)=>{a("xRange",t,r,n,i,s,o,c);const l=v(i),u=l||v(s),h=u||v(o),d=h;return"="===n&&d&&(n=""),c=e.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(s=0),o=0,">"===n?(n=">=",u?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",u?i=+i+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+i}.${s}.${o}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},C=(t,e)=>(a("replaceStars",t,e),t.trim().replace(l[u.STAR],"")),M=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(l[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),I=t=>(e,r,n,i,s,o,a,c,l,u,h,d,p)=>`${r=v(n)?"":v(i)?`>=${n}.0.0${t?"-0":""}`:v(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(h)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${h}-${d}`:t?`<${l}.${u}.${+h+1}-0`:`<=${c}`}`.trim(),P=(t,e,r)=>{for(let r=0;r0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},26376:(t,e,r)=>{const n=r(74225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(83295),{safeRe:o,t:a}=r(55765),c=r(12893),{compareIdentifiers:l}=r(86742);class u{constructor(t,e){if(e=c(e),t instanceof u){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=u},13507:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},7539:(t,e,r)=>{const n=r(58718),i=r(81194),s=r(71312),o=r(25903),a=r(21544),c=r(12056);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,l);case"!=":return i(t,r,l);case">":return s(t,r,l);case">=":return o(t,r,l);case"<":return a(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},99038:(t,e,r)=>{const n=r(26376),i=r(33959),{safeRe:s,t:o}=r(55765);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=s[o.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),s[o.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;s[o.COERCERTL].lastIndex=-1}else r=t.match(s[o.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},88880:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r)=>{const i=new n(t,r),s=new n(e,r);return i.compare(s)||i.compareBuild(s)}},27880:(t,e,r)=>{const n=r(46269);t.exports=(t,e)=>n(t,e,!0)},46269:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},38419:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,null,!0),i=n(e,null,!0),s=r.compare(i);if(0===s)return null;const o=s>0,a=o?r:i,c=o?i:r,l=!!a.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}},58718:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>0===n(t,e,r)},71312:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)>0},25903:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)>=0},20253:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r,i,s)=>{"string"==typeof r&&(s=i,i=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,i,s).version}catch(t){return null}}},21544:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)<0},12056:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)<=0},38679:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).major},87789:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).minor},81194:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>0!==n(t,e,r)},33959:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},52358:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).patch},57559:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},79795:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(e,t,r)},63657:(t,e,r)=>{const n=r(88880);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},45712:(t,e,r)=>{const n=r(66902);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},21100:(t,e,r)=>{const n=r(88880);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},76397:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},81249:(t,e,r)=>{const n=r(55765),i=r(83295),s=r(26376),o=r(86742),a=r(33959),c=r(76397),l=r(13507),u=r(20253),h=r(38419),d=r(38679),p=r(87789),f=r(52358),m=r(57559),g=r(46269),y=r(79795),w=r(27880),b=r(88880),v=r(21100),E=r(63657),x=r(71312),_=r(21544),A=r(58718),k=r(81194),S=r(25903),C=r(12056),M=r(7539),I=r(99038),P=r(22257),O=r(66902),T=r(45712),N=r(51042),R=r(85775),B=r(71657),j=r(95316),L=r(89042),U=r(6826),D=r(97606),$=r(50032),F=r(82937),z=r(17908),H=r(50799);t.exports={parse:a,valid:c,clean:l,inc:u,diff:h,major:d,minor:p,patch:f,prerelease:m,compare:g,rcompare:y,compareLoose:w,compareBuild:b,sort:v,rsort:E,gt:x,lt:_,eq:A,neq:k,gte:S,lte:C,cmp:M,coerce:I,Comparator:P,Range:O,satisfies:T,toComparators:N,maxSatisfying:R,minSatisfying:B,minVersion:j,validRange:L,outside:U,gtr:D,ltr:$,intersects:F,simplifyRange:z,subset:H,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},83295:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},74225:(t,e,r)=>{var n=r(34155);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=i},86742:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:tr(e,t)}},12893:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},55765:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=r(83295),o=r(74225),a=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],u=e.t={};let h=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",s],[d,i]],f=(t,e,r)=>{const n=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=h++;o(t,i,e),u[t]=i,l[i]=e,a[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),f("FULL",`^${l[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),f("LOOSE",`^${l[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),f("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),f("COERCERTL",l[u.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",f("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",f("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(t,e,r)=>{const n=r(6826);t.exports=(t,e,r)=>n(t,e,">",r)},82937:(t,e,r)=>{const n=r(66902);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e,r))},50032:(t,e,r)=>{const n=r(6826);t.exports=(t,e,r)=>n(t,e,"<",r)},85775:(t,e,r)=>{const n=r(26376),i=r(66902);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&-1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},71657:(t,e,r)=>{const n=r(26376),i=r(66902);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},95316:(t,e,r)=>{const n=r(26376),i=r(66902),s=r(71312);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!s(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!o||r&&!s(r,o)||(r=o)}return r&&t.test(r)?r:null}},6826:(t,e,r)=>{const n=r(26376),i=r(22257),{ANY:s}=i,o=r(66902),a=r(45712),c=r(71312),l=r(21544),u=r(12056),h=r(25903);t.exports=(t,e,r,d)=>{let p,f,m,g,y;switch(t=new n(t,d),e=new o(e,d),r){case">":p=c,f=u,m=l,g=">",y=">=";break;case"<":p=l,f=h,m=c,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,d))return!1;for(let r=0;r{t.semver===s&&(t=new i(">=0.0.0")),o=o||t,a=a||t,p(t.semver,o.semver,d)?o=t:m(t.semver,a.semver,d)&&(a=t)})),o.operator===g||o.operator===y)return!1;if((!a.operator||a.operator===g)&&f(t,a.semver))return!1;if(a.operator===y&&m(t,a.semver))return!1}return!0}},17908:(t,e,r)=>{const n=r(45712),i=r(46269);t.exports=(t,e,r)=>{const s=[];let o=null,a=null;const c=t.sort(((t,e)=>i(t,e,r)));for(const t of c)n(t,e,r)?(a=t,o||(o=t)):(a&&s.push([o,a]),a=null,o=null);o&&s.push([o,null]);const l=[];for(const[t,e]of s)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const u=l.join(" || "),h="string"==typeof e.raw?e.raw:String(e);return u.length{const n=r(66902),i=r(22257),{ANY:s}=i,o=r(45712),a=r(46269),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===s){if(r.includePrerelease)return!0;e=l}const n=new Set;let i,u,p,f,m,g,y;for(const e of t)">"===e.operator||">="===e.operator?i=h(i,e,r):"<"===e.operator||"<="===e.operator?u=d(u,e,r):n.add(e.semver);if(n.size>1)return null;if(i&&u){if(p=a(i.semver,u.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==u.operator))return null}for(const t of n){if(i&&!o(t,String(i),r))return null;if(u&&!o(t,String(u),r))return null;for(const n of e)if(!o(t,String(n),r))return!1;return!0}let w=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===u.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(y=y||">"===t.operator||">="===t.operator,g=g||"<"===t.operator||"<="===t.operator,i)if(b&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch&&(b=!1),">"===t.operator||">="===t.operator){if(f=h(i,t,r),f===t&&f!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(t),r))return!1;if(u)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(m=d(u,t,r),m===t&&m!==u)return!1}else if("<="===u.operator&&!o(u.semver,String(t),r))return!1;if(!t.operator&&(u||i)&&0!==p)return!1}return!(i&&g&&!u&&0!==p||u&&y&&!i&&0!==p||b||w)},h=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=u(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},51042:(t,e,r)=>{const n=r(66902);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},89042:(t,e,r)=>{const n=r(66902);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},67771:(t,e,r)=>{"use strict";var n=r(40210),i=r(12296),s=r(31044)(),o=r(27296),a=n("%TypeError%"),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},24189:(t,e,r)=>{var n=r(89509).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},89072:(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(74448),n.sha1=r(18336),n.sha224=r(48432),n.sha256=r(67499),n.sha384=r(51686),n.sha512=r(87816)},74448:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t){return t<<30|t>>>2}function u(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var p=~~(d/20),f=0|((e=n)<<5|e>>>27)+u(p,i,s,a)+c+r[d]+o[p];c=a,a=s,s=l(i),i=n,n=f}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},18336:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=(e=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|e>>>31;for(var p=0;p<80;++p){var f=~~(p/20),m=l(n)+h(f,i,s,a)+c+r[p]+o[f]|0;c=a,a=s,s=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},48432:(t,e,r)=>{var n=r(35717),i=r(67499),s=r(24189),o=r(89509).Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},67499:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[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],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t,e,r){return r^t&(e^r)}function u(t,e,r){return t&e|r&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)r[y]=t.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((e=r[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[y-7]+p(r[y-15])+r[y-16];for(var w=0;w<64;++w){var b=g+d(c)+l(c,f,m)+o[w]+r[w]|0,v=h(n)+u(n,i,s)|0;g=m,m=f,f=c,c=a+b|0,a=s,s=i,i=n,n=b+v|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},51686:(t,e,r)=>{var n=r(35717),i=r(87816),s=r(24189),o=r(89509).Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},87816:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[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],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function l(t,e,r){return r^t&(e^r)}function u(t,e,r){return t&e|r&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,w=0|this._gh,b=0|this._hh,v=0|this._al,E=0|this._bl,x=0|this._cl,_=0|this._dl,A=0|this._el,k=0|this._fl,S=0|this._gl,C=0|this._hl,M=0;M<32;M+=2)e[M]=t.readInt32BE(4*M),e[M+1]=t.readInt32BE(4*M+4);for(;M<160;M+=2){var I=e[M-30],P=e[M-30+1],O=p(I,P),T=f(P,I),N=m(I=e[M-4],P=e[M-4+1]),R=g(P,I),B=e[M-14],j=e[M-14+1],L=e[M-32],U=e[M-32+1],D=T+j|0,$=O+B+y(D,T)|0;$=($=$+N+y(D=D+R|0,R)|0)+L+y(D=D+U|0,U)|0,e[M]=$,e[M+1]=D}for(var F=0;F<160;F+=2){$=e[F],D=e[F+1];var z=u(r,n,i),H=u(v,E,x),W=h(r,v),q=h(v,r),V=d(a,A),G=d(A,a),K=o[F],Z=o[F+1],J=l(a,c,w),Q=l(A,k,S),Y=C+G|0,X=b+V+y(Y,C)|0;X=(X=(X=X+J+y(Y=Y+Q|0,Q)|0)+K+y(Y=Y+Z|0,Z)|0)+$+y(Y=Y+D|0,D)|0;var tt=q+H|0,et=W+z+y(tt,q)|0;b=w,C=S,w=c,S=k,c=a,k=A,a=s+X+y(A=_+Y|0,_)|0,s=i,_=x,i=n,x=E,n=r,E=v,r=X+et+y(v=Y+tt|0,Y)|0}this._al=this._al+v|0,this._bl=this._bl+E|0,this._cl=this._cl+x|0,this._dl=this._dl+_|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+S|0,this._hl=this._hl+C|0,this._ah=this._ah+r+y(this._al,v)|0,this._bh=this._bh+n+y(this._bl,E)|0,this._ch=this._ch+i+y(this._cl,x)|0,this._dh=this._dh+s+y(this._dl,_)|0,this._eh=this._eh+a+y(this._el,A)|0,this._fh=this._fh+c+y(this._fl,k)|0,this._gh=this._gh+w+y(this._gl,S)|0,this._hh=this._hh+b+y(this._hl,C)|0},c.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},37478:(t,e,r)=>{"use strict";var n=r(40210),i=r(21924),s=r(70631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),m=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new o("Side channel does not contain "+s(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(c){if(e)return d(e,n)}else if(r)return function(t,e){var r=m(t,e);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return h(t,n)}else if(c){if(e)return f(e,n)}else if(r)return function(t,e){return!!m(t,e)}(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),u(t,n,i)):c?(e||(e=new c),p(e,n,i)):(r||(r={key:{},next:null}),function(t,e,r){var n=m(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,i))}};return n}},80500:t=>{"use strict";t.exports=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},70610:t=>{"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},32553:(t,e,r)=>{"use strict";var n=r(89509).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=u,this.end=h,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},49604:(t,e,r)=>{var n=r(23944);t.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},70655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>v,__asyncGenerator:()=>b,__asyncValues:()=>E,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>S,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>p,__extends:()=>i,__generator:()=>h,__importDefault:()=>A,__importStar:()=>_,__makeTemplateObject:()=>x,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>f});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof w?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:w(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=f(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function A(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},25869:(t,e,r)=>{"use strict";function n(t,e){return e=e||{},new Promise((function(r,n){var i=new XMLHttpRequest,s=[],o=[],a={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return s},entries:function(){return o},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var l in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){s.push(e=e.toLowerCase()),o.push([e,r]),a[e]=a[e]?a[e]+","+r:r})),r(c())},i.onerror=n,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(l,e.headers[l]);i.send(e.body||null)}))}r.r(e),r.d(e,{default:()=>n})},8575:(t,e,r)=>{"use strict";var n=r(74971);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(80129);function w(t,e,r){if(t&&"object"==typeof t&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),o=-1!==i&&i127?T+="x":T+=O[N];if(!T.match(d)){var B=I.slice(0,S),j=I.slice(S+1),L=O.match(p);L&&(B.push(L[1]),j.unshift(L[2])),j.length&&(w="/"+j.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+U,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!f[E])for(S=0,P=l.length;S0)&&r.host.split("@"))&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)),r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=x.slice(-1)[0],k=(r.host||t.host||x.length>1)&&("."===A||".."===A)||""===A,S=0,C=x.length;C>=0;C--)"."===(A=x[C])?x.splice(C,1):".."===A?(x.splice(C,1),S++):S&&(x.splice(C,1),S--);if(!v&&!E)for(;S--;S)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),k&&"/"!==x.join("/").substr(-1)&&x.push("");var M,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);return _&&(r.hostname=I?"":x.length?x.shift():"",r.host=r.hostname,(M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=M.shift(),r.hostname=M.shift(),r.host=r.hostname)),(v=v||r.host&&x.length)&&!I&&x.unshift(""),x.length>0?r.pathname=x.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=w,e.resolve=function(t,e){return w(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?w(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=w(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},57458:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function s(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return i(t>>e&63|128)}function c(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(o(t),e=i(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=s(t),r=e.length,n=-1,i="";++n65535&&(s+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),s+=i(e);return s}(a)}}(e)},94927:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},20384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},55955:(t,e,r)=>{"use strict";var n=r(82584),i=r(48662),s=r(86430),o=r(85692);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(c)var f=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function w(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function v(t){return"[object WeakSet]"===u(t)}function E(t){return"[object ArrayBuffer]"===u(t)}function x(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function _(t){return"[object DataView]"===u(t)}function A(t){return"undefined"!=typeof DataView&&(_.working?_(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},w.working="undefined"!=typeof Set&&w(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(w.working?w(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=x,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===u(t)}function C(t){return void 0!==k&&(void 0===S.working&&(S.working=S(new k)),S.working?S(t):t instanceof k)}function M(t){return g(t,h)}function I(t){return g(t,d)}function P(t){return g(t,p)}function O(t){return c&&g(t,f)}function T(t){return l&&g(t,m)}e.isSharedArrayBuffer=C,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=M,e.isStringObject=I,e.isBooleanObject=P,e.isBigIntObject=O,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return M(t)||I(t)||P(t)||O(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(x(t)||C(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},89539:(t,e,r)=>{var n=r(34155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,t,n.depth)}function u(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=d(t,i,n)),i}var s=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return w(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),A(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(r);if(0===o.length){if(k(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var l,u="",h=!1,x=["{","}"];return m(r)&&(h=!0,x=["[","]"]),k(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),_(r)&&(u=" "+Date.prototype.toUTCString.call(r)),A(r)&&(u=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,u,x)):x[0]+u+x[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,s){var o,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),I(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(r)?d(t,c.value,null):d(t,c.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function m(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function w(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function E(t){return x(t)&&"[object RegExp]"===S(t)}function x(t){return"object"==typeof t&&null!==t}function _(t){return x(t)&&"[object Date]"===S(t)}function A(t){return x(t)&&("[object Error]"===S(t)||t instanceof Error)}function k(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(55955),e.isArray=m,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=w,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=E,e.types.isRegExp=E,e.isObject=x,e.isDate=_,e.types.isDate=_,e.isError=A,e.types.isNativeError=A,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(20384);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[C((t=new Date).getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":"),[t.getDate(),M[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(35717),e._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!=typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s{var n=r(48764).Buffer,i=r(18269),s=r(12816).RQ,o=r(12816)._R,a=new s((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"==typeof e&&"BN"===e.constructor.name?e:e.toString()}));function c(){}var l=function(){};l.prototype.encodeFunctionSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t).slice(0,10)},l.prototype.encodeEventSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t)},l.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},l.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,n){let i=t[n];if("object"==typeof i&&i.type&&(i=i.type),e=r.formatParam(i,e),"string"==typeof i&&i.includes("tuple")){const t=a._getCoder(o.from(i)),n=(t,e)=>{if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return e.map((e=>n(a._getCoder(o.from(t.type.replace("[]",""))),e)));const r=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(e.length!==r)throw new Error("Array length does not matches with the given input");return e.map((e=>n(a._getCoder(o.from(t.type.replace(/\[\d+\]/,""))),e)))}t.coders.forEach(((t,i)=>{"tuple"===t.name?n(t,e[i]):e[i]=r.formatParam(t.name,e[i])}))};n(t,e)}return e})),a.encode(t,e)},l.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"==typeof t&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var n=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))}else r.push(t)})),r},l.prototype.isSimplifiedStructFormat=function(t){return"object"==typeof t&&void 0===t.components&&void 0===t.name},l.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},l.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(n){"object"!=typeof t[n]?r.push({name:n,type:t[n]}):r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))})),r},l.prototype.formatParam=function(t,e){const r=new RegExp(/^bytes([0-9]*)$/),s=new RegExp(/^bytes([0-9]*)\[\]$/),o=new RegExp(/^(u?int)([0-9]*)$/),a=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(e)||i.isBigNumber(e))return e.toString(10);if(t.match(s)||t.match(a))return e.map((e=>this.formatParam(t.replace("[]",""),e)));let c=t.match(o);if(c){let t=parseInt(c[2]||"256");t/80&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=a.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),i=new c;return i.__length__=0,t.forEach((function(t,e){var r=n[i.__length__];const s="object"==typeof t&&t.type&&"string"===t.type;r="0x"!==r||s||"string"==typeof t&&"string"===t?r:null,i[e]=r,("function"==typeof t||t&&"object"==typeof t)&&t.name&&(i[t.name]=r),i.__length__++})),i},l.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],s=[],o=0;t.forEach((function(t,e){t.indexed?(s[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[o]):r[o],o++):i[e]=t}));var a=e,l=a?this.decodeParametersWith(i,a,!0):[],u=new c;return u.__length__=0,t.forEach((function(t,e){u[e]="string"===t.type?"":null,void 0!==l[e]&&(u[e]=l[e]),void 0!==s[e]&&(u[e]=s[e]),t.name&&(u[t.name]=u[e]),u.__length__++})),u};var u=new l;t.exports=u},18269:(t,e,r)=>{var n=r(94278),i=r(90329),s=r(28668),o=r(61798),a=r(13550),c=function(t,e){var r=[];return e.forEach((function(e){if("object"==typeof e.components){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var n="",i=e.type.indexOf("[");i>=0&&(n=e.type.substring(i));var s=c(t,e.components);Array.isArray(s)&&t?r.push("tuple("+s.join(",")+")"+n):t?r.push("("+s+")"):r.push("("+s.join(",")+")"+n)}else r.push(e.type)})),r},l=function(t){if(!i.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r7?r+=t[n].toUpperCase():r+=t[n];return r},toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:l,toAscii:l,asciiToHex:u,fromAscii:u,unitMap:n.unitMap,toWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).toString(10)},padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:function(t,e){if(t===e)return 0;if("genesis"!==t&&"earliest"!==t&&0!==t||"genesis"!==e&&"earliest"!==e&&0!==e){if("genesis"===t||"earliest"===t||0===t)return-1;if("genesis"===e||"earliest"===e||0===e)return 1;if("latest"===t||"finalized"===t)return"pending"===e?-1:1;if("latest"===e||"finalized"===e)return"pending"===t?1:-1;if("pending"===t)return 1;if("pending"===e)return-1;if("safe"===t||"safe"===e)return;{let r=new a(t),n=new a(e);return r.lt(n)?-1:r.eq(n)?0:1}}return 0},toNumber:i.toNumber}},28668:(t,e,r)=>{var n=r(13550),i=r(90329),s=function(t){var e=typeof t;if("string"===e)return i.isHexStrict(t)?new n(t.replace(/0x/i,""),16):new n(t,10);if("number"===e)return new n(t);if(i.isBigNumber(t))return new n(t.toString(10));if(i.isBN(t))return t;throw new Error(t+" is not a number")},o=function(t,e,r){var o,a,c;if("bytes"===(t=(c=t).startsWith("int[")?"int256"+c.slice(3):"int"===c?"int256":c.startsWith("uint[")?"uint256"+c.slice(4):"uint"===c?"uint256":c.startsWith("fixed[")?"fixed128x128"+c.slice(5):"fixed"===c?"fixed128x128":c.startsWith("ufixed[")?"ufixed128x128"+c.slice(6):"ufixed"===c?"ufixed128x128":c)){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return i.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(o=r?64:40,!i.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return i.leftPad(e.toLowerCase(),o)}if(o=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null}(t),t.startsWith("bytes")){if(!o)throw new Error("bytes[] not yet supported in solidity");if(r&&(o=32),o<1||o>32||o256)throw new Error("Invalid uint"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a.lt(new n(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return o?i.leftPad(a.toString("hex"),o/8*2):a}if(t.startsWith("int")){if(o%8||o<8||o>256)throw new Error("Invalid int"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.lt(new n(0))?a.toTwos(o).toString("hex"):o?i.leftPad(a.toString("hex"),o/8*2):a}throw new Error("Unsupported or invalid type: "+t)},a=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,s="";if(t&&"object"==typeof t&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,s=t.hasOwnProperty("v")?t.v:t.value):(e=i.toHex(t,!0),s=i.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new n(s)),Array.isArray(s)){if(r=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null}(e),r&&s.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(s));r=s.length}return Array.isArray(s)?s.map((function(t){return o(e,t,r).toString("hex").replace("0x","")})).join(""):o(e,s,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments).map(a);return i.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(a).join(""))},encodePacked:function(){return"0x"+Array.prototype.slice.call(arguments).map(a).join("").toLowerCase()}}},90329:(t,e,r)=>{var n=r(48764).Buffer,i=r(13550),s=r(83206),o=r(57458),a=r(92730),c=r(46877),{keccak256:l}=r(82192),u=function(t){return i.isBN(t)},h=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},d=function(t){try{return s.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},p=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||f(t))},f=function(t){t=t.replace(/^0x/i,"");for(var e=x(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},m=function(t){var e="";t=(t=(t=(t=(t=o.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;rNumber.MAX_SAFE_INTEGER||r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:v,isHexStrict:b,stripHexPrefix:function(t){return 0!==t&&v(t)?t.replace(/^(-)?0x/i,"$1"):t},leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+d(t).toTwos(256).toString(16,64)},sha3:x,sha3Raw:function(t){return null===(t=x(t))?E:t},toNumber:function(t,e=!1){return"number"==typeof t?t:g(w(t),e)}}},86430:(t,e,r)=>{"use strict";var n=r(94029),i=r(63083),s=r(55559),o=r(21924),a=r(27296),c=o("Object.prototype.toString"),l=r(96410)(),u="undefined"==typeof globalThis?r.g:globalThis,h=i(),d=o("String.prototype.slice"),p=Object.getPrototypeOf,f=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(m,(function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return n(m,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}})),e}(t):null}},57026:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},47529:t=>{t.exports=function(){for(var t={},r=0;r{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},34411:(t,e,r)=>{"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(ethis.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&ithis.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;null!==s&&n{const n=r(33555),i=r(90719),{createWeb3Modal:s,defaultWagmiConfig:o}=r(80252),{disconnect:a,watchAccount:c,getAccount:l,switchNetwork:u,fetchToken:h,readContract:d,writeContract:p,prepareWriteContract:f,getWalletClient:m,getPublicClient:g,signMessage:y,sendTransaction:w,prepareSendTransaction:b}=r(33694);t.exports=class{projectId;themeMode="light";metadata;modal;networks;connectedNetwork;connectRejectMethod;connectedAccount;constructor(t){let e=t.network,r=t.customWallets||[],a=this.metadata=t.metadata,c=this.projectId=t.projectId,l=this.themeMode;t.themeMode&&(l=this.themeMode=t.themeMode);let u=[];if(e){let t=Object.values(i).find((t=>n.isNumeric(e)?t.id==parseInt(e):"string"==typeof e?t.network==e:"object"==typeof e?t.id==e.id:void 0));t||"object"!=typeof e?u.push(t):u.push(this.wagmiStandart(e)),this.connectedNetwork=u[0]}else u=Object.values(i);if(0==u.length)throw new Error("network-not-found");const h=o({chains:u,projectId:c,metadata:a});h.autoConnect=()=>{},this.modal=s({themeMode:l,wagmiConfig:h,projectId:c,chains:u,customWallets:r,themeVariables:{"--w3m-z-index":999999999999}});let d=!1;this.modal.subscribeEvents((async t=>{if("SELECT_WALLET"==t.data.event&&(d=!0),"MODAL_CLOSE"==t.data.event&&"function"==typeof this.connectRejectMethod){if(d&&(d=!1,this.connectedNetwork.id!=await this.getChainId()))return this.connectRejectMethod("not-accepted-chain");this.connectRejectMethod("closed-web3modal")}})),this.networks=u}wagmiStandart(t){let e={http:[t.rpcUrl]};return t.wsUrl&&(e.webSocket=[t.wsUrl]),Object.assign(t,{network:t.name,nativeCurrency:{name:t.nativeCurrency.symbol,symbol:t.nativeCurrency.symbol,decimals:t.nativeCurrency.decimals},rpcUrls:{default:e,public:e},blockExplorerUrls:{default:{name:t.name,url:t.explorerUrl}}})}setNetwork(t){"object"==typeof t?this.connectedNetwork=this.wagmiStandart(t):n.isNumeric(t)?this.connectedNetwork=this.networks.find((e=>e.id==parseInt(t))):"string"==typeof t&&(this.connectedNetwork=this.networks.find((e=>e.network==t)))}getKey(){return"web3modal"}getName(){return"Web3Modal"}getSupports(){return["browser","mobile"]}getDeepLink(){}getDownloadLink(){}isDetected(){}async request(t){return(await this.getWalletClient()).request(t)}async getWalletClient(){return await m()||this.getPublicClient()}async getPublicClient(){let t=await g();return t.account||(t.account=this.connectedAccount),t}removeOldConnection(){Object.keys(localStorage).filter((t=>t.startsWith("wc@2")||t.startsWith("wagmi")||t.startsWith("@w3m")||t.startsWith("W3M")||t.startsWith("-walletlink"))).forEach((t=>localStorage.removeItem(t))),localStorage.removeItem("walletconnect"),localStorage.removeItem("WALLETCONNECT_DEEPLINK_CHOICE");try{this.modal.resetAccount(),this.modal.resetNetwork(),this.modal.resetWcConnection()}catch(t){}return a()}async getChainId(){return(await this.getWalletClient()).getChainId()}async isConnected(){return l().isConnected}async connect(){return new Promise(((t,e)=>{this.connection().then((async r=>{if(this.connectedNetwork.id!=await this.getChainId())return e("not-accepted-chain");t(r)})).catch((t=>{e(t)}))}))}async connection(){return new Promise((async(t,e)=>{try{this.connectRejectMethod=e;let r=l();if(r.isConnected)return t(this.connectedAccount=r.address);this.modal.open();let i=!1;c((async r=>{if(r.isConnected)try{const{selectedNetworkId:n}=this.modal.getState();if(this.connectedNetwork&&this.connectedNetwork.id!=n){if(i)return;i=!0,this.switchNetwork(this.connectedNetwork.id).then((()=>{t(this.connectedAccount=r.address)})).catch((()=>{e("switch-chain-rejected")}))}else this.setConnectedNetwork(n),t(this.connectedAccount=r.address)}catch(t){n.rejectMessage(t,e)}}))}catch(t){n.rejectMessage(t,e)}}))}switchNetwork(t){return u({chainId:t})}setConnectedNetwork(t){this.connectedNetwork=this.networks.find((e=>e.id==t))}personalSign(t){return new Promise((async(e,r)=>{try{e(await y({message:t}))}catch(t){n.rejectMessage(t,r)}}))}sendTransaction(t){return new Promise((async(e,r)=>{this.request({method:"eth_sendTransaction",params:t}).then((t=>{e(t)})).catch((t=>{n.rejectMessage(t,r)}))}))}getEstimateGas(t){return new Promise((async(e,r)=>{this.request({method:"eth_estimateGas",params:[t]}).then((t=>{e(t)})).catch((t=>{n.rejectMessage(t,r)}))}))}coinTransfer(t,e){return new Promise((async(r,i)=>{try{const s=this.connectedNetwork.nativeCurrency.decimals,o=await this.request({method:"eth_getBalance",params:[this.connectedAccount,"latest"]});if(parseFloat(e)>n.toDec(o,s))return i("insufficient-balance");if(parseFloat(e)<0)return i("transfer-amount-error");const a=n.toHex(e,s);try{const{hash:e}=await w(await b({to:t,value:a,account:this.connectedAccount}));r(e)}catch(t){n.rejectMessage(t,i)}}catch(t){n.rejectMessage(t,i)}}))}async writeContract(t){let{hash:e}=await p(await f(t));return e}async readContract(t,e,r,n){return await d({abi:r,args:n,address:t,functionName:e})}tokenTransfer(t,e,r){return new Promise((async(i,s)=>{try{const o=await h({address:r}),a=await this.readContract(r,"balanceOf",[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],[this.connectedAccount]);if(parseFloat(e)>n.toDec(a,o.decimals))return s("insufficient-balance");if(parseFloat(e)<0)return s("transfer-amount-error");const c=n.toHex(e,o.decimals);i(await this.writeContract({address:r,abi:[{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"}],functionName:"transfer",args:[t,c]}))}catch(t){n.rejectMessage(t,s)}}))}transfer(t,e,r=null){return r?this.tokenTransfer(t,e,r):this.coinTransfer(t,e)}}},33555:(t,e,r)=>{const n=r(5946);t.exports=Object.assign(n,{rejectMessage:async(t,e)=>(console.error(t),"object"==typeof t&&"ContractFunctionExecutionError"==t.name?e("contract-function-error"):e("request-rejected"))})},35883:()=>{},46601:()=>{},72260:()=>{},72895:()=>{},31865:()=>{},24654:()=>{},52361:()=>{},94616:()=>{},63083:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";const n=r(85346);t.exports=o;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},s={mapHttpRequest:d,mapHttpResponse:d,wrapRequestSerializer:p,wrapResponseSerializer:p,wrapErrorSerializer:p,req:d,res:d,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const r in t)void 0===e[r]&&(e[r]=t[r]);return e}};function o(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const r=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const n=t.serializers||{},s=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,n);let d=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(d=!1),"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===t.enabled&&(t.level="silent");const p=t.level||"info",m=Object.create(r);m.log||(m.log=f),Object.defineProperty(m,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(m,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,a(g,m,"error","log"),a(g,m,"fatal","error"),a(g,m,"warn","error"),a(g,m,"info","log"),a(g,m,"debug","log"),a(g,m,"trace","log")}});const g={transmit:e,serialize:s,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:h(t)};return m.levels=o.levels,m.level=p,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=f,m.serializers=n,m._serialize=s,m._stdErrSerialize=d,m.child=function(r,i){if(!r)throw new Error("missing bindings for child Pino");i=i||{},s&&r.serializers&&(i.serializers=r.serializers);const o=i.serializers;if(s&&o){var a=Object.assign({},n,o),h=!0===t.browser.serialize?Object.keys(a):s;delete r.serializers,c([r],h,a,this._stdErrSerialize)}function d(t){this._childLevel=1+(0|t._childLevel),this.error=l(t,r,"error"),this.fatal=l(t,r,"fatal"),this.warn=l(t,r,"warn"),this.info=l(t,r,"info"),this.debug=l(t,r,"debug"),this.trace=l(t,r,"trace"),a&&(this.serializers=a,this._serialize=h),e&&(this._logEvent=u([].concat(t._logEvent.bindings,r)))}return d.prototype=this,new d(this)},e&&(m._logEvent=u()),m}function a(t,e,r,s){const a=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?f:a[r]?a[r]:i[r]||i[s]||f,function(t,e,r){var s;(t.transmit||e[r]!==f)&&(e[r]=(s=e[r],function(){const a=t.timestamp(),l=new Array(arguments.length),h=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&n in r&&(t[i][n]=r[n](t[i][n]))}function l(t,e,r){return function(){const n=new Array(1+arguments.length);n[0]=e;for(var i=1;i{"use strict";r.r(e),r.d(e,{Struct:()=>u,StructError:()=>n,any:()=>k,array:()=>S,assert:()=>h,assign:()=>g,bigint:()=>C,boolean:()=>M,coerce:()=>J,create:()=>d,date:()=>I,defaulted:()=>Q,define:()=>y,deprecated:()=>w,dynamic:()=>b,empty:()=>X,enums:()=>P,func:()=>O,instance:()=>T,integer:()=>N,intersection:()=>R,is:()=>f,lazy:()=>v,literal:()=>B,map:()=>j,mask:()=>p,max:()=>et,min:()=>rt,never:()=>L,nonempty:()=>nt,nullable:()=>U,number:()=>D,object:()=>$,omit:()=>E,optional:()=>F,partial:()=>x,pattern:()=>it,pick:()=>_,record:()=>z,refine:()=>ot,regexp:()=>H,set:()=>W,size:()=>st,string:()=>q,struct:()=>A,trimmed:()=>Y,tuple:()=>V,type:()=>G,union:()=>K,unknown:()=>Z,validate:()=>m});class n extends TypeError{constructor(t,e){let r;const{message:n,explanation:i,...s}=t,{path:o}=t,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...e()])}}function i(t){return"object"==typeof t&&null!=t}function s(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function o(t){return"symbol"==typeof t?t.toString():"string"==typeof t?JSON.stringify(t):`${t}`}function a(t,e,r,n){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});const{path:i,branch:s}=e,{type:a}=r,{refinement:c,message:l=`Expected a value of type \`${a}\`${c?` with refinement \`${c}\``:""}, but received: \`${o(n)}\``}=t;return{value:n,type:a,refinement:c,key:i[i.length-1],path:i,branch:s,...t,message:l}}function*c(t,e,r,n){var s;i(s=t)&&"function"==typeof s[Symbol.iterator]||(t=[t]);for(const i of t){const t=a(i,e,r,n);t&&(yield t)}}function*l(t,e,r={}){const{path:n=[],branch:s=[t],coerce:o=!1,mask:a=!1}=r,c={path:n,branch:s};if(o&&(t=e.coercer(t,c),a&&"type"!==e.type&&i(e.schema)&&i(t)&&!Array.isArray(t)))for(const r in t)void 0===e.schema[r]&&delete t[r];let u="valid";for(const n of e.validator(t,c))n.explanation=r.message,u="not_valid",yield[n,void 0];for(let[h,d,p]of e.entries(t,c)){const e=l(d,p,{path:void 0===h?n:[...n,h],branch:void 0===h?s:[...s,d],coerce:o,mask:a,message:r.message});for(const r of e)r[0]?(u=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):o&&(d=r[1],void 0===h?t=d:t instanceof Map?t.set(h,d):t instanceof Set?t.add(d):i(t)&&(void 0!==d||h in t)&&(t[h]=d))}if("not_valid"!==u)for(const n of e.refiner(t,c))n.explanation=r.message,u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,t])}class u{constructor(t){const{type:e,schema:r,validator:n,refiner:i,coercer:s=(t=>t),entries:o=function*(){}}=t;this.type=e,this.schema=r,this.entries=o,this.coercer=s,this.validator=n?(t,e)=>c(n(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>c(i(t,e),e,this,t):()=>[]}assert(t,e){return h(t,this,e)}create(t,e){return d(t,this,e)}is(t){return f(t,this)}mask(t,e){return p(t,this,e)}validate(t,e={}){return m(t,this,e)}}function h(t,e,r){const n=m(t,e,{message:r});if(n[0])throw n[0]}function d(t,e,r){const n=m(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function p(t,e,r){const n=m(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function f(t,e){return!m(t,e)[0]}function m(t,e,r={}){const i=l(t,e,r),s=function(t){const{done:e,value:r}=t.next();return e?void 0:r}(i);return s[0]?[new n(s[0],(function*(){for(const t of i)t[0]&&(yield t[0])})),void 0]:[void 0,s[1]]}function g(...t){const e="type"===t[0].type,r=t.map((t=>t.schema)),n=Object.assign({},...r);return e?G(n):$(n)}function y(t,e){return new u({type:t,schema:null,validator:e})}function w(t,e){return new u({...t,refiner:(e,r)=>void 0===e||t.refiner(e,r),validator:(r,n)=>void 0===r||(e(r,n),t.validator(r,n))})}function b(t){return new u({type:"dynamic",schema:null,*entries(e,r){const n=t(e,r);yield*n.entries(e,r)},validator:(e,r)=>t(e,r).validator(e,r),coercer:(e,r)=>t(e,r).coercer(e,r),refiner:(e,r)=>t(e,r).refiner(e,r)})}function v(t){let e;return new u({type:"lazy",schema:null,*entries(r,n){e??(e=t()),yield*e.entries(r,n)},validator:(r,n)=>(e??(e=t()),e.validator(r,n)),coercer:(r,n)=>(e??(e=t()),e.coercer(r,n)),refiner:(r,n)=>(e??(e=t()),e.refiner(r,n))})}function E(t,e){const{schema:r}=t,n={...r};for(const t of e)delete n[t];return"type"===t.type?G(n):$(n)}function x(t){const e=t instanceof u?{...t.schema}:{...t};for(const t in e)e[t]=F(e[t]);return $(e)}function _(t,e){const{schema:r}=t,n={};for(const t of e)n[t]=r[t];return $(n)}function A(t,e){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),y(t,e)}function k(){return y("any",(()=>!0))}function S(t){return new u({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[r,n]of e.entries())yield[r,n,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${o(t)}`})}function C(){return y("bigint",(t=>"bigint"==typeof t))}function M(){return y("boolean",(t=>"boolean"==typeof t))}function I(){return y("date",(t=>t instanceof Date&&!isNaN(t.getTime())||`Expected a valid \`Date\` object, but received: ${o(t)}`))}function P(t){const e={},r=t.map((t=>o(t))).join();for(const r of t)e[r]=r;return new u({type:"enums",schema:e,validator:e=>t.includes(e)||`Expected one of \`${r}\`, but received: ${o(e)}`})}function O(){return y("func",(t=>"function"==typeof t||`Expected a function, but received: ${o(t)}`))}function T(t){return y("instance",(e=>e instanceof t||`Expected a \`${t.name}\` instance, but received: ${o(e)}`))}function N(){return y("integer",(t=>"number"==typeof t&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${o(t)}`))}function R(t){return new u({type:"intersection",schema:null,*entries(e,r){for(const n of t)yield*n.entries(e,r)},*validator(e,r){for(const n of t)yield*n.validator(e,r)},*refiner(e,r){for(const n of t)yield*n.refiner(e,r)}})}function B(t){const e=o(t),r=typeof t;return new u({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:r=>r===t||`Expected the literal \`${e}\`, but received: ${o(r)}`})}function j(t,e){return new u({type:"map",schema:null,*entries(r){if(t&&e&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,t],yield[n,i,e]},coercer:t=>t instanceof Map?new Map(t):t,validator:t=>t instanceof Map||`Expected a \`Map\` object, but received: ${o(t)}`})}function L(){return y("never",(()=>!1))}function U(t){return new u({...t,validator:(e,r)=>null===e||t.validator(e,r),refiner:(e,r)=>null===e||t.refiner(e,r)})}function D(){return y("number",(t=>"number"==typeof t&&!isNaN(t)||`Expected a number, but received: ${o(t)}`))}function $(t){const e=t?Object.keys(t):[],r=L();return new u({type:"object",schema:t||null,*entries(n){if(t&&i(n)){const i=new Set(Object.keys(n));for(const r of e)i.delete(r),yield[r,n[r],t[r]];for(const t of i)yield[t,n[t],r]}},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`,coercer:t=>i(t)?{...t}:t})}function F(t){return new u({...t,validator:(e,r)=>void 0===e||t.validator(e,r),refiner:(e,r)=>void 0===e||t.refiner(e,r)})}function z(t,e){return new u({type:"record",schema:null,*entries(r){if(i(r))for(const n in r){const i=r[n];yield[n,n,t],yield[n,i,e]}},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`})}function H(){return y("regexp",(t=>t instanceof RegExp))}function W(t){return new u({type:"set",schema:null,*entries(e){if(t&&e instanceof Set)for(const r of e)yield[r,r,t]},coercer:t=>t instanceof Set?new Set(t):t,validator:t=>t instanceof Set||`Expected a \`Set\` object, but received: ${o(t)}`})}function q(){return y("string",(t=>"string"==typeof t||`Expected a string, but received: ${o(t)}`))}function V(t){const e=L();return new u({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(t.length,r.length);for(let i=0;iArray.isArray(t)||`Expected an array, but received: ${o(t)}`})}function G(t){const e=Object.keys(t);return new u({type:"type",schema:t,*entries(r){if(i(r))for(const n of e)yield[n,r[n],t[n]]},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`,coercer:t=>i(t)?{...t}:t})}function K(t){const e=t.map((t=>t.type)).join(" | ");return new u({type:"union",schema:null,coercer(e){for(const r of t){const[t,n]=r.validate(e,{coerce:!0});if(!t)return n}return e},validator(r,n){const i=[];for(const e of t){const[...t]=l(r,e,n),[s]=t;if(!s[0])return[];for(const[e]of t)e&&i.push(e)}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${o(r)}`,...i]}})}function Z(){return y("unknown",(()=>!0))}function J(t,e,r){return new u({...t,coercer:(n,i)=>f(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)})}function Q(t,e,r={}){return J(t,Z(),(t=>{const n="function"==typeof e?e():e;if(void 0===t)return n;if(!r.strict&&s(t)&&s(n)){const e={...t};let r=!1;for(const t in n)void 0===e[t]&&(e[t]=n[t],r=!0);if(r)return e}return t}))}function Y(t){return J(t,q(),(t=>t.trim()))}function X(t){return ot(t,"empty",(e=>{const r=tt(e);return 0===r||`Expected an empty ${t.type} but received one with a size of \`${r}\``}))}function tt(t){return t instanceof Map||t instanceof Set?t.size:t.length}function et(t,e,r={}){const{exclusive:n}=r;return ot(t,"max",(r=>n?rn?r>e:r>=e||`Expected a ${t.type} greater than ${n?"":"or equal to "}${e} but received \`${r}\``))}function nt(t){return ot(t,"nonempty",(e=>tt(e)>0||`Expected a nonempty ${t.type} but received an empty one`))}function it(t,e){return ot(t,"pattern",(r=>e.test(r)||`Expected a ${t.type} matching \`/${e.source}/\` but received "${r}"`))}function st(t,e,r=e){const n=`Expected a ${t.type}`,i=e===r?`of \`${e}\``:`between \`${e}\` and \`${r}\``;return ot(t,"size",(t=>{if("number"==typeof t||t instanceof Date)return e<=t&&t<=r||`${n} ${i} but received \`${t}\``;if(t instanceof Map||t instanceof Set){const{size:s}=t;return e<=s&&s<=r||`${n} with a size ${i} but received one with a size of \`${s}\``}{const{length:s}=t;return e<=s&&s<=r||`${n} with a length ${i} but received one with a length of \`${s}\``}}))}function ot(t,e,r){return new u({...t,*refiner(n,i){yield*t.refiner(n,i);const s=c(r(n,i),i,t,n);for(const t of s)yield{...t,refinement:e}}})}},53516:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t?Number.parseInt(t,"0x"===t.trim().substring(0,2)?16:10):"bigint"==typeof t?Number(t):t}r.d(e,{J:()=>n})},92219:(t,e,r)=>{"use strict";r.d(e,{_:()=>d});var n,i=r(57858),s=r(53516),o=r(53324),a=r(45775),c=r(39028),l=r(91677),u=r(3980),h=r(92106),d=class extends o.wR{constructor({chains:t,options:e}={}){const r={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;const t=window.ethereum;return t?.providers&&t.providers.length>0?t.providers[0]:t},...e};super({chains:t,options:r}),this.id="injected",(0,o.Ko)(this,n,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,a.K)(t[0])})},this.onChainChanged=t=>{const e=(0,s.J)(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=async t=>{1013===t.code&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))};const i=r.getProvider();if("string"==typeof r.name)this.name=r.name;else if(i){const t=function(t){if(!t)return"Injected";const e=t=>t.isApexWallet?"Apex Wallet":t.isAvalanche?"Core Wallet":t.isBackpack?"Backpack":t.isBifrost?"Bifrost Wallet":t.isBitKeep?"BitKeep":t.isBitski?"Bitski":t.isBlockWallet?"BlockWallet":t.isBraveWallet?"Brave Wallet":t.isCoin98?"Coin98 Wallet":t.isCoinbaseWallet?"Coinbase Wallet":t.isDawn?"Dawn Wallet":t.isDefiant?"Defiant":t.isDesig?"Desig Wallet":t.isEnkrypt?"Enkrypt":t.isExodus?"Exodus":t.isFordefi?"Fordefi":t.isFrame?"Frame":t.isFrontier?"Frontier Wallet":t.isGamestop?"GameStop Wallet":t.isHaqqWallet?"HAQQ Wallet":t.isHyperPay?"HyperPay Wallet":t.isImToken?"ImToken":t.isHaloWallet?"Halo Wallet":t.isKuCoinWallet?"KuCoin Wallet":t.isMathWallet?"MathWallet":t.isNovaWallet?"Nova Wallet":t.isOkxWallet||t.isOKExWallet?"OKX Wallet":t.isOktoWallet?"Okto Wallet":t.isOneInchIOSWallet||t.isOneInchAndroidWallet?"1inch Wallet":t.isOneKey?"OneKey Wallet":t.isOpera?"Opera":t.isPhantom?"Phantom":t.isPortal?"Ripio Portal":t.isRabby?"Rabby Wallet":t.isRainbow?"Rainbow":t.isSafePal?"SafePal Wallet":t.isStatus?"Status":t.isSubWallet?"SubWallet":t.isTalisman?"Talisman":t.isTally?"Taho":t.isTokenPocket?"TokenPocket":t.isTokenary?"Tokenary":t.isTrust||t.isTrustWallet?"Trust Wallet":t.isTTWallet?"TTWallet":t.isXDEFI?"XDEFI Wallet":t.isZeal?"Zeal":t.isZerion?"Zerion":t.isMetaMask?"MetaMask":void 0;if(t.providers?.length){const r=new Set;let n=1;for(const i of t.providers){let t=e(i);t||(t=`Unknown Wallet #${n}`,n+=1),r.add(t)}const i=[...r];return i.length?i:i[0]??"Injected"}return e(t)??"Injected"}(i);r.name?this.name=r.name(t):this.name="string"==typeof t?t:t[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:t}={}){try{const e=await this.getProvider();if(!e)throw new i.N;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await e.request({method:"eth_requestAccounts"}),n=(0,a.K)(r[0]);let s=await this.getChainId(),o=this.isChainUnsupported(s);return t&&s!==t&&(s=(await this.switchChain(t)).id,o=this.isChainUnsupported(s)),this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:s,unsupported:o}}}catch(t){if(this.isUserRejectedRequestError(t))throw new c.ab(t);if(-32002===t.code)throw new c.pT(t);throw t}}async disconnect(){const t=await this.getProvider();t?.removeListener&&(t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){const t=await this.getProvider();if(!t)throw new i.N;const e=await t.request({method:"eth_accounts"});return(0,a.K)(e[0])}async getChainId(){const t=await this.getProvider();if(!t)throw new i.N;return t.request({method:"eth_chainId"}).then(s.J)}async getProvider(){const t=this.options.getProvider();return t&&(0,o.qx)(this,n,t),(0,o.ac)(this,n)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,u.P)(e)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new i.N;return!!await this.getAccount()}catch{return!1}}async switchChain(t){const e=await this.getProvider();if(!e)throw new i.N;const r=(0,h.eC)(t);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise((e=>this.on("change",(({chain:r})=>{r?.id===t&&e()}))))]),this.chains.find((e=>e.id===t))??{id:t,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const s=this.chains.find((e=>e.id===t));if(!s)throw new i.B({chainId:t,connectorId:this.id});if(4902===n.code||4902===n?.data?.originalError?.code)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:[s.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(s)}]}),await this.getChainId()!==t)throw new c.ab(new Error("User rejected switch after adding network."));return s}catch(t){throw new c.ab(t)}if(this.isUserRejectedRequestError(n))throw new c.ab(n);throw new c.x3(n)}}async watchAsset({address:t,decimals:e=18,image:r,symbol:n}){const s=await this.getProvider();if(!s)throw new i.N;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:e,image:r,symbol:n}}})}isUserRejectedRequestError(t){return 4001===t.code}};n=new WeakMap},57858:(t,e,r)=>{"use strict";r.d(e,{B:()=>n,N:()=>i});var n=class extends Error{constructor({chainId:t,connectorId:e}){super(`Chain "${t}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},i=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}}},53324:(t,e,r)=>{"use strict";r.d(e,{Ko:()=>c,U9:()=>u,ac:()=>a,qx:()=>l,wR:()=>h});var n=r(26729),i=r(66403),s=r(6891),o=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},a=(t,e,r)=>(o(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},l=(t,e,r,n)=>(o(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),u=(t,e,r)=>(o(t,e,"access private method"),r),h=class extends n{constructor({chains:t=[i.R,s.w],options:e}){super(),this.chains=t,this.options=e}getBlockExplorerUrls(t){const{default:e,...r}=t.blockExplorers??{};if(e)return[e.url,...Object.values(r).map((t=>t.url))]}isChainUnsupported(t){return!this.chains.some((e=>e.id===t))}setStorage(t){this.storage=t}}},90719:(t,e,r)=>{"use strict";r.r(e),r.d(e,{acala:()=>i,arbitrum:()=>s,arbitrumGoerli:()=>o,arbitrumNova:()=>a,arbitrumSepolia:()=>l,astar:()=>c,astarZkatana:()=>u,aurora:()=>h,auroraTestnet:()=>d,avalanche:()=>p,avalancheFuji:()=>f,bahamut:()=>m,base:()=>E,baseGoerli:()=>x,baseSepolia:()=>_,bearNetworkChainMainnet:()=>A,bearNetworkChainTestnet:()=>k,bitTorrent:()=>S,bitTorrentTestnet:()=>C,boba:()=>M,bronos:()=>I,bronosTestnet:()=>P,bsc:()=>O,bscTestnet:()=>T,bxn:()=>N,bxnTestnet:()=>R,canto:()=>B,celo:()=>ut,celoAlfajores:()=>ht,celoCannoli:()=>pt,chiliz:()=>dt,classic:()=>ft,confluxESpace:()=>mt,confluxESpaceTestnet:()=>gt,coreDao:()=>yt,cronos:()=>wt,cronosTestnet:()=>bt,crossbell:()=>vt,dfk:()=>Et,dogechain:()=>xt,edgeware:()=>_t,edgewareTestnet:()=>At,ekta:()=>It,ektaTestnet:()=>Pt,eos:()=>kt,eosTestnet:()=>St,evmos:()=>Ct,evmosTestnet:()=>Mt,fantom:()=>Ot,fantomSonicTestnet:()=>Tt,fantomTestnet:()=>Nt,fibo:()=>Rt,filecoin:()=>Bt,filecoinCalibration:()=>jt,filecoinHyperspace:()=>Lt,flare:()=>Ut,flareTestnet:()=>Dt,foundry:()=>$t,fuse:()=>Ft,fuseSparknet:()=>zt,gnosis:()=>Zt,gnosisChiado:()=>Jt,gobi:()=>Gt,goerli:()=>Kt.w,haqqMainnet:()=>Xt,haqqTestedge2:()=>te,hardhat:()=>Qt,harmonyOne:()=>Yt,holesky:()=>ee,iotex:()=>Ht,iotexTestnet:()=>Wt,jbc:()=>qt,karura:()=>Vt,kava:()=>re,kavaTestnet:()=>ne,klaytn:()=>ie,klaytnBaobab:()=>se,kroma:()=>oe,kromaSepolia:()=>ae,linea:()=>ce,lineaTestnet:()=>le,localhost:()=>ue,lukso:()=>he,mainnet:()=>de.R,mandala:()=>pe,manta:()=>fe,mantaTestnet:()=>me,mantle:()=>ge,mantleTestnet:()=>ye,meter:()=>we,meterTestnet:()=>be,metis:()=>ve,metisGoerli:()=>Ee,mev:()=>xe,mevTestnet:()=>_e,modeTestnet:()=>Ae,moonbaseAlpha:()=>ke,moonbeam:()=>Se,moonbeamDev:()=>Ce,moonriver:()=>Me,neonDevnet:()=>Ie,neonMainnet:()=>Pe,nexi:()=>Oe,nexilix:()=>Te,oasisTestnet:()=>Re,oasys:()=>Ne,okc:()=>Be,opBNB:()=>De,opBNBTestnet:()=>$e,optimism:()=>je,optimismGoerli:()=>Le,optimismSepolia:()=>Ue,pgn:()=>Fe,pgnTestnet:()=>ze,plinga:()=>He,polygon:()=>We,polygonMumbai:()=>qe,polygonZkEvm:()=>Ge,polygonZkEvmTestnet:()=>Ve,pulsechain:()=>Ke,pulsechainV4:()=>Ze,qMainnet:()=>Je,qTestnet:()=>Qe,rollux:()=>Ye,rolluxTestnet:()=>Xe,ronin:()=>tr,rootstock:()=>er,saigon:()=>rr,sapphire:()=>nr,sapphireTestnet:()=>ir,scroll:()=>sr,scrollSepolia:()=>or,scrollTestnet:()=>ar,sepolia:()=>cr.F,shardeumSphinx:()=>Ir,shibarium:()=>Pr,shimmer:()=>lr,shimmerTestnet:()=>ur,skaleBlockBrawlers:()=>hr,skaleCalypso:()=>dr,skaleCalypsoTestnet:()=>pr,skaleChaosTestnet:()=>fr,skaleCryptoBlades:()=>mr,skaleCryptoColosseum:()=>gr,skaleEuropa:()=>yr,skaleEuropaTestnet:()=>wr,skaleExorde:()=>br,skaleHumanProtocol:()=>vr,skaleNebula:()=>Er,skaleNebulaTestnet:()=>xr,skaleRazor:()=>_r,skaleTitan:()=>Ar,skaleTitanTestnet:()=>kr,songbird:()=>Sr,songbirdTestnet:()=>Cr,spicy:()=>Mr,syscoin:()=>Or,syscoinTestnet:()=>Tr,taikoJolnir:()=>Rr,taikoTestnetSepolia:()=>Br,taraxa:()=>Nr,taraxaTestnet:()=>jr,telos:()=>Lr,telosTestnet:()=>Ur,tenet:()=>Dr,thunderTestnet:()=>$r,vechain:()=>Fr,wanchain:()=>zr,wanchainTestnet:()=>Hr,wemix:()=>Wr,wemixTestnet:()=>qr,xdc:()=>Vr,xdcTestnet:()=>Gr,zetachainAthensTestnet:()=>nn,zhejiang:()=>Kr,zilliqa:()=>sn,zilliqaTestnet:()=>on,zkFair:()=>Zr,zkFairTestnet:()=>Jr,zkSync:()=>tn,zkSyncSepoliaTestnet:()=>rn,zkSyncTestnet:()=>en,zora:()=>an,zoraSepolia:()=>cn,zoraTestnet:()=>ln});var n=r(86164);const i=(0,n.a)({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network"}},testnet:!1}),s=(0,n.a)({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),o=(0,n.a)({id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),a=(0,n.a)({id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),c=(0,n.a)({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{public:{http:["https://astar.api.onfinality.io/public"]},default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),l=(0,n.a)({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),u=(0,n.a)({id:1261120,name:"Astar zkEVM Testnet zKatana",network:"zKatana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]},public:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]}},blockExplorers:{blockscout:{name:"Blockscout zKatana chain explorer",url:"https://zkatana.blockscout.com"},default:{name:"zKatana Explorer",url:"https://zkatana.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:31317}},testnet:!0}),h=(0,n.a)({id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),d=(0,n.a)({id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0}),p=(0,n.a)({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),f=(0,n.a)({id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),m=(0,n.a)({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com"}}});var g=r(95946),y=r(43310),w=r(6073),b=r(30866);const v={block:(0,y.G)({format(t){const e=t.transactions?.map((t=>{if("string"==typeof t)return t;const e=(0,w.Tr)(t);return"0x7e"===e.typeHex&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?(0,g.y_)(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}));return{transactions:e,stateRoot:t.stateRoot}}}),transaction:(0,w.y_)({format(t){const e={};return"0x7e"===t.type&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?(0,g.y_)(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:(0,b.d)({format:t=>({l1GasPrice:t.l1GasPrice?(0,g.y_)(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?(0,g.y_)(t.l1GasUsed):null,l1Fee:t.l1Fee?(0,g.y_)(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null})})},E=(0,n.a)({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:v}),x=(0,n.a)({id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-goerli.g.alchemy.com/v2"],webSocket:["wss://base-goerli.g.alchemy.com/v2"]},default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0,sourceId:5},{formatters:v}),_=(0,n.a)({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:v}),A=(0,n.a)({id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}}),k=(0,n.a)({id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0}),S=(0,n.a)({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://bttcscan.com"},default:{name:"Bttcscan",url:"https://bttcscan.com"}}}),C=(0,n.a)({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://testnet.bttcscan.com"},default:{name:"Bttcscan",url:"https://testnet.bttcscan.com"}},testnet:!0}),M=(0,n.a)({id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),I=(0,n.a)({id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),P=(0,n.a)({id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),O=(0,n.a)({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),T=(0,n.a)({id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),N=(0,n.a)({id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}}),R=(0,n.a)({id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}}),B=(0,n.a)({id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}});var j=r(92106),L=r(74688),U=r(61836);function D(t){return 0===t||0n===t||null==t||"0"===t||""===t||"string"==typeof t&&("0x"===(0,U.f)(t).toLowerCase()||"0x00"===(0,U.f)(t).toLowerCase())}function $(t){return!D(t)}function F(t){return $(t.maxFeePerGas)&&$(t.maxPriorityFeePerGas)}function z(t){return"cip42"===t.type||F(t)&&($(t.feeCurrency)||$(t.gatewayFeeRecipient)||$(t.gatewayFee))}function H(t){return"cip64"===t.type||F(t)&&$(t.feeCurrency)&&D(t.gatewayFee)&&D(t.gatewayFeeRecipient)}const W={block:(0,y.G)({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(t){const e=t.transactions?.map((t=>"string"==typeof t?t:{...(0,w.Tr)(t),feeCurrency:t.feeCurrency,..."0x7b"!==t.type?{gatewayFee:t.gatewayFee?(0,g.y_)(t.gatewayFee):null,gatewayFeeRecipient:t.gatewayFeeRecipient||null}:{}}));return{randomness:t.randomness,transactions:e}}}),transaction:(0,w.y_)({format(t){const e={feeCurrency:t.feeCurrency};return"0x7b"===t.type?e.type="cip64":("0x7c"===t.type&&(e.type="cip42"),e.gatewayFee=t.gatewayFee?(0,g.y_)(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:(0,L.iy)({format(t){const e={feeCurrency:t.feeCurrency};return H(t)?e.type="0x7b":(z(t)&&(e.type="0x7c"),e.gatewayFee=void 0!==t.gatewayFee?(0,j.eC)(t.gatewayFee):void 0,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}})};var q=r(26087),V=r(62027),G=r(80377),K=r(26445),Z=r(49321),J=r(57040);class Q extends V.G{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class Y extends V.G{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const X={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(t){if(t<0||t>this.bytes.length-1)throw new Y({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new Q({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},incrementPosition(t){if(t<0)throw new Q({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const r=e??this.position;return this.assertPosition(r+t-1),this.bytes.subarray(r,r+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){const t=this.inspectByte();return this.position++,t},readBytes(t){const e=this.inspectBytes(t);return this.position+=t,e},readUint8(){const t=this.inspectUint8();return this.position+=1,t},readUint16(){const t=this.inspectUint16();return this.position+=2,t},readUint24(){const t=this.inspectUint24();return this.position+=3,t},readUint32(){const t=this.inspectUint32();return this.position+=4,t},setPosition(t){this.assertPosition(t),this.position=t}};var tt=r(11187);function et(t,e="hex"){const r=rt(t),n=function(t){const e=Object.create(X);return e.bytes=t,e.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),e}(new Uint8Array(r.length));return r.encode(n),"hex"===e?(0,j.ci)(n.bytes):n.bytes}function rt(t){return Array.isArray(t)?function(t){const e=t.reduce(((t,e)=>t+e.length),0),r=nt(e);return{length:e<=55?1+e:1+r+e,encode(n){e<=55?n.pushByte(192+e):(n.pushByte(247+r),1===r?n.pushUint8(e):2===r?n.pushUint16(e):3===r?n.pushUint24(e):n.pushUint32(e));for(const{encode:e}of t)e(n)}}}(t.map((t=>rt(t)))):function(t){const e="string"==typeof t?(0,tt.nr)(t):t,r=nt(e.length);return{length:1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+r+e.length,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+r),1===r?t.pushUint8(e.length):2===r?t.pushUint16(e.length):3===r?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function nt(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new V.G("Length is too large.")}var it=r(33639);function st(t){if(!t||0===t.length)return[];const e=[];for(let r=0;r2n**256n-1n)throw new K.Hh({maxFeePerGas:i});if(r&&i&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r})}(t);const h=st(l),d=[(0,j.NC)(r),i?(0,j.NC)(i):"0x",c?(0,j.NC)(c):"0x",a?(0,j.NC)(a):"0x",n?(0,j.NC)(n):"0x",s??"0x",o?(0,j.NC)(o):"0x",u??"0x",h];if(e){const t=0n===e.v?"0x":1n===e.v?(0,j.NC)(1):27n===e.v?"0x":(0,j.NC)(1);d.push(t,(0,U.f)(e.r),(0,U.f)(e.s))}return(0,J.SM)(["0x02",et(d)])}(t,e):"eip2930"===r?function(t,e){const{chainId:r,gas:n,data:i,nonce:s,to:o,value:a,accessList:c,gasPrice:l}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new q.b({address:s});if(r||i)throw new V.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new K.Hh({maxFeePerGas:n})}(t);const u=st(c),h=[(0,j.NC)(r),s?(0,j.NC)(s):"0x",l?(0,j.NC)(l):"0x",n?(0,j.NC)(n):"0x",o??"0x",a?(0,j.NC)(a):"0x",i??"0x",u];if(e){const t=0n===e.v?"0x":1n===e.v?(0,j.NC)(1):27n===e.v?"0x":(0,j.NC)(1);h.push(t,(0,U.f)(e.r),(0,U.f)(e.s))}return(0,J.SM)(["0x01",et(h)])}(t,e):function(t,e){const{chainId:r=0,gas:n,data:i,nonce:s,to:o,value:a,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,accessList:o}=t;if(s&&!(0,Z.U)(s))throw new q.b({address:s});if(void 0!==e&&e<=0)throw new G.hJ({chainId:e});if(r||i)throw new V.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new K.Hh({maxFeePerGas:n});if(o)throw new V.G("`accessList` is not a valid Legacy Transaction attribute.")}(t);let l=[s?(0,j.NC)(s):"0x",c?(0,j.NC)(c):"0x",n?(0,j.NC)(n):"0x",o??"0x",a?(0,j.NC)(a):"0x",i??"0x"];if(e){const t=(()=>{if(r>0)return BigInt(2*r)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new it.vl({v:e.v});return t})();l=[...l,(0,j.NC)(t),e.r,e.s]}else r>0&&(l=[...l,(0,j.NC)(r),"0x","0x"]);return et(l)}(t,e)}const ct={transaction:(t,e)=>H(t)?function(t,e){!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,feeCurrency:o}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new q.b({address:s});if(n)throw new V.G("`gasPrice` is not a valid CIP-64 Transaction attribute.");if($(i)&&i>lt)throw new K.Hh({maxFeePerGas:i});if($(r)&&$(i)&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r});if($(o)&&!(0,Z.U)(o))throw new V.G("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(D(o))throw new V.G("`feeCurrency` must be provided for CIP-64 transactions.")}(t);const{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,data:h}=t,d=[(0,j.NC)(r),i?(0,j.NC)(i):"0x",c?(0,j.NC)(c):"0x",a?(0,j.NC)(a):"0x",n?(0,j.NC)(n):"0x",s??"0x",o?(0,j.NC)(o):"0x",h??"0x",st(l),u];return e&&d.push(27n===e.v?"0x":(0,j.NC)(1),(0,U.f)(e.r),(0,U.f)(e.s)),(0,J.SM)(["0x7b",et(d)])}(t,e):z(t)?function(t,e){!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,feeCurrency:o,gatewayFee:a,gatewayFeeRecipient:c}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new q.b({address:s});if(n)throw new V.G("`gasPrice` is not a valid CIP-42 Transaction attribute.");if($(i)&&i>lt)throw new K.Hh({maxFeePerGas:i});if($(r)&&$(i)&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r});if($(a)&&D(c)||$(c)&&D(a))throw new V.G("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if($(o)&&!(0,Z.U)(o))throw new V.G("`feeCurrency` MUST be a token address for CIP-42 transactions.");if($(c)&&!(0,Z.U)(c))throw new q.b(c);if(D(o)&&D(c))throw new V.G("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}(t);const{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,gatewayFeeRecipient:h,gatewayFee:d,data:p}=t,f=[(0,j.NC)(r),i?(0,j.NC)(i):"0x",c?(0,j.NC)(c):"0x",a?(0,j.NC)(a):"0x",n?(0,j.NC)(n):"0x",u??"0x",h??"0x",d?(0,j.NC)(d):"0x",s??"0x",o?(0,j.NC)(o):"0x",p??"0x",st(l)];return e&&f.push(27n===e.v?"0x":(0,j.NC)(1),(0,U.f)(e.r),(0,U.f)(e.s)),(0,J.SM)(["0x7c",et(f)])}(t,e):at(t,e)},lt=2n**256n-1n,ut=(0,n.a)({id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},{formatters:W,serializers:ct}),ht=(0,n.a)({id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},{formatters:W,serializers:ct}),dt=(0,n.a)({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]},public:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com"}}}),pt=(0,n.a)({id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},{formatters:W,serializers:ct}),ft=(0,n.a)({id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),mt=(0,n.a)({id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]},public:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),gt=(0,n.a)({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]},public:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),yt=(0,n.a)({id:1116,name:"Core Dao",network:"coreDao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{public:{http:["https://rpc.coredao.org"]},default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"},etherscan:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),wt=(0,n.a)({id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),bt=(0,n.a)({id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),vt=(0,n.a)({id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),Et=(0,n.a)({id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}}),xt=(0,n.a)({id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}}),_t=(0,n.a)({id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),At=(0,n.a)({id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}}),kt=(0,n.a)({id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),St=(0,n.a)({id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),Ct=(0,n.a)({id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),Mt=(0,n.a)({id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),It=(0,n.a)({id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}}),Pt=(0,n.a)({id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0}),Ot=(0,n.a)({id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),Tt=(0,n.a)({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]},public:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),Nt=(0,n.a)({id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}}),Rt=(0,n.a)({id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),Bt=(0,n.a)({id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),jt=(0,n.a)({id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}}),Lt=(0,n.a)({id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}}),Ut=(0,n.a)({id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}}),Dt=(0,n.a)({id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0}),$t=(0,n.a)({id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),Ft=(0,n.a)({id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),zt=(0,n.a)({id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}}),Ht=(0,n.a)({id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}}),Wt=(0,n.a)({id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}}),qt=(0,n.a)({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),Vt=(0,n.a)({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network"}},testnet:!1}),Gt=(0,n.a)({id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0});var Kt=r(6891);const Zt=(0,n.a)({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),Jt=(0,n.a)({id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]},public:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),Qt=(0,n.a)({id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}}),Yt=(0,n.a)({id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),Xt=(0,n.a)({id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}}),te=(0,n.a)({id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}}),ee=(0,n.a)({id:17e3,network:"holesky",name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77}},testnet:!0}),re=(0,n.a)({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.kava.io"]},default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),ne=(0,n.a)({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.testnet.kava.io"]},default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),ie=(0,n.a)({id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]},public:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),se=(0,n.a)({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]},public:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"},default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),oe=(0,n.a)({id:255,network:"kroma",name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]},public:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network"}},testnet:!1}),ae=(0,n.a)({id:2358,network:"kroma-sepolia",name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]},public:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network"}},testnet:!0}),ce=(0,n.a)({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),le=(0,n.a)({id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),ue=(0,n.a)({id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}}),he=(0,n.a)({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]},public:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}});var de=r(66403);const pe=(0,n.a)({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network"}},testnet:!0}),fe=(0,n.a)({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]},public:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{etherscan:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"},default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),me=(0,n.a)({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]},public:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{etherscan:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"},default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),ge=(0,n.a)({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),ye=(0,n.a)({id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0}),we=(0,n.a)({id:82,name:"Meter",network:"meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]},public:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),be=(0,n.a)({id:83,name:"Meter Testnet",network:"meter-testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]},public:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),ve=(0,n.a)({id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),Ee=(0,n.a)({id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),xe=(0,n.a)({id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),_e=(0,n.a)({id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),Ae=(0,n.a)({id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0}),ke=(0,n.a)({id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),Se=(0,n.a)({id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),Ce=(0,n.a)({id:1281,name:"Moonbeam Development Node",network:"development",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]},public:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),Me=(0,n.a)({id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),Ie=(0,n.a)({id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),Pe=(0,n.a)({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]},public:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{},testnet:!1}),Oe=(0,n.a)({id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),Te=(0,n.a)({id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),Ne=(0,n.a)({id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}}),Re=(0,n.a)({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com"}},testnet:!0}),Be=(0,n.a)({id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),je=(0,n.a)({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:v}),Le=(0,n.a)({id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},{formatters:v}),Ue=(0,n.a)({id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-sepolia.g.alchemy.com/v2"],webSocket:["wss://opt-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},testnet:!0},{formatters:v}),De=(0,n.a)({id:204,name:"opBNB",network:"opBNB Mainnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{public:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}}),$e=(0,n.a)({id:5611,name:"opBNB Testnet",network:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{public:{http:["https://opbnb-testnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0}),Fe=(0,n.a)({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]},public:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209}}},{formatters:v}),ze=(0,n.a)({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]},public:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},testnet:!0},{formatters:v}),He=(0,n.a)({id:242,name:"Plinga",network:"plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]},public:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),We=(0,n.a)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),qe=(0,n.a)({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),Ve=(0,n.a)({id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),Ge=(0,n.a)({id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),Ke=(0,n.a)({id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Ze=(0,n.a)({id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Je=(0,n.a)({id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}}),Qe=(0,n.a)({id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0}),Ye=(0,n.a)({id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),Xe=(0,n.a)({id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),tr=(0,n.a)({id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),er=(0,n.a)({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{public:{http:["https://public-node.rsk.co"]},default:{http:["https://public-node.rsk.co"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://rootstock.blockscout.com"},default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),rr=(0,n.a)({id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),nr=(0,n.a)({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),ir=(0,n.a)({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev"}},testnet:!0}),sr=(0,n.a)({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),or=(0,n.a)({id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]},public:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),ar=(0,n.a)({id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0});var cr=r(35194);const lr=(0,n.a)({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.shimmer.network"]},default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network"}}}),ur=(0,n.a)({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.testnet.shimmer.network"]},default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network"}},testnet:!0}),hr=(0,n.a)({id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),dr=(0,n.a)({id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),pr=(0,n.a)({id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0}),fr=(0,n.a)({id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0}),mr=(0,n.a)({id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),gr=(0,n.a)({id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),yr=(0,n.a)({id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),wr=(0,n.a)({id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0}),br=(0,n.a)({id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),vr=(0,n.a)({id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),Er=(0,n.a)({id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),xr=(0,n.a)({id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0}),_r=(0,n.a)({id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),Ar=(0,n.a)({id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),kr=(0,n.a)({id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0}),Sr=(0,n.a)({id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}}),Cr=(0,n.a)({id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0}),Mr=(0,n.a)({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]},public:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com"}},testnet:!0}),Ir=(0,n.a)({id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),Pr=(0,n.a)({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]},public:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{etherscan:{name:"Blockscout",url:"https://shibariumscan.io"},default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),Or=(0,n.a)({id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),Tr=(0,n.a)({id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),Nr=(0,n.a)({id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),Rr=(0,n.a)({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",network:"tko-jolnir",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]},public:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}}}),Br=(0,n.a)({id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),jr=(0,n.a)({id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),Lr=(0,n.a)({id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),Ur=(0,n.a)({id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),Dr=(0,n.a)({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{public:{http:["https://rpc.tenet.org"]},default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io"}},testnet:!1}),$r=(0,n.a)({id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0}),Fr=(0,n.a)({id:100009,name:"Vechain",network:"vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]},public:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),zr=(0,n.a)({id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),Hr=(0,n.a)({id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),Wr=(0,n.a)({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://explorer.wemix.com"},default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),qr=(0,n.a)({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"},default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"}},testnet:!0}),Vr=(0,n.a)({id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}}),Gr=(0,n.a)({id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}}),Kr=(0,n.a)({id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),Zr=(0,n.a)({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io"}},testnet:!1}),Jr=(0,n.a)({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0});var Qr=r(53992);const Yr={block:(0,y.G)({format(t){const e=t.transactions?.map((t=>{if("string"==typeof t)return t;const e=Yr.transaction.format(t);return"0x71"===e.typeHex?e.type="eip712":"0xff"===e.typeHex&&(e.type="priority"),e}));return{l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?(0,g.y_)(t.l1BatchTimestamp):null,transactions:e}}}),transaction:(0,w.y_)({format(t){const e={};return"0x71"===t.type?e.type="eip712":"0xff"===t.type&&(e.type="priority"),{...e,l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?(0,g.y_)(t.l1BatchTxIndex):null}}}),transactionReceipt:(0,b.d)({format:t=>({l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?(0,g.y_)(t.l1BatchTxIndex):null,logs:t.logs.map((t=>({...(0,Qr.U)(t),l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,transactionLogIndex:(0,g.ly)(t.transactionLogIndex),logType:t.logType}))),l2ToL1Logs:t.l2ToL1Logs.map((t=>({blockNumber:(0,g.y_)(t.blockHash),blockHash:t.blockHash,l1BatchNumber:(0,g.y_)(t.l1BatchNumber),transactionIndex:(0,g.y_)(t.transactionIndex),shardId:(0,g.y_)(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:(0,g.y_)(t.logIndex)})))})}),transactionRequest:(0,L.iy)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:t=>t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:(0,j.NC)(t.gasPerPubdata)}:{},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from((0,tt.nr)(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps}:{},...t.customSignature?{customSignature:t.customSignature}:{}},type:"eip712"===t.type?"0x71":"0xff"}:{}})},Xr={transaction:(t,e)=>{return"customSignature"in(r=t)||"paymaster"in r||"paymasterInput"in r||"gasPerPubdata"in r||"factoryDeps"in r?function(t){const{chainId:e,gas:r,nonce:n,to:i,from:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:h,paymasterInput:d,gasPerPubdata:p,data:f}=t;!function(t){const{chainId:e,to:r,from:n,paymaster:i,paymasterInput:s}=t;if(e<=0)throw new G.hJ({chainId:e});if(r&&!(0,Z.U)(r))throw new q.b({address:r});if(n&&!(0,Z.U)(n))throw new q.b({address:n});if(i&&!(0,Z.U)(i))throw new q.b({address:i});if(i&&!s)throw new V.G("`paymasterInput` must be provided when `paymaster` is defined");if(!i&&s)throw new V.G("`paymaster` must be provided when `paymasterInput` is defined")}(t);const m=[n?(0,j.NC)(n):"0x",c?(0,j.NC)(c):"0x",a?(0,j.NC)(a):"0x",r?(0,j.NC)(r):"0x",i??"0x",o?(0,j.NC)(o):"0x",f??"0x",(0,j.NC)(e),(0,j.NC)(""),(0,j.NC)(""),(0,j.NC)(e),s??"0x",p?(0,j.NC)(p):"0x",u??[],l??"0x",h&&d?[h,d]:[]];return(0,J.SM)(["0x71",et(m)])}(t):at(t,e);var r}},tn=(0,n.a)({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:Xr,formatters:Yr}),en=(0,n.a)({id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:Xr,formatters:Yr}),rn=(0,n.a)({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:Xr,formatters:Yr}),nn=(0,n.a)({id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0}),sn=(0,n.a)({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]},public:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),on=(0,n.a)({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]},public:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),an=(0,n.a)({id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},{formatters:v}),cn=(0,n.a)({id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160}},testnet:!0},{formatters:v}),ln=(0,n.a)({id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0},{formatters:v})},46070:(t,e,n)=>{"use strict";n.d(e,{Yl:()=>Pe,X4:()=>Oe,De:()=>Je,gs:()=>Ne,wi:()=>Te,OJ:()=>Re,QB:()=>Ie,$j:()=>Xe,_g:()=>Qe,o6:()=>He,vZ:()=>Be,vB:()=>Le,zP:()=>tr,em:()=>er,yS:()=>ir,YD:()=>nr,EG:()=>_r,RQ:()=>Br,bh:()=>Or,w6:()=>Tr,Lk:()=>Nr,Uj:()=>Rr,jS:()=>jr,EC:()=>sr,KI:()=>Lr,D0:()=>Ar,iE:()=>Ye,uN:()=>pr,Hy:()=>kr,uV:()=>or,Wy:()=>Ue,xz:()=>ar,jr:()=>cr,Ap:()=>fr,wp:()=>ze,uw:()=>Ur,$q:()=>dr,a4:()=>mr,JH:()=>gr,T7:()=>Dr,qC:()=>Fe,l:()=>Sr,xq:()=>Cr,If:()=>Mr,Mn:()=>$r,uH:()=>Ir,qu:()=>wr,Y$:()=>yr,Mx:()=>br,QC:()=>Pr,us:()=>Fr,pC:()=>lr,jt:()=>vr,fn:()=>Er,Tb:()=>ur,fq:()=>hr,n9:()=>xr});var i=n(92219),s=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},o=(t,e,r)=>(s(t,e,"read from private field"),r?r.call(t):e.get(t)),a=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},c=(t,e,r,n)=>(s(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),l=n(9914),u=n(16693),h=n(7210),d=n(77799),p=n(47864),f=n(61836),m=n(92106),g=n(21746),y=n(62027),w=n(15980);function b(t,e){if(!(t instanceof y.G))return!1;const r=t.walk((t=>t instanceof w.Lu));return r instanceof w.Lu&&("ResolverNotFound"===r.data?.errorName||"ResolverWildcardNotSupported"===r.data?.errorName||!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===e&&r.reason===g.$[50])}var v=n(57040),E=n(11187),x=n(43199),_=n(15102);function A(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return(0,_.v)(e)?e:null}function k(t){let e=new Uint8Array(32).fill(0);if(!t)return(0,m.ci)(e);const r=t.split(".");for(let t=r.length-1;t>=0;t-=1){const n=A(r[t]),i=n?(0,E.O0)(n):(0,x.w)((0,E.qX)(r[t]),"bytes");e=(0,x.w)((0,v.zo)([e,i]),"bytes")}return(0,m.ci)(e)}function S(t){const e=new Uint8Array(32).fill(0);return t?A(t)||(0,x.w)((0,E.qX)(t)):(0,m.ci)(e)}function C(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const r=new Uint8Array((0,E.qX)(e).byteLength+2);let n=0;const i=e.split(".");for(let t=0;t255&&(e=(0,E.qX)(`[${S(i[t]).slice(2)}]`)),r[n]=e.length,r.set(e,n+1),n+=e.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var M=n(93714),I=n(57412),P=n(39028);const O=3;function T(t,{abi:e,address:r,args:n,docsPath:i,functionName:s,sender:o}){const{code:a,data:c,message:l,shortMessage:u}=t instanceof w.VQ?t:t instanceof y.G?t.walk((t=>"data"in t))||t.walk():{},h=t instanceof I.wb?new w.Dk({functionName:s}):[O,P.XS.code].includes(a)&&(c||l||u)?new w.Lu({abi:e,data:"object"==typeof c?c.data:c,functionName:s,message:u??l}):t;return new w.uq(h,{abi:e,args:n,contractAddress:r,docsPath:i,functionName:s,sender:o})}var N=n(76143);async function R(t,{abi:e,address:r,args:n,functionName:i,...s}){const o=(0,d.R)({abi:e,args:n,functionName:i});try{const{data:a}=await(0,M.s)(t,N.R,"call")({data:o,to:r,...s});return(0,h.k)({abi:e,args:n,functionName:i,data:a||"0x"})}catch(t){throw T(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}class B extends y.G{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class j extends y.G{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class L extends y.G{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class U extends y.G{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const D=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,$=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,F=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,z=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function H(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function W({uri:t,gatewayUrls:e}){const r=F.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};const n=H(e?.ipfs,"https://ipfs.io"),i=H(e?.arweave,"https://arweave.net"),s=t.match(D),{protocol:o,subpath:a,target:c,subtarget:l=""}=s?.groups||{},u="ipns:/"===o||"ipns/"===a,h="ipfs:/"===o||"ipfs/"===a||$.test(t);if(t.startsWith("http")&&!u&&!h){let r=t;return e?.arweave&&(r=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((u||h)&&c)return{uri:`${n}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&c)return{uri:`${i}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let d=t.replace(z,"");if(d.startsWith("{const r=new Image;r.onload=()=>{e(!0)},r.onerror=()=>{e(!1)},r.src=t}))}}(r);if(i)return r;throw new L({uri:e})}async function G(t,{blockNumber:e,blockTag:r,name:n,key:i,universalResolverAddress:s}){let o=s;if(!o){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,p.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const s=await(0,M.s)(t,R,"readContract")({address:o,abi:u.k3,functionName:"resolve",args:[(0,m.NC)(C(n)),(0,d.R)({abi:u.nZ,functionName:"text",args:[k(n),i]})],blockNumber:e,blockTag:r});if("0x"===s[0])return null;const a=(0,h.k)({abi:u.nZ,functionName:"text",data:s[0]});return""===a?null:a}catch(t){if(b(t,"resolve"))return null;throw t}}function K(t,{method:e}){const r={};return"fallback"===t.transport.type&&t.transport.onResponse?.((({method:t,response:n,status:i,transport:s})=>{"success"===i&&e===t&&(r[n]=s.request)})),e=>r[e]||t.request}class Z extends y.G{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var J=n(54092),Q=n(45444),Y=n(80522),X=n(40840);function tt({abi:t,eventName:e,args:r}){let n=t[0];if(e&&(n=(0,X.mE)({abi:t,args:r,name:e}),!n))throw new I.mv(e,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new I.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const i=(0,Y.t)(n),s=(0,J.e)(i);let o=[];if(r&&"inputs"in n){const t=n.inputs?.filter((t=>"indexed"in t&&t.indexed)),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map((t=>r[t.name]))??[]:[];e.length>0&&(o=t?.map(((t,r)=>Array.isArray(e[r])?e[r].map(((n,i)=>et({param:t,value:e[r][i]}))):e[r]?et({param:t,value:e[r]}):null))??[])}return[s,...o]}function et({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return(0,x.w)((0,E.O0)(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Z(t.type);return(0,Q.E)([t],[e])}async function rt(t,{address:e,abi:r,args:n,eventName:i,fromBlock:s,strict:o,toBlock:a}){const c=K(t,{method:"eth_newFilter"}),l=i?tt({abi:r,args:n,eventName:i}):void 0,u=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof s?(0,m.eC)(s):s,toBlock:"bigint"==typeof a?(0,m.eC)(a):a,topics:l}]});return{abi:r,args:n,eventName:i,id:u,request:c(u),strict:o,type:"event"}}async function nt(t,{address:e,args:r,event:n,events:i,fromBlock:s,strict:o,toBlock:a}={}){const c=i??(n?[n]:void 0),l=K(t,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap((t=>tt({abi:[t],eventName:t.name,args:r})))],n&&(u=u[0]));const h=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof s?(0,m.eC)(s):s,toBlock:"bigint"==typeof a?(0,m.eC)(a):a,...u.length?{topics:u}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:s,id:h,request:l(h),strict:o,toBlock:a,type:"event"}}async function it(t){const e=K(t,{method:"eth_newPendingTransactionFilter"}),r=await t.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:e(r),type:"transaction"}}var st=n(14503),ot=n(84241);async function at(t,{abi:e,address:r,args:n,functionName:i,...s}){const o=(0,d.R)({abi:e,args:n,functionName:i});try{return await(0,M.s)(t,ot.Q,"estimateGas")({data:o,to:r,...s})}catch(t){throw T(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:(s.account?(0,st.T)(s.account):void 0)?.address})}}var ct=n(43861),lt=n(79379),ut=n(75016);const ht=new Map,dt=new Map,pt=t=>`blockNumber.${t}`;async function ft(t,{cacheTime:e=t.cacheTime,maxAge:r}={}){const n=await async function(t,{cacheKey:e,cacheTime:r=1/0}){const n=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:r=>e.set(t,r)}),r=e(t,ht),n=e(t,dt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(e),i=n.response.get();if(i&&r>0&&(new Date).getTime()-i.created.getTime()t.request({method:"eth_blockNumber"})),{cacheKey:pt(t.uid),cacheTime:r??e});return BigInt(n)}var mt=n(95946),gt=n(79524),yt=n(34450);const wt="/docs/contract/decodeEventLog";function bt({abi:t,data:e,strict:r,topics:n}){const i=r??!0,[s,...o]=n;if(!s)throw new I.FM({docsPath:wt});const a=t.find((t=>"event"===t.type&&s===(0,J.e)((0,Y.t)(t))));if(!a||!("name"in a)||"event"!==a.type)throw new I.lC(s,{docsPath:wt});const{name:c,inputs:l}=a,u=l?.some((t=>!("name"in t&&t.name)));let h=u?[]:{};const d=l.filter((t=>"indexed"in t&&t.indexed));for(let t=0;t!("indexed"in t&&t.indexed)));if(p.length>0)if(e&&"0x"!==e)try{const t=(0,yt.r)(p,e);if(t)if(u)h=[...h,...t];else for(let e=0;e0?h:void 0}}function vt({param:t,value:e}){return"string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/)?e:((0,yt.r)([t],e)||[])[0]}var Et=n(53992);async function xt(t,{address:e,blockHash:r,fromBlock:n,toBlock:i,event:s,events:o,args:a,strict:c}={}){const l=c??!1,u=o??(s?[s]:void 0);let h,d=[];return u&&(d=[u.flatMap((t=>tt({abi:[t],eventName:t.name,args:a})))],s&&(d=d[0])),h=r?await t.request({method:"eth_getLogs",params:[{address:e,topics:d,blockHash:r}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:d,fromBlock:"bigint"==typeof n?(0,m.eC)(n):n,toBlock:"bigint"==typeof i?(0,m.eC)(i):i}]}),h.map((t=>{try{const{eventName:e,args:r}=u?bt({abi:u,data:t.data,topics:t.topics,strict:l}):{eventName:void 0,args:void 0};return(0,Et.U)(t,{args:r,eventName:e})}catch(e){let r,n;if(e instanceof I.SM||e instanceof I.Gy){if(l)return;r=e.abiItem.name,n=e.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,Et.U)(t,{args:n?[]:{},eventName:r})}})).filter(Boolean)}async function _t(t,{abi:e,address:r,args:n,blockHash:i,eventName:s,fromBlock:o,toBlock:a,strict:c}){const l=s?(0,X.mE)({abi:e,name:s}):void 0,u=l?void 0:e.filter((t=>"event"===t.type));return(0,M.s)(t,xt,"getLogs")({address:r,args:n,blockHash:i,event:l,events:u,fromBlock:o,toBlock:a,strict:c})}async function At(t,{filter:e}){const r="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map((t=>{if("string"==typeof t)return t;try{const{eventName:n,args:i}="abi"in e&&e.abi?bt({abi:e.abi,data:t.data,topics:t.topics,strict:r}):{eventName:void 0,args:void 0};return(0,Et.U)(t,{args:i,eventName:n})}catch(r){let n,i;if(r instanceof I.SM||r instanceof I.Gy){if("strict"in e&&e.strict)return;n=r.abiItem.name,i=r.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,Et.U)(t,{args:i?[]:{},eventName:n})}})).filter(Boolean)}var kt=n(24453),St=n(33639),Ct=n(6073);async function Mt(t,{blockHash:e,blockNumber:r,blockTag:n,hash:i,index:s}){const o=n||"latest",a=void 0!==r?(0,m.eC)(r):void 0;let c=null;if(i?c=await t.request({method:"eth_getTransactionByHash",params:[i]}):e?c=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,(0,m.eC)(s)]}):(a||o)&&(c=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[a||o,(0,m.eC)(s)]})),!c)throw new St.Bh({blockHash:e,blockNumber:r,blockTag:o,hash:i,index:s});return(t.chain?.formatters?.transaction?.format||Ct.Tr)(c)}var It=n(86162),Pt=n(30866);async function Ot(t,{hash:e}){const r=await t.request({method:"eth_getTransactionReceipt",params:[e]});if(!r)throw new St.Yb({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Pt.f)(r)}async function Tt(t,{abi:e,address:r,args:n,dataSuffix:i,functionName:s,...o}){const a=o.account?(0,st.T)(o.account):void 0,c=(0,d.R)({abi:e,args:n,functionName:s});try{const{data:a}=await(0,M.s)(t,N.R,"call")({batch:!1,data:`${c}${i?i.replace("0x",""):""}`,to:r,...o});return{result:(0,h.k)({abi:e,args:n,functionName:s,data:a||"0x"}),request:{abi:e,address:r,args:n,dataSuffix:i,functionName:s,...o}}}catch(t){throw T(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:s,sender:a?.address})}}async function Nt(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}BigInt(0),BigInt(1),BigInt(2);var Rt=n(30286);async function Bt(t,{address:e,hash:r,signature:n,...i}){const s=(0,_.v)(n)?n:(0,m.NC)(n);try{const{data:n}=await(0,M.s)(t,N.R,"call")({data:(0,Rt.w)({abi:u.$o,args:[e,r,s],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return o=n??"0x0",a="0x1",function(t,e){if(t.length!==e.length)return!1;for(let r=0;r`${e} ${t}`)).join(",")})`;return r}({primaryType:t,types:e}));return(0,x.w)(r)}function Ft({primaryType:t,types:e},r=new Set){const n=t.match(/^\w*/u)?.[0];if(r.has(n)||void 0===e[n])return r;r.add(n);for(const t of e[n])Ft({primaryType:t.type,types:e},r);return r}function zt({types:t,name:e,type:r,value:n}){if(void 0!==t[r])return[{type:"bytes32"},(0,x.w)(Dt({data:n,primaryType:r,types:t}))];if("bytes"===r)return n="0x"+(n.length%2?"0":"")+n.slice(2),[{type:"bytes32"},(0,x.w)(n)];if("string"===r)return[{type:"bytes32"},(0,x.w)((0,m.NC)(n))];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),s=n.map((r=>zt({name:e,type:i,types:t,value:r})));return[{type:"bytes32"},(0,x.w)((0,Q.E)(s.map((([t])=>t)),s.map((([,t])=>t))))]}return[{type:r},n]}var Ht=n(79814);const Wt=new Map,qt=new Map;let Vt=0;function Gt(t,e,r){const n=++Vt,i=()=>Wt.get(t)||[],s=()=>{const e=qt.get(t);1===i().length&&e&&e(),(()=>{const e=i();Wt.set(t,e.filter((t=>t.id!==n)))})()},o=i();if(Wt.set(t,[...o,{id:n,fns:e}]),o&&o.length>0)return s;const a={};for(const t in e)a[t]=(...e)=>{const r=i();if(0!==r.length)for(const n of r)n.fns[t]?.(...e)};const c=r(a);return"function"==typeof c&&qt.set(t,c),s}var Kt=n(7760),Zt=n(96070),Jt=n(62914);function Qt(t,{emitOnBegin:e,initialWaitTime:r,interval:n}){let i=!0;const s=()=>i=!1;return(async()=>{let o;e&&(o=await t({unpoll:s}));const a=await(r?.(o))??n;await(0,Jt.D)(a);const c=async()=>{i&&(await t({unpoll:s}),await(0,Jt.D)(n),c())};c()})(),s}function Yt(t,{emitOnBegin:e=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:s,pollingInterval:o=t.pollingInterval}){let a;return(void 0!==s?s:"webSocket"!==t.transport.type)?Gt((0,Zt.P)(["watchBlockNumber",t.uid,e,r,o]),{onBlockNumber:n,onError:i},(n=>Qt((async()=>{try{const e=await(0,M.s)(t,ft,"getBlockNumber")({cacheTime:0});if(a){if(e===a)return;if(e-a>1&&r)for(let t=a+1n;ta)&&(n.onBlockNumber(e,a),a=e)}catch(t){n.onError?.(t)}}),{emitOnBegin:e,interval:o}))):(()=>{let e=!0,r=()=>e=!1;return(async()=>{try{const{unsubscribe:s}=await t.transport.subscribe({params:["newHeads"],onData(t){if(!e)return;const r=(0,mt.y_)(t.result?.number);n(r,a),a=r},onError(t){i?.(t)}});r=s,e||r()}catch(t){i?.(t)}})(),r})()}var Xt=n(43310);function te(t,{abi:e,address:r,args:n,batch:i=!0,eventName:s,onError:o,onLogs:a,poll:c,pollingInterval:l=t.pollingInterval,strict:u}){return(void 0!==c?c:"webSocket"!==t.transport.type)?(()=>{const c=(0,Zt.P)(["watchContractEvent",r,n,i,t.uid,s,l]),h=u??!1;return Gt(c,{onLogs:a,onError:o},(o=>{let a,c,u=!1;const d=Qt((async()=>{if(u)try{let l;if(c)l=await(0,M.s)(t,At,"getFilterChanges")({filter:c});else{const i=await(0,M.s)(t,ft,"getBlockNumber")({});l=a&&a!==i?await(0,M.s)(t,_t,"getContractEvents")({abi:e,address:r,args:n,eventName:s,fromBlock:a+1n,toBlock:i,strict:h}):[],a=i}if(0===l.length)return;if(i)o.onLogs(l);else for(const t of l)o.onLogs([t])}catch(t){c&&t instanceof P.yR&&(u=!1),o.onError?.(t)}else{try{c=await(0,M.s)(t,rt,"createContractEventFilter")({abi:e,address:r,args:n,eventName:s,strict:h})}catch{}u=!0}}),{emitOnBegin:!0,interval:l});return async()=>{c&&await(0,M.s)(t,Nt,"uninstallFilter")({filter:c}),d()}}))})():(()=>{let i=!0,c=()=>i=!1;return(async()=>{try{const l=s?tt({abi:e,eventName:s,args:n}):[],{unsubscribe:h}=await t.transport.subscribe({params:["logs",{address:r,topics:l}],onData(t){if(!i)return;const r=t.result;try{const{eventName:t,args:n}=bt({abi:e,data:r.data,topics:r.topics,strict:u}),i=(0,Et.U)(r,{args:n,eventName:t});a([i])}catch(t){let e,n;if(t instanceof I.SM||t instanceof I.Gy){if(u)return;e=t.abiItem.name,n=t.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}const i=(0,Et.U)(r,{args:n?[]:{},eventName:e});a([i])}},onError(t){o?.(t)}});c=h,i||c()}catch(t){o?.(t)}})(),c})()}var ee=n(37397),re=n(99238);function ne(t){return{call:e=>(0,N.R)(t,e),createBlockFilter:()=>async function(t){const e=K(t,{method:"eth_newBlockFilter"}),r=await t.request({method:"eth_newBlockFilter"});return{id:r,request:e(r),type:"block"}}(t),createContractEventFilter:e=>rt(t,e),createEventFilter:e=>nt(t,e),createPendingTransactionFilter:()=>it(t),estimateContractGas:e=>at(t,e),estimateGas:e=>(0,ot.Q)(t,e),getBalance:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest"}){const i=r?(0,m.eC)(r):void 0,s=await t.request({method:"eth_getBalance",params:[e,i||n]});return BigInt(s)}(t,e),getBlock:e=>(0,ut.Q)(t,e),getBlockNumber:e=>ft(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:r,blockTag:n="latest"}={}){const i=void 0!==r?(0,m.eC)(r):void 0;let s;return s=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]}),(0,mt.ly)(s)}(t,e),getBytecode:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest"}){const i=void 0!==r?(0,m.eC)(r):void 0,s=await t.request({method:"eth_getCode",params:[e,i||n]});if("0x"!==s)return s}(t,e),getChainId:()=>(0,gt.L)(t),getContractEvents:e=>_t(t,e),getEnsAddress:e=>async function(t,{blockNumber:e,blockTag:r,coinType:n,name:i,universalResolverAddress:s}){let o=s;if(!o){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,p.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const s=(0,d.R)({abi:u.X$,functionName:"addr",...null!=n?{args:[k(i),BigInt(n)]}:{args:[k(i)]}}),a=await(0,M.s)(t,R,"readContract")({address:o,abi:u.k3,functionName:"resolve",args:[(0,m.NC)(C(i)),s],blockNumber:e,blockTag:r});if("0x"===a[0])return null;const c=(0,h.k)({abi:u.X$,args:null!=n?[k(i),BigInt(n)]:void 0,functionName:"addr",data:a[0]});return"0x"===c||"0x00"===(0,f.f)(c)?null:c}catch(t){if(b(t,"resolve"))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:r,gatewayUrls:n,name:i,universalResolverAddress:s}){const o=await(0,M.s)(t,G,"getEnsText")({blockNumber:e,blockTag:r,key:"avatar",name:i,universalResolverAddress:s});if(!o)return null;try{return await async function(t,{gatewayUrls:e,record:r}){return/eip155:/i.test(r)?async function(t,{gatewayUrls:e,record:r}){const n=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[r,n,i]=e.split("/"),[s,o]=r.split(":"),[a,c]=n.split(":");if(!s||"eip155"!==s.toLowerCase())throw new j({reason:"Only EIP-155 supported"});if(!o)throw new j({reason:"Chain ID not found"});if(!c)throw new j({reason:"Contract address not found"});if(!i)throw new j({reason:"Token ID not found"});if(!a)throw new j({reason:"ERC namespace not found"});return{chainID:parseInt(o),namespace:a.toLowerCase(),contractAddress:c,tokenID:i}}(r),i=await async function(t,{nft:e}){if("erc721"===e.namespace)return R(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return R(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new U({namespace:e.namespace})}(t,{nft:n}),{uri:s,isOnChain:o,isEncoded:a}=W({uri:i,gatewayUrls:e});if(o&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const t=a?atob(s.replace("data:application/json;base64,","")):s;return V({uri:q(JSON.parse(t)),gatewayUrls:e})}let c=n.tokenID;return"erc1155"===n.namespace&&(c=c.replace("0x","").padStart(64,"0")),async function({gatewayUrls:t,uri:e}){try{const r=await fetch(e).then((t=>t.json()));return await V({gatewayUrls:t,uri:q(r)})}catch{throw new L({uri:e})}}({gatewayUrls:e,uri:s.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:r}):V({uri:r,gatewayUrls:e})}(t,{record:o,gatewayUrls:n})}catch{return null}}(t,e),getEnsName:e=>async function(t,{address:e,blockNumber:r,blockTag:n,universalResolverAddress:i}){let s=i;if(!s){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,p.L)({blockNumber:r,chain:t.chain,contract:"ensUniversalResolver"})}const o=`${e.toLowerCase().substring(2)}.addr.reverse`;try{const[i,a]=await(0,M.s)(t,R,"readContract")({address:s,abi:u.du,functionName:"reverse",args:[(0,m.NC)(C(o))],blockNumber:r,blockTag:n});return e.toLowerCase()!==a.toLowerCase()?null:i}catch(t){if(b(t,"reverse"))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,{blockNumber:e,blockTag:r,name:n,universalResolverAddress:i}){let s=i;if(!s){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,p.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}const[o]=await(0,M.s)(t,R,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,m.NC)(C(n))],blockNumber:e,blockTag:r});return o}(t,e),getEnsText:e=>G(t,e),getFeeHistory:e=>async function(t,{blockCount:e,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){const s=r?(0,m.eC)(r):void 0;return{baseFeePerGas:(o=await t.request({method:"eth_feeHistory",params:[(0,m.eC)(e),s||n,i]})).baseFeePerGas.map((t=>BigInt(t))),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map((t=>t.map((t=>BigInt(t)))))};var o}(t,e),estimateFeesPerGas:e=>(0,ct.X)(t,e),getFilterChanges:t=>At(0,t),getFilterLogs:t=>async function(t,{filter:e}){const r=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map((t=>{try{const{eventName:n,args:i}="abi"in e&&e.abi?bt({abi:e.abi,data:t.data,topics:t.topics,strict:r}):{eventName:void 0,args:void 0};return(0,Et.U)(t,{args:i,eventName:n})}catch(r){let n,i;if(r instanceof I.SM||r instanceof I.Gy){if("strict"in e&&e.strict)return;n=r.abiItem.name,i=r.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,Et.U)(t,{args:i?[]:{},eventName:n})}})).filter(Boolean)}(0,t),getGasPrice:()=>(0,kt.o)(t),getLogs:e=>xt(t,e),getProof:e=>async function(t,{address:e,blockNumber:r,blockTag:n,storageKeys:i}){const s=n??"latest",o=void 0!==r?(0,m.eC)(r):void 0;return a=await t.request({method:"eth_getProof",params:[e,i,o||s]}),{...a,balance:a.balance?BigInt(a.balance):void 0,nonce:a.nonce?(0,mt.ly)(a.nonce):void 0,storageProof:a.storageProof?(c=a.storageProof,c.map((t=>({...t,value:BigInt(t.value)})))):void 0};var a,c}(t,e),estimateMaxPriorityFeePerGas:e=>(0,lt._)(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest",slot:i}){const s=void 0!==r?(0,m.eC)(r):void 0;return await t.request({method:"eth_getStorageAt",params:[e,i,s||n]})}(t,e),getTransaction:e=>Mt(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:r}){const[n,i]=await Promise.all([(0,M.s)(t,ft,"getBlockNumber")({}),e?(0,M.s)(t,Mt,"getBlockNumber")({hash:e}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}(t,e),getTransactionCount:e=>(0,It.K)(t,e),getTransactionReceipt:e=>Ot(t,e),multicall:e=>async function(t,e){const{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:s,contracts:o,multicallAddress:a}=e,c=n??("object"==typeof t.batch?.multicall&&t.batch.multicall.batchSize||1024);let l=a;if(!l){if(!t.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,p.L)({blockNumber:i,chain:t.chain,contract:"multicall3"})}const f=[[]];let m=0,g=0;for(let e=0;e0&&g>c&&f[m].length>0&&(m++,g=(t.length-2)/2,f[m]=[]),f[m]=[...f[m],{allowFailure:!0,callData:t,target:i}]}catch(t){const e=T(t,{abi:n,address:i,args:s,docsPath:"/docs/contract/multicall",functionName:a});if(!r)throw e;f[m]=[...f[m],{allowFailure:!0,callData:"0x",target:i}]}}const b=await Promise.allSettled(f.map((e=>(0,M.s)(t,R,"readContract")({abi:u.F8,address:l,args:[e],blockNumber:i,blockTag:s,functionName:"aggregate3"})))),v=[];for(let e=0;e(0,ee.Z)(t,e),readContract:e=>R(t,e),sendRawTransaction:e=>(0,re.p)(t,e),simulateContract:e=>Tt(t,e),verifyMessage:e=>async function(t,{address:e,message:r,signature:n,...i}){const s=function(t,e){const r="string"==typeof t?(0,E.qX)(t):t.raw instanceof Uint8Array?t.raw:(0,E.O0)(t.raw),n=(0,E.qX)(`Ethereum Signed Message:\n${r.length}`);return(0,x.w)((0,v.zo)([n,r]),void 0)}(r);return Bt(t,{address:e,hash:s,signature:n,...i})}(t,e),verifyTypedData:e=>async function(t,{address:e,signature:r,message:n,primaryType:i,types:s,domain:o,...a}){return Bt(t,{address:e,hash:Lt({message:n,primaryType:i,types:s,domain:o}),signature:r,...a})}(t,e),uninstallFilter:t=>Nt(0,t),waitForTransactionReceipt:e=>async function(t,{confirmations:e=1,hash:r,onReplaced:n,pollingInterval:i=t.pollingInterval,timeout:s}){const o=(0,Zt.P)(["waitForTransactionReceipt",t.uid,r]);let a,c,l,u=!1;return new Promise(((h,d)=>{s&&setTimeout((()=>d(new St.mc({hash:r}))),s);const p=Gt(o,{onReplaced:n,resolve:h,reject:d},(n=>{const s=(0,M.s)(t,Yt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(u)return;let o=i;const h=t=>{s(),t(),p()};try{if(l){if(e>1&&(!l.blockNumber||o-l.blockNumber+1nn.resolve(l)))}if(a||(u=!0,await(0,Kt.J)((async()=>{a=await(0,M.s)(t,Mt,"getTransaction")({hash:r}),a.blockNumber&&(o=a.blockNumber)}),{delay:({count:t})=>200*~~(1<1&&(!l.blockNumber||o-l.blockNumber+1nn.resolve(l)))}catch(r){if(a&&(r instanceof St.Bh||r instanceof St.Yb))try{c=a,u=!0;const r=await(0,Kt.J)((()=>(0,M.s)(t,ut.Q,"getBlock")({blockNumber:o,includeTransactions:!0})),{delay:({count:t})=>200*~~(1<t instanceof Ht.f});u=!1;const i=r.transactions.find((({from:t,nonce:e})=>t===c.from&&e===c.nonce));if(!i)return;if(l=await(0,M.s)(t,Ot,"getTransactionReceipt")({hash:i.hash}),e>1&&(!l.blockNumber||o-l.blockNumber+1n{n.onReplaced?.({reason:s,replacedTransaction:c,transaction:i,transactionReceipt:l}),n.resolve(l)}))}catch(t){h((()=>n.reject(t)))}else h((()=>n.reject(r)))}}})}))}))}(t,e),watchBlocks:e=>function(t,{blockTag:e="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:o,poll:a,pollingInterval:c=t.pollingInterval}){const l=void 0!==a?a:"webSocket"!==t.transport.type,u=o??!1;let h;return l?Gt((0,Zt.P)(["watchBlocks",t.uid,r,n,u,c]),{onBlock:i,onError:s},(i=>Qt((async()=>{try{const n=await(0,M.s)(t,ut.Q,"getBlock")({blockTag:e,includeTransactions:u});if(n.number&&h?.number){if(n.number===h.number)return;if(n.number-h.number>1&&r)for(let e=h?.number+1n;eh.number)&&(i.onBlock(n,h),h=n)}catch(t){i.onError?.(t)}}),{emitOnBegin:n,interval:c}))):(()=>{let e=!0,r=()=>e=!1;return(async()=>{try{const{unsubscribe:n}=await t.transport.subscribe({params:["newHeads"],onData(r){if(!e)return;const n=(t.chain?.formatters?.block?.format||Xt.Z)(r.result);i(n,h),h=n},onError(t){s?.(t)}});r=n,e||r()}catch(t){s?.(t)}})(),r})()}(t,e),watchBlockNumber:e=>Yt(t,e),watchContractEvent:e=>te(t,e),watchEvent:e=>function(t,{address:e,args:r,batch:n=!0,event:i,events:s,onError:o,onLogs:a,poll:c,pollingInterval:l=t.pollingInterval,strict:u}){const h=void 0!==c?c:"webSocket"!==t.transport.type,d=u??!1;return h?Gt((0,Zt.P)(["watchEvent",e,r,n,t.uid,i,l]),{onLogs:a,onError:o},(o=>{let a,c,u=!1;const h=Qt((async()=>{if(u)try{let l;if(c)l=await(0,M.s)(t,At,"getFilterChanges")({filter:c});else{const n=await(0,M.s)(t,ft,"getBlockNumber")({});l=a&&a!==n?await(0,M.s)(t,xt,"getLogs")({address:e,args:r,event:i,events:s,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===l.length)return;if(n)o.onLogs(l);else for(const t of l)o.onLogs([t])}catch(t){c&&t instanceof P.yR&&(u=!1),o.onError?.(t)}else{try{c=await(0,M.s)(t,nt,"createEventFilter")({address:e,args:r,event:i,events:s,strict:d})}catch{}u=!0}}),{emitOnBegin:!0,interval:l});return async()=>{c&&await(0,M.s)(t,Nt,"uninstallFilter")({filter:c}),h()}})):(()=>{let n=!0,c=()=>n=!1;return(async()=>{try{const l=s??(i?[i]:void 0);let h=[];l&&(h=[l.flatMap((t=>tt({abi:[t],eventName:t.name,args:r})))],i&&(h=h[0]));const{unsubscribe:p}=await t.transport.subscribe({params:["logs",{address:e,topics:h}],onData(t){if(!n)return;const e=t.result;try{const{eventName:t,args:r}=bt({abi:l,data:e.data,topics:e.topics,strict:d}),n=(0,Et.U)(e,{args:r,eventName:t});a([n])}catch(t){let r,n;if(t instanceof I.SM||t instanceof I.Gy){if(u)return;r=t.abiItem.name,n=t.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}const i=(0,Et.U)(e,{args:n?[]:{},eventName:r});a([i])}},onError(t){o?.(t)}});c=p,n||c()}catch(t){o?.(t)}})(),c})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=t.pollingInterval}){return(void 0!==i?i:"webSocket"!==t.transport.type)?Gt((0,Zt.P)(["watchPendingTransactions",t.uid,e,s]),{onTransactions:n,onError:r},(r=>{let n;const i=Qt((async()=>{try{if(!n)try{return void(n=await(0,M.s)(t,it,"createPendingTransactionFilter")({}))}catch(t){throw i(),t}const s=await(0,M.s)(t,At,"getFilterChanges")({filter:n});if(0===s.length)return;if(e)r.onTransactions(s);else for(const t of s)r.onTransactions([t])}catch(t){r.onError?.(t)}}),{emitOnBegin:!0,interval:s});return async()=>{n&&await(0,M.s)(t,Nt,"uninstallFilter")({filter:n}),i()}})):(()=>{let e=!0,i=()=>e=!1;return(async()=>{try{const{unsubscribe:s}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const r=t.result;n([r])},onError(t){r?.(t)}});i=s,e||i()}catch(t){r?.(t)}})(),i})()}(t,e)}}function ie(t){const{key:e="public",name:r="Public Client"}=t;return(0,l.e)({...t,key:e,name:r,type:"publicClient"}).extend(ne)}var se=n(37029),oe=n(31031);function ae(t,e={}){const{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:s,retryDelay:o}=e;return({chain:e,pollingInterval:a=4e3,timeout:c})=>{let l=t,u=()=>{};const h=(0,oe.q)({key:r,name:n,async request({method:t,params:r}){const n=async(i=0)=>{const s=l[i]({chain:e,retryCount:0,timeout:c});try{const e=await s.request({method:t,params:r});return u({method:t,params:r,response:e,transport:s,status:"success"}),e}catch(e){if(u({error:e,method:t,params:r,transport:s,status:"error"}),(0,se.y)(e))throw e;if(i===l.length-1)throw e;return n(i+1)}};return n()},retryCount:s,retryDelay:o,type:"fallback"},{onResponse:t=>u=t,transports:l.map((t=>t({chain:e,retryCount:0})))});if(i){const t="object"==typeof i?i:{};!function({chain:t,interval:e=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:s,weights:o={}}){const{stability:a=.7,latency:c=.3}=o,l=[],u=async()=>{const o=await Promise.all(s.map((async e=>{const r=e({chain:t,retryCount:0,timeout:i}),n=Date.now();let s,o;try{await r.request({method:"net_listening"}),o=1}catch{o=0}finally{s=Date.now()}return{latency:s-n,success:o}})));l.push(o),l.length>n&&l.shift();const h=Math.max(...l.map((t=>Math.max(...t.map((({latency:t})=>t)))))),d=s.map(((t,e)=>{const r=l.map((t=>t[e].latency)),n=1-r.reduce(((t,e)=>t+e),0)/r.length/h,i=l.map((t=>t[e].success)),s=i.reduce(((t,e)=>t+e),0)/i.length;return 0===s?[0,e]:[c*n+a*s,e]})).sort(((t,e)=>e[0]-t[0]));r(d.map((([,t])=>s[t]))),await(0,Jt.D)(e),u()};u()}({chain:e,interval:t.interval??a,onTransports:t=>l=t,sampleCount:t.sampleCount,timeout:t.timeout,transports:l,weights:t.weights})}return h}}var ce=n(78863);class le extends y.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var ue=n(32357);const he=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==r.g.WebSocket)return r.g.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}();function de(t,{errorInstance:e=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,s)=>{(async()=>{let o;try{const a=new AbortController;r>0&&(o=setTimeout((()=>{n?a.abort():s(e)}),r)),i(await t({signal:a?.signal}))}catch(t){"AbortError"===t.name&&s(e),s(t)}finally{clearTimeout(o)}})()}))}let pe=0;const fe=new Map;async function me(t){let e=fe.get(t);if(e)return e;const{schedule:r}=(0,ue.S)({id:t,fn:async()=>{const r=new he(t),n=new Map,i=new Map,s=({data:t})=>{const e=JSON.parse(t),r="eth_subscription"===e.method,s=r?e.params.subscription:e.id,o=r?i:n,a=o.get(s);a&&a({data:t}),r||o.delete(s)},o=()=>{fe.delete(t),r.removeEventListener("close",o),r.removeEventListener("message",s)};return r.addEventListener("close",o),r.addEventListener("message",s),r.readyState===he.CONNECTING&&await new Promise(((t,e)=>{r&&(r.onopen=t,r.onerror=e)})),e=Object.assign(r,{requests:n,subscriptions:i}),fe.set(t,e),[e]}}),[n,[i]]=await r();return i}const ge={http:async function(t,{body:e,fetchOptions:r={},timeout:n=1e4}){const{headers:i,method:s,signal:o}=r;try{const a=await de((async({signal:a})=>await fetch(t,{...r,body:Array.isArray(e)?(0,Zt.P)(e.map((t=>({jsonrpc:"2.0",id:t.id??pe++,...t})))):(0,Zt.P)({jsonrpc:"2.0",id:e.id??pe++,...e}),headers:{...i,"Content-Type":"application/json"},method:s||"POST",signal:o||(n>0?a:void 0)})),{errorInstance:new ce.W5({body:e,url:t}),timeout:n,signal:!0});let c;if(c=a.headers.get("Content-Type")?.startsWith("application/json")?await a.json():await a.text(),!a.ok)throw new ce.Gg({body:e,details:(0,Zt.P)(c.error)||a.statusText,headers:a.headers,status:a.status,url:t});return c}catch(r){if(r instanceof ce.Gg)throw r;if(r instanceof ce.W5)throw r;throw new ce.Gg({body:e,details:r.message,url:t})}},webSocket:function(t,{body:e,onResponse:r}){if(t.readyState===t.CLOSED||t.readyState===t.CLOSING)throw new ce.c9({body:e,url:t.url,details:"Socket is closed."});const n=pe++,i=({data:s})=>{const o=JSON.parse(s);"number"==typeof o.id&&n!==o.id||(r?.(o),"eth_subscribe"===e.method&&"string"==typeof o.result&&t.subscriptions.set(o.result,i),"eth_unsubscribe"===e.method&&t.subscriptions.delete(e.params?.[0]))};return t.requests.set(n,i),t.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),t},webSocketAsync:async function(t,{body:e,timeout:r=1e4}){return de((()=>new Promise((r=>ge.webSocket(t,{body:e,onResponse:r})))),{errorInstance:new ce.W5({body:e,url:t.url}),timeout:r})}};var ye=n(57858),we=n(84192);function be(t,e){let r;try{r=t()}catch(t){return}return{getItem:t=>{var n;const i=t=>null===t?null:JSON.parse(t,null==e?void 0:e.reviver),s=null!=(n=r.getItem(t))?n:null;return s instanceof Promise?s.then(i):i(s)},setItem:(t,n)=>r.setItem(t,JSON.stringify(n,null==e?void 0:e.replacer)),removeItem:t=>r.removeItem(t)}}const ve=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then:t=>ve(t)(r),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>ve(e)(t)}}},Ee=t=>{let e;const r=new Set,n=(t,n)=>{const i="function"==typeof t?t(e):t;if(!Object.is(i,e)){const t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),r.forEach((r=>r(e,t)))}},i=()=>e,s={setState:n,getState:i,subscribe:t=>(r.add(t),()=>r.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return e=t(n,i,s),s};var xe=n(15229);function _e(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,n]of t)if(!Object.is(n,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let n=0;nt.indexed)):2===t.length&&(r=!0),{args:r?t[0]:void 0,options:(r?t[1]:t[0])??{}}}var Ce=n(45775),Me=n(49321);function Ie(t,e,{batch:r={multicall:{wait:32}},pollingInterval:n=4e3,rank:i,retryCount:s,retryDelay:o,stallTimeout:a}={}){if(!t.length)throw new Error("must have at least one chain");let c=[];const l={},u={};for(const r of t){let t=!1;for(const n of e){const e=n(r);e&&(t=!0,c.some((({id:t})=>t===r.id))||(c=[...c,e.chain]),l[r.id]=[...l[r.id]||[],...e.rpcUrls.http],e.rpcUrls.webSocket&&(u[r.id]=[...u[r.id]||[],...e.rpcUrls.webSocket]))}if(!t)throw new Error([`Could not find valid provider configuration for chain "${r.name}".\n`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join("\n"))}return{chains:c,publicClient:({chainId:e})=>{const u=c.find((t=>t.id===e))??t[0],h=l[u.id];if(!h||!h[0])throw new Error(`No providers configured for chain "${u.id}"`);const d=ie({batch:r,chain:u,transport:ae(h.map((t=>function(t,e={}){const{batch:r,fetchOptions:n,key:i="http",name:s="HTTP JSON-RPC",retryDelay:o}=e;return({chain:a,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:h=0}="object"==typeof r?r:{},d=e.retryCount??c,p=l??e.timeout??1e4,f=t||a?.rpcUrls.default.http[0];if(!f)throw new le;return(0,oe.q)({key:i,name:s,async request({method:e,params:i}){const s={method:e,params:i},{schedule:o}=(0,ue.S)({id:`${t}`,wait:h,shouldSplitBatch:t=>t.length>u,fn:t=>ge.http(f,{body:t,fetchOptions:n,timeout:p}),sort:(t,e)=>t.id-e.id}),[{error:a,result:c}]=await(async t=>r?o(t):[await ge.http(f,{body:t,fetchOptions:n,timeout:p})])(s);if(a)throw new ce.bs({body:s,error:a,url:f});return c},retryCount:d,retryDelay:o,timeout:p,type:"http"},{fetchOptions:n,url:t})}}(t,{timeout:a}))),{rank:i,retryCount:s,retryDelay:o}),pollingInterval:n});return Object.assign(d,{chains:c})},webSocketPublicClient:({chainId:e})=>{const l=c.find((t=>t.id===e))??t[0],h=u[l.id];if(!h||!h[0])return;const d=ie({batch:r,chain:l,transport:ae(h.map((t=>function(t,e={}){const{key:r="webSocket",name:n="WebSocket JSON-RPC",retryDelay:i}=e;return({chain:s,retryCount:o,timeout:a})=>{const c=e.retryCount??o,l=a??e.timeout??1e4,u=t||s?.rpcUrls.default.webSocket?.[0];if(!u)throw new le;return(0,oe.q)({key:r,name:n,async request({method:t,params:e}){const r={method:t,params:e},n=await me(u),{error:i,result:s}=await ge.webSocketAsync(n,{body:r,timeout:l});if(i)throw new ce.bs({body:r,error:i,url:u});return s},retryCount:c,retryDelay:i,timeout:l,type:"webSocket"},{getSocket:()=>me(u),async subscribe({params:t,onData:e,onError:r}){const n=await me(u),{result:i}=await new Promise(((i,s)=>ge.webSocket(n,{body:{method:"eth_subscribe",params:t},onResponse(t){if(t.error)return s(t.error),void r?.(t.error);"number"!=typeof t.id?"eth_subscription"===t.method&&e(t.params):i(t)}})));return{subscriptionId:i,unsubscribe:async()=>new Promise((t=>ge.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:t})))}}})}}(t,{timeout:a}))),{rank:i,retryCount:s,retryDelay:o}),pollingInterval:n});return Object.assign(d,{chains:c})}}}var Pe=class extends Error{constructor({activeChain:t,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${t}".`),this.name="ChainMismatchError"}},Oe=class extends Error{constructor({chainId:t,connectorId:e}){super(`Chain "${t}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},Te=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},Ne=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},Re=class extends Error{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function Be(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)&&Array.isArray(e)){if(r=t.length,r!=e.length)return!1;for(n=r;0!=n--;)if(!Be(t[n],e[n]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const i=Object.keys(t);if(r=i.length,r!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;0!=n--;){const r=i[n];if(r&&!Be(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}var je=(t,{find:e,replace:r})=>t&&e(t)?r(t):"object"!=typeof t?t:Array.isArray(t)?t.map((t=>je(t,{find:e,replace:r}))):t instanceof Object?Object.entries(t).reduce(((t,[n,i])=>({...t,[n]:je(i,{find:e,replace:r})})),{}):t;function Le(t){const e=JSON.parse(t);return je(e,{find:t=>"string"==typeof t&&t.startsWith("#bigint."),replace:t=>BigInt(t.replace("#bigint.",""))})}function Ue(t){return"number"==typeof t?t:"wei"===t?0:Math.abs(we.Bd[t])}function De(t,e){return t.slice(0,e).join(".")||"."}function $e(t,e){const{length:r}=t;for(let n=0;n{const n="bigint"==typeof r?`#bigint.${r.toString()}`:r;return e?.(t,n)||n}),n),r??void 0)}var ze={getItem:t=>"",setItem:(t,e)=>null,removeItem:t=>null};function He({deserialize:t=Le,key:e="wagmi",serialize:r=Fe,storage:n}){return{...n,getItem:(r,i=null)=>{const s=n.getItem(`${e}.${r}`);try{return s?t(s):i}catch(t){return console.warn(t),i}},setItem:(t,i)=>{if(null===i)n.removeItem(`${e}.${t}`);else try{n.setItem(`${e}.${t}`,r(i))}catch(t){console.error(t)}},removeItem:t=>n.removeItem(`${e}.${t}`)}}var We,qe,Ve,Ge,Ke,Ze="store",Je=class{constructor({autoConnect:t=!1,connectors:e=[new i._],publicClient:r,storage:n=He({storage:"undefined"!=typeof window?window.localStorage:ze}),logger:o={warn:console.warn},webSocketPublicClient:l}){a(this,Ve),this.publicClients=new Map,this.webSocketPublicClients=new Map,a(this,We,void 0),a(this,qe,void 0),this.args={autoConnect:t,connectors:e,logger:o,publicClient:r,storage:n,webSocketPublicClient:l};let u,h="disconnected";if(t)try{const t=n.getItem(Ze)?.state?.data;h=t?.account?"reconnecting":"connecting",u=t?.chain?.id}catch(t){}const d="function"==typeof e?e():e;var p,f,m,g;d.forEach((t=>t.setStorage(n))),this.store=(g=((t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((t,e)=>(r,n,i)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},o=!1;const a=new Set,c=new Set;let l;try{l=s.getStorage()}catch(t){}if(!l)return t(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...t)}),n,i);const u=ve(s.serialize),h=()=>{const t=s.partialize({...n()});let e;const r=u({state:t,version:s.version}).then((t=>l.setItem(s.name,t))).catch((t=>{e=t}));if(e)throw e;return r},d=i.setState;i.setState=(t,e)=>{d(t,e),h()};const p=t(((...t)=>{r(...t),h()}),n,i);let f;const m=()=>{var t;if(!l)return;o=!1,a.forEach((t=>t(n())));const e=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,n()))||void 0;return ve(l.getItem.bind(l))(s.name).then((t=>{if(t)return s.deserialize(t)})).then((t=>{if(t){if("number"!=typeof t.version||t.version===s.version)return t.state;if(s.migrate)return s.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((t=>{var e;return f=s.merge(t,null!=(e=n())?e:p),r(f,!0),h()})).then((()=>{null==e||e(f,void 0),o=!0,c.forEach((t=>t(f)))})).catch((t=>{null==e||e(void 0,t)}))};return i.persist={setOptions:t=>{s={...s,...t},t.getStorage&&(l=t.getStorage())},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:t=>(a.add(t),()=>{a.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},m(),f||p})(t,e)):((t,e)=>(r,n,i)=>{let s={storage:be((()=>localStorage)),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},o=!1;const a=new Set,c=new Set;let l=s.storage;if(!l)return t(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...t)}),n,i);const u=()=>{const t=s.partialize({...n()});return l.setItem(s.name,{state:t,version:s.version})},h=i.setState;i.setState=(t,e)=>{h(t,e),u()};const d=t(((...t)=>{r(...t),u()}),n,i);let p;const f=()=>{var t,e;if(!l)return;o=!1,a.forEach((t=>{var e;return t(null!=(e=n())?e:d)}));const i=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,null!=(t=n())?t:d))||void 0;return ve(l.getItem.bind(l))(s.name).then((t=>{if(t){if("number"!=typeof t.version||t.version===s.version)return t.state;if(s.migrate)return s.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((t=>{var e;return p=s.merge(t,null!=(e=n())?e:d),r(p,!0),u()})).then((()=>{null==i||i(p,void 0),p=n(),o=!0,c.forEach((t=>t(p)))})).catch((t=>{null==i||i(void 0,t)}))};return i.persist={setOptions:t=>{s={...s,...t},t.storage&&(l=t.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>f(),hasHydrated:()=>o,onHydrate:t=>(a.add(t),()=>{a.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},s.skipHydration||f(),p||d})(t,e))((()=>({connectors:d,publicClient:this.getPublicClient({chainId:u}),status:h,webSocketPublicClient:this.getWebSocketPublicClient({chainId:u})})),{name:Ze,storage:n,partialize:e=>({...t&&{data:{account:e?.data?.account,chain:e?.data?.chain}},chains:e?.chains}),version:2}),(m=(t,e,r)=>{const n=r.subscribe;return r.subscribe=(t,e,i)=>{let s=t;if(e){const n=(null==i?void 0:i.equalityFn)||Object.is;let o=t(r.getState());s=r=>{const i=t(r);if(!n(o,i)){const t=o;e(o=i,t)}},(null==i?void 0:i.fireImmediately)&&e(o,o)}return n(s)},g(t,e,r)})?Ee(m):Ee),this.storage=n,c(this,qe,n?.getItem("wallet")),(p=Ve,f=Ge,s(this,p,"access private method"),f).call(this),t&&"undefined"!=typeof window&&setTimeout((async()=>await this.autoConnect()),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(t){const e="function"==typeof t?t(this.store.getState()):t;this.store.setState(e,!0)}clearState(){this.setState((t=>({...t,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"})))}async destroy(){this.connector&&await(this.connector.disconnect?.()),c(this,We,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(o(this,We))return;c(this,We,!0),this.setState((t=>({...t,status:t.data?.account?"reconnecting":"connecting"})));const t=o(this,qe)?[...this.connectors].sort((t=>t.id===o(this,qe)?-1:1)):this.connectors;let e=!1;for(const r of t){if(!r.ready||!r.isAuthorized)continue;if(!await r.isAuthorized())continue;const t=await r.connect();this.setState((e=>({...e,connector:r,chains:r?.chains,data:t,status:"connected"}))),e=!0;break}return e||this.setState((t=>({...t,data:void 0,status:"disconnected"}))),c(this,We,!1),this.data}setConnectors(t){this.args={...this.args,connectors:t};const e="function"==typeof t?t():t;e.forEach((t=>t.setStorage(this.args.storage))),this.setState((t=>({...t,connectors:e})))}getPublicClient({chainId:t}={}){let e=this.publicClients.get(-1);if(e&&e?.chain.id===t)return e;if(e=this.publicClients.get(t??-1),e)return e;const{publicClient:r}=this.args;return e="function"==typeof r?r({chainId:t}):r,this.publicClients.set(t??-1,e),e}setPublicClient(t){const e=this.data?.chain?.id;this.args={...this.args,publicClient:t},this.publicClients.clear(),this.setState((t=>({...t,publicClient:this.getPublicClient({chainId:e})})))}getWebSocketPublicClient({chainId:t}={}){let e=this.webSocketPublicClients.get(-1);if(e&&e?.chain.id===t)return e;if(e=this.webSocketPublicClients.get(t??-1),e)return e;const{webSocketPublicClient:r}=this.args;return e="function"==typeof r?r({chainId:t}):r,e&&this.webSocketPublicClients.set(t??-1,e),e}setWebSocketPublicClient(t){const e=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:t},this.webSocketPublicClients.clear(),this.setState((t=>({...t,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})})))}setLastUsedConnector(t=null){this.storage?.setItem("wallet",t)}};function Qe(t){const e=new Je(t);return Ke=e,e}function Ye(){if(!Ke)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return Ke}async function Xe({chainId:t,connector:e}){const r=Ye(),n=r.connector;if(n&&e.id===n.id)throw new Te;try{r.setState((t=>({...t,status:"connecting"})));const n=await e.connect({chainId:t});return r.setLastUsedConnector(e.id),r.setState((t=>({...t,connector:e,chains:e?.chains,data:n,status:"connected"}))),r.storage.setItem("connected",!0),{...n,connector:e}}catch(t){throw r.setState((t=>({...t,status:t.connector?"connected":"disconnected"}))),t}}async function tr(){const t=Ye();t.connector&&await t.connector.disconnect(),t.clearState(),t.storage.removeItem("connected")}We=new WeakMap,qe=new WeakMap,Ve=new WeakSet,Ge=function(){const t=t=>{this.setState((e=>({...e,data:{...e.data,...t}})))},e=()=>{this.clearState()},r=t=>{this.setState((e=>({...e,error:t})))};this.store.subscribe((({connector:t})=>t),((n,i)=>{i?.off?.("change",t),i?.off?.("disconnect",e),i?.off?.("error",r),n&&(n.on?.("change",t),n.on?.("disconnect",e),n.on?.("error",r))}));const{publicClient:n,webSocketPublicClient:i}=this.args;("function"==typeof n||"function"==typeof i)&&this.store.subscribe((({data:t})=>t?.chain?.id),(t=>{this.setState((e=>({...e,publicClient:this.getPublicClient({chainId:t}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})})))}))};var er=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],rr=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],nr=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokeId",type:"uint256"}],outputs:[]}],ir=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function sr({address:t,chainId:e,formatUnits:r=18}){async function n({abi:n}){const i={address:t,abi:n,chainId:e},[s,o,a,c]=await gr({allowFailure:!1,contracts:[{...i,functionName:"decimals"},{...i,functionName:"name"},{...i,functionName:"symbol"},{...i,functionName:"totalSupply"}]});return{address:t,decimals:s,name:o,symbol:a,totalSupply:{formatted:(0,xe.b)(c,Ue(r)),value:c}}}try{return await n({abi:er})}catch(t){if(t instanceof w.uq){const{name:t,symbol:e,...r}=await n({abi:rr});return{name:(0,mt.rR)((0,f.f)(t,{dir:"right"})),symbol:(0,mt.rR)((0,f.f)(e,{dir:"right"})),...r}}throw t}}function or({chainId:t}={}){const e=Ye();return t&&e.getPublicClient({chainId:t})||e.publicClient}async function ar({chainId:t}={}){const e=Ye();return await(e.connector?.getWalletClient?.({chainId:t}))||null}function cr({chainId:t}={}){const e=Ye();return t&&e.getWebSocketPublicClient({chainId:t})||e.webSocketPublicClient}function lr(t,e){return Ye().subscribe((({publicClient:t})=>t),(async()=>e(or(t))))}function ur({chainId:t},e){return Ye().subscribe((({data:t,connector:e})=>({account:t?.account,chainId:t?.chain?.id,connector:e})),(async({chainId:r})=>{if(t&&r&&t!==r)return;const n=await ar({chainId:t});return Ye().connector?e(n):e(null)}),{equalityFn:_e})}function hr(t,e){return Ye().subscribe((({webSocketPublicClient:t})=>t),(async()=>e(cr(t))))}async function dr({abi:t,address:e,args:r,chainId:n,dataSuffix:i,functionName:s,walletClient:o,...a}){const c=or({chainId:n}),l=o??await ar({chainId:n});if(!l)throw new ye.N;n&&zr({chainId:n});const{account:u,accessList:h,blockNumber:d,blockTag:p,gas:f,gasPrice:m,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:w,value:b}=function(t){return{accessList:t.accessList,account:t.account,blockNumber:t.blockNumber,blockTag:t.blockTag,data:t.data,gas:t.gas,gasPrice:t.gasPrice,maxFeePerGas:t.maxFeePerGas,maxPriorityFeePerGas:t.maxPriorityFeePerGas,nonce:t.nonce,to:t.to,value:t.value}}(a),{result:v,request:E}=await c.simulateContract({abi:t,address:e,functionName:s,args:r,account:u||l.account,accessList:h,blockNumber:d,blockTag:p,dataSuffix:i,gas:f,gasPrice:m,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:w,value:b});return{mode:"prepared",request:{...E,abi:t.filter((t=>"name"in t&&t.name===s)),chainId:n},result:v}}function pr({address:t,abi:e,chainId:r,walletClient:n}){return function({abi:t,address:e,publicClient:r,walletClient:n}){const i=null!=r,s=null!=n,o={};let a=!1,c=!1,l=!1;for(const e of t)if("function"===e.type?"view"===e.stateMutability||"pure"===e.stateMutability?a=!0:c=!0:"event"===e.type&&(l=!0),a&&c&&l)break;return i&&(a&&(o.read=new Proxy({},{get:(n,i)=>(...n)=>{const{args:s,options:o}=ke(n);return(0,M.s)(r,R,"readContract")({abi:t,address:e,functionName:i,args:s,...o})}})),c&&(o.simulate=new Proxy({},{get:(n,i)=>(...n)=>{const{args:s,options:o}=ke(n);return(0,M.s)(r,Tt,"simulateContract")({abi:t,address:e,functionName:i,args:s,...o})}})),l&&(o.createEventFilter=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Se(n,s);return(0,M.s)(r,rt,"createContractEventFilter")({abi:t,address:e,eventName:i,args:o,...a})}}),o.getEvents=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Se(n,s);return(0,M.s)(r,_t,"getContractEvents")({abi:t,address:e,eventName:i,args:o,...a})}}),o.watchEvent=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Se(n,s);return(0,M.s)(r,te,"watchContractEvent")({abi:t,address:e,eventName:i,args:o,...a})}}))),s&&c&&(o.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:s,options:o}=ke(r);return(0,M.s)(n,Ae.n,"writeContract")({abi:t,address:e,functionName:i,args:s,...o})}})),(i||s)&&c&&(o.estimateGas=new Proxy({},{get:(i,s)=>(...i)=>{const{args:o,options:a}=ke(i),c=r??n;return(0,M.s)(c,at,"estimateContractGas")({abi:t,address:e,functionName:s,args:o,...a,account:a.account??n.account})}})),o.address=e,o.abi=t,o}({address:t,abi:e,publicClient:or({chainId:r}),walletClient:n})}async function fr({chainId:t,contracts:e,blockNumber:r,blockTag:n,...i}){const s=or({chainId:t});if(!s.chains)throw new Ne;if(t&&s.chain.id!==t)throw new Oe({chainId:t});return s.multicall({allowFailure:i.allowFailure??!0,blockNumber:r,blockTag:n,contracts:e})}async function mr({address:t,account:e,chainId:r,abi:n,args:i,functionName:s,blockNumber:o,blockTag:a}){return or({chainId:r}).readContract({abi:n,address:t,account:e,functionName:s,args:i,blockNumber:o,blockTag:a})}async function gr({contracts:t,blockNumber:e,blockTag:r,...n}){const{allowFailure:i=!0}=n;try{const n=or(),s=t.reduce(((t,e,r)=>{const i=e.chainId??n.chain.id;return{...t,[i]:[...t[i]||[],{contract:e,index:r}]}}),{}),o=()=>Object.entries(s).map((([t,n])=>fr({allowFailure:i,chainId:parseInt(t),contracts:n.map((({contract:t})=>t)),blockNumber:e,blockTag:r}))),a=(await Promise.all(o())).flat(),c=Object.values(s).flatMap((t=>t.map((({index:t})=>t))));return a.reduce(((t,e,r)=>(t&&(t[c[r]]=e),t)),[])}catch(n){if(n instanceof w.uq)throw n;const s=()=>t.map((t=>mr({...t,blockNumber:e,blockTag:r})));return i?(await Promise.allSettled(s())).map((t=>"fulfilled"===t.status?{result:t.value,status:"success"}:{error:t.reason,result:void 0,status:"failure"})):await Promise.all(s())}}function yr({address:t,abi:e,chainId:r,eventName:n},i){let s;const o=async()=>{s&&s();const o=cr({chainId:r})||or({chainId:r});s=o.watchContractEvent({address:t,abi:e,eventName:n,onLogs:i})};o();const a=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),o,{equalityFn:_e});return()=>{s?.(),a()}}function wr(t,e){let r;const n=t=>{r&&r(),r=t.watchBlockNumber({onBlockNumber:e,emitOnBegin:!0,poll:!0})},i=cr({chainId:t.chainId})??or({chainId:t.chainId});t.listen&&n(i);const s=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),(async({publicClient:e,webSocketPublicClient:r})=>{const i=r??e;t.listen&&!t.chainId&&i&&n(i)}),{equalityFn:_e});return()=>{s(),r?.()}}function br(t,e){const r=Ye(),n=async()=>e(await fr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}function vr(t,e){const r=Ye(),n=async()=>e(await mr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}function Er(t,e){const r=Ye(),n=async()=>e(await gr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}async function xr(t){const e=await ar({chainId:t.chainId});if(!e)throw new ye.N;let r;if(t.chainId&&zr({chainId:t.chainId}),"prepared"===t.mode)r=t.request;else{const{chainId:e,mode:n,...i}=t;r=(await dr(i)).request}return{hash:await e.writeContract({...r,chain:t.chainId?{id:t.chainId}:null})}}async function _r({address:t,chainId:e,formatUnits:r,token:n}){const i=Ye(),s=or({chainId:e});if(n){const i=async({abi:i})=>{const s={abi:i,address:n,chainId:e},[o,a,c]=await gr({allowFailure:!1,contracts:[{...s,functionName:"balanceOf",args:[t]},{...s,functionName:"decimals"},{...s,functionName:"symbol"}]});return{decimals:a,formatted:(0,xe.b)(o??"0",Ue(r??a)),symbol:c,value:o}};try{return await i({abi:er})}catch(t){if(t instanceof w.uq){const{symbol:t,...e}=await i({abi:rr});return{symbol:(0,mt.rR)((0,f.f)(t,{dir:"right"})),...e}}throw t}}const o=[...i.publicClient.chains||[],...i.chains??[]],a=await s.getBalance({address:t}),c=o.find((t=>t.id===s.chain.id));return{decimals:c?.nativeCurrency.decimals??18,formatted:(0,xe.b)(a??"0",Ue(r??18)),symbol:c?.nativeCurrency.symbol??"ETH",value:a}}function Ar(){const{data:t,connector:e,status:r}=Ye();switch(r){case"connected":return{address:t?.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:r};case"reconnecting":return{address:t?.account,connector:e,isConnected:!!t?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:r};case"connecting":return{address:t?.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:r};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:r}}}function kr(){const t=Ye(),e=t.data?.chain?.id,r=t.chains??[],n=[...t.publicClient?.chains||[],...r].find((t=>t.id===e))??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...t.data?.chain,id:e}:void 0,chains:r}}async function Sr(t){const e=await ar();if(!e)throw new ye.N;return await e.signMessage({message:t.message})}async function Cr({domain:t,message:e,primaryType:r,types:n}){const i=await ar();if(!i)throw new ye.N;const{chainId:s}=t;return s&&zr({chainId:s}),i.signTypedData({message:e,primaryType:r,types:n,domain:t})}async function Mr({chainId:t}){const{connector:e}=Ye();if(!e)throw new ye.N;if(!e.switchChain)throw new Re({connector:e});return e.switchChain(t)}function Ir(t,{selector:e=(t=>t)}={}){return Ye().subscribe((({data:t,connector:r,status:n})=>e({address:t?.account,connector:r,status:n})),(()=>t(Ar())),{equalityFn:_e})}function Pr(t,{selector:e=(t=>t)}={}){return Ye().subscribe((({data:t,chains:r})=>e({chainId:t?.chain?.id,chains:r})),(()=>t(kr())),{equalityFn:_e})}async function Or({chainId:t,name:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:t}),s=await i.getEnsAddress({name:r(e)});try{return"0x0000000000000000000000000000000000000000"===s?null:s?(0,Ce.K)(s):null}catch(t){return null}}async function Tr({name:t,chainId:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:e});return await i.getEnsAvatar({name:r(t)})}async function Nr({address:t,chainId:e}){return or({chainId:e}).getEnsName({address:(0,Ce.K)(t)})}async function Rr({chainId:t,name:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:t});return await i.getEnsResolver({name:r(e)})}async function Br({chainId:t}={}){const e=or({chainId:t});return await e.getBlockNumber()}async function jr({chainId:t,formatUnits:e="gwei"}={}){const r=or({chainId:t}),n=await r.getBlock();let i=null;try{i=await r.getGasPrice()}catch{}let s=null,o=null,a=null;n?.baseFeePerGas&&(s=n.baseFeePerGas,a=function(t,e="wei"){return function(t,e){let[r,n="0"]="1".split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>e){const[t,i,s]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],o=Math.round(Number(`${i}.${s}`));n=o>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${o}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${i?"-":""}${r}${n}`)}(0,we.Zn[e])}(),o=2n*n.baseFeePerGas+a);const c=Ue(e);return{lastBaseFeePerGas:s,gasPrice:i,maxFeePerGas:o,maxPriorityFeePerGas:a,formatted:{gasPrice:i?(0,xe.b)(i,c):null,maxFeePerGas:o?(0,xe.b)(o,c):null,maxPriorityFeePerGas:a?(0,xe.b)(a,c):null}}}async function Lr({chainId:t,hash:e}){return or({chainId:t}).getTransaction({hash:e})}async function Ur({accessList:t,account:e,chainId:r,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:c,to:l,value:u,walletClient:h}){const d=or({chainId:r}),p=h??await ar({chainId:r});if(!p)throw new ye.N;r&&zr({chainId:r});const f=(l&&!(0,Me.U)(l)?await Or({name:l}):l)||void 0;if(f&&!(0,Me.U)(f))throw new Error("Invalid address");return{accessList:t,account:e,data:n,gas:void 0===i?await d.estimateGas({accessList:t,account:p.account,data:n,gas:i??void 0,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:c,to:f,value:u}):i||void 0,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,mode:"prepared",nonce:c,to:f,value:u,...r?{chainId:r}:{}}}async function Dr({accessList:t,account:e,chainId:r,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,mode:c,nonce:l,to:u,value:h}){const d=await ar({chainId:r});if(!d)throw new ye.N;let p;return r&&zr({chainId:r}),p="prepared"===c?{account:e,accessList:t,chain:null,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:l,to:u,value:h}:await Ur({accessList:t,account:e,chainId:r,data:n,gas:i||null,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:l,to:u,value:h}),{hash:await d.sendTransaction({...p,chain:r?{id:r}:null})}}async function $r({chainId:t,confirmations:e=1,hash:r,onReplaced:n,timeout:i=0}){const s=or({chainId:t}),o=await s.waitForTransactionReceipt({hash:r,confirmations:e,onReplaced:n,timeout:i});if("reverted"===o.status){const t=await s.getTransaction({hash:o.transactionHash}),e=await s.call({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0}),r=(0,mt.rR)(`0x${e.substring(138)}`);throw new Error(r)}return o}function Fr(t,e){let r;const n=t=>{r&&r(),r=t.watchPendingTransactions({onTransactions:e,poll:!0})},i=cr({chainId:t.chainId})??or({chainId:t.chainId});n(i);const s=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),(async({publicClient:e,webSocketPublicClient:r})=>{const i=r??e;!t.chainId&&i&&n(i)}),{equalityFn:_e});return()=>{s(),r?.()}}function zr({chainId:t}){const{chain:e,chains:r}=kr(),n=e?.id;if(n&&t!==n)throw new Pe({activeChain:r.find((t=>t.id===n))?.name??`Chain ${n}`,targetChain:r.find((e=>e.id===t))?.name??`Chain ${t}`})}},33694:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ChainMismatchError:()=>s.Yl,ChainNotConfiguredError:()=>s.X4,Config:()=>s.De,ConfigChainsNotFound:()=>s.gs,Connector:()=>a.wR,ConnectorAlreadyConnectedError:()=>s.wi,ConnectorNotFoundError:()=>o.N,InjectedConnector:()=>c._,SwitchChainNotSupportedError:()=>s.OJ,configureChains:()=>s.QB,connect:()=>s.$j,createConfig:()=>s._g,createStorage:()=>s.o6,deepEqual:()=>s.vZ,deserialize:()=>s.vB,disconnect:()=>s.zP,erc20ABI:()=>s.em,erc4626ABI:()=>s.yS,erc721ABI:()=>s.YD,fetchBalance:()=>s.EG,fetchBlockNumber:()=>s.RQ,fetchEnsAddress:()=>s.bh,fetchEnsAvatar:()=>s.w6,fetchEnsName:()=>s.Lk,fetchEnsResolver:()=>s.Uj,fetchFeeData:()=>s.jS,fetchToken:()=>s.EC,fetchTransaction:()=>s.KI,getAccount:()=>s.D0,getConfig:()=>s.iE,getContract:()=>s.uN,getNetwork:()=>s.Hy,getPublicClient:()=>s.uV,getUnit:()=>s.Wy,getWalletClient:()=>s.xz,getWebSocketPublicClient:()=>s.jr,mainnet:()=>n.R,multicall:()=>s.Ap,noopStorage:()=>s.wp,prepareSendTransaction:()=>s.uw,prepareWriteContract:()=>s.$q,readContract:()=>s.a4,readContracts:()=>s.JH,sendTransaction:()=>s.T7,sepolia:()=>i.F,serialize:()=>s.qC,signMessage:()=>s.l,signTypedData:()=>s.xq,switchNetwork:()=>s.If,waitForTransaction:()=>s.Mn,watchAccount:()=>s.uH,watchBlockNumber:()=>s.qu,watchContractEvent:()=>s.Y$,watchMulticall:()=>s.Mx,watchNetwork:()=>s.QC,watchPendingTransactions:()=>s.us,watchPublicClient:()=>s.pC,watchReadContract:()=>s.jt,watchReadContracts:()=>s.fn,watchWalletClient:()=>s.Tb,watchWebSocketPublicClient:()=>s.fq,writeContract:()=>s.n9});var n=r(66403),i=r(35194),s=r(46070),o=r(57858),a=r(53324),c=r(92219)},70672:(t,e,r)=>{"use strict";r.d(e,{AV:()=>s,ConfigCtrl:()=>p,ExplorerCtrl:()=>T,OptionsCtrl:()=>h,ThemeCtrl:()=>F,ToastCtrl:()=>H,jb:()=>R,uA:()=>l,zv:()=>o});var n=r(96828);const i=(0,n.sj)({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),s={state:i,subscribe:t=>(0,n.Ld)(i,(()=>t(i))),push(t,e){t!==i.view&&(i.view=t,e&&(i.data=e),i.history.push(t))},reset(t){i.view=t,i.history=[t]},replace(t){i.history.length>1&&(i.history[i.history.length-1]=t,i.view=t)},goBack(){if(i.history.length>1){i.history.pop();const[t]=i.history.slice(-1);i.view=t}},setData(t){i.data=t}},o={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>o.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const t=navigator.userAgent.toLowerCase();return o.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),isArray:t=>Array.isArray(t)&&t.length>0,formatNativeUrl(t,e,r){if(o.isHttpUrl(t))return this.formatUniversalUrl(t,e,r);let n=t;return n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},formatUniversalUrl(t,e,r){if(!o.isHttpUrl(t))return this.formatNativeUrl(t,e,r);let n=t;return n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},wait:async t=>new Promise((e=>{setTimeout(e,t)})),openHref(t,e){window.open(t,e,"noreferrer noopener")},setWalletConnectDeepLink(t,e){try{localStorage.setItem(o.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(t){try{const[e]=t.split("?");localStorage.setItem(o.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(o.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(o.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var t;const e=null==(t=s.state.data)?void 0:t.Wallet;if(!e)throw new Error('Missing "Wallet" view data');return e}},a=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),c=(0,n.sj)({enabled:a,userSessionId:"",events:[],connectedWalletId:void 0}),l={state:c,subscribe:t=>(0,n.Ld)(c.events,(()=>t((0,n.CO)(c.events[c.events.length-1])))),initialize(){c.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(c.userSessionId=crypto.randomUUID())},setConnectedWalletId(t){c.connectedWalletId=t},click(t){if(c.enabled){const e={type:"CLICK",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}},track(t){if(c.enabled){const e={type:"TRACK",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}},view(t){if(c.enabled){const e={type:"VIEW",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}}},u=(0,n.sj)({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),h={state:u,subscribe:t=>(0,n.Ld)(u,(()=>t(u))),setChains(t){u.chains=t},setWalletConnectUri(t){u.walletConnectUri=t},setIsCustomDesktop(t){u.isCustomDesktop=t},setIsCustomMobile(t){u.isCustomMobile=t},setIsDataLoaded(t){u.isDataLoaded=t},setIsUiLoaded(t){u.isUiLoaded=t},setIsAuth(t){u.isAuth=t}},d=(0,n.sj)({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),p={state:d,subscribe:t=>(0,n.Ld)(d,(()=>t(d))),setConfig(t){var e,r;l.initialize(),h.setChains(t.chains),h.setIsAuth(Boolean(t.enableAuthMode)),h.setIsCustomMobile(Boolean(null==(e=t.mobileWallets)?void 0:e.length)),h.setIsCustomDesktop(Boolean(null==(r=t.desktopWallets)?void 0:r.length)),o.setModalVersionInStorage(),Object.assign(d,t)}};var f=Object.defineProperty,m=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,w=(t,e,r)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const b="https://explorer-api.walletconnect.com",v="wcm",E="js-2.6.2";async function x(t,e){const r=((t,e)=>{for(var r in e||(e={}))g.call(e,r)&&w(t,r,e[r]);if(m)for(var r of m(e))y.call(e,r)&&w(t,r,e[r]);return t})({sdkType:v,sdkVersion:E},e),n=new URL(t,b);return n.searchParams.append("projectId",p.state.projectId),Object.entries(r).forEach((([t,e])=>{e&&n.searchParams.append(t,String(e))})),(await fetch(n)).json()}const _=async t=>x("/w3m/v1/getDesktopListings",t),A=async t=>x("/w3m/v1/getMobileListings",t);var k=Object.defineProperty,S=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,I=(t,e,r)=>e in t?k(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const P=o.isMobile(),O=(0,n.sj)({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),T={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:t,explorerExcludedWalletIds:e}=p.state;if("NONE"===t||"ALL"===e&&!t)return O.recomendedWallets;if(o.isArray(t)){const e={recommendedIds:t.join(",")},{listings:r}=await(async t=>x("/w3m/v1/getAllListings",t))(e),n=Object.values(r);n.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id))),O.recomendedWallets=n}else{const{chains:t,isAuth:r}=h.state,n=t?.join(","),i=o.isArray(e),s={page:1,sdks:r?"auth_v1":void 0,entries:o.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:i?e.join(","):void 0},{listings:a}=P?await A(s):await _(s);O.recomendedWallets=Object.values(a)}return O.recomendedWallets},async getWallets(t){const e=((t,e)=>{for(var r in e||(e={}))C.call(e,r)&&I(t,r,e[r]);if(S)for(var r of S(e))M.call(e,r)&&I(t,r,e[r]);return t})({},t),{explorerRecommendedWalletIds:r,explorerExcludedWalletIds:n}=p.state,{recomendedWallets:i}=O;if("ALL"===n)return O.wallets;i.length?e.excludedIds=i.map((t=>t.id)).join(","):o.isArray(r)&&(e.excludedIds=r.join(",")),o.isArray(n)&&(e.excludedIds=[e.excludedIds,n].filter(Boolean).join(",")),h.state.isAuth&&(e.sdks="auth_v1");const{page:s,search:a}=t,{listings:c,total:l}=P?await A(e):await _(e),u=Object.values(c),d=a?"search":"wallets";return O[d]={listings:[...O[d].listings,...u],total:l,page:s??1},{listings:u,total:l}},getWalletImageUrl:t=>(t=>`${b}/w3m/v1/getWalletImage/${t}?projectId=${p.state.projectId}&sdkType=${v}&sdkVersion=${E}`)(t),getAssetImageUrl:t=>(t=>`${b}/w3m/v1/getAssetImage/${t}?projectId=${p.state.projectId}&sdkType=${v}&sdkVersion=${E}`)(t),resetSearch(){O.search={listings:[],total:0,page:1}}},N=(0,n.sj)({open:!1}),R={state:N,subscribe:t=>(0,n.Ld)(N,(()=>t(N))),open:async t=>new Promise((e=>{const{isUiLoaded:r,isDataLoaded:n}=h.state;if(o.removeWalletConnectDeepLink(),h.setWalletConnectUri(t?.uri),h.setChains(t?.chains),s.reset("ConnectWallet"),r&&n)N.open=!0,e();else{const t=setInterval((()=>{const r=h.state;r.isUiLoaded&&r.isDataLoaded&&(clearInterval(t),N.open=!0,e())}),200)}})),close(){N.open=!1}};var B=Object.defineProperty,j=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,D=(t,e,r)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const $=(0,n.sj)({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),F={state:$,subscribe:t=>(0,n.Ld)($,(()=>t($))),setThemeConfig(t){const{themeMode:e,themeVariables:r}=t;e&&($.themeMode=e),r&&($.themeVariables=((t,e)=>{for(var r in e||(e={}))L.call(e,r)&&D(t,r,e[r]);if(j)for(var r of j(e))U.call(e,r)&&D(t,r,e[r]);return t})({},r))}},z=(0,n.sj)({open:!1,message:"",variant:"success"}),H={state:z,subscribe:t=>(0,n.Ld)(z,(()=>t(z))),openToast(t,e){z.open=!0,z.message=t,z.variant=e},closeToast(){z.open=!1}}},30663:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WcmModal:()=>ln,WcmQrCode:()=>mr});const n=window,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t;var u;const h=window,d=h.trustedTypes,p=d?d.emptyScript:"",f=h.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:g},w="finalized";class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const n=this._$Ep(r,e);void 0!==n&&(this._$Ev.set(n,r),t.push(n))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,r,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty(w))return!1;this[w]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),i=n.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var n;const i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){const s=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:m).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,e){var r;const n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=n.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:m;this._$El=i,this[i]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let n=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var v;b[w]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(u=h.reactiveElementVersions)&&void 0!==u?u:h.reactiveElementVersions=[]).push("1.6.3");const E=window,x=E.trustedTypes,_=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,M=document,I=()=>M.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,B=/>/g,j=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,U=/"/g,D=/^(?:script|style|textarea|title)$/i,$=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),F=$(1),z=$(2),H=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),q=new WeakMap,V=M.createTreeWalker(M,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}class K{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=((t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=N;for(let e=0;e"===c[0]?(o=null!=i?i:N,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?j:'"'===c[3]?U:L):o===U||o===L?o=j:o===R||o===B?o=N:(o=j,i=void 0);const h=o===j&&t[e+1].startsWith("/>")?" ":"";s+=o===N?r+C:l>=0?(n.push(a),r.slice(0,l)+A+r.slice(l)+k+h):r+k+(-2===l?(n.push(void 0),e):h)}return[G(t,s+(t[r]||"")+(2===e?"":"")),n]})(t,e);if(this.el=K.createElement(c,r),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=V.nextNode())&&a.length0){n.textContent=x?x.emptyScript:"";for(let r=0;rO(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(G(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(r);else{const t=new J(i,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new K(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new Q(this.k(I()),this.k(I()),this,this.options)):r=e[n],r._$AI(i),n++;n2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=Z(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{var n,i;const s=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:e;let o=s._$litPart$;if(void 0===o){const t=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;s._$litPart$=o=new Q(e.insertBefore(I(),t),t,void 0,null!=r?r:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:at});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:at}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.3.3");const lt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.define(t,e)}}})(t,e),ut=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function ht(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):ut(t,e)}function dt(t){return ht({...t,state:!0})}var pt;null===(pt=window.HTMLSlotElement)||void 0===pt||pt.prototype.assignedElements;class ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const mt=(gt=class extends ft{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const i=t.element.classList;this.it.forEach((t=>{t in e||(i.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(r?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return H}},(...t)=>({_$litDirective$:gt,values:t}));var gt,yt=r(70672);const wt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},bt=t=>1e3*t,vt=()=>{},Et=t=>t;function xt(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}const _t=t=>t(),At=(t,e,r=wt.duration)=>new Proxy({animations:t.map(_t).filter(Boolean),duration:r,options:e},kt),kt={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return(t=>t/1e3)((null==r?void 0:r[e])||0);case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(St)).catch(vt)),t.finished;case"stop":return()=>{t.animations.forEach((t=>xt(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=bt(r);case"playbackRate":for(let n=0;nt.finished,Ct=t=>"object"==typeof t&&Boolean(t.createAnimation),Mt=t=>"number"==typeof t,It=t=>Array.isArray(t)&&!Mt(t[0]),Pt=(t,e,r)=>-r*t+r*e+t,Ot=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Tt(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Ot(0,e,n);t.push(Pt(r,1,i))}}const Nt=(t,e,r)=>Math.min(Math.max(r,t),e),Rt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function Bt(t,e,r,n){return t===e&&r===n?Et:i=>0===i||1===i?i:Rt(function(t,e,r,n,i){let s,o,a=0;do{o=e+(r-e)/2,s=Rt(o,n,i)-t,s>0?r=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,t,r),e,n)}const jt=t=>"function"==typeof t,Lt=t=>Array.isArray(t)&&Mt(t[0]),Ut={ease:Bt(.25,.1,.25,1),"ease-in":Bt(.42,0,1,1),"ease-in-out":Bt(.42,0,.58,1),"ease-out":Bt(0,0,.58,1)},Dt=/\((.*?)\)/;function $t(t){if(jt(t))return t;if(Lt(t))return Bt(...t);if(Ut[t])return Ut[t];if(t.startsWith("steps")){const e=Dt.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const n=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,i="end"===e?Math.floor(n):Math.ceil(n);return Nt(0,1,i/t)})(parseFloat(t[0]),t[1].trim())}}return Et}class Ft{constructor(t,e=[0,1],{easing:r,duration:n=wt.duration,delay:i=wt.delay,endDelay:s=wt.endDelay,repeat:o=wt.repeat,offset:a,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Et,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||wt.easing,Ct(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,n=t.duration||n}this.repeat=o,this.easing=It(r)?Et:$t(r),this.updateDuration(n);const l=function(t,e=function(t){const e=[0];return Tt(e,t-1),e}(t.length),r=Et){const n=t.length,i=n-e.length;return i>0&&Tt(e,i),i=>{let s=0;for(;s{const n=e-0;return((r-0)%n+n)%n+0})(0,t.length,e)]:t}(r,s);return o=a(o),Pt(t[s],t[s+1],o)}}(e,a,It(r)?r.map($t):Et);this.tick=e=>{var r;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);const o=n/this.duration;let a=Math.floor(o),u=o%1;!u&&o>=1&&(u=1),1===u&&a--;const h=a%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(u=1-u);const d=n>=this.totalDuration?1:Math.min(u,1),p=l(this.easing(d));t(p),void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+s)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,p)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class zt{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const Ht=new WeakMap;function Wt(t){return Ht.has(t)||Ht.set(t,{transforms:[],values:new Map}),Ht.get(t)}const qt=["","X","Y","Z"],Vt={x:"translateX",y:"translateY",z:"translateZ"},Gt={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Kt={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Gt,scale:{syntax:"",initialValue:1,toDefaultUnit:Et},skew:Gt},Zt=new Map,Jt=t=>`--motion-${t}`,Qt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{qt.forEach((e=>{Qt.push(t+e),Zt.set(Jt(t+e),Kt[t])}))}));const Yt=(t,e)=>Qt.indexOf(t)-Qt.indexOf(e),Xt=new Set(Qt),te=t=>Xt.has(t),ee=(t,e)=>`${t} ${e}(var(${Jt(e)}))`,re=t=>t.startsWith("--"),ne=new Set,ie=(t,e)=>document.createElement("div").animate(t,e),se={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ie({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(ie({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{ie({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},oe={},ae={};for(const t in se)ae[t]=()=>(void 0===oe[t]&&(oe[t]=se[t]()),oe[t]);const ce=(t,e)=>jt(t)?ae.linearEasing()?`linear(${((t,e)=>{let r="";const n=Math.round(e/.015);for(let e=0;e`cubic-bezier(${t}, ${e}, ${r}, ${n})`;function ue(t){return Vt[t]&&(t=Vt[t]),te(t)?Jt(t):t}const he=(t,e,r)=>{e=ue(e),re(e)?t.style.setProperty(e,r):t.style[e]=r};function de(t,e,r,n={},i){const s=window.__MOTION_DEV_TOOLS_RECORD,o=!1!==n.record&&s;let a,{duration:c=wt.duration,delay:l=wt.delay,endDelay:u=wt.endDelay,repeat:h=wt.repeat,easing:d=wt.easing,persist:p=!1,direction:f,offset:m,allowWebkitAcceleration:g=!1}=n;const y=Wt(t),w=te(e);let b=ae.waapi();w&&((t,e)=>{Vt[e]&&(e=Vt[e]);const{transforms:r}=Wt(t);var n,i;i=e,-1===(n=r).indexOf(i)&&n.push(i),t.style.transform=(t=>t.sort(Yt).reduce(ee,"").trim())(r)})(t,e);const v=ue(e),E=function(t,e){return t.has(e)||t.set(e,new zt),t.get(e)}(y.values,v),x=Zt.get(v);return xt(E.animation,!(Ct(d)&&E.generator)&&!1!==n.record),()=>{const y=()=>{var e,r;return null!==(r=null!==(e=((t,e)=>{e=ue(e);let r=re(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Zt.get(e);t&&(r=t.initialValue)}return r})(t,v))&&void 0!==e?e:null==x?void 0:x.initialValue)&&void 0!==r?r:0};let _=function(t,e){for(let r=0;rArray.isArray(t)?t:[t])(r),y);const A=function(t,e){var r;let n=(null==e?void 0:e.toDefaultUnit)||Et;const i=t[t.length-1];if("string"==typeof i){const t=(null===(r=i.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(n=e=>e+t)}return n}(_,x);if(Ct(d)){const t=d.createAnimation(_,"opacity"!==e,y,v,E);d=t.easing,_=t.keyframes||_,c=t.duration||c}if(re(v)&&(ae.cssRegisterProperty()?function(t){if(!ne.has(t)){ne.add(t);try{const{syntax:e,initialValue:r}=Zt.has(t)?Zt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(v):b=!1),w&&!ae.linearEasing()&&(jt(d)||It(d)&&d.some(jt))&&(b=!1),b){x&&(_=_.map((t=>Mt(t)?x.toDefaultUnit(t):t))),1!==_.length||ae.partialKeyframes()&&!o||_.unshift(y());const e={delay:bt(l),duration:bt(c),endDelay:bt(u),easing:It(d)?void 0:ce(d,c),direction:f,iterations:h+1,fill:"both"};a=t.animate({[v]:_,offset:m,easing:It(d)?d.map((t=>ce(t,c))):void 0},e),a.finished||(a.finished=new Promise(((t,e)=>{a.onfinish=t,a.oncancel=e})));const r=_[_.length-1];a.finished.then((()=>{p||(he(t,v,r),a.cancel())})).catch(vt),g||(a.playbackRate=1.000001)}else if(i&&w)_=_.map((t=>"string"==typeof t?parseFloat(t):t)),1===_.length&&_.unshift(parseFloat(y())),a=new i((e=>{he(t,v,A?A(e):e)}),_,Object.assign(Object.assign({},n),{duration:c,easing:d}));else{const e=_[_.length-1];he(t,v,x&&Mt(e)?x.toDefaultUnit(e):e)}return o&&s(t,e,_,{duration:c,delay:l,easing:d,repeat:h,offset:m},"motion-one"),E.setAnimation(a),a}}const pe=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function fe(t,e,r){return jt(t)?t(e,r):t}const me=(ge=Ft,function(t,e,r={}){const n=(t=function(t,e){return"string"==typeof t?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Boolean(n),Boolean(e);const i=[];for(let s=0;s{const r=new Ft(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function we(t,e,r){return(jt(t)?ye:me)(t,e,r)}const be=t=>null!=t?t:W;var ve=r(92592),Ee=Object.defineProperty,xe=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ke=(t,e,r)=>e in t?Ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Se=(t,e)=>{for(var r in e||(e={}))_e.call(e,r)&&ke(t,r,e[r]);if(xe)for(var r of xe(e))Ae.call(e,r)&&ke(t,r,e[r]);return t};const Ce={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=yt.ThemeCtrl.state;if(t){const r=Se(Se(Se({},function(){var t;const e={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(t=yt.ThemeCtrl.state.themeMode)?t:"dark"];return{"--wcm-color-fg-1":e.foreground[1],"--wcm-color-fg-2":e.foreground[2],"--wcm-color-fg-3":e.foreground[3],"--wcm-color-bg-1":e.background[1],"--wcm-color-bg-2":e.background[2],"--wcm-color-bg-3":e.background[3],"--wcm-color-overlay":e.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),e);Object.entries(r).forEach((([e,r])=>t.style.setProperty(e,r)))}},globalCss:c`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Me=c`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Ie=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Oe=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Pe(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ie(e,r,s),s};let Te=class extends at{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),F``}};Te.styles=[Ce.globalCss,Me],Oe([ht({type:Boolean})],Te.prototype,"disabled",2),Oe([ht()],Te.prototype,"iconLeft",2),Oe([ht()],Te.prototype,"iconRight",2),Oe([ht()],Te.prototype,"onClick",2),Oe([ht()],Te.prototype,"variant",2),Te=Oe([lt("wcm-button")],Te);const Ne=c`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var Re=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,je=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Be(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Re(e,r,s),s};let Le=class extends at{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return F``}};Le.styles=[Ce.globalCss,Ne],je([ht({type:Boolean})],Le.prototype,"disabled",2),je([ht()],Le.prototype,"variant",2),Le=je([lt("wcm-button-big")],Le);const Ue=c`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let De=class extends at{render(){return F`
    `}};De.styles=[Ce.globalCss,Ue],De=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-info-footer")],De);const $e={CROSS_ICON:z``,WALLET_CONNECT_LOGO:z``,WALLET_CONNECT_ICON:z``,WALLET_CONNECT_ICON_COLORED:z``,BACK_ICON:z``,COPY_ICON:z``,RETRY_ICON:z``,DESKTOP_ICON:z``,MOBILE_ICON:z``,ARROW_DOWN_ICON:z``,ARROW_UP_RIGHT_ICON:z``,ARROW_RIGHT_ICON:z``,QRCODE_ICON:z``,SCAN_ICON:z``,CHECKMARK_ICON:z``,SEARCH_ICON:z``,WALLET_PLACEHOLDER:z``,GLOBE_ICON:z``},Fe=c`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let ze=class extends at{render(){return F`
    ${$e.WALLET_CONNECT_LOGO}
    `}};ze.styles=[Ce.globalCss,Fe],ze=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-backcard")],ze);const He=c`main{padding:20px;padding-top:0;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let We=class extends at{render(){return F`
    `}};We.styles=[Ce.globalCss,He],We=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-content")],We);const qe=c`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ve=class extends at{render(){return F`
    `}};Ve.styles=[Ce.globalCss,qe],Ve=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-footer")],Ve);const Ge=c`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var Ke=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Je=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Ze(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ke(e,r,s),s};let Qe=class extends at{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return F``}actionBtnTemplate(){return F``}render(){const t={"wcm-border":this.border},e=yt.AV.state.history.length>1,r=this.title?F`${this.title}`:F``;return F`
    ${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
    `}};Qe.styles=[Ce.globalCss,Ge],Je([ht()],Qe.prototype,"title",2),Je([ht()],Qe.prototype,"onAction",2),Je([ht()],Qe.prototype,"actionIcon",2),Je([ht({type:Boolean})],Qe.prototype,"border",2),Qe=Je([lt("wcm-modal-header")],Qe);const Ye={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=yt.ConfigCtrl.state;return null!=r&&r[t]?r[t]:e?yt.ExplorerCtrl.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Ye.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,yt.zv.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=yt.OptionsCtrl.state,{mobile:r,name:n}=t,i=r?.native,s=r?.universal;Ye.setRecentWallet(t),e&&function(t){let e="";i?e=yt.zv.formatUniversalUrl(i,t,n):s&&(e=yt.zv.formatNativeUrl(s,t,n)),yt.zv.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=yt.OptionsCtrl.state;t&&(yt.zv.setWalletConnectAndroidDeepLink(t),yt.zv.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=yt.OptionsCtrl.state;if(t)try{await navigator.clipboard.writeText(t),yt.ToastCtrl.openToast("Link copied","success")}catch{yt.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=yt.ConfigCtrl.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Ye.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Ye.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){yt.zv.openHref(Ye.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=yt.zv.getWalletRouterData(),r=Boolean(t?.native),n=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:n}},goToConnectingView(t){yt.AV.setData({Wallet:t});const e=yt.zv.isMobile(),{isDesktop:r,isWeb:n,isMobile:i}=Ye.getCachedRouterWalletPlatforms();e?i?yt.AV.push("MobileConnecting"):n?yt.AV.push("WebConnecting"):yt.AV.push("InstallWallet"):r?yt.AV.push("DesktopConnecting"):n?yt.AV.push("WebConnecting"):i?yt.AV.push("MobileQrcodeConnecting"):yt.AV.push("InstallWallet")}},Xe=c`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,rr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?er(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&tr(e,r,s),s};let nr=class extends at{constructor(){super(),this.view=yt.AV.state.view,this.prevView=yt.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=yt.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&we(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Ye.getShadowRootElement(this,".wcm-router")}get contentEl(){return Ye.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return F``;case"DesktopConnecting":return F``;case"MobileConnecting":return F``;case"WebConnecting":return F``;case"MobileQrcodeConnecting":return F``;case"WalletExplorer":return F``;case"Qrcode":return F``;case"InstallWallet":return F``;default:return F`
    Not Found
    `}}async onChangeRoute(){await we(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=yt.AV.state.view,we(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return F`
    ${this.viewTemplate()}
    `}};nr.styles=[Ce.globalCss,Xe],rr([dt()],nr.prototype,"view",2),rr([dt()],nr.prototype,"prevView",2),nr=rr([lt("wcm-modal-router")],nr);const ir=c`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var sr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ar=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?or(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&sr(e,r,s),s};let cr=class extends at{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=yt.ToastCtrl.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>yt.ToastCtrl.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),yt.ToastCtrl.closeToast()}render(){const{message:t,variant:e}=yt.ToastCtrl.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?F`
    ${"success"===e?$e.CHECKMARK_ICON:null} ${"error"===e?$e.CROSS_ICON:null}${t}
    `:null}};function lr(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}cr.styles=[Ce.globalCss,ir],ar([dt()],cr.prototype,"open",2),cr=ar([lt("wcm-modal-toast")],cr);const ur={generate(t,e,r){const n="#141414",i=[],s=function(t,e){const r=Array.prototype.slice.call(ve.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e;for(let t=0;t`)}}));const c=Math.floor((r+25)/o),l=s.length/2-c/2,u=s.length/2+c/2-1,h=[];s.forEach(((t,e)=>{t.forEach(((t,r)=>{if(s[e][r]&&!(e<7&&r<7||e>s.length-8&&r<7||e<7&&r>s.length-8)&&!(e>l&&el&&r{d[t]?d[t].push(e):d[t]=[e]})),Object.entries(d).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!lr(t,e,o)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{i.push(z``)}))})),Object.entries(d).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>lr(t,e,o)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>te.some((e=>lr(t,e,o)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{i.push(z``)}))})),i}},hr=c`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var dr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,fr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?pr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&dr(e,r,s),s};let mr=class extends at{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t="light"===yt.ThemeCtrl.state.themeMode?this.size:this.size-36;return z`${ur.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":"dark"===yt.ThemeCtrl.state.themeMode};return F`
    ${this.walletId||this.imageUrl?F``:$e.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
    `}};mr.styles=[Ce.globalCss,hr],fr([ht()],mr.prototype,"uri",2),fr([ht({type:Number})],mr.prototype,"size",2),fr([ht()],mr.prototype,"imageId",2),fr([ht()],mr.prototype,"walletId",2),fr([ht()],mr.prototype,"imageUrl",2),mr=fr([lt("wcm-qrcode")],mr);const gr=c`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var yr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,br=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?wr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&yr(e,r,s),s};let vr=class extends at{constructor(){super(...arguments),this.onChange=()=>null}render(){return F` ${$e.SEARCH_ICON}`}};vr.styles=[Ce.globalCss,gr],br([ht()],vr.prototype,"onChange",2),vr=br([lt("wcm-search-input")],vr);const Er=c`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let xr=class extends at{render(){return F``}};xr.styles=[Ce.globalCss,Er],xr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-spinner")],xr);const _r=c`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Ar=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Sr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?kr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ar(e,r,s),s};let Cr=class extends at{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return F``}};Cr.styles=[Ce.globalCss,_r],Sr([ht()],Cr.prototype,"variant",2),Sr([ht()],Cr.prototype,"color",2),Cr=Sr([lt("wcm-text")],Cr);const Mr=c`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Ir=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Or=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Pr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ir(e,r,s),s};let Tr=class extends at{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?F`RECENT`:this.installed?F`INSTALLED`:null}handleClick(){yt.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return F``}};Tr.styles=[Ce.globalCss,Mr],Or([ht()],Tr.prototype,"onClick",2),Or([ht()],Tr.prototype,"name",2),Or([ht()],Tr.prototype,"walletId",2),Or([ht()],Tr.prototype,"label",2),Or([ht()],Tr.prototype,"imageId",2),Or([ht({type:Boolean})],Tr.prototype,"installed",2),Or([ht({type:Boolean})],Tr.prototype,"recent",2),Tr=Or([lt("wcm-wallet-button")],Tr);const Nr=c`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Rr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,jr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Br(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Rr(e,r,s),s};let Lr=class extends at{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Ye.getWalletIcon({id:this.walletId,image_id:this.imageId});return F`${e.length?F`
    ${this.id}
    `:$e.WALLET_PLACEHOLDER}`}};Lr.styles=[Ce.globalCss,Nr],jr([ht()],Lr.prototype,"walletId",2),jr([ht()],Lr.prototype,"imageId",2),jr([ht()],Lr.prototype,"imageUrl",2),Lr=jr([lt("wcm-wallet-image")],Lr);var Ur=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,$r=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Dr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ur(e,r,s),s};let Fr=class extends at{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Ye.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(yt.ConfigCtrl.state.enableExplorer){await yt.ExplorerCtrl.getRecomendedWallets(),yt.OptionsCtrl.setIsDataLoaded(!0);const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=t.map((t=>Ye.getWalletIcon(t)));await this.loadImages(e)}else yt.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Ye.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),yt.ToastCtrl.openToast("Failed preloading","error")}}};$r([dt()],Fr.prototype,"preload",2),Fr=$r([lt("wcm-explorer-context")],Fr),Object.defineProperty,Object.getOwnPropertyDescriptor;let zr=class extends at{constructor(){super(),this.unsubscribeTheme=void 0,Ce.setTheme(),this.unsubscribeTheme=yt.ThemeCtrl.subscribe(Ce.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};zr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-theme-context")],zr);const Hr=c`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Wr=class extends at{onGoToQrcode(){yt.AV.push("Qrcode")}render(){const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=[...t,...t],r=2*yt.zv.RECOMMENDED_WALLET_AMOUNT;return F`
    ${$e.MOBILE_ICON}WalletConnect
    ${[...Array(r)].map(((t,r)=>{const n=e[r%e.length];return n?F``:$e.WALLET_PLACEHOLDER}))}
    Select Wallet
    Choose WalletConnect to see supported apps on your device`}};Wr.styles=[Ce.globalCss,Hr],Wr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-android-wallet-selection")],Wr);const qr=c`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Vr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Kr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Gr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Vr(e,r,s),s};let Zr=class extends at{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=null!=(e=null==(t=yt.ThemeCtrl.state.themeVariables)?void 0:t["--wcm-wallet-icon-large-border-radius"])?e:Ce.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;return n=r.includes("%")?.88*parseInt(r,10):parseInt(r,10),n*=1.17,F``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return F`
    ${this.svgLoaderTemplate()}
    ${this.isError?"Connection declined":this.label}`}};Zr.styles=[Ce.globalCss,qr],Kr([ht()],Zr.prototype,"walletId",2),Kr([ht()],Zr.prototype,"imageId",2),Kr([ht({type:Boolean})],Zr.prototype,"isError",2),Kr([ht({type:Boolean})],Zr.prototype,"isStale",2),Kr([ht()],Zr.prototype,"label",2),Zr=Kr([lt("wcm-connector-waiting")],Zr);const Jr={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:n}=yt.ConfigCtrl.state,i=null==(t=Jr.recentWallet())?void 0:t.id,s=(yt.zv.isMobile()?r:n)?.filter((t=>i!==t.id));return null!=(e=yt.zv.isMobile()?s?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):s?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Ye.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Jr.recentWallet())?void 0:e.id,{recomendedWallets:n}=yt.ExplorerCtrl.state;return n.filter((t=>r!==t.id))}},Qr={onConnecting(t){Ye.goToConnectingView(t)},manualWalletsTemplate(){return Jr.manualWallets().map((t=>F``))},recomendedWalletsTemplate(t=!1){return Jr.recomendedWallets(t).map((t=>F``))},recentWalletTemplate(){const t=Jr.recentWallet();if(t)return F``}},Yr=c`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Xr=class extends at{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=yt.ConfigCtrl.state,r="ALL"!==t&&e,n=Qr.manualWalletsTemplate(),i=Qr.recomendedWalletsTemplate();let s=[Qr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>4||r;let a=[];a=o?s.slice(0,3):s;const c=Boolean(a.length);return F`
    ${$e.MOBILE_ICON}Mobile
    ${$e.SCAN_ICON}Scan with your wallet
    ${c?F`
    ${$e.DESKTOP_ICON}Desktop
    ${a} ${o?F``:null}
    `:null}`}};Xr.styles=[Ce.globalCss,Yr],Xr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-desktop-wallet-selection")],Xr);const tn=c`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let en=class extends at{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=yt.ConfigCtrl.state;return t??e?F`
    By connecting your wallet to this app, you agree to the app's ${t?F`Terms of Service`:null} ${t&&e?"and":null} ${e?F`Privacy Policy`:null}
    `:null}};en.styles=[Ce.globalCss,tn],en=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-legal-notice")],en);const rn=c`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let nn=class extends at{onQrcode(){yt.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=yt.ConfigCtrl.state,r="ALL"!==t&&e,n=Qr.manualWalletsTemplate(),i=Qr.recomendedWalletsTemplate();let s=[Qr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>8||r;let a=[];a=o?s.slice(0,7):s;const c=Boolean(a.length);return F`${c?F`
    ${a} ${o?F``:null}
    `:null}`}};nn.styles=[Ce.globalCss,rn],nn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-mobile-wallet-selection")],nn);const sn=c`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var on=Object.defineProperty,an=Object.getOwnPropertyDescriptor,cn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?an(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&on(e,r,s),s};let ln=class extends at{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=yt.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Ye.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Ye.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){document.querySelector("body")&&(t?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(t){t.target===t.currentTarget&&yt.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Ye.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([we(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,we(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Ye.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([we(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,we(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var e;"Escape"===t.key?yt.jb.close():"Tab"===t.key&&(null!=(e=t.target)&&e.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return F`
    ${this.open?F`
    `:null}
    `}};ln.styles=[Ce.globalCss,sn],cn([dt()],ln.prototype,"open",2),cn([dt()],ln.prototype,"active",2),ln=cn([lt("wcm-modal")],ln);const un=c`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,pn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?dn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&hn(e,r,s),s};let fn=class extends at{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){yt.zv.isMobile()?yt.AV.replace("MobileConnecting"):yt.AV.replace("MobileQrcodeConnecting")}onDesktop(){yt.AV.replace("DesktopConnecting")}onWeb(){yt.AV.replace("WebConnecting")}render(){return F`
    ${this.isRetry?F``:null} ${this.isMobile?F`Mobile`:null} ${this.isDesktop?F`Desktop`:null} ${this.isWeb?F`Web`:null}
    `}};fn.styles=[Ce.globalCss,un],pn([ht({type:Boolean})],fn.prototype,"isMobile",2),pn([ht({type:Boolean})],fn.prototype,"isDesktop",2),pn([ht({type:Boolean})],fn.prototype,"isWeb",2),pn([ht({type:Boolean})],fn.prototype,"isRetry",2),fn=pn([lt("wcm-platform-selection")],fn);const mn=c`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let gn=class extends at{onClick(){yt.AV.push("WalletExplorer")}render(){const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=[...t,...Jr.manualWallets()].reverse().slice(0,4);return F``}};gn.styles=[Ce.globalCss,mn],gn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-view-all-wallets-button")],gn);const yn=c`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var wn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?bn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&wn(e,r,s),s};let En=class extends at{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=yt.OptionsCtrl.state;this.uri=t}),0)}get overlayEl(){return Ye.getShadowRootElement(this,".wcm-qr-container")}render(){return F`
    ${this.uri?F``:F``}
    `}};En.styles=[Ce.globalCss,yn],vn([ht()],En.prototype,"walletId",2),vn([ht()],En.prototype,"imageId",2),vn([dt()],En.prototype,"uri",2),En=vn([lt("wcm-walletconnect-qr")],En),Object.defineProperty,Object.getOwnPropertyDescriptor;let xn=class extends at{viewTemplate(){return yt.zv.isAndroid()?F``:yt.zv.isMobile()?F``:F``}render(){return F`${this.viewTemplate()}`}};xn.styles=[Ce.globalCss],xn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-connect-wallet-view")],xn);const _n=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var An=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Sn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?kn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&An(e,r,s),s};let Cn=class extends at{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=yt.zv.getWalletRouterData(),n=e?.native;if(n){const e=yt.zv.formatNativeUrl(n,t,r);yt.zv.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=yt.OptionsCtrl.state,e=yt.zv.getWalletRouterData();Ye.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isMobile:n,isWeb:i}=Ye.getCachedRouterWalletPlatforms();return F`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Cn.styles=[Ce.globalCss,_n],Sn([dt()],Cn.prototype,"isError",2),Cn=Sn([lt("wcm-desktop-connecting-view")],Cn);const Mn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let In=class extends at{onInstall(t){t&&yt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:n}=yt.zv.getWalletRouterData();return F`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};In.styles=[Ce.globalCss,Mn],In=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-install-wallet-view")],In);const Pn=c`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var On=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Nn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Tn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&On(e,r,s),s};let Rn=class extends at{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:n}=yt.zv.getWalletRouterData(),i=r?.native,s=r?.universal;if(i&&!e){const e=yt.zv.formatNativeUrl(i,t,n);yt.zv.openHref(e,"_self")}else if(s){const e=yt.zv.formatUniversalUrl(s,t,n);yt.zv.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=yt.OptionsCtrl.state,r=yt.zv.getWalletRouterData();Ye.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&yt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:n,mobile:i}=yt.zv.getWalletRouterData(),{isWeb:s}=Ye.getCachedRouterWalletPlatforms(),o=n?.ios,a=i?.universal;return F`Retry${a?F`Still doesn't work? Try this alternate link`:null}
    ${`Get ${t}`}
    App Store
    `}};Rn.styles=[Ce.globalCss,Pn],Nn([dt()],Rn.prototype,"isError",2),Rn=Nn([lt("wcm-mobile-connecting-view")],Rn);const Bn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let jn=class extends at{render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isDesktop:n,isWeb:i}=Ye.getCachedRouterWalletPlatforms();return F`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};jn.styles=[Ce.globalCss,Bn],jn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-mobile-qr-connecting-view")],jn),Object.defineProperty,Object.getOwnPropertyDescriptor;let Ln=class extends at{render(){return F``}};Ln.styles=[Ce.globalCss],Ln=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-qrcode-view")],Ln);const Un=c`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Dn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Fn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?$n(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Dn(e,r,s),s};let zn=class extends at{constructor(){super(...arguments),this.loading=!yt.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!yt.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Ye.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,yt.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),yt.ExplorerCtrl.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Ye.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=yt.ExplorerCtrl.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=yt.ExplorerCtrl.state,{listings:n,total:i,page:s}=this.search?r:e;if(!this.endReached&&(this.firstFetch||i>40&&n.lengthYe.getWalletIcon(t)));await Promise.all([...n.map((async t=>Ye.preloadImage(t))),yt.zv.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),yt.ToastCtrl.openToast(Ye.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){yt.zv.isAndroid()?Ye.handleMobileLinking(t):Ye.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=yt.ExplorerCtrl.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let s=Qr.manualWalletsTemplate(),o=Qr.recomendedWalletsTemplate(!0);i&&(s=s.filter((({values:t})=>Ye.caseSafeIncludes(t[0],this.search))),o=o.filter((({values:t})=>Ye.caseSafeIncludes(t[0],this.search))));const a=!this.loading&&!r.length&&!o.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":a};return F`
    ${n?null:s} ${n?null:o} ${n?null:r.map((t=>F`${t?F``:null}`))}
    ${a?F`No results found`:null} ${!a&&this.loading?F``:null}
    `}};zn.styles=[Ce.globalCss,Un],Fn([dt()],zn.prototype,"loading",2),Fn([dt()],zn.prototype,"firstFetch",2),Fn([dt()],zn.prototype,"search",2),Fn([dt()],zn.prototype,"endReached",2),zn=Fn([lt("wcm-wallet-explorer-view")],zn);const Hn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Wn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Vn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?qn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Wn(e,r,s),s};let Gn=class extends at{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=yt.zv.getWalletRouterData(),n=e?.universal;if(n){const e=yt.zv.formatUniversalUrl(n,t,r);yt.zv.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=yt.OptionsCtrl.state,e=yt.zv.getWalletRouterData();Ye.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isMobile:n,isDesktop:i}=Ye.getCachedRouterWalletPlatforms(),s=yt.zv.isMobile();return F`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};Gn.styles=[Ce.globalCss,Hn],Vn([dt()],Gn.prototype,"isError",2),Gn=Vn([lt("wcm-web-connecting-view")],Gn)},59343:(t,e,r)=>{"use strict";r.d(e,{WalletConnectModal:()=>i});var n=r(70672);class i{constructor(t){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.ThemeCtrl.setThemeConfig,n.ThemeCtrl.setThemeConfig(t),n.ConfigCtrl.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(r.bind(r,30663));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),n.OptionsCtrl.setIsUiLoaded(!0)}}}},10248:(t,e,r)=>{"use strict";r.d(e,{E:()=>o});var n=r(27484),i=r(70660),s=r(84110);n.extend(s),n.extend(i),n.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"%s sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}});const o={getYear:(t=(new Date).toISOString())=>n(t).year(),getRelativeDateFromNow:t=>n(t).fromNow(!0)}},95909:(t,e,r)=>{"use strict";r.d(e,{AccountController:()=>l,ApiController:()=>M,fz:()=>Z,Lr:()=>U,ConnectionController:()=>W,ConnectorController:()=>b,bq:()=>o,j1:()=>a,Xs:()=>T,IN:()=>j,NetworkController:()=>_,OptionsController:()=>k,Ie:()=>E,RouterController:()=>R,_4:()=>J,yD:()=>V,SnackController:()=>$,MO:()=>m,ThemeController:()=>K,sl:()=>z});var n=r(96828);function i(t,e,r,i){let s=t[e];return(0,n.Ld)(t,(()=>{const n=t[e];Object.is(s,n)||r(s=n)}),i)}Symbol();const s="https://secure.web3modal.com",o={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:s,SECURE_SITE_DASHBOARD:`${s}/dashboard`,SECURE_SITE_FAVICON:`${s}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet"}},a={isMobile:()=>"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid(){const t=window.navigator.userAgent.toLowerCase();return a.isMobile()&&t.includes("android")},isIos(){const t=window.navigator.userAgent.toLowerCase();return a.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:t=>!t||t-Date.now()<=o.TEN_SEC_MS,isAllowedRetry:t=>Date.now()-t>=o.ONE_SEC_MS,copyToClopboard(t){navigator.clipboard.writeText(t)},getPairingExpiry:()=>Date.now()+o.FOUR_MINUTES_MS,getPlainAddress:t=>t.split(":")[2],wait:async t=>new Promise((e=>{setTimeout(e,t)})),debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),formatNativeUrl(t,e){if(a.isHttpUrl(t))return this.formatUniversalUrl(t,e);let r=t;return r.includes("://")||(r=t.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(e)}`,href:r}},formatUniversalUrl(t,e){if(!a.isHttpUrl(t))return this.formatNativeUrl(t,e);let r=t;return r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(e)}`,href:r}},openHref(t,e){window.open(t,e,"noreferrer noopener")},async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,a.wait(2e3)])},formatBalance(t,e){let r;if("0"===t)r="0.000";else if("string"==typeof t){const e=Number(t);e&&(r=e.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return r?`${r} ${e}`:`0.000 ${e}`},isRestrictedRegion(){try{const{timeZone:t}=(new Intl.DateTimeFormat).resolvedOptions(),e=t.toUpperCase();return o.RESTRICTED_TIMEZONES.includes(e)}catch{return!1}},getApiUrl:()=>a.isRestrictedRegion()?"https://api.web3modal.org":"https://api.web3modal.com",getBlockchainApiUrl:()=>a.isRestrictedRegion()?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com",getAnalyticsUrl:()=>a.isRestrictedRegion()?"https://pulse.walletconnect.org":"https://pulse.walletconnect.com",getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})),parseError:t=>"string"==typeof t?t:"string"==typeof t?.issues?.[0]?.message?t.issues[0].message:t instanceof Error?t.message:"Unknown error"},c=(0,n.sj)({isConnected:!1}),l={state:c,subscribe:t=>(0,n.Ld)(c,(()=>t(c))),subscribeKey:(t,e)=>i(c,t,e),setIsConnected(t){c.isConnected=t},setCaipAddress(t){c.caipAddress=t,c.address=t?a.getPlainAddress(t):void 0},setBalance(t,e){c.balance=t,c.balanceSymbol=e},setProfileName(t){c.profileName=t},setProfileImage(t){c.profileImage=t},setAddressExplorerUrl(t){c.addressExplorerUrl=t},resetAccount(){c.isConnected=!1,c.caipAddress=void 0,c.address=void 0,c.balance=void 0,c.balanceSymbol=void 0,c.profileName=void 0,c.profileImage=void 0,c.addressExplorerUrl=void 0}};class u{constructor({baseUrl:t}){this.baseUrl=t}async get({headers:t,...e}){const r=this.createUrl(e);return(await fetch(r,{method:"GET",headers:t})).json()}async getBlob({headers:t,...e}){const r=this.createUrl(e);return(await fetch(r,{method:"GET",headers:t})).blob()}async post({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"POST",headers:e,body:t?JSON.stringify(t):void 0})).json()}async put({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"PUT",headers:e,body:t?JSON.stringify(t):void 0})).json()}async delete({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"DELETE",headers:e,body:t?JSON.stringify(t):void 0})).json()}createUrl({path:t,params:e}){const r=new URL(t,this.baseUrl);return e&&Object.entries(e).forEach((([t,e])=>{e&&r.searchParams.append(t,e)})),r}}const h="WALLETCONNECT_DEEPLINK_CHOICE",d="@w3m/recent",p="@w3m/connected_wallet_image_url",f="@w3m/connected_connector",m={setWalletConnectDeepLink({href:t,name:e}){try{localStorage.setItem(h,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{const t=localStorage.getItem(h);if(t)return JSON.parse(t)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(h)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(t){try{const e=m.getRecentWallets();e.find((e=>e.id===t.id))||(e.unshift(t),e.length>2&&e.pop(),localStorage.setItem(d,JSON.stringify(e)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{const t=localStorage.getItem(d);return t?JSON.parse(t):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(t){try{localStorage.setItem(p,t)}catch{console.info("Unable to set Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(p)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(t){try{localStorage.setItem(f,t)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(f)}catch{console.info("Unable to get Connected Connector")}}},g=(0,n.sj)({walletImages:{},networkImages:{},connectorImages:{},tokenImages:{}}),y={state:g,subscribeNetworkImages:t=>(0,n.Ld)(g.networkImages,(()=>t(g.networkImages))),subscribeKey:(t,e)=>i(g,t,e),setWalletImage(t,e){g.walletImages[t]=e},setNetworkImage(t,e){g.networkImages[t]=e},setConnectorImage(t,e){g.connectorImages[t]=e},setTokenImage(t,e){g.tokenImages[t]=e}},w=(0,n.sj)({connectors:[]}),b={state:w,subscribeKey:(t,e)=>i(w,t,e),setConnectors(t){w.connectors=t.map((t=>(0,n.iH)(t)))},addConnector(t){w.connectors.push((0,n.iH)(t))},getEmailConnector:()=>w.connectors.find((t=>"EMAIL"===t.type)),getAnnouncedConnectorRdns:()=>w.connectors.filter((t=>"ANNOUNCED"===t.type)).map((t=>t.info?.rdns)),getConnectors:()=>w.connectors},v=(0,n.sj)({open:!1,selectedNetworkId:void 0}),E={state:v,subscribe:t=>(0,n.Ld)(v,(()=>t(v))),set(t){Object.assign(v,{...v,...t})}},x=(0,n.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1}),_={state:x,subscribeKey:(t,e)=>i(x,t,e),_getClient(){if(!x._client)throw new Error("NetworkController client not set");return x._client},setClient(t){x._client=(0,n.iH)(t)},setCaipNetwork(t){x.caipNetwork=t,E.set({selectedNetworkId:t?.id})},setDefaultCaipNetwork(t){x.caipNetwork=t,E.set({selectedNetworkId:t?.id}),x.isDefaultCaipNetwork=!0},setRequestedCaipNetworks(t){x.requestedCaipNetworks=t},async getApprovedCaipNetworksData(){const t=await this._getClient().getApprovedCaipNetworksData();x.supportsAllNetworks=t.supportsAllNetworks,x.approvedCaipNetworkIds=t.approvedCaipNetworkIds},async switchActiveNetwork(t){await this._getClient().switchCaipNetwork(t),x.caipNetwork=t},resetNetwork(){x.isDefaultCaipNetwork||(x.caipNetwork=void 0),x.approvedCaipNetworkIds=void 0,x.supportsAllNetworks=!0}},A=(0,n.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),k={state:A,subscribeKey:(t,e)=>i(A,t,e),setProjectId(t){A.projectId=t},setIncludeWalletIds(t){A.includeWalletIds=t},setExcludeWalletIds(t){A.excludeWalletIds=t},setFeaturedWalletIds(t){A.featuredWalletIds=t},setTokens(t){A.tokens=t},setTermsConditionsUrl(t){A.termsConditionsUrl=t},setPrivacyPolicyUrl(t){A.privacyPolicyUrl=t},setCustomWallets(t){A.customWallets=t},setEnableAnalytics(t){A.enableAnalytics=t},setSdkVersion(t){A.sdkVersion=t},setMetadata(t){A.metadata=t}},S=new u({baseUrl:a.getApiUrl()}),C=(0,n.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[]}),M={state:C,subscribeKey:(t,e)=>i(C,t,e),_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:r}=k.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":r}},async _fetchWalletImage(t){const e=`${S.baseUrl}/getWalletImage/${t}`,r=await S.getBlob({path:e,headers:M._getApiHeaders()});y.setWalletImage(t,URL.createObjectURL(r))},async _fetchNetworkImage(t){const e=`${S.baseUrl}/public/getAssetImage/${t}`,r=await S.getBlob({path:e,headers:M._getApiHeaders()});y.setNetworkImage(t,URL.createObjectURL(r))},async _fetchConnectorImage(t){const e=`${S.baseUrl}/public/getAssetImage/${t}`,r=await S.getBlob({path:e,headers:M._getApiHeaders()});y.setConnectorImage(t,URL.createObjectURL(r))},async fetchNetworkImages(){const{requestedCaipNetworks:t}=_.state,e=t?.map((({imageId:t})=>t)).filter(Boolean);e&&await Promise.allSettled(e.map((t=>M._fetchNetworkImage(t))))},async fetchConnectorImages(){const{connectors:t}=b.state,e=t.map((({imageId:t})=>t)).filter(Boolean);await Promise.allSettled(e.map((t=>M._fetchConnectorImage(t))))},async fetchFeaturedWallets(){const{featuredWalletIds:t}=k.state;if(t?.length){const{data:e}=await S.get({path:"/getWallets",headers:M._getApiHeaders(),params:{page:"1",entries:t?.length?String(t.length):"4",include:t?.join(",")}});e.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id)));const r=e.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled(r.map((t=>M._fetchWalletImage(t)))),C.featured=e}},async fetchRecommendedWallets(){const{includeWalletIds:t,excludeWalletIds:e,featuredWalletIds:r}=k.state,n=[...e??[],...r??[]].filter(Boolean),{data:i,count:s}=await S.get({path:"/getWallets",headers:M._getApiHeaders(),params:{page:"1",entries:"4",include:t?.join(","),exclude:n?.join(",")}}),o=m.getRecentWallets(),a=i.map((t=>t.image_id)).filter(Boolean),c=o.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...a,...c].map((t=>M._fetchWalletImage(t)))),C.recommended=i,C.count=s??0},async fetchWallets({page:t}){const{includeWalletIds:e,excludeWalletIds:r,featuredWalletIds:n}=k.state,i=[...C.recommended.map((({id:t})=>t)),...r??[],...n??[]].filter(Boolean),{data:s,count:o}=await S.get({path:"/getWallets",headers:M._getApiHeaders(),params:{page:String(t),entries:"40",include:e?.join(","),exclude:i.join(",")}}),c=s.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...c.map((t=>M._fetchWalletImage(t))),a.wait(300)]),C.wallets=[...C.wallets,...s],C.count=o>C.count?o:C.count,C.page=t},async searchWallet({search:t}){const{includeWalletIds:e,excludeWalletIds:r}=k.state;C.search=[];const{data:n}=await S.get({path:"/getWallets",headers:M._getApiHeaders(),params:{page:"1",entries:"100",search:t,include:e?.join(","),exclude:r?.join(",")}}),i=n.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...i.map((t=>M._fetchWalletImage(t))),a.wait(300)]),C.search=n},prefetch(){C.prefetchPromise=Promise.race([Promise.allSettled([M.fetchFeaturedWallets(),M.fetchRecommendedWallets(),M.fetchNetworkImages(),M.fetchConnectorImages()]),a.wait(3e3)])}},I=new u({baseUrl:a.getAnalyticsUrl()}),P=["MODAL_CREATED"],O=(0,n.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),T={state:O,subscribe:t=>(0,n.Ld)(O,(()=>t(O))),_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:r}=k.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":r}},async _sendAnalyticsEvent(t){try{if(P.includes(t.data.event)||"undefined"==typeof window)return;await I.post({path:"/e",headers:T._getApiHeaders(),body:{eventId:a.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:t.timestamp,props:t.data}})}catch{}},sendEvent(t){O.timestamp=Date.now(),O.data=t,k.state.enableAnalytics&&T._sendAnalyticsEvent(O)}},N=(0,n.sj)({view:"Connect",history:["Connect"]}),R={state:N,subscribeKey:(t,e)=>i(N,t,e),push(t,e){t!==N.view&&(N.view=t,N.history.push(t),N.data=e)},reset(t){N.view=t,N.history=[t]},replace(t,e){N.history.length>1&&N.history.at(-1)!==t&&(N.view=t,N.history[N.history.length-1]=t,N.data=e)},goBack(){if(N.history.length>1){N.history.pop();const[t]=N.history.slice(-1);t&&(N.view=t)}},goBackToIndex(t){if(N.history.length>1){N.history=N.history.slice(0,t+1);const[e]=N.history.slice(-1);e&&(N.view=e)}}},B=(0,n.sj)({loading:!1,open:!1}),j={state:B,subscribe:t=>(0,n.Ld)(B,(()=>t(B))),subscribeKey:(t,e)=>i(B,t,e),async open(t){await M.state.prefetchPromise,t?.view?R.reset(t.view):l.state.isConnected?R.reset("Account"):R.reset("Connect"),B.open=!0,E.set({open:!0}),T.sendEvent({type:"track",event:"MODAL_OPEN"})},close(){B.open=!1,E.set({open:!1}),T.sendEvent({type:"track",event:"MODAL_CLOSE"})},setLoading(t){B.loading=t}},L=new u({baseUrl:a.getBlockchainApiUrl()}),U={fetchIdentity:({caipChainId:t,address:e})=>L.get({path:`/v1/identity/${e}`,params:{chainId:t,projectId:k.state.projectId}}),fetchTransactions({account:t,projectId:e,cursor:r}){const n=r?{cursor:r}:{};return L.get({path:`/v1/account/${t}/history?projectId=${e}`,params:n})}},D=(0,n.sj)({message:"",variant:"success",open:!1}),$={state:D,subscribeKey:(t,e)=>i(D,t,e),showSuccess(t){D.message=t,D.variant="success",D.open=!0},showError(t){const e=a.parseError(t);D.message=e,D.variant="error",D.open=!0},hide(){D.open=!1}},F=(0,n.sj)({transactions:[],transactionsByYear:{},loading:!1,empty:!1,next:void 0}),z={state:F,subscribe:t=>(0,n.Ld)(F,(()=>t(F))),async fetchTransactions(t){const{projectId:e}=k.state;if(!e||!t)throw new Error("Transactions can't be fetched without a projectId and an accountAddress");F.loading=!0;try{const r=await U.fetchTransactions({account:t,projectId:e,cursor:F.next}),n=this.filterSpamTransactions(r.data),i=[...F.transactions,...n];F.loading=!1,F.transactions=i,F.transactionsByYear=this.groupTransactionsByYear(F.transactionsByYear,n),F.empty=0===i.length,F.next=r.next?r.next:void 0}catch(r){T.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:t,projectId:e,cursor:F.next}}),$.showError("Failed to fetch transactions"),F.loading=!1,F.empty=!0}},groupTransactionsByYear(t={},e=[]){const r=t;return e.forEach((t=>{const e=new Date(t.metadata.minedAt).getFullYear();r[e]||(r[e]=[]),r[e]?.push(t)})),r},filterSpamTransactions:t=>t.filter((t=>!t.transfers.every((t=>!0===t.nft_info?.flags.is_spam)))),resetTransactions(){F.transactions=[],F.transactionsByYear={},F.loading=!1,F.empty=!1,F.next=void 0}},H=(0,n.sj)({wcError:!1,buffering:!1}),W={state:H,subscribeKey:(t,e)=>i(H,t,e),_getClient(){if(!H._client)throw new Error("ConnectionController client not set");return H._client},setClient(t){H._client=(0,n.iH)(t)},connectWalletConnect(){H.wcPromise=this._getClient().connectWalletConnect((t=>{H.wcUri=t,H.wcPairingExpiry=a.getPairingExpiry()}))},async connectExternal(t){await(this._getClient().connectExternal?.(t)),m.setConnectedConnector(t.type)},async signMessage(t){return this._getClient().signMessage(t)},checkInstalled(t){return this._getClient().checkInstalled?.(t)},resetWcConnection(){H.wcUri=void 0,H.wcPairingExpiry=void 0,H.wcPromise=void 0,H.wcLinking=void 0,H.recentWallet=void 0,z.resetTransactions(),m.deleteWalletConnectDeepLink()},setWcLinking(t){H.wcLinking=t},setWcError(t){H.wcError=t,H.buffering=!1},setRecentWallet(t){H.recentWallet=t},setBuffering(t){H.buffering=t},async disconnect(){await this._getClient().disconnect(),this.resetWcConnection()}},q=(0,n.sj)({status:"uninitialized",isSiweEnabled:!1}),V={state:q,subscribeKey:(t,e)=>i(q,t,e),subscribe:t=>(0,n.Ld)(q,(()=>t(q))),_getClient(){if(!q._client)throw new Error("SIWEController client not set");return q._client},async getNonce(){const t=this._getClient(),e=await t.getNonce();return this.setNonce(e),e},async getSession(){const t=this._getClient(),e=await t.getSession();return e&&(this.setSession(e),this.setStatus("success")),e},createMessage(t){const e=this._getClient().createMessage(t);return this.setMessage(e),e},async verifyMessage(t){const e=this._getClient();return await e.verifyMessage(t)},async signIn(){const t=this._getClient();return await t.signIn()},async signOut(){const t=this._getClient();await t.signOut(),this.setStatus("ready"),t.onSignOut?.()},onSignIn(t){this._getClient().onSignIn?.(t)},onSignOut(){this._getClient().onSignOut?.()},setSIWEClient(t){q._client=(0,n.iH)(t),q.status="ready",q.isSiweEnabled=t.options.enabled},setNonce(t){q.nonce=t},setStatus(t){q.status=t},setMessage(t){q.message=t},setSession(t){q.session=t}},G=(0,n.sj)({themeMode:"dark",themeVariables:{}}),K={state:G,subscribe:t=>(0,n.Ld)(G,(()=>t(G))),setThemeMode(t){G.themeMode=t},setThemeVariables(t){G.themeVariables={...G.themeVariables,...t}},getSnapshot:()=>(0,n.CO)(G)},Z={getWalletImage:t=>t?.image_url?t?.image_url:t?.image_id?y.state.walletImages[t.image_id]:void 0,getNetworkImage:t=>t?.imageUrl?t?.imageUrl:t?.imageId?y.state.networkImages[t.imageId]:void 0,getConnectorImage:t=>t?.imageUrl?t.imageUrl:t?.imageId?y.state.connectorImages[t.imageId]:void 0},J={goBackOrCloseModal(){R.state.history.length>1?R.goBack():j.close()},navigateAfterNetworkSwitch(){const{history:t}=R.state,e=t.findIndex((t=>"Networks"===t));e>=1?R.goBackToIndex(e-1):j.close()}}},96541:(t,e,r)=>{"use strict";r.r(e),r.d(e,{W3mModal:()=>u});var n=r(95909),i=r(31123),s=r(74666),o=r(2927);const a=s.iv` +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("EvmChains",[],e):"object"==typeof exports?exports.EvmChains=e():t.EvmChains=e()}(this,(()=>(()=>{var t={5507:(t,e)=>{"use strict";function r(t){if(Array.isArray(t)){const e=[];let n=0;for(let i=0;it.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,r)}function i(t){if(0===t[0])throw new Error("invalid RLP: extra zeros");return u(l(t))}function s(t,e){if(t<56)return Uint8Array.from([t+e]);const r=p(t),n=p(e+55+r.length/2);return Uint8Array.from(h(n+r))}function o(t,e=!1){if(null==t||0===t.length)return Uint8Array.from([]);const r=a(g(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function a(t){let e,r,s,o,c;const l=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(e=u-127,s=128===u?Uint8Array.from([]):n(t,1,e),2===e&&s[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:s,remainder:t.slice(e)}}if(u<=191){if(r=u-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(o=n(t,r,s);o.length;)c=a(o),l.push(c.data),o=c.remainder;return{data:l,remainder:t.slice(s)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.RLP=e.utils=e.decode=e.encode=void 0,e.encode=r,e.decode=o;const c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){let e="";for(let r=0;rt+e.length),0),r=new Uint8Array(e);for(let e=0,n=0;e=2&&"0"===t[0]&&"x"===t[1]}function g(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return m(t)?h((e="string"!=typeof(r=t)?r:m(r)?r.slice(2):r).length%2?`0${e}`:e):f(t);var e,r;if("number"==typeof t||"bigint"==typeof t)return t?h(p(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}e.utils={bytesToHex:l,concatBytes:d,hexToBytes:h,utf8ToBytes:f},e.RLP={encode:r,decode:o}},8e3:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const i=r(5507),s=r(2192),o=r(5053),a=r(8040),c=r(8289),l=r(6219),u=r(8480),h=r(4712),d=BigInt(0);class f{constructor(t=d,e=d,r=l.KECCAK256_RLP,n=l.KECCAK256_NULL){this.nonce=t,this.balance=e,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(t){const{nonce:e,balance:r,storageRoot:n,codeHash:i}=t;return new f(void 0!==e?(0,c.bufferToBigInt)((0,c.toBuffer)(e)):void 0,void 0!==r?(0,c.bufferToBigInt)((0,c.toBuffer)(r)):void 0,void 0!==n?(0,c.toBuffer)(n):void 0,void 0!==i?(0,c.toBuffer)(i):void 0)}static fromRlpSerializedAccount(t){const e=(0,c.arrToBufArr)(i.RLP.decode(Uint8Array.from(t)));if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)}static fromValuesArray(t){const[e,r,n,i]=t;return new f((0,c.bufferToBigInt)(e),(0,c.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce=8?d+=r[t].toUpperCase():d+=r[t];return d},e.isValidChecksumAddress=function(t,r){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,r)===t},e.generateAddress=function(t,e){return(0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,c.bufferToBigInt)(e)===BigInt(0)?n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,null])))).slice(-20):n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,e])))).slice(-20)},e.generateAddress2=function(t,e,r){if((0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(r),20!==t.length)throw new Error("Expected from to be of length 20");if(32!==e.length)throw new Error("Expected salt to be of length 32");const i=(0,s.keccak256)(n.concat([n.from("ff","hex"),t,e,(0,s.keccak256)(r)]));return(0,c.toBuffer)(i).slice(-20)},e.isValidPrivate=function(t){return o.secp256k1.utils.isValidPrivateKey(t)},e.isValidPublic=function(t,e=!1){if((0,u.assertIsBuffer)(t),64===t.length)try{return o.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),t])),!0}catch(t){return!1}if(!e)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(t),!0}catch(t){return!1}},e.pubToAddress=function(t,e=!1){if((0,u.assertIsBuffer)(t),e&&64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),64!==t.length)throw new Error("Expected pubKey to be of length 64");return n.from((0,s.keccak256)(t)).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(t){return(0,u.assertIsBuffer)(t),n.from(o.secp256k1.ProjectivePoint.fromPrivateKey(t).toRawBytes(!1).slice(1))},e.privateToAddress=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))},e.importPublic=function(t){return(0,u.assertIsBuffer)(t),64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),t},e.zeroAddress=function(){const t=(0,c.zeros)(20);return(0,c.bufferToHex)(t)},e.isZeroAddress=function(t){try{(0,u.assertIsString)(t)}catch(t){return!1}return(0,e.zeroAddress)()===t},e.accountBodyFromSlim=p;const m=new Uint8Array(0);e.accountBodyToSlim=function(t){const[e,r,n,i]=t;return[e,r,(0,c.arrToBufArr)(n).equals(l.KECCAK256_RLP)?m:n,(0,c.arrToBufArr)(i).equals(l.KECCAK256_NULL)?m:i]},e.accountBodyToRLP=function(t,e=!0){const r=e?p(t):t;return(0,c.arrToBufArr)(i.RLP.encode(r))}},3415:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;const i=r(8e3),s=r(8289);class o{constructor(t){if(20!==t.length)throw new Error("Invalid address length");this.buf=t}static zero(){return new o((0,s.zeros)(20))}static fromString(t){if(!(0,i.isValidAddress)(t))throw new Error("Invalid address");return new o((0,s.toBuffer)(t))}static fromPublicKey(t){if(!n.isBuffer(t))throw new Error("Public key should be Buffer");const e=(0,i.pubToAddress)(t);return new o(e)}static fromPrivateKey(t){if(!n.isBuffer(t))throw new Error("Private key should be Buffer");const e=(0,i.privateToAddress)(t);return new o(e)}static generate(t,e){if("bigint"!=typeof e)throw new Error("Expected nonce to be a bigint");return new o((0,i.generateAddress)(t.buf,(0,s.bigIntToBuffer)(e)))}static generate2(t,e,r){if(!n.isBuffer(e))throw new Error("Expected salt to be a Buffer");if(!n.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new o((0,i.generateAddress2)(t.buf,e,r))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const t=(0,s.bufferToBigInt)(this.buf),e=BigInt(0),r=BigInt("0xffff");return t>=e&&t<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}e.Address=o},7285:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncEventEmitter=void 0;const n=r(7187);class i extends n.EventEmitter{emit(t,...e){let[r,n]=e;const i=this;let s=i._events[t]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),"newListener"!==t&&"removeListener"!==t||(r={event:r,fn:n},n=void 0),s=Array.isArray(s)?s:[s],async function(t,e,r){let n;for await(const i of e)try{i.length<2?i.call(t,r):await new Promise(((e,n)=>{i.call(t,r,(t=>{t?n(t):e()}))}))}catch(t){n=t}if(n)throw n}(i,s.slice(),r).then(n).catch(n),i.listenerCount(t)>0}once(t,e){const r=this;let n;if("function"!=typeof e)throw new TypeError("listener must be a function");return n=e.length>=2?function(i,s){r.removeListener(t,n),e(i,s)}:function(i){r.removeListener(t,n),e(i,n)},r.on(t,n),r}first(t,e){let r=this._events[t]??[];if("function"!=typeof e)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[t]=r=[r]),r.unshift(e),this}before(t,e,r){return this.beforeOrAfter(t,e,r)}after(t,e,r){return this.beforeOrAfter(t,e,r,"after")}beforeOrAfter(t,e,r,n){let i,s,o=this._events[t]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof e)throw new TypeError("target must be a function");for(Array.isArray(o)||(this._events[t]=o=[o]),s=o.length,i=o.length;i--;)if(o[i]===e){s=i+a;break}return o.splice(s,0,r),this}on(t,e){return super.on(t,e)}addListener(t,e){return super.addListener(t,e)}prependListener(t,e){return super.prependListener(t,e)}prependOnceListener(t,e){return super.prependOnceListener(t,e)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,e){return super.removeListener(t,e)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}e.AsyncEventEmitter=i},8289:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const i=r(8480),s=r(4712);e.intToHex=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},e.intToBuffer=function(t){const r=(0,e.intToHex)(t);return n.from((0,s.padToEven)(r.slice(2)),"hex")},e.zeros=function(t){return n.allocUnsafe(t).fill(0)};const o=function(t,r,n){const i=(0,e.zeros)(r);return n?t.length0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};function c(t){const r=(0,e.bufferToHex)(t);return"0x"===r?BigInt(0):BigInt(r)}function l(t){return(0,e.toBuffer)("0x"+t.toString(16))}e.unpadBuffer=function(t){return(0,i.assertIsBuffer)(t),a(t)},e.unpadArray=function(t){return(0,i.assertIsArray)(t),a(t)},e.unpadHexString=function(t){return(0,i.assertIsHexString)(t),t=(0,s.stripHexPrefix)(t),"0x"+a(t)},e.toBuffer=function(t){if(null==t)return n.allocUnsafe(0);if(n.isBuffer(t))return n.from(t);if(Array.isArray(t)||t instanceof Uint8Array)return n.from(t);if("string"==typeof t){if(!(0,s.isHexString)(t))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${t}`);return n.from((0,s.padToEven)((0,s.stripHexPrefix)(t)),"hex")}if("number"==typeof t)return(0,e.intToBuffer)(t);if("bigint"==typeof t){if(t0&&0===r[0])throw new Error(`${e} cannot have leading zeroes, received: ${r.toString("hex")}`)},e.arrToBufArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):n.from(e)},e.bufArrToArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):Uint8Array.from(e??[])},e.bigIntToHex=t=>"0x"+t.toString(16),e.bigIntToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)(l(t))},e.intToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)((0,e.intToBuffer)(t))}},6219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const n=r(8764),i=r(5053);e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=i.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=n.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16},3791:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0,e.hasTerminator=t=>t.length>0&&16===t[t.length-1],e.nibblesToBytes=(t,e)=>{for(let r=0,n=0;n{let r=0;(0,e.hasTerminator)(t)&&(r=1,t=t.subarray(0,t.length-1));const n=new Uint8Array(t.length/2+1);return n[0]=r<<5,1==(1&t.length)&&(n[0]|=16,n[0]|=t[0],t=t.subarray(1)),(0,e.nibblesToBytes)(t,n.subarray(1)),n},e.bytesToNibbles=t=>{const e=2*t.length+1,r=new Uint8Array(e);for(let e=0;e{if(0===t.length)return t;let r=(0,e.bytesToNibbles)(t);r[0]<2&&(r=r.subarray(0,r.length-1));const n=2-(1&r[0]);return r.subarray(n)}},8480:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;const i=r(4712);e.assertIsHexString=function(t){if(!(0,i.isHexString)(t))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${t}`)},e.assertIsBuffer=function(t){if(!n.isBuffer(t))throw new Error(`This method only supports Buffer but input was: ${t}`)},e.assertIsArray=function(t){if(!Array.isArray(t))throw new Error(`This method only supports number arrays but input was: ${t}`)},e.assertIsString=function(t){if("string"!=typeof t)throw new Error(`This method only supports strings but input was: ${t}`)}},2730:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,i(r(6219),e),i(r(4554),e),i(r(8e3),e),i(r(3415),e),i(r(4683),e),i(r(5026),e),i(r(8289),e),i(r(1200),e),i(r(3791),e),i(r(7285),e);var s=r(4712);Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return s.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return s.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return s.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return s.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return s.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return s.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return s.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return s.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return s.toAscii}}),i(r(3543),e),i(r(438),e)},4712:(t,e,r)=>{"use strict";var n=r(8764).Buffer;function i(t){if("string"!=typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof t);return"0"===t[0]&&"x"===t[1]}function s(t){let e=t;if("string"!=typeof e)throw new Error("[padToEven] value must be type 'string', received "+typeof e);return e.length%2&&(e=`0${e}`),e}Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=i,e.stripHexPrefix=t=>{if("string"!=typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof t);return i(t)?t.slice(2):t},e.padToEven=s,e.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return n.byteLength(t,"utf8")},e.arrayContainsArray=function(t,e,r){if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[!0===r?"some":"every"]((e=>t.indexOf(e)>=0))},e.toAscii=function(t){let e="",r=0;const n=t.length;for("0x"===t.substring(0,2)&&(r=2);r0&&t.length!==2+2*e)}},3543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lock=void 0,e.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((t=>this.promiseResolverQueue.push(t)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}},438:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=e.fetchFromProvider=void 0;const n=r(4898);e.fetchFromProvider=async(t,e)=>(await(0,n.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result,e.getProvider=t=>{if("string"==typeof t)return t;if(void 0!==t?.connection?.url)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},5026:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;const i=r(2192),s=r(5053),o=r(8289),a=r(6219),c=r(8480);function l(t,e){return t===BigInt(0)||t===BigInt(1)?t:void 0===e?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function u(t){return t===BigInt(0)||t===BigInt(1)}e.ecsign=function(t,e,r){const i=s.secp256k1.sign(t,e),o=i.toCompactRawBytes();return{r:n.from(o.slice(0,32)),s:n.from(o.slice(32,64)),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2)}},e.ecrecover=function(t,e,r,i,a){const c=n.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(i,32)],64),h=l(e,a);if(!u(h))throw new Error("Invalid signature v value");const d=s.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(h)).recoverPublicKey(t);return n.from(d.toRawBytes(!1).slice(1))},e.toRpcSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(t)]))},e.toCompactSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");let s=r;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(s=n.from(r),s[0]|=128),(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(s,32)]))},e.fromRpcSig=function(t){const e=(0,o.toBuffer)(t);let r,n,i;if(e.length>=65)r=e.slice(0,32),n=e.slice(32,64),i=(0,o.bufferToBigInt)(e.slice(64));else{if(64!==e.length)throw new Error("Invalid signature length");r=e.slice(0,32),n=e.slice(32,64),i=BigInt((0,o.bufferToInt)(e.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r,s:n}},e.isValidSignature=function(t,e,r,n=!0,i){if(32!==e.length||32!==r.length)return!1;if(!u(l(t,i)))return!1;const s=(0,o.bufferToBigInt)(e),c=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||c===BigInt(0)||c>=a.SECP256K1_ORDER||n&&c>=a.SECP256K1_ORDER_DIV_2)},e.hashPersonalMessage=function(t){(0,c.assertIsBuffer)(t);const e=n.from(`Ethereum Signed Message:\n${t.length}`,"utf-8");return n.from((0,i.keccak256)(n.concat([e,t])))}},1200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const n=r(8289),i=r(4712);var s;!function(t){t[t.Number=0]="Number",t[t.BigInt=1]="BigInt",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"}(s=e.TypeOutput||(e.TypeOutput={})),e.toType=function(t,e){if(null===t)return null;if(void 0===t)return;if("string"==typeof t&&!(0,i.isHexString)(t))throw new Error(`A string must be provided with a 0x-prefix, given: ${t}`);if("number"==typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(t);switch(e){case s.Buffer:return r;case s.BigInt:return(0,n.bufferToBigInt)(r);case s.Number:{const t=(0,n.bufferToBigInt)(r);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case s.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}},4554:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GWEI_TO_WEI=void 0,e.GWEI_TO_WEI=BigInt(1e9)},4683:(t,e,r)=>{"use strict";var n=r(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Withdrawal=void 0;const i=r(3415),s=r(8289),o=r(1200);class a{constructor(t,e,r,n){this.index=t,this.validatorIndex=e,this.address=r,this.amount=n}static fromWithdrawalData(t){const{index:e,validatorIndex:r,address:n,amount:s}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt),l=(0,o.toType)(r,o.TypeOutput.BigInt),u=new i.Address((0,o.toType)(n,o.TypeOutput.Buffer)),h=(0,o.toType)(s,o.TypeOutput.BigInt);return new a(c,l,u,h)}static fromValuesArray(t){if(4!==t.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[e,r,n,i]=t;return a.fromWithdrawalData({index:e,validatorIndex:r,address:n,amount:i})}static toBufferArray(t){const{index:e,validatorIndex:r,address:s,amount:a}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(e,o.TypeOutput.Buffer),l=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer);let u;return u=s instanceof i.Address?s.buf:(0,o.toType)(s,o.TypeOutput.Buffer),[c,l,u,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,s.bigIntToHex)(this.index),validatorIndex:(0,s.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,s.bigIntToHex)(this.amount)}}}e.Withdrawal=a},2816:(t,e,r)=>{"use strict";r.d(e,{RQ:()=>Ot,_R:()=>x});let n=!1,i=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=s.default,a=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var l,u;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const h="0123456789abcdef";class d{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>s[r]||console.log.apply(console,e)}debug(...t){this._log(d.levels.DEBUG,t)}info(...t){this._log(d.levels.INFO,t)}warn(...t){this._log(d.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=h[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const s=t;let o="";switch(e){case u.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=e,Object.keys(r).forEach((function(t){a[t]=r[t]})),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,d.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?o=e:d.globalLogger().warn("invalid log level - "+t)}static from(t){return new d(t)}}function f(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}d.errors=u,d.levels=l,new d("properties/5.7.0");const p="abi/5.7.0",m=new d(p),g={};let y={calldata:!0,memory:!0,storage:!0},w={calldata:!0,memory:!0};function b(t,e){if("bytes"===t||"string"===t){if(y[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&w[e])return!0;return(y[e]||"payable"===e)&&m.throwArgumentError("invalid modifier","name",e),!1}function v(t,e){for(let r in e)f(t,r,e[r])}const A=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),E=new RegExp(/^(.*)\[([0-9]*)\]$/);class x{constructor(t,e){t!==g&&m.throwError("use fromString",d.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,e);let r=this.type.match(E);v(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:x.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=A.sighash),A[t]||m.throwArgumentError("invalid format type","format",t),t===A.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==A.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===A.full?", ":",")+")"):e+=this.type,t!==A.sighash&&(!0===this.indexed&&(e+=" indexed"),t===A.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?x.fromString(t,e):x.fromObject(t)}static fromObject(t){return x.isParamType(t)?t:new x(g,{name:t.name||null,type:_(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(x.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){m.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let s={type:"",name:"",state:{allowType:!0}},o=s;for(let r=0;r=256)return!1}return!0}function P(t,e){if(e||(e={}),"number"==typeof t){S.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),C(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),M(t)&&(t=t.toHexString()),N(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":S.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;tP(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),C(n)}function N(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const T="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){S.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=T[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),M(t))return t.toHexString();if(N(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":S.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(I(t)){let e="0x";for(let r=0;r>4]+T[15&n]}return e}return S.throwArgumentError("invalid hexlify value","value",t)}var B=r(3877),L=r.n(B)().BN;const U=new d("bignumber/5.7.0"),j={},D=9007199254740991;let F=!1;class z{constructor(t,e){t!==j&&U.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return $(q(this).fromTwos(t))}toTwos(t){return $(q(this).toTwos(t))}abs(){return"-"===this._hex[0]?z.from(this._hex.substring(1)):this}add(t){return $(q(this).add(q(t)))}sub(t){return $(q(this).sub(q(t)))}div(t){return z.from(t).isZero()&&W("division-by-zero","div"),$(q(this).div(q(t)))}mul(t){return $(q(this).mul(q(t)))}mod(t){const e=q(t);return e.isNeg()&&W("division-by-zero","mod"),$(q(this).umod(e))}pow(t){const e=q(t);return e.isNeg()&&W("negative-power","pow"),$(q(this).pow(e))}and(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","and"),$(q(this).and(e))}or(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","or"),$(q(this).or(e))}xor(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","xor"),$(q(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&W("negative-width","mask"),$(q(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&W("negative-width","shl"),$(q(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&W("negative-width","shr"),$(q(this).shrn(t))}eq(t){return q(this).eq(q(t))}lt(t){return q(this).lt(q(t))}lte(t){return q(this).lte(q(t))}gt(t){return q(this).gt(q(t))}gte(t){return q(this).gte(q(t))}isNegative(){return"-"===this._hex[0]}isZero(){return q(this).isZero()}toNumber(){try{return q(this).toNumber()}catch(t){W("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return U.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?F||(F=!0,U.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?U.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):U.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),q(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof z)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new z(j,H(t)):t.match(/^-?[0-9]+$/)?new z(j,H(new L(t))):U.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&W("underflow","BigNumber.from",t),(t>=D||t<=-D)&&W("overflow","BigNumber.from",t),z.from(String(t));const e=t;if("bigint"==typeof e)return z.from(e.toString());if(I(e))return z.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return z.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(N(t)||"-"===t[0]&&N(t.substring(1))))return z.from(t)}return U.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function H(t){if("string"!=typeof t)return H(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&U.throwArgumentError("invalid hex","value",t),"0x00"===(t=H(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function $(t){return z.from(H(t))}function q(t){const e=z.from(t).toHexString();return"-"===e[0]?new L("-"+e.substring(3),16):new L(e.substring(2),16)}function W(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),U.throwError(t,d.errors.NUMERIC_FAULT,n)}const V=new d(p);class G{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){V.throwArgumentError(t,this.localName,e)}}class K{constructor(t){f(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return function(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(O(t._data))}writeBytes(t){let e=P(t);const r=e.length%this.wordSize;return r&&(e=O([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=P(z.from(t));return e.length>this.wordSize&&V.throwError("value out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=O([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Z{constructor(t,e,r,n){f(this,"_data",P(t)),f(this,"wordSize",e||32),f(this,"_coerceFunc",r),f(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Z.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:V.throwError("data out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Z(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return z.from(this.readBytes(this.wordSize))}}var Q=r(1094),J=r.n(Q);const Y=new d("address/5.7.0");function X(t){N(t,20)||Y.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=P((i=r,"0x"+J().keccak_256(P(i))));var i;for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const tt={};for(let t=0;t<10;t++)tt[String(t)]=String(t);for(let t=0;t<26;t++)tt[String.fromCharCode(65+t)]=String(10+t);const et=Math.floor((rt=9007199254740991,Math.log10?Math.log10(rt):Math.log(rt)/Math.LN10));var rt;function nt(t){let e=null;if("string"!=typeof t&&Y.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=X(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Y.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>tt[t])).join("");for(;e.length>=et;){let t=e.substring(0,et);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Y.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new L(r,36).toString(16);e.length<40;)e="0"+e;e=X("0x"+e)}else Y.throwArgumentError("invalid address","address",t);var r;return e}class it extends G{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=nt(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return nt(function(t,e){for("string"!=typeof t?t=R(t):N(t)||S.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&S.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}(t.readValue().toHexString(),20))}}class st extends G{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const ot=new d(p);function at(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||ot.throwError("cannot encode object for signature with missing names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&ot.throwError("cannot encode object for signature with duplicate names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else ot.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&ot.throwArgumentError("types/value length mismatch","tuple",r);let i=new K(t.wordSize),s=new K(t.wordSize),o=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=s.length;t.encode(s,r);let n=i.writeUpdatableValue();o.push((t=>{n(t+e)}))}else t.encode(i,r)})),o.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function ct(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),s=n.subReader(r.toNumber());try{i=e.decode(s)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const s=r[e];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s}));for(let t=0;t{throw e}})}return Object.freeze(r)}class lt extends G{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;rt._data.length&&ot.throwError("insufficient data length",d.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t>6==2;n++)t++;return t}return t===Et.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(At||(At={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(Et||(Et={}));const _t=Object.freeze({error:function(t,e,r,n,i){return vt.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:xt,replace:function(t,e,r,n,i){return t===Et.OVERLONG?(n.push(i),0):(n.push(65533),xt(t,e,r))}});function St(t,e){return function(t,e){null==e&&(e=_t.error),t=P(t);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let s=null,o=null;if(192==(224&i))s=1,o=127;else if(224==(240&i))s=2,o=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?Et.UNEXPECTED_CONTINUE:Et.BAD_PREFIX,n-1,t,r);continue}s=3,o=65535}if(n-1+s>=t.length){n+=e(Et.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let i=0;i1114111?n+=e(Et.OUT_OF_RANGE,n-1-s,t,r,a):a>=55296&&a<=57343?n+=e(Et.UTF16_SURROGATE,n-1-s,t,r,a):a<=o?n+=e(Et.OVERLONG,n-1-s,t,r,a):r.push(a))}return r}(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}class Mt extends ht{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,function(t,e=At.current){e!=At.current&&(vt.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return P(r)}(e))}decode(t){return St(super.decode(t))}}class Ct extends G{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)})),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return at(t,this.coders,e)}decode(t){return t.coerce(this.name,ct(t,this.coders))}}const kt=new d(p),It=new RegExp(/^bytes([0-9]*)$/),Pt=new RegExp(/^(u?int)([0-9]*)$/);class Ot{constructor(t){f(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new it(t.name);case"bool":return new ut(t.name);case"string":return new Mt(t.name);case"bytes":return new dt(t.name);case"array":return new lt(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Ct((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new pt(t.name)}let e=t.type.match(Pt);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&kt.throwArgumentError("invalid "+e[1]+" bit length","param",t),new bt(r/8,"int"===e[1],t.name)}if(e=t.type.match(It),e){let r=parseInt(e[1]);return(0===r||r>32)&&kt.throwArgumentError("invalid bytes length","param",t),new ft(r,t.name)}return kt.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Z(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new K(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(x.from(t))));return new Ct(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&kt.throwError("types/values length mismatch",d.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(x.from(t)))),n=new Ct(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(x.from(t))));return new Ct(n,"_").decode(this._getReader(P(e),r))}}new Ot},3877:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(8677).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],f=[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],p=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],u=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new M(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(E,A),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new x;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return v[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5946:(t,e,r)=>{const n=r(8269),i=r(4431),s=r(2295),o=r(661);s.addABI(o),t.exports={hex:t=>"0x"+t.toString(16),toHex(t,e){let r="1"+"0".repeat(e),s=new i(t.toString(10),10).times(r);return n.toHex(s.toString(10))},toDec(t,e){let r="1"+"0".repeat(e),n=new i(t.toString(10),10).dividedBy(r);return parseFloat(n.toString(10))},abiDecoder:t=>s.decodeMethod(t),isNumeric:t=>!isNaN(Number(t)),getTokenABI:()=>o,isMobile(){let t=!1;return t=!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}()),t}}},4900:function(t,e,r){var n;n=()=>(()=>{var t,e,n={39016:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletSDK=void 0;const n=r(52719),i=r(82704),s=r(49682),o=r(83143),a=r(31405),c=r(16570),l=r(27472),u=r(94643),h=r(43604);class d{constructor(t){var e,r,n;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const o=t.linkAPIUrl||i.LINK_API_URL;let u;if(u=t.uiConstructor?t.uiConstructor:t=>new a.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(n=t.reloadOnDisconnect)||void 0===n||n;const f=new URL(o),p=`${f.protocol}//${f.host}`;this._storage=new s.ScopedLocalStorage(`-walletlink:${p}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new l.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:o,version:h.LIB_VERSION,darkMode:!!t.darkMode,uiConstructor:u,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode||this._relay.attachUI())}makeWeb3Provider(t="",e=1){const r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof r.disableReloadOnDisconnect&&r.disableReloadOnDisconnect(),r;const n=this.coinbaseBrowser;if(n)return n;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,e){var r;this._appName=t||"DApp",this._appLogoUrl=e||(0,u.getFavicon)();const n=this.walletExtension;n?this.isCipherProvider(n)||n.setAppInfo(this._appName,this._appLogoUrl):null===(r=this._relay)||void 0===r||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,n.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{const r=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!r)return;return"isCoinbaseBrowser"in r&&r.isCoinbaseBrowser?r:void 0}catch(t){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=h.LIB_VERSION},52719:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0,e.walletLogo=(t,e)=>{let r;switch(t){case"standard":default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},57816:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},95558:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(94643),c=r(43604),l=r(37598),u=n(r(417)),h=n(r(12348)),d=r(18646),f=n(r(35666)),p=n(r(30019)),m=r(67494),g=r(70381),y=r(88727),w=n(r(57816)),b={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:E},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:u.default,steps:x}},v=t=>"light"===t?"#FFFFFF":"#0A0B0D";function A({title:t,description:e,icon:r,selected:n,theme:o,onClick:a}){return(0,s.h)("div",{onClick:a,class:(0,i.default)("-cbwsdk-connect-item",o,{selected:n})},(0,s.h)("div",null,(0,s.h)("img",{src:r,alt:t})),(0,s.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,s.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,s.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function E({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"Scan")," "),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:v(t)})))))}function x({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"More")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(m.StatusDotIcon,{fill:v(t)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:v(t)})))))}e.ConnectContent=function(t){const{theme:e}=t,[r,n]=(0,o.useState)("coinbase-wallet-app"),u=(0,o.useCallback)((t=>{n(t)}),[]),h=(0,a.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId);if(!r)return null;const d=b[r].steps,m="coinbase-app"===r;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,s.h)("style",null,w.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,s.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,s.h)(l.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,s.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,s.h)("div",null,Object.entries(b).map((([t,n])=>(0,s.h)(A,{key:t,title:n.title,description:n.description,icon:n.icon,selected:r===t,onClick:()=>u(t),theme:e})))),m&&(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Don’t see a ",(0,s.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,s.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,s.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,s.h)(g.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:(v=r,"coinbase-app"===v?f.default:p.default),width:25,height:25}}),(0,s.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:h})),(0,s.h)(d,{theme:e}),!t.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,s.h)(y.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))));var v},e.ConnectItem=A,e.CoinbaseWalletSteps=E,e.CoinbaseAppSteps=x},96956:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},98845:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(95558),c=r(26868),l=n(r(96956));e.ConnectDialog=t=>{const{isOpen:e,darkMode:r}=t,[n,u]=(0,o.useState)(!e),[h,d]=(0,o.useState)(!e);(0,o.useEffect)((()=>{const t=[window.setTimeout((()=>{d(!e)}),10)];return e?u(!1):t.push(window.setTimeout((()=>{u(!0)}),360)),()=>{t.forEach(window.clearTimeout)}}),[t.isOpen]);const f=r?"dark":"light";return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,s.h)(a.ConnectContent,{theme:f,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,s.h)(c.TryExtensionContent,{theme:f}))))}},27759:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;const n=r(6400),i=r(34143),s=r(98845);e.LinkFlow=class{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((t=>{this.isConnected!==t&&(this.isConnected=t,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((t=>{this.chainId!==t&&(this.chainId=t,this.render())})))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,n.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const t=this.extensionUI$.subscribe((()=>{this.root&&(0,n.render)((0,n.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}));this.subscriptions.add(t)}}},70381:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;const s=r(6400),o=r(30396),a=i(r(7713));e.QRCode=t=>{const[e,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var e,i;const s=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(e=t.width)&&void 0!==e?e:256,height:null!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),o=n.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${o}`)})),e?(0,s.h)("img",{src:e,alt:"QR Code"}):null}},24325:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},19199:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=n(r(24325));function c(t){return"coinbase-app"===t?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}e.Snackbar=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([t,r])=>(0,s.h)(e.SnackbarInstance,Object.assign({},r,{key:t})))))),this.root)}},e.SnackbarContainer=t=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,a.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},t.children)),e.SnackbarInstance=({autoExpand:t,message:e,menuItems:r,appSrc:n})=>{const[a,l]=(0,o.useState)(!0),[u,h]=(0,o.useState)(null!=t&&t);return(0,o.useEffect)((()=>{const t=[window.setTimeout((()=>{l(!1)}),1),window.setTimeout((()=>{h(!0)}),1e4)];return()=>{t.forEach(window.clearTimeout)}})),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",u&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!u)}},(0,s.h)("img",{src:c(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,s.h)("div",{class:"-gear-container"},!u&&(0,s.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,s.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map(((t,e)=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,s.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info))))))}},22061:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},88727:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;const i=r(6400),s=n(r(22061));e.Spinner=t=>{var e;const r=null!==(e=t.size)&&void 0!==e?e:64,n=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,s.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))}},5157:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},26868:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;const i=n(r(86010)),s=r(6400),o=r(30396),a=r(79414),c=r(52467),l=r(25178),u=n(r(5157));e.TryExtensionContent=function({theme:t}){const[e,r]=(0,o.useState)(!1),n=(0,o.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),h=(0,o.useCallback)((()=>{e?window.location.reload():(n(),r(!0))}),[n,e]);return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,s.h)("style",null,u.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,s.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,s.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,s.h)("div",null,!e&&(0,s.h)(a.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(c.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(l.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},79414:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;const n=r(6400);e.ArrowLeftIcon=function(t){return(0,n.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},37598:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;const n=r(6400);e.CloseIcon=function(t){return(0,n.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},52467:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;const n=r(6400);e.LaptopIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,n.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},18646:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;const n=r(6400);e.QRCodeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,n.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,n.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,n.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,n.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,n.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,n.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,n.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,n.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},35666:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n'},30019:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n \n'},25178:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;const n=r(6400);e.SafeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},67494:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;const n=r(6400);e.StatusDotIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},417:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},12348:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},85755:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},32191:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},80179:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;const n=r(34143),i=r(11717);var s;!function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"}(s=e.ConnectionState||(e.ConnectionState={})),e.RxWebSocket=class{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new n.BehaviorSubject(s.DISCONNECTED),this.incomingDataSubject=new n.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,n.throwError)(new Error("webSocket object is not null")):new n.Observable((t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(e){return void t.error(e)}this.connectionStateSubject.next(s.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(new Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(s.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(s.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(s.DISCONNECTED);try{t.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((t=>{let e;try{e=JSON.parse(t)}catch(t){return(0,n.empty)()}return(0,n.of)(e)})))}sendData(t){const{webSocket:e}=this;if(!e)throw new Error("websocket is not connected");e.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}},76156:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"==typeof t.id&&"string"==typeof t.sessionId&&"string"==typeof t.error}},18876:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;const n=r(34143),i=r(11717),s=r(73526),o=r(91295),a=r(85755),c=r(32191),l=r(80179),u=r(76156);e.WalletSDKConnection=class{constructor(t,e,r,a,u=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=a,this.subscriptions=new n.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,o.IntNumber)(1),this.connectedSubject=new n.BehaviorSubject(!1),this.linkedSubject=new n.BehaviorSubject(!1),this.sessionConfigSubject=new n.ReplaySubject(1);const h=new l.RxWebSocket(r+"/rpc",u);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)((e=>{var r;return null===(r=this.diagnostic)||void 0===r?void 0:r.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:s.Session.hash(t)})})),(0,i.skip)(1),(0,i.filter)((t=>t===l.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((t=>!this.destroyed)),(0,i.flatMap)((t=>h.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((t=>(0,n.iif)((()=>t===l.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((t=>this.sendIsLinked())),(0,i.tap)((t=>this.sendGetSessionConfig())),(0,i.map)((t=>!0))),(0,n.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((t=>(0,n.of)(!1)))).subscribe((t=>this.connectedSubject.next(t)))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((t=>(0,n.iif)((()=>t===l.ConnectionState.CONNECTED),(0,n.timer)(0,1e4))))).subscribe((t=>0===t?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)((t=>"h"===t))).subscribe((t=>this.updateLastHeartbeat()))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["IsLinkedOK","Linked"].includes(t.type)))).subscribe((e=>{var r;const n=e;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.LINKED,{sessionIdHash:s.Session.hash(t),linked:n.linked,type:e.type,onlineGuests:n.onlineGuests}),this.linkedSubject.next(n.linked||n.onlineGuests>0)}))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type)))).subscribe((e=>{var r;const n=e;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(t),metadata_keys:n&&n.metadata?Object.keys(n.metadata):void 0}),this.sessionConfigSubject.next({webhookId:n.webhookId,webhookUrl:n.webhookUrl,metadata:n.metadata})})))}connect(){var t;if(this.destroyed)throw new Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.STARTED_CONNECTING,{sessionIdHash:s.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.DISCONNECTED,{sessionIdHash:s.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((t=>{if("Event"!==t.type)return!1;const e=t;return"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data})),(0,i.map)((t=>t)))}setSessionMetadata(t,e){const r=(0,a.ClientMessageSetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)((t=>this.makeRequest(r))),(0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to set session metadata")})))}publishEvent(t,e,r=!1){const n=(0,a.ClientMessagePublishEvent)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:r});return this.onceLinked$.pipe((0,i.flatMap)((t=>this.makeRequest(n))),(0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to publish event");return t.eventId})))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){const r=t.id;try{this.sendData(t)}catch(t){return(0,n.throwError)(t)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,n.throwError)(new Error(`request ${r} timed out`))),(0,i.filter)((t=>t.id===r)),(0,i.take)(1))}authenticate(){const t=(0,a.ClientMessageHostSession)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(t).pipe((0,i.map)((t=>{if((0,u.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")})))}sendIsLinked(){const t=(0,a.ClientMessageIsLinked)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){const t=(0,a.ClientMessageGetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}},82704:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINK_API_URL=void 0,e.LINK_API_URL="https://www.walletlink.org"},69621:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getErrorCode=e.serializeError=e.standardErrors=e.standardErrorMessage=e.standardErrorCodes=void 0;const n=r(79826),i=r(67386),s=r(43604);e.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},n.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},n.errorCodes.provider),{unsupportedChain:4902}))})),e.standardErrorMessage=function(t){return void 0!==t?(0,n.getMessageFromCode)(t):"Unknown error"},e.standardErrors=Object.freeze(Object.assign(Object.assign({},n.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},n.ethErrors.provider),{unsupportedChain:(t="")=>n.ethErrors.provider.custom({code:e.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${t}. Try adding the chain using wallet_addEthereumChain first.`})}))})),e.serializeError=function(t,r){const o=(0,n.serializeError)(function(t){return"string"==typeof t?{message:t,code:e.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(t)?Object.assign(Object.assign({},t),{message:t.errorMessage,code:t.errorCode,data:{method:t.method,result:t.result}}):t}(t),{shouldIncludeStack:!0}),a=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");a.searchParams.set("version",s.LIB_VERSION),a.searchParams.set("code",o.code.toString());const c=function(t,e){var r;return(null===(r=t)||void 0===r?void 0:r.method)||(void 0===e?void 0:"string"==typeof e?e:Array.isArray(e)?e.length>0?e[0].method:void 0:e.method)}(o.data,r);return c&&a.searchParams.set("method",c),a.searchParams.set("message",o.message),Object.assign(Object.assign({},o),{docUrl:a.href})},e.getErrorCode=function(t){var e;return"number"==typeof t?t:function(t){return"object"==typeof t&&null!==t&&("number"==typeof t.code||"number"==typeof t.errorCode)}(t)?null!==(e=t.code)&&void 0!==e?e:t.errorCode:void 0}},45811:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;const n=r(39016),i=r(83143);var s=r(39016);Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var o=r(83143);Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return o.CoinbaseWalletProvider}}),e.default=n.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=n.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=n.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},49682:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0,e.ScopedLocalStorage=class{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),e=[];for(let r=0;rlocalStorage.removeItem(t)))}scopedKey(t){return`${this.scope}:${t}`}}},1119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},27162:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;const i=n(r(1119));e.injectCssReset=function(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},83143:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=void 0;const s=i(r(19394)),o=i(r(13550)),a=r(32191),c=r(69621),l=r(73526),u=r(15633),h=r(93083),d=r(67386),f=r(94643),p=i(r(14497)),m=r(33648),g=r(28565),y=r(5313),w="DefaultChainId",b="DefaultJsonRpcUrl";class v extends s.default{constructor(t){var e,r;super(),this._filterPolyfill=new m.FilterPolyfill(this),this._subscriptionManager=new y.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this.isCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,this.qrUrl=t.qrUrl;const n=this.getChainId(),i=(0,f.prepend0x)(n.toString(16));this.emit("connect",{chainIdStr:i});const s=this._storage.getItem(u.LOCAL_STORAGE_ADDRESSES_KEY);if(s){const t=s.split(" ");""!==t[0]&&(this._addresses=t.map((t=>(0,f.ensureAddressString)(t))),this.emit("accountsChanged",t))}this._subscriptionManager.events.on("notification",(t=>{this.emit("message",{type:t.method,data:t.params})})),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",(t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("dappChainSwitched"===t.data.data.action){const r=t.data.data.chainId,n=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(n,Number(r))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,f.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return null!==(t=this._storage.getItem(b))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(b,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;const r=this.getChainId();this._storage.setItem(w,e.toString(10)),(0,f.ensureIntNumber)(e)===r&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,r,n,i,s){const o=await this.initializeRelay();return!!(await o.watchAsset(t,e,r,n,i,null==s?void 0:s.toString()).promise).result}async addEthereumChain(t,e,r,n,i,s){var o,a;if((0,f.ensureIntNumber)(t)===this.getChainId())return!1;const c=await this.initializeRelay(),l=c.inlineAddEthereumChain(t.toString());this._isAuthorized()||l||await c.requestEthereumAccounts().promise;const u=await c.addEthereumChain(t.toString(),e,i,r,n,s).promise;return!0===(null===(o=u.result)||void 0===o?void 0:o.isApproved)&&this.updateProviderInfo(e[0],t),!0===(null===(a=u.result)||void 0===a?void 0:a.isApproved)}async switchEthereumChain(t){const e=await this.initializeRelay(),r=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,d.isErrorResponse)(r)&&r.errorCode)throw r.errorCode===c.standardErrorCodes.provider.unsupportedChain?c.standardErrors.provider.unsupportedChain(t):c.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode});const n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then((r=>r.setAppInfo(t,e)))}async enable(){var t;return null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(g.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(t,e){try{const r=this._send(t,e);if(r instanceof Promise)return r.catch((e=>{throw(0,c.serializeError)(e,t)}))}catch(e){throw(0,c.serializeError)(e,t)}}_send(t,e){if("string"==typeof t){const r={jsonrpc:"2.0",id:0,method:t,params:Array.isArray(e)?e:void 0!==e?[e]:[]};return this._sendRequestAsync(r).then((t=>t.result))}if("function"==typeof e){const r=t,n=e;return this._sendAsync(r,n)}if(Array.isArray(t))return t.map((t=>this._sendRequest(t)));const r=t;return this._sendRequest(r)}async sendAsync(t,e){try{return this._sendAsync(t,e).catch((e=>{throw(0,c.serializeError)(e,t)}))}catch(e){return Promise.reject((0,c.serializeError)(e,t))}}async _sendAsync(t,e){if("function"!=typeof e)throw new Error("callback is required");if(Array.isArray(t)){const r=e;return void this._sendMultipleRequestsAsync(t).then((t=>r(null,t))).catch((t=>r(t,null)))}const r=e;return this._sendRequestAsync(t).then((t=>r(null,t))).catch((t=>r(t,null)))}async request(t){try{return this._request(t).catch((e=>{throw(0,c.serializeError)(e,t.method)}))}catch(e){return Promise.reject((0,c.serializeError)(e,t.method))}}async _request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw c.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:r}=t;if("string"!=typeof e||0===e.length)throw c.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw c.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});const n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:e,params:n,jsonrpc:"2.0",id:i})).result}async scanQRCode(t){var e;const r=await this.initializeRelay(),n=await r.scanQRCode((0,f.ensureRegExpString)(t)).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.scanQRCode);return n.result}async genericRequest(t,e){var r;const n=await this.initializeRelay(),i=await n.genericRequest(t,e).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(r=i.errorMessage)&&void 0!==r?r:"result was not a string",h.Web3Method.generic);return i.result}async selectProvider(t){var e;const r=await this.initializeRelay(),n=await r.selectProvider(t).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.selectProvider);return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const e={jsonrpc:"2.0",id:t.id},{method:r}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw new Error("addresses is not an array");const r=t.map((t=>(0,f.ensureAddressString)(t)));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(u.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(t){return new Promise(((e,r)=>{try{const n=this._handleSynchronousMethods(t);if(void 0!==n)return e({jsonrpc:"2.0",id:t.id,result:n});const i=this._handleAsynchronousFilterMethods(t);if(void 0!==i)return void i.then((r=>e(Object.assign(Object.assign({},r),{id:t.id})))).catch((t=>r(t)));const s=this._handleSubscriptionMethods(t);if(void 0!==s)return void s.then((r=>e({jsonrpc:"2.0",id:t.id,result:r.result}))).catch((t=>r(t)))}catch(t){return r(t)}this._handleAsynchronousMethods(t).then((r=>r&&e(Object.assign(Object.assign({},r),{id:t.id})))).catch((t=>r(t)))}))}_sendMultipleRequestsAsync(t){return Promise.all(t.map((t=>this._sendRequestAsync(t))))}_handleSynchronousMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_accounts:return this._eth_accounts();case g.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case g.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case g.JSONRPCMethod.net_version:return this._net_version();case g.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case g.JSONRPCMethod.eth_sign:return this._eth_sign(r);case g.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case g.JSONRPCMethod.personal_sign:return this._personal_sign(r);case g.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case g.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case g.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case g.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case g.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case g.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case g.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case g.JSONRPCMethod.eth_signTypedData_v4:case g.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case g.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case g.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case g.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case g.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){const{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case g.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case g.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case g.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case g.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case g.JSONRPCMethod.eth_subscribe:case g.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const e=(0,f.ensureAddressString)(t);return this._addresses.map((t=>(0,f.ensureAddressString)(t))).includes(e)}catch(t){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(t){const e=t.from?(0,f.ensureAddressString)(t.from):this.selectedAddress;if(!e)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(e),{fromAddress:e,toAddress:t.to?(0,f.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,f.ensureBN)(t.value):new o.default(0),data:t.data?(0,f.ensureBuffer)(t.data):n.alloc(0),nonce:null!=t.nonce?(0,f.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,f.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,f.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,f.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,f.ensureBN)(t.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw c.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw c.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,e,r,n){this._ensureKnownAddress(e);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(t,e,r,n).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied message signature");throw t}}async _ethereumAddressFromSignedMessage(t,e,r){const n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.ethereumAddressFromSignedMessage(t,e,r).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,f.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem(w);if(!t)return(0,f.ensureIntNumber)(this._chainIdFromOpts);const e=parseInt(t,10);return(0,f.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;if(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let e;try{const t=await this.initializeRelay();e=await t.requestEthereumAccounts().promise}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied account authorization");throw t}if(!e.result)throw new Error("accounts received is empty");return this._setAddresses(e.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._signEthereumMessage(r,e,!1)}_eth_ecRecover(t){const e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!1)}_personal_sign(t){this._requireAuthorization();const e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureAddressString)(t[1]);return this._signEthereumMessage(e,r,!0)}_personal_ecRecover(t){const e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_sendRawTransaction(t){const e=(0,f.ensureBuffer)(t[0]),r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.submitEthereumTransaction(e,this.getChainId()).promise).result}}async _eth_sendTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signAndSubmitEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_signTypedData_v1(t){this._requireAuthorization();const e=(0,f.ensureParsedJSONObject)(t[0]),r=(0,f.ensureAddressString)(t[1]);this._ensureKnownAddress(r);const n=p.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();const e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const n=p.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();const e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const n=p.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _cbwallet_arbitrary(t){const e=t[0],r=t[1];if("string"!=typeof r)throw new Error("parameter must be a string");if("object"!=typeof e||null===e)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(e,r)}}async _wallet_addEthereumChain(t){var e,r,n,i;const s=t[0];if(0===(null===(e=s.rpcUrls)||void 0===e?void 0:e.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw c.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw c.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){const e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const e=Array.isArray(t)?t[0]:t;if(!e.type)throw c.standardErrors.rpc.invalidParams("Type is required");if("ERC20"!==(null==e?void 0:e.type))throw c.standardErrors.rpc.invalidParams(`Asset of type '${e.type}' is not supported`);if(!(null==e?void 0:e.options))throw c.standardErrors.rpc.invalidParams("Options are required");if(!(null==e?void 0:e.options.address))throw c.standardErrors.rpc.invalidParams("Address is required");const r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=e.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(e.type,n,i,o,s,r)}}_eth_uninstallFilter(t){const e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){const e=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(e)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){const e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){const e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((t=>(t.setAccountsCallback(((t,e)=>this._setAddresses(t,e))),t.setChainCallback(((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))})),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t)))}}e.CoinbaseWalletProvider=v},33648:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;const n=r(91295),i=r(94643),s={jsonrpc:"2.0",id:0};function o(t){return{fromBlock:c(t.fromBlock),toBlock:c(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function a(t){const e={fromBlock:l(t.fromBlock),toBlock:l(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function c(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,n.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw new Error(`Invalid block option: ${String(t)}`)}function l(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function u(){return Object.assign(Object.assign({},s),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},s),{result:[]})}e.FilterPolyfill=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,n.IntNumber)(1),this.provider=t}async newFilter(t){const e=o(t),r=this.makeFilterId(),n=await this.setInitialCursorPosition(r,e.fromBlock);return console.log(`Installing new log filter(${r}):`,e,"initial cursor position:",n),this.logFilters.set(r,e),this.setFilterTimeout(r),(0,i.hexStringFromIntNumber)(r)}async newBlockFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){const e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){const e=(0,i.intNumberFromHexString)(t);return this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e)?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(u())}async getFilterLogs(t){const e=(0,i.intNumberFromHexString)(t),r=this.logFilters.get(e);return r?this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[a(r)]})):u()}makeFilterId(){return(0,n.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise(((e,r)=>{this.provider.sendAsync(t,((t,n)=>t?r(t):Array.isArray(n)||null==n?r(new Error(`unexpected response received: ${JSON.stringify(n)}`)):void e(n)))}))}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const e=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!e)return u();const o=await this.getCurrentBlockHeight(),c="latest"===e.toBlock?o:e.toBlock;if(r>o)return h();if(r>e.toBlock)return h();console.log(`Fetching logs from ${r} to ${c} for filter ${t}`);const l=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[a(Object.assign(Object.assign({},e),{fromBlock:r,toBlock:c}))]}));if(Array.isArray(l.result)){const e=l.result.map((t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0"))),s=Math.max(...e);if(s&&s>r){const e=(0,n.IntNumber)(s+1);console.log(`Moving cursor position for filter (${t}) from ${r} to ${e}`),this.cursors.set(t,e)}}return l}async getBlockFilterChanges(t){const e=this.cursors.get(t);if(!e)return u();const r=await this.getCurrentBlockHeight();if(e>r)return h();console.log(`Fetching blocks from ${e} to ${r} for filter (${t})`);const o=(await Promise.all((0,i.range)(e,r+1).map((t=>this.getBlockHashByNumber((0,n.IntNumber)(t)))))).filter((t=>!!t)),a=(0,n.IntNumber)(e+o.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${a}`),this.cursors.set(t,a),Object.assign(Object.assign({},s),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(h())}async setInitialCursorPosition(t,e){const r=await this.getCurrentBlockHeight(),n="number"==typeof e&&e>r?e:r;return this.cursors.set(t,n),n}setFilterTimeout(t){const e=this.timeouts.get(t);e&&window.clearTimeout(e);const r=window.setTimeout((()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)}),3e5);this.timeouts.set(t,r)}async getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){const e=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}},e.filterFromParam=o},28565:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,(r=e.JSONRPCMethod||(e.JSONRPCMethod={})).eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"},5313:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;const n=r(6842),i=r(68961),s=()=>{};e.SubscriptionManager=class{constructor(t){const e=new n.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:s}=i({blockTracker:e,provider:t});this.events=r,this.subscriptionMiddleware=s}async handleRequest(t){const e={};return await this.subscriptionMiddleware(t,e,s,s),e}destroy(){this.subscriptionMiddleware.destroy()}}},31405:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;const n=r(27759),i=r(19199),s=r(27162);e.WalletSDKUI=class{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new n.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,s.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(e)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}},85813:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,(r=e.RelayMessageType||(e.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"},73526:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;const n=r(89072),i=r(94643),s="session:id",o="session:secret",a="session:linked";class c{constructor(t,e,r,s){this._storage=t,this._id=e||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=(new n.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(t){const e=t.getItem(s),r=t.getItem(a),n=t.getItem(o);return e&&n?new c(t,e,n,"1"===r):null}static hash(t){return(new n.sha256).update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?"1":"0")}}e.Session=c},16570:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;const c=a(r(47056)),l=r(34143),u=r(11717),h=r(32191),d=r(18876),f=r(69621),p=r(91295),m=r(94643),g=o(r(20235)),y=r(73526),w=r(15633),b=r(93083),v=r(85186),A=r(3770),E=r(67386),x=r(50287);class _ extends w.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:r,ui:n,connection:i}=this.subscribe();if(this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=n}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)})));const t=y.Session.load(this.storage)||new y.Session(this.storage).save(),e=new d.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,u.filter)((t=>"Web3Response"===t.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,u.skip)(1),(0,u.tap)((t=>{var e;this.isLinked=t;const r=this.storage.getItem(w.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,r){const n=r.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==n[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const t=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:t})}}}))).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>!!t.metadata&&"1"===t.metadata.__destroyed))).subscribe((()=>{var t;const r=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:r,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.WalletUsername))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.WalletUsername,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.AppVersion))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.AppVersion,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl))).pipe((0,u.mergeMap)((e=>(0,l.zip)(g.decrypt(e.metadata.ChainId,t.secret),g.decrypt(e.metadata.JsonRpcUrl,t.secret))))).pipe((0,u.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.EthereumAddress))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.EthereumAddress,t.secret)))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),_.accountRequestCallbackIds.size>0&&(Array.from(_.accountRequestCallbackIds.values()).forEach((e=>{const r=(0,x.Web3ResponseMessage)({id:e,response:(0,E.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},r),{id:e}))})),_.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,u.filter)((t=>t.metadata&&void 0!==t.metadata.AppSrc))).pipe((0,u.mergeMap)((e=>g.decrypt(e.metadata.AppSrc,t.secret)))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:r,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,u.timeout)(1e3),(0,u.catchError)((t=>(0,l.of)(null)))).subscribe((t=>{var e,r,n;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(t){null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const s=y.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:y.Session.hash(s.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new l.Subscription;const{session:o,ui:a,connection:c}=this.subscribe();this._session=o,this.connection=c,this.ui=a,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,r,n){return this.sendRequest({method:b.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),address:e,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(t,e,r){return this.sendRequest({method:b.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),signature:(0,m.hexStringFromBuffer)(e,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,m.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:b.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:b.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:b.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null;const r=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,n),null==e||e()};return{promise:new Promise(((i,s)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,(t=>{if(null==e||e(),t.errorMessage)return s(new Error(t.errorMessage));i(t)})),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)})),cancel:n}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var r;const n=(0,A.Web3RequestMessage)({id:t,request:e}),i=y.Session.load(this.storage);null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.WEB3_REQUEST,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",n,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n.id,response:{method:n.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){const e=(0,v.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,r){const n=this.session.secret;return new l.Observable((t=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),n).then((e=>{t.next(e),t.complete()}))})).pipe((0,u.mergeMap)((e=>this.connection.publishEvent(t,e,r))))}handleIncomingEvent(t){try{this.subscriptions.add((0,l.from)(g.decrypt(t.data,this.session.secret)).pipe((0,u.map)((t=>JSON.parse(t)))).subscribe({next:t=>{const e=(0,x.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(t){var e;const{response:r}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,E.isRequestEthereumAccountsResponse)(r))return _.accountRequestCallbackIds.forEach((e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e})))),void _.accountRequestCallbackIds.clear();this.invokeCallback(t)}handleErrorResponse(t,e,r,n){var i;const s=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:(0,f.standardErrorMessage)(n);this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:t,response:{method:e,errorMessage:s,errorCode:n}}))}invokeCallback(t){const e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:b.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,r)};return{promise:new Promise(((n,i)=>{var s;this.relayEventManager.callbacks.set(e,(t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(new Error(t.errorMessage));n(t)}));const o=(null===(s=null===window||void 0===window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)){let t;try{t=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(e){t=window.location}t.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(t.href)}`}else{if(this.ui.inlineAccountsResponse()){const t=t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:e,response:(0,E.RequestEthereumAccountsResponse)(t)}))};this.ui.requestEthereumAccounts({onCancel:r,onAccounts:t})}else{const t=f.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(t)})}_.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)}})),cancel:r}}selectProvider(t){const e={method:b.Web3Method.selectProvider,params:{providerOptions:t}},r=(0,m.randomBytesHex)(8);return{cancel:t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,t)},promise:new Promise(((e,n)=>{this.relayEventManager.callbacks.set(r,(t=>{if(t.errorMessage)return n(new Error(t.errorMessage));e(t)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(t)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(p.ProviderType.Unselected)}))},providerOptions:t})}))}}watchAsset(t,e,r,n,i,s){const o={method:b.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:r,decimals:n,image:i},chainId:s}};let a=null;const c=(0,m.randomBytesHex)(8),l=t=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,t),null==a||a()};return this.ui.inlineWatchAsset()||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{cancel:l,promise:new Promise(((l,u)=>{this.relayEventManager.callbacks.set(c,(t=>{if(null==a||a(),t.errorMessage)return u(new Error(t.errorMessage));l(t)})),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,E.WatchAssetReponse)(!0)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,E.WatchAssetReponse)(!1)}))},type:t,address:e,symbol:r,decimals:n,image:i,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)}))}}addEthereumChain(t,e,r,n,i,s){const o={method:b.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}};let a=null;const c=(0,m.randomBytesHex)(8),l=t=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,t),null==a||a()};return this.ui.inlineAddEthereumChain(t)||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise(((e,r)=>{this.relayEventManager.callbacks.set(c,(t=>{if(null==a||a(),t.errorMessage)return r(new Error(t.errorMessage));e(t)})),this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,E.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,E.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),this.ui.inlineAddEthereumChain(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)})),cancel:l}}switchEthereumChain(t,e){const r={method:b.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},n=(0,m.randomBytesHex)(8);return{promise:new Promise(((e,i)=>{this.relayEventManager.callbacks.set(n,(t=>(0,E.isErrorResponse)(t)&&t.errorCode?i(f.standardErrors.provider.custom({code:t.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):t.errorMessage?i(new Error(t.errorMessage)):void e(t))),this.ui.switchEthereumChain({onCancel:e=>{var r;if(e){const i=null!==(r=(0,f.getErrorCode)(e))&&void 0!==r?r:f.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(n,b.Web3Method.switchEthereumChain,e instanceof Error?e:f.standardErrors.provider.unsupportedChain(t),i)}else this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:r.params.chainId,address:r.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(n,r)})),cancel:t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,t)}}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return y.Session.hash(this._session.id)}sendRequestStandalone(t,e){const r=r=>{this.handleErrorResponse(t,e.method,r)},n=e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case b.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case b.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:n});break;default:r()}}onSessionConfigChanged(t){}}_.accountRequestCallbackIds=new Set,s([c.default],_.prototype,"resetAndReload",null),s([c.default],_.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=_},15633:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayAbstract=e.APP_VERSION_KEY=e.LOCAL_STORAGE_ADDRESSES_KEY=e.WALLET_USER_NAME_KEY=void 0;const n=r(69621);e.WALLET_USER_NAME_KEY="walletUsername",e.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",e.APP_VERSION_KEY="AppVersion",e.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(t,e){if(!e)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(e,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then((t=>t.json())).then((e=>{if(!e)throw n.standardErrors.rpc.parse({});const r=e,{error:i}=r;if(i)throw(0,n.serializeError)(i,t.method);return r}))}}},27472:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;const n=r(94643);e.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,e=(0,n.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}},93083:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,(r=e.Web3Method||(e.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"},85186:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;const n=r(85813);e.Web3RequestCanceledMessage=function(t){return{type:n.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},3770:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;const n=r(85813);e.Web3RequestMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_REQUEST},t)}},67386:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.isErrorResponse=void 0;const n=r(93083);e.isErrorResponse=function(t){var e,r;return void 0!==(null===(e=t)||void 0===e?void 0:e.method)&&void 0!==(null===(r=t)||void 0===r?void 0:r.errorMessage)},e.AddEthereumChainResponse=function(t){return{method:n.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:n.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:n.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:n.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:n.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===n.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:n.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:n.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:n.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:n.Web3Method.ethereumAddressFromSignedMessage,result:t}}},50287:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;const n=r(85813);e.Web3ResponseMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===n.RelayMessageType.WEB3_RESPONSE}},20235:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;const n=r(94643);e.encrypt=async function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");const r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,s.encode(t)),a=o.slice(o.byteLength-16),c=o.slice(0,o.byteLength-16),l=new Uint8Array(a),u=new Uint8Array(c),h=new Uint8Array([...r,...l,...u]);return(0,n.uint8ArrayToHex)(h)},e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new Promise(((r,i)=>{!async function(){const s=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,n.hexStringToUint8Array)(t),a=o.slice(0,12),c=o.slice(12,28),l=o.slice(28),u=new Uint8Array([...l,...c]),h={name:"AES-GCM",iv:new Uint8Array(a)};try{const t=await window.crypto.subtle.decrypt(h,s,u),e=new TextDecoder;r(e.decode(t))}catch(t){i(t)}}()}))}},91295:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=function(){return t=>t},e.HexString=t=>t,e.AddressString=t=>t,e.BigIntString=t=>t,e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=t=>t,(r=e.ProviderType||(e.ProviderType={})).CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""},94643:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;const s=i(r(13550)),o=r(80129),a=r(69621),c=r(91295),l=/^[0-9]*$/,u=/^[a-f0-9]*$/;function h(t){return[...t].map((t=>t.toString(16).padStart(2,"0"))).join("")}function d(t){return t.startsWith("0x")||t.startsWith("0X")}function f(t){return d(t)?t.slice(2):t}function p(t){return d(t)?"0x"+t.slice(2):"0x"+t}function m(t){if("string"!=typeof t)return!1;const e=f(t).toLowerCase();return u.test(e)}function g(t,e=!1){if("string"==typeof t){const r=f(t).toLowerCase();if(u.test(r))return(0,c.HexString)(e?"0x"+r:r)}throw a.standardErrors.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function y(t,e=!1){let r=g(t,!1);return r.length%2==1&&(r=(0,c.HexString)("0"+r)),e?(0,c.HexString)("0x"+r):r}function w(t){if("number"==typeof t&&Number.isInteger(t))return(0,c.IntNumber)(t);if("string"==typeof t){if(l.test(t))return(0,c.IntNumber)(Number(t));if(m(t))return(0,c.IntNumber)(new s.default(y(t,!1),16).toNumber())}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}function b(t){if(null==t||"function"!=typeof t.constructor)return!1;const{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return h(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=h,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map((t=>parseInt(t,16))))},e.hexStringFromBuffer=function(t,e=!1){const r=t.toString("hex");return(0,c.HexString)(e?"0x"+r:r)},e.bigIntStringFromBN=function(t){return(0,c.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,c.IntNumber)(new s.default(y(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,c.HexString)("0x"+new s.default(t).toString(16))},e.has0xPrefix=d,e.strip0x=f,e.prepend0x=p,e.isHexString=m,e.ensureHexString=g,e.ensureEvenLengthHexString=y,e.ensureAddressString=function(t){if("string"==typeof t){const e=f(t).toLowerCase();if(m(e)&&40===e.length)return(0,c.AddressString)(p(e))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)},e.ensureBuffer=function(t){if(n.isBuffer(t))return t;if("string"==typeof t){if(m(t)){const e=y(t,!1);return n.from(e,"hex")}return n.from(t,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(t)}`)},e.ensureIntNumber=w,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,c.RegExpString)(t.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(t)}`)},e.ensureBN=function(t){if(null!==t&&(s.default.isBN(t)||b(t)))return new s.default(t.toString(10),10);if("number"==typeof t)return new s.default(w(t));if("string"==typeof t){if(l.test(t))return new s.default(t,10);if(m(t))return new s.default(y(t,!1),16)}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)},e.isBigNumber=b,e.range=function(t,e){return Array.from({length:e-t},((e,r)=>t+r))},e.getFavicon=function(){const t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${r}${n}`},e.createQrUrl=function(t,e,r,n,i,s){const a=n?"parent-id":"id";return`${r}/#/link?${(0,o.stringify)({[a]:t,secret:e,server:r,v:i,chainId:s})}`},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}},36089:(t,e,r)=>{var n=r(48764).Buffer;const i=r(32518),s=r(13550);function o(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function a(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function c(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function l(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function u(t){var e=typeof t;if("string"===e)return i.isHexString(t)?new s(i.stripHexPrefix(t),16):new s(t,10);if("number"===e)return new s(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function h(t,e){var r,o,d,f;if("address"===t)return h("uint160",u(e));if("bool"===t)return h("uint8",e?1:0);if("string"===t)return h("bytes",new n(e,"utf8"));if(function(t){return t.lastIndexOf("]")===t.length-1}(t)){if(void 0===e.length)throw new Error("Not an array?");if("dynamic"!==(r=l(t))&&0!==r&&e.length>r)throw new Error("Elements exceed array size: "+r);for(f in d=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof e&&(e=JSON.parse(e)),e)d.push(h(t,e[f]));if("dynamic"===r){var p=h("uint256",e.length);d.unshift(p)}return n.concat(d)}if("bytes"===t)return e=new n(e),d=n.concat([h("uint256",e.length),e]),e.length%32!=0&&(d=n.concat([d,i.zeros(32-e.length%32)])),d;if(t.startsWith("bytes")){if((r=a(t))<1||r>32)throw new Error("Invalid bytes width: "+r);return i.setLengthRight(e,32)}if(t.startsWith("uint")){if((r=a(t))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((o=u(e)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(n,"be",32)}if(t.startsWith("int")){if((r=a(t))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((o=u(e)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(n,"be",32)}if(t.startsWith("ufixed")){if(r=c(t),(o=u(e))<0)throw new Error("Supplied ufixed is negative");return h("uint256",o.mul(new s(2).pow(new s(r[1]))))}if(t.startsWith("fixed"))return r=c(t),h("int256",u(e).mul(new s(2).pow(new s(r[1]))));throw new Error("Unsupported or invalid type: "+t)}function d(t){return"string"===t||"bytes"===t||"dynamic"===l(t)}function f(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var r,s,c=[],l=0;l32)throw new Error("Invalid bytes width: "+r);c.push(i.setLengthRight(d,r))}else if(h.startsWith("uint")){if((r=a(h))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((s=u(d)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());c.push(s.toArrayLike(n,"be",r/8))}else{if(!h.startsWith("int"))throw new Error("Unsupported or invalid type: "+h);if((r=a(h))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((s=u(d)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());c.push(s.toTwos(r).toArrayLike(n,"be",r/8))}}return n.concat(c)}t.exports={rawEncode:function(t,e){var r=[],i=[],s=32*t.length;for(var a in t){var c=o(t[a]),l=h(c,e[a]);d(c)?(r.push(h("uint256",s)),i.push(l),s+=l.length):r.push(l)}return n.concat(r.concat(i))},solidityPack:f,soliditySHA3:function(t,e){return i.keccak(f(t,e))}}},14497:(t,e,r)=>{var n=r(48764).Buffer;const i=r(32518),s=r(36089),o={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(t,e,r,o=!0){const a=["bytes32"],c=[this.hashType(t,r)];if(o){const l=(t,e,a)=>{if(void 0!==r[e])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(e,a,r,o))];if(void 0===a)throw new Error(`missing value for field ${t} of type ${e}`);if("bytes"===e)return["bytes32",i.keccak(a)];if("string"===e)return"string"==typeof a&&(a=n.from(a,"utf8")),["bytes32",i.keccak(a)];if(e.lastIndexOf("]")===e.length-1){const r=e.slice(0,e.lastIndexOf("[")),n=a.map((e=>l(t,r,e)));return["bytes32",i.keccak(s.rawEncode(n.map((([t])=>t)),n.map((([,t])=>t))))]}return[e,a]};for(const n of r[t]){const[t,r]=l(n.name,n.type,e[n.name]);a.push(t),c.push(r)}}else for(const s of r[t]){let t=e[s.name];if(void 0!==t)if("bytes"===s.type)a.push("bytes32"),t=i.keccak(t),c.push(t);else if("string"===s.type)a.push("bytes32"),"string"==typeof t&&(t=n.from(t,"utf8")),t=i.keccak(t),c.push(t);else if(void 0!==r[s.type])a.push("bytes32"),t=i.keccak(this.encodeData(s.type,t,r,o)),c.push(t);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),c.push(t)}}return s.rawEncode(a,c)},encodeType(t,e){let r="",n=this.findTypeDependencies(t,e).filter((e=>e!==t));n=[t].concat(n.sort());for(const t of n){if(!e[t])throw new Error("No type definition specified: "+t);r+=t+"("+e[t].map((({name:t,type:e})=>e+" "+t)).join(",")+")"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\w*/)[0],r.includes(t)||void 0===e[t])return r;r.push(t);for(const n of e[t])for(const t of this.findTypeDependencies(n.type,e,r))!r.includes(t)&&r.push(t);return r},hashStruct(t,e,r,n=!0){return i.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return i.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const r in o.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){const r=this.sanitizeData(t),s=[n.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",r.domain,r.types,e)),"EIP712Domain"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,e)),i.keccak(n.concat(s))}};t.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(t){return function(t){const e=new Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;const r=t.map((function(t){return"bytes"===t.type?i.toBuffer(t.value):t.value})),n=t.map((function(t){return t.type})),o=t.map((function(t){if(!t.name)throw e;return t.type+" "+t.name}));return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(new Array(t.length).fill("string"),o),s.soliditySHA3(n,r)])}(t.data)},hashForSignTypedData_v3:function(t){return a.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return a.hash(t.data)}}},32518:(t,e,r)=>{var n=r(48764).Buffer;const i=r(95811),s=r(13550);function o(t){return n.allocUnsafe(t).fill(0)}function a(t,e,r){const n=o(e);return t=c(t),r?t.length{function e(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e65536?(i[0]=240|(1835008&s)>>>18,i[1]=128|(258048&s)>>>12,i[2]=128|(4032&s)>>>6,i[3]=128|63&s):s>2048?(i[0]=224|(61440&s)>>>12,i[1]=128|(4032&s)>>>6,i[2]=128|63&s):s>128?(i[0]=192|(1984&s)>>>6,i[1]=128|63&s):i[0]=s,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=i.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=i.getBCHTypeInfo(r),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o}for(s=0;s<15;s++)o=!t&&1==(n>>s&1),s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,s=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var c=0;c<2;c++)if(null==this.modules[n][a-c]){var l=!1;o>>s&1)),i.getMask(e,n,a-c)&&(l=!l),this.modules[n][a-c]=l,-1==--s&&(o++,s=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var s=c.getRSBlocks(t,e),o=new l,a=0;a8*h)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*h+")");for(o.getLengthInBits()+4<=8*h&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*h||(o.put(r.PAD0,8),o.getLengthInBits()>=8*h));)o.put(r.PAD1,8);return r.createBytes(o,s)},r.createBytes=function(t,e){for(var r=0,n=0,s=0,o=new Array(e.length),c=new Array(e.length),l=0;l=0?p.get(m):0}}var g=0;for(d=0;d=0;)e^=i.G15<=0;)e^=i.G18<>>=1;return e},getPatternPosition:function(t){return i.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case 0:return(e+r)%2==0;case 1:return e%2==0;case 2:return r%3==0;case 3:return(e+r)%3==0;case 4:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case 5:return e*r%2+e*r%3==0;case 6:return(e*r%2+e*r%3)%2==0;case 7:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),r=0;r5&&(r+=3+s-5)}for(n=0;n=256;)t-=255;return s.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},o=0;o<8;o++)s.EXP_TABLE[o]=1<>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var u=[[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]];function h(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(t,e){for(var r=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),n=1,i=0,s=0,o=u.length;s<=o;s++){var a=u[s];if(!a)throw new Error("Content too long: expected "+i+" but got "+r);switch(e){case"L":i=a[0];break;case"M":i=a[1];break;case"Q":i=a[2];break;case"H":i=a[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(r<=i)break;n++}if(n>u.length)throw new Error("Content too long");return n}(n,this.options.ecl),s=function(t){switch(t){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(i,s),this.qrcode.addData(n),this.qrcode.make()}h.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var n=void 0===e.pretty||!!e.pretty,i=n?" ":"",s=n?"\r\n":"",o=e.width,a=e.height,c=r.length,l=o/(c+2*e.padding),u=a/(c+2*e.padding),h=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,p=void 0!==e.predefined&&!!e.predefined,m=p?i+''+s:"",g=i+''+s,y="",w="",b=0;b'+s:i+''+s}h&&(y=i+'');let M="";if(void 0!==this.options.image&&this.options.image.svg){const t=o*this.options.image.width/100,e=a*this.options.image.height/100;M+=``,M+=this.options.image.svg+s,M+=""}var C="";switch(t.container){case"svg":f&&(C+=''+s),C+=''+s,C+=m+g+y,C+=M,C+="";break;case"svg-viewbox":f&&(C+=''+s),C+=''+s,C+=m+g+y,C+=M,C+="";break;case"g":C+=''+s,C+=m+g+y,C+=M,C+="";break;default:C+=(m+g+y+M).replace(/^\s+/,"")}return C},t.exports=h},43604:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.7.2"},5507:(t,e)=>{"use strict";function r(t){if(Array.isArray(t)){const e=[];let n=0;for(let i=0;it.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,r)}function i(t){if(0===t[0])throw new Error("invalid RLP: extra zeros");return u(l(t))}function s(t,e){if(t<56)return Uint8Array.from([t+e]);const r=p(t),n=p(e+55+r.length/2);return Uint8Array.from(h(n+r))}function o(t,e=!1){if(null==t||0===t.length)return Uint8Array.from([]);const r=a(g(t));if(e)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function a(t){let e,r,s,o,c;const l=[],u=t[0];if(u<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(u<=183){if(e=u-127,s=128===u?Uint8Array.from([]):n(t,1,e),2===e&&s[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:s,remainder:t.slice(e)}}if(u<=191){if(r=u-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(o=n(t,r,s);o.length;)c=a(o),l.push(c.data),o=c.remainder;return{data:l,remainder:t.slice(s)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.RLP=e.utils=e.decode=e.encode=void 0,e.encode=r,e.decode=o;const c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){let e="";for(let r=0;rt+e.length),0),r=new Uint8Array(e);for(let e=0,n=0;e=2&&"0"===t[0]&&"x"===t[1]}function g(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return m(t)?h((e="string"!=typeof(r=t)?r:m(r)?r.slice(2):r).length%2?`0${e}`:e):f(t);var e,r;if("number"==typeof t||"bigint"==typeof t)return t?h(p(t)):Uint8Array.from([]);if(null==t)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}e.utils={bytesToHex:l,concatBytes:d,hexToBytes:h,utf8ToBytes:f},e.RLP={encode:r,decode:o}},78e3:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.accountBodyToRLP=e.accountBodyToSlim=e.accountBodyFromSlim=e.isZeroAddress=e.zeroAddress=e.importPublic=e.privateToAddress=e.privateToPublic=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isValidAddress=e.Account=void 0;const i=r(5507),s=r(82192),o=r(95053),a=r(58040),c=r(38289),l=r(66219),u=r(38480),h=r(24712),d=BigInt(0);class f{constructor(t=d,e=d,r=l.KECCAK256_RLP,n=l.KECCAK256_NULL){this.nonce=t,this.balance=e,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(t){const{nonce:e,balance:r,storageRoot:n,codeHash:i}=t;return new f(void 0!==e?(0,c.bufferToBigInt)((0,c.toBuffer)(e)):void 0,void 0!==r?(0,c.bufferToBigInt)((0,c.toBuffer)(r)):void 0,void 0!==n?(0,c.toBuffer)(n):void 0,void 0!==i?(0,c.toBuffer)(i):void 0)}static fromRlpSerializedAccount(t){const e=(0,c.arrToBufArr)(i.RLP.decode(Uint8Array.from(t)));if(!Array.isArray(e))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(e)}static fromValuesArray(t){const[e,r,n,i]=t;return new f((0,c.bufferToBigInt)(e),(0,c.bufferToBigInt)(r),n,i)}_validate(){if(this.nonce=8?d+=r[t].toUpperCase():d+=r[t];return d},e.isValidChecksumAddress=function(t,r){return(0,e.isValidAddress)(t)&&(0,e.toChecksumAddress)(t,r)===t},e.generateAddress=function(t,e){return(0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,c.bufferToBigInt)(e)===BigInt(0)?n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,null])))).slice(-20):n.from((0,s.keccak256)(i.RLP.encode((0,c.bufArrToArr)([t,e])))).slice(-20)},e.generateAddress2=function(t,e,r){if((0,u.assertIsBuffer)(t),(0,u.assertIsBuffer)(e),(0,u.assertIsBuffer)(r),20!==t.length)throw new Error("Expected from to be of length 20");if(32!==e.length)throw new Error("Expected salt to be of length 32");const i=(0,s.keccak256)(n.concat([n.from("ff","hex"),t,e,(0,s.keccak256)(r)]));return(0,c.toBuffer)(i).slice(-20)},e.isValidPrivate=function(t){return o.secp256k1.utils.isValidPrivateKey(t)},e.isValidPublic=function(t,e=!1){if((0,u.assertIsBuffer)(t),64===t.length)try{return o.secp256k1.ProjectivePoint.fromHex(n.concat([n.from([4]),t])),!0}catch(t){return!1}if(!e)return!1;try{return o.secp256k1.ProjectivePoint.fromHex(t),!0}catch(t){return!1}},e.pubToAddress=function(t,e=!1){if((0,u.assertIsBuffer)(t),e&&64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),64!==t.length)throw new Error("Expected pubKey to be of length 64");return n.from((0,s.keccak256)(t)).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToPublic=function(t){return(0,u.assertIsBuffer)(t),n.from(o.secp256k1.ProjectivePoint.fromPrivateKey(t).toRawBytes(!1).slice(1))},e.privateToAddress=function(t){return(0,e.publicToAddress)((0,e.privateToPublic)(t))},e.importPublic=function(t){return(0,u.assertIsBuffer)(t),64!==t.length&&(t=n.from(o.secp256k1.ProjectivePoint.fromHex(t).toRawBytes(!1).slice(1))),t},e.zeroAddress=function(){const t=(0,c.zeros)(20);return(0,c.bufferToHex)(t)},e.isZeroAddress=function(t){try{(0,u.assertIsString)(t)}catch(t){return!1}return(0,e.zeroAddress)()===t},e.accountBodyFromSlim=p;const m=new Uint8Array(0);e.accountBodyToSlim=function(t){const[e,r,n,i]=t;return[e,r,(0,c.arrToBufArr)(n).equals(l.KECCAK256_RLP)?m:n,(0,c.arrToBufArr)(i).equals(l.KECCAK256_NULL)?m:i]},e.accountBodyToRLP=function(t,e=!0){const r=e?p(t):t;return(0,c.arrToBufArr)(i.RLP.encode(r))}},13415:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Address=void 0;const i=r(78e3),s=r(38289);class o{constructor(t){if(20!==t.length)throw new Error("Invalid address length");this.buf=t}static zero(){return new o((0,s.zeros)(20))}static fromString(t){if(!(0,i.isValidAddress)(t))throw new Error("Invalid address");return new o((0,s.toBuffer)(t))}static fromPublicKey(t){if(!n.isBuffer(t))throw new Error("Public key should be Buffer");const e=(0,i.pubToAddress)(t);return new o(e)}static fromPrivateKey(t){if(!n.isBuffer(t))throw new Error("Private key should be Buffer");const e=(0,i.privateToAddress)(t);return new o(e)}static generate(t,e){if("bigint"!=typeof e)throw new Error("Expected nonce to be a bigint");return new o((0,i.generateAddress)(t.buf,(0,s.bigIntToBuffer)(e)))}static generate2(t,e,r){if(!n.isBuffer(e))throw new Error("Expected salt to be a Buffer");if(!n.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new o((0,i.generateAddress2)(t.buf,e,r))}equals(t){return this.buf.equals(t.buf)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){const t=(0,s.bufferToBigInt)(this.buf),e=BigInt(0),r=BigInt("0xffff");return t>=e&&t<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return n.from(this.buf)}}e.Address=o},67285:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncEventEmitter=void 0;const n=r(17187);class i extends n.EventEmitter{emit(t,...e){let[r,n]=e;const i=this;let s=i._events[t]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),"newListener"!==t&&"removeListener"!==t||(r={event:r,fn:n},n=void 0),s=Array.isArray(s)?s:[s],async function(t,e,r){let n;for await(const i of e)try{i.length<2?i.call(t,r):await new Promise(((e,n)=>{i.call(t,r,(t=>{t?n(t):e()}))}))}catch(t){n=t}if(n)throw n}(i,s.slice(),r).then(n).catch(n),i.listenerCount(t)>0}once(t,e){const r=this;let n;if("function"!=typeof e)throw new TypeError("listener must be a function");return n=e.length>=2?function(i,s){r.removeListener(t,n),e(i,s)}:function(i){r.removeListener(t,n),e(i,n)},r.on(t,n),r}first(t,e){let r=this._events[t]??[];if("function"!=typeof e)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[t]=r=[r]),r.unshift(e),this}before(t,e,r){return this.beforeOrAfter(t,e,r)}after(t,e,r){return this.beforeOrAfter(t,e,r,"after")}beforeOrAfter(t,e,r,n){let i,s,o=this._events[t]??[];const a="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof e)throw new TypeError("target must be a function");for(Array.isArray(o)||(this._events[t]=o=[o]),s=o.length,i=o.length;i--;)if(o[i]===e){s=i+a;break}return o.splice(s,0,r),this}on(t,e){return super.on(t,e)}addListener(t,e){return super.addListener(t,e)}prependListener(t,e){return super.prependListener(t,e)}prependOnceListener(t,e){return super.prependOnceListener(t,e)}removeAllListeners(t){return super.removeAllListeners(t)}removeListener(t,e){return super.removeListener(t,e)}eventNames(){return super.eventNames()}listeners(t){return super.listeners(t)}listenerCount(t){return super.listenerCount(t)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(t){return super.setMaxListeners(t)}}e.AsyncEventEmitter=i},38289:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.intToUnpaddedBuffer=e.bigIntToUnpaddedBuffer=e.bigIntToHex=e.bufArrToArr=e.arrToBufArr=e.validateNoLeadingZeroes=e.baToJSON=e.toUtf8=e.short=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToInt=e.bigIntToBuffer=e.bufferToBigInt=e.bufferToHex=e.toBuffer=e.unpadHexString=e.unpadArray=e.unpadBuffer=e.setLengthRight=e.setLengthLeft=e.zeros=e.intToBuffer=e.intToHex=void 0;const i=r(38480),s=r(24712);e.intToHex=function(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Received an invalid integer type: ${t}`);return`0x${t.toString(16)}`},e.intToBuffer=function(t){const r=(0,e.intToHex)(t);return n.from((0,s.padToEven)(r.slice(2)),"hex")},e.zeros=function(t){return n.allocUnsafe(t).fill(0)};const o=function(t,r,n){const i=(0,e.zeros)(r);return n?t.length0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t};function c(t){const r=(0,e.bufferToHex)(t);return"0x"===r?BigInt(0):BigInt(r)}function l(t){return(0,e.toBuffer)("0x"+t.toString(16))}e.unpadBuffer=function(t){return(0,i.assertIsBuffer)(t),a(t)},e.unpadArray=function(t){return(0,i.assertIsArray)(t),a(t)},e.unpadHexString=function(t){return(0,i.assertIsHexString)(t),t=(0,s.stripHexPrefix)(t),"0x"+a(t)},e.toBuffer=function(t){if(null==t)return n.allocUnsafe(0);if(n.isBuffer(t))return n.from(t);if(Array.isArray(t)||t instanceof Uint8Array)return n.from(t);if("string"==typeof t){if(!(0,s.isHexString)(t))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${t}`);return n.from((0,s.padToEven)((0,s.stripHexPrefix)(t)),"hex")}if("number"==typeof t)return(0,e.intToBuffer)(t);if("bigint"==typeof t){if(t0&&0===r[0])throw new Error(`${e} cannot have leading zeroes, received: ${r.toString("hex")}`)},e.arrToBufArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):n.from(e)},e.bufArrToArr=function t(e){return Array.isArray(e)?e.map((e=>t(e))):Uint8Array.from(e??[])},e.bigIntToHex=t=>"0x"+t.toString(16),e.bigIntToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)(l(t))},e.intToUnpaddedBuffer=function(t){return(0,e.unpadBuffer)((0,e.intToBuffer)(t))}},66219:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_WITHDRAWALS_PER_PAYLOAD=e.RLP_EMPTY_STRING=e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.SECP256K1_ORDER_DIV_2=e.SECP256K1_ORDER=e.MAX_INTEGER_BIGINT=e.MAX_INTEGER=e.MAX_UINT64=void 0;const n=r(48764),i=r(95053);e.MAX_UINT64=BigInt("0xffffffffffffffff"),e.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),e.SECP256K1_ORDER=i.secp256k1.CURVE.n,e.SECP256K1_ORDER_DIV_2=i.secp256k1.CURVE.n/BigInt(2),e.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.Buffer.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.Buffer.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.Buffer.from(e.KECCAK256_RLP_S,"hex"),e.RLP_EMPTY_STRING=n.Buffer.from([128]),e.MAX_WITHDRAWALS_PER_PAYLOAD=16},33791:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compactBytesToNibbles=e.bytesToNibbles=e.nibblesToCompactBytes=e.nibblesToBytes=e.hasTerminator=void 0,e.hasTerminator=t=>t.length>0&&16===t[t.length-1],e.nibblesToBytes=(t,e)=>{for(let r=0,n=0;n{let r=0;(0,e.hasTerminator)(t)&&(r=1,t=t.subarray(0,t.length-1));const n=new Uint8Array(t.length/2+1);return n[0]=r<<5,1==(1&t.length)&&(n[0]|=16,n[0]|=t[0],t=t.subarray(1)),(0,e.nibblesToBytes)(t,n.subarray(1)),n},e.bytesToNibbles=t=>{const e=2*t.length+1,r=new Uint8Array(e);for(let e=0;e{if(0===t.length)return t;let r=(0,e.bytesToNibbles)(t);r[0]<2&&(r=r.subarray(0,r.length-1));const n=2-(1&r[0]);return r.subarray(n)}},38480:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsString=e.assertIsArray=e.assertIsBuffer=e.assertIsHexString=void 0;const i=r(24712);e.assertIsHexString=function(t){if(!(0,i.isHexString)(t))throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${t}`)},e.assertIsBuffer=function(t){if(!n.isBuffer(t))throw new Error(`This method only supports Buffer but input was: ${t}`)},e.assertIsArray=function(t){if(!Array.isArray(t))throw new Error(`This method only supports number arrays but input was: ${t}`)},e.assertIsString=function(t){if("string"!=typeof t)throw new Error(`This method only supports strings but input was: ${t}`)}},92730:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.toAscii=e.stripHexPrefix=e.padToEven=e.isHexString=e.isHexPrefixed=e.getKeys=e.getBinarySize=e.fromUtf8=e.fromAscii=e.arrayContainsArray=void 0,i(r(66219),e),i(r(4554),e),i(r(78e3),e),i(r(13415),e),i(r(44683),e),i(r(85026),e),i(r(38289),e),i(r(21200),e),i(r(33791),e),i(r(67285),e);var s=r(24712);Object.defineProperty(e,"arrayContainsArray",{enumerable:!0,get:function(){return s.arrayContainsArray}}),Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return s.fromAscii}}),Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return s.fromUtf8}}),Object.defineProperty(e,"getBinarySize",{enumerable:!0,get:function(){return s.getBinarySize}}),Object.defineProperty(e,"getKeys",{enumerable:!0,get:function(){return s.getKeys}}),Object.defineProperty(e,"isHexPrefixed",{enumerable:!0,get:function(){return s.isHexPrefixed}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"padToEven",{enumerable:!0,get:function(){return s.padToEven}}),Object.defineProperty(e,"stripHexPrefix",{enumerable:!0,get:function(){return s.stripHexPrefix}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return s.toAscii}}),i(r(43543),e),i(r(10438),e)},24712:(t,e,r)=>{"use strict";var n=r(48764).Buffer;function i(t){if("string"!=typeof t)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof t);return"0"===t[0]&&"x"===t[1]}function s(t){let e=t;if("string"!=typeof e)throw new Error("[padToEven] value must be type 'string', received "+typeof e);return e.length%2&&(e=`0${e}`),e}Object.defineProperty(e,"__esModule",{value:!0}),e.isHexString=e.getKeys=e.fromAscii=e.fromUtf8=e.toAscii=e.arrayContainsArray=e.getBinarySize=e.padToEven=e.stripHexPrefix=e.isHexPrefixed=void 0,e.isHexPrefixed=i,e.stripHexPrefix=t=>{if("string"!=typeof t)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof t);return i(t)?t.slice(2):t},e.padToEven=s,e.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return n.byteLength(t,"utf8")},e.arrayContainsArray=function(t,e,r){if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[!0===r?"some":"every"]((e=>t.indexOf(e)>=0))},e.toAscii=function(t){let e="",r=0;const n=t.length;for("0x"===t.substring(0,2)&&(r=2);r0&&t.length!==2+2*e)}},43543:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lock=void 0,e.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((t=>this.promiseResolverQueue.push(t)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const t=this.promiseResolverQueue.shift();t&&t(!0)}}}},10438:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=e.fetchFromProvider=void 0;const n=r(64898);e.fetchFromProvider=async(t,e)=>(await(0,n.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result,e.getProvider=t=>{if("string"==typeof t)return t;if(void 0!==t?.connection?.url)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")}},85026:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toCompactSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;const i=r(82192),s=r(95053),o=r(38289),a=r(66219),c=r(38480);function l(t,e){return t===BigInt(0)||t===BigInt(1)?t:void 0===e?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function u(t){return t===BigInt(0)||t===BigInt(1)}e.ecsign=function(t,e,r){const i=s.secp256k1.sign(t,e),o=i.toCompactRawBytes();return{r:n.from(o.slice(0,32)),s:n.from(o.slice(32,64)),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*BigInt(2)}},e.ecrecover=function(t,e,r,i,a){const c=n.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(i,32)],64),h=l(e,a);if(!u(h))throw new Error("Invalid signature v value");const d=s.secp256k1.Signature.fromCompact(c).addRecoveryBit(Number(h)).recoverPublicKey(t);return n.from(d.toRawBytes(!1).slice(1))},e.toRpcSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(r,32),(0,o.toBuffer)(t)]))},e.toCompactSig=function(t,e,r,i){if(!u(l(t,i)))throw new Error("Invalid signature v value");let s=r;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(s=n.from(r),s[0]|=128),(0,o.bufferToHex)(n.concat([(0,o.setLengthLeft)(e,32),(0,o.setLengthLeft)(s,32)]))},e.fromRpcSig=function(t){const e=(0,o.toBuffer)(t);let r,n,i;if(e.length>=65)r=e.slice(0,32),n=e.slice(32,64),i=(0,o.bufferToBigInt)(e.slice(64));else{if(64!==e.length)throw new Error("Invalid signature length");r=e.slice(0,32),n=e.slice(32,64),i=BigInt((0,o.bufferToInt)(e.slice(32,33))>>7),n[0]&=127}return i<27&&(i+=BigInt(27)),{v:i,r,s:n}},e.isValidSignature=function(t,e,r,n=!0,i){if(32!==e.length||32!==r.length)return!1;if(!u(l(t,i)))return!1;const s=(0,o.bufferToBigInt)(e),c=(0,o.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||c===BigInt(0)||c>=a.SECP256K1_ORDER||n&&c>=a.SECP256K1_ORDER_DIV_2)},e.hashPersonalMessage=function(t){(0,c.assertIsBuffer)(t);const e=n.from(`Ethereum Signed Message:\n${t.length}`,"utf-8");return n.from((0,i.keccak256)(n.concat([e,t])))}},21200:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toType=e.TypeOutput=void 0;const n=r(38289),i=r(24712);var s;!function(t){t[t.Number=0]="Number",t[t.BigInt=1]="BigInt",t[t.Buffer=2]="Buffer",t[t.PrefixedHexString=3]="PrefixedHexString"}(s=e.TypeOutput||(e.TypeOutput={})),e.toType=function(t,e){if(null===t)return null;if(void 0===t)return;if("string"==typeof t&&!(0,i.isHexString)(t))throw new Error(`A string must be provided with a 0x-prefix, given: ${t}`);if("number"==typeof t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(t);switch(e){case s.Buffer:return r;case s.BigInt:return(0,n.bufferToBigInt)(r);case s.Number:{const t=(0,n.bufferToBigInt)(r);if(t>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(t)}case s.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}},4554:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GWEI_TO_WEI=void 0,e.GWEI_TO_WEI=BigInt(1e9)},44683:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.Withdrawal=void 0;const i=r(13415),s=r(38289),o=r(21200);class a{constructor(t,e,r,n){this.index=t,this.validatorIndex=e,this.address=r,this.amount=n}static fromWithdrawalData(t){const{index:e,validatorIndex:r,address:n,amount:s}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt),l=(0,o.toType)(r,o.TypeOutput.BigInt),u=new i.Address((0,o.toType)(n,o.TypeOutput.Buffer)),h=(0,o.toType)(s,o.TypeOutput.BigInt);return new a(c,l,u,h)}static fromValuesArray(t){if(4!==t.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${t.length}`);const[e,r,n,i]=t;return a.fromWithdrawalData({index:e,validatorIndex:r,address:n,amount:i})}static toBufferArray(t){const{index:e,validatorIndex:r,address:s,amount:a}=t,c=(0,o.toType)(e,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(e,o.TypeOutput.Buffer),l=(0,o.toType)(r,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(r,o.TypeOutput.Buffer);let u;return u=s instanceof i.Address?s.buf:(0,o.toType)(s,o.TypeOutput.Buffer),[c,l,u,(0,o.toType)(a,o.TypeOutput.BigInt)===BigInt(0)?n.alloc(0):(0,o.toType)(a,o.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,s.bigIntToHex)(this.index),validatorIndex:(0,s.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,s.bigIntToHex)(this.amount)}}}e.Withdrawal=a},12816:(t,e,r)=>{"use strict";r.d(e,{RQ:()=>Pt,_R:()=>x});let n=!1,i=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let o=s.default,a=null;const c=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(r){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var l,u;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(l||(l={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(u||(u={}));const h="0123456789abcdef";class d{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==s[r]&&this.throwArgumentError("invalid log level name","logLevel",t),o>s[r]||console.log.apply(console,e)}debug(...t){this._log(d.levels.DEBUG,t)}info(...t){this._log(d.levels.INFO,t)}warn(...t){this._log(d.levels.WARNING,t)}makeError(t,e,r){if(i)return this.makeError("censored error",e,{});e||(e=d.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=h[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch(e){n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const s=t;let o="";switch(e){case u.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case u.CALL_EXCEPTION:case u.INSUFFICIENT_FUNDS:case u.MISSING_NEW:case u.NONCE_EXPIRED:case u.REPLACEMENT_UNDERPRICED:case u.TRANSACTION_REPLACED:case u.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const a=new Error(t);return a.reason=s,a.code=e,Object.keys(r).forEach((function(t){a[t]=r[t]})),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,d.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",d.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,d.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,d.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",d.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",d.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return a||(a=new d("logger/5.7.0")),a}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",d.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!t,n=!!e}static setLogLevel(t){const e=s[t.toLowerCase()];null!=e?o=e:d.globalLogger().warn("invalid log level - "+t)}static from(t){return new d(t)}}function f(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}d.errors=u,d.levels=l,new d("properties/5.7.0");const p="abi/5.7.0",m=new d(p),g={};let y={calldata:!0,memory:!0,storage:!0},w={calldata:!0,memory:!0};function b(t,e){if("bytes"===t||"string"===t){if(y[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&w[e])return!0;return(y[e]||"payable"===e)&&m.throwArgumentError("invalid modifier","name",e),!1}function v(t,e){for(let r in e)f(t,r,e[r])}const A=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),E=new RegExp(/^(.*)\[([0-9]*)\]$/);class x{constructor(t,e){t!==g&&m.throwError("use fromString",d.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),v(this,e);let r=this.type.match(E);v(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:x.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=A.sighash),A[t]||m.throwArgumentError("invalid format type","format",t),t===A.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==A.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===A.full?", ":",")+")"):e+=this.type,t!==A.sighash&&(!0===this.indexed&&(e+=" indexed"),t===A.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?x.fromString(t,e):x.fromObject(t)}static fromObject(t){return x.isParamType(t)?t:new x(g,{name:t.name||null,type:_(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(x.fromObject):null})}static fromString(t,e){return r=function(t,e){let r=t;function n(e){m.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let s={type:"",name:"",state:{allowType:!0}},o=s;for(let r=0;r=256)return!1}return!0}function P(t,e){if(e||(e={}),"number"==typeof t){S.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),C(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),M(t)&&(t=t.toHexString()),N(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":S.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;tP(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),C(n)}function N(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const T="0123456789abcdef";function R(t,e){if(e||(e={}),"number"==typeof t){S.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=T[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),M(t))return t.toHexString();if(N(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":S.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(I(t)){let e="0x";for(let r=0;r>4]+T[15&n]}return e}return S.throwArgumentError("invalid hexlify value","value",t)}var B=r(13550),L=r.n(B)().BN;const U=new d("bignumber/5.7.0"),j={},D=9007199254740991;let F=!1;class z{constructor(t,e){t!==j&&U.throwError("cannot call constructor directly; use BigNumber.from",d.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return $(q(this).fromTwos(t))}toTwos(t){return $(q(this).toTwos(t))}abs(){return"-"===this._hex[0]?z.from(this._hex.substring(1)):this}add(t){return $(q(this).add(q(t)))}sub(t){return $(q(this).sub(q(t)))}div(t){return z.from(t).isZero()&&W("division-by-zero","div"),$(q(this).div(q(t)))}mul(t){return $(q(this).mul(q(t)))}mod(t){const e=q(t);return e.isNeg()&&W("division-by-zero","mod"),$(q(this).umod(e))}pow(t){const e=q(t);return e.isNeg()&&W("negative-power","pow"),$(q(this).pow(e))}and(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","and"),$(q(this).and(e))}or(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","or"),$(q(this).or(e))}xor(t){const e=q(t);return(this.isNegative()||e.isNeg())&&W("unbound-bitwise-result","xor"),$(q(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&W("negative-width","mask"),$(q(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&W("negative-width","shl"),$(q(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&W("negative-width","shr"),$(q(this).shrn(t))}eq(t){return q(this).eq(q(t))}lt(t){return q(this).lt(q(t))}lte(t){return q(this).lte(q(t))}gt(t){return q(this).gt(q(t))}gte(t){return q(this).gte(q(t))}isNegative(){return"-"===this._hex[0]}isZero(){return q(this).isZero()}toNumber(){try{return q(this).toNumber()}catch(t){W("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return U.throwError("this platform does not support BigInt",d.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?F||(F=!0,U.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?U.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",d.errors.UNEXPECTED_ARGUMENT,{}):U.throwError("BigNumber.toString does not accept parameters",d.errors.UNEXPECTED_ARGUMENT,{})),q(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof z)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new z(j,H(t)):t.match(/^-?[0-9]+$/)?new z(j,H(new L(t))):U.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&W("underflow","BigNumber.from",t),(t>=D||t<=-D)&&W("overflow","BigNumber.from",t),z.from(String(t));const e=t;if("bigint"==typeof e)return z.from(e.toString());if(I(e))return z.from(R(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return z.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(N(t)||"-"===t[0]&&N(t.substring(1))))return z.from(t)}return U.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function H(t){if("string"!=typeof t)return H(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&U.throwArgumentError("invalid hex","value",t),"0x00"===(t=H(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function $(t){return z.from(H(t))}function q(t){const e=z.from(t).toHexString();return"-"===e[0]?new L("-"+e.substring(3),16):new L(e.substring(2),16)}function W(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),U.throwError(t,d.errors.NUMERIC_FAULT,n)}const V=new d(p);class G{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){V.throwArgumentError(t,this.localName,e)}}class K{constructor(t){f(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return function(t){let e="0x";return t.forEach((t=>{e+=R(t).substring(2)})),e}(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(O(t._data))}writeBytes(t){let e=P(t);const r=e.length%this.wordSize;return r&&(e=O([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=P(z.from(t));return e.length>this.wordSize&&V.throwError("value out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=O([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Z{constructor(t,e,r,n){f(this,"_data",P(t)),f(this,"wordSize",e||32),f(this,"_coerceFunc",r),f(this,"allowLoose",n),this._offset=0}get data(){return R(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Z.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:V.throwError("data out-of-bounds",d.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new Z(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return z.from(this.readBytes(this.wordSize))}}var Q=r(91094),J=r.n(Q);const Y=new d("address/5.7.0");function X(t){N(t,20)||Y.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=P((i=r,"0x"+J().keccak_256(P(i))));var i;for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const tt={};for(let t=0;t<10;t++)tt[String(t)]=String(t);for(let t=0;t<26;t++)tt[String.fromCharCode(65+t)]=String(10+t);const et=Math.floor((rt=9007199254740991,Math.log10?Math.log10(rt):Math.log(rt)/Math.LN10));var rt;function nt(t){let e=null;if("string"!=typeof t&&Y.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=X(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Y.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>tt[t])).join("");for(;e.length>=et;){let t=e.substring(0,et);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Y.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new L(r,36).toString(16);e.length<40;)e="0"+e;e=X("0x"+e)}else Y.throwArgumentError("invalid address","address",t);var r;return e}class it extends G{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=nt(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return nt(function(t,e){for("string"!=typeof t?t=R(t):N(t)||S.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&S.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}(t.readValue().toHexString(),20))}}class st extends G{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const ot=new d(p);function at(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let t={};n=e.map((e=>{const n=e.localName;return n||ot.throwError("cannot encode object for signature with missing names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]&&ot.throwError("cannot encode object for signature with duplicate names",d.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),t[n]=!0,r[n]}))}else ot.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&ot.throwArgumentError("types/value length mismatch","tuple",r);let i=new K(t.wordSize),s=new K(t.wordSize),o=[];e.forEach(((t,e)=>{let r=n[e];if(t.dynamic){let e=s.length;t.encode(s,r);let n=i.writeUpdatableValue();o.push((t=>{n(t+e)}))}else t.encode(i,r)})),o.forEach((t=>{t(i.length)}));let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function ct(t,e){let r=[],n=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let r=t.readValue(),s=n.subReader(r.toNumber());try{i=e.decode(s)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===d.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&r.push(i)}));const i=e.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});e.forEach(((t,e)=>{let n=t.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const s=r[e];s instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw s}}):r[n]=s}));for(let t=0;t{throw e}})}return Object.freeze(r)}class lt extends G{constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;rt._data.length&&ot.throwError("insufficient data length",d.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let r=[];for(let t=0;t>6==2;n++)t++;return t}return t===Et.OVERRUN?r.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(At||(At={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(Et||(Et={}));const _t=Object.freeze({error:function(t,e,r,n,i){return vt.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:xt,replace:function(t,e,r,n,i){return t===Et.OVERLONG?(n.push(i),0):(n.push(65533),xt(t,e,r))}});class St extends ht{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,function(t,e=At.current){e!=At.current&&(vt.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return P(r)}(e))}decode(t){return function(t,e){return function(t,e){null==e&&(e=_t.error),t=P(t);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let s=null,o=null;if(192==(224&i))s=1,o=127;else if(224==(240&i))s=2,o=2047;else{if(240!=(248&i)){n+=e(128==(192&i)?Et.UNEXPECTED_CONTINUE:Et.BAD_PREFIX,n-1,t,r);continue}s=3,o=65535}if(n-1+s>=t.length){n+=e(Et.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let i=0;i1114111?n+=e(Et.OUT_OF_RANGE,n-1-s,t,r,a):a>=55296&&a<=57343?n+=e(Et.UTF16_SURROGATE,n-1-s,t,r,a):a<=o?n+=e(Et.OVERLONG,n-1-s,t,r,a):r.push(a))}return r}(t,void 0).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}(super.decode(t))}}class Mt extends G{constructor(t,e){let r=!1;const n=[];t.forEach((t=>{t.dynamic&&(r=!0),n.push(t.type)})),super("tuple","tuple("+n.join(",")+")",e,r),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){return at(t,this.coders,e)}decode(t){return t.coerce(this.name,ct(t,this.coders))}}const Ct=new d(p),kt=new RegExp(/^bytes([0-9]*)$/),It=new RegExp(/^(u?int)([0-9]*)$/);class Pt{constructor(t){f(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new it(t.name);case"bool":return new ut(t.name);case"string":return new St(t.name);case"bytes":return new dt(t.name);case"array":return new lt(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Mt((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new pt(t.name)}let e=t.type.match(It);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&Ct.throwArgumentError("invalid "+e[1]+" bit length","param",t),new bt(r/8,"int"===e[1],t.name)}if(e=t.type.match(kt),e){let r=parseInt(e[1]);return(0===r||r>32)&&Ct.throwArgumentError("invalid bytes length","param",t),new ft(r,t.name)}return Ct.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Z(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new K(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(x.from(t))));return new Mt(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Ct.throwError("types/values length mismatch",d.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const r=t.map((t=>this._getCoder(x.from(t)))),n=new Mt(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){const n=t.map((t=>this._getCoder(x.from(t))));return new Mt(n,"_").decode(this._getReader(P(e),r))}}new Pt},19394:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(17187);function i(t,e,r){try{Reflect.apply(t,e,r)}catch(t){setTimeout((()=>{throw t}))}}class s extends n.EventEmitter{emit(t,...e){let r="error"===t;const n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let t;if(e.length>0&&([t]=e),t instanceof Error)throw t;const r=new Error("Unhandled error."+(t?` (${t.message})`:""));throw r.context=t,r}const s=n[t];if(void 0===s)return!1;if("function"==typeof s)i(s,this,e);else{const t=s.length,r=function(t){const e=t.length,r=new Array(e);for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertExhaustive=e.assertStruct=e.assert=e.AssertionError=void 0;const n=r(11821);function i(t,e){return r=t,Boolean("string"==typeof(null===(i=null===(n=null==r?void 0:r.prototype)||void 0===n?void 0:n.constructor)||void 0===i?void 0:i.name))?new t({message:e}):t({message:e});var r,n,i}class s extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}e.AssertionError=s,e.assert=function(t,e="Assertion failed.",r=s){if(!t){if(e instanceof Error)throw e;throw i(r,e)}},e.assertStruct=function(t,e,r="Assertion failed",o=s){try{(0,n.assert)(t,e)}catch(t){throw i(o,`${r}: ${function(t){const e=function(t){return"object"==typeof t&&null!==t&&"message"in t}(t)?t.message:String(t);return e.endsWith(".")?e.slice(0,-1):e}(t)}.`)}},e.assertExhaustive=function(t){throw new Error("Invalid branch reached. Should be detected during compilation.")}},47207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64=void 0;const n=r(11821),i=r(31422);e.base64=(t,e={})=>{var r,s;const o=null!==(r=e.paddingRequired)&&void 0!==r&&r,a=null!==(s=e.characterSet)&&void 0!==s?s:"base64";let c,l;return"base64"===a?c=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===a),c=String.raw`[-_A-Za-z0-9]`),l=o?new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,n.pattern)(t,l)}},8476:(t,e,r)=>{"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createDataView=e.concatBytes=e.valueToBytes=e.stringToBytes=e.numberToBytes=e.signedBigIntToBytes=e.bigIntToBytes=e.hexToBytes=e.bytesToString=e.bytesToNumber=e.bytesToSignedBigInt=e.bytesToBigInt=e.bytesToHex=e.assertIsBytes=e.isBytes=void 0;const i=r(31422),s=r(62009),o=function(){const t=[];return()=>{if(0===t.length)for(let e=0;e<256;e++)t.push(e.toString(16).padStart(2,"0"));return t}}();function a(t){return t instanceof Uint8Array}function c(t){(0,i.assert)(a(t),"Value must be a Uint8Array.")}function l(t){if(c(t),0===t.length)return"0x";const e=o(),r=new Array(t.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint."),h(t.toString(16))}function f(t){return(0,i.assert)("number"==typeof t,"Value must be a number."),(0,i.assert)(t>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToBytes` instead."),h(t.toString(16))}function p(t){return(0,i.assert)("string"==typeof t,"Value must be a string."),(new TextEncoder).encode(t)}function m(t){if("bigint"==typeof t)return d(t);if("number"==typeof t)return f(t);if("string"==typeof t)return t.startsWith("0x")?h(t):p(t);if(a(t))return t;throw new TypeError(`Unsupported value type: "${typeof t}".`)}e.isBytes=a,e.assertIsBytes=c,e.bytesToHex=l,e.bytesToBigInt=u,e.bytesToSignedBigInt=function(t){c(t);let e=BigInt(0);for(const r of t)e=(e<0,"Byte length must be greater than 0."),(0,i.assert)(function(t,e){(0,i.assert)(e>0);const r=t>>BigInt(31);return!((~t&r)+(t&~r)>>BigInt(8*e-1))}(t,e),"Byte length is too small to represent the given value.");let r=t;const n=new Uint8Array(e);for(let t=0;t>=BigInt(8);return n.reverse()},e.numberToBytes=f,e.stringToBytes=p,e.valueToBytes=m,e.concatBytes=function(t){const e=new Array(t.length);let r=0;for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChecksumStruct=void 0;const n=r(11821),i=r(47207);e.ChecksumStruct=(0,n.size)((0,i.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},73557:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHex=e.createBytes=e.createBigInt=e.createNumber=void 0;const n=r(11821),i=r(31422),s=r(8476),o=r(62009),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),c=(0,n.coerce)((0,n.number)(),a,Number),l=(0,n.coerce)((0,n.bigint)(),a,BigInt),u=((0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]),(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),s.hexToBytes)),h=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),s.bytesToHex);e.createNumber=function(t){try{const e=(0,n.create)(t,c);return(0,i.assert)(Number.isFinite(e),`Expected a number-like value, got "${t}".`),e}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a number-like value, got "${t}".`);throw e}},e.createBigInt=function(t){try{return(0,n.create)(t,l)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${String(t.value)}".`);throw t}},e.createBytes=function(t){if("string"==typeof t&&"0x"===t.toLowerCase())return new Uint8Array;try{return(0,n.create)(t,u)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}},e.createHex=function(t){if(t instanceof Uint8Array&&0===t.length||"string"==typeof t&&"0x"===t.toLowerCase())return"0x";try{return(0,n.create)(t,h)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}}},94283:function(t,e){"use strict";var r,n,i=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},s=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};Object.defineProperty(e,"__esModule",{value:!0}),e.FrozenSet=e.FrozenMap=void 0;class o{constructor(t){r.set(this,void 0),i(this,r,new Map(t),"f"),Object.freeze(this)}get size(){return s(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return s(this,r,"f")[Symbol.iterator]()}entries(){return s(this,r,"f").entries()}forEach(t,e){return s(this,r,"f").forEach(((r,n,i)=>t.call(e,r,n,this)))}get(t){return s(this,r,"f").get(t)}has(t){return s(this,r,"f").has(t)}keys(){return s(this,r,"f").keys()}values(){return s(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([t,e])=>`${String(t)} => ${String(e)}`)).join(", ")} `:""}}`}}e.FrozenMap=o;class a{constructor(t){n.set(this,void 0),i(this,n,new Set(t),"f"),Object.freeze(this)}get size(){return s(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return s(this,n,"f")[Symbol.iterator]()}entries(){return s(this,n,"f").entries()}forEach(t,e){return s(this,n,"f").forEach(((r,n,i)=>t.call(e,r,n,this)))}has(t){return s(this,n,"f").has(t)}keys(){return s(this,n,"f").keys()}values(){return s(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((t=>String(t))).join(", ")} `:""}}`}}e.FrozenSet=a,Object.freeze(o),Object.freeze(o.prototype),Object.freeze(a),Object.freeze(a.prototype)},62009:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;const n=r(11821),i=r(31422);function s(t){return(0,n.is)(t,e.HexStruct)}function o(t){return(0,n.is)(t,e.StrictHexStruct)}e.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),e.isHexString=s,e.isStrictHexString=o,e.assertIsHexString=function(t){(0,i.assert)(s(t),"Value must be a hexadecimal string.")},e.assertIsStrictHexString=function(t){(0,i.assert)(o(t),'Value must be a hexadecimal string, starting with "0x".')},e.add0x=function(t){return t.startsWith("0x")?t:t.startsWith("0X")?`0x${t.substring(2)}`:`0x${t}`},e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.substring(2):t}},42451:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(31422),e),i(r(47207),e),i(r(8476),e),i(r(85013),e),i(r(73557),e),i(r(94283),e),i(r(62009),e),i(r(22497),e),i(r(20160),e),i(r(66215),e),i(r(89679),e),i(r(99108),e),i(r(97772),e),i(r(88426),e)},22497:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateJsonAndGetSize=e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.isValidJson=e.JsonStruct=void 0;const n=r(11821),i=r(31422),s=r(66215);function o(t,e=!1){const r=new Set;return function t(e,n){if(void 0===e)return[!1,0];if(null===e)return[!0,n?0:s.JsonSize.Null];const i=typeof e;try{if("function"===i)return[!1,0];if("string"===i||e instanceof String)return[!0,n?0:(0,s.calculateStringSize)(e)+2*s.JsonSize.Quote];if("boolean"===i||e instanceof Boolean)return n?[!0,0]:[!0,1==e?s.JsonSize.True:s.JsonSize.False];if("number"===i||e instanceof Number)return n?[!0,0]:[!0,(0,s.calculateNumberSize)(e)];if(e instanceof Date)return n?[!0,0]:[!0,isNaN(e.getDate())?s.JsonSize.Null:s.JsonSize.Date+2*s.JsonSize.Quote]}catch(t){return[!1,0]}if(!(0,s.isPlainObject)(e)&&!Array.isArray(e))return[!1,0];if(r.has(e))return[!1,0];r.add(e);try{return[!0,Object.entries(e).reduce(((i,[o,a],c,l)=>{let[u,h]=t(a,n);if(!u)throw new Error("JSON validation did not pass. Validation process stopped.");return r.delete(e),n?0:i+(Array.isArray(e)?0:o.length+s.JsonSize.Comma+2*s.JsonSize.Colon)+h+(c{const[e]=o(t,!0);return!!e||"Expected a valid JSON-serializable value"})),e.isValidJson=function(t){return(0,n.is)(t,e.JsonStruct)},e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,n.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),e.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(e.JsonStruct),stack:(0,n.optional)((0,n.string)())}),e.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),e.JsonStruct),(0,n.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,n.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,n.omit)(e.JsonRpcRequestStruct,["id"]),e.isJsonRpcNotification=function(t){return(0,n.is)(t,e.JsonRpcNotificationStruct)},e.assertIsJsonRpcNotification=function(t,r){(0,i.assertStruct)(t,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",r)},e.isJsonRpcRequest=function(t){return(0,n.is)(t,e.JsonRpcRequestStruct)},e.assertIsJsonRpcRequest=function(t,r){(0,i.assertStruct)(t,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",r)},e.PendingJsonRpcResponseStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,n.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]),e.isPendingJsonRpcResponse=function(t){return(0,n.is)(t,e.PendingJsonRpcResponseStruct)},e.assertIsPendingJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",r)},e.isJsonRpcResponse=function(t){return(0,n.is)(t,e.JsonRpcResponseStruct)},e.assertIsJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",r)},e.isJsonRpcSuccess=function(t){return(0,n.is)(t,e.JsonRpcSuccessStruct)},e.assertIsJsonRpcSuccess=function(t,r){(0,i.assertStruct)(t,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",r)},e.isJsonRpcFailure=function(t){return(0,n.is)(t,e.JsonRpcFailureStruct)},e.assertIsJsonRpcFailure=function(t,r){(0,i.assertStruct)(t,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",r)},e.isJsonRpcError=function(t){return(0,n.is)(t,e.JsonRpcErrorStruct)},e.assertIsJsonRpcError=function(t,r){(0,i.assertStruct)(t,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",r)},e.getJsonRpcIdValidator=function(t){const{permitEmptyString:e,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},t);return t=>Boolean("number"==typeof t&&(r||Number.isInteger(t))||"string"==typeof t&&(e||t.length>0)||n&&null===t)},e.validateJsonAndGetSize=o},20160:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.createProjectLogger=void 0;const i=(0,n(r(11227)).default)("metamask");e.createProjectLogger=function(t){return i.extend(t)},e.createModuleLogger=function(t,e){return t.extend(e)}},66215:(t,e)=>{"use strict";function r(t){return t.charCodeAt(0)<=127}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0,e.isNonEmptyArray=function(t){return Array.isArray(t)&&t.length>0},e.isNullOrUndefined=function(t){return null==t},e.isObject=function(t){return Boolean(t)&&"object"==typeof t&&!Array.isArray(t)},e.hasProperty=(t,e)=>Object.hasOwnProperty.call(t,e),(n=e.JsonSize||(e.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,e.isPlainObject=function(t){if("object"!=typeof t||null===t)return!1;try{let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}catch(t){return!1}},e.isASCII=r,e.calculateStringSize=function(t){var n;return t.split("").reduce(((t,e)=>r(e)?t+1:t+2),0)+(null!==(n=t.match(e.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},e.calculateNumberSize=function(t){return t.toString().length}},89679:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBigInt=e.hexToNumber=e.bigIntToHex=e.numberToHex=void 0;const n=r(31422),i=r(62009);e.numberToHex=t=>((0,n.assert)("number"==typeof t,"Value must be a number."),(0,n.assert)(t>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(t.toString(16))),e.bigIntToHex=t=>((0,n.assert)("bigint"==typeof t,"Value must be a bigint."),(0,n.assert)(t>=0,"Value must be a non-negative bigint."),(0,i.add0x)(t.toString(16))),e.hexToNumber=t=>{(0,i.assertIsHexString)(t);const e=parseInt(t,16);return(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `hexToBigInt` instead."),e},e.hexToBigInt=t=>((0,i.assertIsHexString)(t),BigInt((0,i.add0x)(t)))},99108:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},97772:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(r=e.Duration||(e.Duration={}))[r.Millisecond=1]="Millisecond",r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Year=31536e6]="Year";const n=(t,e)=>{if(!(t=>Number.isInteger(t)&&t>=0)(t))throw new Error(`"${e}" must be a non-negative integer. Received: "${t}".`)};e.inMilliseconds=function(t,e){return n(t,"count"),t*e},e.timeSince=function(t){return n(t,"timestamp"),Date.now()-t}},88426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;const n=r(81249),i=r(11821),s=r(31422);e.VersionStruct=(0,i.refine)((0,i.string)(),"Version",(t=>null!==(0,n.valid)(t)||`Expected SemVer version, got "${t}"`)),e.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",(t=>null!==(0,n.validRange)(t)||`Expected SemVer range, got "${t}"`)),e.isValidSemVerVersion=function(t){return(0,i.is)(t,e.VersionStruct)},e.isValidSemVerRange=function(t){return(0,i.is)(t,e.VersionRangeStruct)},e.assertIsSemVerVersion=function(t){(0,s.assertStruct)(t,e.VersionStruct)},e.assertIsSemVerRange=function(t){(0,s.assertStruct)(t,e.VersionRangeStruct)},e.gtVersion=function(t,e){return(0,n.gt)(t,e)},e.gtRange=function(t,e){return(0,n.gtr)(t,e)},e.satisfiesVersionRange=function(t,e){return(0,n.satisfies)(t,e,{includePrerelease:!0})}},5946:(t,e,r)=>{const n=r(18269),i=r(44431),s=r(42295),o=r(80661);s.addABI(o),t.exports={hex:t=>"0x"+t.toString(16),toHex(t,e){let r="1"+"0".repeat(e),s=new i(t.toString(10),10).times(r);return n.toHex(s.toString(10))},toDec(t,e){let r="1"+"0".repeat(e),n=new i(t.toString(10),10).dividedBy(r);return parseFloat(n.toString(10))},abiDecoder:t=>s.decodeMethod(t),isNumeric:t=>!isNaN(Number(t)),getTokenABI:()=>o,isMobile(){let t=!1;return t=!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}()),t}}},98099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(97117);function i(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function s(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function o(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function a(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function c(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function l(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function u(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function h(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function d(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),u(t/4294967296>>>0,e,r),u(t>>>0,e,r+4),e}function f(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),h(t>>>0,e,r),h(t/4294967296>>>0,e,r+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=s,e.writeInt16LE=s,e.readInt32BE=o,e.readUint32BE=a,e.readInt32LE=c,e.readUint32LE=l,e.writeUint32BE=u,e.writeInt32BE=u,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var r=o(t,e),n=o(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*a(t,e)+a(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var r=c(t,e);return 4294967296*c(t,e+4)+r-4294967296*(r>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var r=l(t,e);return 4294967296*l(t,e+4)+r},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=f,e.writeInt64LE=f,e.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=t/8+r-1;s>=r;s--)n+=e[s]*i,i*=256;return n},e.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s=i;o--)r[o]=e/s&255,s*=256;return r},e.writeUintLE=function(t,e,r,i){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var s=1,o=i;o{"use strict";var n=r(25439),i=r(63027),s=r(17309),o=r(98099),a=r(4153);e.Cv=32,e.WH=12,e.pg=16;var c=new Uint8Array(16),l=function(){function t(t){if(this.nonceLength=e.WH,this.tagLength=e.pg,t.length!==e.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var a=new Uint8Array(32);n.stream(this._key,o,a,4);var c,l=e.length+this.tagLength;if(i){if(i.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");c=i}else c=new Uint8Array(l);return n.streamXOR(this._key,o,e,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},t.prototype.open=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&a.update(c.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&o.writeUint64LE(n.length,l),a.update(l),o.writeUint64LE(r.length,l),a.update(l);for(var u=a.digest(),h=0;h{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(98099),i=r(17309);function s(t,e,r){for(var i=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],l=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=r[19]<<24|r[18]<<16|r[17]<<8|r[16],f=r[23]<<24|r[22]<<16|r[21]<<8|r[20],p=r[27]<<24|r[26]<<16|r[25]<<8|r[24],m=r[31]<<24|r[30]<<16|r[29]<<8|r[28],g=e[3]<<24|e[2]<<16|e[1]<<8|e[0],y=e[7]<<24|e[6]<<16|e[5]<<8|e[4],w=e[11]<<24|e[10]<<16|e[9]<<8|e[8],b=e[15]<<24|e[14]<<16|e[13]<<8|e[12],v=i,A=s,E=o,x=a,_=c,S=l,M=u,C=h,k=d,I=f,P=p,O=m,N=g,T=y,R=w,B=b,L=0;L<20;L+=2)_=(_^=k=k+(N=(N^=v=v+_|0)>>>16|N<<16)|0)>>>20|_<<12,S=(S^=I=I+(T=(T^=A=A+S|0)>>>16|T<<16)|0)>>>20|S<<12,M=(M^=P=P+(R=(R^=E=E+M|0)>>>16|R<<16)|0)>>>20|M<<12,C=(C^=O=O+(B=(B^=x=x+C|0)>>>16|B<<16)|0)>>>20|C<<12,M=(M^=P=P+(R=(R^=E=E+M|0)>>>24|R<<8)|0)>>>25|M<<7,C=(C^=O=O+(B=(B^=x=x+C|0)>>>24|B<<8)|0)>>>25|C<<7,S=(S^=I=I+(T=(T^=A=A+S|0)>>>24|T<<8)|0)>>>25|S<<7,_=(_^=k=k+(N=(N^=v=v+_|0)>>>24|N<<8)|0)>>>25|_<<7,S=(S^=P=P+(B=(B^=v=v+S|0)>>>16|B<<16)|0)>>>20|S<<12,M=(M^=O=O+(N=(N^=A=A+M|0)>>>16|N<<16)|0)>>>20|M<<12,C=(C^=k=k+(T=(T^=E=E+C|0)>>>16|T<<16)|0)>>>20|C<<12,_=(_^=I=I+(R=(R^=x=x+_|0)>>>16|R<<16)|0)>>>20|_<<12,C=(C^=k=k+(T=(T^=E=E+C|0)>>>24|T<<8)|0)>>>25|C<<7,_=(_^=I=I+(R=(R^=x=x+_|0)>>>24|R<<8)|0)>>>25|_<<7,M=(M^=O=O+(N=(N^=A=A+M|0)>>>24|N<<8)|0)>>>25|M<<7,S=(S^=P=P+(B=(B^=v=v+S|0)>>>24|B<<8)|0)>>>25|S<<7;n.writeUint32LE(v+i|0,t,0),n.writeUint32LE(A+s|0,t,4),n.writeUint32LE(E+o|0,t,8),n.writeUint32LE(x+a|0,t,12),n.writeUint32LE(_+c|0,t,16),n.writeUint32LE(S+l|0,t,20),n.writeUint32LE(M+u|0,t,24),n.writeUint32LE(C+h|0,t,28),n.writeUint32LE(k+d|0,t,32),n.writeUint32LE(I+f|0,t,36),n.writeUint32LE(P+p|0,t,40),n.writeUint32LE(O+m|0,t,44),n.writeUint32LE(N+g|0,t,48),n.writeUint32LE(T+y|0,t,52),n.writeUint32LE(R+w|0,t,56),n.writeUint32LE(B+b|0,t,60)}function o(t,e,r,n,o){if(void 0===o&&(o=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=o,e.stream=function(t,e,r,n){return void 0===n&&(n=0),i.wipe(r),o(t,e,r,r,n)}},4153:(t,e)=>{"use strict";function r(t,e){if(t.length!==e.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,r){return~(t-1)&e|t-1&r},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},31050:(t,e,r)=>{"use strict";e.Xx=e._w=e.aP=e.KS=e.jQ=void 0,r(31416);const n=r(93350);function i(t){const e=new Float64Array(16);if(t)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,d(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function p(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function m(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function g(t,e,r){let n,i,s=0,o=0,a=0,c=0,l=0,u=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,w=0,b=0,v=0,A=0,E=0,x=0,_=0,S=0,M=0,C=0,k=0,I=0,P=0,O=0,N=0,T=0,R=0,B=0,L=r[0],U=r[1],j=r[2],D=r[3],F=r[4],z=r[5],H=r[6],$=r[7],q=r[8],W=r[9],V=r[10],G=r[11],K=r[12],Z=r[13],Q=r[14],J=r[15];n=e[0],s+=n*L,o+=n*U,a+=n*j,c+=n*D,l+=n*F,u+=n*z,h+=n*H,d+=n*$,f+=n*q,p+=n*W,m+=n*V,g+=n*G,y+=n*K,w+=n*Z,b+=n*Q,v+=n*J,n=e[1],o+=n*L,a+=n*U,c+=n*j,l+=n*D,u+=n*F,h+=n*z,d+=n*H,f+=n*$,p+=n*q,m+=n*W,g+=n*V,y+=n*G,w+=n*K,b+=n*Z,v+=n*Q,A+=n*J,n=e[2],a+=n*L,c+=n*U,l+=n*j,u+=n*D,h+=n*F,d+=n*z,f+=n*H,p+=n*$,m+=n*q,g+=n*W,y+=n*V,w+=n*G,b+=n*K,v+=n*Z,A+=n*Q,E+=n*J,n=e[3],c+=n*L,l+=n*U,u+=n*j,h+=n*D,d+=n*F,f+=n*z,p+=n*H,m+=n*$,g+=n*q,y+=n*W,w+=n*V,b+=n*G,v+=n*K,A+=n*Z,E+=n*Q,x+=n*J,n=e[4],l+=n*L,u+=n*U,h+=n*j,d+=n*D,f+=n*F,p+=n*z,m+=n*H,g+=n*$,y+=n*q,w+=n*W,b+=n*V,v+=n*G,A+=n*K,E+=n*Z,x+=n*Q,_+=n*J,n=e[5],u+=n*L,h+=n*U,d+=n*j,f+=n*D,p+=n*F,m+=n*z,g+=n*H,y+=n*$,w+=n*q,b+=n*W,v+=n*V,A+=n*G,E+=n*K,x+=n*Z,_+=n*Q,S+=n*J,n=e[6],h+=n*L,d+=n*U,f+=n*j,p+=n*D,m+=n*F,g+=n*z,y+=n*H,w+=n*$,b+=n*q,v+=n*W,A+=n*V,E+=n*G,x+=n*K,_+=n*Z,S+=n*Q,M+=n*J,n=e[7],d+=n*L,f+=n*U,p+=n*j,m+=n*D,g+=n*F,y+=n*z,w+=n*H,b+=n*$,v+=n*q,A+=n*W,E+=n*V,x+=n*G,_+=n*K,S+=n*Z,M+=n*Q,C+=n*J,n=e[8],f+=n*L,p+=n*U,m+=n*j,g+=n*D,y+=n*F,w+=n*z,b+=n*H,v+=n*$,A+=n*q,E+=n*W,x+=n*V,_+=n*G,S+=n*K,M+=n*Z,C+=n*Q,k+=n*J,n=e[9],p+=n*L,m+=n*U,g+=n*j,y+=n*D,w+=n*F,b+=n*z,v+=n*H,A+=n*$,E+=n*q,x+=n*W,_+=n*V,S+=n*G,M+=n*K,C+=n*Z,k+=n*Q,I+=n*J,n=e[10],m+=n*L,g+=n*U,y+=n*j,w+=n*D,b+=n*F,v+=n*z,A+=n*H,E+=n*$,x+=n*q,_+=n*W,S+=n*V,M+=n*G,C+=n*K,k+=n*Z,I+=n*Q,P+=n*J,n=e[11],g+=n*L,y+=n*U,w+=n*j,b+=n*D,v+=n*F,A+=n*z,E+=n*H,x+=n*$,_+=n*q,S+=n*W,M+=n*V,C+=n*G,k+=n*K,I+=n*Z,P+=n*Q,O+=n*J,n=e[12],y+=n*L,w+=n*U,b+=n*j,v+=n*D,A+=n*F,E+=n*z,x+=n*H,_+=n*$,S+=n*q,M+=n*W,C+=n*V,k+=n*G,I+=n*K,P+=n*Z,O+=n*Q,N+=n*J,n=e[13],w+=n*L,b+=n*U,v+=n*j,A+=n*D,E+=n*F,x+=n*z,_+=n*H,S+=n*$,M+=n*q,C+=n*W,k+=n*V,I+=n*G,P+=n*K,O+=n*Z,N+=n*Q,T+=n*J,n=e[14],b+=n*L,v+=n*U,A+=n*j,E+=n*D,x+=n*F,_+=n*z,S+=n*H,M+=n*$,C+=n*q,k+=n*W,I+=n*V,P+=n*G,O+=n*K,N+=n*Z,T+=n*Q,R+=n*J,n=e[15],v+=n*L,A+=n*U,E+=n*j,x+=n*D,_+=n*F,S+=n*z,M+=n*H,C+=n*$,k+=n*q,I+=n*W,P+=n*V,O+=n*G,N+=n*K,T+=n*Z,R+=n*Q,B+=n*J,s+=38*A,o+=38*E,a+=38*x,c+=38*_,l+=38*S,u+=38*M,h+=38*C,d+=38*k,f+=38*I,p+=38*P,m+=38*O,g+=38*N,y+=38*T,w+=38*R,b+=38*B,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),t[0]=s,t[1]=o,t[2]=a,t[3]=c,t[4]=l,t[5]=u,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=y,t[13]=w,t[14]=b,t[15]=v}function y(t,e){g(t,e,e)}function w(t,e){const r=i(),n=i(),s=i(),o=i(),c=i(),l=i(),u=i(),h=i(),d=i();m(r,t[1],t[0]),m(d,e[1],e[0]),g(r,r,d),p(n,t[0],t[1]),p(d,e[0],e[1]),g(n,n,d),g(s,t[3],e[3]),g(s,s,a),g(o,t[2],e[2]),p(o,o,o),m(c,n,r),m(l,o,s),p(u,o,s),p(h,n,r),g(t[0],c,l),g(t[1],h,u),g(t[2],u,l),g(t[3],c,h)}function b(t,e,r){for(let n=0;n<4;n++)d(t[n],e[n],r)}function v(t,e){const r=i(),n=i(),s=i();(function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)y(r,r),2!==n&&4!==n&&g(r,r,e);for(n=0;n<16;n++)t[n]=r[n]})(s,e[2]),g(r,e[0],s),g(n,e[1],s),f(t,n),t[31]^=function(t){const e=new Uint8Array(32);return f(e,t),1&e[0]}(r)<<7}function A(t,e){const r=[i(),i(),i(),i()];u(r[0],c),u(r[1],l),u(r[2],o),g(r[3],c,l),function(t,e,r){u(t[0],s),u(t[1],o),u(t[2],o),u(t[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;b(t,e,i),w(e,t),w(t,t),b(t,e,i)}}(t,r,e)}i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),e._w=function(t){if(t.length!==e.aP)throw new Error(`ed25519: seed must be ${e.aP} bytes`);const r=(0,n.hash)(t);r[0]&=248,r[31]&=127,r[31]|=64;const s=new Uint8Array(32),o=[i(),i(),i(),i()];A(o,r),v(s,o);const a=new Uint8Array(64);return a.set(t),a.set(s,32),{publicKey:s,secretKey:a}};const E=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 x(t,e){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i>4)*E[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*E[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function _(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;x(t,e)}e.Xx=function(t,e){const r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const a=new Uint8Array(64);a.set(o.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(e);const l=c.digest();c.clean(),_(l),A(s,l),v(a,s),c.reset(),c.update(a.subarray(0,32)),c.update(t.subarray(32)),c.update(e);const u=c.digest();_(u);for(let t=0;t<32;t++)r[t]=l[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)r[t+e]+=u[t]*o[e];return x(a.subarray(32),r),a}},79984:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSerializableHash=function(t){return void 0!==t.saveState&&void 0!==t.restoreState&&void 0!==t.cleanSavedState}},512:(t,e,r)=>{"use strict";var n=r(25629),i=r(17309),s=function(){function t(t,e,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var s=n.hmac(this._hash,r,e);this._hmac=new n.HMAC(t,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(79984),i=r(4153),s=r(17309),o=function(){function t(t,e){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);e.length>this.blockSize?this._inner.update(e).finish(r).clean():r.set(e);for(var i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},63027:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4153),i=r(17309);e.DIGEST_LENGTH=16;var s=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=8191&r;var n=t[2]|t[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var s=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|s<<9);var o=t[8]|t[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=t[12]|t[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var l=t[14]|t[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],h=this._h[7],d=this._h[8],f=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],w=this._r[4],b=this._r[5],v=this._r[6],A=this._r[7],E=this._r[8],x=this._r[9];r>=16;){var _=t[e+0]|t[e+1]<<8;i+=8191&_;var S=t[e+2]|t[e+3]<<8;s+=8191&(_>>>13|S<<3);var M=t[e+4]|t[e+5]<<8;o+=8191&(S>>>10|M<<6);var C=t[e+6]|t[e+7]<<8;a+=8191&(M>>>7|C<<9);var k=t[e+8]|t[e+9]<<8;c+=8191&(C>>>4|k<<12),l+=k>>>1&8191;var I=t[e+10]|t[e+11]<<8;u+=8191&(k>>>14|I<<2);var P=t[e+12]|t[e+13]<<8;h+=8191&(I>>>11|P<<5);var O=t[e+14]|t[e+15]<<8,N=0,T=N;T+=i*p,T+=s*(5*x),T+=o*(5*E),T+=a*(5*A),N=(T+=c*(5*v))>>>13,T&=8191,T+=l*(5*b),T+=u*(5*w),T+=h*(5*y),T+=(d+=8191&(P>>>8|O<<8))*(5*g);var R=N+=(T+=(f+=O>>>5|n)*(5*m))>>>13;R+=i*m,R+=s*p,R+=o*(5*x),R+=a*(5*E),N=(R+=c*(5*A))>>>13,R&=8191,R+=l*(5*v),R+=u*(5*b),R+=h*(5*w),R+=d*(5*y),N+=(R+=f*(5*g))>>>13,R&=8191;var B=N;B+=i*g,B+=s*m,B+=o*p,B+=a*(5*x),N=(B+=c*(5*E))>>>13,B&=8191,B+=l*(5*A),B+=u*(5*v),B+=h*(5*b),B+=d*(5*w);var L=N+=(B+=f*(5*y))>>>13;L+=i*y,L+=s*g,L+=o*m,L+=a*p,N=(L+=c*(5*x))>>>13,L&=8191,L+=l*(5*E),L+=u*(5*A),L+=h*(5*v),L+=d*(5*b);var U=N+=(L+=f*(5*w))>>>13;U+=i*w,U+=s*y,U+=o*g,U+=a*m,N=(U+=c*p)>>>13,U&=8191,U+=l*(5*x),U+=u*(5*E),U+=h*(5*A),U+=d*(5*v);var j=N+=(U+=f*(5*b))>>>13;j+=i*b,j+=s*w,j+=o*y,j+=a*g,N=(j+=c*m)>>>13,j&=8191,j+=l*p,j+=u*(5*x),j+=h*(5*E),j+=d*(5*A);var D=N+=(j+=f*(5*v))>>>13;D+=i*v,D+=s*b,D+=o*w,D+=a*y,N=(D+=c*g)>>>13,D&=8191,D+=l*m,D+=u*p,D+=h*(5*x),D+=d*(5*E);var F=N+=(D+=f*(5*A))>>>13;F+=i*A,F+=s*v,F+=o*b,F+=a*w,N=(F+=c*y)>>>13,F&=8191,F+=l*g,F+=u*m,F+=h*p,F+=d*(5*x);var z=N+=(F+=f*(5*E))>>>13;z+=i*E,z+=s*A,z+=o*v,z+=a*b,N=(z+=c*w)>>>13,z&=8191,z+=l*y,z+=u*g,z+=h*m,z+=d*p;var H=N+=(z+=f*(5*x))>>>13;H+=i*x,H+=s*E,H+=o*A,H+=a*v,N=(H+=c*b)>>>13,H&=8191,H+=l*w,H+=u*y,H+=h*g,H+=d*m,i=T=8191&(N=(N=((N+=(H+=f*p)>>>13)<<2)+N|0)+(T&=8191)|0),s=R+=N>>>=13,o=B&=8191,a=L&=8191,c=U&=8191,l=j&=8191,u=D&=8191,h=F&=8191,d=z&=8191,f=H&=8191,e+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=h,this._h[8]=d,this._h[9]=f},t.prototype.finish=function(t,e){void 0===e&&(e=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(n=~n,s=0;s<10;s++)this._h[s]=this._h[s]&n|o[s];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),i=this._h[0]+this._pad[0],this._h[0]=65535&i,s=1;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,r=0,n=t.length;if(this._leftover){(e=16-this._leftover)>n&&(e=n);for(var i=0;i=16&&(e=n-n%16,this._blocks(t,r,e),r+=e,n-=e),n){for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const n=r(46008),i=r(98099),s=r(17309);function o(t,r=e.defaultRandomSource){return r.randomBytes(t)}e.defaultRandomSource=new n.SystemRandomSource,e.randomBytes=o,e.randomUint32=function(t=e.defaultRandomSource){const r=o(4,t),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(t,r=a,n=e.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;t>0;){const e=o(Math.ceil(256*t/l),n);for(let n=0;n0;n++){const s=e[n];s{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRandomSource=void 0,e.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeRandomSource=void 0;const n=r(17309);e.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const t=r(35883);t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemRandomSource=void 0;const n=r(75455),i=r(58871);e.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}}},73294:(t,e,r)=>{"use strict";var n=r(98099),i=r(17309);e.k=32,e.cn=64;var s=function(){function t(){this.digestLength=e.k,this.blockSize=e.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],e--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(r=a(this._temp,this._state,t,r,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[r++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.mE=s;var o=new Int32Array([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 a(t,e,r,i,s){for(;s>=64;){for(var a=e[0],c=e[1],l=e[2],u=e[3],h=e[4],d=e[5],f=e[6],p=e[7],m=0;m<16;m++){var g=i+4*m;t[m]=n.readUint32BE(r,g)}for(m=16;m<64;m++){var y=t[m-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,b=((y=t[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;t[m]=(w+t[m-7]|0)+(b+t[m-16]|0)}for(m=0;m<64;m++)w=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)|0)+(p+(o[m]+t[m]|0)|0)|0,b=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&l^c&l)|0,p=f,f=d,d=h,h=u+w|0,u=l,l=c,c=a,a=w+b|0;e[0]+=a,e[1]+=c,e[2]+=l,e[3]+=u,e[4]+=h,e[5]+=d,e[6]+=f,e[7]+=p,i+=64,s-=64}return i}e.vp=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},93350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(98099),i=r(17309);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var s=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,r){if(void 0===r&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=s;var o=new Int32Array([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 a(t,e,r,i,s,a,c){for(var l,u,h,d,f,p,m,g,y=r[0],w=r[1],b=r[2],v=r[3],A=r[4],E=r[5],x=r[6],_=r[7],S=i[0],M=i[1],C=i[2],k=i[3],I=i[4],P=i[5],O=i[6],N=i[7];c>=128;){for(var T=0;T<16;T++){var R=8*T+a;t[T]=n.readUint32BE(s,R),e[T]=n.readUint32BE(s,R+4)}for(T=0;T<80;T++){var B,L,U=y,j=w,D=b,F=v,z=A,H=E,$=x,q=S,W=M,V=C,G=k,K=I,Z=P,Q=O;if(f=65535&(u=N),p=u>>>16,m=65535&(l=_),g=l>>>16,f+=65535&(u=(I>>>14|A<<18)^(I>>>18|A<<14)^(A>>>9|I<<23)),p+=u>>>16,m+=65535&(l=(A>>>14|I<<18)^(A>>>18|I<<14)^(I>>>9|A<<23)),g+=l>>>16,f+=65535&(u=I&P^~I&O),p+=u>>>16,m+=65535&(l=A&E^~A&x),g+=l>>>16,l=o[2*T],f+=65535&(u=o[2*T+1]),p+=u>>>16,m+=65535&l,g+=l>>>16,l=t[T%16],p+=(u=e[T%16])>>>16,m+=65535&l,g+=l>>>16,m+=(p+=(f+=65535&u)>>>16)>>>16,f=65535&(u=d=65535&f|p<<16),p=u>>>16,m=65535&(l=h=65535&m|(g+=m>>>16)<<16),g=l>>>16,f+=65535&(u=(S>>>28|y<<4)^(y>>>2|S<<30)^(y>>>7|S<<25)),p+=u>>>16,m+=65535&(l=(y>>>28|S<<4)^(S>>>2|y<<30)^(S>>>7|y<<25)),g+=l>>>16,p+=(u=S&M^S&C^M&C)>>>16,m+=65535&(l=y&w^y&b^w&b),g+=l>>>16,B=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,L=65535&f|p<<16,f=65535&(u=G),p=u>>>16,m=65535&(l=F),g=l>>>16,p+=(u=d)>>>16,m+=65535&(l=h),g+=l>>>16,w=U,b=j,v=D,A=F=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,E=z,x=H,_=$,y=B,M=q,C=W,k=V,I=G=65535&f|p<<16,P=K,O=Z,N=Q,S=L,T%16==15)for(R=0;R<16;R++)l=t[R],f=65535&(u=e[R]),p=u>>>16,m=65535&l,g=l>>>16,l=t[(R+9)%16],f+=65535&(u=e[(R+9)%16]),p+=u>>>16,m+=65535&l,g+=l>>>16,h=t[(R+1)%16],f+=65535&(u=((d=e[(R+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),p+=u>>>16,m+=65535&(l=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),g+=l>>>16,h=t[(R+14)%16],p+=(u=((d=e[(R+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,m+=65535&(l=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,t[R]=65535&m|g<<16,e[R]=65535&f|p<<16}f=65535&(u=S),p=u>>>16,m=65535&(l=y),g=l>>>16,l=r[0],p+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[0]=y=65535&m|g<<16,i[0]=S=65535&f|p<<16,f=65535&(u=M),p=u>>>16,m=65535&(l=w),g=l>>>16,l=r[1],p+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[1]=w=65535&m|g<<16,i[1]=M=65535&f|p<<16,f=65535&(u=C),p=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],p+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=C=65535&f|p<<16,f=65535&(u=k),p=u>>>16,m=65535&(l=v),g=l>>>16,l=r[3],p+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[3]=v=65535&m|g<<16,i[3]=k=65535&f|p<<16,f=65535&(u=I),p=u>>>16,m=65535&(l=A),g=l>>>16,l=r[4],p+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[4]=A=65535&m|g<<16,i[4]=I=65535&f|p<<16,f=65535&(u=P),p=u>>>16,m=65535&(l=E),g=l>>>16,l=r[5],p+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[5]=E=65535&m|g<<16,i[5]=P=65535&f|p<<16,f=65535&(u=O),p=u>>>16,m=65535&(l=x),g=l>>>16,l=r[6],p+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[6]=x=65535&m|g<<16,i[6]=O=65535&f|p<<16,f=65535&(u=N),p=u>>>16,m=65535&(l=_),g=l>>>16,l=r[7],p+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[7]=_=65535&m|g<<16,i[7]=N=65535&f|p<<16,a+=128,c-=128}return a}e.hash=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},17309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var e=0;e{"use strict";e.gi=e.Au=e.KS=e.kz=void 0;const n=r(31416),i=r(17309);function s(t){const e=new Float64Array(16);if(t)for(let r=0;r=0;--t){const e=r[t>>>3]>>>(7&t)&1;l(i,o,e),l(p,m,e),u(g,i,p),h(i,i,p),u(p,o,m),h(o,o,m),f(m,g),f(y,i),d(i,p,i),d(p,o,g),u(g,i,p),h(i,i,p),f(o,i),h(p,m,y),d(i,p,a),u(i,i,m),d(p,p,i),d(i,m,y),d(m,o,n),f(o,g),l(i,o,e),l(p,m,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=p[t],n[t+48]=o[t],n[t+64]=m[t];const w=n.subarray(32),b=n.subarray(16);!function(t,e){const r=s();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)f(r,r),2!==t&&4!==t&&d(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(w,w),d(b,b,w);const v=new Uint8Array(32);return function(t,e){const r=s(),n=s();for(let t=0;t<16;t++)n[t]=e[t];c(n),c(n),c(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,l(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(v,b),v}e.Au=function(t){const r=(0,n.randomBytes)(32,t),s=function(t){if(t.length!==e.KS)throw new Error(`x25519: seed must be ${e.KS} bytes`);const r=new Uint8Array(t);return{publicKey:(n=r,p(n,o)),secretKey:r};var n}(r);return(0,i.wipe)(r),s},e.gi=function(t,r,n=!1){if(t.length!==e.kz)throw new Error("X25519: incorrect secret key length");if(r.length!==e.kz)throw new Error("X25519: incorrect public key length");const i=p(t,r);if(n){let t=0;for(let e=0;e{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){const t=n();return t.subtle||t.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=n,e.getSubtleCrypto=i,e.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},88618:(t,e,r)=>{"use strict";var n=r(34155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=i,e.isNode=s,e.isBrowser=function(){return!i()&&!s()}},1468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(40926),e),n.__exportStar(r(88618),e)},33098:(t,e,r)=>{"use strict";r.d(e,{EthereumProvider:()=>ms});var n=r(17187),i=r.n(n),s=r(49795);const o=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(t,e){if(!("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e))return e;!function(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}(t)}function u(t,e={}){if("string"!=typeof t)return t;const r=t.trim();if('"'===t[0]&&'"'===t.at(-1)&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){const t=r.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!c.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(o.test(t)||a.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,l)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}var h=r(48764).Buffer;function d(t,...e){try{return(r=t(...e))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(t){return Promise.reject(t)}var r}function f(t){if(function(t){const e=typeof t;return null===t||"object"!==e&&"function"!==e}(t))return String(t);if(function(t){const e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}(t)||Array.isArray(t))return JSON.stringify(t);if("function"==typeof t.toJSON)return f(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function p(){if(void 0===typeof h)throw new TypeError("[unstorage] Buffer is not supported!")}const m="base64:";function g(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function y(...t){return g(t.join(":"))}function w(t){return(t=g(t))?t+":":""}const b=()=>{const t=new Map;return{name:"memory",options:{},hasItem:e=>t.has(e),getItem:e=>t.get(e)??null,getItemRaw:e=>t.get(e)??null,setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys:()=>Array.from(t.keys()),clear(){t.clear()},dispose(){t.clear()}}};function v(t,e,r){return t.watch?t.watch(((t,n)=>e(t,r+n))):()=>{}}async function A(t){"function"==typeof t.dispose&&await d(t.dispose)}function E(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function x(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=E(r);return(t,r)=>n.then((n=>r(n.transaction(e,t).objectStore(e))))}let _;function S(){return _||(_=x("keyval-store","keyval")),_}function M(t,e=S()){return e("readonly",(e=>E(e.get(t))))}function C(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return(t=>{const e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,((t,e)=>"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e))})(t)}catch(e){return t}}function k(t){return"string"==typeof t?t:(t=>JSON.stringify(t,((t,e)=>"bigint"==typeof e?e.toString()+"n":e)))(t)||""}var I=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",r=t=>e+t;let n;return t.dbName&&t.storeName&&(n=x(t.dbName,t.storeName)),{name:"idb-keyval",options:t,hasItem:async t=>!(typeof await M(r(t),n)>"u"),getItem:async t=>await M(r(t),n)??null,setItem:(t,e)=>function(t,e,r=S()){return r("readwrite",(r=>(r.put(e,t),E(r.transaction))))}(r(t),e,n),removeItem:t=>function(t,e=S()){return e("readwrite",(e=>(e.delete(t),E(e.transaction))))}(r(t),n),getKeys:()=>function(t=S()){return t("readonly",(t=>{if(t.getAllKeys)return E(t.getAllKeys());const e=[];return function(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},E(t.transaction)}(t,(t=>e.push(t.key))).then((()=>e))}))}(n),clear:()=>function(t=S()){return t("readwrite",(t=>(t.clear(),E(t.transaction))))}(n)}};class P{constructor(){this.indexedDb=function(t={}){const e={mounts:{"":t.driver||b()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const r of e.mountpoints)if(t.startsWith(r))return{base:r,relativeKey:t.slice(r.length),driver:e.mounts[r]};return{base:"",relativeKey:t,driver:e.mounts[""]}},n=(t,r)=>e.mountpoints.filter((e=>e.startsWith(t)||r&&t.startsWith(e))).map((r=>({relativeBase:t.length>r.length?t.slice(r.length):void 0,mountpoint:r,driver:e.mounts[r]}))),i=(t,r)=>{if(e.watching){r=g(r);for(const n of e.watchListeners)n(t,r)}},s=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},o=(t,e,n)=>{const i=new Map,s=t=>{let e=i.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},i.set(t.base,e)),e};for(const n of t){const t="string"==typeof n,i=g(t?n:n.key),o=t?void 0:n.value,a=t||!n.options?e:{...e,...n.options},c=r(i);s(c).items.push({key:i,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...i.values()].map((t=>n(t)))).then((t=>t.flat()))},a={hasItem(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return d(i.hasItem,n,e)},getItem(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return d(i.getItem,n,e).then((t=>u(t)))},getItems:(t,e)=>o(t,e,(t=>t.driver.getItems?d(t.driver.getItems,t.items.map((t=>({key:t.relativeKey,options:t.options}))),e).then((e=>e.map((e=>({key:y(t.base,e.key),value:u(e.value)}))))):Promise.all(t.items.map((e=>d(t.driver.getItem,e.relativeKey,e.options).then((t=>({key:e.key,value:u(t)})))))))),getItemRaw(t,e={}){t=g(t);const{relativeKey:n,driver:i}=r(t);return i.getItemRaw?d(i.getItemRaw,n,e):d(i.getItem,n,e).then((t=>function(t){return"string"!=typeof t?t:t.startsWith(m)?(p(),h.from(t.slice(7),"base64")):t}(t)))},async setItem(t,e,n={}){if(void 0===e)return a.removeItem(t);t=g(t);const{relativeKey:s,driver:o}=r(t);o.setItem&&(await d(o.setItem,s,f(e),n),o.watch||i("update",t))},async setItems(t,e){await o(t,e,(async t=>{t.driver.setItems&&await d(t.driver.setItems,t.items.map((t=>({key:t.relativeKey,value:f(t.value),options:t.options}))),e),t.driver.setItem&&await Promise.all(t.items.map((e=>d(t.driver.setItem,e.relativeKey,f(e.value),e.options))))}))},async setItemRaw(t,e,n={}){if(void 0===e)return a.removeItem(t,n);t=g(t);const{relativeKey:s,driver:o}=r(t);if(o.setItemRaw)await d(o.setItemRaw,s,e,n);else{if(!o.setItem)return;await d(o.setItem,s,function(t){if("string"==typeof t)return t;p();const e=h.from(t).toString("base64");return m+e}(e),n)}o.watch||i("update",t)},async removeItem(t,e={}){"boolean"==typeof e&&(e={removeMeta:e}),t=g(t);const{relativeKey:n,driver:s}=r(t);s.removeItem&&(await d(s.removeItem,n,e),(e.removeMeta||e.removeMata)&&await d(s.removeItem,n+"$",e),s.watch||i("remove",t))},async getMeta(t,e={}){"boolean"==typeof e&&(e={nativeOnly:e}),t=g(t);const{relativeKey:n,driver:i}=r(t),s=Object.create(null);if(i.getMeta&&Object.assign(s,await d(i.getMeta,n,e)),!e.nativeOnly){const t=await d(i.getItem,n+"$",e).then((t=>u(t)));t&&"object"==typeof t&&("string"==typeof t.atime&&(t.atime=new Date(t.atime)),"string"==typeof t.mtime&&(t.mtime=new Date(t.mtime)),Object.assign(s,t))}return s},setMeta(t,e,r={}){return this.setItem(t+"$",e,r)},removeMeta(t,e={}){return this.removeItem(t+"$",e)},async getKeys(t,e={}){t=w(t);const r=n(t,!0);let i=[];const s=[];for(const t of r){const r=(await d(t.driver.getKeys,t.relativeBase,e)).map((e=>t.mountpoint+g(e))).filter((t=>!i.some((e=>t.startsWith(e)))));s.push(...r),i=[t.mountpoint,...i.filter((e=>!e.startsWith(t.mountpoint)))]}return t?s.filter((e=>e.startsWith(t)&&!e.endsWith("$"))):s.filter((t=>!t.endsWith("$")))},async clear(t,e={}){t=w(t),await Promise.all(n(t,!1).map((async t=>{if(t.driver.clear)return d(t.driver.clear,t.relativeBase,e);if(t.driver.removeItem){const r=await t.driver.getKeys(t.relativeBase||"",e);return Promise.all(r.map((r=>t.driver.removeItem(r,e))))}})))},async dispose(){await Promise.all(Object.values(e.mounts).map((t=>A(t))))},watch:async t=>(await(async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await v(e.mounts[t],i,t)}})(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter((e=>e!==t)),0===e.watchListeners.length&&await s()}),async unwatch(){e.watchListeners=[],await s()},mount(t,r){if((t=w(t))&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort(((t,e)=>e.length-t.length))),e.mounts[t]=r,e.watching&&Promise.resolve(v(r,i,t)).then((r=>{e.unwatch[t]=r})).catch(console.error),a},async unmount(t,r=!0){(t=w(t))&&e.mounts[t]&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),r&&await A(e.mounts[t]),e.mountpoints=e.mountpoints.filter((e=>e!==t)),delete e.mounts[t])},getMount(t=""){t=g(t)+":";const e=r(t);return{driver:e.driver,base:e.base}},getMounts:(t="",e={})=>(t=g(t),n(t,e.parents).map((t=>({driver:t.driver,base:t.mountpoint}))))};return a}({driver:I({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((t=>[t.key,t.value]))}async getItem(t){const e=await this.indexedDb.getItem(t);if(null!==e)return e}async setItem(t,e){await this.indexedDb.setItem(t,k(e))}async removeItem(t){await this.indexedDb.removeItem(t)}}var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},N={exports:{}};function T(t){var e;return[t[0],C(null!=(e=t[1])?e:"")]}!function(){let t;function e(){}t=e,t.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){const t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof O<"u"&&O.localStorage?N.exports=O.localStorage:typeof window<"u"&&window.localStorage?N.exports=window.localStorage:N.exports=new e}();class R{constructor(){this.localStorage=N.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(T)}async getItem(t){const e=this.localStorage.getItem(t);if(null!==e)return C(e)}async setItem(t,e){this.localStorage.setItem(t,k(e))}async removeItem(t){this.localStorage.removeItem(t)}}class B{constructor(){this.initialized=!1,this.setInitialized=t=>{this.storage=t,this.initialized=!0};const t=new R;this.storage=t;try{(async(t,e,r)=>{const n="wc_storage_version",i=await e.getItem(n);if(i&&i>=1)return void r(e);const s=await t.getKeys();if(!s.length)return void r(e);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){const n=await t.getItem(r);await e.setItem(r,n),o.push(r)}}await e.setItem(n,1),r(e),(async(t,e)=>{e.length&&e.forEach((async e=>{await t.removeItem(e)}))})(t,o)})(t,new P,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(t){return await this.initialize(),this.storage.getItem(t)}async setItem(t,e){return await this.initialize(),this.storage.setItem(t,e)}async removeItem(t){return await this.initialize(),this.storage.removeItem(t)}async initialize(){this.initialized||await new Promise((t=>{const e=setInterval((()=>{this.initialized&&(clearInterval(e),t())}),20)}))}}var L=r(90772),U=r(9107),j=r(38200);class D extends j.q{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}}class F extends j.q{constructor(t,e){super(),this.core=t,this.logger=e,this.records=new Map}}class z{constructor(t,e){this.logger=t,this.core=e}}class H extends j.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class $ extends j.q{constructor(t){super()}}class q{constructor(t,e,r,n){this.core=t,this.logger=e,this.name=r}}class W extends j.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class V extends j.q{constructor(t,e){super(),this.core=t,this.logger=e}}class G{constructor(t,e){this.projectId=t,this.logger=e}}class K{constructor(t,e){this.projectId=t,this.logger=e}}class Z{constructor(t){this.opts=t,this.protocol="wc",this.version=2}}class Q{constructor(t){this.client=t}}var J=r(31050),Y=r(31416),X=r(66736);const tt="base64url",et="did",rt="key",nt="base58btc";var it=r(20605),st=r(92263),ot=r(52217);function at(t){return(0,st.B)((0,ot.m)(k(t),"utf8"),tt)}function ct(t){const e=(0,ot.m)("K36",nt),r="z"+(0,st.B)((0,it.z)([e,t]),nt);return[et,rt,r].join(":")}function lt(t=(0,Y.randomBytes)(32)){return J._w(t)}r(43014);var ut=r(37466);const ht="INTERNAL_ERROR",dt="SERVER_ERROR",ft=[-32700,-32600,-32601,-32602,-32603],pt={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[ht]:{code:-32603,message:"Internal error"},[dt]:{code:-32e3,message:"Server error"}},mt=dt;function gt(t){return Object.keys(pt).includes(t)?pt[t]:pt[mt]}function yt(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var wt=r(1468);function bt(t=3){return Date.now()*Math.pow(10,t)+Math.floor(Math.random()*Math.pow(10,t))}function vt(t=6){return BigInt(bt(t))}function At(t,e,r){return{id:r||bt(),jsonrpc:"2.0",method:t,params:e}}function Et(t,e){return{id:t,jsonrpc:"2.0",result:e}}function xt(t,e,r){return{id:t,jsonrpc:"2.0",error:_t(e,r)}}function _t(t,e){return void 0===t?gt(ht):("string"==typeof t&&(t=Object.assign(Object.assign({},gt(dt)),{message:t})),void 0!==e&&(t.data=e),r=t.code,ft.includes(r)&&(t=function(t){return Object.values(pt).find((e=>e.code===t))||pt[mt]}(t.code)),t);var r}class St{}class Mt extends St{constructor(){super()}}class Ct extends Mt{constructor(t){super()}}function kt(t,e){const r=function(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==r&&new RegExp(e).test(r)}function It(t){return kt(t,"^https?:")}function Pt(t){return kt(t,"^wss?:")}function Ot(t){return"object"==typeof t&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function Nt(t){return Ot(t)&&"method"in t}function Tt(t){return Ot(t)&&(Rt(t)||Bt(t))}function Rt(t){return"result"in t}function Bt(t){return"error"in t}class Lt extends Ct{constructor(t){super(t),this.events=new n.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async request(t,e){return this.requestStrict(At(t.method,t.params||[],t.id||vt().toString()),e)}async requestStrict(t,e){return new Promise((async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(t){n(t)}this.events.on(`${t.id}`,(t=>{Bt(t)?n(t.error):r(t.result)}));try{await this.connection.send(t,e)}catch(t){n(t)}}))}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Tt(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&3e3===t.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof t&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(t=>this.onPayload(t))),this.connection.on("close",(t=>this.onClose(t))),this.connection.on("error",(t=>this.events.emit("error",t))),this.connection.on("register_error",(t=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const Ut=t=>t.split("?")[0],jt=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(57026);class Dt{constructor(t){if(this.url=t,this.events=new n.EventEmitter,this.registering=!1,!Pt(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){return new Promise(((t,e)=>{typeof this.socket>"u"?e(new Error("Connection already closed")):(this.socket.onclose=e=>{this.onClose(e),t()},this.socket.close())}))}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(k(t))}catch(e){this.onError(t.id,e)}}register(t=this.url){if(!Pt(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return e(new Error("WebSocket connection is missing or invalid"));t(this.socket)}))}))}return this.url=t,this.registering=!0,new Promise(((e,n)=>{const i=new URLSearchParams(t).get("origin"),s=(0,wt.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:(a=t,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},o=new jt(t,[],s);var a;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?o.onerror=t=>{const e=t;n(this.emitError(e.error))}:o.on("error",(t=>{n(this.emitError(t))})),o.onopen=()=>{this.onOpen(o),e(o)}}))}onOpen(t){t.onmessage=t=>this.onPayload(t),t.onclose=t=>this.onClose(t),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const e="string"==typeof t.data?C(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=xt(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return yt(t,Ut(e),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(t){const e=this.parseError(new Error(t?.message||`WebSocket connection failed for host: ${Ut(this.url)}`));return this.events.emit("register_error",e),e}}var Ft=r(72307),zt=r.n(Ft),Ht=r(80204),$t=r.n(Ht),qt=r(34155);const Wt=t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")};class Vt{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Gt{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return Zt(this,t)}}class Kt{constructor(t){this.decoders=t}or(t){return Zt(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Zt=(t,e)=>new Kt({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class Qt{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new Vt(t,e,r),this.decoder=new Gt(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Jt=({name:t,prefix:e,encode:r,decode:n})=>new Qt(t,e,r,n),Yt=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),m=n;f!==s;)p[m++]=o[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,f=o-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var p=o-n;p!==o&&0===l[p];)p++;for(var m=c.repeat(r);pWt(i(t))})},Xt=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>Jt({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),te=Jt({prefix:"\0",name:"identity",encode:t=>(t=>(new TextDecoder).decode(t))(t),decode:t=>(t=>(new TextEncoder).encode(t))(t)});var ee=Object.freeze({__proto__:null,identity:te});const re=Xt({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var ne=Object.freeze({__proto__:null,base2:re});const ie=Xt({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var se=Object.freeze({__proto__:null,base8:ie});const oe=Yt({prefix:"9",name:"base10",alphabet:"0123456789"});var ae=Object.freeze({__proto__:null,base10:oe});const ce=Xt({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),le=Xt({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var ue=Object.freeze({__proto__:null,base16:ce,base16upper:le});const he=Xt({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),de=Xt({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),fe=Xt({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),pe=Xt({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),me=Xt({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ge=Xt({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ye=Xt({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),we=Xt({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),be=Xt({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var ve=Object.freeze({__proto__:null,base32:he,base32upper:de,base32pad:fe,base32padupper:pe,base32hex:me,base32hexupper:ge,base32hexpad:ye,base32hexpadupper:we,base32z:be});const Ae=Yt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Ee=Yt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var xe=Object.freeze({__proto__:null,base36:Ae,base36upper:Ee});const _e=Yt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Se=Yt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Me=Object.freeze({__proto__:null,base58btc:_e,base58flickr:Se});const Ce=Xt({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ke=Xt({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Ie=Xt({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Pe=Xt({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Oe=Object.freeze({__proto__:null,base64:Ce,base64pad:ke,base64url:Ie,base64urlpad:Pe});const Ne=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Te=Ne.reduce(((t,e,r)=>(t[r]=e,t)),[]),Re=Ne.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Be=Jt({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+Te[e]),"")},decode:function(t){const e=[];for(const r of t){const t=Re[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var Le=Object.freeze({__proto__:null,base256emoji:Be}),Ue=Math.pow(2,31),je=Math.pow(2,7),De=Math.pow(2,14),Fe=Math.pow(2,21),ze=Math.pow(2,28),He=Math.pow(2,35),$e=Math.pow(2,42),qe=Math.pow(2,49),We=Math.pow(2,56),Ve=Math.pow(2,63),Ge=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=Ue;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r};const Ke=(t,e,r=0)=>(Ge(t,e,r),e),Ze=t=>function(t){return t{const r=e.byteLength,n=Ze(t),i=n+Ze(r),s=new Uint8Array(i+r);return Ke(t,s,0),Ke(r,s,n),s.set(e,i),new Je(t,r,e,s)};class Je{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const Ye=({name:t,code:e,encode:r})=>new Xe(t,e,r);class Xe{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?Qe(this.code,e):e.then((t=>Qe(this.code,t)))}throw Error("Unknown type, must be binary type")}}const tr=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),er=Ye({name:"sha2-256",code:18,encode:tr("SHA-256")}),rr=Ye({name:"sha2-512",code:19,encode:tr("SHA-512")});Object.freeze({__proto__:null,sha256:er,sha512:rr});const nr=Wt,ir={code:0,name:"identity",encode:nr,digest:t=>Qe(0,nr(t))};Object.freeze({__proto__:null,identity:ir}),new TextEncoder,new TextDecoder;const sr={...ee,...ne,...se,...ae,...ue,...ve,...xe,...Me,...Oe,...Le};function or(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function ar(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const cr=ar("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),lr=ar("ascii","a",(t=>{let e="a";for(let r=0;r{const e=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?or(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length);for(let r=0;r{if(!this.initialized){const t=await this.getKeyChain();typeof t<"u"&&(this.keychain=t),this.initialized=!0}},this.has=t=>(this.isInitialized(),this.keychain.has(t)),this.set=async(t,e)=>{this.isInitialized(),this.keychain.set(t,e),await this.persist()},this.get=t=>{this.isInitialized();const e=this.keychain.get(t);if(typeof e>"u"){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e},this.del=async t=>{this.isInitialized(),this.keychain.delete(t),await this.persist()},this.core=t,this.logger=(0,U.generateChildLogger)(e,this.name)}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,(0,s.KC)(t))}async getKeyChain(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?(0,s.IP)(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Gr{constructor(t,e,r){this.core=t,this.logger=e,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=t=>(this.isInitialized(),this.keychain.has(t)),this.getClientId=async()=>(this.isInitialized(),ct(lt(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();const t=(0,s.Au)();return this.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=async t=>{this.isInitialized();const e=lt(await this.getClientSeed()),r=(0,s.jd)(),n=mr;return await async function(t,e,r,n,i=(0,X.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:ct(n.publicKey),sub:t,aud:e,iat:i,exp:i+r},a=(c={header:s,payload:o},(0,ot.m)([at(c.header),at(c.payload)].join("."),"utf8"));var c;return function(t){return[at(t.header),at(t.payload),(e=t.signature,(0,st.B)(e,tt))].join(".");var e}({header:s,payload:o,signature:J.Xx(n.secretKey,a)})}(r,t,n,e)},this.generateSharedKey=(t,e,r)=>{this.isInitialized();const n=this.getPrivateKey(t),i=(0,s.m$)(n,e);return this.setSymKey(i,r)},this.setSymKey=async(t,e)=>{this.isInitialized();const r=e||(0,s.Ym)(t);return await this.keychain.set(r,t),r},this.deleteKeyPair=async t=>{this.isInitialized(),await this.keychain.del(t)},this.deleteSymKey=async t=>{this.isInitialized(),await this.keychain.del(t)},this.encode=async(t,e,r)=>{this.isInitialized();const n=(0,s.EN)(r),i=k(e);if((0,s.Q8)(n)){const e=n.senderPublicKey,r=n.receiverPublicKey;t=await this.generateSharedKey(e,r)}const o=this.getSymKey(t),{type:a,senderPublicKey:c}=n;return(0,s.HI)({type:a,symKey:o,message:i,senderPublicKey:c})},this.decode=async(t,e,r)=>{this.isInitialized();const n=(0,s.Ll)(e,r);if((0,s.Q8)(n)){const e=n.receiverPublicKey,r=n.senderPublicKey;t=await this.generateSharedKey(e,r)}try{const r=this.getSymKey(t);return C((0,s.pe)({symKey:r,encoded:e}))}catch(e){this.logger.error(`Failed to decode message from topic: '${t}', clientId: '${await this.getClientId()}'`),this.logger.error(e)}},this.getPayloadType=t=>{const e=(0,s.vB)(t);return(0,s.WG)(e.type)},this.getPayloadSenderPublicKey=t=>{const e=(0,s.vB)(t);return e.senderPublicKey?(0,ut.BB)(e.senderPublicKey,s.AW):void 0},this.core=t,this.logger=(0,U.generateChildLogger)(e,this.name),this.keychain=r||new Vr(this.core,this.logger)}get context(){return(0,U.getLoggerContext)(this.logger)}async setPrivateKey(t,e){return await this.keychain.set(t,e),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(pr)}catch{t=(0,s.jd)(),await this.keychain.set(pr,t)}return function(t,e="utf8"){const r=ur[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):or(globalThis.Buffer.from(t,"utf-8"))}(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Kr extends z{constructor(t,e){super(t,e),this.logger=t,this.core=e,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const t=await this.getRelayerMessages();typeof t<"u"&&(this.messages=t),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}finally{this.initialized=!0}}},this.set=async(t,e)=>{this.isInitialized();const r=(0,s.rj)(e);let n=this.messages.get(t);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=e,this.messages.set(t,n),await this.persist()),r},this.get=t=>{this.isInitialized();let e=this.messages.get(t);return typeof e>"u"&&(e={}),e},this.has=(t,e)=>(this.isInitialized(),typeof this.get(t)[(0,s.rj)(e)]<"u"),this.del=async t=>{this.isInitialized(),this.messages.delete(t),await this.persist()},this.logger=(0,U.generateChildLogger)(t,this.name),this.core=e}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,(0,s.KC)(t))}async getRelayerMessages(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?(0,s.IP)(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Zr extends H{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.events=new n.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,X.toMiliseconds)(X.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(t,e,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}});try{const i=r?.ttl||gr,o=(0,s._H)(r),a=r?.prompt||!1,c=r?.tag||0,l=r?.id||vt().toString(),u={topic:t,message:e,opts:{ttl:i,relay:o,prompt:a,tag:c,id:l}},h=setTimeout((()=>this.queue.set(l,u)),this.publishTimeout);try{await await(0,s.hF)(this.rpcPublish(t,e,i,o,a,c,l),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(l),this.relayer.events.emit(_r,u)}catch(t){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,null!=(n=r?.internal)&&n.throwOnFailedPublish)throw this.removeRequestFromQueue(l),t;return}finally{clearTimeout(h)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(t),t}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.relayer=t,this.logger=(0,U.generateChildLogger)(e,this.name),this.registerEventListeners()}get context(){return(0,U.getLoggerContext)(this.logger)}rpcPublish(t,e,r,n,i,o,a){var c,l,u,h;const d={method:(0,s.cO)(n.protocol).publish,params:{topic:t,message:e,ttl:r,prompt:i,tag:o},id:a};return(0,s.o8)(null==(c=d.params)?void 0:c.prompt)&&(null==(l=d.params)||delete l.prompt),(0,s.o8)(null==(u=d.params)?void 0:u.tag)&&(null==(h=d.params)||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(t){this.queue.delete(t)}checkQueue(){this.queue.forEach((async t=>{const{topic:e,message:r,opts:n}=t;await this.publish(e,r,n)}))}registerEventListeners(){this.relayer.core.heartbeat.on(L.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(xr);this.checkQueue()})),this.relayer.on(vr,(t=>{this.removeRequestFromQueue(t.id.toString())}))}}class Qr{constructor(){this.map=new Map,this.set=(t,e)=>{const r=this.get(t);this.exists(t,e)||this.map.set(t,[...r,e])},this.get=t=>this.map.get(t)||[],this.exists=(t,e)=>this.get(t).includes(e),this.delete=(t,e)=>{if(typeof e>"u")return void this.map.delete(t);if(!this.map.has(t))return;const r=this.get(t);if(!this.exists(t,e))return;const n=r.filter((t=>t!==e));n.length?this.map.set(t,n):this.map.delete(t)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Jr=Object.defineProperty,Yr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,tn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,nn=(t,e,r)=>e in t?Jr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sn=(t,e)=>{for(var r in e||(e={}))en.call(e,r)&&nn(t,r,e[r]);if(tn)for(var r of tn(e))rn.call(e,r)&&nn(t,r,e[r]);return t},on=(t,e)=>Yr(t,Xr(e));class an extends W{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.subscriptions=new Map,this.topicMap=new Qr,this.events=new n.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=dr,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}});try{const r=(0,s._H)(e),n={topic:t,relay:r};this.pending.set(t,n);const i=await this.rpcSubscribe(t,r);return this.onSubscribe(i,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}}),i}catch(t){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(t),t}},this.unsubscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),typeof e?.id<"u"?await this.unsubscribeById(t,e.id,e):await this.unsubscribeByTopic(t,e)},this.isSubscribed=async t=>!!this.topics.includes(t)||await new Promise(((e,r)=>{const n=new X.Watch;n.start(this.pendingSubscriptionWatchLabel);const i=setInterval((()=>{!this.pending.has(t)&&this.topics.includes(t)&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),e(!0)),n.elapsed(this.pendingSubscriptionWatchLabel)>=Tr&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),r(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1)),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,U.generateChildLogger)(e,this.name),this.clientId=""}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,e){let r=!1;try{r=this.getSubscription(t).topic===e}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(t,e){const r=this.topicMap.get(t);await Promise.all(r.map((async r=>await this.unsubscribeById(t,r,e))))}async unsubscribeById(t,e,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}});try{const n=(0,s._H)(r);await this.rpcUnsubscribe(t,e,n);const i=(0,s.D6)("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,e,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(t),t}}async rpcSubscribe(t,e){const r={method:(0,s.cO)(e.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{await await(0,s.hF)(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(xr)}return(0,s.rj)(t+this.clientId)}async rpcBatchSubscribe(t){if(!t.length)return;const e=t[0].relay,r={method:(0,s.cO)(e.protocol).batchSubscribe,params:{topics:t.map((t=>t.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await(0,s.hF)(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(xr)}}rpcUnsubscribe(t,e,r){const n={method:(0,s.cO)(r.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),this.relayer.request(n)}onSubscribe(t,e){this.setSubscription(t,on(sn({},e),{id:t})),this.pending.delete(e.topic)}onBatchSubscribe(t){t.length&&t.forEach((t=>{this.setSubscription(t.id,sn({},t)),this.pending.delete(t.topic)}))}async onUnsubscribe(t,e,r){this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,r),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,e){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e))}addSubscription(t,e){this.subscriptions.set(t,sn({},e)),this.topicMap.set(e.topic,t),this.events.emit(Pr,e)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});const e=this.subscriptions.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}deleteSubscription(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});const r=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(r.topic,t),this.events.emit(Or,on(sn({},r),{reason:e}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}async reset(){if(this.cached.length){const t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let e=0;e"u"||!t.length)return;if(this.subscriptions.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async batchSubscribe(t){if(!t.length)return;const e=await this.rpcBatchSubscribe(t);(0,s.qt)(e)&&this.onBatchSubscribe(e.map(((e,r)=>on(sn({},t[r]),{id:e}))))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const t=[];this.pending.forEach((e=>{t.push(e)})),await this.batchSubscribe(t)}registerEventListeners(){this.relayer.core.heartbeat.on(L.HEARTBEAT_EVENTS.pulse,(async()=>{await this.checkPending()})),this.relayer.on(Ar,(async()=>{await this.onConnect()})),this.relayer.on(Er,(()=>{this.onDisconnect()})),this.events.on(Pr,(async t=>{const e=Pr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()})),this.events.on(Or,(async t=>{const e=Or;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise((t=>{const e=setInterval((()=>{this.restartInProgress||(clearInterval(e),t())}),this.pollingInterval)}))}}var cn=Object.defineProperty,ln=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,dn=(t,e,r)=>e in t?cn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;class fn extends ${constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new n.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async t=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(t)}catch(t){throw this.logger.debug("Failed to Publish Request"),this.logger.error(t),t}},this.onPayloadHandler=t=>{this.onProviderPayload(t)},this.onConnectHandler=()=>{this.events.emit(Ar)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.error(t),this.events.emit("relayer_error",t),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(Sr,this.onPayloadHandler),this.provider.on(Mr,this.onConnectHandler),this.provider.on(Cr,this.onDisconnectHandler),this.provider.on(kr,this.onProviderErrorHandler)},this.core=t.core,this.logger=typeof t.logger<"u"&&"string"!=typeof t.logger?(0,U.generateChildLogger)(t.logger,this.name):(0,U.pino)((0,U.getDefaultLoggerOptions)({level:t.logger||"error"})),this.messages=new Kr(this.logger,t.core),this.subscriber=new an(this,this.logger),this.publisher=new Zr(this,this.logger),this.relayUrl=t?.relayUrl||yr,this.projectId=t.projectId,this.bundleId=(0,s.X_)(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${wr}...`),await this.restartTransport(wr)}this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return(0,U.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,e,r){this.isInitialized(),await this.publisher.publish(t,e,r),await this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()})}async subscribe(t,e){var r;this.isInitialized();let n,i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"";if(i)return i;const s=e=>{e.topic===t&&(this.subscriber.off(Pr,s),n())};return await Promise.all([new Promise((t=>{n=t,this.subscriber.on(Pr,s)})),new Promise((async r=>{i=await this.subscriber.subscribe(t,e),r()}))]),i}async unsubscribe(t,e){this.isInitialized(),await this.subscriber.unsubscribe(t,e)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await(0,s.hF)(this.provider.disconnect(),1e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.connected&&await this.provider.disconnect()}async transportOpen(t){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){t&&t!==this.relayUrl&&(this.relayUrl=t,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise((t=>{if(!this.initialized)return t();this.subscriber.once(Nr,(()=>{t()}))})),new Promise((async(t,e)=>{try{await(0,s.hF)(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(t){return void e(t)}t()}))])}catch(t){this.logger.error(t);const e=t;if(!this.isConnectionStalled(e.message))throw t;this.provider.events.emit(Cr)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(t){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=t||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await(0,s.Gg)())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(t){return this.staleConnectionErrors.some((e=>t.includes(e)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const t=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Lt(new Dt((0,s.$0)({sdkVersion:"2.11.0",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(t){const{topic:e,message:r}=t;await this.messages.set(e,r)}async shouldIgnoreMessageEvent(t){const{topic:e,message:r}=t;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(e))return this.logger.debug(`Ignoring message for non-subscribed topic ${e}`),!0;const n=this.messages.has(e,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),Nt(t)){if(!t.method.endsWith("_subscription"))return;const e=t.params,{topic:r,message:n,publishedAt:i}=e.data,s={topic:r,message:n,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((t,e)=>{for(var r in e||(e={}))un.call(e,r)&&dn(t,r,e[r]);if(ln)for(var r of ln(e))hn.call(e,r)&&dn(t,r,e[r]);return t})({type:"event",event:e.id},s)),this.events.emit(e.id,s),await this.acknowledgePayload(t),await this.onMessageEvent(s)}else Tt(t)&&this.events.emit(vr,t)}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(br,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){const e=Et(t.id,!0);await this.provider.connection.send(e)}unregisterProviderListeners(){this.provider.off(Sr,this.onPayloadHandler),this.provider.off(Mr,this.onConnectHandler),this.provider.off(Cr,this.onDisconnectHandler),this.provider.off(kr,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(xr,(()=>{this.restartTransport().catch((t=>this.logger.error(t)))}));let t=await(0,s.Gg)();(0,s.uw)((async e=>{this.initialized&&t!==e&&(t=e,e?await this.restartTransport().catch((t=>this.logger.error(t))):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch((t=>this.logger.error(t)))))}))}onProviderDisconnect(){this.events.emit(Er),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout((async()=>{await this.restartTransport().catch((t=>this.logger.error(t)))}),(0,X.toMiliseconds)(Ir)))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise((t=>{const e=setInterval((()=>{this.connected&&(clearInterval(e),t())}),this.connectionStatusPollingInterval)}));await this.restartTransport()}}}var pn=Object.defineProperty,mn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,wn=(t,e,r)=>e in t?pn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,bn=(t,e)=>{for(var r in e||(e={}))gn.call(e,r)&&wn(t,r,e[r]);if(mn)for(var r of mn(e))yn.call(e,r)&&wn(t,r,e[r]);return t};class vn extends q{constructor(t,e,r,n=dr,i){super(t,e,r,n),this.core=t,this.logger=e,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>{this.getKey&&null!==t&&!(0,s.o8)(t)?this.map.set(this.getKey(t),t):(0,s.xW)(t)?this.map.set(t.id,t):(0,s.h1)(t)&&this.map.set(t.topic,t)})),this.cached=[],this.initialized=!0)},this.set=async(t,e)=>{this.isInitialized(),this.map.has(t)?await this.update(t,e):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),await this.persist())},this.get=t=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:t}),this.getData(t)),this.getAll=t=>(this.isInitialized(),t?this.values.filter((e=>Object.keys(t).every((r=>zt()(e[r],t[r]))))):this.values),this.update=async(t,e)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e});const r=bn(bn({},this.getData(t)),e);this.map.set(t,r),await this.persist()},this.delete=async(t,e)=>{this.isInitialized(),this.map.has(t)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),await this.persist())},this.logger=(0,U.generateChildLogger)(e,this.name),this.storagePrefix=n,this.getKey=i}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){const e=this.map.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}async persist(){await this.setDataStore(this.values)}async restore(){try{const t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class An{constructor(t,e){this.core=t,this.logger=e,this.name="pairing",this.version="0.3",this.events=new(i()),this.initialized=!1,this.storagePrefix=dr,this.ignoredPayloadTypes=[s.rV],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:t})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...t])]},this.create=async()=>{this.isInitialized();const t=(0,s.jd)(),e=await this.core.crypto.setSymKey(t),r=(0,s.gn)(X.FIVE_MINUTES),n={protocol:"irn"},i={topic:e,expiry:r,relay:n,active:!1},o=(0,s.Bv)({protocol:this.core.protocol,version:this.core.version,topic:e,symKey:t,relay:n});return await this.pairings.set(e,i),await this.core.relayer.subscribe(e),this.core.expirer.set(e,r),{topic:e,uri:o}},this.pair=async t=>{this.isInitialized(),this.isValidPair(t);const{topic:e,symKey:r,relay:n}=(0,s.he)(t.uri);let i;if(this.pairings.keys.includes(e)&&(i=this.pairings.get(e),i.active))throw new Error(`Pairing already exists: ${e}. Please try again with a new connection URI.`);const o=(0,s.gn)(X.FIVE_MINUTES),a={topic:e,relay:n,expiry:o,active:!1};return await this.pairings.set(e,a),this.core.expirer.set(e,o),t.activatePairing&&await this.activate({topic:e}),this.events.emit(Br,a),this.core.crypto.keychain.has(e)||(await this.core.crypto.setSymKey(r,e),await this.core.relayer.subscribe(e,{relay:n})),a},this.activate=async({topic:t})=>{this.isInitialized();const e=(0,s.gn)(X.THIRTY_DAYS);await this.pairings.update(t,{active:!0,expiry:e}),this.core.expirer.set(t,e)},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.pairings.keys.includes(e)){const t=await this.sendRequest(e,"wc_pairingPing",{}),{done:r,resolve:n,reject:i}=(0,s.H1)();this.events.once((0,s.E0)("pairing_ping",t),(({error:t})=>{t?i(t):n()})),await r()}},this.updateExpiry=async({topic:t,expiry:e})=>{this.isInitialized(),await this.pairings.update(t,{expiry:e})},this.updateMetadata=async({topic:t,metadata:e})=>{this.isInitialized(),await this.pairings.update(t,{peerMetadata:e})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.pairings.keys.includes(e)&&(await this.sendRequest(e,"wc_pairingDelete",(0,s.D6)("USER_DISCONNECTED")),await this.deletePairing(e))},this.sendRequest=async(t,e,r)=>{const n=At(e,r),i=await this.core.crypto.encode(t,n),s=Rr[e].req;return this.core.history.set(t,n),this.core.relayer.publish(t,i,s),n.id},this.sendResult=async(t,e,r)=>{const n=Et(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Rr[s.request.method].res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.sendError=async(t,e,r)=>{const n=xt(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Rr[s.request.method]?Rr[s.request.method].res:Rr.unregistered_method.res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.deletePairing=async(t,e)=>{await this.core.relayer.unsubscribe(t),await Promise.all([this.pairings.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)])},this.cleanup=async()=>{const t=this.pairings.getAll().filter((t=>(0,s.Bw)(t.expiry)));await Promise.all(t.map((t=>this.deletePairing(t.topic))))},this.onRelayEventRequest=t=>{const{topic:e,payload:r}=t;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(e,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(e,r);default:return this.onUnknownRpcMethodRequest(e,r)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.core.history.get(e,r.id)).request.method;return"wc_pairingPing"===n?this.onPairingPingResponse(e,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult(r,t,!0),this.events.emit("pairing_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onPairingPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{Rt(e)?this.events.emit((0,s.E0)("pairing_ping",r),{}):Bt(e)&&this.events.emit((0,s.E0)("pairing_ping",r),{error:e.error})}),500)},this.onPairingDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t}),await this.deletePairing(t),this.events.emit("pairing_delete",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodRequest=async(t,e)=>{const{id:r,method:n}=e;try{if(this.registeredMethods.includes(n))return;const e=(0,s.D6)("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,t,e),this.logger.error(e)}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodResponse=t=>{this.registeredMethods.includes(t)||this.logger.error((0,s.D6)("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=t=>{var e;if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pair() params: ${t}`);throw new Error(e)}if(!(0,s.jv)(t.uri)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pair() uri: ${t.uri}`);throw new Error(e)}const r=(0,s.he)(t.uri);if(null==(e=r?.relay)||!e.protocol){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(t)}if(null==r||!r.symKey){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(t)}},this.isValidPing=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidDisconnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidPairingTopic=async t=>{if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.pairings.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.pairings.get(t).expiry)){await this.deletePairing(t);const{message:e}=(0,s.Z7)("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}},this.core=t,this.logger=(0,U.generateChildLogger)(e,this.name),this.pairings=new vn(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,U.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(br,(async t=>{const{topic:e,message:r}=t;if(!this.pairings.keys.includes(e)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(e,r);try{Nt(n)?(this.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Tt(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.core.history.delete(e,n.id))}catch(t){this.logger.error(t)}}))}registerExpirerEvents(){this.core.expirer.on(zr,(async t=>{const{topic:e}=(0,s.iP)(t.target);e&&this.pairings.keys.includes(e)&&(await this.deletePairing(e,!0),this.events.emit("pairing_expire",{topic:e}))}))}}class En extends F{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.records=new Map,this.events=new n.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.records.set(t.id,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(t,e,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:t,request:e,chainId:r}),this.records.has(e.id))return;const n={id:e.id,topic:t,request:{method:e.method,params:e.params||null},chainId:r,expiry:(0,s.gn)(X.THIRTY_DAYS)};this.records.set(n.id,n),this.events.emit(Lr,n)},this.resolve=async t=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:t}),!this.records.has(t.id))return;const e=await this.getRecord(t.id);typeof e.response>"u"&&(e.response=Bt(t)?{error:t.error}:{result:t.result},this.records.set(e.id,e),this.events.emit(Ur,e))},this.get=async(t,e)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),await this.getRecord(e)),this.delete=(t,e)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:e}),this.values.forEach((r=>{if(r.topic===t){if(typeof e<"u"&&r.id!==e)return;this.records.delete(r.id),this.events.emit(jr,r)}}))},this.exists=async(t,e)=>(this.isInitialized(),!!this.records.has(e)&&(await this.getRecord(e)).topic===t),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,U.generateChildLogger)(e,this.name)}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const t=[];return this.values.forEach((e=>{if(typeof e.response<"u")return;const r={topic:e.topic,request:At(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(r)})),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();const e=this.records.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{const t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(Lr,(t=>{const e=Lr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(Ur,(t=>{const e=Ur;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(jr,(t=>{const e=jr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.core.heartbeat.on(L.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.records.forEach((t=>{(0,X.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.delete(t.topic,t.id))}))}catch(t){this.logger.warn(t)}}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class xn extends V{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.expirations=new Map,this.events=new n.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=dr,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.expirations.set(t.target,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=t=>{try{const e=this.formatTarget(t);return typeof this.getExpiration(e)<"u"}catch{return!1}},this.set=(t,e)=>{this.isInitialized();const r=this.formatTarget(t),n={target:r,expiry:e};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(Dr,{target:r,expiration:n})},this.get=t=>{this.isInitialized();const e=this.formatTarget(t);return this.getExpiration(e)},this.del=t=>{if(this.isInitialized(),this.has(t)){const e=this.formatTarget(t),r=this.getExpiration(e);this.expirations.delete(e),this.events.emit(Fr,{target:e,expiration:r})}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,U.generateChildLogger)(e,this.name)}get context(){return(0,U.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if("string"==typeof t)return(0,s.Z4)(t);if("number"==typeof t)return(0,s.Gq)(t);const{message:e}=(0,s.Z7)("UNKNOWN_TYPE","Target type: "+typeof t);throw new Error(e)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}async restore(){try{const t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){const{message:t}=(0,s.Z7)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){const e=this.expirations.get(t);if(!e){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}checkExpiry(t,e){const{expiry:r}=e;(0,X.toMiliseconds)(r)-Date.now()<=0&&this.expire(t,e)}expire(t,e){this.expirations.delete(t),this.events.emit(zr,{target:t,expiration:e})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((t,e)=>this.checkExpiry(e,t)))}registerEventListeners(){this.core.heartbeat.on(L.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(Dr,(t=>{const e=Dr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(zr,(t=>{const e=zr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(Fr,(t=>{const e=Fr;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}}}class _n extends G{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.name=Hr,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async t=>{if(this.verifyDisabled||(0,s.b$)()||!(0,s.jU)())return;const e=this.getVerifyUrl(t?.verifyUrl);this.verifyUrl!==e&&this.removeIframe(),this.verifyUrl=e;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t)}if(!this.initialized){this.removeIframe(),this.verifyUrl=qr;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t),this.verifyDisabled=!0}}},this.register=async t=>{this.initialized?this.sendPost(t.attestationId):(this.addToQueue(t.attestationId),await this.init())},this.resolve=async t=>{if(this.isDevEnv)return"";const e=this.getVerifyUrl(t?.verifyUrl);let r;try{r=await this.fetchAttestation(t.attestationId,e)}catch(n){this.logger.info(`failed to resolve attestation: ${t.attestationId} from url: ${e}`),this.logger.info(n),r=await this.fetchAttestation(t.attestationId,qr)}return r},this.fetchAttestation=async(t,e)=>{this.logger.info(`resolving attestation: ${t} from url: ${e}`);const r=this.startAbortTimer(2*X.ONE_SECOND),n=await fetch(`${e}/attestation/${t}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=t=>{this.queue.push(t)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((t=>this.sendPost(t))),this.queue=[])},this.sendPost=t=>{var e;try{if(!this.iframe)return;null==(e=this.iframe.contentWindow)||e.postMessage(t,"*"),this.logger.info(`postMessage sent: ${t} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let t;const e=r=>{"verify_ready"===r.data&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",e),t())};await Promise.race([new Promise((r=>{if(document.getElementById(Hr))return r();window.addEventListener("message",e);const n=document.createElement("iframe");n.id=Hr,n.src=`${this.verifyUrl}/${this.projectId}`,n.style.display="none",document.body.append(n),this.iframe=n,t=r})),new Promise(((t,r)=>setTimeout((()=>{window.removeEventListener("message",e),r("verify iframe load timeout")}),(0,X.toMiliseconds)(X.FIVE_SECONDS))))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=t=>{let e=t||$r;return Wr.includes(e)||(this.logger.info(`verify url: ${e}, not included in trusted list, assigning default: ${$r}`),e=$r),e},this.logger=(0,U.generateChildLogger)(e,this.name),this.verifyUrl=$r,this.abortController=new AbortController,this.isDevEnv=(0,s.UG)()&&qt.env.IS_VITEST}get context(){return(0,U.getLoggerContext)(this.logger)}startAbortTimer(t){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,X.toMiliseconds)(t))}}class Sn extends K{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.context="echo",this.registerDeviceToken=async t=>{const{clientId:e,token:r,notificationType:n,enableEncrypted:i=!1}=t,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await $t()(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:e,type:n,token:r,always_raw:i})})},this.logger=(0,U.generateChildLogger)(e,this.context)}}var Mn=Object.defineProperty,Cn=Object.getOwnPropertySymbols,kn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Pn=(t,e,r)=>e in t?Mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,On=(t,e)=>{for(var r in e||(e={}))kn.call(e,r)&&Pn(t,r,e[r]);if(Cn)for(var r of Cn(e))In.call(e,r)&&Pn(t,r,e[r]);return t};class Nn extends D{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=hr,this.events=new n.EventEmitter,this.initialized=!1,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.projectId=t?.projectId,this.relayUrl=t?.relayUrl||yr,this.customStoragePrefix=null!=t&&t.customStoragePrefix?`:${t.customStoragePrefix}`:"";const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,U.pino)((0,U.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.logger=(0,U.generateChildLogger)(e,this.name),this.heartbeat=new L.HeartBeat,this.crypto=new Gr(this,this.logger,t?.keychain),this.history=new En(this,this.logger),this.expirer=new xn(this,this.logger),this.storage=null!=t&&t.storage?t.storage:new B(On(On({},fr),t?.storageOptions)),this.relayer=new fn({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new An(this,this.logger),this.verify=new _n(this.projectId||"",this.logger),this.echoClient=new Sn(this.projectId||"",this.logger)}static async init(t){const e=new Nn(t);await e.initialize();const r=await e.crypto.getClientId();return await e.storage.setItem("WALLETCONNECT_CLIENT_ID",r),e}get context(){return(0,U.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}}const Tn=Nn,Rn="client",Bn=`wc@2:${Rn}:`,Ln=Rn,Un="WALLETCONNECT_DEEPLINK_CHOICE",jn="Proposal expired",Dn=X.SEVEN_DAYS,Fn={wc_sessionPropose:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1104},res:{ttl:X.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1106},res:{ttl:X.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:X.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:X.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:X.ONE_DAY,prompt:!1,tag:1112},res:{ttl:X.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:X.THIRTY_SECONDS,prompt:!1,tag:1115}}},zn={min:X.FIVE_MINUTES,max:X.SEVEN_DAYS},Hn="IDLE",$n="ACTIVE",qn=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var Wn=Object.defineProperty,Vn=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,Jn=(t,e,r)=>e in t?Wn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yn=(t,e)=>{for(var r in e||(e={}))Zn.call(e,r)&&Jn(t,r,e[r]);if(Kn)for(var r of Kn(e))Qn.call(e,r)&&Jn(t,r,e[r]);return t},Xn=(t,e)=>Vn(t,Gn(e));class ti extends Q{constructor(t){super(t),this.name="engine",this.events=new(i()),this.initialized=!1,this.ignoredPayloadTypes=[s.rV],this.requestQueue={state:Hn,queue:[]},this.sessionRequestQueue={state:Hn,queue:[]},this.requestQueueDelay=X.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(Fn)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,X.toMiliseconds)(this.requestQueueDelay)))},this.connect=async t=>{await this.isInitialized();const e=Xn(Yn({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(e);const{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:o,relays:a}=e;let c,l=r,u=!1;if(l&&(u=this.client.core.pairing.pairings.get(l).active),!l||!u){const{topic:t,uri:e}=await this.client.core.pairing.create();l=t,c=e}const h=await this.client.core.crypto.generateKeyPair(),d=Yn({requiredNamespaces:n,optionalNamespaces:i,relays:a??[{protocol:"irn"}],proposer:{publicKey:h,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:f,resolve:p,done:m}=(0,s.H1)(X.FIVE_MINUTES,jn);if(this.events.once((0,s.E0)("session_connect"),(async({error:t,session:e})=>{if(t)f(t);else if(e){e.self.publicKey=h;const t=Xn(Yn({},e),{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces});await this.client.session.set(e.topic,t),await this.setExpiry(e.topic,e.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:e.peer.metadata}),p(t)}})),!l){const{message:t}=(0,s.Z7)("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw new Error(t)}const g=await this.sendRequest({topic:l,method:"wc_sessionPropose",params:d}),y=(0,s.gn)(X.FIVE_MINUTES);return await this.setProposal(g,Yn({id:g,expiry:y},d)),{uri:c,approval:m}},this.pair=async t=>(await this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{await this.isInitialized(),await this.isValidApprove(t);const{id:e,relayProtocol:r,namespaces:n,sessionProperties:i}=t,o=this.client.proposal.get(e);let{pairingTopic:a,proposer:c,requiredNamespaces:l,optionalNamespaces:u}=o;a=a||"",(0,s.L5)(l)||(l=(0,s.fc)(n,"approve()"));const h=await this.client.core.crypto.generateKeyPair(),d=c.publicKey,f=await this.client.core.crypto.generateSharedKey(h,d);a&&e&&(await this.client.core.pairing.updateMetadata({topic:a,metadata:c.metadata}),await this.sendResult({id:e,topic:a,result:{relay:{protocol:r??"irn"},responderPublicKey:h}}),await this.client.proposal.delete(e,(0,s.D6)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a}));const p=Yn({relay:{protocol:r??"irn"},namespaces:n,requiredNamespaces:l,optionalNamespaces:u,pairingTopic:a,controller:{publicKey:h,metadata:this.client.metadata},expiry:(0,s.gn)(Dn)},i&&{sessionProperties:i});await this.client.core.relayer.subscribe(f),await this.sendRequest({topic:f,method:"wc_sessionSettle",params:p,throwOnFailedPublish:!0});const m=Xn(Yn({},p),{topic:f,pairingTopic:a,acknowledged:!1,self:p.controller,peer:{publicKey:c.publicKey,metadata:c.metadata},controller:h});return await this.client.session.set(f,m),await this.setExpiry(f,(0,s.gn)(Dn)),{topic:f,acknowledged:()=>new Promise((t=>setTimeout((()=>t(this.client.session.get(f))),500)))}},this.reject=async t=>{await this.isInitialized(),await this.isValidReject(t);const{id:e,reason:r}=t,{pairingTopic:n}=this.client.proposal.get(e);n&&(await this.sendError(e,n,r),await this.client.proposal.delete(e,(0,s.D6)("USER_DISCONNECTED")))},this.update=async t=>{await this.isInitialized(),await this.isValidUpdate(t);const{topic:e,namespaces:r}=t,n=await this.sendRequest({topic:e,method:"wc_sessionUpdate",params:{namespaces:r}}),{done:i,resolve:o,reject:a}=(0,s.H1)();return this.events.once((0,s.E0)("session_update",n),(({error:t})=>{t?a(t):o()})),await this.client.session.update(e,{namespaces:r}),{acknowledged:i}},this.extend=async t=>{await this.isInitialized(),await this.isValidExtend(t);const{topic:e}=t,r=await this.sendRequest({topic:e,method:"wc_sessionExtend",params:{}}),{done:n,resolve:i,reject:o}=(0,s.H1)();return this.events.once((0,s.E0)("session_extend",r),(({error:t})=>{t?o(t):i()})),await this.setExpiry(e,(0,s.gn)(Dn)),{acknowledged:n}},this.request=async t=>{await this.isInitialized(),await this.isValidRequest(t);const{chainId:e,request:r,topic:n,expiry:i}=t,o=bt(),{done:a,resolve:c,reject:l}=(0,s.H1)(i,"Request expired. Please try again.");return this.events.once((0,s.E0)("session_request",o),(({error:t,result:e})=>{t?l(t):c(e)})),await Promise.all([new Promise((async t=>{await this.sendRequest({clientRpcId:o,topic:n,method:"wc_sessionRequest",params:{request:r,chainId:e},expiry:i,throwOnFailedPublish:!0}).catch((t=>l(t))),this.client.events.emit("session_request_sent",{topic:n,request:r,chainId:e,id:o}),t()})),new Promise((async t=>{const e=await(0,s.bW)(this.client.core.storage,Un);(0,s.Hh)({id:o,topic:n,wcDeepLink:e}),t()})),a()]).then((t=>t[2]))},this.respond=async t=>{await this.isInitialized(),await this.isValidRespond(t);const{topic:e,response:r}=t,{id:n}=r;Rt(r)?await this.sendResult({id:n,topic:e,result:r.result,throwOnFailedPublish:!0}):Bt(r)&&await this.sendError(n,e,r.error),this.cleanupAfterResponse(t)},this.ping=async t=>{await this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.client.session.keys.includes(e)){const t=await this.sendRequest({topic:e,method:"wc_sessionPing",params:{}}),{done:r,resolve:n,reject:i}=(0,s.H1)();this.events.once((0,s.E0)("session_ping",t),(({error:t})=>{t?i(t):n()})),await r()}else this.client.core.pairing.pairings.keys.includes(e)&&await this.client.core.pairing.ping({topic:e})},this.emit=async t=>{await this.isInitialized(),await this.isValidEmit(t);const{topic:e,event:r,chainId:n}=t;await this.sendRequest({topic:e,method:"wc_sessionEvent",params:{event:r,chainId:n}})},this.disconnect=async t=>{await this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.client.session.keys.includes(e)?(await this.sendRequest({topic:e,method:"wc_sessionDelete",params:(0,s.D6)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(e)):await this.client.core.pairing.disconnect({topic:e})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter((e=>(0,s.Ih)(e,t)))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async t=>{if(t.pairingTopic)try{const e=this.client.core.pairing.pairings.get(t.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&r.topic&&r.topic!==e.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((t=>this.client.core.pairing.disconnect({topic:t.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async(t,e)=>{const{self:r}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),this.client.session.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(r.publicKey)&&await this.client.core.crypto.deleteKeyPair(r.publicKey),this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteSymKey(t),e||this.client.core.expirer.del(t),this.client.core.storage.removeItem(Un).catch((t=>this.client.logger.warn(t))),this.getPendingSessionRequests().forEach((e=>{e.topic===t&&this.deletePendingSessionRequest(e.id,(0,s.D6)("USER_DISCONNECTED"))}))},this.deleteProposal=async(t,e)=>{await Promise.all([this.client.proposal.delete(t,(0,s.D6)("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,e,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((e=>e.id!==t)),r&&(this.sessionRequestQueue.state=Hn)},this.setExpiry=async(t,e)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:e}),this.client.core.expirer.set(t,e)},this.setProposal=async(t,e)=>{await this.client.proposal.set(t,e),this.client.core.expirer.set(t,e.expiry)},this.setPendingSessionRequest=async t=>{const e=Fn.wc_sessionRequest.req.ttl,{id:r,topic:n,params:i,verifyContext:o}=t;await this.client.pendingRequest.set(r,{id:r,topic:n,params:i,verifyContext:o}),e&&this.client.core.expirer.set(r,(0,s.gn)(e))},this.sendRequest=async t=>{const{topic:e,method:r,params:n,expiry:i,relayRpcId:o,clientRpcId:a,throwOnFailedPublish:c}=t,l=At(r,n,a);if((0,s.jU)()&&qn.includes(r)){const t=(0,s.rj)(JSON.stringify(l));this.client.core.verify.register({attestationId:t})}const u=await this.client.core.crypto.encode(e,l),h=Fn[r].req;return i&&(h.ttl=i),o&&(h.id=o),this.client.core.history.set(e,l),c?(h.internal=Xn(Yn({},h.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(e,u,h)):this.client.core.relayer.publish(e,u,h).catch((t=>this.client.logger.error(t))),l.id},this.sendResult=async t=>{const{id:e,topic:r,result:n,throwOnFailedPublish:i}=t,s=Et(e,n),o=await this.client.core.crypto.encode(r,s),a=await this.client.core.history.get(r,e),c=Fn[a.request.method].res;i?(c.internal=Xn(Yn({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,o,c)):this.client.core.relayer.publish(r,o,c).catch((t=>this.client.logger.error(t))),await this.client.core.history.resolve(s)},this.sendError=async(t,e,r)=>{const n=xt(t,r),i=await this.client.core.crypto.encode(e,n),s=await this.client.core.history.get(e,t),o=Fn[s.request.method].res;this.client.core.relayer.publish(e,i,o),await this.client.core.history.resolve(n)},this.cleanup=async()=>{const t=[],e=[];this.client.session.getAll().forEach((e=>{(0,s.Bw)(e.expiry)&&t.push(e.topic)})),this.client.proposal.getAll().forEach((t=>{(0,s.Bw)(t.expiry)&&e.push(t.id)})),await Promise.all([...t.map((t=>this.deleteSession(t))),...e.map((t=>this.deleteProposal(t)))])},this.onRelayEventRequest=async t=>{this.requestQueue.queue.push(t),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==$n){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=$n;const t=this.requestQueue.queue.shift();if(t)try{this.processRequest(t),await new Promise((t=>setTimeout(t,300)))}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=Hn}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=t=>{const{topic:e,payload:r}=t,n=r.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeRequest(e,r);case"wc_sessionSettle":return this.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return this.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return this.onSessionExtendRequest(e,r);case"wc_sessionPing":return this.onSessionPingRequest(e,r);case"wc_sessionDelete":return this.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return this.onSessionRequest(e,r);case"wc_sessionEvent":return this.onSessionEventRequest(e,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.client.core.history.get(e,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(e,r);case"wc_sessionSettle":return this.onSessionSettleResponse(e,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(e,r);case"wc_sessionExtend":return this.onSessionExtendResponse(e,r);case"wc_sessionPing":return this.onSessionPingResponse(e,r);case"wc_sessionRequest":return this.onSessionRequestResponse(e,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=t=>{const{topic:e}=t,{message:r}=(0,s.Z7)("MISSING_OR_INVALID",`Decoded payload on topic ${e} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.onSessionProposeRequest=async(t,e)=>{const{params:r,id:n}=e;try{this.isValidConnect(Yn({},e.params));const i=(0,s.gn)(X.FIVE_MINUTES),o=Yn({id:n,pairingTopic:t,expiry:i},r);await this.setProposal(n,o);const a=(0,s.rj)(JSON.stringify(e)),c=await this.getVerifyContext(a,o.proposer.metadata);this.client.events.emit("session_proposal",{id:n,params:o,verifyContext:c})}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.onSessionProposeResponse=async(t,e)=>{const{id:r}=e;if(Rt(e)){const{result:n}=e;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const i=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const s=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s});const o=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:o});const a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:a});const c=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:t})}else Bt(e)&&(await this.client.proposal.delete(r,(0,s.D6)("USER_DISCONNECTED")),this.events.emit((0,s.E0)("session_connect"),{error:e.error}))},this.onSessionSettleRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidSessionSettleRequest(n);const{relay:r,controller:i,expiry:o,namespaces:a,requiredNamespaces:c,optionalNamespaces:l,sessionProperties:u,pairingTopic:h}=e.params,d=Yn({topic:t,relay:r,expiry:o,namespaces:a,acknowledged:!0,pairingTopic:h,requiredNamespaces:c,optionalNamespaces:l,controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},u&&{sessionProperties:u});await this.sendResult({id:e.id,topic:t,result:!0}),this.events.emit((0,s.E0)("session_connect"),{session:d}),this.cleanupDuplicatePairings(d)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionSettleResponse=async(t,e)=>{const{id:r}=e;Rt(e)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit((0,s.E0)("session_approve",r),{})):Bt(e)&&(await this.client.session.delete(t,(0,s.D6)("USER_DISCONNECTED")),this.events.emit((0,s.E0)("session_approve",r),{error:e.error}))},this.onSessionUpdateRequest=async(t,e)=>{const{params:r,id:n}=e;try{const e=`${t}_session_update`,i=s.O6.get(e);if(i&&this.isRequestOutOfSync(i,n))return void this.client.logger.info(`Discarding out of sync request - ${n}`);this.isValidUpdate(Yn({topic:t},r)),await this.client.session.update(t,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:t,result:!0}),this.client.events.emit("session_update",{id:n,topic:t,params:r}),s.O6.set(e,n)}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.isRequestOutOfSync=(t,e)=>parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3)),this.onSessionUpdateResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_update",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_update",r),{error:e.error})},this.onSessionExtendRequest=async(t,e)=>{const{id:r}=e;try{this.isValidExtend({topic:t}),await this.setExpiry(t,(0,s.gn)(Dn)),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_extend",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionExtendResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_extend",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_extend",r),{error:e.error})},this.onSessionPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{Rt(e)?this.events.emit((0,s.E0)("session_ping",r),{}):Bt(e)&&this.events.emit((0,s.E0)("session_ping",r),{error:e.error})}),500)},this.onSessionDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t,reason:e.params}),await Promise.all([new Promise((e=>{this.client.core.relayer.once(_r,(async()=>{e(await this.deleteSession(t))}))})),this.sendResult({id:r,topic:t,result:!0})]),this.client.events.emit("session_delete",{id:r,topic:t})}catch(t){this.client.logger.error(t)}},this.onSessionRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidRequest(Yn({topic:t},n));const e=(0,s.rj)(JSON.stringify(At("wc_sessionRequest",n,r))),i=this.client.session.get(t),o={id:r,topic:t,params:n,verifyContext:await this.getVerifyContext(e,i.peer.metadata)};await this.setPendingSessionRequest(o),this.addSessionRequestToSessionRequestQueue(o),this.processSessionRequestQueue()}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionRequestResponse=(t,e)=>{const{id:r}=e;Rt(e)?this.events.emit((0,s.E0)("session_request",r),{result:e.result}):Bt(e)&&this.events.emit((0,s.E0)("session_request",r),{error:e.error})},this.onSessionEventRequest=async(t,e)=>{const{id:r,params:n}=e;try{const e=`${t}_session_event_${n.event.name}`,i=s.O6.get(e);if(i&&this.isRequestOutOfSync(i,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(Yn({topic:t},n)),this.client.events.emit("session_event",{id:r,topic:t,params:n}),s.O6.set(e,r)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.addSessionRequestToSessionRequestQueue=t=>{this.sessionRequestQueue.queue.push(t)},this.cleanupAfterResponse=t=>{this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=Hn,this.processSessionRequestQueue()}),(0,X.toMiliseconds)(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===$n)return void this.client.logger.info("session request queue is already active.");const t=this.sessionRequestQueue.queue[0];if(t)try{this.sessionRequestQueue.state=$n,this.client.events.emit("session_request",t)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.onPairingCreated=t=>{if(t.active)return;const e=this.client.proposal.getAll().find((e=>e.pairingTopic===t.topic));e&&this.onSessionProposeRequest(t.topic,At("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))},this.isValidConnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(e)}const{pairingTopic:e,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:o}=t;if((0,s.o8)(e)||await this.isValidPairingTopic(e),!(0,s.PM)(o,!0)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(t)}!(0,s.o8)(r)&&0!==(0,s.L5)(r)&&this.validateNamespaces(r,"requiredNamespaces"),!(0,s.o8)(n)&&0!==(0,s.L5)(n)&&this.validateNamespaces(n,"optionalNamespaces"),(0,s.o8)(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(t,e)=>{const r=(0,s.n)(t,"connect()",e);if(r)throw new Error(r.message)},this.isValidApprove=async t=>{if(!(0,s.EJ)(t))throw new Error((0,s.Z7)("MISSING_OR_INVALID",`approve() params: ${t}`).message);const{id:e,namespaces:r,relayProtocol:n,sessionProperties:i}=t;await this.isValidProposalId(e);const o=this.client.proposal.get(e),a=(0,s.in)(r,"approve()");if(a)throw new Error(a.message);const c=(0,s.rF)(o.requiredNamespaces,r,"approve()");if(c)throw new Error(c.message);if(!(0,s.M_)(n,!0)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw new Error(t)}(0,s.o8)(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(e)}const{id:e,reason:r}=t;if(await this.isValidProposalId(e),!(0,s.$t)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidSessionSettleRequest=t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(e)}const{relay:e,controller:r,namespaces:n,expiry:i}=t;if(!(0,s.Z2)(e)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(t)}const o=(0,s.Dd)(r,"onSessionSettleRequest()");if(o)throw new Error(o.message);const a=(0,s.in)(n,"onSessionSettleRequest()");if(a)throw new Error(a.message);if((0,s.Bw)(i)){const{message:t}=(0,s.Z7)("EXPIRED","onSessionSettleRequest()");throw new Error(t)}},this.isValidUpdate=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(e)}const{topic:e,namespaces:r}=t;await this.isValidSessionTopic(e);const n=this.client.session.get(e),i=(0,s.in)(r,"update()");if(i)throw new Error(i.message);const o=(0,s.rF)(n.requiredNamespaces,r,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionTopic(e)},this.isValidRequest=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(e)}const{topic:e,request:r,chainId:n,expiry:i}=t;await this.isValidSessionTopic(e);const{namespaces:o}=this.client.session.get(e);if(!(0,s.p8)(o,n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() chainId: ${n}`);throw new Error(t)}if(!(0,s.hH)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(t)}if(!(0,s.al)(o,n,r.method)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(t)}if(i&&!(0,s.ON)(i,zn)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${zn.min} and ${zn.max}`);throw new Error(t)}},this.isValidRespond=async t=>{var e;if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(e)}const{topic:r,response:n}=t;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(e=t?.response)&&e.id&&this.cleanupAfterResponse(t),r}if(!(0,s.JT)(n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(n)}`);throw new Error(t)}},this.isValidPing=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.isValidEmit=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(e)}const{topic:e,event:r,chainId:n}=t;await this.isValidSessionTopic(e);const{namespaces:i}=this.client.session.get(e);if(!(0,s.p8)(i,n)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw new Error(t)}if(!(0,s.nf)(r)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}if(!(0,s.sI)(i,n,r.name)){const{message:t}=(0,s.Z7)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidDisconnect=async t=>{if(!(0,s.EJ)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.getVerifyContext=async(t,e)=>{const r={verified:{verifyUrl:e.verifyUrl||$r,validation:"UNKNOWN",origin:e.url||""}};try{const n=await this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(e.url).origin?"VALID":"INVALID")}catch(t){this.client.logger.info(t)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(t,e)=>{Object.values(t).forEach((t=>{if(!(0,s.M_)(t,!1)){const{message:r}=(0,s.Z7)("MISSING_OR_INVALID",`${e} must be in Record format. Received: ${JSON.stringify(t)}`);throw new Error(r)}}))}}async isInitialized(){if(!this.initialized){const{message:t}=(0,s.Z7)("NOT_INITIALIZED",this.name);throw new Error(t)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(br,(async t=>{const{topic:e,message:r}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(r)))return;const n=await this.client.core.crypto.decode(e,r);try{Nt(n)?(this.client.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Tt(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.client.core.history.delete(e,n.id)):this.onRelayEventUnknownPayload({topic:e,payload:n})}catch(t){this.client.logger.error(t)}}))}registerExpirerEvents(){this.client.core.expirer.on(zr,(async t=>{const{topic:e,id:r}=(0,s.iP)(t.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,(0,s.Z7)("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession(e,!0),this.client.events.emit("session_expire",{topic:e})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))}))}registerPairingEvents(){this.client.core.pairing.events.on(Br,(t=>this.onPairingCreated(t)))}isValidPairingTopic(t){if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.core.pairing.pairings.get(t).expiry)){const{message:e}=(0,s.Z7)("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}}async isValidSessionTopic(t){if(!(0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(e)}if(!this.client.session.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.session.get(t).expiry)){await this.deleteSession(t);const{message:e}=(0,s.Z7)("EXPIRED",`session topic: ${t}`);throw new Error(e)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else{if(!this.client.core.pairing.pairings.keys.includes(t)){if((0,s.M_)(t,!1)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(e)}{const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(e)}}this.isValidPairingTopic(t)}}async isValidProposalId(t){if(!(0,s.Q0)(t)){const{message:e}=(0,s.Z7)("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(e)}if(!this.client.proposal.keys.includes(t)){const{message:e}=(0,s.Z7)("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(e)}if((0,s.Bw)(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);const{message:e}=(0,s.Z7)("EXPIRED",`proposal id: ${t}`);throw new Error(e)}}}class ei extends vn{constructor(t,e){super(t,e,"proposal",Bn),this.core=t,this.logger=e}}class ri extends vn{constructor(t,e){super(t,e,"session",Bn),this.core=t,this.logger=e}}class ni extends vn{constructor(t,e){super(t,e,"request",Bn,(t=>t.id)),this.core=t,this.logger=e}}class ii extends Z{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=Ln,this.events=new n.EventEmitter,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(t){throw this.logger.error(t.message),t}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(t){throw this.logger.error(t.message),t}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(t){throw this.logger.error(t.message),t}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(t){throw this.logger.error(t.message),t}},this.update=async t=>{try{return await this.engine.update(t)}catch(t){throw this.logger.error(t.message),t}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(t){throw this.logger.error(t.message),t}},this.request=async t=>{try{return await this.engine.request(t)}catch(t){throw this.logger.error(t.message),t}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(t){throw this.logger.error(t.message),t}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(t){throw this.logger.error(t.message),t}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(t){throw this.logger.error(t.message),t}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(t){throw this.logger.error(t.message),t}},this.find=t=>{try{return this.engine.find(t)}catch(t){throw this.logger.error(t.message),t}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.name=t?.name||Ln,this.metadata=t?.metadata||(0,s.D)();const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,U.pino)((0,U.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.core=t?.core||new Tn(t),this.logger=(0,U.generateChildLogger)(e,this.name),this.session=new ri(this.core,this.logger),this.proposal=new ei(this.core,this.logger),this.pendingRequest=new ni(this.core,this.logger),this.engine=new ti(this)}static async init(t){const e=new ii(t);return await e.initialize(),e}get context(){return(0,U.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}}var si=r(54098),oi=r.n(si);const ai={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class ci{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new n.EventEmitter,this.isAvailable=!1,this.registering=!1,!It(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,e){this.isAvailable||await this.register();try{const e=k(t),r=await oi()(this.url,Object.assign(Object.assign({},ai),{body:e})),n=await r.json();this.onPayload({data:n})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!It(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.isAvailable)return e(new Error("HTTP connection is missing or invalid"));t()}))}))}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=k({id:1,jsonrpc:"2.0",method:"test",params:[]});await oi()(t,Object.assign(Object.assign({},ai),{body:e}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(void 0===t.data)return;const e="string"==typeof t.data?C(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=xt(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return yt(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const li=ci,ui="error",hi="wc@2:universal_provider:",di="default_chain_changed";var fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},pi={exports:{}};!function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",s="__lodash_placeholder__",o=32,a=128,c=1/0,l=9007199254740991,u=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],f="[object Arguments]",p="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",v="[object Map]",A="[object Number]",E="[object Object]",x="[object Promise]",_="[object RegExp]",S="[object Set]",M="[object String]",C="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",j="[object Uint16Array]",D="[object Uint32Array]",F=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,W=RegExp($.source),V=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(X.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,pt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",_t="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="["+bt+"]",Ct="["+St+"]",kt="["+vt+"]",It="\\d+",Pt="["+At+"]",Ot="["+Et+"]",Nt="[^"+bt+St+It+At+Et+xt+"]",Tt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+bt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+xt+"]",jt="\\u200d",Dt="(?:"+Ot+"|"+Nt+")",Ft="(?:"+Ut+"|"+Nt+")",zt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",$t="(?:"+kt+"|"+Tt+")?",qt="["+_t+"]?",Wt=qt+$t+"(?:"+jt+"(?:"+[Rt,Bt,Lt].join("|")+")"+qt+$t+")*",Vt="(?:"+[Pt,Bt,Lt].join("|")+")"+Wt,Gt="(?:"+[Rt+kt+"?",kt,Bt,Lt,Mt].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(kt,"g"),Qt=RegExp(Tt+"(?="+Tt+")|"+Gt+Wt,"g"),Jt=RegExp([Ut+"?"+Ot+"+"+zt+"(?="+[Ct,Ut,"$"].join("|")+")",Ft+"+"+Ht+"(?="+[Ct,Ut+Dt,"$"].join("|")+")",Ut+"?"+Dt+"+"+zt,Ut+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Vt].join("|"),"g"),Yt=RegExp("["+jt+bt+vt+_t+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,re={};re[O]=re[N]=re[T]=re[R]=re[B]=re[L]=re[U]=re[j]=re[D]=!0,re[f]=re[p]=re[I]=re[m]=re[P]=re[g]=re[y]=re[w]=re[v]=re[A]=re[E]=re[_]=re[S]=re[M]=re[k]=!1;var ne={};ne[f]=ne[p]=ne[I]=ne[P]=ne[m]=ne[g]=ne[O]=ne[N]=ne[T]=ne[R]=ne[B]=ne[v]=ne[A]=ne[E]=ne[_]=ne[S]=ne[M]=ne[C]=ne[L]=ne[U]=ne[j]=ne[D]=!0,ne[y]=ne[w]=ne[k]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,oe=parseInt,ae="object"==typeof fi&&fi&&fi.Object===Object&&fi,ce="object"==typeof self&&self&&self.Object===Object&&self,le=ae||ce||Function("return this")(),ue=e&&!e.nodeType&&e,he=ue&&t&&!t.nodeType&&t,de=he&&he.exports===ue,fe=de&&ae.process,pe=function(){try{return he&&he.require&&he.require("util").types||fe&&fe.binding&&fe.binding("util")}catch{}}(),me=pe&&pe.isArrayBuffer,ge=pe&&pe.isDate,ye=pe&&pe.isMap,we=pe&&pe.isRegExp,be=pe&&pe.isSet,ve=pe&&pe.isTypedArray;function Ae(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var i=-1,s=null==t?0:t.length;++i-1}function ke(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Je(t,e){for(var r=t.length;r--&&Ue(e,t[r],0)>-1;);return r}var Ye=He({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Xe=He({"&":"&","<":"<",">":">",'"':""","'":"'"});function tr(t){return"\\"+ie[t]}function er(t){return Yt.test(t)}function rr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function nr(t,e){return function(r){return t(e(r))}}function ir(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),ur=function t(e){var rt=(e=null==e?le:ur.defaults(le.Object(),e,ur.pick(le,te))).Array,bt=e.Date,vt=e.Error,At=e.Function,Et=e.Math,xt=e.Object,_t=e.RegExp,St=e.String,Mt=e.TypeError,Ct=rt.prototype,kt=At.prototype,It=xt.prototype,Pt=e["__core-js_shared__"],Ot=kt.toString,Nt=It.hasOwnProperty,Tt=0,Rt=function(){var t=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Bt=It.toString,Lt=Ot.call(xt),Ut=le._,jt=_t("^"+Ot.call(Nt).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=de?e.Buffer:r,Ft=e.Symbol,zt=e.Uint8Array,Ht=Dt?Dt.allocUnsafe:r,$t=nr(xt.getPrototypeOf,xt),qt=xt.create,Wt=It.propertyIsEnumerable,Vt=Ct.splice,Gt=Ft?Ft.isConcatSpreadable:r,Qt=Ft?Ft.iterator:r,Yt=Ft?Ft.toStringTag:r,ie=function(){try{var t=os(xt,"defineProperty");return t({},"",{}),t}catch{}}(),ae=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=bt&&bt.now!==le.Date.now&&bt.now,ue=e.setTimeout!==le.setTimeout&&e.setTimeout,he=Et.ceil,fe=Et.floor,pe=xt.getOwnPropertySymbols,Re=Dt?Dt.isBuffer:r,He=e.isFinite,hr=Ct.join,dr=nr(xt.keys,xt),fr=Et.max,pr=Et.min,mr=bt.now,gr=e.parseInt,yr=Et.random,wr=Ct.reverse,br=os(e,"DataView"),vr=os(e,"Map"),Ar=os(e,"Promise"),Er=os(e,"Set"),xr=os(e,"WeakMap"),_r=os(xt,"create"),Sr=xr&&new xr,Mr={},Cr=Rs(br),kr=Rs(vr),Ir=Rs(Ar),Pr=Rs(Er),Or=Rs(xr),Nr=Ft?Ft.prototype:r,Tr=Nr?Nr.valueOf:r,Rr=Nr?Nr.toString:r;function Br(t){if(Yo(t)&&!zo(t)&&!(t instanceof Dr)){if(t instanceof jr)return t;if(Nt.call(t,"__wrapped__"))return Bs(t)}return new jr(t)}var Lr=function(){function t(){}return function(e){if(!Jo(e))return{};if(qt)return qt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Ur(){}function jr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Dr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function nn(t,e,n,i,s,o){var a,c=1&e,l=2&e,u=4&e;if(n&&(a=s?n(t,i,s,o):n(t)),a!==r)return a;if(!Jo(t))return t;var h=zo(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return _i(t,a)}else{var d=ls(t),p=d==w||d==b;if(Wo(t))return wi(t,c);if(d==E||d==f||p&&!s){if(a=l||p?{}:hs(t),!c)return l?function(t,e){return Si(t,cs(t),e)}(t,function(t,e){return t&&Si(e,Ia(e),t)}(a,t)):function(t,e){return Si(t,as(t),e)}(t,Xr(a,t))}else{if(!ne[d])return s?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case I:return bi(t);case m:case g:return new n(+t);case P:return function(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case O:case N:case T:case R:case B:case L:case U:case j:case D:return vi(t,r);case v:return new n;case A:case M:return new n(t);case _:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new n;case C:return function(t){return Tr?xt(Tr.call(t)):{}}(t)}}(t,d,c)}}o||(o=new qr);var y=o.get(t);if(y)return y;o.set(t,a),na(t)?t.forEach((function(r){a.add(nn(r,e,n,r,t,o))})):Xo(t)&&t.forEach((function(r,i){a.set(i,nn(r,e,n,i,t,o))}));var x=h?r:(u?l?Xi:Yi:l?Ia:ka)(t);return xe(x||t,(function(r,i){x&&(r=t[i=r]),Qr(a,i,nn(r,e,n,i,t,o))})),a}function sn(t,e,n){var i=n.length;if(null==t)return!i;for(t=xt(t);i--;){var s=n[i],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function on(t,e,i){if("function"!=typeof t)throw new Mt(n);return Ss((function(){t.apply(r,i)}),e)}function an(t,e,r,n){var i=-1,s=Ce,o=!0,a=t.length,c=[],l=e.length;if(!a)return c;r&&(e=Ie(e,Ge(r))),n?(s=ke,o=!1):e.length>=200&&(s=Ze,o=!1,e=new $r(e));t:for(;++i-1},zr.prototype.set=function(t,e){var r=this.__data__,n=Jr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new Fr,map:new(vr||zr),string:new Fr}},Hr.prototype.delete=function(t){var e=is(this,t).delete(t);return this.size-=e?1:0,e},Hr.prototype.get=function(t){return is(this,t).get(t)},Hr.prototype.has=function(t){return is(this,t).has(t)},Hr.prototype.set=function(t,e){var r=is(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},$r.prototype.add=$r.prototype.push=function(t){return this.__data__.set(t,i),this},$r.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new zr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!vr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(t,e),this.size=r.size,this};var cn=ki(gn),ln=ki(yn,!0);function un(t,e){var r=!0;return cn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function hn(t,e,n){for(var i=-1,s=t.length;++i0&&r(a)?e>1?fn(a,e-1,r,n,i):Pe(i,a):n||(i[i.length]=a)}return i}var pn=Ii(),mn=Ii(!0);function gn(t,e){return t&&pn(t,e,ka)}function yn(t,e){return t&&mn(t,e,ka)}function wn(t,e){return Me(e,(function(e){return Ko(t[e])}))}function bn(t,e){for(var n=0,i=(e=pi(e,t)).length;null!=t&&ne}function xn(t,e){return null!=t&&Nt.call(t,e)}function _n(t,e){return null!=t&&e in xt(t)}function Sn(t,e,n){for(var i=n?ke:Ce,s=t[0].length,o=t.length,a=o,c=rt(o),l=1/0,u=[];a--;){var h=t[a];a&&e&&(h=Ie(h,Ge(e))),l=pr(h.length,l),c[a]=!n&&(e||s>=120&&h.length>=120)?new $r(a&&h):r}h=t[0];var d=-1,f=c[0];t:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(i)}function Fn(t,e,r){for(var n=-1,i=e.length,s={};++n-1;)a!==t&&Vt.call(a,c,1),Vt.call(t,c,1);return t}function Hn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==s){var s=i;fs(i)?Vt.call(t,i,1):oi(t,i)}}return t}function $n(t,e){return t+fe(yr()*(e-t+1))}function qn(t,e){var r="";if(!t||e<1||e>l)return r;do{e%2&&(r+=t),(e=fe(e/2))&&(t+=t)}while(e);return r}function Wn(t,e){return Ms(As(t,e,tc),t+"")}function Vn(t){return Vr(Ua(t))}function Gn(t,e){var r=Ua(t);return Is(r,rn(e,0,r.length))}function Kn(t,e,n,i){if(!Jo(t))return t;for(var s=-1,o=(e=pi(e,t)).length,a=o-1,c=t;null!=c&&++si?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=rt(i);++n>>1,o=t[s];null!==o&&!sa(o)&&(r?o<=e:o=200){var l=e?null:qi(t);if(l)return sr(l);o=!1,i=Ze,c=new $r}else c=e?[]:a;t:for(;++n=i?t:Yn(t,e,n)}var yi=ae||function(t){return le.clearTimeout(t)};function wi(t,e){if(e)return t.slice();var r=t.length,n=Ht?Ht(r):new t.constructor(r);return t.copy(n),n}function bi(t){var e=new t.constructor(t.byteLength);return new zt(e).set(new zt(t)),e}function vi(t,e){var r=e?bi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ai(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,o=sa(t),a=e!==r,c=null===e,l=e==e,u=sa(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!u&&t1?n[s-1]:r,a=s>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(s--,o):r,a&&ps(n[0],n[1],a)&&(o=s<3?r:o,s=1),e=xt(e);++i-1?s[o?e[a]:a]:r}}function Ri(t){return Ji((function(e){var i=e.length,s=i,o=jr.prototype.thru;for(t&&e.reverse();s--;){var a=e[s];if("function"!=typeof a)throw new Mt(n);if(o&&!c&&"wrapper"==es(a))var c=new jr([],!0)}for(s=c?s:i;++s1&&b.reverse(),d&&uc))return!1;var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=2&n?new $r:r;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return xe(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(st):[]}(n),r)))}function ks(t){var e=0,n=0;return function(){var i=mr(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Is(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,eo(t,n)}));function co(t){var e=Br(t);return e.__chain__=!0,e}function lo(t,e){return e(t)}var uo=Ji((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return en(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Dr&&fs(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:lo,args:[s],thisArg:r}),new jr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(s)})),ho=Mi((function(t,e,r){Nt.call(t,r)?++t[r]:tn(t,r,1)})),fo=Ti(Ds),po=Ti(Fs);function mo(t,e){return(zo(t)?xe:cn)(t,ns(e,3))}function go(t,e){return(zo(t)?_e:ln)(t,ns(e,3))}var yo=Mi((function(t,e,r){Nt.call(t,r)?t[r].push(e):tn(t,r,[e])})),wo=Wn((function(t,e,r){var n=-1,i="function"==typeof e,s=$o(t)?rt(t.length):[];return cn(t,(function(t){s[++n]=i?Ae(e,t,r):Mn(t,e,r)})),s})),bo=Mi((function(t,e,r){tn(t,r,e)}));function vo(t,e){return(zo(t)?Ie:Rn)(t,ns(e,3))}var Ao=Mi((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Eo=Wn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&ps(t,e[0],e[1])?e=[]:r>2&&ps(e[0],e[1],e[2])&&(e=[e[0]]),Dn(t,fn(e,1),[])})),xo=ce||function(){return le.Date.now()};function _o(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Vi(t,a,r,r,r,r,e)}function So(t,e){var i;if("function"!=typeof e)throw new Mt(n);return t=ha(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Mo=Wn((function(t,e,r){var n=1;if(r.length){var i=ir(r,rs(Mo));n|=o}return Vi(t,n,e,r,i)})),Co=Wn((function(t,e,r){var n=3;if(r.length){var i=ir(r,rs(Co));n|=o}return Vi(e,n,t,r,i)}));function ko(t,e,i){var s,o,a,c,l,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Mt(n);function m(e){var n=s,i=o;return s=o=r,h=e,c=t.apply(i,n)}function g(t){var n=t-u;return u===r||n>=e||n<0||f&&t-h>=a}function y(){var t=xo();if(g(t))return w(t);l=Ss(y,function(t){var r=e-(t-u);return f?pr(r,a-(t-h)):r}(t))}function w(t){return l=r,p&&s?m(t):(s=o=r,c)}function b(){var t=xo(),n=g(t);if(s=arguments,o=this,u=t,n){if(l===r)return function(t){return h=t,l=Ss(y,e),d?m(t):c}(u);if(f)return yi(l),l=Ss(y,e),m(u)}return l===r&&(l=Ss(y,e)),c}return e=fa(e)||0,Jo(i)&&(d=!!i.leading,a=(f="maxWait"in i)?fr(fa(i.maxWait)||0,e):a,p="trailing"in i?!!i.trailing:p),b.cancel=function(){l!==r&&yi(l),h=0,s=u=o=l=r},b.flush=function(){return l===r?c:w(xo())},b}var Io=Wn((function(t,e){return on(t,1,e)})),Po=Wn((function(t,e,r){return on(t,fa(e)||0,r)}));function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Oo.Cache||Hr),r}function No(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oo.Cache=Hr;var To=mi((function(t,e){var r=(e=1==e.length&&zo(e[0])?Ie(e[0],Ge(ns())):Ie(fn(e,1),Ge(ns()))).length;return Wn((function(n){for(var i=-1,s=pr(n.length,r);++i=e})),Fo=Cn(function(){return arguments}())?Cn:function(t){return Yo(t)&&Nt.call(t,"callee")&&!Wt.call(t,"callee")},zo=rt.isArray,Ho=me?Ge(me):function(t){return Yo(t)&&An(t)==I};function $o(t){return null!=t&&Qo(t.length)&&!Ko(t)}function qo(t){return Yo(t)&&$o(t)}var Wo=Re||fc,Vo=ge?Ge(ge):function(t){return Yo(t)&&An(t)==g};function Go(t){if(!Yo(t))return!1;var e=An(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ea(t)}function Ko(t){if(!Jo(t))return!1;var e=An(t);return e==w||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==ha(t)}function Qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function Jo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yo(t){return null!=t&&"object"==typeof t}var Xo=ye?Ge(ye):function(t){return Yo(t)&&ls(t)==v};function ta(t){return"number"==typeof t||Yo(t)&&An(t)==A}function ea(t){if(!Yo(t)||An(t)!=E)return!1;var e=$t(t);if(null===e)return!0;var r=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ot.call(r)==Lt}var ra=we?Ge(we):function(t){return Yo(t)&&An(t)==_},na=be?Ge(be):function(t){return Yo(t)&&ls(t)==S};function ia(t){return"string"==typeof t||!zo(t)&&Yo(t)&&An(t)==M}function sa(t){return"symbol"==typeof t||Yo(t)&&An(t)==C}var oa=ve?Ge(ve):function(t){return Yo(t)&&Qo(t.length)&&!!re[An(t)]},aa=zi(Tn),ca=zi((function(t,e){return t<=e}));function la(t){if(!t)return[];if($o(t))return ia(t)?ar(t):_i(t);if(Qt&&t[Qt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Qt]());var e=ls(t);return(e==v?rr:e==S?sr:Ua)(t)}function ua(t){return t?(t=fa(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var e=ua(t),r=e%1;return e==e?r?e-r:e:0}function da(t){return t?rn(ha(t),0,h):0}function fa(t){if("number"==typeof t)return t;if(sa(t))return u;if(Jo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Jo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=dt.test(t);return r||pt.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?u:+t}function pa(t){return Si(t,Ia(t))}function ma(t){return null==t?"":ii(t)}var ga=Ci((function(t,e){if(ws(e)||$o(e))Si(e,ka(e),t);else for(var r in e)Nt.call(e,r)&&Qr(t,r,e[r])})),ya=Ci((function(t,e){Si(e,Ia(e),t)})),wa=Ci((function(t,e,r,n){Si(e,Ia(e),t,n)})),ba=Ci((function(t,e,r,n){Si(e,ka(e),t,n)})),va=Ji(en),Aa=Wn((function(t,e){t=xt(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&ps(e[0],e[1],s)&&(i=1);++n1),e})),Si(t,Xi(t),r),n&&(r=nn(r,7,Zi));for(var i=e.length;i--;)oi(r,e[i]);return r})),Ta=Ji((function(t,e){return null==t?{}:function(t,e){return Fn(t,e,(function(e,r){return _a(t,r)}))}(t,e)}));function Ra(t,e){if(null==t)return{};var r=Ie(Xi(t),(function(t){return[t]}));return e=ns(e),Fn(t,r,(function(t,r){return e(t,r[0])}))}var Ba=Wi(ka),La=Wi(Ia);function Ua(t){return null==t?[]:Ke(t,ka(t))}var ja=Oi((function(t,e,r){return e=e.toLowerCase(),t+(r?Da(e):e)}));function Da(t){return Ga(ma(t).toLowerCase())}function Fa(t){return(t=ma(t))&&t.replace(gt,Ye).replace(Zt,"")}var za=Oi((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ha=Oi((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),$a=Pi("toLowerCase"),qa=Oi((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Wa=Oi((function(t,e,r){return t+(r?" ":"")+Ga(e)})),Va=Oi((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ga=Pi("toUpperCase");function Ka(t,e,n){return t=ma(t),(e=n?r:e)===r?function(t){return Xt.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(ot)||[]}(t):t.match(e)||[]}var Za=Wn((function(t,e){try{return Ae(t,r,e)}catch(t){return Go(t)?t:new vt(t)}})),Qa=Ji((function(t,e){return xe(e,(function(e){e=Ts(e),tn(t,e,Mo(t[e],t))})),t}));function Ja(t){return function(){return t}}var Ya=Ri(),Xa=Ri(!0);function tc(t){return t}function ec(t){return On("function"==typeof t?t:nn(t,1))}var rc=Wn((function(t,e){return function(r){return Mn(r,t,e)}})),nc=Wn((function(t,e){return function(r){return Mn(t,r,e)}}));function ic(t,e,r){var n=ka(e),i=wn(e,n);null==r&&(!Jo(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=wn(e,ka(e)));var s=!(Jo(r)&&"chain"in r&&!r.chain),o=Ko(t);return xe(i,(function(r){var n=e[r];t[r]=n,o&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__);return(r.__actions__=_i(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Pe([this.value()],arguments))})})),t}function sc(){}var oc=ji(Ie),ac=ji(Se),cc=ji(Te);function lc(t){return ms(t)?ze(Ts(t)):function(t){return function(e){return bn(e,t)}}(t)}var uc=Fi(),hc=Fi(!0);function dc(){return[]}function fc(){return!1}var pc=Ui((function(t,e){return t+e}),0),mc=$i("ceil"),gc=Ui((function(t,e){return t/e}),1),yc=$i("floor"),wc=Ui((function(t,e){return t*e}),1),bc=$i("round"),vc=Ui((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=ha(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=_o,Br.assign=ga,Br.assignIn=ya,Br.assignInWith=wa,Br.assignWith=ba,Br.at=va,Br.before=So,Br.bind=Mo,Br.bindAll=Qa,Br.bindKey=Co,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return zo(t)?t:[t]},Br.chain=co,Br.chunk=function(t,e,n){e=(n?ps(t,e,n):e===r)?1:fr(ha(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var s=0,o=0,a=rt(he(i/e));ss?0:s+n),(i=i===r||i>s?s:ha(i))<0&&(i+=s),i=n>i?0:da(i);n>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ra(e))&&!(e=ii(e))&&er(t)?gi(ar(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:fr(ha(e),0),Wn((function(r){var n=r[e],i=gi(r,0,e);return n&&Pe(i,n),Ae(t,this,i)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?Yn(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?Yn(t,0,(e=n||e===r?1:ha(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Yn(t,(e=i-(e=n||e===r?1:ha(e)))<0?0:e,i):[]},Br.takeRightWhile=function(t,e){return t&&t.length?ci(t,ns(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?ci(t,ns(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var i=!0,s=!0;if("function"!=typeof t)throw new Mt(n);return Jo(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),ko(t,e,{leading:i,maxWait:e,trailing:s})},Br.thru=lo,Br.toArray=la,Br.toPairs=Ba,Br.toPairsIn=La,Br.toPath=function(t){return zo(t)?Ie(t,Ts):sa(t)?[t]:_i(Ns(ma(t)))},Br.toPlainObject=pa,Br.transform=function(t,e,r){var n=zo(t),i=n||Wo(t)||oa(t);if(e=ns(e,4),null==r){var s=t&&t.constructor;r=i?n?new s:[]:Jo(t)&&Ko(s)?Lr($t(t)):{}}return(i?xe:gn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Br.unary=function(t){return _o(t,1)},Br.union=Js,Br.unionBy=Ys,Br.unionWith=Xs,Br.uniq=function(t){return t&&t.length?si(t):[]},Br.uniqBy=function(t,e){return t&&t.length?si(t,ns(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?si(t,r,e):[]},Br.unset=function(t,e){return null==t||oi(t,e)},Br.unzip=to,Br.unzipWith=eo,Br.update=function(t,e,r){return null==t?t:ai(t,e,fi(r))},Br.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ai(t,e,fi(n),i)},Br.values=Ua,Br.valuesIn=function(t){return null==t?[]:Ke(t,Ia(t))},Br.without=ro,Br.words=Ka,Br.wrap=function(t,e){return Ro(fi(e),t)},Br.xor=no,Br.xorBy=io,Br.xorWith=so,Br.zip=oo,Br.zipObject=function(t,e){return hi(t||[],e||[],Qr)},Br.zipObjectDeep=function(t,e){return hi(t||[],e||[],Kn)},Br.zipWith=ao,Br.entries=Ba,Br.entriesIn=La,Br.extend=ya,Br.extendWith=wa,ic(Br,Br),Br.add=pc,Br.attempt=Za,Br.camelCase=ja,Br.capitalize=Da,Br.ceil=mc,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=fa(n))==n?n:0),e!==r&&(e=(e=fa(e))==e?e:0),rn(fa(t),e,n)},Br.clone=function(t){return nn(t,4)},Br.cloneDeep=function(t){return nn(t,5)},Br.cloneDeepWith=function(t,e){return nn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return nn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||sn(t,e,ka(e))},Br.deburr=Fa,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=gc,Br.endsWith=function(t,e,n){t=ma(t),e=ii(e);var i=t.length,s=n=n===r?i:rn(ha(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},Br.eq=Uo,Br.escape=function(t){return(t=ma(t))&&V.test(t)?t.replace(q,Xe):t},Br.escapeRegExp=function(t){return(t=ma(t))&&tt.test(t)?t.replace(X,"\\$&"):t},Br.every=function(t,e,n){var i=zo(t)?Se:un;return n&&ps(t,e,n)&&(e=r),i(t,ns(e,3))},Br.find=fo,Br.findIndex=Ds,Br.findKey=function(t,e){return Be(t,ns(e,3),gn)},Br.findLast=po,Br.findLastIndex=Fs,Br.findLastKey=function(t,e){return Be(t,ns(e,3),yn)},Br.floor=yc,Br.forEach=mo,Br.forEachRight=go,Br.forIn=function(t,e){return null==t?t:pn(t,ns(e,3),Ia)},Br.forInRight=function(t,e){return null==t?t:mn(t,ns(e,3),Ia)},Br.forOwn=function(t,e){return t&&gn(t,ns(e,3))},Br.forOwnRight=function(t,e){return t&&yn(t,ns(e,3))},Br.get=xa,Br.gt=jo,Br.gte=Do,Br.has=function(t,e){return null!=t&&us(t,e,xn)},Br.hasIn=_a,Br.head=Hs,Br.identity=tc,Br.includes=function(t,e,r,n){t=$o(t)?t:Ua(t),r=r&&!n?ha(r):0;var i=t.length;return r<0&&(r=fr(i+r,0)),ia(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ue(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:ha(r);return i<0&&(i=fr(n+i,0)),Ue(t,e,i)},Br.inRange=function(t,e,n){return e=ua(e),n===r?(n=e,e=0):n=ua(n),function(t,e,r){return t>=pr(e,r)&&t=-l&&t<=l},Br.isSet=na,Br.isString=ia,Br.isSymbol=sa,Br.isTypedArray=oa,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return Yo(t)&&ls(t)==k},Br.isWeakSet=function(t){return Yo(t)&&"[object WeakSet]"==An(t)},Br.join=function(t,e){return null==t?"":hr.call(t,e)},Br.kebabCase=za,Br.last=Vs,Br.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=ha(n))<0?fr(i+s,0):pr(s,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,s):Le(t,De,s,!0)},Br.lowerCase=Ha,Br.lowerFirst=$a,Br.lt=aa,Br.lte=ca,Br.max=function(t){return t&&t.length?hn(t,tc,En):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,ns(e,2),En):r},Br.mean=function(t){return Fe(t,tc)},Br.meanBy=function(t,e){return Fe(t,ns(e,2))},Br.min=function(t){return t&&t.length?hn(t,tc,Tn):r},Br.minBy=function(t,e){return t&&t.length?hn(t,ns(e,2),Tn):r},Br.stubArray=dc,Br.stubFalse=fc,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=wc,Br.nth=function(t,e){return t&&t.length?jn(t,ha(e)):r},Br.noConflict=function(){return le._===this&&(le._=Ut),this},Br.noop=sc,Br.now=xo,Br.pad=function(t,e,r){t=ma(t);var n=(e=ha(e))?or(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Di(fe(i),r)+t+Di(he(i),r)},Br.padEnd=function(t,e,r){t=ma(t);var n=(e=ha(e))?or(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var s=yr();return pr(t+s*(e-t+se("1e-"+((s+"").length-1))),e)}return $n(t,e)},Br.reduce=function(t,e,r){var n=zo(t)?Oe:$e,i=arguments.length<3;return n(t,ns(e,4),r,i,cn)},Br.reduceRight=function(t,e,r){var n=zo(t)?Ne:$e,i=arguments.length<3;return n(t,ns(e,4),r,i,ln)},Br.repeat=function(t,e,n){return e=(n?ps(t,e,n):e===r)?1:ha(e),qn(ma(t),e)},Br.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var i=-1,s=(e=pi(e,t)).length;for(s||(s=1,t=r);++il)return[];var r=h,n=pr(t,h);e=ns(e),t-=h;for(var i=We(n,e);++r=o)return t;var c=n-or(i);if(c<1)return i;var l=a?gi(a,0,c).join(""):t.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(t.slice(c).search(s)){var u,h=l;for(s.global||(s=_t(s.source,ma(ut.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var d=u.index;l=l.slice(0,d===r?c:d)}}else if(t.indexOf(ii(s),c)!=c){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+i},Br.unescape=function(t){return(t=ma(t))&&W.test(t)?t.replace($,lr):t},Br.uniqueId=function(t){var e=++Tt;return ma(t)+e},Br.upperCase=Va,Br.upperFirst=Ga,Br.each=mo,Br.eachRight=go,Br.first=Hs,ic(Br,function(){var t={};return gn(Br,(function(e,r){Nt.call(Br.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),Br.VERSION="4.17.21",xe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),xe(["drop","take"],(function(t,e){Dr.prototype[t]=function(n){n=n===r?1:fr(ha(n),0);var i=this.__filtered__&&!e?new Dr(this):this.clone();return i.__filtered__?i.__takeCount__=pr(n,i.__takeCount__):i.__views__.push({size:pr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Dr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),xe(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Dr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ns(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),xe(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Dr.prototype[t]=function(){return this[r](1).value()[0]}})),xe(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Dr.prototype[t]=function(){return this.__filtered__?new Dr(this):this[r](1)}})),Dr.prototype.compact=function(){return this.filter(tc)},Dr.prototype.find=function(t){return this.filter(t).head()},Dr.prototype.findLast=function(t){return this.reverse().find(t)},Dr.prototype.invokeMap=Wn((function(t,e){return"function"==typeof t?new Dr(this):this.map((function(r){return Mn(r,t,e)}))})),Dr.prototype.reject=function(t){return this.filter(No(ns(t)))},Dr.prototype.slice=function(t,e){t=ha(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Dr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ha(e))<0?n.dropRight(-e):n.take(e-t)),n)},Dr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Dr.prototype.toArray=function(){return this.take(h)},gn(Dr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=Br[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(Br.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof Dr,l=a[0],u=c||zo(e),h=function(t){var e=s.apply(Br,Pe([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,m=c&&!f;if(!o&&u){e=m?e:new Dr(this);var g=t.apply(e,a);return g.__actions__.push({func:lo,args:[h],thisArg:r}),new jr(g,d)}return p&&m?t.apply(this,a):(g=this.thru(h),p?i?g.value()[0]:g.value():g)})})),xe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ct[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(zo(i)?i:[],t)}return this[r]((function(r){return e.apply(zo(r)?r:[],t)}))}})),gn(Dr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";Nt.call(Mr,n)||(Mr[n]=[]),Mr[n].push({name:e,func:r})}})),Mr[Bi(r,2).name]=[{name:"wrapper",func:r}],Dr.prototype.clone=function(){var t=new Dr(this.__wrapped__);return t.__actions__=_i(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=_i(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=_i(this.__views__),t},Dr.prototype.reverse=function(){if(this.__filtered__){var t=new Dr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Dr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=zo(t),n=e<0,i=r?t.length:0,s=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof Ur;){var i=Bs(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Dr){var e=t;return this.__actions__.length&&(e=new Dr(this)),(e=e.reverse()).__actions__.push({func:lo,args:[Qs],thisArg:r}),new jr(e,this.__chain__)}return this.thru(Qs)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Qt&&(Br.prototype[Qt]=function(){return this}),Br}();he?((he.exports=ur)._=ur,ue._=ur):le._=ur}).call(fi)}(pi,pi.exports);var mi=Object.defineProperty,gi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ai=(t,e,r)=>e in t?mi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ei=(t,e)=>{for(var r in e||(e={}))bi.call(e,r)&&Ai(t,r,e[r]);if(wi)for(var r of wi(e))vi.call(e,r)&&Ai(t,r,e[r]);return t},xi=(t,e)=>gi(t,yi(e));function _i(t,e,r){var n;const i=(0,s.DQ)(t);return(null==(n=e.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function Si(t){return t.includes(":")?t.split(":")[1]:t}function Mi(t){return t.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))}function Ci(t){var e,r,n,i;const o={};if(!(0,s.L5)(t))return o;for(const[a,c]of Object.entries(t)){const t=(0,s.gp)(a)?[a]:c.chains,l=c.methods||[],u=c.events||[],h=c.rpcMap||{},d=(0,s.M)(a);o[d]=xi(Ei(Ei({},o[d]),c),{chains:(0,s.eG)(t,null==(e=o[d])?void 0:e.chains),methods:(0,s.eG)(l,null==(r=o[d])?void 0:r.methods),events:(0,s.eG)(u,null==(n=o[d])?void 0:n.events),rpcMap:Ei(Ei({},h),null==(i=o[d])?void 0:i.rpcMap)})}return o}function ki(t){return t.includes(":")?t.split(":")[2]:t}function Ii(t){const e={};for(const[r,n]of Object.entries(t)){const t=n.methods||[],i=n.events||[],o=n.accounts||[],a=(0,s.gp)(r)?[r]:n.chains?n.chains:Mi(n.accounts);e[r]={chains:a,methods:t,events:i,accounts:o}}return e}function Pi(t){return"number"==typeof t?t:t.includes("0x")?parseInt(t,16):t.includes(":")?Number(t.split(":")[1]):Number(t)}const Oi={},Ni=t=>Oi[t],Ti=(t,e)=>{Oi[t]=e};class Ri{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=Si(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class Bi{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(di,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const r=e||_i(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new ci(r,Ni("disableProviderPing")))}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=parseInt(Si(e));t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,r;let n=t.request.params?null==(e=t.request.params[0])?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const i=parseInt(n,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`)}return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}}class Li{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=Si(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class Ui{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=Si(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class ji{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{const r=this.getCardanoRPCUrl(e),n=Si(e);t[n]=this.createHttpProvider(n,r)})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||this.getCardanoRPCUrl(t);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class Di{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=Si(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class Fi{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(di,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=Si(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Lt(new li(r,Ni("disableProviderPing")))}}class zi{constructor(t){this.name="near",this.namespace=t.namespace,this.events=Ni("events"),this.client=Ni("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const r=e||_i(`${this.name}:${t}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,r)}this.events.emit(di,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;t[e]=this.createHttpProvider(e,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||_i(t,this.namespace);return typeof r>"u"?void 0:new Lt(new li(r,Ni("disableProviderPing")))}}var Hi=Object.defineProperty,$i=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,Wi=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,Ki=(t,e,r)=>e in t?Hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Zi=(t,e)=>{for(var r in e||(e={}))Vi.call(e,r)&&Ki(t,r,e[r]);if(Wi)for(var r of Wi(e))Gi.call(e,r)&&Ki(t,r,e[r]);return t},Qi=(t,e)=>$i(t,qi(e));class Ji{constructor(t){this.events=new(i()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,U.pino)((0,U.getDefaultLoggerOptions)({level:t?.logger||ui})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new Ji(t);return await e.initialize(),e}async request(t,e){const[r,n]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(r).request({request:Zi({},t),chainId:`${r}:${n}`,topic:this.session.topic})}sendAsync(t,e,r){const n=(new Date).getTime();this.request(t,r).then((t=>e(null,Et(n,t)))).catch((t=>e(t,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(t=this.session)?void 0:t.topic,reason:(0,s.D6)("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:n}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await n().then((t=>{this.session=t,this.namespaces||(this.namespaces=Ii(t.namespaces),this.persist("namespaces",this.namespaces))})).catch((t=>{if(t.message!==jn)throw t;e++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[r,n]=this.validateChain(t);this.getProvider(r).setDefaultChain(n,e)}catch(t){if(!/Please call connect/.test(t.message))throw t}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if((0,s.qt)(e)){for(const r of e)t.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await ii.init({logger:this.providerOpts.logger||ui,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map((t=>(0,s.M)(t))))];Ti("client",this.client),Ti("events",this.events),Ti("disableProviderPing",this.disableProviderPing),t.forEach((t=>{if(!this.session)return;const e=function(t,e){const r=Object.keys(e.namespaces).filter((e=>e.includes(t)));if(!r.length)return[];const n=[];return r.forEach((t=>{const r=e.namespaces[t].accounts;n.push(...r)})),n}(t,this.session),r=Mi(e),n=function(t={},e={}){const r=Ci(t),n=Ci(e);return pi.exports.merge(r,n)}(this.namespaces,this.optionalNamespaces),i=Qi(Zi({},n[t]),{accounts:e,chains:r});switch(t){case"eip155":this.rpcProviders[t]=new Bi({namespace:i});break;case"solana":this.rpcProviders[t]=new Li({namespace:i});break;case"cosmos":this.rpcProviders[t]=new Ui({namespace:i});break;case"polkadot":this.rpcProviders[t]=new Ri({namespace:i});break;case"cip34":this.rpcProviders[t]=new ji({namespace:i});break;case"elrond":this.rpcProviders[t]=new Di({namespace:i});break;case"multiversx":this.rpcProviders[t]=new Fi({namespace:i});break;case"near":this.rpcProviders[t]=new zi({namespace:i})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(t=>{this.events.emit("session_ping",t)})),this.client.on("session_event",(t=>{const{params:e}=t,{event:r}=e;if("accountsChanged"===r.name){const t=r.data;t&&(0,s.qt)(t)&&this.events.emit("accountsChanged",t.map(ki))}else if("chainChanged"===r.name){const t=e.chainId,r=e.event.data,n=(0,s.M)(t),i=Pi(t)!==Pi(r)?`${n}:${Pi(r)}`:t;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit("session_event",t)})),this.client.on("session_update",(({topic:t,params:e})=>{var r;const{namespaces:n}=e,i=null==(r=this.client)?void 0:r.session.get(t);this.session=Qi(Zi({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})})),this.client.on("session_delete",(async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",Qi(Zi({},(0,s.D6)("USER_DISCONNECTED")),{data:t.topic}))})),this.on(di,(t=>{this.onChainChanged(t,!0)}))}getProvider(t){if(!this.rpcProviders[t])throw new Error(`Provider not found: ${t}`);return this.rpcProviders[t]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((t=>{var e;this.getProvider(t).updateNamespace(null==(e=this.session)?void 0:e.namespaces[t])}))}setNamespaces(t){const{namespaces:e,optionalNamespaces:r,sessionProperties:n}=t;e&&Object.keys(e).length&&(this.namespaces=e),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist("namespaces",e),this.persist("optionalNamespaces",r)}validateChain(t){const[e,r]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,r];if(e&&!Object.keys(this.namespaces||{}).map((t=>(0,s.M)(t))).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&r)return[e,r];const n=(0,s.M)(Object.keys(this.namespaces)[0]);return[n,this.rpcProviders[n].getDefaultChain()]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){var r;if(!this.namespaces)return;const[n,i]=this.validateChain(t);e||this.getProvider(n).setDefaultChain(i),(null!=(r=this.namespaces[n])?r:this.namespaces[`${n}:${i}`]).defaultChain=i,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${hi}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${hi}/${t}`)}}const Yi=Ji,Xi=["eth_sendTransaction","personal_sign"],ts=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],es=["chainChanged","accountsChanged"],rs=["chainChanged","accountsChanged","message","disconnect","connect"];var ns=Object.defineProperty,is=Object.defineProperties,ss=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,as=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,ls=(t,e,r)=>e in t?ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,us=(t,e)=>{for(var r in e||(e={}))as.call(e,r)&&ls(t,r,e[r]);if(os)for(var r of os(e))cs.call(e,r)&&ls(t,r,e[r]);return t},hs=(t,e)=>is(t,ss(e));function ds(t){return Number(t[0].split(":")[1])}function fs(t){return`0x${t.toString(16)}`}class ps{constructor(){this.events=new n.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(t,e)=>(this.events.on(t,e),this),this.once=(t,e)=>(this.events.once(t,e),this),this.removeListener=(t,e)=>(this.events.removeListener(t,e),this),this.off=(t,e)=>(this.events.off(t,e),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const e=new ps;return await e.initialize(t),e}async request(t){return await this.signer.request(t,this.formatChainId(this.chainId))}sendAsync(t,e){this.signer.sendAsync(t,e,this.formatChainId(this.chainId))}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:e,optional:r}=function(t){const{chains:e,optionalChains:r,methods:n,optionalMethods:i,events:o,optionalEvents:a,rpcMap:c}=t;if(!(0,s.qt)(e))throw new Error("Invalid chains");const l={chains:e,methods:n||Xi,events:o||es,rpcMap:us({},e.length?{[ds(e)]:c[ds(e)]}:{})},u=o?.filter((t=>!es.includes(t))),h=n?.filter((t=>!Xi.includes(t)));if(!(r||a||i||null!=u&&u.length||null!=h&&h.length))return{required:e.length?l:void 0};const d={chains:[...new Set(u?.length&&h?.length||!r?l.chains.concat(r||[]):r)],methods:[...new Set(l.methods.concat(null!=i&&i.length?i:ts))],events:[...new Set(l.events.concat(null!=a&&a.length?a:rs))],rpcMap:c};return{required:e.length?l:void 0,optional:r.length?d:void 0}}(this.rpc);try{const n=await new Promise((async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((t=>{!t.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(hs(us({namespaces:us({},e&&{[this.namespace]:e})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:t?.pairingTopic})).then((t=>{n(t)})).catch((t=>{i(new Error(t.message))}))}));if(!n)return;const i=(0,s.gu)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit("connect",{chainId:fs(this.chainId)})}catch(t){throw this.signer.logger.error(t),t}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(t=>{const{params:e}=t,{event:r}=e;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",t)})),this.signer.on("chainChanged",(t=>{const e=parseInt(t);this.chainId=e,this.events.emit("chainChanged",fs(this.chainId)),this.persist()})),this.signer.on("session_update",(t=>{this.events.emit("session_update",t)})),this.signer.on("session_delete",(t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",hs(us({},(0,s.D6)("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(t=>{var e,r;this.rpc.showQrModal&&(null==(e=this.modal)||e.closeModal(),null==(r=this.modal)||r.openModal({uri:t})),this.events.emit("display_uri",t)}))}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return"string"==typeof t&&t.startsWith(`${this.namespace}:`)}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const e=t.filter((t=>this.isCompatibleChainId(t))).map((t=>this.parseChainId(t)));e.length&&(this.chainId=e[0],this.events.emit("chainChanged",fs(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const e=this.parseChainId(t);this.chainId=e,this.switchEthereumChain(e)}}parseAccountId(t){const[e,r,n]=t.split(":");return{chainId:`${e}:${r}`,address:n}}setAccounts(t){this.accounts=t.filter((t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId)).map((t=>this.parseAccountId(t).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var e,r;const n=null!=(e=t?.chains)?e:[],i=null!=(r=t?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=n.length?t?.methods||Xi:[],a=n.length?t?.events||es:[],c=t?.optionalMethods||[],l=t?.optionalEvents||[],u=t?.rpcMap||this.buildRpcMap(s,t.projectId),h=t?.qrModalOptions||void 0;return{chains:n?.map((t=>this.formatChainId(t))),optionalChains:i.map((t=>this.formatChainId(t))),methods:o,events:a,optionalMethods:c,optionalEvents:l,rpcMap:u,showQrModal:!(null==t||!t.showQrModal),qrModalOptions:h,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,e){const r={};return t.forEach((t=>{r[t]=this.getRpcUrl(t,e)})),r}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?ds(this.rpc.chains):ds(this.rpc.optionalChains),this.signer=await Yi.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{const{WalletConnectModal:t}=await Promise.resolve().then(r.bind(r,59343));e=t}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(us({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(t){throw this.signer.logger.error(t),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:e,optionalChains:r,rpcMap:n}=t;e&&(0,s.qt)(e)&&(this.rpc.chains=e.map((t=>this.formatChainId(t))),e.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)}))),r&&(0,s.qt)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((t=>this.formatChainId(t))),r.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)})))}getRpcUrl(t,e){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[t])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${t}&projectId=${e||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),e=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:e?.accounts),this.setAccounts(e?.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return"string"==typeof t||t instanceof String?[this.parseAccount(t)]:t.map((t=>this.parseAccount(t)))}}const ms=ps},38200:(t,e,r)=>{"use strict";r.d(e,{q:()=>n});class n{}},30997:(t,e,r)=>{"use strict";r.r(e),r.d(e,{IEvents:()=>n.q});var n=r(38200)},32568:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HEARTBEAT_EVENTS=e.HEARTBEAT_INTERVAL=void 0;const n=r(66736);e.HEARTBEAT_INTERVAL=n.FIVE_SECONDS,e.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},53401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(32568),e)},38969:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeat=void 0;const n=r(70655),i=r(17187),s=r(66736),o=r(1614),a=r(53401);class c extends o.IHeartBeat{constructor(t){super(t),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(null==t?void 0:t.interval)||a.HEARTBEAT_INTERVAL}static init(t){return n.__awaiter(this,void 0,void 0,(function*(){const e=new c(t);return yield e.init(),e}))}init(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}initialize(){return n.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),s.toMiliseconds(this.interval))}))}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}e.HeartBeat=c},90772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(38969),e),n.__exportStar(r(1614),e),n.__exportStar(r(53401),e)},44174:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IHeartBeat=void 0;const n=r(30997);class i extends n.IEvents{constructor(t){super()}}e.IHeartBeat=i},1614:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(44174),e)},65727:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PINO_CUSTOM_CONTEXT_KEY=e.PINO_LOGGER_DEFAULTS=void 0,e.PINO_LOGGER_DEFAULTS={level:"info"},e.PINO_CUSTOM_CONTEXT_KEY="custom_context"},9107:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pino=void 0;const n=r(70655),i=n.__importDefault(r(36559));Object.defineProperty(e,"pino",{enumerable:!0,get:function(){return i.default}}),n.__exportStar(r(65727),e),n.__exportStar(r(58048),e)},58048:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateChildLogger=e.formatChildLoggerContext=e.getLoggerContext=e.setBrowserLoggerContext=e.getBrowserLoggerContext=e.getDefaultLoggerOptions=void 0;const n=r(65727);function i(t,e=n.PINO_CUSTOM_CONTEXT_KEY){return t[e]||""}function s(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){return t[r]=e,t}function o(t,e=n.PINO_CUSTOM_CONTEXT_KEY){let r="";return r=void 0===t.bindings?i(t,e):t.bindings().context||"",r}function a(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=o(t,r);return i.trim()?`${i}/${e}`:e}e.getDefaultLoggerOptions=function(t){return Object.assign(Object.assign({},t),{level:(null==t?void 0:t.level)||n.PINO_LOGGER_DEFAULTS.level})},e.getBrowserLoggerContext=i,e.setBrowserLoggerContext=s,e.getLoggerContext=o,e.formatChildLoggerContext=a,e.generateChildLogger=function(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=a(t,e,r);return s(t.child({context:i}),i,r)}},61882:()=>{},43014:()=>{},36900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(46869),e),n.__exportStar(r(88033),e)},46869:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_THOUSAND=e.ONE_HUNDRED=void 0,e.ONE_HUNDRED=100,e.ONE_THOUSAND=1e3},88033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=5*e.ONE_MINUTE,e.TEN_MINUTES=10*e.ONE_MINUTE,e.THIRTY_MINUTES=30*e.ONE_MINUTE,e.SIXTY_MINUTES=60*e.ONE_MINUTE,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=3*e.ONE_HOUR,e.SIX_HOURS=6*e.ONE_HOUR,e.TWELVE_HOURS=12*e.ONE_HOUR,e.TWENTY_FOUR_HOURS=24*e.ONE_HOUR,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=3*e.ONE_DAY,e.FIVE_DAYS=5*e.ONE_DAY,e.SEVEN_DAYS=7*e.ONE_DAY,e.THIRTY_DAYS=30*e.ONE_DAY,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=2*e.ONE_WEEK,e.THREE_WEEKS=3*e.ONE_WEEK,e.FOUR_WEEKS=4*e.ONE_WEEK,e.ONE_YEAR=365*e.ONE_DAY},66736:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(44273),e),n.__exportStar(r(47001),e),n.__exportStar(r(52939),e),n.__exportStar(r(36900),e)},52939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(70655).__exportStar(r(88766),e)},88766:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWatch=void 0,e.IWatch=class{}},83207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromMiliseconds=e.toMiliseconds=void 0;const n=r(36900);e.toMiliseconds=function(t){return t*n.ONE_THOUSAND},e.fromMiliseconds=function(t){return Math.floor(t/n.ONE_THOUSAND)}},83873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0,e.delay=function(t){return new Promise((e=>{setTimeout((()=>{e(!0)}),t)}))}},44273:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(70655);n.__exportStar(r(83873),e),n.__exportStar(r(83207),e)},47001:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const e=this.get(t);if(void 0!==e.elapsed)throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-e.started;this.timestamps.set(t,{started:e.started,elapsed:r})}get(t){const e=this.timestamps.get(t);if(void 0===e)throw new Error(`No timestamp found for label: ${t}`);return e}elapsed(t){const e=this.get(t);return e.elapsed||Date.now()-e.started}}e.Watch=r,e.default=r},49795:(t,e,r)=>{"use strict";r.d(e,{AW:()=>I,O6:()=>Pe,rV:()=>N,gn:()=>yt,H1:()=>ht,hF:()=>dt,WG:()=>j,pe:()=>F,m$:()=>B,vB:()=>z,HI:()=>D,E0:()=>bt,Gq:()=>mt,$0:()=>at,Z4:()=>pt,Bv:()=>Tt,Au:()=>T,jd:()=>R,gu:()=>M,D:()=>st,X_:()=>it,bW:()=>Et,Z7:()=>Qt,cO:()=>_t,_H:()=>xt,fc:()=>qt,D6:()=>Jt,Hh:()=>At,Ym:()=>L,rj:()=>U,jU:()=>rt,gp:()=>Wt,rF:()=>_e,Bw:()=>wt,UG:()=>tt,Gg:()=>Ce,xW:()=>oe,b$:()=>et,Ih:()=>ne,h1:()=>ae,Q8:()=>q,o8:()=>te,qt:()=>Yt,Dd:()=>ce,$t:()=>ye,nf:()=>ve,Q0:()=>me,in:()=>de,p8:()=>Ae,sI:()=>xe,al:()=>Ee,L5:()=>Xt,EJ:()=>ge,Z2:()=>fe,PM:()=>pe,hH:()=>we,ON:()=>Me,n:()=>he,JT:()=>be,M_:()=>ee,jv:()=>se,KC:()=>lt,eG:()=>vt,fK:()=>Gt,IP:()=>ut,DQ:()=>S,iP:()=>gt,M:()=>Vt,he:()=>Ot,uw:()=>ke,Ll:()=>H,EN:()=>$});var n=r(15501),i=r(512),s=r(31416),o=r(73294),a=r(57664),c=r(37466),l=r(34155),u=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,s=e.length;i{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.accounts)})),r}function C(t,e){return t.includes(":")?[t]:e.chains||[]}const k="base10",I="base16",P="base64pad",O="utf8",N=1;function T(){const t=a.Au();return{privateKey:(0,c.BB)(t.secretKey,I),publicKey:(0,c.BB)(t.publicKey,I)}}function R(){const t=(0,s.randomBytes)(32);return(0,c.BB)(t,I)}function B(t,e){const r=a.gi((0,c.mL)(t,I),(0,c.mL)(e,I),!0),n=new i.t(o.mE,r).expand(32);return(0,c.BB)(n,I)}function L(t){const e=(0,o.vp)((0,c.mL)(t,I));return(0,c.BB)(e,I)}function U(t){const e=(0,o.vp)((0,c.mL)(t,O));return(0,c.BB)(e,I)}function j(t){return Number((0,c.BB)(t,k))}function D(t){const e=function(t){return(0,c.mL)(`${t}`,k)}(typeof t.type<"u"?t.type:0);if(j(e)===N&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof t.senderPublicKey<"u"?(0,c.mL)(t.senderPublicKey,I):void 0,i=typeof t.iv<"u"?(0,c.mL)(t.iv,I):(0,s.randomBytes)(12);return function(t){if(j(t.type)===N){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,c.BB)((0,c.zo)([t.type,t.senderPublicKey,t.iv,t.sealed]),P)}return(0,c.BB)((0,c.zo)([t.type,t.iv,t.sealed]),P)}({type:e,sealed:new n.OK((0,c.mL)(t.symKey,I)).seal(i,(0,c.mL)(t.message,O)),iv:i,senderPublicKey:r})}function F(t){const e=new n.OK((0,c.mL)(t.symKey,I)),{sealed:r,iv:i}=z(t.encoded),s=e.open(i,r);if(null===s)throw new Error("Failed to decrypt");return(0,c.BB)(s,O)}function z(t){const e=(0,c.mL)(t,P),r=e.slice(0,1);if(j(r)===N){const t=33,n=t+12,i=e.slice(1,t),s=e.slice(t,n);return{type:r,sealed:e.slice(n),iv:s,senderPublicKey:i}}const n=e.slice(1,13);return{type:r,sealed:e.slice(13),iv:n}}function H(t,e){const r=z(t);return $({type:j(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?(0,c.BB)(r.senderPublicKey,I):void 0,receiverPublicKey:e?.receiverPublicKey})}function $(t){const e=t?.type||0;if(e===N){if(typeof t?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof t?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function q(t){return t.type===N&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}var W=Object.defineProperty,V=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Z=(t,e,r)=>e in t?W(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Q=(t,e)=>{for(var r in e||(e={}))G.call(e,r)&&Z(t,r,e[r]);if(V)for(var r of V(e))K.call(e,r)&&Z(t,r,e[r]);return t};const J="react-native",Y="browser",X="js";function tt(){return typeof _<"u"&&typeof _.versions<"u"&&typeof _.versions.node<"u"}function et(){return!(0,v.getDocument)()&&!!(0,v.getNavigator)()&&"ReactNative"===navigator.product}function rt(){return!tt()&&!!(0,v.getNavigator)()&&!!(0,v.getDocument)()}function nt(){return et()?J:tt()?"node":rt()?Y:"unknown"}function it(){var t;try{return et()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}function st(){return(0,A.D)()||{name:"",description:"",url:"",icons:[""]}}function ot(t,e,n){const i=function(){if(nt()===J&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:t,Version:e}=r.g.Platform;return[t,e].join("-")}const t="undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new m:"undefined"!=typeof navigator?function(t){var e=function(t){return""!==t&&y.reduce((function(e,r){var n=r[0],i=r[1];if(e)return e;var s=i.exec(t);return!!s&&[n,s]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new p;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=u(u([],i,!0),function(t){for(var e=[],r=0;re.includes(t))).length===t.length}function lt(t){return Object.fromEntries(t.entries())}function ut(t){return new Map(Object.entries(t))}function ht(t=b.FIVE_MINUTES,e){const r=(0,b.toMiliseconds)(t||b.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}function dt(t,e,r){return new Promise((async(n,i)=>{const s=setTimeout((()=>i(new Error(r))),e);try{n(await t)}catch(t){i(t)}clearTimeout(s)}))}function ft(t,e){if("string"==typeof e&&e.startsWith(`${t}:`))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function pt(t){return ft("topic",t)}function mt(t){return ft("id",t)}function gt(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}function yt(t,e){return(0,b.fromMiliseconds)((e||Date.now())+(0,b.toMiliseconds)(t))}function wt(t){return Date.now()>=(0,b.toMiliseconds)(t)}function bt(t,e){return`${t}${e?`:${e}`:""}`}function vt(t=[],e=[]){return[...new Set([...t,...e])]}async function At({id:t,topic:e,wcDeepLink:n}){try{if(!n)return;let i=("string"==typeof n?JSON.parse(n):n)?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const s=`${i}/wc?requestId=${t}&sessionTopic=${e}`,o=nt();o===Y?s.startsWith("https://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===J&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}}async function Et(t,e){try{return await t.getItem(e)||(rt()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}function xt(t){return t?.relay||{protocol:"irn"}}function _t(t){const e=x[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var St=Object.defineProperty,Mt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,It=(t,e,r)=>e in t?St(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;function Pt(t,e="-"){const r={},n="relay"+e;return Object.keys(t).forEach((e=>{if(e.startsWith(n)){const i=e.replace(n,""),s=t[e];r[i]=s}})),r}function Ot(t){const e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),r=-1!==t.indexOf("?")?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split("@"),s=typeof r<"u"?t.substring(r):"",o=E.parse(s);return{protocol:n,topic:Nt(i[0]),version:parseInt(i[1],10),symKey:o.symKey,relay:Pt(o)}}function Nt(t){return t.startsWith("//")?t.substring(2):t}function Tt(t){return`${t.protocol}:${t.topic}@${t.version}?`+E.stringify(((t,e)=>{for(var r in e||(e={}))Ct.call(e,r)&&It(t,r,e[r]);if(Mt)for(var r of Mt(e))kt.call(e,r)&&It(t,r,e[r]);return t})({symKey:t.symKey},function(t,e="-"){const r={};return Object.keys(t).forEach((n=>{const i="relay"+e+n;t[n]&&(r[i]=t[n])})),r}(t.relay)))}var Rt=Object.defineProperty,Bt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ft=(t,e,r)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,zt=(t,e)=>{for(var r in e||(e={}))jt.call(e,r)&&Ft(t,r,e[r]);if(Ut)for(var r of Ut(e))Dt.call(e,r)&&Ft(t,r,e[r]);return t},Ht=(t,e)=>Bt(t,Lt(e));function $t(t){const e=[];return t.forEach((t=>{const[r,n]=t.split(":");e.push(`${r}:${n}`)})),e}function qt(t,e){const r=de(t,e);if(r)throw new Error(r.message);const n={};for(const[e,r]of Object.entries(t))n[e]={methods:r.methods,events:r.events,chains:r.accounts.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))};return n}function Wt(t){return t.includes(":")}function Vt(t){return Wt(t)?t.split(":")[0]:t}function Gt(t){var e,r,n;const i={};if(!Xt(t))return i;for(const[s,o]of Object.entries(t)){const t=Wt(s)?[s]:o.chains,a=o.methods||[],c=o.events||[],l=Vt(s);i[l]=Ht(zt({},i[l]),{chains:vt(t,null==(e=i[l])?void 0:e.chains),methods:vt(a,null==(r=i[l])?void 0:r.methods),events:vt(c,null==(n=i[l])?void 0:n.events)})}return i}const Kt={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Zt={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Qt(t,e){const{message:r,code:n}=Zt[t];return{message:e?`${r} ${e}`:r,code:n}}function Jt(t,e){const{message:r,code:n}=Kt[t];return{message:e?`${r} ${e}`:r,code:n}}function Yt(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}function Xt(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function te(t){return typeof t>"u"}function ee(t,e){return!(!e||!te(t))||"string"==typeof t&&!!t.trim().length}function re(t,e){return!(!e||!te(t))||"number"==typeof t&&!isNaN(t)}function ne(t,e){const{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r);let s=!0;return!!ct(i,n)&&(n.forEach((e=>{const{accounts:n,methods:i,events:o}=t.namespaces[e],a=$t(n),c=r[e];ct(C(e,c),a)&&ct(c.methods,i)&&ct(c.events,o)||(s=!1)})),s)}function ie(t){return!(!ee(t,!1)||!t.includes(":"))&&2===t.split(":").length}function se(t){if(ee(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}function oe(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}function ae(t){return t?.topic}function ce(t,e){let r=null;return ee(t?.publicKey,!1)||(r=Qt("MISSING_OR_INVALID",`${e} controller public key should be a string`)),r}function le(t){let e=!0;return Yt(t)?t.length&&(e=t.every((t=>ee(t,!1)))):e=!1,e}function ue(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return le(t?.methods)?le(t?.events)||(r=Jt("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):r=Jt("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),r}(t,`${e}, namespace`);n&&(r=n)})),r}function he(t,e,r){let n=null;if(t&&Xt(t)){const i=ue(t,e);i&&(n=i);const s=function(t,e,r){let n=null;return Object.entries(t).forEach((([t,i])=>{if(n)return;const s=function(t,e,r){let n=null;return Yt(e)&&e.length?e.forEach((t=>{n||ie(t)||(n=Jt("UNSUPPORTED_CHAINS",`${r}, chain ${t} should be a string and conform to "namespace:chainId" format`))})):ie(t)||(n=Jt("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}(t,C(t,i),`${e} ${r}`);s&&(n=s)})),n}(t,e,r);s&&(n=s)}else n=Qt("MISSING_OR_INVALID",`${e}, ${r} should be an object with data`);return n}function de(t,e){let r=null;if(t&&Xt(t)){const n=ue(t,e);n&&(r=n);const i=function(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return Yt(t)?t.forEach((t=>{r||function(t){if(ee(t,!1)&&t.includes(":")){const e=t.split(":");if(3===e.length){const t=e[0]+":"+e[1];return!!e[2]&&ie(t)}}return!1}(t)||(r=Jt("UNSUPPORTED_ACCOUNTS",`${e}, account ${t} should be a string and conform to "namespace:chainId:address" format`))})):r=Jt("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}(t?.accounts,`${e} namespace`);n&&(r=n)})),r}(t,e);i&&(r=i)}else r=Qt("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return r}function fe(t){return ee(t.protocol,!0)}function pe(t,e){let r=!1;return e&&!t?r=!0:t&&Yt(t)&&t.length&&t.forEach((t=>{r=fe(t)})),r}function me(t){return"number"==typeof t}function ge(t){return typeof t<"u"&&null!==typeof t}function ye(t){return!!(t&&"object"==typeof t&&t.code&&re(t.code,!1)&&t.message&&ee(t.message,!1))}function we(t){return!(te(t)||!ee(t.method,!1))}function be(t){return!(te(t)||te(t.result)&&te(t.error)||!re(t.id,!1)||!ee(t.jsonrpc,!1))}function ve(t){return!(te(t)||!ee(t.name,!1))}function Ae(t,e){return!(!ie(e)||!function(t){const e=[];return Object.values(t).forEach((t=>{e.push(...$t(t.accounts))})),e}(t).includes(e))}function Ee(t,e,r){return!!ee(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{$t(t.accounts).includes(e)&&r.push(...t.methods)})),r}(t,e).includes(r)}function xe(t,e,r){return!!ee(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{$t(t.accounts).includes(e)&&r.push(...t.events)})),r}(t,e).includes(r)}function _e(t,e,r){let n=null;const i=function(t){const e={};return Object.keys(t).forEach((r=>{var n;r.includes(":")?e[r]=t[r]:null==(n=t[r].chains)||n.forEach((n=>{e[n]={methods:t[r].methods,events:t[r].events}}))})),e}(t),s=function(t){const e={};return Object.keys(t).forEach((r=>{r.includes(":")?e[r]=t[r]:$t(t[r].accounts)?.forEach((n=>{e[n]={accounts:t[r].accounts.filter((t=>t.includes(`${n}:`))),methods:t[r].methods,events:t[r].events}}))})),e}(e),o=Object.keys(i),a=Object.keys(s),c=Se(Object.keys(t)),l=Se(Object.keys(e)),u=c.filter((t=>!l.includes(t)));return u.length&&(n=Qt("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(e).toString()}`)),ct(o,a)||(n=Qt("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(e).forEach((t=>{if(!t.includes(":")||n)return;const i=$t(e[t].accounts);i.includes(t)||(n=Qt("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n Required: ${t}\n Approved: ${i.toString()}`))})),o.forEach((t=>{n||(ct(i[t].methods,s[t].methods)?ct(i[t].events,s[t].events)||(n=Qt("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${t}`)):n=Qt("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${t}`))})),n}function Se(t){return[...new Set(t.map((t=>t.includes(":")?t.split(":")[0]:t)))]}function Me(t,e){return re(t,!1)&&t<=e.max&&t>=e.min}function Ce(){const t=nt();return new Promise((e=>{switch(t){case Y:e(rt()&&navigator?.onLine);break;case J:e(async function(){return!(et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo)||(await(null==r.g?void 0:r.g.NetInfo.fetch()))?.isConnected}());break;default:e(!0)}}))}function ke(t){switch(nt()){case Y:!function(t){!et()&&rt()&&(window.addEventListener("online",(()=>t(!0))),window.addEventListener("offline",(()=>t(!1))))}(t);break;case J:!function(t){et()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((e=>t(e?.isConnected)))}(t)}}const Ie={};class Pe{static get(t){return Ie[t]}static set(t,e){Ie[t]=e}static delete(t){delete Ie[t]}}},66151:(t,e,r)=>{"use strict";const n=r(70610),i=r(44020),s=r(80500),o=r(92806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function f(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function p(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=p(r[t],e);else n[t]=p(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=f,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(f(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},62873:(t,e)=>{"use strict";function r(t){let e;return"undefined"!=typeof window&&void 0!==window[t]&&(e=window[t]),e}function n(t){const e=r(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLocalStorage=e.getLocalStorageOrThrow=e.getCrypto=e.getCryptoOrThrow=e.getLocation=e.getLocationOrThrow=e.getNavigator=e.getNavigatorOrThrow=e.getDocument=e.getDocumentOrThrow=e.getFromWindowOrThrow=e.getFromWindow=void 0,e.getFromWindow=r,e.getFromWindowOrThrow=n,e.getDocumentOrThrow=function(){return n("document")},e.getDocument=function(){return r("document")},e.getNavigatorOrThrow=function(){return n("navigator")},e.getNavigator=function(){return r("navigator")},e.getLocationOrThrow=function(){return n("location")},e.getLocation=function(){return r("location")},e.getCryptoOrThrow=function(){return n("crypto")},e.getCrypto=function(){return r("crypto")},e.getLocalStorageOrThrow=function(){return n("localStorage")},e.getLocalStorage=function(){return r("localStorage")}},65755:(t,e,r)=>{"use strict";e.D=void 0;const n=r(62873);e.D=function(){let t,e;try{t=n.getDocumentOrThrow(),e=n.getLocationOrThrow()}catch(t){return null}function r(...e){const r=t.getElementsByTagName("meta");for(let t=0;tn.getAttribute(t))).filter((t=>!!t&&e.includes(t)));if(i.length&&i){const t=n.getAttribute("content");if(t)return t}}return""}const i=function(){let e=r("name","og:site_name","og:title","twitter:title");return e||(e=t.title),e}();return{description:r("description","og:description","twitter:description","keywords"),url:e.origin,icons:function(){const r=t.getElementsByTagName("link"),n=[];for(let t=0;t-1){const t=i.getAttribute("href");if(t)if(-1===t.toLowerCase().indexOf("https:")&&-1===t.toLowerCase().indexOf("http:")&&0!==t.indexOf("//")){let r=e.protocol+"//"+e.host;if(0===t.indexOf("/"))r+=t;else{const n=e.pathname.split("/");n.pop(),r+=n.join("/")+"/"+t}n.push(r)}else if(0===t.indexOf("//")){const r=e.protocol+t;n.push(r)}else n.push(t)}}return n}(),name:i}}},42295:(t,e,r)=>{const{sha3:n,BN:i}=r(18269),s=r(93338),o={savedABIs:[],methodIDs:{},keepNonDecodedLogs:!1};function a(t){return"tuple"===t.type?"("+t.components.map(a).join(",")+")":t.type}t.exports={getABIs:function(){return o.savedABIs},addABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map(a).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]=t:o.methodIDs[e.slice(2,10)]=t}})),o.savedABIs=o.savedABIs.concat(t)},getMethodIDs:function(){return o.methodIDs},decodeMethod:function(t){const e=t.slice(2,10),r=o.methodIDs[e];if(r){let e=s.decodeParameters(r.inputs,t.slice(10)),n={name:r.name,params:[]};for(let t=0;tnew i(t).toString())):new i(s).toString()),l&&(o=Array.isArray(s)?s.map((t=>t.toLowerCase())):s.toLowerCase()),n.params.push({name:r.inputs[t].name,value:o,type:r.inputs[t].type})}return n}},decodeLogs:function(t){return t.filter((t=>t.topics.length>0)).map((t=>{const e=t.topics[0].slice(2),r=o.methodIDs[e];if(r){const e=t.data;let n=[],o=0,a=1,c=[];r.inputs.map((function(t){t.indexed||c.push(t.type)}));const l=s.decodeParameters(c,e.slice(2));return r.inputs.map((function(e){let r={name:e.name,type:e.type};if(e.indexed?(r.value=t.topics[a],a++):(r.value=l[o],o++),"address"===e.type&&(r.value=r.value.toLowerCase(),r.value.length>42)){let t=r.value.length-42,e=r.value.split("");e.splice(2,t),r.value=e.join("")}"uint256"!==e.type&&"uint8"!==e.type&&"int"!==e.type||("string"==typeof r.value&&r.value.startsWith("0x")?r.value=new i(r.value.slice(2),16).toString(10):r.value=new i(r.value).toString(10)),n.push(r)})),{name:r.name,events:n,address:t.address}}})).filter((t=>o.keepNonDecodedLogs||t))},removeABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map((function(t){return t.type})).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]&&delete o.methodIDs[e.slice(2)]:o.methodIDs[e.slice(2,10)]&&delete o.methodIDs[e.slice(2,10)]}}))},keepNonDecodedLogs:function(){o.keepNonDecodedLogs=!0},discardNonDecodedLogs:function(){o.keepNonDecodedLogs=!1}}},85078:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(33649),i=r(2403),s=function(){function t(){this._semaphore=new i.default(1)}return t.prototype.acquire=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();e.default=s},2403:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(33649),i=function(){function t(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return t.prototype.acquire=function(){var t=this,e=this.isLocked(),r=new Promise((function(e){return t._queue.push(e)}));return e||this._dispatch(),r},t.prototype.runExclusive=function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r,i;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.acquire()];case 1:e=n.sent(),r=e[0],i=e[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,n.sent()];case 4:return i(),[7];case 5:return[2]}}))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}();e.default=i},48125:(t,e,r)=>{"use strict";e.WU=void 0;var n=r(85078);Object.defineProperty(e,"WU",{enumerable:!0,get:function(){return n.default}}),r(2403),r(41960)},41960:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=void 0;var n=r(33649);e.withTimeout=function(t,e,r){var i=this;return void 0===r&&(r=new Error("timeout")),{acquire:function(){return new Promise((function(s,o){return n.__awaiter(i,void 0,void 0,(function(){var i,a;return n.__generator(this,(function(n){switch(n.label){case 0:return i=!1,setTimeout((function(){i=!0,o(r)}),e),[4,t.acquire()];case 1:return a=n.sent(),i?(Array.isArray(a)?a[1]:a)():s(a),[2]}}))}))}))},runExclusive:function(t){return n.__awaiter(this,void 0,void 0,(function(){var e,r;return n.__generator(this,(function(n){switch(n.label){case 0:e=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return r=n.sent(),Array.isArray(r)?(e=r[1],[4,t(r[0])]):[3,4];case 3:return[2,n.sent()];case 4:return e=r,[4,t()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}},79742:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=a(t),o=s[0],c=s[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,c)),u=0,h=c>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,l=n-i;al?l:a+o));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)r[o]=s[o],n[s.charCodeAt(o)]=o;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,s,o=[],a=e;a>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},44431:function(t,e,r){var n;!function(i){"use strict";var s,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,f=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e=0|t;return t>0||t===e?e:e-1}function w(t){for(var e,r,n=1,i=t.length,s=t[0]+"";nl^r?1:-1;for(a=(c=i.length)<(l=s.length)?c:l,o=0;os[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function v(t,e,r,n){if(tr||t!==c(t))throw Error(l+(n||"Argument")+("number"==typeof t?tr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function A(t){var e=t.c.length-1;return y(t.e/d)==e&&t.c[e]%2!=0}function E(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function x(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else eU?y.c=y.e=null:t.e=10;h/=10,l++);return void(l>U?y.c=y.e=null:(y.e=l,y.c=[t]))}g=String(t)}else{if(!o.test(g=String(t)))return i(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(l<0&&(l=h),l+=+g.slice(h+1),g=g.substring(0,h)):l<0&&(l=g.length)}else{if(v(e,2,H.length,"Base"),10==e&&$)return K(y=new q(t),N+y.e+1,T);if(g=String(t),p="number"==typeof t){if(0*t!=0)return i(y,g,p,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=H.slice(0,e),l=h=0,m=g.length;hl){l=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,l=0;continue}return i(y,String(t),p,e)}p=!1,(l=(g=n(g,e,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,p&&q.DEBUG&&m>15&&(t>f||t!==c(t)))throw Error(u+y.s*t);if((l=l-h-1)>U)y.c=y.e=null;else if(l=B)?E(c,o):x(c,o,"0");else if(s=(t=K(new q(t),e,r)).e,a=(c=w(t.c)).length,1==n||2==n&&(e<=s||s<=R)){for(;aa){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=s-a)>0)for(s+1==a&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function V(t,e){for(var r,n,i=1,s=new q(t[0]);i=10;i/=10,n++);return(r=n+r*d-1)>U?t.c=t.e=null:r=10;l/=10,i++);if((s=e-i)<0)s+=d,o=e,u=g[f=0],m=c(u/y[i-o-1]%10);else if((f=a((s+1)/d))>=g.length){if(!n)break t;for(;g.length<=f;g.push(0));u=m=0,i=1,o=(s%=d)-d+1}else{for(u=l=g[f],i=1;l>=10;l/=10,i++);m=(o=(s%=d)-d+i)<0?0:c(u/y[i-o-1]%10)}if(n=n||e<0||null!=g[f+1]||(o<0?u:u%y[i-o-1]),n=r<4?(m||n)&&(0==r||r==(t.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(s>0?o>0?u/y[i-o]:0:g[f-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,n?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==s?(g.length=f,l=1,f--):(g.length=f+1,l=y[d-s],g[f]=o>0?c(u/y[i-o]%y[o])*l:0),n)for(;;){if(0==f){for(s=1,o=g[0];o>=10;o/=10,s++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);s!=l&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[f]+=l,g[f]!=h)break;g[f--]=0,l=1}for(s=g.length;0===g[--s];g.pop());}t.e>U?t.c=t.e=null:t.e=B?E(e,r):x(e,r,"0"),t.s<0?"-"+e:e)}return q.clone=t,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(l+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(v(r=t[e],0,g,e),N=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(v(r=t[e],0,8,e),T=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(v(r[0],-g,0,e),v(r[1],0,g,e),R=r[0],B=r[1]):(v(r,-g,g,e),R=-(B=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)v(r[0],-g,-1,e),v(r[1],1,g,e),L=r[0],U=r[1];else{if(v(r,-g,g,e),!r)throw Error(l+e+" cannot be zero: "+r);L=-(U=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(l+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!r,Error(l+"crypto unavailable");j=r}else j=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(v(r=t[e],0,9,e),D=r),t.hasOwnProperty(e="POW_PRECISION")&&(v(r=t[e],0,g,e),F=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(l+e+" not an object: "+r);z=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+e+" invalid: "+r);$="0123456789"==r.slice(0,10),H=r}}return{DECIMAL_PLACES:N,ROUNDING_MODE:T,EXPONENTIAL_AT:[R,B],RANGE:[L,U],CRYPTO:j,MODULO_MODE:D,POW_PRECISION:F,FORMAT:z,ALPHABET:H}},q.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!q.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===s||-1===s)&&i>=-g&&i<=g&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%d)<1&&(e+=d),String(n[0]).length==e){for(e=0;e=h||r!==c(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+t)},q.maximum=q.max=function(){return V(arguments,-1)},q.minimum=q.min=function(){return V(arguments,1)},q.random=(s=9007199254740992,_=Math.random()*s&2097151?function(){return c(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,s,o=0,u=[],h=new q(O);if(null==t?t=N:v(t,0,g),i=a(t/d),j)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));o>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[o]=r[0],e[o+1]=r[1]):(u.push(s%1e14),o+=2);o=i/2}else{if(!crypto.randomBytes)throw j=!1,Error(l+"crypto unavailable");for(e=crypto.randomBytes(i*=7);o=9e15?crypto.randomBytes(7).copy(e,o):(u.push(s%1e14),o+=7);o=i/7}if(!j)for(;o=10;s/=10,o++);or-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,s,o,a){var c,l,u,h,d,f,p,m,g=n.indexOf("."),y=N,b=T;for(g>=0&&(h=F,F=0,n=n.replace(".",""),f=(m=new q(i)).pow(n.length-g),F=h,m.c=e(x(w(f.c),f.e,"0"),10,s,t),m.e=m.c.length),u=h=(p=e(n,i,s,a?(c=H,t):(c=t,H))).length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=r(f,m,y,b,s)).c,d=f.r,u=f.e),g=p[l=u+y+1],h=s/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?x(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,d)for(--s;++p[--l]>s;)p[l]=0,l||(++u,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,n="";g<=h;n+=c.charAt(p[g++]));n=x(n,u,c.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,s,o,a=0,c=t.length,l=e%m,u=e/m|0;for(t=t.slice();c--;)a=((i=l*(s=t[c]%m)+(n=u*s+(o=t[c]/m|0)*l)%m*m+a)/r|0)+(n/m|0)+u*o,t[c]=i%r;return a&&(t=[a].concat(t)),t}function e(t,e,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;ie[i]?1:-1;break}return s}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]1;t.splice(0,1));}return function(n,i,s,o,a){var l,u,f,p,m,g,w,b,v,A,E,x,_,S,M,C,k,I=n.s==i.s?1:-1,P=n.c,O=i.c;if(!(P&&P[0]&&O&&O[0]))return new q(n.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*I:I/0:NaN);for(v=(b=new q(I)).c=[],I=s+(u=n.e-i.e)+1,a||(a=h,u=y(n.e/d)-y(i.e/d),I=I/d|0),f=0;O[f]==(P[f]||0);f++);if(O[f]>(P[f]||0)&&u--,I<0)v.push(1),p=!0;else{for(S=P.length,C=O.length,f=0,I+=2,(m=c(a/(O[0]+1)))>1&&(O=t(O,m,a),P=t(P,m,a),C=O.length,S=P.length),_=C,E=(A=P.slice(0,C)).length;E=a/2&&M++;do{if(m=0,(l=e(O,A,C,E))<0){if(x=A[0],C!=E&&(x=x*a+(A[1]||0)),(m=c(x/M))>1)for(m>=a&&(m=a-1),w=(g=t(O,m,a)).length,E=A.length;1==e(g,A,w,E);)m--,r(g,C=10;I/=10,f++);K(b,s+(b.e=f+u*d-1)+1,o,p)}else b.e=u,b.r=+p;return b}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,C=/^\.([^.]+)$/,k=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,s=r?e:e.replace(I,"");if(k.test(s))t.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(S,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,s=s.replace(M,"$1").replace(C,"0.$1")),e!=s))return new q(s,i);if(q.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},P.absoluteValue=P.abs=function(){var t=new q(this);return t.s<0&&(t.s=1),t},P.comparedTo=function(t,e){return b(this,new q(t,e))},P.decimalPlaces=P.dp=function(t,e){var r,n,i,s=this;if(null!=t)return v(t,0,g),null==e?e=T:v(e,0,8),K(new q(s),t+s.e+1,e);if(!(r=s.c))return null;if(n=((i=r.length-1)-y(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(t,e){return r(this,new q(t,e),N,T)},P.dividedToIntegerBy=P.idiv=function(t,e){return r(this,new q(t,e),0,1)},P.exponentiatedBy=P.pow=function(t,e){var r,n,i,s,o,u,h,f,p=this;if((t=new q(t)).c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+Z(t));if(null!=e&&(e=new q(e)),o=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return f=new q(Math.pow(+Z(p),o?t.s*(2-A(t)):+Z(t))),e?f.mod(e):f;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new q(NaN);(n=!u&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||o&&p.c[1]>=24e7:p.c[0]<8e13||o&&p.c[0]<=9999975e7)))return s=p.s<0&&A(t)?-0:0,p.e>-1&&(s=1/s),new q(u?1/s:s);F&&(s=a(F/d+2))}for(o?(r=new q(.5),u&&(t.s=1),h=A(t)):h=(i=Math.abs(+Z(t)))%2,f=new q(O);;){if(h){if(!(f=f.times(p)).c)break;s?f.c.length>s&&(f.c.length=s):n&&(f=f.mod(e))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(K(t=t.times(r),t.e+1,1),t.e>14)h=A(t);else{if(0==(i=+Z(t)))break;h=i%2}p=p.times(p),s?p.c&&p.c.length>s&&(p.c.length=s):n&&(p=p.mod(e))}return n?f:(u&&(f=O.div(f)),e?f.mod(e):s?K(f,F,T,void 0):f)},P.integerValue=function(t){var e=new q(this);return null==t?t=T:v(t,0,8),K(e,e.e+1,t)},P.isEqualTo=P.eq=function(t,e){return 0===b(this,new q(t,e))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(t,e){return b(this,new q(t,e))>0},P.isGreaterThanOrEqualTo=P.gte=function(t,e){return 1===(e=b(this,new q(t,e)))||0===e},P.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},P.isLessThan=P.lt=function(t,e){return b(this,new q(t,e))<0},P.isLessThanOrEqualTo=P.lte=function(t,e){return-1===(e=b(this,new q(t,e)))||0===e},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(t,e){var r,n,i,s,o=this,a=o.s;if(e=(t=new q(t,e)).s,!a||!e)return new q(NaN);if(a!=e)return t.s=-e,o.plus(t);var c=o.e/d,l=t.e/d,u=o.c,f=t.c;if(!c||!l){if(!u||!f)return u?(t.s=-e,t):new q(f?o:NaN);if(!u[0]||!f[0])return f[0]?(t.s=-e,t):new q(u[0]?o:3==T?-0:0)}if(c=y(c),l=y(l),u=u.slice(),a=c-l){for((s=a<0)?(a=-a,i=u):(l=c,i=f),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(n=(s=(a=u.length)<(e=f.length))?a:e,a=e=0;e0)for(;e--;u[r++]=0);for(e=h-1;n>a;){if(u[--n]=0;){for(r=0,p=x[i]%v,g=x[i]/v|0,s=i+(o=c);s>i;)r=((l=p*(l=E[--o]%v)+(a=g*l+(u=E[o]/v|0)*p)%v*v+w[s]+r)/b|0)+(a/v|0)+g*u,w[s--]=l%b;w[s]=r}return r?++n:w.splice(0,1),G(t,w,n)},P.negated=function(){var t=new q(this);return t.s=-t.s||null,t},P.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new q(t,e)).s,!i||!e)return new q(NaN);if(i!=e)return t.s=-e,n.minus(t);var s=n.e/d,o=t.e/d,a=n.c,c=t.c;if(!s||!o){if(!a||!c)return new q(i/0);if(!a[0]||!c[0])return c[0]?t:new q(a[0]?n:0*i)}if(s=y(s),o=y(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=c):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(e=c.length)<0&&(r=c,c=a,a=r,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++o),G(t,a,o)},P.precision=P.sd=function(t,e){var r,n,i,s=this;if(null!=t&&t!==!!t)return v(t,1,g),null==e?e=T:v(e,0,8),K(new q(s),t,e);if(!(r=s.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&s.e+1>n&&(n=s.e+1),n},P.shiftedBy=function(t){return v(t,-9007199254740991,f),this.times("1e"+t)},P.squareRoot=P.sqrt=function(){var t,e,n,i,s,o=this,a=o.c,c=o.s,l=o.e,u=N+4,h=new q("0.5");if(1!==c||!a||!a[0])return new q(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(c=Math.sqrt(+Z(o)))||c==1/0?(((e=w(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(+e),l=y((l+1)/2)-(l<0||l%2),n=new q(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new q(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(s=n,n=h.times(s.plus(r(o,s,u,1))),w(s.c).slice(0,c)===(e=w(n.c)).slice(0,c)){if(n.e0&&m>0){for(s=m%a||a,h=p.substr(0,s);s0&&(h+=u+p.slice(s)),f&&(h="-"+h)}n=d?h+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):h}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(t){var e,n,i,s,o,a,c,u,h,f,m,g,y=this,b=y.c;if(null!=t&&(!(c=new q(t)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!b)return new q(y);for(e=new q(O),h=n=new q(O),i=u=new q(O),g=w(b),o=e.e=g.length-y.e-1,e.c[0]=p[(a=o%d)<0?d+a:a],t=!t||c.comparedTo(e)>0?o>0?e:h:c,a=U,U=1/0,c=new q(g),u.c[0]=0;f=r(c,e,0,1),1!=(s=n.plus(f.times(i))).comparedTo(t);)n=i,i=s,h=u.plus(f.times(s=h)),u=s,e=c.minus(f.times(s=e)),c=s;return s=r(t.minus(n),i,0,1),u=u.plus(s.times(h)),n=n.plus(s.times(i)),u.s=h.s=y.s,m=r(h,i,o*=2,T).minus(y).abs().comparedTo(r(u,n,o,T).minus(y).abs())<1?[h,i]:[u,n],U=a,m},P.toNumber=function(){return+Z(this)},P.toPrecision=function(t,e){return null!=t&&v(t,1,g),W(this,t,e,2)},P.toString=function(t){var e,r=this,i=r.s,s=r.e;return null===s?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=s<=R||s>=B?E(w(r.c),s):x(w(r.c),s,"0"):10===t&&$?e=x(w((r=K(new q(r),N+s+1,T)).c),r.e,"0"):(v(t,2,H.length,"Base"),e=n(x(w(r.c),s,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},P.valueOf=P.toJSON=function(){return Z(this)},P._isBigNumber=!0,null!=e&&q.set(e),q}(),s.default=s.BigNumber=s,void 0===(n=function(){return s}.call(e,r,e,t))||(t.exports=n)}()},47056:(t,e)=>{"use strict";var r;function n(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(r||(r={})),e.bind=n,e.default=n},13550:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],f=[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],p=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],u=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new M(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(E,A),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new x;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return v[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},48764:(t,e,r)=>{"use strict";const n=r(79742),i=r(80645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|m(t,e);let n=a(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Z(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Z(t,ArrayBuffer)||t&&Z(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Z(t,SharedArrayBuffer)||t&&Z(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||Q(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),a(t<0?0:0|p(t))}function d(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(i)return n?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return M(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Q(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){let s,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){let n=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){let r=!0;for(let n=0;ni&&(n=i):n=i;const s=e.length;let o;for(n>s/2&&(n=s/2),o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function M(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+o<=r){let r,n,a,c;switch(o){case 1:e<128&&(s=e);break;case 2:r=t[i+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(s=c));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.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;er&&(t+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(Z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.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===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0);const a=Math.min(s,o),l=this.slice(n,i),u=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function k(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;in)&&(r=n);let i="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i){H(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,r}function B(t,e,r,n,i){H(e,n,i,t,r,7);let s=Number(e&BigInt(4294967295));t[r+7]=s,s>>=8,t[r+6]=s,s>>=8,t[r+5]=s,s>>=8,t[r+4]=s;let o=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=o,o>>=8,t[r+2]=o,o>>=8,t[r+1]=o,o>>=8,t[r]=o,r+8}function L(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,s){return e=+e,r>>>=0,s||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,s){return e=+e,r>>>=0,s||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.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||N(t,e,this.length);let n=this[t],i=1,s=0;for(;++s>>=0,e>>>=0,r||N(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Y((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||N(t,e,this.length);let n=this[t],i=1,s=0;for(;++s=i&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);let n=e,i=1,s=this[t+--n];for(;n>0&&(i*=256);)s+=this[t+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Y((function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||q(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeBigUInt64LE=Y((function(t,e=0){return R(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Y((function(t,e=0){return B(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,t,e,r,n-1,-n)}let i=0,s=1,o=0;for(this[e]=255&t;++i>0)-o&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,t,e,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/s>>0)-o&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeBigInt64LE=Y((function(t,e=0){return R(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Y((function(t,e=0){return B(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function H(t,e,r,n,i,s){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||q(e,t.length-(r+1))}(n,i,s)}function $(t,e){if("number"!=typeof t)throw new D.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const n=t.length;let i=null;const s=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function G(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Y(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}},21924:(t,e,r)=>{"use strict";var n=r(40210),i=r(55559),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},55559:(t,e,r)=>{"use strict";var n=r(58612),i=r(40210),s=r(67771),o=i("%TypeError%"),a=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||n.call(c,a),u=i("%Object.defineProperty%",!0),h=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){if("function"!=typeof t)throw new o("a function is required");var e=l(n,c,arguments);return s(e,1+h(0,t.length-(arguments.length-1)),!0)};var d=function(){return l(n,a,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},86010:(t,e,r)=>{"use strict";function n(t){var e,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;ei,default:()=>s});const s=i},54098:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in t,o="ArrayBuffer"in t;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=f(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=p(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function A(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];A.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(t,r){return new Promise((function(n,s){var o=new b(t,r);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new A(i,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=d,t.Request=b,t.Response=A),e.Headers=d,e.Request=b,e.Response=A,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},27484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",s="hour",o="day",a="week",c="month",l="quarter",u="year",h="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},y={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()1)return t(o[0])}else{var a=e.name;b[a]=e,i=a}return!n&&i&&(w=i),i||!n&&w},x=function(t,e){if(A(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new S(r)},_=y;_.l=E,_.i=A,_.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function m(t){this.$L=E(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var g=m.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return _},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},g.isAfter=function(t,e){return x(t)0,g<=m.r||!m.r){g<=1&&p>0&&(m=d[p-1]);var y=h[m.l];a&&(g=a(""+g)),l="string"==typeof y?y.replace("%d",g):y(g,n,m.l,u);break}}if(n)return l;var w=u?h.future:h.past;return"function"==typeof w?w(l):w.replace("%s",l)},n.to=function(t,e){return s(t,e,this,!0)},n.from=function(t,e){return s(t,e,this)};var o=function(t){return t.$u?r.utc():r()};n.toNow=function(t){return this.to(o(this),t)},n.fromNow=function(t){return this.from(o(this),t)}}}()},70660:function(t){t.exports=function(){"use strict";return function(t,e,r){r.updateLocale=function(t,e){var n=r.Ls[t];if(n)return(e?Object.keys(e):[]).forEach((function(t){n[t]=e[t]})),n}}}()},11227:(t,e,r)=>{var n=r(34155);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))})),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==n&&"env"in n&&(t=n.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=r(82447)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},82447:(t,e,r)=>{t.exports=function(t){function e(t){let r,i,s,o=null;function a(...t){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=e.formatters[i];if("function"==typeof s){const e=t[o];r=s.call(n,e),t.splice(o,1),o--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==e.namespaces&&(i=e.namespaces,s=e.enabled(t)),s),set:t=>{o=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(r=0;r{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e{"use strict";var e="%[a-f0-9]{2}",r=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],i(r),i(n))}function s(t){try{return decodeURIComponent(t)}catch(s){for(var e=t.match(r)||[],n=1;n{"use strict";var n=r(31044)(),i=r(40210),s=n&&i("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(t){s=!1}var o=i("%SyntaxError%"),a=i("%TypeError%"),c=r(27296);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!c&&c(t,e);if(s)s(t,e,{configurable:null===l&&h?h.configurable:!l,enumerable:null===n&&h?h.enumerable:!n,value:r,writable:null===i&&h?h.writable:!i});else{if(!u&&(n||i||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},65987:t=>{"use strict";var e={single_source_shortest_paths:function(t,r,n){var i={},s={};s[r]=0;var o,a,c,l,u,h,d,f=e.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(c in a=(o=f.pop()).value,l=o.cost,u=t[a]||{})u.hasOwnProperty(c)&&(h=l+u[c],d=s[c],(void 0===s[c]||d>h)&&(s[c]=h,f.push(c,h),i[c]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,r,n){var i=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,i={};for(r in t=t||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},62378:t=>{"use strict";t.exports=function(t){for(var e=[],r=t.length,n=0;n=55296&&i<=56319&&r>n+1){var s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(i=1024*(i-55296)+s-56320+65536,n+=1)}i<128?e.push(i):i<2048?(e.push(i>>6|192),e.push(63&i|128)):i<55296||i>=57344&&i<65536?(e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)):i>=65536&&i<=1114111?(e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},60190:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBlockTracker=void 0;const i=n(r(19394)),s=(t,e)=>t+e,o=["sync","latest"];class a extends i.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||2e4,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise((t=>this.once("latest",t)))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){o.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map((t=>this.listenerCount(t))).reduce(s)}_newPotentialLatest(t){const e=this._currentBlock;e&&c(t)<=c(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){const e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}function c(t){return Number.parseInt(t,16)}e.BaseBlockTracker=a},30790:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PollingBlockTracker=void 0;const i=n(r(23420)),s=n(r(12352)),o=r(60190),a=r(59579),c=(0,a.createModuleLogger)(a.projectLogger,"polling-block-tracker"),l=(0,i.default)();class u extends o.BaseBlockTracker{constructor(t={}){var e;if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(e=t.blockResetDuration)&&void 0!==e?e:t.pollingInterval}),this._provider=t.provider,this._pollingInterval=t.pollingInterval||2e4,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===t.keepEventLoopActive||t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();const t=h(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await t}catch(e){const r=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${null!==(t=e.stack)&&void 0!==t?t:e}`);try{this.emit("error",r)}catch(t){console.error(r)}const n=h(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:l(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),c("Making request",t);const e=await(0,s.default)((e=>this._provider.sendAsync(t,e)))();if(c("Got response",e),e.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\n${e.error.message}`);return e.result}}function h(t,e){return new Promise((r=>{const n=setTimeout(r,t);n.unref&&e&&n.unref()}))}e.PollingBlockTracker=u},66767:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscribeBlockTracker=void 0;const i=n(r(23420)),s=r(60190),o=(0,i.default)();class a extends s.BaseBlockTracker{constructor(t={}){if(!t.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{const t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...e){return new Promise(((r,n)=>{this._provider.sendAsync({id:o(),method:t,params:e,jsonrpc:"2.0"},((t,e)=>{t?n(t):r(e.result)}))}))}_handleSubData(t,e){var r;"eth_subscription"===e.method&&(null===(r=e.params)||void 0===r?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(e.params.result.number)}}e.SubscribeBlockTracker=a},6842:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(30790),e),i(r(66767),e),i(r(77627),e)},59579:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;const n=r(42451);Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),e.projectLogger=(0,n.createProjectLogger)("eth-block-tracker")},77627:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},23256:(t,e,r)=>{const n=r(76622);t.exports=class extends n{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}},76622:(t,e,r)=>{const n=r(19394).default;t.exports=class extends n{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach((t=>this.emit("update",t)))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}}},72785:(t,e,r)=>{const n=r(76622),i=r(40207),{incrementHexInt:s}=r(98112);t.exports=class extends n{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){const r=e,n=s(t),o=(await i({provider:this.provider,fromBlock:n,toBlock:r})).map((t=>t.hash));this.addResults(o)}}},40207:t=>{function e(t){return null==t?t:Number.parseInt(t,16)}function r(t){return null==t?t:"0x"+t.toString(16)}function n(t,e){return new Promise(((r,n)=>{t.sendAsync(e,((t,e)=>{t?n(t):e.error?n(e.error):e.result?r(e.result):n(new Error("Result was empty"))}))}))}t.exports=async function({provider:t,fromBlock:i,toBlock:s}){i||(i=s);const o=e(i),a=e(s),c=Array(a-o+1).fill().map(((t,e)=>o+e)).map(r);return await Promise.all(c.map((e=>async function(t,e,r){for(let e=0;e<3;e++)try{return await n(t,{id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:r})}catch(t){console.error(`provider.sendAsync failed: ${t.stack||t.message||t}`)}throw new Error(`Block not found for params: ${JSON.stringify(r)}`)}(t,0,[e,!1]))))}},98112:t=>{function e(t){return t.sort(((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e)))}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){if(null==t)return t;let e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function i(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...t){return e(t)[0]},maxBlockRef:function(...t){const r=e(t);return r[r.length-1]},sortBlockRefs:e,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){return null==t?t:n(r(t)+1)},intToHex:n,unsafeRandomBytes:function(t){let e="0x";for(let r=0;r{const n=r(48125).WU,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(88625),o=r(81663),a=r(72785),c=r(25792),{intToHex:l,hexToInt:u}=r(98112);function h(t){return d((async(...e)=>{const r=await t(...e);return l(r.id)}))}function d(t){return i((async(e,r)=>{const n=await t.apply(null,e.params);r.result=n}))}function f(t,e){const r=[];for(let e in t)r.push(t[e]);return r}t.exports=function({blockTracker:t,provider:e}){let r=0,i={};const p=new n,m=function({mutex:t}){return e=>async(r,n,i,s)=>{(await t.acquire())(),e(r,n,i,s)}}({mutex:p}),g=s({eth_newFilter:m(h(w)),eth_newBlockFilter:m(h(b)),eth_newPendingTransactionFilter:m(h(v)),eth_uninstallFilter:m(d(x)),eth_getFilterChanges:m(d(A)),eth_getFilterLogs:m(d(E))}),y=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;const r=await p.acquire();try{await Promise.all(f(i).map((async r=>{try{await r.update({oldBlock:t,newBlock:e})}catch(t){console.error(t)}})))}catch(t){console.error(t)}r()};return g.newLogFilter=w,g.newBlockFilter=b,g.newPendingTransactionFilter=v,g.uninstallFilter=x,g.getFilterChanges=A,g.getFilterLogs=E,g.destroy=()=>{!async function(){const t=f(i).length;i={},S({prevFilterCount:t,newFilterCount:0})}()},g;async function w(t){const r=new o({provider:e,params:t});return await _(r),r}async function b(){const t=new a({provider:e});return await _(t),t}async function v(){const t=new c({provider:e});return await _(t),t}async function A(t){const e=u(t),r=i[e];if(!r)throw new Error(`No filter for index "${e}"`);return r.getChangesAndClear()}async function E(t){const e=u(t),r=i[e];if(!r)throw new Error(`No filter for index "${e}"`);let n=[];return"log"===r.type&&(n=r.getAllResults()),n}async function x(t){const e=u(t),r=i[e],n=Boolean(r);return n&&await async function(t){const e=f(i).length;delete i[t],S({prevFilterCount:e,newFilterCount:f(i).length})}(e),n}async function _(e){const n=f(i).length,s=await t.getLatestBlock();return await e.initialize({currentBlock:s}),r++,i[r]=e,e.id=r,e.idHex=l(r),S({prevFilterCount:n,newFilterCount:f(i).length}),r}function S({prevFilterCount:e,newFilterCount:r}){0===e&&r>0?t.on("sync",y):e>0&&0===r&&t.removeListener("sync",y)}}},81663:(t,e,r)=>{const n=r(75682),i=r(6417),s=r(23256),{bnToHex:o,hexToInt:a,incrementHexInt:c,minBlockRef:l,blockRefIsNumber:u}=r(98112);t.exports=class extends s{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new n(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((t=>t.toLowerCase())))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;const r=l(this.params.toBlock,t),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){const r=e;let n;n=t?c(t):e;const i=Object.assign({},this.params,{fromBlock:n,toBlock:r}),s=(await this._fetchLogs(i)).filter((t=>this.matchLog(t)));this.addResults(s)}async _fetchLogs(t){return await i((e=>this.ethQuery.getLogs(t,e)))()}matchLog(t){if(a(this.params.fromBlock)>=a(t.blockNumber))return!1;if(u(this.params.toBlock)&&a(this.params.toBlock)<=a(t.blockNumber))return!1;const e=t.address&&t.address.toLowerCase();return!(this.params.address&&e&&!this.params.address.includes(e))&&this.params.topics.every(((e,r)=>{let n=t.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map((t=>t.toLowerCase())),i.includes(n))}))}}},6417:t=>{"use strict";const e=(t,e,r,n)=>function(...i){return new(0,e.promiseModule)(((s,o)=>{e.multiArgs?i.push(((...t)=>{e.errorFirst?t[0]?o(t):(t.shift(),s(t)):s(t)})):e.errorFirst?i.push(((t,e)=>{t?o(t):s(e)})):i.push(s);const a=this===r?n:this;Reflect.apply(t,a,i)}))},r=new WeakMap;t.exports=(t,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};const i=typeof t;if(null===t||"object"!==i&&"function"!==i)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":i}\``);const s=new WeakMap,o=new Proxy(t,{apply(t,r,i){const a=s.get(t);if(a)return Reflect.apply(a,r,i);const c=n.excludeMain?t:e(t,n,o,t);return s.set(t,c),Reflect.apply(c,r,i)},get(t,i){const a=t[i];if(!((t,e)=>{let i=r.get(t);if(i||(i={},r.set(t,i)),e in i)return i[e];const s=t=>"string"==typeof t||"symbol"==typeof e?e===t:t.test(e),o=Reflect.getOwnPropertyDescriptor(t,e),a=void 0===o||o.writable||o.configurable,c=(n.include?n.include.some(s):!n.exclude.some(s))&&a;return i[e]=c,c})(t,i)||a===Function.prototype[i])return a;const c=s.get(a);if(c)return c;if("function"==typeof a){const r=e(a,n,o,t);return s.set(a,r),r}return a}});return o}},68961:(t,e,r)=>{const n=r(19394).default,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(88625),o=r(98406),{unsafeRandomBytes:a,incrementHexInt:c}=r(98112),l=r(40207);function u(t){return null==t?null:{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}t.exports=function({blockTracker:t,provider:e}){const r={},h=o({blockTracker:t,provider:e});let d=!1;const f=new n,p=s({eth_subscribe:i((async function(n,i){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const s=n.params[0],o=a(16);let f;switch(s){case"newHeads":f=function({subId:r}){const n={type:s,destroy:async()=>{t.removeListener("sync",n.update)},update:async({oldBlock:t,newBlock:n})=>{const i=n,s=c(t);(await l({provider:e,fromBlock:s,toBlock:i})).map(u).filter((t=>null!==t)).forEach((t=>{m(r,t)}))}};return t.on("sync",n.update),n}({subId:o});break;case"logs":const r=n.params[1];f=function({subId:t,filter:e}){return e.on("update",(e=>m(t,e))),{type:s,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:o,filter:await h.newLogFilter(r)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${s}"`)}return r[o]=f,void(i.result=o)})),eth_unsubscribe:i((async function(t,e){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const n=t.params[0],i=r[n];i?(delete r[n],await i.destroy(),e.result=!0):e.result=!1}))});return p.destroy=function(){f.removeAllListeners();for(const t in r)r[t].destroy(),delete r[t];d=!0},{events:f,middleware:p};function m(t,e){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},25792:(t,e,r)=>{const n=r(76622),i=r(40207),{incrementHexInt:s}=r(98112);t.exports=class extends n{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const e=t,r=s(t),n=await i({provider:this.provider,fromBlock:r,toBlock:e}),o=[];for(const t of n)o.push(...t.transactions);this.addResults(o)}}},75682:(t,e,r)=>{const n=r(47529),i=r(23420)();function s(t){this.currentProvider=t}function o(t){return function(){var e=[].slice.call(arguments),r=e.pop();this.sendAsync({method:t,params:e},r)}}function a(t,e){return function(){var r=[].slice.call(arguments),n=r.pop();r.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;const n=r(4445);class i extends Error{constructor(t,e,r){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==r&&(this.data=r)}serialize(){const t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return n.default(this.serialize(),s,2)}}function s(t,e){if("[Circular]"!==e)return e}e.EthereumRpcError=i,e.EthereumProviderError=class extends i{constructor(t,e,r){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,r)}}},92662:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},e.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},68797:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const n=r(12294),i=r(68753),s=r(92662);function o(t,e){const[r,s]=c(e);return new n.EthereumRpcError(t,r||i.getMessageFromCode(t),s)}function a(t,e){const[r,s]=c(e);return new n.EthereumProviderError(t,r||i.getMessageFromCode(t),s)}function c(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:r}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,r]}}return[]}e.ethErrors={rpc:{parse:t=>o(s.errorCodes.rpc.parse,t),invalidRequest:t=>o(s.errorCodes.rpc.invalidRequest,t),invalidParams:t=>o(s.errorCodes.rpc.invalidParams,t),methodNotFound:t=>o(s.errorCodes.rpc.methodNotFound,t),internal:t=>o(s.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(e,t)},invalidInput:t=>o(s.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>o(s.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>o(s.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>o(s.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>o(s.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>o(s.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>a(s.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>a(s.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>a(s.errorCodes.provider.unsupportedMethod,t),disconnected:t=>a(s.errorCodes.provider.disconnected,t),chainDisconnected:t=>a(s.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:r,data:i}=t;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(e,r,i)}}}},79826:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const n=r(12294);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});const i=r(68753);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const s=r(68797);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});const o=r(92662);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},68753:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=r(92662),i=r(12294),s=n.errorCodes.rpc.internal,o={code:s,message:a(s)};function a(t,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){const r=t.toString();if(h(n.errorValues,r))return n.errorValues[r].message;if(l(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function c(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!n.errorValues[e]||!!l(t)}function l(t){return t>=-32099&&t<=-32e3}function u(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(t,{fallbackError:e=o,shouldIncludeStack:r=!1}={}){var n,s;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const l={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&c(t.code)){const e=t;l.code=e.code,e.message&&"string"==typeof e.message?(l.message=e.message,h(e,"data")&&(l.data=e.data)):(l.message=a(l.code),l.data={originalError:u(t)})}else{l.code=e.code;const r=null===(n=t)||void 0===n?void 0:n.message;l.message=r&&"string"==typeof r?r:e.message,l.data={originalError:u(t)}}const d=null===(s=t)||void 0===s?void 0:s.stack;return r&&t&&d&&"string"==typeof d&&(l.stack=d),l}},46877:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(339);function i(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{512}$/i.test(t)||!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))}function s(t,e){"object"==typeof e&&e.constructor===Uint8Array&&(e=n.bytesToHex(e));const r=n.keccak256(e).replace("0x","");for(let e=0;e<12;e+=4){const n=(parseInt(r.substr(e,2),16)<<8)+parseInt(r.substr(e+2,2),16)&2047,i=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function a(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{64}$/i.test(t)||!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))}function c(t){return!("string"!=typeof t||!t.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=i,e.isInBloom=s,e.isUserEthereumAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid ethereum address given: "${e}"`);return s(t,n.padLeft(e,64))},e.isContractAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid contract address given: "${e}"`);return s(t,e)},e.isTopicInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!a(e))throw new Error("Invalid topic");return s(t,e)},e.isTopic=a,e.isAddress=c},339:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(91094);function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);const r=[];for(let e=0;e=256||parseInt(String(r))!=r)return!1}return!0}(t))return s(new Uint8Array(t));throw new Error("invalid arrayify value")}function s(t){return void 0!==t.slice||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}e.keccak256=function(t){return"0x"+n.keccak_256(i(t))},e.padLeft=(t,e)=>{const r=/^0x/i.test(t)||"number"==typeof t,n=e-(t=t.toString().replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=function(t){const e=[];for(let r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return`0x${e.join("").replace(/^0+/,"")}`},e.toByteArray=i},82192:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak512=e.keccak384=e.keccak256=e.keccak224=void 0;const n=r(84589),i=r(58040);e.keccak224=(0,i.wrapHash)(n.keccak_224),e.keccak256=(()=>{const t=(0,i.wrapHash)(n.keccak_256);return t.create=n.keccak_256.create,t})(),e.keccak384=(0,i.wrapHash)(n.keccak_384),e.keccak512=(0,i.wrapHash)(n.keccak_512)},37270:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(45238),i=r(23037),s=r(70409);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},46061:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(66998),i=r(4870),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=f,n>c&&(n-=d,s+=o);const a=e,p=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[p]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},31315:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(66998),i=r(4870),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),f=o(0,u),p=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(f,t,p,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:f,expand:p,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===p)v=u(t,g,b,f);else if("xof"===p)v=h(t,g,b,a,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=t}const A=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},66998:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(4870),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function f(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function p(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=f,e.tonelliShanks=p,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?f(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*f(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>f(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s}},4870:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),p=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=f(t),i=f(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=f())=>{i=a(p([0]),t),n=a(),0!==t.length&&(i=a(p([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},70409:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(66998),i=r(4870),s=r(4870),o=r(46061),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),f=BigInt(4);function p(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function f(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),f=r.mul(o,o),p=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),p=r.mul(t,p),m=r.sub(h,p),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,p),h=r.mul(h,m),l=r.add(l,h),p=r.mul(o,a),p=r.add(p,p),h=r.mul(p,m),c=r.sub(c,h),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const f=e.a,p=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),A=r.add(o,a);v=r.mul(v,A),A=r.add(m,g),v=r.sub(v,A),A=r.add(n,s);let E=r.add(o,c);return A=r.mul(A,E),E=r.add(m,b),A=r.sub(A,E),E=r.add(i,s),l=r.add(a,c),E=r.mul(E,l),l=r.add(g,b),E=r.sub(E,l),h=r.mul(f,A),l=r.mul(p,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(f,b),A=r.mul(p,A),g=r.add(g,b),b=r.sub(m,b),b=r.mul(f,b),A=r.add(A,b),m=r.mul(g,A),u=r.add(u,m),m=r.mul(E,A),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(E,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(p(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,f=this;for(;o>l||c>l;)o&u&&(h=h.add(f)),c&u&&(d=d.add(f)),f=f.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){p(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:f}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,p),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=p,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function f(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=p({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function A(t){return t>c>>u}const E=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class x{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new x(E(t,0,e),E(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new x(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new x(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=f(-o*h),p=f(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const _={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=r.randomBytes(a.BYTES+8),e=n.hashToPrivateScalar(t,c);return i.numberToBytesBE(e,r.nByteLength)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function S(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const M=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return f(M(t))},k=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:p}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),E=[I(v),I(w)];if(null!=p){const t=!0===p?c(a.BYTES):p;E.push((0,s.ensureBytes)("extraEntropy",t,a.BYTES))}const _=i.concatBytes(...E),S=w;return{seed:_,k2sig:function(t){const e=M(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=f(n.x);if(i===l)return;const s=f(r*f(S+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&A(s)&&(a=function(t){return A(t)?f(-t):t}(s),o^=1),new x(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=x.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=x.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new x(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:p}=u,y=C(n),w=m(p),b=f(y*w),v=f(d*w),A=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!A&&f(A.x)===d},ProjectivePoint:g,Signature:x,utils:_}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:f}=r(s,l);h=t.mul(i,n),h=t.mul(h,f),u=t.cmov(u,o,d),h=t.cmov(h,f,d);const p=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,p),u=t.div(u,a),{x:u,y:h}}}},70041:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(10820),i=r(23037),s=r(66998),o=r(70409),a=r(4870),c=r(31315),l=r(37270),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),f=BigInt(2),p=(t,e)=>(t+e/f)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,p=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(p,r,e)*d%e,y=(0,s.pow2)(m,f,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,A=(0,s.pow2)(v,l,e)*v%e,E=(0,s.pow2)(A,c,e)*b%e,x=(0,s.pow2)(E,r,e)*d%e,_=(0,s.pow2)(x,a,e)*w%e,S=(0,s.pow2)(_,n,e)*h%e,M=(0,s.pow2)(S,f,e);if(!g.eql(g.sqr(M),t))throw new Error("Cannot find square root");return M}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*t,e),l=p(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),f=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=f>a;if(m&&(u=e-u),g&&(f=e-f),u>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:f}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const A=t=>t.toRawBytes(!0).slice(1),E=t=>(0,a.numberToBytesBE)(t,32),x=t=>(0,s.mod)(t,u),_=t=>(0,s.mod)(t,h),S=e.secp256k1.ProjectivePoint;function M(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:_(-r),bytes:A(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=x(t*t);let r=m(x(e*t+BigInt(7)));r%f!==y&&(r=x(-r));const n=new S(t,r,d);return n.assertValidity(),n}function k(...t){return _((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!(t=>"bigint"==typeof t&&yS.BASE.multiplyAndAddUnsafe(t,e,r))(t,r,_(-o));return!(!c||!c.hasEvenY()||c.toAffine().x!==e)}catch(t){return!1}}e.schnorr={getPublicKey:function(t){return M(t).bytes},sign:function(t,e,r=(0,i.randomBytes)(32)){const n=(0,a.ensureBytes)("message",t),{bytes:s,scalar:o}=M(e),c=(0,a.ensureBytes)("auxRand",r,32),l=E(o^(0,a.bytesToNumberBE)(v("BIP0340/aux",c))),u=v("BIP0340/nonce",l,s,n),h=_((0,a.bytesToNumberBE)(u));if(h===y)throw new Error("sign failed: k is zero");const{bytes:d,scalar:f}=M(h),p=k(d,s,n),m=new Uint8Array(64);if(m.set(d,0),m.set(E(_(f+p*o)),32),!I(m,n,s))throw new Error("sign: Invalid signature produced");return m},verify:I,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:C,pointToBytes:A,numberToBytesBE:a.numberToBytesBE,bytesToNumberBE:a.bytesToNumberBE,taggedHash:v,mod:s.mod}};const P=(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))),O=(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),N=(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});e.hashToCurve=N.hashToCurve,e.encodeToCurve=N.encodeToCurve},79131:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(79131),i=r(23037);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){n.default.exists(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.fromBig=i,e.split=s,e.toBig=(t,e)=>BigInt(t>>>0)<>>0),e.add=o;const a={fromBig:i,split:s,toBig:e.toBig,shrSH:(t,e,r)=>t>>>r,shrSL:(t,e,r)=>t<<32-r|e>>>r,rotrSH:(t,e,r)=>t>>>r|e<<32-r,rotrSL:(t,e,r)=>t<<32-r|e>>>r,rotrBH:(t,e,r)=>t<<64-r|e>>>r-32,rotrBL:(t,e,r)=>t>>>r-32|e<<64-r,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,r)=>t<>>32-r,rotlSL:(t,e,r)=>e<>>32-r,rotlBH:(t,e,r)=>e<>>64-r,rotlBL:(t,e,r)=>t<>>64-r,add:o,add3L:(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),add3H:(t,e,r,n)=>e+r+n+(t/2**32|0)|0,add4L:(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),add4H:(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,add5H:(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,add5L:(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};e.default=a},38378:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},45238:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(79131),i=r(23037);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,n.default.hash(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},10820:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(14955),i=r(23037),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&h^~p&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;f=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var p;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,n,a,l,u,h,d,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},84589:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(79131),i=r(97946),s=r(23037),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),f=BigInt(256),p=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*p)%f,e&h&&(i^=u<<(u<r>32?i.default.rotlBH(t,e,r):i.default.rotlSH(t,e,r),w=(t,e,r)=>r>32?i.default.rotlBL(t,e,r):i.default.rotlSL(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){n.default.exists(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(n.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const A=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=A(6,144,28),e.sha3_256=A(6,136,32),e.sha3_384=A(6,104,48),e.sha3_512=A(6,72,64),e.keccak_224=A(1,144,28),e.keccak_256=A(1,136,32),e.keccak_384=A(1,104,48),e.keccak_512=A(1,72,64);const E=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=E(31,168,16),e.shake256=E(31,136,32)},23037:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(38378),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}},e.checkOpts=function(t,e){if(void 0!==e&&("object"!=typeof e||(r=e,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new Error("Options should be object or undefined");var r;return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},95053:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var n=r(70041);Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},58040:function(t,e,r){"use strict";t=r.nmd(t);var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const i=n(r(79131)),s=r(23037),o=i.default.bool;e.assertBool=o;const a=i.default.bytes;e.assertBytes=a;var c=r(23037);Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),e.bytesToUtf8=function(t){if(!(t instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof t);return(new TextDecoder).decode(t)},e.hexToBytes=function(t){const e=t.startsWith("0x")?t.substring(2):t;return(0,s.hexToBytes)(e)},e.equalsBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;r(i.default.bytes(e),t(e))},e.crypto=(()=>{const e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},94278:(t,e,r)=>{"use strict";var n=r(43614),i=r(83206),s=new n(0),o=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(t){var e=t?t.toLowerCase():"ether",r=a[e];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(r,10)}function l(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"==typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}t.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(t,e,r){var n=i(t),l=n.lt(s),u=c(e),h=a[e].length-1||1,d=r||{};l&&(n=n.mul(o));for(var f=n.mod(u).toString(10);f.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var d=h[0],f=h[1];if(d||(d="0"),f||(f="0"),f.length>s)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;f.length=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],f=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);r=(p=p.idivn(f)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function p(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},26729:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,n,s,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new i(n,s||t,o),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,s=n.length,o=new Array(s);i{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,s,o,l;if(a(r),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),void 0===o)o=s[e]=r,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=c(t))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var l=c.length,u=p(c,l);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},4445:t=>{t.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var e="[...]",r="[Circular]",n=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(t,e,r,o){var a;void 0===o&&(o=s()),c(t,"",0,[],void 0,0,o);try{a=0===i.length?JSON.stringify(t,e,r):JSON.stringify(t,d(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function a(t,e,r,s){var o=Object.getOwnPropertyDescriptor(s,r);void 0!==o.get?o.configurable?(Object.defineProperty(s,r,{value:t}),n.push([s,r,e,o])):i.push([e,r,t]):(s[r]=t,n.push([s,r,e]))}function c(t,n,i,s,o,l,u){var h;if(l+=1,"object"==typeof t&&null!==t){for(h=0;hu.depthLimit)return void a(e,t,n,o);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(e,t,n,o);if(s.push(t),Array.isArray(t))for(h=0;he?1:0}function u(t,e,r,o){void 0===o&&(o=s());var a,c=h(t,"",0,[],void 0,0,o)||t;try{a=0===i.length?JSON.stringify(c,e,r):JSON.stringify(c,d(e),r)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function h(t,i,s,o,c,u,d){var f;if(u+=1,"object"==typeof t&&null!==t){for(f=0;fd.depthLimit)return void a(e,t,i,c);if(void 0!==d.edgesLimit&&s+1>d.edgesLimit)return void a(e,t,i,c);if(o.push(t),Array.isArray(t))for(f=0;f0)for(var n=0;n{"use strict";t.exports=function(t,e){for(var r={},n=Object.keys(t),i=Array.isArray(e),s=0;s{"use strict";var n=r(95320),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(t)?function(t,e,r){for(var n=0,i=t.length;n{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";var n=r(17648);t.exports=Function.prototype.bind||n},40210:(t,e,r)=>{"use strict";var n,i=SyntaxError,s=Function,o=TypeError,a=function(t){try{return s('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,h=r(41405)(),d=r(28185)(),f=Object.getPrototypeOf||(d?function(t){return t.__proto__}:null),p={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&f?f(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(t){var y=f(f(t));g["%Error.prototype%"]=y}var w=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&f&&(r=f(i.prototype))}return g[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(58612),A=r(48824),E=v.call(Function.call,Array.prototype.concat),x=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),S=v.call(Function.call,String.prototype.slice),M=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,I=function(t,e){var r,n=t;if(A(b,n)&&(n="%"+(r=b[n])[0]+"%"),A(g,n)){var s=g[n];if(s===p&&(s=w(n)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(t,C,(function(t,e,r,i){n[n.length]=r?_(i,k,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",s=I("%"+n+"%",e),a=s.name,l=s.value,u=!1,h=s.alias;h&&(n=h[0],x(r,E([0,1],h)));for(var d=1,f=!0;d=r.length){var w=c(l,p);l=(f=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[p]}else f=A(l,p),l=l[p];f&&!u&&(g[a]=l)}}return l}},27296:(t,e,r)=>{"use strict";var n=r(40210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},31044:(t,e,r)=>{"use strict";var n=r(40210)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},28185:t=>{"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},41405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(55419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},55419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},96410:(t,e,r)=>{"use strict";var n=r(55419);t.exports=function(){return n()&&!!Symbol.toStringTag}},48824:(t,e,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=r(58612);t.exports=s.call(n,i)},80645:(t,e)=>{e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,c=(1<>1,u=-7,h=r?i-1:0,d=r?-1:1,f=t[e+h];for(h+=d,s=f&(1<<-u)-1,f>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),s-=l}return(f?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,c,l=8*s-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<0;t[r+f]=255&o,f+=p,o/=256,l-=8);t[r+f-p]|=128*m}},35717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},82584:(t,e,r)=>{"use strict";var n=r(96410)(),i=r(21924)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},95320:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;c.call(d)===c.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(o(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},48662:(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=r(96410)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(o.test(s.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},23944:t=>{t.exports=function(t){if("string"!=typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},85692:(t,e,r)=>{"use strict";var n=r(86430);t.exports=function(t){return!!n(t)}},80204:(t,e,r)=>{t.exports=self.fetch||(self.fetch=r(25869).default||r(25869))},91094:(t,e,r)=>{var n,i=r(34155);!function(){"use strict";var s="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:c&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&t.exports,u=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],p=[0,8,16,24],m=[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],y=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var v=function(t,e,r){return function(n){return new B(t,e,t).update(n)[r]()}},A=function(t,e,r){return function(n,i){return new B(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,s){return C["cshake"+t].update(e,n,i,s)[r]()}},x=function(t,e,r){return function(e,n,i,s){return C["kmac"+t].update(e,n,i,s)[r]()}},_=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(t,e,r){B.call(this,t,e,r)}B.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,c=t.length,l=this.blockCount,u=0,d=this.s;u>2]|=t[u]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=a){for(this.start=n-a,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},B.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];o%e==0&&(U(r),s=0)}return i&&(t=r[s],a+=d[t>>4&15]+d[15&t],i>1&&(a+=d[t>>12&15]+d[t>>8&15]),i>2&&(a+=d[t>>20&15]+d[t>>16&15])),a},B.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&U(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},L.prototype=new B,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var U=function(t){var e,r,n,i,s,o,a,c,l,u,h,d,f,p,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(f=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(u<<1|h>>>31),r=a^(h<<1|u>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|f>>>31),r=l^(f<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=u^(i<<1|s>>>31),r=h^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=p^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&p,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~p&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=m[n],t[1]^=m[n+1]};if(l)t.exports=C;else{for(I=0;I{try{const[i,s,a]=await o._runAllMiddleware(t,e,this._middleware);return s?(await o._runReturnHandlers(a),n(i)):r((async t=>{try{await o._runReturnHandlers(a)}catch(e){return t(e)}return t()}))}catch(t){return n(t)}}}async _handleBatch(t,e){try{const r=await Promise.all(t.map(this._promiseHandle.bind(this)));return e?e(null,r):r}catch(t){if(e)return e(t);throw t}}_promiseHandle(t){return new Promise((e=>{this._handle(t,((t,r)=>{e(r)}))}))}async _handle(t,e){if(!t||Array.isArray(t)||"object"!=typeof t){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof t,{request:t});return e(r,{id:void 0,jsonrpc:"2.0",error:r})}if("string"!=typeof t.method){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof t.method,{request:t});return e(r,{id:t.id,jsonrpc:"2.0",error:r})}const r=Object.assign({},t),n={id:r.id,jsonrpc:r.jsonrpc};let i=null;try{await this._processRequest(r,n)}catch(t){i=t}return i&&(delete n.result,n.error||(n.error=s.serializeError(i))),e(i,n)}async _processRequest(t,e){const[r,n,i]=await o._runAllMiddleware(t,e,this._middleware);if(o._checkForCompletion(t,e,n),await o._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(t,e,r){const n=[];let i=null,s=!1;for(const a of r)if([i,s]=await o._runMiddleware(t,e,a,n),s)break;return[i,s,n.reverse()]}static _runMiddleware(t,e,r,n){return new Promise((i=>{const o=t=>{const r=t||e.error;r&&(e.error=s.serializeError(r)),i([r,!0])},c=r=>{e.error?o(e.error):(r&&("function"!=typeof r&&o(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof r}" for request:\n${a(t)}`,{request:t})),n.push(r)),i([null,!1]))};try{r(t,e,c,o)}catch(t){o(t)}}))}static async _runReturnHandlers(t){for(const e of t)await new Promise(((t,r)=>{e((e=>e?r(e):t()))}))}static _checkForCompletion(t,e,r){if(!("result"in e)&&!("error"in e))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${a(t)}`,{request:t});if(!r)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${a(t)}`,{request:t})}}function a(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=o},31841:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return async(e,r,n,i)=>{let s;const o=new Promise((t=>{s=t}));let a=null,c=!1;const l=async()=>{c=!0,n((t=>{a=t,s()})),await o};try{await t(e,r,l),c?(await o,a(null)):i(null)}catch(t){a?a(t):i(t)}}}},48508:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return(e,r,n,i)=>{const s=t[e.method];return void 0===s?n():"function"==typeof s?s(e,r,n,i):(r.result=s,i())}}},33107:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUniqueId=void 0;const r=4294967295;let n=Math.floor(Math.random()*r);e.getUniqueId=function(){return n=(n+1)%r,n}},85086:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;const n=r(33107);e.createIdRemapMiddleware=function(){return(t,e,r,i)=>{const s=t.id,o=n.getUniqueId();t.id=o,e.id=o,r((r=>{t.id=s,e.id=s,r()}))}}},88625:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(85086),e),i(r(31841),e),i(r(48508),e),i(r(33107),e),i(r(17398),e),i(r(79962),e)},79962:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;const n=r(17398);e.mergeMiddleware=function(t){const e=new n.JsonRpcEngine;return t.forEach((t=>e.push(t))),e.asMiddleware()}},23420:t=>{t.exports=function(t){var e=(t=t||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==t.start?t.start:Math.floor(Math.random()*e);return function(){return r%=e,r++}}},95811:(t,e,r)=>{t.exports=r(26066)(r(79653))},26066:(t,e,r)=>{const n=r(37016),i=r(5675);t.exports=function(t){const e=n(t),r=i(t);return function(t,n){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},37016:(t,e,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i,s){super(s),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=s,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},5675:(t,e,r)=>{var n=r(48764).Buffer;const{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},34040:(t,e)=>{const r=[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];e.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],o=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],u=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(s<<1|o>>>31),p=d^(o<<1|s>>>31);const m=t[0]^f,g=t[1]^p,y=t[10]^f,w=t[11]^p,b=t[20]^f,v=t[21]^p,A=t[30]^f,E=t[31]^p,x=t[40]^f,_=t[41]^p;f=n^(a<<1|c>>>31),p=i^(c<<1|a>>>31);const S=t[2]^f,M=t[3]^p,C=t[12]^f,k=t[13]^p,I=t[22]^f,P=t[23]^p,O=t[32]^f,N=t[33]^p,T=t[42]^f,R=t[43]^p;f=s^(l<<1|u>>>31),p=o^(u<<1|l>>>31);const B=t[4]^f,L=t[5]^p,U=t[14]^f,j=t[15]^p,D=t[24]^f,F=t[25]^p,z=t[34]^f,H=t[35]^p,$=t[44]^f,q=t[45]^p;f=a^(h<<1|d>>>31),p=c^(d<<1|h>>>31);const W=t[6]^f,V=t[7]^p,G=t[16]^f,K=t[17]^p,Z=t[26]^f,Q=t[27]^p,J=t[36]^f,Y=t[37]^p,X=t[46]^f,tt=t[47]^p;f=l^(n<<1|i>>>31),p=u^(i<<1|n>>>31);const et=t[8]^f,rt=t[9]^p,nt=t[18]^f,it=t[19]^p,st=t[28]^f,ot=t[29]^p,at=t[38]^f,ct=t[39]^p,lt=t[48]^f,ut=t[49]^p,ht=m,dt=g,ft=w<<4|y>>>28,pt=y<<4|w>>>28,mt=b<<3|v>>>29,gt=v<<3|b>>>29,yt=E<<9|A>>>23,wt=A<<9|E>>>23,bt=x<<18|_>>>14,vt=_<<18|x>>>14,At=S<<1|M>>>31,Et=M<<1|S>>>31,xt=k<<12|C>>>20,_t=C<<12|k>>>20,St=I<<10|P>>>22,Mt=P<<10|I>>>22,Ct=N<<13|O>>>19,kt=O<<13|N>>>19,It=T<<2|R>>>30,Pt=R<<2|T>>>30,Ot=L<<30|B>>>2,Nt=B<<30|L>>>2,Tt=U<<6|j>>>26,Rt=j<<6|U>>>26,Bt=F<<11|D>>>21,Lt=D<<11|F>>>21,Ut=z<<15|H>>>17,jt=H<<15|z>>>17,Dt=q<<29|$>>>3,Ft=$<<29|q>>>3,zt=W<<28|V>>>4,Ht=V<<28|W>>>4,$t=K<<23|G>>>9,qt=G<<23|K>>>9,Wt=Z<<25|Q>>>7,Vt=Q<<25|Z>>>7,Gt=J<<21|Y>>>11,Kt=Y<<21|J>>>11,Zt=tt<<24|X>>>8,Qt=X<<24|tt>>>8,Jt=et<<27|rt>>>5,Yt=rt<<27|et>>>5,Xt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=ot<<7|st>>>25,re=st<<7|ot>>>25,ne=at<<8|ct>>>24,ie=ct<<8|at>>>24,se=lt<<14|ut>>>18,oe=ut<<14|lt>>>18;t[0]=ht^~xt&Bt,t[1]=dt^~_t&Lt,t[10]=zt^~Xt&mt,t[11]=Ht^~te>,t[20]=At^~Tt&Wt,t[21]=Et^~Rt&Vt,t[30]=Jt^~ft&St,t[31]=Yt^~pt&Mt,t[40]=Ot^~$t&ee,t[41]=Nt^~qt&re,t[2]=xt^~Bt&Gt,t[3]=_t^~Lt&Kt,t[12]=Xt^~mt&Ct,t[13]=te^~gt&kt,t[22]=Tt^~Wt&ne,t[23]=Rt^~Vt&ie,t[32]=ft^~St&Ut,t[33]=pt^~Mt&jt,t[42]=$t^~ee&yt,t[43]=qt^~re&wt,t[4]=Bt^~Gt&se,t[5]=Lt^~Kt&oe,t[14]=mt^~Ct&Dt,t[15]=gt^~kt&Ft,t[24]=Wt^~ne&bt,t[25]=Vt^~ie&vt,t[34]=St^~Ut&Zt,t[35]=Mt^~jt&Qt,t[44]=ee^~yt&It,t[45]=re^~wt&Pt,t[6]=Gt^~se&ht,t[7]=Kt^~oe&dt,t[16]=Ct^~Dt&zt,t[17]=kt^~Ft&Ht,t[26]=ne^~bt&At,t[27]=ie^~vt&Et,t[36]=Ut^~Zt&Jt,t[37]=jt^~Qt&Yt,t[46]=yt^~It&Ot,t[47]=wt^~Pt&Nt,t[8]=se^~ht&xt,t[9]=oe^~dt&_t,t[18]=Dt^~zt&Xt,t[19]=Ft^~Ht&te,t[28]=bt^~At&Tt,t[29]=vt^~Et&Rt,t[38]=Zt^~Jt&ft,t[39]=Qt^~Yt&pt,t[48]=It^~Ot&$t,t[49]=Pt^~Nt&qt,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},79653:(t,e,r)=>{var n=r(48764).Buffer;const i=r(34040);function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(t){for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return e},s.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=s},72307:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",A=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[s]=x[o]=x[b]=x[a]=x[v]=x[c]=x[l]=x[u]=x[h]=x[d]=x[f]=x[m]=x[g]=x[y]=x[w]=!1;var _="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,M=_||S||Function("return this")(),C=e&&!e.nodeType&&e,k=C&&t&&!t.nodeType&&t,I=k&&k.exports===C,P=I&&_.process,O=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),N=O&&O.isTypedArray;function T(t,e){for(var r=-1,n=null==t?0:t.length;++ra))return!1;var l=s.get(t);if(l&&s.get(e))return l==e;var u=-1,h=!0,d=2&r?new bt:void 0;for(s.set(t,e),s.set(e,t);++u-1},yt.prototype.set=function(t,e){var r=this.__data__,n=At(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(it||yt),string:new gt}},wt.prototype.delete=function(t){var e=Ct(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ct(this,t).get(t)},wt.prototype.has=function(t){return Ct(this,t).has(t)},wt.prototype.set=function(t,e){var r=Ct(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,n),this},bt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.clear=function(){this.__data__=new yt,this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(n)}return r.set(t,e),this.size=r.size,this};var It=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,i=null==e?0:e.length,s=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=i}function Dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ft(t){return null!=t&&"object"==typeof t}var zt=N?function(t){return function(e){return t(e)}}(N):function(t){return Ft(t)&&jt(t.length)&&!!x[Et(t)]};function Ht(t){return null!=(e=t)&&jt(e.length)&&!Ut(e)?function(t,e){var r=Bt(t),n=!r&&Rt(t),i=!r&&!n&&Lt(t),s=!r&&!n&&!i&&zt(t),o=r||n||i||s,a=o?function(t,e){for(var r=-1,n=Array(t);++r{"use strict";const n=r(34411),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1,m=(t,e,r)=>{const n=t[d].get(e);if(n){const e=n.value;if(g(t,e)){if(w(t,n),!t[a])return}else r&&(t[f]&&(n.value.now=Date.now()),t[h].unshiftNode(n));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[c])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[c]&&r>t[c]},y=t=>{if(t[s]>t[i])for(let e=t[h].tail;t[s]>t[i]&&null!==e;){const r=e.prev;w(t,e),e=r}},w=(t,e)=>{if(e){const r=e.value;t[l]&&t[l](r.key,r.value),t[s]-=r.length,t[d].delete(r.key),t[h].removeNode(e)}};class b{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const v=(t,e,r,n)=>{let i=r.value;g(t,i)&&(w(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[o]="function"!=typeof e?p:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0,this[l]=t.dispose,this[u]=t.noDisposeOnSet||!1,this[f]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[c]=t,y(this)}get maxAge(){return this[c]}set lengthCalculator(t){"function"!=typeof t&&(t=p),t!==this[o]&&(this[o]=t,this[s]=0,this[h].forEach((t=>{t.length=this[o](t.value,t.key),this[s]+=t.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const n=r.prev;v(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;v(this,t,r,e),r=n}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[l]&&this[h]&&this[h].length&&this[h].forEach((t=>this[l](t.key,t.value))),this[d]=new Map,this[h]=new n,this[s]=0}dump(){return this[h].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](e,t);if(this[d].has(t)){if(a>this[i])return w(this,this[d].get(t)),!1;const o=this[d].get(t).value;return this[l]&&(this[u]||this[l](t,o.value)),o.now=n,o.maxAge=r,o.value=e,this[s]+=a-o.length,o.length=a,this.get(t),y(this),!0}const f=new b(t,e,a,n,r);return f.length>this[i]?(this[l]&&this[l](t,e),!1):(this[s]+=f.length,this[h].unshift(f),this[d].set(t,this[h].head),y(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!g(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[h].tail;return t?(w(this,t),t.value):null}del(t){w(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[d].forEach(((t,e)=>m(this,e,!1)))}}},64898:(t,e,r)=>{"use strict";var n=r(48764).Buffer,i=r(34155);Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidStatusCodeError=e.InvalidCertError=void 0;const s=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class o extends Error{constructor(t,e){super(t),this.fingerprint256=e}}e.InvalidCertError=o;class a extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}function c(t,e){if(!e||"text"===e||"json"===e)try{let r=new TextDecoder("utf8",{fatal:!0}).decode(t);if("text"===e)return r;try{return JSON.parse(r)}catch(t){if("json"===e)throw t;return r}}catch(t){if("text"===e||"json"===e)throw t}return t}e.InvalidStatusCodeError=a;let l={};function u(t,e){let i={...s,...e};const h=r(72260),d=r(72895),f=r(31865),{promisify:p}=r(89539),{resolve:m}=r(8575),g=!!/^https/.test(t);let y={method:i.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const w=t=>t.replace(/:| /g,"").toLowerCase();if(i.keepAlive){const t={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},e=[g,g&&i.sslPinnedCertificates?.map((t=>w(t))).sort()].join();y.agent=l[e]||(l[e]=new(g?d:h).Agent(t))}return"json"===i.type&&(y.headers["Content-Type"]="application/json"),i.data&&(i.method||(y.method="POST"),y.body="json"===i.type?JSON.stringify(i.data):i.data),y.headers={...y.headers,...i.headers},i.sslAllowSelfSigned&&(y.rejectUnauthorized=!1),new Promise(((e,r)=>{const s=async e=>{if(e&&"DEPTH_ZERO_SELF_SIGNED_CERT"===e.code)try{await u(t,{...i,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(t){t&&t.fingerprint256&&(e=new o(`Self-signed SSL certificate: ${t.fingerprint256}`,t.fingerprint256))}r(e)},l=(g?d:h).request(t,y,(o=>{o.on("error",s),(async()=>{try{e(await(async e=>{const r=e.statusCode;if(i.redirect&&300<=r&&r<400&&e.headers.location){if(10==i._redirectCount)throw new Error("Request failed. Too much redirects.");return i._redirectCount+=1,await u(m(t,e.headers.location),i)}if(i.expectStatusCode&&r!==i.expectStatusCode)throw e.resume(),new a(r);let s=[];for await(const t of e)s.push(t);let o=n.concat(s);const l=e.headers["content-encoding"];"br"===l&&(o=await p(f.brotliDecompress)(o)),"gzip"!==l&&"deflate"!==l||(o=await p(f.unzip)(o));const h=c(o,i.type);return i.full?{headers:e.headers,status:r,body:h}:h})(o))}catch(t){r(t)}})()}));l.on("error",s);const b=i.sslPinnedCertificates?.map((t=>w(t))),v=t=>{const e=w(t.getPeerCertificate()?.fingerprint256||"");if((e||!t.isSessionReused())&&!b.includes(e))return l.emit("error",new o(`Invalid SSL certificate: ${e} Expected: ${b}`,e)),l.abort()};i.sslPinnedCertificates&&l.on("socket",(t=>{t.listeners("secureConnect").map((t=>(t.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||t.on("secureConnect",v.bind(null,t))})),i.keepAlive&&l.setNoDelay(!0),y.body&&l.write(y.body),l.end()}))}const h=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((t=>t.toLowerCase()))),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((t=>t.toLowerCase())));async function f(t,e){let r={...s,...e};const n=new Headers;"json"===r.type&&n.set("Content-Type","application/json");let i=new URL(t);if(i.username){const t=btoa(`${i.username}:${i.password}`);n.set("Authorization",`Basic ${t}`),i.username="",i.password=""}t=""+i;for(let t in r.headers){const e=t.toLowerCase();(h.has(e)||r.cors&&!d.has(e))&&n.set(t,r.headers[t])}let o={headers:n,redirect:r.redirect?"follow":"manual"};r.referrer||(o.referrerPolicy="no-referrer"),r.cors&&(o.mode="cors"),r.data&&(r.method||(o.method="POST"),o.body="json"===r.type?JSON.stringify(r.data):r.data);const l=await fetch(t,o);if(r.expectStatusCode&&l.status!==r.expectStatusCode)throw new a(l.status);const u=c(new Uint8Array(await l.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(l.headers.entries()),status:l.status,body:u}:u}const p=!!("object"==typeof i&&i.versions&&i.versions.node&&i.versions.v8);e.default=function(t,e){return(p?u:f)(t,e)}},57824:t=>{var e=1e3,r=60*e,n=60*r,i=24*n;function s(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}t.exports=function(t,o){o=o||{};var a,c,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(s){var o=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(t);if("number"===l&&isFinite(t))return o.long?(a=t,(c=Math.abs(a))>=i?s(a,c,i,"day"):c>=n?s(a,c,n,"hour"):c>=r?s(a,c,r,"minute"):c>=e?s(a,c,e,"second"):a+" ms"):function(t){var s=Math.abs(t);return s>=i?Math.round(t/i)+"d":s>=n?Math.round(t/n)+"h":s>=r?Math.round(t/r)+"m":s>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},45033:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=r(48764).Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],f=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);r=(p=p.idivn(f)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function p(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},83206:(t,e,r)=>{var n=r(45033),i=r(49604);t.exports=function(t){if("string"==typeof t||"number"==typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),s="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),o=i(r);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),e=new n(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new n(o,16).mul(e);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new n(o,10).mul(e)}else if("object"==typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},70631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,w=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,A=String.prototype.toLowerCase,E=RegExp.prototype.test,x=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,M=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,O="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||E.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-M(-t):M(t);if(n!==t){var i=String(n),s=w.call(e,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,r,"$&_")}var B=r(24654),L=B.custom,U=H(L)?L:null;function j(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function D(t){return b.call(String(t),/"/g,""")}function F(t){return!("[object Array]"!==W(t)||O&&"object"==typeof t&&O in t)}function z(t){return!("[object RegExp]"!==W(t)||O&&"object"==typeof t&&O in t)}function H(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!I)return!1;try{return I.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,i,a){var c=n||{};if(q(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return G(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var E=String(e);return v?R(e,E):E}if("bigint"==typeof e){var M=String(e)+"n";return v?R(e,M):M}var k=void 0===c.depth?5:c.depth;if(void 0===i&&(i=0),i>=k&&k>0&&"object"==typeof e)return F(e)?"[Array]":"[Object]";var L,$=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=_.call(Array(t.indent+1)," ")}return{base:r,prev:_.call(Array(e+1),r)}}(c,i);if(void 0===a)a=[];else if(V(a,e)>=0)return"[Circular]";function K(e,r,n){if(r&&(a=S.call(a)).push(r),n){var s={depth:c.depth};return q(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),t(e,s,i+1,a)}return t(e,c,i+1,a)}if("function"==typeof e&&!z(e)){var tt=function(t){if(t.name)return t.name;var e=y.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=X(e,K);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+_.call(et,", ")+" }":"")}if(H(e)){var rt=P?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(e);return"object"!=typeof e||P?rt:Z(rt)}if((L=e)&&"object"==typeof L&&("undefined"!=typeof HTMLElement&&L instanceof HTMLElement||"string"==typeof L.nodeName&&"function"==typeof L.getAttribute)){for(var nt="<"+A.call(String(e.nodeName)),it=e.attributes||[],st=0;st"}if(F(e)){if(0===e.length)return"[]";var ot=X(e,K);return $&&!function(t){for(var e=0;e=0)return!1;return!0}(ot)?"["+Y(ot,$)+"]":"[ "+_.call(ot,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||O&&"object"==typeof t&&O in t)}(e)){var at=X(e,K);return"cause"in Error.prototype||!("cause"in e)||N.call(e,"cause")?0===at.length?"["+String(e)+"]":"{ ["+String(e)+"] "+_.call(at,", ")+" }":"{ ["+String(e)+"] "+_.call(x.call("[cause]: "+K(e.cause),at),", ")+" }"}if("object"==typeof e&&m){if(U&&"function"==typeof e[U]&&B)return B(e,{depth:k-i});if("symbol"!==m&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{l.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ct=[];return o&&o.call(e,(function(t,r){ct.push(K(r,e,!0)+" => "+K(t,e))})),J("Map",s.call(e),ct,$)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var lt=[];return u&&u.call(e,(function(t){lt.push(K(t,e))})),J("Set",l.call(e),lt,$)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Q("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Q("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Q("WeakRef");if(function(t){return!("[object Number]"!==W(t)||O&&"object"==typeof t&&O in t)}(e))return Z(K(Number(e)));if(function(t){if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}(e))return Z(K(C.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||O&&"object"==typeof t&&O in t)}(e))return Z(p.call(e));if(function(t){return!("[object String]"!==W(t)||O&&"object"==typeof t&&O in t)}(e))return Z(K(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==W(t)||O&&"object"==typeof t&&O in t)}(e)&&!z(e)){var ut=X(e,K),ht=T?T(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ft=!ht&&O&&Object(e)===e&&O in e?w.call(W(e),8,-1):dt?"Object":"",pt=(ht||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ft||dt?"["+_.call(x.call([],ft||[],dt||[]),": ")+"] ":"");return 0===ut.length?pt+"{}":$?pt+"{"+Y(ut,$)+"}":pt+"{ "+_.call(ut,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return $.call(t,e)}function W(t){return m.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(w.call(t,0,e.maxStringLength),e)+n}return j(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",e)}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function Z(t){return"Object("+t+")"}function Q(t){return t+" { ? }"}function J(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):_.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+_.call(t,","+r)+"\n"+e.prev}function X(t,e){var r=F(t),n=[];if(r){n.length=t.length;for(var i=0;i{"use strict";const e=(t,e)=>function(){const r=e.promiseModule,n=new Array(arguments.length);for(let t=0;t{e.errorFirst?n.push((function(t,n){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=t=>{const e=e=>"string"==typeof e?t===e:e.test(t);return r.include?r.include.some(e):!r.exclude.some(e)};let i;i="function"==typeof t?function(){return r.excludeMain?t.apply(this,arguments):e(t,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const s in t){const o=t[s];i[s]="function"==typeof o&&n(s)?e(o,r):o}return i}},6400:(t,e,r)=>{"use strict";r.r(e),r.d(e,{Component:()=>E,Fragment:()=>A,cloneElement:()=>q,createContext:()=>W,createElement:()=>w,createRef:()=>v,h:()=>w,hydrate:()=>$,isValidElement:()=>o,options:()=>i,render:()=>H,toChildArray:()=>P});var n,i,s,o,a,c,l,u,h,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function g(t,e){for(var r in e)t[r]=e[r];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,r){var i,s,o,a={};for(o in e)"key"==o?i=e[o]:"ref"==o?s=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===a[o]&&(a[o]=t.defaultProps[o]);return b(t,a,i,s,null)}function b(t,e,r,n,o){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=i.vnode&&i.vnode(a),a}function v(){return{current:null}}function A(t){return t.children}function E(t,e){this.props=t,this.context=e}function x(t,e){if(null==e)return t.__?x(t.__,t.__i+1):null;for(var r;ee&&a.sort(u));M.__r=0}function C(t,e,r,n,i,s,o,a,c,l,u){var h,p,m,g,y,w=n&&n.__k||f,b=e.length;for(r.__d=c,k(r,e,w),c=r.__d,h=0;h0?b(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=t,i.__b=t.__b+1,a=O(i,r,o=n+h,u),i.__i=a,s=null,-1!==a&&(u--,(s=r[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&h--,"function"!=typeof i.type&&(i.__u|=65536)):a!==o&&(a===o+1?h++:a>o?u>c-o?h+=a-o:h--:h=a(null!=c&&0==(131072&c.__u)?1:0))for(;o>=0||a=0){if((c=e[o])&&0==(131072&c.__u)&&i==c.key&&s===c.type)return o;o--}if(a2&&(c.children=arguments.length>3?n.call(arguments,2):r),b(t.type,c,i||t.key,s||t.ref,null)}function W(t,e){var r={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some((function(t){t.__e=!0,S(t)}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}n=f.slice,i={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(e){t=e}throw t}},s=0,o=function(t){return null!=t&&null==t.constructor},E.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},r),this.props)),t&&g(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),S(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S(this))},E.prototype.render=A,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(t,e){return t.__v.__b-e.__v.__b},M.__r=0,h=0},30396:(t,e,r)=>{"use strict";r.r(e),r.d(e,{useCallback:()=>_,useContext:()=>S,useDebugValue:()=>M,useEffect:()=>b,useErrorBoundary:()=>C,useId:()=>k,useImperativeHandle:()=>E,useLayoutEffect:()=>v,useMemo:()=>x,useReducer:()=>w,useRef:()=>A,useState:()=>y});var n,i,s,o,a=r(6400),c=0,l=[],u=[],h=a.options.__b,d=a.options.__r,f=a.options.diffed,p=a.options.__c,m=a.options.unmount;function g(t,e){a.options.__h&&a.options.__h(i,t,c||e),c=0;var r=i.__H||(i.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:u}),r.__[t]}function y(t){return c=1,w(B,t)}function w(t,e,r){var s=g(n++,2);if(s.t=t,!s.__c&&(s.__=[r?r(e):B(void 0,e),function(t){var e=s.__N?s.__N[0]:s.__[0],r=s.t(e,t);e!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(t,e,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!a||a.call(this,t,e,r);var i=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&s.__c.props===t)&&(!a||a.call(this,t,e,r))};i.u=!0;var a=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(t,e,r){if(this.__e){var n=a;a=void 0,o(t,e,r),a=n}c&&c.call(this,t,e,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function b(t,e){var r=g(n++,3);!a.options.__s&&R(r.__H,e)&&(r.__=t,r.i=e,i.__H.__h.push(r))}function v(t,e){var r=g(n++,4);!a.options.__s&&R(r.__H,e)&&(r.__=t,r.i=e,i.__h.push(r))}function A(t){return c=5,x((function(){return{current:t}}),[])}function E(t,e,r){c=6,v((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==r?r:r.concat(t))}function x(t,e){var r=g(n++,7);return R(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function _(t,e){return c=8,x((function(){return t}),e)}function S(t){var e=i.context[t.__c],r=g(n++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(i)),e.props.value):t.__}function M(t,e){a.options.useDebugValue&&a.options.useDebugValue(e?e(t):t)}function C(t){var e=g(n++,10),r=y();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,n){e.__&&e.__(t,n),r[1](t)}),[r[0],function(){r[1](void 0)}]}function k(){var t=g(n++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function I(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(N),t.__H.__h.forEach(T),t.__H.__h=[]}catch(e){t.__H.__h=[],a.options.__e(e,t.__v)}}a.options.__b=function(t){i=null,h&&h(t)},a.options.__r=function(t){d&&d(t),n=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=u,t.__N=t.i=void 0}))):(e.__h.forEach(N),e.__h.forEach(T),e.__h=[],n=0)),s=i},a.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||O)(I)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==u&&(t.__=t.__V),t.i=void 0,t.__V=u}))),s=i=null},a.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(N),t.__h=t.__h.filter((function(t){return!t.__||T(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.options.__e(r,t.__v)}})),p&&p(t,e)},a.options.unmount=function(t){m&&m(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{N(t)}catch(t){e=t}})),r.__H=void 0,e&&a.options.__e(e,r.__v))};var P="function"==typeof requestAnimationFrame;function O(t){var e,r=function(){clearTimeout(n),P&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);P&&(e=requestAnimationFrame(r))}function N(t){var e=i,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),i=e}function T(t){var e=i;t.__c=t.__(),i=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function B(t,e){return"function"==typeof e?e(t):e}},34155:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&d())}function d(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(d[t])}function g(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+g((t=t.replace(h,".")).split("."),e).join(".")}function w(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+p(t)})).join("")}function v(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?f(t/700):t>>1,t+=f(t/e);t>455;n+=c)t=f(t/35);return f(n+36*t/(t+38))}function E(t){var e,r,n,i,s,o,l,u,h,d,p,g=[],y=t.length,w=0,v=128,E=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),g.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((u=(p=t.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:c)>=c||u>f((a-w)/o))&&m("overflow"),w+=u*o,!(u<(h=l<=E?1:l>=E+26?26:l-E));l+=c)o>f(a/(d=c-h))&&m("overflow"),o*=d;E=A(w-s,e=g.length+1,0==s),f(w/e)>a-v&&m("overflow"),v+=f(w/e),w%=e,g.splice(w++,0,v)}return b(g)}function x(t){var e,r,n,i,s,o,l,u,h,d,g,y,b,E,x,_=[];for(y=(t=w(t)).length,e=128,r=0,s=72,o=0;o=e&&gf((a-r)/(b=n+1))&&m("overflow"),r+=(l-e)*b,e=l,o=0;oa&&m("overflow"),g==e){for(u=r,h=c;!(u<(d=h<=s?1:h>=s+26?26:h-s));h+=c)x=u-d,E=c-d,_.push(p(v(d+x%E,0))),u=f(x/E);_.push(p(v(u,0))),s=A(r,b,n==i),r=0,++n}++r,++e}return _.join("")}o={version:"1.4.1",ucs2:{decode:w,encode:b},decode:E,encode:x,toASCII:function(t){return y(t,(function(t){return u.test(t)?"xn--"+x(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?E(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},92592:(t,e,r)=>{const n=r(47138),i=r(95115),s=r(6907),o=r(93776);function a(t,e,r,s,o){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=e,e=s=void 0):2!==c||e.getContext||(s=r,r=e,e=void 0),new Promise((function(n,o){try{const o=i.create(r,s);n(t(o,e,s))}catch(t){o(t)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=r,r=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=e,e=void 0));try{const n=i.create(r,s);o(null,t(n,e,s))}catch(t){o(t)}}e.create=i.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,r){return o.render(t,r)}))},47138:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},21845:(t,e,r)=>{const n=r(10242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),i=145===r?26:2*Math.ceil((r-13)/(2*e-2)),s=[r-7];for(let t=1;t{const n=r(76910),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*i.indexOf(this.data[e]);r+=i.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[e]),6)},t.exports=s},97245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},73280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,n){const i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},43424:(t,e,r)=>{const n=r(62378),i=r(76910);function s(t){this.mode=i.BYTE,"string"==typeof t&&(t=n(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,r=this.data.length;e{const n=r(64908),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},64908:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},76526:(t,e,r)=>{const n=r(10242).getSymbolSize;e.getPositions=function(t){const e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},61642:(t,e,r)=>{const n=r(10242),i=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){const r=t.bit<<3|e;let s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)r[e]=t,n[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return n[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[n[t]+n[e]]}},35442:(t,e,r)=>{const n=r(76910),i=r(10242);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=s},27126:(t,e)=>{function r(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let r=0,n=0,i=0,s=null,o=null;for(let a=0;a=5&&(r+=n-5+3),s=e,n=1),e=t.get(c,a),e===o?i++:(i>=5&&(r+=i-5+3),o=e,i=1)}n>=5&&(r+=n-5+3),i>=5&&(r+=i-5+3)}return r},e.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(o,s),o>=10&&(1488===i||93===i)&&r++}return 40*r},e.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let n=0;n{const n=r(43114),i=r(7007);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}},41085:(t,e,r)=>{const n=r(76910);function i(t){this.mode=n.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);const i=this.data.length-e;i>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*i+1))},t.exports=i},26143:(t,e,r)=>{const n=r(69729);e.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){const t=r[0];for(let i=0;i{const n=r(10242),i=r(64908),s=r(97245),o=r(73280),a=r(21845),c=r(76526),l=r(27126),u=r(35393),h=r(52882),d=r(23103),f=r(61642),p=r(76910),m=r(16130);function g(t,e,r){const n=t.size,i=f.getEncodedBits(e,r);let s,o;for(s=0;s<15;s++)o=1==(i>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function y(t,e,r,i){let f;if(Array.isArray(t))f=m.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=e;if(!n){const e=m.rawSplit(t);n=d.getBestVersionForData(e,r)}f=m.fromString(t,n||40)}}const y=d.getBestVersionForData(f,r);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===e||6===e)||e>=2&&e<=4&&n>=2&&n<=4?t.set(i+e,s+n,!0,!0):t.set(i+e,s+n,!1,!0))}}(v,e),function(t){const e=t.size;for(let r=8;r=7&&function(t,e){const r=t.size,n=d.getEncodedBits(e);let i,s,o;for(let e=0;e<18;e++)i=Math.floor(e/3),s=e%3+r-8-3,o=1==(n>>e&1),t.set(i,s,o,!0),t.set(s,i,o,!0)}(v,e),function(t,e){const r=t.size;let n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!t.isReserved(i,a-r)){let n=!1;o>>s&1)),t.set(i,a-r,n),s--,-1===s&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(v,w),isNaN(i)&&(i=l.getBestMask(v,g.bind(null,v,r))),l.applyMask(i,v),g(v,r,i),{modules:v,version:e,errorCorrectionLevel:r,maskPattern:i,segments:f}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,s,o=i.M;return void 0!==e&&(o=i.from(e.errorCorrectionLevel,i.M),r=d.from(e.version),s=l.from(e.maskPattern),e.toSJISFunc&&n.setToSJISFunction(e.toSJISFunc)),y(t,r,o,s)}},52882:(t,e,r)=>{const n=r(26143);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=n.mod(e,this.genPoly),i=this.degree-r.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(r,i),t}return r},t.exports=i},7007:(t,e)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const s=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return s.test(t)},e.testNumeric=function(t){return o.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},16130:(t,e,r)=>{const n=r(76910),i=r(41085),s=r(8260),o=r(43424),a=r(35442),c=r(7007),l=r(10242),u=r(65987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const n=[];let i;for(;null!==(i=t.exec(r));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function f(t){const e=d(c.NUMERIC,n.NUMERIC,t),r=d(c.ALPHANUMERIC,n.ALPHANUMERIC,t);let i,s;return l.isKanjiModeEnabled()?(i=d(c.BYTE,n.BYTE,t),s=d(c.KANJI,n.KANJI,t)):(i=d(c.BYTE_KANJI,n.BYTE,t),s=[]),e.concat(r,i,s).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case n.NUMERIC:return i.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){let r;const c=n.getBestModeForData(t);if(r=n.from(e,c),r!==n.BYTE&&r.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(f(t,l.isKanjiModeEnabled()))}},10242:(t,e)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},43114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},23103:(t,e,r)=>{const n=r(10242),i=r(35393),s=r(64908),o=r(76910),a=r(43114),c=n.getBCHDigit(7973);function l(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let r=0;return t.forEach((function(t){const n=l(t.mode,e);r+=n+t.getBitsLength()})),r}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const s=8*(n.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e));if(r===o.MIXED)return s;const c=s-l(r,t);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,r){let n;const i=s.from(r,s.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,r,o.MIXED))return n}(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(let i=1;i<=40;i++)if(r<=e.getCapacity(i,n,t))return i}(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-c>=0;)e^=7973<{const n=r(89653);e.render=function(t,e,r){let i=r,s=e;void 0!==i||e&&e.getContext||(i=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const o=n.getImageWidth(t.modules.size,i),a=s.getContext("2d"),c=a.createImageData(o,o);return n.qrToImageData(c.data,t,i),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});const s=e.render(t,r,i),o=i.type||"image/png",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},93776:(t,e,r)=>{const n=r(89653);function i(t,e){const r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function s(t,e,r){let n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){const o=n.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,u=o.color.light.a?"':"",h="0&&l>0&&t[c-1]||(n+=o?s("M",l+r,.5+u+r):s("m",i,0),i=0,o=!1),l+1',d='viewBox="0 0 '+l+" "+l+'"',f=''+u+h+"\n";return"function"==typeof r&&r(null,f),f}},89653:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){const n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){const i=r.modules.size,s=r.modules.data,o=e.getScale(i,n),a=Math.floor((i+2*n.margin)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let e=0;e=c&&r>=c&&e{"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},80129:(t,e,r)=>{"use strict";var n=r(58261),i=r(55235),s=r(55798);t.exports={formats:s,parse:i,stringify:n}},55235:(t,e,r)=>{"use strict";var n=r(12769),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},l=function(t,e,r,n){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),l=a?s.slice(0,a.index):s,u=[];if(l){if(!r.plainObjects&&i.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var h=0;r.depth>0&&null!==(a=o.exec(s))&&h=0;--s){var o,a=t[s];if("[]"===a&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=i:"__proto__"!==l&&(o[l]=i):o={0:i}}i=o}return i}(u,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset;return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var r,l={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=u.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(g=s(g)?[g]:g),i.call(l,m)?l[m]=n.combine(l[m],g):l[m]=g}return l}(t,r):t,h=r.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f{"use strict";var n=r(37478),i=r(12769),s=r(55798),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,l=Array.prototype.push,u=function(t,e){l.apply(t,c(e)?e:[e])},h=Date.prototype.toISOString,d=s.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},m=function t(e,r,s,o,a,l,h,d,m,g,y,w,b,v,A,E){for(var x,_=e,S=E,M=0,C=!1;void 0!==(S=S.get(p))&&!C;){var k=S.get(e);if(M+=1,void 0!==k){if(k===M)throw new RangeError("Cyclic object value");C=!0}void 0===S.get(p)&&(M=0)}if("function"==typeof d?_=d(r,_):_ instanceof Date?_=y(_):"comma"===s&&c(_)&&(_=i.maybeMap(_,(function(t){return t instanceof Date?y(t):t}))),null===_){if(a)return h&&!v?h(r,f.encoder,A,"key",w):r;_=""}if("string"==typeof(x=_)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(_))return h?[b(v?r:h(r,f.encoder,A,"key",w))+"="+b(h(_,f.encoder,A,"value",w))]:[b(r)+"="+b(String(_))];var I,P=[];if(void 0===_)return P;if("comma"===s&&c(_))v&&h&&(_=i.maybeMap(_,h)),I=[{value:_.length>0?_.join(",")||null:void 0}];else if(c(d))I=d;else{var O=Object.keys(_);I=m?O.sort(m):O}for(var N=o&&c(_)&&1===_.length?r+"[]":r,T=0;T0?A+v:""}},12769:(t,e,r)=>{"use strict";var n=r(55798),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var n=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var r=[],n=0;n{"use strict";function e(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}t.exports=function(t,r,n){var i=n&&n.stringify||e;if("object"==typeof t&&null!==t){var s=r.length+1;if(1===s)return t;var o=new Array(s);o[0]=i(t);for(var a=1;a-1?h:0,t.charCodeAt(f+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;h=c)break;if(null==r[u])break;h=c)break;if(void 0===r[u])break;h",h=f+2,f++;break}l+=i(r[u]),h=f+2,f++;break;case 115:if(u>=c)break;h{"use strict";var n=r(34155),i=65536,s=r(89509).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,s,o,a;if("string"==typeof e&&"not "===e.substr(0,4)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length)," argument"===t.substring(r-9,r)}(t))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var c=("number"!=typeof a&&(a=0),a+1>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");s='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},56753:(t,e,r)=>{"use strict";var n=r(34155),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=u;var s=r(79481),o=r(64229);r(35717)(u,s);for(var a=i(o.prototype),c=0;c{"use strict";t.exports=i;var n=r(74605);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(35717)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},79481:(t,e,r)=>{"use strict";var n,i=r(34155);t.exports=S,S.ReadableState=_,r(17187).EventEmitter;var s,o=function(t,e){return t.listeners(e).length},a=r(22503),c=r(48764).Buffer,l=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(94616);s=u&&u.debuglog?u.debuglog("stream"):function(){};var h,d,f,p=r(57327),m=r(61195),g=r(82457).getHighWaterMark,y=r(94281).q,w=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,A=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(35717)(S,a);var E=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function _(t,e,i){n=n||r(56753),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(32553).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function S(t){if(n=n||r(56753),!(this instanceof S))return new S(t);var e=this instanceof n;this._readableState=new _(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function M(t,e,r,n,i){s("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(s("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?P(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,O(t)))}}(t,a);else if(i||(o=function(t,e){var r,n;return n=e,c.isBuffer(n)||n instanceof l||"string"==typeof e||void 0===e||t.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],e)),r}(a,e)),o)E(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n)a.endEmitted?E(t,new A):C(t,a,e,!0);else if(a.ended)E(t,new b);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?C(t,a,e,!1):N(t,a)):C(t,a,e,!1)}else n||(a.reading=!1,N(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(O,t))}function O(t){var e=t._readableState;s("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function N(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function B(t){s("readable nexttick read 0"),t.read(0)}function L(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function j(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function D(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(F,e,t))}function F(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function z(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return s("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):P(this),null;if(0===(t=I(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,i=e.needReadable;return s("need readable",i),(0===e.length||e.length-t0?j(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(t){E(this,new v("_read()"))},S.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,e);var a=e&&!1===e.end||t===i.stdout||t===i.stderr?m:c;function c(){s("onend"),t.end()}n.endEmitted?i.nextTick(a):r.once("end",a),t.on("unpipe",(function e(i,o){s("onunpipe"),i===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",e),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,U(t))}}(r);t.on("drain",l);var u=!1;function h(e){s("ondata");var i=t.write(e);s("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==z(n.pipes,t))&&!u&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(e){s("onerror",e),m(),t.removeListener("error",d),0===o(t,"error")&&E(t,e)}function f(){t.removeListener("finish",p),m()}function p(){s("onfinish"),t.removeListener("close",f),m()}function m(){s("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?P(this):n.reading||i.nextTick(B,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(R,this),r},S.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(R,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o{"use strict";t.exports=u;var n=r(94281).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(56753);function l(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n,i=r(34155);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(void 0),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=S,S.WritableState=_;var o,a={deprecate:r(94927)},c=r(22503),l=r(48764).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=r(61195),d=r(82457).getHighWaterMark,f=r(94281).q,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,w=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,A=f.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function x(){}function _(t,e,o){n=n||r(56753),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,s){--e.pendingcb,r?(i.nextTick(s,n),i.nextTick(O,t,e),t._writableState.errorEmitted=!0,E(t,n)):(s(n),t._writableState.errorEmitted=!0,E(t,n),O(t,e))}(t,r,n,e,s);else{var o=I(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||k(t,r),n?i.nextTick(C,t,r,o,s):C(t,r,o,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function S(t){var e=this instanceof(n=n||r(56753));if(!e&&!o.call(S,this))return new S(t);this._writableState=new _(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function M(t,e,r,n,i,s,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new w("write")):r?t._writev(i,e.onwrite):t._write(i,s,e.onwrite),e.sync=!1}function C(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),O(t,e)}function k(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,M(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,h=r.callback;if(M(t,e,!1,e.objectMode?1:l.length,l,u,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function I(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final((function(r){e.pendingcb--,r&&E(t,r),e.prefinished=!0,t.emit("prefinish"),O(t,e)}))}function O(t,e){var r=I(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(35717)(S,c),_.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(_.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===S&&t&&t._writableState instanceof _}})):o=function(t){return t instanceof this},S.prototype.pipe=function(){E(this,new y)},S.prototype.write=function(t,e,r){var n,s=this._writableState,o=!1,a=!s.objectMode&&(n=t,l.isBuffer(n)||n instanceof u);return a&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof r&&(r=x),s.ending?function(t,e){var r=new v;E(t,r),i.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var s;return null===r?s=new b:"string"==typeof r||e.objectMode||(s=new p("chunk",["string","Buffer"],r)),!s||(E(t,s),i.nextTick(n,s),!1)}(this,s,t,r))&&(s.pendingcb++,o=function(t,e,r,n,i,s){if(!r){var o=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r)),e}(e,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=e.objectMode?1:n.length;e.length+=a;var c=e.length-1))throw new A(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,O(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},45850:(t,e,r)=>{"use strict";var n,i=r(34155);function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(8610),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(t,e){return{value:t,done:e}}function m(t){var e=t[a];if(null!==e){var r=t[f].read();null!==r&&(t[h]=null,t[a]=null,t[c]=null,e(p(r,!1)))}}function g(t){i.nextTick(m,t)}var y=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[l]?r(t[l]):e(p(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[u]?r(p(void 0,!0)):e[d](r,n)}),n)}}(n,this));else{var s=this[f].read();if(null!==s)return Promise.resolve(p(s,!1));r=new Promise(this[d])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var t=this;return new Promise((function(e,r){t[f].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(w,(s(e={},f,{value:t,writable:!0}),s(e,a,{value:null,writable:!0}),s(e,c,{value:null,writable:!0}),s(e,l,{value:null,writable:!0}),s(e,u,{value:t._readableState.endEmitted,writable:!0}),s(e,d,{value:function(t,e){var n=r[f].read();n?(r[h]=null,r[a]=null,r[c]=null,t(p(n,!1))):(r[a]=t,r[c]=e)},writable:!0}),e));return r[h]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[c];return null!==e&&(r[h]=null,r[a]=null,r[c]=null,e(t)),void(r[l]=t)}var n=r[a];null!==n&&(r[h]=null,r[a]=null,r[c]=null,n(p(void 0,!0))),r[u]=!0})),t.on("readable",g.bind(null,r)),r}},57327:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,i=a.allocUnsafe(t>>>0),s=this.head,o=0;s;)e=s.data,r=i,n=o,a.prototype.copy.call(e,r,n),o+=s.data.length,s=s.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(s===i.length?n+=i:n+=i.slice(0,t),0==(t-=s)){s===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return c(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&function(t,e){for(var r=0;r{"use strict";var n=r(34155);function i(t,e){o(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,t)):n.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(s,r),e(t)):n.nextTick(s,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},8610:(t,e,r)=>{"use strict";var n=r(94281).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,s){if("function"==typeof r)return t(e,null,r);r||(r={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},59946:(t,e,r)=>{"use strict";var n,i=r(94281).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function c(t){t()}function l(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i0,(function(t){u||(u=t),t&&d.forEach(c),s||(d.forEach(c),h(u))}))}));return e.reduce(l)}},82457:(t,e,r)=>{"use strict";var n=r(94281).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var s=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},22503:(t,e,r)=>{t.exports=r(17187).EventEmitter},88473:(t,e,r)=>{(e=t.exports=r(79481)).Stream=e,e.Readable=e,e.Writable=r(64229),e.Duplex=r(56753),e.Transform=r(74605),e.PassThrough=r(82725),e.finished=r(8610),e.pipeline=r(59946)},34143:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>P.W,AsyncSubject:()=>u.c,BehaviorSubject:()=>c.X,ConnectableObservable:()=>i.c,EMPTY:()=>Z.E,EmptyError:()=>O.K,GroupedObservable:()=>s.T,NEVER:()=>ht,Notification:()=>S.P,NotificationKind:()=>S.W,ObjectUnsubscribedError:()=>N.N,Observable:()=>n.y,ReplaySubject:()=>l.t,Scheduler:()=>E.b,Subject:()=>a.xQ,Subscriber:()=>_.L,Subscription:()=>x.w,TimeoutError:()=>R.W,UnsubscriptionError:()=>T.B,VirtualAction:()=>A,VirtualTimeScheduler:()=>v,animationFrame:()=>b,animationFrameScheduler:()=>w,asap:()=>h.e,asapScheduler:()=>h.E,async:()=>d.P,asyncScheduler:()=>d.z,bindCallback:()=>D,bindNodeCallback:()=>H,combineLatest:()=>V.aj,concat:()=>G.z,config:()=>It.v,defer:()=>K.P,empty:()=>Z.c,forkJoin:()=>Y,from:()=>J.D,fromEvent:()=>et,fromEventPattern:()=>nt,generate:()=>it,identity:()=>k.y,iif:()=>ot,interval:()=>ct,isObservable:()=>I,merge:()=>ut.T,never:()=>dt,noop:()=>C.Z,observable:()=>o.L,of:()=>ft.of,onErrorResumeNext:()=>pt,pairs:()=>mt,partition:()=>vt,pipe:()=>M.z,queue:()=>f.c,queueScheduler:()=>f.N,race:()=>At.S3,range:()=>Et,scheduled:()=>kt.x,throwError:()=>_t._,timer:()=>St.H,using:()=>Mt,zip:()=>Ct.$R});var n=r(92772),i=r(33140),s=r(11120),o=r(15050),a=r(70211),c=r(89233),l=r(12630),u=r(60364),h=r(6650),d=r(90964),f=r(92546),p=r(70655),m=r(96114),g=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return p.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(m.o),y=r(78399),w=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++ne.index?1:-1:t.delay>e.delay?1:-1},e}(m.o),E=r(38725),x=r(98760),_=r(10979),S=r(42632),M=r(62561),C=r(33306),k=r(43608);function I(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var P=r(76565),O=r(26929),N=r(41016),T=r(28782),R=r(81462),B=r(55709),L=r(93642),U=r(59026),j=r(17507);function D(t,e,r){if(e){if(!(0,j.K)(e))return function(){for(var n=[],i=0;i1?n.next(Array.prototype.slice.call(arguments)):n.next(t)}),n,r)}))}function rt(t,e,r,n,i){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var o=t;t.addEventListener(e,r,i),s=function(){return o.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var a=t;t.on(e,r),s=function(){return a.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),s=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,u=t.length;l=e){n.complete();break}if(n.next(s++),n.closed)break}}))}function xt(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}var _t=r(64944),St=r(69604);function Mt(t,e){return new n.y((function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var s=(i?(0,J.D)(i):Z.E).subscribe(r);return function(){s.unsubscribe(),n&&n.unsubscribe()}}))}var Ct=r(25080),kt=r(38107),It=r(30150)},60364:(t,e,r)=>{"use strict";r.d(e,{c:()=>o});var n=r(70655),i=r(70211),s=r(98760),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return n.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),s.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),s.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},89233:(t,e,r)=>{"use strict";r.d(e,{X:()=>o});var n=r(70655),i=r(70211),s=r(41016),o=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return n.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},42632:(t,e,r)=>{"use strict";r.d(e,{P:()=>a,W:()=>n});var n,i=r(5631),s=r(18170),o=r(64944);n||(n={});var a=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},92772:(t,e,r)=>{"use strict";r.d(e,{y:()=>u});var n=r(93642),i=r(10979),s=r(23142),o=r(32174),a=r(15050),c=r(62561),l=r(30150),u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,a=function(t,e,r){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||r?new i.L(t,e,r):new i.L(o.c)}(t,e,r);if(n?a.add(n.call(a,this.source)):a.add(this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,n._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e{"use strict";r.d(e,{c:()=>s});var n=r(30150),i=r(71644),s={closed:!0,next:function(t){},error:function(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},62039:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(70655),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(10979).L)},12630:(t,e,r)=>{"use strict";r.d(e,{t:()=>u});var n=r(70655),i=r(70211),s=r(92546),o=r(98760),a=r(89276),c=r(41016),l=r(18253),u=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;if(this.closed)throw new c.N;if(this.isStopped||this.hasError?e=o.w.EMPTY:(this.observers.push(t),e=new l.W(this,t)),i&&t.add(t=new a.ht(t,i)),r)for(var u=0;ue&&(s=Math.max(s,i-e)),s>0&&n.splice(0,s),n},e}(i.xQ),h=function(t,e){this.time=t,this.value=e}},38725:(t,e,r)=>{"use strict";r.d(e,{b:()=>n});var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}()},70211:(t,e,r)=>{"use strict";r.d(e,{Yc:()=>u,xQ:()=>h});var n=r(70655),i=r(92772),s=r(10979),o=r(98760),a=r(41016),c=r(18253),l=r(23142),u=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return n.__extends(e,t),e}(s.L),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return n.__extends(e,t),e.prototype[l.b]=function(){return new u(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.N;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i{"use strict";r.d(e,{W:()=>i});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return n.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(r(98760).w)},10979:(t,e,r)=>{"use strict";r.d(e,{L:()=>u});var n=r(70655),i=r(14156),s=r(32174),o=r(98760),a=r(23142),c=r(30150),l=r(71644),u=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.c;break;case 1:if(!r){o.destination=s.c;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,r,n,i)}return o}return n.__extends(e,t),e.prototype[a.b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(o.w),h=function(t){function e(e,r,n,o){var a,c=t.call(this)||this;c._parentSubscriber=e;var l=c;return(0,i.m)(r)?a=r:r&&(a=r.next,n=r.error,o=r.complete,r!==s.c&&(l=Object.create(r),(0,i.m)(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=a,c._error=n,c._complete=o,c}return n.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;(0,l.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw t;(0,l.z)(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return c.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):((0,l.z)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},98760:(t,e,r)=>{"use strict";r.d(e,{w:()=>a});var n=r(59026),i=r(92009),s=r(14156),o=r(28782),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,a=r._parentOrParents,l=r._ctorUnsubscribe,u=r._unsubscribe,h=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var d=0;d{"use strict";r.d(e,{v:()=>i});var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},17604:(t,e,r)=>{"use strict";r.d(e,{Ds:()=>c,IY:()=>a,ft:()=>l});var n=r(70655),i=r(10979),s=r(92772),o=r(67843),a=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.L),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.L);function l(t,e){if(!e.closed){if(t instanceof s.y)return t.subscribe(e);var r;try{r=(0,o.s)(t)(e)}catch(t){e.error(t)}return r}}},33140:(t,e,r)=>{"use strict";r.d(e,{N:()=>l,c:()=>c});var n=r(70655),i=r(70211),s=r(92772),o=r(98760),a=r(3018),c=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return n.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new o.w).add(this.source.subscribe(new u(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.w.EMPTY)),t},e.prototype.refCount=function(){return(0,a.x)()(this)},e}(s.y),l=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),u=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.Yc)},75142:(t,e,r)=>{"use strict";r.d(e,{Ms:()=>h,aj:()=>u});var n=r(70655),i=r(17507),s=r(59026),o=r(62039),a=r(52080),c=r(43375),l={};function u(){for(var t=[],e=0;e{"use strict";r.d(e,{z:()=>s});var n=r(18170),i=r(52257);function s(){for(var t=[],e=0;e{"use strict";r.d(e,{P:()=>o});var n=r(92772),i=r(55760),s=r(5631);function o(t){return new n.y((function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?(0,i.D)(r):(0,s.c)()).subscribe(e)}))}},5631:(t,e,r)=>{"use strict";r.d(e,{E:()=>i,c:()=>s});var n=r(92772),i=new n.y((function(t){return t.complete()}));function s(t){return t?function(t){return new n.y((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},55760:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(92772),i=r(67843),s=r(38107);function o(t,e){return e?(0,s.x)(t,e):t instanceof n.y?t:new n.y((0,i.s)(t))}},43375:(t,e,r)=>{"use strict";r.d(e,{n:()=>o});var n=r(92772),i=r(56900),s=r(53109);function o(t,e){return e?(0,s.r)(t,e):new n.y((0,i.V)(t))}},14370:(t,e,r)=>{"use strict";r.d(e,{T:()=>a});var n=r(92772),i=r(17507),s=r(22556),o=r(43375);function a(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof c&&(r=t.pop()),null===a&&1===t.length&&t[0]instanceof n.y?t[0]:(0,s.J)(r)((0,o.n)(t,a))}},18170:(t,e,r)=>{"use strict";r.d(e,{of:()=>o});var n=r(17507),i=r(43375),s=r(53109);function o(){for(var t=[],e=0;e{"use strict";r.d(e,{S3:()=>c});var n=r(70655),i=r(59026),s=r(43375),o=r(62039),a=r(52080);function c(){for(var t=[],e=0;e{"use strict";r.d(e,{_:()=>i});var n=r(92772);function i(t,e){return e?new n.y((function(r){return e.schedule(s,0,{error:t,subscriber:r})})):new n.y((function(e){return e.error(t)}))}function s(t){var e=t.error;t.subscriber.error(e)}},69604:(t,e,r)=>{"use strict";r.d(e,{H:()=>a});var n=r(92772),i=r(90964),s=r(35812),o=r(17507);function a(t,e,r){void 0===t&&(t=0);var a=-1;return(0,s.k)(e)?a=Number(e)<1?1:Number(e):(0,o.K)(e)&&(r=e),(0,o.K)(r)||(r=i.P),new n.y((function(e){var n=(0,s.k)(t)?t:+t-r.now();return r.schedule(c,n,{index:0,period:a,subscriber:e})}))}function c(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}},25080:(t,e,r)=>{"use strict";r.d(e,{$R:()=>l,mx:()=>u});var n=r(70655),i=r(43375),s=r(59026),o=r(10979),a=r(999),c=r(17604);function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.__extends(e,t),e.prototype[a.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,c.ft)(this.observable,new c.IY(this))},e}(c.Ds)},52257:(t,e,r)=>{"use strict";r.d(e,{u:()=>i});var n=r(22556);function i(){return(0,n.J)(1)}},66008:(t,e,r)=>{"use strict";r.d(e,{h:()=>s});var n=r(70655),i=r(10979);function s(t,e){return function(r){return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.L)},11120:(t,e,r)=>{"use strict";r.d(e,{T:()=>d,v:()=>c});var n=r(70655),i=r(10979),s=r(98760),o=r(92772),a=r(70211);function c(t,e,r,n){return function(i){return i.lift(new l(t,e,r,n))}}var l=function(){function t(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),u=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.keySelector=r,o.elementSelector=n,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var r=this.groups;r||(r=this.groups=new Map);var n,i=r.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(t){this.error(t)}else n=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.xQ,r.set(e,i);var s=new d(e,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(o.subscribe(new h(e,i,this)))}}i.closed||i.next(n)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,r){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),h=function(t){function e(e,r,n){var i=t.call(this,r)||this;return i.key=e,i.group=r,i.parent=n,i}return n.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),d=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return n.__extends(e,t),e.prototype._subscribe=function(t){var e=new s.w,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new f(r)),e.add(n.subscribe(t)),e},e}(o.y),f=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return n.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.w)},55709:(t,e,r)=>{"use strict";r.d(e,{U:()=>s});var n=r(70655),i=r(10979);function s(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}(),a=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.L)},22556:(t,e,r)=>{"use strict";r.d(e,{J:()=>s});var n=r(47746),i=r(43608);function s(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,n.zg)(i.y,t)}},47746:(t,e,r)=>{"use strict";r.d(e,{VS:()=>u,zg:()=>a});var n=r(70655),i=r(55709),s=r(55760),o=r(17604);function a(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(a((function(r,n){return(0,s.D)(t(r,n)).pipe((0,i.U)((function(t,i){return e(r,t,n,i)})))}),r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new c(t,r))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}(),l=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.Ds),u=a},89276:(t,e,r)=>{"use strict";r.d(e,{QV:()=>o,ht:()=>c});var n=r(70655),i=r(10979),s=r(42632);function o(t,e){return void 0===e&&(e=0),function(r){return r.lift(new a(t,e))}}var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler,this.delay))},t}(),c=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return n.__extends(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new l(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()},e}(i.L),l=function(t,e){this.notification=t,this.destination=e}},3018:(t,e,r)=>{"use strict";r.d(e,{x:()=>s});var n=r(70655),i=r(10979);function s(){return function(t){return t.lift(new o(t))}}var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new a(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(i.L)},53109:(t,e,r)=>{"use strict";r.d(e,{r:()=>s});var n=r(92772),i=r(98760);function s(t,e){return new n.y((function(r){var n=new i.w,s=0;return n.add(e.schedule((function(){s!==t.length?(r.next(t[s++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}},38107:(t,e,r)=>{"use strict";r.d(e,{x:()=>u});var n=r(92772),i=r(98760),s=r(15050),o=r(53109),a=r(999),c=r(70336),l=r(39217);function u(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.L]}(t))return function(t,e){return new n.y((function(r){var n=new i.w;return n.add(e.schedule((function(){var i=t[s.L]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))}))),n}))}(t,e);if((0,c.t)(t))return function(t,e){return new n.y((function(r){var n=new i.w;return n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t),n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))}))),n}))}(t,e);if((0,l.z)(t))return(0,o.r)(t,e);if(function(t){return t&&"function"==typeof t[a.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.y((function(r){var n,s=new i.w;return s.add((function(){n&&"function"==typeof n.return&&n.return()})),s.add(e.schedule((function(){n=t[a.hZ](),s.add(e.schedule((function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}})))}))),s}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},96114:(t,e,r)=>{"use strict";r.d(e,{o:()=>i});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return n.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return n.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(98760).w))},78399:(t,e,r)=>{"use strict";r.d(e,{v:()=>s});var n=r(70655),i=r(38725),s=function(t){function e(r,n){void 0===n&&(n=i.b.now);var s=t.call(this,r,(function(){return e.delegate&&e.delegate!==s?e.delegate.now():n()}))||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return n.__extends(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(i.b)},6650:(t,e,r)=>{"use strict";r.d(e,{e:()=>u,E:()=>l});var n=r(70655),i=1,s=Promise.resolve(),o={};function a(t){return t in o&&(delete o[t],!0)}var c=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(c=e.flush.bind(e,null),l=i++,o[l]=!0,s.then((function(){return a(l)&&c()})),l)));var c,l},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(a(r),e.scheduled=void 0)},e}(r(96114).o),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n{"use strict";r.d(e,{P:()=>s,z:()=>i});var n=r(96114),i=new(r(78399).v)(n.o),s=i},92546:(t,e,r)=>{"use strict";r.d(e,{c:()=>o,N:()=>s});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(r(96114).o),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r(78399).v))(i),o=s},999:(t,e,r)=>{"use strict";r.d(e,{hZ:()=>n});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},15050:(t,e,r)=>{"use strict";r.d(e,{L:()=>n});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},23142:(t,e,r)=>{"use strict";r.d(e,{b:()=>n});var n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},76565:(t,e,r)=>{"use strict";r.d(e,{W:()=>n});var n=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},26929:(t,e,r)=>{"use strict";r.d(e,{K:()=>n});var n=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},41016:(t,e,r)=>{"use strict";r.d(e,{N:()=>n});var n=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},81462:(t,e,r)=>{"use strict";r.d(e,{W:()=>n});var n=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},28782:(t,e,r)=>{"use strict";r.d(e,{B:()=>n});var n=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},93642:(t,e,r)=>{"use strict";r.d(e,{_:()=>i});var n=r(10979);function i(t){for(;t;){var e=t,r=e.closed,i=e.destination,s=e.isStopped;if(r||s)return!1;t=i&&i instanceof n.L?i:null}return!0}},71644:(t,e,r)=>{"use strict";function n(t){setTimeout((function(){throw t}),0)}r.d(e,{z:()=>n})},43608:(t,e,r)=>{"use strict";function n(t){return t}r.d(e,{y:()=>n})},59026:(t,e,r)=>{"use strict";r.d(e,{k:()=>n});var n=Array.isArray||function(t){return t&&"number"==typeof t.length}},39217:(t,e,r)=>{"use strict";r.d(e,{z:()=>n});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},14156:(t,e,r)=>{"use strict";function n(t){return"function"==typeof t}r.d(e,{m:()=>n})},35812:(t,e,r)=>{"use strict";r.d(e,{k:()=>i});var n=r(59026);function i(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},92009:(t,e,r)=>{"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,{K:()=>n})},70336:(t,e,r)=>{"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.d(e,{t:()=>n})},17507:(t,e,r)=>{"use strict";function n(t){return t&&"function"==typeof t.schedule}r.d(e,{K:()=>n})},33306:(t,e,r)=>{"use strict";function n(){}r.d(e,{Z:()=>n})},18463:(t,e,r)=>{"use strict";function n(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}r.d(e,{f:()=>n})},62561:(t,e,r)=>{"use strict";r.d(e,{U:()=>s,z:()=>i});var n=r(43608);function i(){for(var t=[],e=0;e{"use strict";r.d(e,{s:()=>u});var n=r(56900),i=r(71644),s=r(999),o=r(15050),a=r(39217),c=r(70336),l=r(92009),u=function(t){if(t&&"function"==typeof t[o.L])return u=t,function(t){var e=u[o.L]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,a.z)(t))return(0,n.V)(t);if((0,c.t)(t))return r=t,function(t){return r.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.z),t};if(t&&"function"==typeof t[s.hZ])return e=t,function(t){for(var r=e[s.hZ]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add((function(){r.return&&r.return()})),t};var e,r,u,h=(0,l.K)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+h+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},56900:(t,e,r)=>{"use strict";r.d(e,{V:()=>n});var n=function(t){return function(e){for(var r=0,n=t.length;r{"use strict";r.d(e,{D:()=>a});var n=r(70655),i=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r(10979).L),s=r(67843),o=r(92772);function a(t,e,r,n,a){if(void 0===a&&(a=new i(t,r,n)),!a.closed)return e instanceof o.y?e.subscribe(a):(0,s.s)(e)(a)}},11717:(t,e,r)=>{"use strict";r.r(e),r.d(e,{audit:()=>s,auditTime:()=>u,buffer:()=>h,bufferCount:()=>m,bufferTime:()=>v,bufferToggle:()=>P,bufferWhen:()=>T,catchError:()=>L,combineAll:()=>F,combineLatest:()=>$,concat:()=>W,concatAll:()=>V.u,concatMap:()=>K,concatMapTo:()=>Z,count:()=>Q,debounce:()=>X,debounceTime:()=>rt,defaultIfEmpty:()=>ot,delay:()=>ht,delayWhen:()=>gt,dematerialize:()=>At,distinct:()=>_t,distinctUntilChanged:()=>Ct,distinctUntilKeyChanged:()=>Pt,elementAt:()=>Ht,endWith:()=>qt,every:()=>Wt,exhaust:()=>Kt,exhaustMap:()=>Yt,expand:()=>ee,filter:()=>Nt.h,finalize:()=>ie,find:()=>ae,findIndex:()=>ue,first:()=>de,flatMap:()=>G.VS,groupBy:()=>fe.v,ignoreElements:()=>pe,isEmpty:()=>ye,last:()=>xe,map:()=>Jt.U,mapTo:()=>_e,materialize:()=>Ce,max:()=>Be,merge:()=>Ue,mergeAll:()=>je.J,mergeMap:()=>G.zg,mergeMapTo:()=>De,mergeScan:()=>Fe,min:()=>$e,multicast:()=>We,observeOn:()=>Ge.QV,onErrorResumeNext:()=>Ke,pairwise:()=>Je,partition:()=>er,pluck:()=>rr,publish:()=>ir,publishBehavior:()=>or,publishLast:()=>cr,publishReplay:()=>ur,race:()=>dr,reduce:()=>Re,refCount:()=>Sr.x,repeat:()=>fr,repeatWhen:()=>gr,retry:()=>br,retryWhen:()=>Er,sample:()=>Mr,sampleTime:()=>Ir,scan:()=>Pe,sequenceEqual:()=>Tr,share:()=>jr,shareReplay:()=>Dr,single:()=>Fr,skip:()=>$r,skipLast:()=>Vr,skipUntil:()=>Zr,skipWhile:()=>Yr,startWith:()=>en,subscribeOn:()=>on,switchAll:()=>hn,switchMap:()=>cn,switchMapTo:()=>dn,take:()=>Dt,takeLast:()=>ve,takeUntil:()=>fn,takeWhile:()=>gn,tap:()=>An,throttle:()=>Sn,throttleTime:()=>kn,throwIfEmpty:()=>Rt,timeInterval:()=>Tn,timeout:()=>Fn,timeoutWith:()=>Ln,timestamp:()=>zn,toArray:()=>qn,window:()=>Wn,windowCount:()=>Kn,windowTime:()=>Jn,windowToggle:()=>ii,windowWhen:()=>ai,withLatestFrom:()=>ui,zip:()=>pi,zipAll:()=>mi});var n=r(70655),i=r(17604);function s(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var r=(0,i.ft)(e,new i.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,r=t.hasValue,n=t.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),r&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),c=r(90964),l=r(69604);function u(t,e){return void 0===e&&(e=c.P),s((function(){return(0,l.H)(t,e)}))}function h(t){return function(e){return e.lift(new d(t))}}var d=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.closingNotifier))},t}(),f=function(t){function e(e,r){var n=t.call(this,e)||this;return n.buffer=[],n.add((0,i.ft)(r,new i.IY(n))),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),p=r(10979);function m(t,e){return void 0===e&&(e=null),function(r){return r.lift(new g(t,e))}}var g=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?w:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,r){var n=t.call(this,e)||this;return n.bufferSize=r,n.buffer=[],n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.L),w=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.bufferSize=r,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return n.__extends(e,t),e.prototype._next=function(t){var e=this,r=e.bufferSize,n=e.startBufferEvery,i=e.buffers,s=e.count;this.count++,s%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(t),a.length===r&&(i.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,r=this.destination;e.length>0;){var n=e.shift();n.length>0&&r.next(n)}t.prototype._complete.call(this)},e}(p.L),b=r(17507);function v(t){var e=arguments.length,r=c.P;(0,b.K)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new A(t,n,i,r))}}var A=function(){function t(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new x(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),E=function(){this.buffer=[]},x=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.bufferTimeSpan=r,o.bufferCreationInterval=n,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var a=o.openContext();if(o.timespanOnly=null==n||n<0,o.timespanOnly){var c={subscriber:o,context:a,bufferTimeSpan:r};o.add(a.closeAction=s.schedule(_,r,c))}else{var l={subscriber:o,context:a},u={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:o,scheduler:s};o.add(a.closeAction=s.schedule(M,r,l)),o.add(s.schedule(S,n,u))}return o}return n.__extends(e,t),e.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;i0;){var n=e.shift();r.next(n.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(_,r,n))}},e.prototype.openContext=function(){var t=new E;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.L);function _(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function S(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,s=n.openContext();n.closed||(n.add(s.closeAction=i.schedule(M,r,{subscriber:n,context:s})),this.schedule(t,e))}function M(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var C=r(98760),k=r(52080),I=r(62039);function P(t,e){return function(r){return r.lift(new O(t,e))}}var O=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.openings,this.closingSelector))},t}(),N=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.contexts=[],i.add((0,k.D)(i,r)),i}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,r=new C.w,n={buffer:[],subscription:r};e.push(n);var i=(0,k.D)(this,t,n);!i||i.closed?this.closeBuffer(n):(i.context=n,this.add(i),r.add(i))},e}(I.L);function T(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.closingSelector))},t}(),B=function(t){function e(e,r){var n=t.call(this,e)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new C.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function L(t){return function(e){var r=new U(t),n=e.lift(r);return r.caught=n}}var U=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.selector,this.caught))},t}(),j=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.selector=r,i.caught=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var n=new i.IY(this);this.add(n);var s=(0,i.ft)(r,n);s!==n&&this.add(s)}},e}(i.Ds),D=r(75142);function F(t){return function(e){return e.lift(new D.Ms(t))}}var z=r(59026),H=r(55760);function $(){for(var t=[],e=0;e0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var s=Math.max(0,r[0].time-n.now());this.schedule(t,s)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new pt(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ut.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ut.P.createComplete()),this.unsubscribe()},e}(p.L),pt=function(t,e){this.time=t,this.notification=e},mt=r(92772);function gt(t,e){return e?function(r){return new bt(r,e).lift(new yt(t))}:function(e){return e.lift(new yt(t))}}var yt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new wt(t,this.delayDurationSelector))},t}(),wt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var r=this.delayDurationSelector(t,e);r&&this.tryDelay(r,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var r=(0,k.D)(this,t,e);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(I.L),bt=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subscriptionDelay=r,n}return n.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new vt(t,this.source))},e}(mt.y),vt=function(t){function e(e,r){var n=t.call(this)||this;return n.parent=e,n.source=r,n.sourceSubscribed=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.L);function At(){return function(t){return t.lift(new Et)}}var Et=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xt(t))},t}(),xt=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.L);function _t(t,e){return function(r){return r.lift(new St(t,e))}}var St=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Mt(t,this.keySelector,this.flushes))},t}(),Mt=function(t){function e(e,r,n){var s=t.call(this,e)||this;return s.keySelector=r,s.values=new Set,n&&s.add((0,i.ft)(n,new i.IY(s))),s}return n.__extends(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(t){return void r.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},e}(i.Ds);function Ct(t,e){return function(r){return r.lift(new kt(t,e))}}var kt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new It(t,this.compare,this.keySelector))},t}(),It=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(p.L);function Pt(t,e){return Ct((function(r,n){return e?e(r[t],n[t]):r[t]===n[t]}))}var Ot=r(76565),Nt=r(66008),Tt=r(26929);function Rt(t){return void 0===t&&(t=Ut),function(e){return e.lift(new Bt(t))}}var Bt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.errorFactory))},t}(),Lt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.L);function Ut(){return new Tt.K}var jt=r(5631);function Dt(t){return function(e){return 0===t?(0,jt.c)():e.lift(new Ft(t))}}var Ft=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.W}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.total))},t}(),zt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.L);function Ht(t,e){if(t<0)throw new Ot.W;var r=arguments.length>=2;return function(n){return n.pipe((0,Nt.h)((function(e,r){return r===t})),Dt(1),r?ot(e):Rt((function(){return new Ot.W})))}}var $t=r(18170);function qt(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function ie(t){return function(e){return e.lift(new se(t))}}var se=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.callback))},t}(),oe=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new C.w(r)),n}return n.__extends(e,t),e}(p.L);function ae(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(r){return r.lift(new ce(t,r,!1,e))}}var ce=function(){function t(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new le(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),le=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.predicate=r,o.source=n,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,r=this.thisArg,n=this.index++;try{e.call(r||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.L);function ue(t,e){return function(r){return r.lift(new ce(t,r,!0,e))}}var he=r(43608);function de(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,Nt.h)((function(e,r){return t(e,r,n)})):he.y,Dt(1),r?ot(e):Rt((function(){return new Tt.K})))}}var fe=r(11120);function pe(){return function(t){return t.lift(new me)}}var me=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ge(t))},t}(),ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype._next=function(t){},e}(p.L);function ye(){return function(t){return t.lift(new we)}}var we=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function ve(t){return function(e){return 0===t?(0,jt.c)():e.lift(new Ae(t))}}var Ae=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.W}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.total))},t}(),Ee=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=new Array,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i=2;return function(n){return n.pipe(t?(0,Nt.h)((function(e,r){return t(e,r,n)})):he.y,ve(1),r?ot(e):Rt((function(){return new Tt.K})))}}function _e(t){return function(e){return e.lift(new Se(t))}}var Se=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.value))},t}(),Me=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.L);function Ce(){return function(t){return t.lift(new ke)}}var ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ie(t))},t}(),Ie=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(ut.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ut.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ut.P.createComplete()),t.complete()},e}(p.L);function Pe(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new Oe(t,e,r))}}var Oe=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ne=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.accumulator=r,s._seed=n,s.hasSeed=i,s.index=0,s}return n.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(p.L),Te=r(62561);function Re(t,e){return arguments.length>=2?function(r){return(0,Te.z)(Pe(t,e),ve(1),ot(e))(r)}:function(e){return(0,Te.z)(Pe((function(e,r,n){return t(e,r,n+1)})),ve(1))(e)}}function Be(t){return Re("function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e})}var Le=r(14370);function Ue(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function $e(t){return Re("function"==typeof t?function(e,r){return t(e,r)<0?e:r}:function(t,e){return t-1&&(this.count=r-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function gr(t){return function(e){return e.lift(new yr(t))}}var yr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new wr(t,this.notifier,e))},t}(),wr=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return n.__extends(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new nr.xQ;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function br(t){return void 0===t&&(t=-1),function(e){return e.lift(new vr(t,e))}}var vr=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ar(t,this.count,this.source))},t}(),Ar=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function Er(t){return function(e){return e.lift(new xr(t,e))}}var xr=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new _r(t,this.notifier,this.source))},t}(),_r=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,s=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new nr.xQ;try{n=(0,this.notifier)(r)}catch(e){return t.prototype.error.call(this,e)}s=(0,i.ft)(n,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=s,r.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),Sr=r(3018);function Mr(t){return function(e){return e.lift(new Cr(t))}}var Cr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new kr(t),n=e.subscribe(r);return n.add((0,i.ft)(this.notifier,new i.IY(r))),n},t}(),kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return n.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function Ir(t,e){return void 0===e&&(e=c.P),function(r){return r.lift(new Pr(t,e))}}var Pr=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Or(t,this.period,this.scheduler))},t}(),Or=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.period=r,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(Nr,r,{subscriber:i,period:r})),i}return n.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.L);function Nr(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}function Tr(t,e){return function(r){return r.lift(new Rr(t,e))}}var Rr=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Br(t,this.compareTo,this.comparator))},t}(),Br=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.compareTo=r,i.comparator=n,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(r.subscribe(new Lr(e,i))),i}return n.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,r=t._b,n=t.comparator;e.length>0&&r.length>0;){var i=e.shift(),s=r.shift(),o=!1;try{o=n?n(i,s):i===s}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.L),Lr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.parent=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.L);function Ur(){return new nr.xQ}function jr(){return function(t){return(0,Sr.x)()(We(Ur)(t))}}function Dr(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){return t.lift(function(t){var e,r,n=t.bufferSize,i=void 0===n?Number.POSITIVE_INFINITY:n,s=t.windowTime,o=void 0===s?Number.POSITIVE_INFINITY:s,a=t.refCount,c=t.scheduler,l=0,u=!1,h=!1;return function(t){var n;l++,!e||u?(u=!1,e=new lr.t(i,o,c),n=e.subscribe(this),r=t.subscribe({next:function(t){e.next(t)},error:function(t){u=!0,e.error(t)},complete:function(){h=!0,r=void 0,e.complete()}}),h&&(r=void 0)):n=e.subscribe(this),this.add((function(){l--,n.unsubscribe(),n=void 0,r&&!h&&a&&0===l&&(r.unsubscribe(),r=void 0,e=void 0)}))}}(n))}}function Fr(t){return function(e){return e.lift(new zr(t,e))}}var zr=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Hr(t,this.predicate,this.source))},t}(),Hr=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.seenValue=!1,i.index=0,i}return n.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Tt.K)},e}(p.L);function $r(t){return function(e){return e.lift(new qr(t))}}var qr=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Wr(t,this.total))},t}(),Wr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.L);function Vr(t){return function(e){return e.lift(new Gr(t))}}var Gr=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ot.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.L(t)):e.subscribe(new Kr(t,this._skipCount))},t}(),Kr=function(t){function e(e,r){var n=t.call(this,e)||this;return n._skipCount=r,n._count=0,n._ring=new Array(r),n}return n.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,r=this._count++;if(r0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,o=0;o=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new nr.xQ;i.push(c),r.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.L);function Jn(t){var e=c.P,r=null,n=Number.POSITIVE_INFINITY;return(0,b.K)(arguments[3])&&(e=arguments[3]),(0,b.K)(arguments[2])?e=arguments[2]:(0,nn.k)(arguments[2])&&(n=Number(arguments[2])),(0,b.K)(arguments[1])?e=arguments[1]:(0,nn.k)(arguments[1])&&(r=Number(arguments[1])),function(i){return i.lift(new Yn(t,r,n,e))}}var Yn=function(){function t(t,e,r,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Xn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return n.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(nr.xQ),ti=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.destination=e,o.windowTimeSpan=r,o.windowCreationInterval=n,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var a=o.openWindow();if(null!==n&&n>=0){var c={subscriber:o,window:a,context:null},l={windowTimeSpan:r,windowCreationInterval:n,subscriber:o,scheduler:s};o.add(s.schedule(ni,r,c)),o.add(s.schedule(ri,n,l))}else{var u={subscriber:o,window:a,windowTimeSpan:r};o.add(s.schedule(ei,r,u))}return o}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Xn;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.L);function ei(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,r)}function ri(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,s=r.openWindow(),o=this,a={action:o,subscription:null},c={subscriber:r,window:s,context:a};a.subscription=n.schedule(ni,e,c),o.add(a.subscription),o.schedule(t,i)}function ni(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}function ii(t,e){return function(r){return r.lift(new si(t,e))}}var si=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new oi(t,this.openings,this.closingSelector))},t}(),oi=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.openings=r,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=(0,k.D)(i,r,r)),i}return n.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n0){var i=n.indexOf(r);-1!==i&&n.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(I.L),fi=r(25080);function pi(){for(var t=[],e=0;e{var n=r(48764),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},22257:(t,e,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(t.value,e).test(this.value):""===t.operator?""===t.value||new h(this.value,e).test(t.semver):!((e=s(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const s=r(12893),{safeRe:o,t:a}=r(55765),c=r(7539),l=r(74225),u=r(26376),h=r(66902)},66902:(t,e,r)=>{class n{constructor(t,e){if(e=s(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!g(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+t,r=i.get(e);if(r)return r;const n=this.options.loose,s=n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];t=t.replace(s,I(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(l[u.COMPARATORTRIM],h),a("comparator trim",t),t=t.replace(l[u.TILDETRIM],d),a("tilde trim",t),t=t.replace(l[u.CARETTRIM],f),a("caret trim",t);let c=t.split(" ").map((t=>b(t,this.options))).join(" ").split(/\s+/).map((t=>k(t,this.options)));n&&(c=c.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(l[u.COMPARATORLOOSE]))))),a("range list",c);const y=new Map,w=c.map((t=>new o(t,this.options)));for(const t of w){if(g(t))return[t];y.set(t.value,t)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return i.set(e,v),v}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>w(r,e)&&t.set.some((t=>w(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}for(let e=0;e"<0.0.0-0"===t.value,y=t=>""===t.value,w=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},b=(t,e)=>(a("comp",t,e),t=x(t,e),a("caret",t),t=A(t,e),a("tildes",t),t=S(t,e),a("xrange",t),t=C(t,e),a("stars",t),t),v=t=>!t||"x"===t.toLowerCase()||"*"===t,A=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{const r=e.loose?l[u.TILDELOOSE]:l[u.TILDE];return t.replace(r,((e,r,n,i,s)=>{let o;return a("tilde",t,e,r,n,i,s),v(r)?o="":v(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:v(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},x=(t,e)=>t.trim().split(/\s+/).map((t=>_(t,e))).join(" "),_=(t,e)=>{a("caret",t,e);const r=e.loose?l[u.CARETLOOSE]:l[u.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,s,o)=>{let c;return a("caret",t,e,r,i,s,o),v(r)?c="":v(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(s)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),c="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",c),c}))},S=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>M(t,e))).join(" ")),M=(t,e)=>{t=t.trim();const r=e.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return t.replace(r,((r,n,i,s,o,c)=>{a("xRange",t,r,n,i,s,o,c);const l=v(i),u=l||v(s),h=u||v(o),d=h;return"="===n&&d&&(n=""),c=e.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(s=0),o=0,">"===n?(n=">=",u?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",u?i=+i+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+i}.${s}.${o}${c}`):u?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},C=(t,e)=>(a("replaceStars",t,e),t.trim().replace(l[u.STAR],"")),k=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(l[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),I=t=>(e,r,n,i,s,o,a,c,l,u,h,d,f)=>`${r=v(n)?"":v(i)?`>=${n}.0.0${t?"-0":""}`:v(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=v(l)?"":v(u)?`<${+l+1}.0.0-0`:v(h)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${h}-${d}`:t?`<${l}.${u}.${+h+1}-0`:`<=${c}`}`.trim(),P=(t,e,r)=>{for(let r=0;r0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},26376:(t,e,r)=>{const n=r(74225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(83295),{safeRe:o,t:a}=r(55765),c=r(12893),{compareIdentifiers:l}=r(86742);class u{constructor(t,e){if(e=c(e),t instanceof u){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=u},13507:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},7539:(t,e,r)=>{const n=r(58718),i=r(81194),s=r(71312),o=r(25903),a=r(21544),c=r(12056);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,l);case"!=":return i(t,r,l);case">":return s(t,r,l);case">=":return o(t,r,l);case"<":return a(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},99038:(t,e,r)=>{const n=r(26376),i=r(33959),{safeRe:s,t:o}=r(55765);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=s[o.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),s[o.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;s[o.COERCERTL].lastIndex=-1}else r=t.match(s[o.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},88880:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r)=>{const i=new n(t,r),s=new n(e,r);return i.compare(s)||i.compareBuild(s)}},27880:(t,e,r)=>{const n=r(46269);t.exports=(t,e)=>n(t,e,!0)},46269:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},38419:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,null,!0),i=n(e,null,!0),s=r.compare(i);if(0===s)return null;const o=s>0,a=o?r:i,c=o?i:r,l=!!a.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const u=l?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"}},58718:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>0===n(t,e,r)},71312:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)>0},25903:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)>=0},20253:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r,i,s)=>{"string"==typeof r&&(s=i,i=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,i,s).version}catch(t){return null}}},21544:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)<0},12056:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(t,e,r)<=0},38679:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).major},87789:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).minor},81194:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>0!==n(t,e,r)},33959:(t,e,r)=>{const n=r(26376);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},52358:(t,e,r)=>{const n=r(26376);t.exports=(t,e)=>new n(t,e).patch},57559:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},79795:(t,e,r)=>{const n=r(46269);t.exports=(t,e,r)=>n(e,t,r)},63657:(t,e,r)=>{const n=r(88880);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},45712:(t,e,r)=>{const n=r(66902);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},21100:(t,e,r)=>{const n=r(88880);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},76397:(t,e,r)=>{const n=r(33959);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},81249:(t,e,r)=>{const n=r(55765),i=r(83295),s=r(26376),o=r(86742),a=r(33959),c=r(76397),l=r(13507),u=r(20253),h=r(38419),d=r(38679),f=r(87789),p=r(52358),m=r(57559),g=r(46269),y=r(79795),w=r(27880),b=r(88880),v=r(21100),A=r(63657),E=r(71312),x=r(21544),_=r(58718),S=r(81194),M=r(25903),C=r(12056),k=r(7539),I=r(99038),P=r(22257),O=r(66902),N=r(45712),T=r(51042),R=r(85775),B=r(71657),L=r(95316),U=r(89042),j=r(6826),D=r(97606),F=r(50032),z=r(82937),H=r(17908),$=r(50799);t.exports={parse:a,valid:c,clean:l,inc:u,diff:h,major:d,minor:f,patch:p,prerelease:m,compare:g,rcompare:y,compareLoose:w,compareBuild:b,sort:v,rsort:A,gt:E,lt:x,eq:_,neq:S,gte:M,lte:C,cmp:k,coerce:I,Comparator:P,Range:O,satisfies:N,toComparators:T,maxSatisfying:R,minSatisfying:B,minVersion:L,validRange:U,outside:j,gtr:D,ltr:F,intersects:z,simplifyRange:H,subset:$,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},83295:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},74225:(t,e,r)=>{var n=r(34155);const i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=i},86742:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:tr(e,t)}},12893:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},55765:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=r(83295),o=r(74225),a=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],u=e.t={};let h=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",s],[d,i]],p=(t,e,r)=>{const n=(t=>{for(const[e,r]of f)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=h++;o(t,i,e),u[t]=i,l[i]=e,a[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),p("FULL",`^${l[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),p("LOOSE",`^${l[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),p("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",l[u.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(t,e,r)=>{const n=r(6826);t.exports=(t,e,r)=>n(t,e,">",r)},82937:(t,e,r)=>{const n=r(66902);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e,r))},50032:(t,e,r)=>{const n=r(6826);t.exports=(t,e,r)=>n(t,e,"<",r)},85775:(t,e,r)=>{const n=r(26376),i=r(66902);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&-1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},71657:(t,e,r)=>{const n=r(26376),i=r(66902);t.exports=(t,e,r)=>{let s=null,o=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(s&&1!==o.compare(t)||(s=t,o=new n(s,r)))})),s}},95316:(t,e,r)=>{const n=r(26376),i=r(66902),s=r(71312);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!s(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!o||r&&!s(r,o)||(r=o)}return r&&t.test(r)?r:null}},6826:(t,e,r)=>{const n=r(26376),i=r(22257),{ANY:s}=i,o=r(66902),a=r(45712),c=r(71312),l=r(21544),u=r(12056),h=r(25903);t.exports=(t,e,r,d)=>{let f,p,m,g,y;switch(t=new n(t,d),e=new o(e,d),r){case">":f=c,p=u,m=l,g=">",y=">=";break;case"<":f=l,p=h,m=c,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,d))return!1;for(let r=0;r{t.semver===s&&(t=new i(">=0.0.0")),o=o||t,a=a||t,f(t.semver,o.semver,d)?o=t:m(t.semver,a.semver,d)&&(a=t)})),o.operator===g||o.operator===y)return!1;if((!a.operator||a.operator===g)&&p(t,a.semver))return!1;if(a.operator===y&&m(t,a.semver))return!1}return!0}},17908:(t,e,r)=>{const n=r(45712),i=r(46269);t.exports=(t,e,r)=>{const s=[];let o=null,a=null;const c=t.sort(((t,e)=>i(t,e,r)));for(const t of c)n(t,e,r)?(a=t,o||(o=t)):(a&&s.push([o,a]),a=null,o=null);o&&s.push([o,null]);const l=[];for(const[t,e]of s)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const u=l.join(" || "),h="string"==typeof e.raw?e.raw:String(e);return u.length{const n=r(66902),i=r(22257),{ANY:s}=i,o=r(45712),a=r(46269),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===s){if(r.includePrerelease)return!0;e=l}const n=new Set;let i,u,f,p,m,g,y;for(const e of t)">"===e.operator||">="===e.operator?i=h(i,e,r):"<"===e.operator||"<="===e.operator?u=d(u,e,r):n.add(e.semver);if(n.size>1)return null;if(i&&u){if(f=a(i.semver,u.semver,r),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const t of n){if(i&&!o(t,String(i),r))return null;if(u&&!o(t,String(u),r))return null;for(const n of e)if(!o(t,String(n),r))return!1;return!0}let w=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver,b=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===u.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(y=y||">"===t.operator||">="===t.operator,g=g||"<"===t.operator||"<="===t.operator,i)if(b&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch&&(b=!1),">"===t.operator||">="===t.operator){if(p=h(i,t,r),p===t&&p!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(t),r))return!1;if(u)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(m=d(u,t,r),m===t&&m!==u)return!1}else if("<="===u.operator&&!o(u.semver,String(t),r))return!1;if(!t.operator&&(u||i)&&0!==f)return!1}return!(i&&g&&!u&&0!==f||u&&y&&!i&&0!==f||b||w)},h=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=u(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},51042:(t,e,r)=>{const n=r(66902);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},89042:(t,e,r)=>{const n=r(66902);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},67771:(t,e,r)=>{"use strict";var n=r(40210),i=r(12296),s=r(31044)(),o=r(27296),a=n("%TypeError%"),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new a("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in t&&o){var u=o(t,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(s?i(t,"length",e,!0,!0):i(t,"length",e)),t}},24189:(t,e,r)=>{var n=r(89509).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,s=t.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return t?s.toString(t):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},89072:(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(74448),n.sha1=r(18336),n.sha224=r(48432),n.sha256=r(67499),n.sha384=r(51686),n.sha512=r(87816)},74448:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t){return t<<30|t>>>2}function u(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=n)<<5|e>>>27)+u(f,i,s,a)+c+r[d]+o[f];c=a,a=s,s=l(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},18336:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=t.readInt32BE(4*d);for(;d<80;++d)r[d]=(e=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(n)+h(p,i,s,a)+c+r[f]+o[p]|0;c=a,a=s,s=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},48432:(t,e,r)=>{var n=r(35717),i=r(67499),s=r(24189),o=r(89509).Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},67499:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[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],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(t,e,r){return r^t&(e^r)}function u(t,e,r){return t&e|r&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)r[y]=t.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((e=r[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[y-7]+f(r[y-15])+r[y-16];for(var w=0;w<64;++w){var b=g+d(c)+l(c,p,m)+o[w]+r[w]|0,v=h(n)+u(n,i,s)|0;g=m,m=p,p=c,c=a+b|0,a=s,s=i,i=n,n=b+v|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},51686:(t,e,r)=>{var n=r(35717),i=r(87816),s=r(24189),o=r(89509).Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},87816:(t,e,r)=>{var n=r(35717),i=r(24189),s=r(89509).Buffer,o=[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],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function l(t,e,r){return r^t&(e^r)}function u(t,e,r){return t&e|r&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,w=0|this._gh,b=0|this._hh,v=0|this._al,A=0|this._bl,E=0|this._cl,x=0|this._dl,_=0|this._el,S=0|this._fl,M=0|this._gl,C=0|this._hl,k=0;k<32;k+=2)e[k]=t.readInt32BE(4*k),e[k+1]=t.readInt32BE(4*k+4);for(;k<160;k+=2){var I=e[k-30],P=e[k-30+1],O=f(I,P),N=p(P,I),T=m(I=e[k-4],P=e[k-4+1]),R=g(P,I),B=e[k-14],L=e[k-14+1],U=e[k-32],j=e[k-32+1],D=N+L|0,F=O+B+y(D,N)|0;F=(F=F+T+y(D=D+R|0,R)|0)+U+y(D=D+j|0,j)|0,e[k]=F,e[k+1]=D}for(var z=0;z<160;z+=2){F=e[z],D=e[z+1];var H=u(r,n,i),$=u(v,A,E),q=h(r,v),W=h(v,r),V=d(a,_),G=d(_,a),K=o[z],Z=o[z+1],Q=l(a,c,w),J=l(_,S,M),Y=C+G|0,X=b+V+y(Y,C)|0;X=(X=(X=X+Q+y(Y=Y+J|0,J)|0)+K+y(Y=Y+Z|0,Z)|0)+F+y(Y=Y+D|0,D)|0;var tt=W+$|0,et=q+H+y(tt,W)|0;b=w,C=M,w=c,M=S,c=a,S=_,a=s+X+y(_=x+Y|0,x)|0,s=i,x=E,i=n,E=A,n=r,A=v,r=X+et+y(v=Y+tt|0,Y)|0}this._al=this._al+v|0,this._bl=this._bl+A|0,this._cl=this._cl+E|0,this._dl=this._dl+x|0,this._el=this._el+_|0,this._fl=this._fl+S|0,this._gl=this._gl+M|0,this._hl=this._hl+C|0,this._ah=this._ah+r+y(this._al,v)|0,this._bh=this._bh+n+y(this._bl,A)|0,this._ch=this._ch+i+y(this._cl,E)|0,this._dh=this._dh+s+y(this._dl,x)|0,this._eh=this._eh+a+y(this._el,_)|0,this._fh=this._fh+c+y(this._fl,S)|0,this._gh=this._gh+w+y(this._gl,M)|0,this._hh=this._hh+b+y(this._hl,C)|0},c.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},37478:(t,e,r)=>{"use strict";var n=r(40210),i=r(21924),s=r(70631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new o("Side channel does not contain "+s(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(c){if(e)return d(e,n)}else if(r)return function(t,e){var r=m(t,e);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return h(t,n)}else if(c){if(e)return p(e,n)}else if(r)return function(t,e){return!!m(t,e)}(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),u(t,n,i)):c?(e||(e=new c),f(e,n,i)):(r||(r={key:{},next:null}),function(t,e,r){var n=m(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,i))}};return n}},80500:t=>{"use strict";t.exports=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},70610:t=>{"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},32553:(t,e,r)=>{"use strict";var n=r(89509).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=u,this.end=h,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.s=s,s.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},49604:(t,e,r)=>{var n=r(23944);t.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},70655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>v,__asyncGenerator:()=>b,__asyncValues:()=>A,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>M,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:()=>_,__importStar:()=>x,__makeTemplateObject:()=>E,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>p});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof w?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:w(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function _(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function M(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},25869:(t,e,r)=>{"use strict";function n(t,e){return e=e||{},new Promise((function(r,n){var i=new XMLHttpRequest,s=[],o=[],a={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return s},entries:function(){return o},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var l in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){s.push(e=e.toLowerCase()),o.push([e,r]),a[e]=a[e]?a[e]+","+r:r})),r(c())},i.onerror=n,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(l,e.headers[l]);i.send(e.body||null)}))}r.r(e),r.d(e,{default:()=>n})},8575:(t,e,r)=>{"use strict";var n=r(74971);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var s=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(80129);function w(t,e,r){if(t&&"object"==typeof t&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),o=-1!==i&&i127?N+="x":N+=O[T];if(!N.match(d)){var B=I.slice(0,M),L=I.slice(M+1),U=O.match(f);U&&(B.push(U[1]),L.unshift(U[2])),L.length&&(w="/"+L.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=n.toASCII(this.hostname));var j=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+j,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!p[A])for(M=0,P=l.length;M0)&&r.host.split("@"))&&(r.auth=k.shift(),r.hostname=k.shift(),r.host=r.hostname)),r.search=t.search,r.query=t.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=E.slice(-1)[0],S=(r.host||t.host||E.length>1)&&("."===_||".."===_)||""===_,M=0,C=E.length;C>=0;C--)"."===(_=E[C])?E.splice(C,1):".."===_?(E.splice(C,1),M++):M&&(E.splice(C,1),M--);if(!v&&!A)for(;M--;M)E.unshift("..");!v||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var k,I=""===E[0]||E[0]&&"/"===E[0].charAt(0);return x&&(r.hostname=I?"":E.length?E.shift():"",r.host=r.hostname,(k=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=k.shift(),r.hostname=k.shift(),r.host=r.hostname)),(v=v||r.host&&E.length)&&!I&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=o.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=w,e.resolve=function(t,e){return w(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?w(t,!1,!0).resolveObject(e):e},e.format=function(t){return"string"==typeof t&&(t=w(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i},57458:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function s(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return i(t>>e&63|128)}function c(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(o(t),e=i(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=s(t),r=e.length,n=-1,i="";++n65535&&(s+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),s+=i(e);return s}(a)}}(e)},94927:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},20384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},55955:(t,e,r)=>{"use strict";var n=r(82584),i=r(48662),s=r(86430),o=r(85692);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(c)var p=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function w(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function v(t){return"[object WeakSet]"===u(t)}function A(t){return"[object ArrayBuffer]"===u(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function x(t){return"[object DataView]"===u(t)}function _(t){return"undefined"!=typeof DataView&&(x.working?x(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},w.working="undefined"!=typeof Set&&w(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(w.working?w(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=E,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(t){return"[object SharedArrayBuffer]"===u(t)}function C(t){return void 0!==S&&(void 0===M.working&&(M.working=M(new S)),M.working?M(t):t instanceof S)}function k(t){return g(t,h)}function I(t){return g(t,d)}function P(t){return g(t,f)}function O(t){return c&&g(t,p)}function N(t){return l&&g(t,m)}e.isSharedArrayBuffer=C,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=k,e.isStringObject=I,e.isBooleanObject=P,e.isBigIntObject=O,e.isSymbolObject=N,e.isBoxedPrimitive=function(t){return k(t)||I(t)||P(t)||O(t)||N(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||C(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},89539:(t,e,r)=>{var n=r(34155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,t,n.depth)}function u(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=d(t,i,n)),i}var s=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return w(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(r);if(0===o.length){if(S(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(A(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return f(r)}var l,u="",h=!1,E=["{","}"];return m(r)&&(h=!0,E=["[","]"]),S(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),A(r)&&(u=" "+RegExp.prototype.toString.call(r)),x(r)&&(u=" "+Date.prototype.toUTCString.call(r)),_(r)&&(u=" "+f(r)),0!==o.length||h&&0!=r.length?n<0?A(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,u,E)):E[0]+u+E[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,s){var o,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),I(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(r)?d(t,c.value,null):d(t,c.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function m(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function w(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function A(t){return E(t)&&"[object RegExp]"===M(t)}function E(t){return"object"==typeof t&&null!==t}function x(t){return E(t)&&"[object Date]"===M(t)}function _(t){return E(t)&&("[object Error]"===M(t)||t instanceof Error)}function S(t){return"function"==typeof t}function M(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(55955),e.isArray=m,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=w,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=A,e.types.isRegExp=A,e.isObject=E,e.isDate=x,e.types.isDate=x,e.isError=_,e.types.isNativeError=_,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(20384);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[C((t=new Date).getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(35717),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!=typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s{var n=r(48764).Buffer,i=r(18269),s=r(12816).RQ,o=r(12816)._R,a=new s((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"==typeof e&&"BN"===e.constructor.name?e:e.toString()}));function c(){}var l=function(){};l.prototype.encodeFunctionSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t).slice(0,10)},l.prototype.encodeEventSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t)},l.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},l.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,n){let i=t[n];if("object"==typeof i&&i.type&&(i=i.type),e=r.formatParam(i,e),"string"==typeof i&&i.includes("tuple")){const t=a._getCoder(o.from(i)),n=(t,e)=>{if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return e.map((e=>n(a._getCoder(o.from(t.type.replace("[]",""))),e)));const r=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(e.length!==r)throw new Error("Array length does not matches with the given input");return e.map((e=>n(a._getCoder(o.from(t.type.replace(/\[\d+\]/,""))),e)))}t.coders.forEach(((t,i)=>{"tuple"===t.name?n(t,e[i]):e[i]=r.formatParam(t.name,e[i])}))};n(t,e)}return e})),a.encode(t,e)},l.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"==typeof t&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var n=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))}else r.push(t)})),r},l.prototype.isSimplifiedStructFormat=function(t){return"object"==typeof t&&void 0===t.components&&void 0===t.name},l.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},l.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(n){"object"!=typeof t[n]?r.push({name:n,type:t[n]}):r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))})),r},l.prototype.formatParam=function(t,e){const r=new RegExp(/^bytes([0-9]*)$/),s=new RegExp(/^bytes([0-9]*)\[\]$/),o=new RegExp(/^(u?int)([0-9]*)$/),a=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(e)||i.isBigNumber(e))return e.toString(10);if(t.match(s)||t.match(a))return e.map((e=>this.formatParam(t.replace("[]",""),e)));let c=t.match(o);if(c){let t=parseInt(c[2]||"256");t/80&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=a.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),i=new c;return i.__length__=0,t.forEach((function(t,e){var r=n[i.__length__];const s="object"==typeof t&&t.type&&"string"===t.type;r="0x"!==r||s||"string"==typeof t&&"string"===t?r:null,i[e]=r,("function"==typeof t||t&&"object"==typeof t)&&t.name&&(i[t.name]=r),i.__length__++})),i},l.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],s=[],o=0;t.forEach((function(t,e){t.indexed?(s[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[o]):r[o],o++):i[e]=t}));var a=e,l=a?this.decodeParametersWith(i,a,!0):[],u=new c;return u.__length__=0,t.forEach((function(t,e){u[e]="string"===t.type?"":null,void 0!==l[e]&&(u[e]=l[e]),void 0!==s[e]&&(u[e]=s[e]),t.name&&(u[t.name]=u[e]),u.__length__++})),u};var u=new l;t.exports=u},18269:(t,e,r)=>{var n=r(94278),i=r(90329),s=r(28668),o=r(61798),a=r(13550),c=function(t,e){var r=[];return e.forEach((function(e){if("object"==typeof e.components){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var n="",i=e.type.indexOf("[");i>=0&&(n=e.type.substring(i));var s=c(t,e.components);Array.isArray(s)&&t?r.push("tuple("+s.join(",")+")"+n):t?r.push("("+s+")"):r.push("("+s.join(",")+")"+n)}else r.push(e.type)})),r},l=function(t){if(!i.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r7?r+=t[n].toUpperCase():r+=t[n];return r},toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:l,toAscii:l,asciiToHex:u,fromAscii:u,unitMap:n.unitMap,toWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).toString(10)},padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:function(t,e){if(t===e)return 0;if("genesis"!==t&&"earliest"!==t&&0!==t||"genesis"!==e&&"earliest"!==e&&0!==e){if("genesis"===t||"earliest"===t||0===t)return-1;if("genesis"===e||"earliest"===e||0===e)return 1;if("latest"===t||"finalized"===t)return"pending"===e?-1:1;if("latest"===e||"finalized"===e)return"pending"===t?1:-1;if("pending"===t)return 1;if("pending"===e)return-1;if("safe"===t||"safe"===e)return;{let r=new a(t),n=new a(e);return r.lt(n)?-1:r.eq(n)?0:1}}return 0},toNumber:i.toNumber}},28668:(t,e,r)=>{var n=r(13550),i=r(90329),s=function(t){var e=typeof t;if("string"===e)return i.isHexStrict(t)?new n(t.replace(/0x/i,""),16):new n(t,10);if("number"===e)return new n(t);if(i.isBigNumber(t))return new n(t.toString(10));if(i.isBN(t))return t;throw new Error(t+" is not a number")},o=function(t,e,r){var o,a,c;if("bytes"===(t=(c=t).startsWith("int[")?"int256"+c.slice(3):"int"===c?"int256":c.startsWith("uint[")?"uint256"+c.slice(4):"uint"===c?"uint256":c.startsWith("fixed[")?"fixed128x128"+c.slice(5):"fixed"===c?"fixed128x128":c.startsWith("ufixed[")?"ufixed128x128"+c.slice(6):"ufixed"===c?"ufixed128x128":c)){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return i.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(o=r?64:40,!i.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return i.leftPad(e.toLowerCase(),o)}if(o=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null}(t),t.startsWith("bytes")){if(!o)throw new Error("bytes[] not yet supported in solidity");if(r&&(o=32),o<1||o>32||o256)throw new Error("Invalid uint"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a.lt(new n(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return o?i.leftPad(a.toString("hex"),o/8*2):a}if(t.startsWith("int")){if(o%8||o<8||o>256)throw new Error("Invalid int"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.lt(new n(0))?a.toTwos(o).toString("hex"):o?i.leftPad(a.toString("hex"),o/8*2):a}throw new Error("Unsupported or invalid type: "+t)},a=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,s="";if(t&&"object"==typeof t&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,s=t.hasOwnProperty("v")?t.v:t.value):(e=i.toHex(t,!0),s=i.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new n(s)),Array.isArray(s)){if(r=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null}(e),r&&s.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(s));r=s.length}return Array.isArray(s)?s.map((function(t){return o(e,t,r).toString("hex").replace("0x","")})).join(""):o(e,s,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments).map(a);return i.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(a).join(""))},encodePacked:function(){return"0x"+Array.prototype.slice.call(arguments).map(a).join("").toLowerCase()}}},90329:(t,e,r)=>{var n=r(48764).Buffer,i=r(13550),s=r(83206),o=r(57458),a=r(92730),c=r(46877),{keccak256:l}=r(82192),u=function(t){return i.isBN(t)},h=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},d=function(t){try{return s.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},f=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||p(t))},p=function(t){t=t.replace(/^0x/i,"");for(var e=E(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},m=function(t){var e="";t=(t=(t=(t=(t=o.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;rNumber.MAX_SAFE_INTEGER||r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:v,isHexStrict:b,stripHexPrefix:function(t){return 0!==t&&v(t)?t.replace(/^(-)?0x/i,"$1"):t},leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+d(t).toTwos(256).toString(16,64)},sha3:E,sha3Raw:function(t){return null===(t=E(t))?A:t},toNumber:function(t,e=!1){return"number"==typeof t?t:g(w(t),e)}}},86430:(t,e,r)=>{"use strict";var n=r(94029),i=r(63083),s=r(55559),o=r(21924),a=r(27296),c=o("Object.prototype.toString"),l=r(96410)(),u="undefined"==typeof globalThis?r.g:globalThis,h=i(),d=o("String.prototype.slice"),f=Object.getPrototypeOf,p=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(m,(function(r,n){if(!e)try{r(t),e=d(n,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return n(m,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=d(n,1))}catch(t){}})),e}(t):null}},57026:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},47529:t=>{t.exports=function(){for(var t={},r=0;r{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},34411:(t,e,r)=>{"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(ethis.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&ithis.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;null!==s&&n{const n=r(33555),i=r(90719),{createWeb3Modal:s,defaultWagmiConfig:o}=r(80252),{disconnect:a,watchAccount:c,getAccount:l,switchNetwork:u,fetchToken:h,readContract:d,writeContract:f,prepareWriteContract:p,getWalletClient:m,getPublicClient:g,signMessage:y,sendTransaction:w,prepareSendTransaction:b}=r(33694);t.exports=class{projectId;themeMode="light";metadata;modal;networks;connectedNetwork;connectRejectMethod;connectedAccount;constructor(t){let e=t.network,r=t.customWallets||[],a=this.metadata=t.metadata,c=this.projectId=t.projectId,l=this.themeMode;t.themeMode&&(l=this.themeMode=t.themeMode);let u=[];if(e){let t=Object.values(i).find((t=>n.isNumeric(e)?t.id==parseInt(e):"string"==typeof e?t.network==e:"object"==typeof e?t.id==e.id:void 0));t||"object"!=typeof e?u.push(t):u.push(this.wagmiStandart(e)),this.connectedNetwork=u[0]}else u=Object.values(i);if(0==u.length)throw new Error("network-not-found");const h=o({chains:u,projectId:c,metadata:a});h.autoConnect=()=>{},this.modal=s({themeMode:l,wagmiConfig:h,projectId:c,chains:u,customWallets:r,themeVariables:{"--w3m-z-index":999999999999}});let d=!1;this.modal.subscribeEvents((async t=>{if("SELECT_WALLET"==t.data.event&&(d=!0),"MODAL_CLOSE"==t.data.event&&"function"==typeof this.connectRejectMethod){if(d&&(d=!1,this.connectedNetwork.id!=await this.getChainId()))return this.connectRejectMethod("not-accepted-chain");this.connectRejectMethod("closed-web3modal")}})),this.networks=u}wagmiStandart(t){let e={http:[t.rpcUrl]};return t.wsUrl&&(e.webSocket=[t.wsUrl]),Object.assign(t,{network:t.name,nativeCurrency:{name:t.nativeCurrency.symbol,symbol:t.nativeCurrency.symbol,decimals:t.nativeCurrency.decimals},rpcUrls:{default:e,public:e},blockExplorerUrls:{default:{name:t.name,url:t.explorerUrl}}})}setNetwork(t){"object"==typeof t?this.connectedNetwork=this.wagmiStandart(t):n.isNumeric(t)?this.connectedNetwork=this.networks.find((e=>e.id==parseInt(t))):"string"==typeof t&&(this.connectedNetwork=this.networks.find((e=>e.network==t)))}getKey(){return"web3modal"}getName(){return"Web3Modal"}getSupports(){return["browser","mobile"]}getDeepLink(){}getDownloadLink(){}isDetected(){}async request(t){return(await this.getWalletClient()).request(t)}async getWalletClient(){return await m()||this.getPublicClient()}async getPublicClient(){let t=await g();return t.account||(t.account=this.connectedAccount),t}removeOldConnection(){Object.keys(localStorage).filter((t=>t.startsWith("wc@2")||t.startsWith("wagmi")||t.startsWith("@w3m")||t.startsWith("W3M")||t.startsWith("-walletlink"))).forEach((t=>localStorage.removeItem(t))),localStorage.removeItem("walletconnect"),localStorage.removeItem("WALLETCONNECT_DEEPLINK_CHOICE");try{this.modal.resetAccount(),this.modal.resetNetwork(),this.modal.resetWcConnection()}catch(t){}return a()}async getChainId(){return(await this.getWalletClient()).getChainId()}async isConnected(){return l().isConnected}async connect(){return new Promise(((t,e)=>{this.connection().then((async r=>{if(this.connectedNetwork.id!=await this.getChainId())return e("not-accepted-chain");t(r)})).catch((t=>{e(t)}))}))}async connection(){return new Promise((async(t,e)=>{try{this.connectRejectMethod=e;let r=l();if(r.isConnected)return t(this.connectedAccount=r.address);this.modal.open();let i=!1;c((async r=>{if(r.isConnected)try{const{selectedNetworkId:n}=this.modal.getState();if(this.connectedNetwork&&this.connectedNetwork.id!=n){if(i)return;i=!0,this.switchNetwork(this.connectedNetwork.id).then((()=>{t(this.connectedAccount=r.address)})).catch((()=>{e("switch-chain-rejected")}))}else this.setConnectedNetwork(n),t(this.connectedAccount=r.address)}catch(t){n.rejectMessage(t,e)}}))}catch(t){n.rejectMessage(t,e)}}))}switchNetwork(t){return u({chainId:t})}setConnectedNetwork(t){this.connectedNetwork=this.networks.find((e=>e.id==t))}personalSign(t){return new Promise((async(e,r)=>{try{e(await y({message:t}))}catch(t){n.rejectMessage(t,r)}}))}sendTransaction(t){return new Promise((async(e,r)=>{this.request({method:"eth_sendTransaction",params:t}).then((t=>{e(t)})).catch((t=>{n.rejectMessage(t,r)}))}))}getEstimateGas(t){return new Promise((async(e,r)=>{this.request({method:"eth_estimateGas",params:[t]}).then((t=>{e(t)})).catch((t=>{n.rejectMessage(t,r)}))}))}coinTransfer(t,e){return new Promise((async(r,i)=>{try{const s=this.connectedNetwork.nativeCurrency.decimals,o=await this.request({method:"eth_getBalance",params:[this.connectedAccount,"latest"]});if(parseFloat(e)>n.toDec(o,s))return i("insufficient-balance");if(parseFloat(e)<0)return i("transfer-amount-error");const a=n.toHex(e,s);try{const{hash:e}=await w(await b({to:t,value:a,account:this.connectedAccount}));r(e)}catch(t){n.rejectMessage(t,i)}}catch(t){n.rejectMessage(t,i)}}))}async writeContract(t){let{hash:e}=await f(await p(t));return e}async readContract(t,e,r,n){return await d({abi:r,args:n,address:t,functionName:e})}tokenTransfer(t,e,r){return new Promise((async(i,s)=>{try{const o=await h({address:r}),a=await this.readContract(r,"balanceOf",[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],[this.connectedAccount]);if(parseFloat(e)>n.toDec(a,o.decimals))return s("insufficient-balance");if(parseFloat(e)<0)return s("transfer-amount-error");const c=n.toHex(e,o.decimals);i(await this.writeContract({address:r,abi:[{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"}],functionName:"transfer",args:[t,c]}))}catch(t){n.rejectMessage(t,s)}}))}transfer(t,e,r=null){return r?this.tokenTransfer(t,e,r):this.coinTransfer(t,e)}}},33555:(t,e,r)=>{const n=r(5946);t.exports=Object.assign(n,{rejectMessage:async(t,e)=>(console.error(t),"object"==typeof t&&"ContractFunctionExecutionError"==t.name?e("contract-function-error"):e("request-rejected"))})},35883:()=>{},46601:()=>{},72260:()=>{},72895:()=>{},31865:()=>{},24654:()=>{},52361:()=>{},94616:()=>{},63083:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";const n=r(85346);t.exports=o;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},s={mapHttpRequest:d,mapHttpResponse:d,wrapRequestSerializer:f,wrapResponseSerializer:f,wrapErrorSerializer:f,req:d,res:d,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const r in t)void 0===e[r]&&(e[r]=t[r]);return e}};function o(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const r=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const n=t.serializers||{},s=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,n);let d=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(d=!1),"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===t.enabled&&(t.level="silent");const f=t.level||"info",m=Object.create(r);m.log||(m.log=p),Object.defineProperty(m,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(m,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,a(g,m,"error","log"),a(g,m,"fatal","error"),a(g,m,"warn","error"),a(g,m,"info","log"),a(g,m,"debug","log"),a(g,m,"trace","log")}});const g={transmit:e,serialize:s,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:h(t)};return m.levels=o.levels,m.level=f,m.setMaxListeners=m.getMaxListeners=m.emit=m.addListener=m.on=m.prependListener=m.once=m.prependOnceListener=m.removeListener=m.removeAllListeners=m.listeners=m.listenerCount=m.eventNames=m.write=m.flush=p,m.serializers=n,m._serialize=s,m._stdErrSerialize=d,m.child=function(r,i){if(!r)throw new Error("missing bindings for child Pino");i=i||{},s&&r.serializers&&(i.serializers=r.serializers);const o=i.serializers;if(s&&o){var a=Object.assign({},n,o),h=!0===t.browser.serialize?Object.keys(a):s;delete r.serializers,c([r],h,a,this._stdErrSerialize)}function d(t){this._childLevel=1+(0|t._childLevel),this.error=l(t,r,"error"),this.fatal=l(t,r,"fatal"),this.warn=l(t,r,"warn"),this.info=l(t,r,"info"),this.debug=l(t,r,"debug"),this.trace=l(t,r,"trace"),a&&(this.serializers=a,this._serialize=h),e&&(this._logEvent=u([].concat(t._logEvent.bindings,r)))}return d.prototype=this,new d(this)},e&&(m._logEvent=u()),m}function a(t,e,r,s){const a=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?p:a[r]?a[r]:i[r]||i[s]||p,function(t,e,r){var s;(t.transmit||e[r]!==p)&&(e[r]=(s=e[r],function(){const a=t.timestamp(),l=new Array(arguments.length),h=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&n in r&&(t[i][n]=r[n](t[i][n]))}function l(t,e,r){return function(){const n=new Array(1+arguments.length);n[0]=e;for(var i=1;i{"use strict";r.r(e),r.d(e,{Struct:()=>u,StructError:()=>n,any:()=>S,array:()=>M,assert:()=>h,assign:()=>g,bigint:()=>C,boolean:()=>k,coerce:()=>Q,create:()=>d,date:()=>I,defaulted:()=>J,define:()=>y,deprecated:()=>w,dynamic:()=>b,empty:()=>X,enums:()=>P,func:()=>O,instance:()=>N,integer:()=>T,intersection:()=>R,is:()=>p,lazy:()=>v,literal:()=>B,map:()=>L,mask:()=>f,max:()=>et,min:()=>rt,never:()=>U,nonempty:()=>nt,nullable:()=>j,number:()=>D,object:()=>F,omit:()=>A,optional:()=>z,partial:()=>E,pattern:()=>it,pick:()=>x,record:()=>H,refine:()=>ot,regexp:()=>$,set:()=>q,size:()=>st,string:()=>W,struct:()=>_,trimmed:()=>Y,tuple:()=>V,type:()=>G,union:()=>K,unknown:()=>Z,validate:()=>m});class n extends TypeError{constructor(t,e){let r;const{message:n,explanation:i,...s}=t,{path:o}=t,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>r??(r=[t,...e()])}}function i(t){return"object"==typeof t&&null!=t}function s(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function o(t){return"symbol"==typeof t?t.toString():"string"==typeof t?JSON.stringify(t):`${t}`}function a(t,e,r,n){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});const{path:i,branch:s}=e,{type:a}=r,{refinement:c,message:l=`Expected a value of type \`${a}\`${c?` with refinement \`${c}\``:""}, but received: \`${o(n)}\``}=t;return{value:n,type:a,refinement:c,key:i[i.length-1],path:i,branch:s,...t,message:l}}function*c(t,e,r,n){var s;i(s=t)&&"function"==typeof s[Symbol.iterator]||(t=[t]);for(const i of t){const t=a(i,e,r,n);t&&(yield t)}}function*l(t,e,r={}){const{path:n=[],branch:s=[t],coerce:o=!1,mask:a=!1}=r,c={path:n,branch:s};if(o&&(t=e.coercer(t,c),a&&"type"!==e.type&&i(e.schema)&&i(t)&&!Array.isArray(t)))for(const r in t)void 0===e.schema[r]&&delete t[r];let u="valid";for(const n of e.validator(t,c))n.explanation=r.message,u="not_valid",yield[n,void 0];for(let[h,d,f]of e.entries(t,c)){const e=l(d,f,{path:void 0===h?n:[...n,h],branch:void 0===h?s:[...s,d],coerce:o,mask:a,message:r.message});for(const r of e)r[0]?(u=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):o&&(d=r[1],void 0===h?t=d:t instanceof Map?t.set(h,d):t instanceof Set?t.add(d):i(t)&&(void 0!==d||h in t)&&(t[h]=d))}if("not_valid"!==u)for(const n of e.refiner(t,c))n.explanation=r.message,u="not_refined",yield[n,void 0];"valid"===u&&(yield[void 0,t])}class u{constructor(t){const{type:e,schema:r,validator:n,refiner:i,coercer:s=(t=>t),entries:o=function*(){}}=t;this.type=e,this.schema=r,this.entries=o,this.coercer=s,this.validator=n?(t,e)=>c(n(t,e),e,this,t):()=>[],this.refiner=i?(t,e)=>c(i(t,e),e,this,t):()=>[]}assert(t,e){return h(t,this,e)}create(t,e){return d(t,this,e)}is(t){return p(t,this)}mask(t,e){return f(t,this,e)}validate(t,e={}){return m(t,this,e)}}function h(t,e,r){const n=m(t,e,{message:r});if(n[0])throw n[0]}function d(t,e,r){const n=m(t,e,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function f(t,e,r){const n=m(t,e,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function p(t,e){return!m(t,e)[0]}function m(t,e,r={}){const i=l(t,e,r),s=function(t){const{done:e,value:r}=t.next();return e?void 0:r}(i);return s[0]?[new n(s[0],(function*(){for(const t of i)t[0]&&(yield t[0])})),void 0]:[void 0,s[1]]}function g(...t){const e="type"===t[0].type,r=t.map((t=>t.schema)),n=Object.assign({},...r);return e?G(n):F(n)}function y(t,e){return new u({type:t,schema:null,validator:e})}function w(t,e){return new u({...t,refiner:(e,r)=>void 0===e||t.refiner(e,r),validator:(r,n)=>void 0===r||(e(r,n),t.validator(r,n))})}function b(t){return new u({type:"dynamic",schema:null,*entries(e,r){const n=t(e,r);yield*n.entries(e,r)},validator:(e,r)=>t(e,r).validator(e,r),coercer:(e,r)=>t(e,r).coercer(e,r),refiner:(e,r)=>t(e,r).refiner(e,r)})}function v(t){let e;return new u({type:"lazy",schema:null,*entries(r,n){e??(e=t()),yield*e.entries(r,n)},validator:(r,n)=>(e??(e=t()),e.validator(r,n)),coercer:(r,n)=>(e??(e=t()),e.coercer(r,n)),refiner:(r,n)=>(e??(e=t()),e.refiner(r,n))})}function A(t,e){const{schema:r}=t,n={...r};for(const t of e)delete n[t];return"type"===t.type?G(n):F(n)}function E(t){const e=t instanceof u?{...t.schema}:{...t};for(const t in e)e[t]=z(e[t]);return F(e)}function x(t,e){const{schema:r}=t,n={};for(const t of e)n[t]=r[t];return F(n)}function _(t,e){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),y(t,e)}function S(){return y("any",(()=>!0))}function M(t){return new u({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[r,n]of e.entries())yield[r,n,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${o(t)}`})}function C(){return y("bigint",(t=>"bigint"==typeof t))}function k(){return y("boolean",(t=>"boolean"==typeof t))}function I(){return y("date",(t=>t instanceof Date&&!isNaN(t.getTime())||`Expected a valid \`Date\` object, but received: ${o(t)}`))}function P(t){const e={},r=t.map((t=>o(t))).join();for(const r of t)e[r]=r;return new u({type:"enums",schema:e,validator:e=>t.includes(e)||`Expected one of \`${r}\`, but received: ${o(e)}`})}function O(){return y("func",(t=>"function"==typeof t||`Expected a function, but received: ${o(t)}`))}function N(t){return y("instance",(e=>e instanceof t||`Expected a \`${t.name}\` instance, but received: ${o(e)}`))}function T(){return y("integer",(t=>"number"==typeof t&&!isNaN(t)&&Number.isInteger(t)||`Expected an integer, but received: ${o(t)}`))}function R(t){return new u({type:"intersection",schema:null,*entries(e,r){for(const n of t)yield*n.entries(e,r)},*validator(e,r){for(const n of t)yield*n.validator(e,r)},*refiner(e,r){for(const n of t)yield*n.refiner(e,r)}})}function B(t){const e=o(t),r=typeof t;return new u({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:r=>r===t||`Expected the literal \`${e}\`, but received: ${o(r)}`})}function L(t,e){return new u({type:"map",schema:null,*entries(r){if(t&&e&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,t],yield[n,i,e]},coercer:t=>t instanceof Map?new Map(t):t,validator:t=>t instanceof Map||`Expected a \`Map\` object, but received: ${o(t)}`})}function U(){return y("never",(()=>!1))}function j(t){return new u({...t,validator:(e,r)=>null===e||t.validator(e,r),refiner:(e,r)=>null===e||t.refiner(e,r)})}function D(){return y("number",(t=>"number"==typeof t&&!isNaN(t)||`Expected a number, but received: ${o(t)}`))}function F(t){const e=t?Object.keys(t):[],r=U();return new u({type:"object",schema:t||null,*entries(n){if(t&&i(n)){const i=new Set(Object.keys(n));for(const r of e)i.delete(r),yield[r,n[r],t[r]];for(const t of i)yield[t,n[t],r]}},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`,coercer:t=>i(t)?{...t}:t})}function z(t){return new u({...t,validator:(e,r)=>void 0===e||t.validator(e,r),refiner:(e,r)=>void 0===e||t.refiner(e,r)})}function H(t,e){return new u({type:"record",schema:null,*entries(r){if(i(r))for(const n in r){const i=r[n];yield[n,n,t],yield[n,i,e]}},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`})}function $(){return y("regexp",(t=>t instanceof RegExp))}function q(t){return new u({type:"set",schema:null,*entries(e){if(t&&e instanceof Set)for(const r of e)yield[r,r,t]},coercer:t=>t instanceof Set?new Set(t):t,validator:t=>t instanceof Set||`Expected a \`Set\` object, but received: ${o(t)}`})}function W(){return y("string",(t=>"string"==typeof t||`Expected a string, but received: ${o(t)}`))}function V(t){const e=U();return new u({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(t.length,r.length);for(let i=0;iArray.isArray(t)||`Expected an array, but received: ${o(t)}`})}function G(t){const e=Object.keys(t);return new u({type:"type",schema:t,*entries(r){if(i(r))for(const n of e)yield[n,r[n],t[n]]},validator:t=>i(t)||`Expected an object, but received: ${o(t)}`,coercer:t=>i(t)?{...t}:t})}function K(t){const e=t.map((t=>t.type)).join(" | ");return new u({type:"union",schema:null,coercer(e){for(const r of t){const[t,n]=r.validate(e,{coerce:!0});if(!t)return n}return e},validator(r,n){const i=[];for(const e of t){const[...t]=l(r,e,n),[s]=t;if(!s[0])return[];for(const[e]of t)e&&i.push(e)}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${o(r)}`,...i]}})}function Z(){return y("unknown",(()=>!0))}function Q(t,e,r){return new u({...t,coercer:(n,i)=>p(n,e)?t.coercer(r(n,i),i):t.coercer(n,i)})}function J(t,e,r={}){return Q(t,Z(),(t=>{const n="function"==typeof e?e():e;if(void 0===t)return n;if(!r.strict&&s(t)&&s(n)){const e={...t};let r=!1;for(const t in n)void 0===e[t]&&(e[t]=n[t],r=!0);if(r)return e}return t}))}function Y(t){return Q(t,W(),(t=>t.trim()))}function X(t){return ot(t,"empty",(e=>{const r=tt(e);return 0===r||`Expected an empty ${t.type} but received one with a size of \`${r}\``}))}function tt(t){return t instanceof Map||t instanceof Set?t.size:t.length}function et(t,e,r={}){const{exclusive:n}=r;return ot(t,"max",(r=>n?rn?r>e:r>=e||`Expected a ${t.type} greater than ${n?"":"or equal to "}${e} but received \`${r}\``))}function nt(t){return ot(t,"nonempty",(e=>tt(e)>0||`Expected a nonempty ${t.type} but received an empty one`))}function it(t,e){return ot(t,"pattern",(r=>e.test(r)||`Expected a ${t.type} matching \`/${e.source}/\` but received "${r}"`))}function st(t,e,r=e){const n=`Expected a ${t.type}`,i=e===r?`of \`${e}\``:`between \`${e}\` and \`${r}\``;return ot(t,"size",(t=>{if("number"==typeof t||t instanceof Date)return e<=t&&t<=r||`${n} ${i} but received \`${t}\``;if(t instanceof Map||t instanceof Set){const{size:s}=t;return e<=s&&s<=r||`${n} with a size ${i} but received one with a size of \`${s}\``}{const{length:s}=t;return e<=s&&s<=r||`${n} with a length ${i} but received one with a length of \`${s}\``}}))}function ot(t,e,r){return new u({...t,*refiner(n,i){yield*t.refiner(n,i);const s=c(r(n,i),i,t,n);for(const t of s)yield{...t,refinement:e}}})}},53516:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t?Number.parseInt(t,"0x"===t.trim().substring(0,2)?16:10):"bigint"==typeof t?Number(t):t}r.d(e,{J:()=>n})},92219:(t,e,r)=>{"use strict";r.d(e,{_:()=>d});var n,i=r(57858),s=r(53516),o=r(53324),a=r(45775),c=r(39028),l=r(91677),u=r(3980),h=r(92106),d=class extends o.wR{constructor({chains:t,options:e}={}){const r={shimDisconnect:!0,getProvider(){if("undefined"==typeof window)return;const t=window.ethereum;return t?.providers&&t.providers.length>0?t.providers[0]:t},...e};super({chains:t,options:r}),this.id="injected",(0,o.Ko)(this,n,void 0),this.shimDisconnectKey=`${this.id}.shimDisconnect`,this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,a.K)(t[0])})},this.onChainChanged=t=>{const e=(0,s.J)(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=async t=>{1013===t.code&&await this.getProvider()&&await this.getAccount()||(this.emit("disconnect"),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))};const i=r.getProvider();if("string"==typeof r.name)this.name=r.name;else if(i){const t=function(t){if(!t)return"Injected";const e=t=>t.isApexWallet?"Apex Wallet":t.isAvalanche?"Core Wallet":t.isBackpack?"Backpack":t.isBifrost?"Bifrost Wallet":t.isBitKeep?"BitKeep":t.isBitski?"Bitski":t.isBlockWallet?"BlockWallet":t.isBraveWallet?"Brave Wallet":t.isCoin98?"Coin98 Wallet":t.isCoinbaseWallet?"Coinbase Wallet":t.isDawn?"Dawn Wallet":t.isDefiant?"Defiant":t.isDesig?"Desig Wallet":t.isEnkrypt?"Enkrypt":t.isExodus?"Exodus":t.isFordefi?"Fordefi":t.isFrame?"Frame":t.isFrontier?"Frontier Wallet":t.isGamestop?"GameStop Wallet":t.isHaqqWallet?"HAQQ Wallet":t.isHyperPay?"HyperPay Wallet":t.isImToken?"ImToken":t.isHaloWallet?"Halo Wallet":t.isKuCoinWallet?"KuCoin Wallet":t.isMathWallet?"MathWallet":t.isNovaWallet?"Nova Wallet":t.isOkxWallet||t.isOKExWallet?"OKX Wallet":t.isOktoWallet?"Okto Wallet":t.isOneInchIOSWallet||t.isOneInchAndroidWallet?"1inch Wallet":t.isOneKey?"OneKey Wallet":t.isOpera?"Opera":t.isPhantom?"Phantom":t.isPortal?"Ripio Portal":t.isRabby?"Rabby Wallet":t.isRainbow?"Rainbow":t.isSafePal?"SafePal Wallet":t.isStatus?"Status":t.isSubWallet?"SubWallet":t.isTalisman?"Talisman":t.isTally?"Taho":t.isTokenPocket?"TokenPocket":t.isTokenary?"Tokenary":t.isTrust||t.isTrustWallet?"Trust Wallet":t.isTTWallet?"TTWallet":t.isXDEFI?"XDEFI Wallet":t.isZeal?"Zeal":t.isZerion?"Zerion":t.isMetaMask?"MetaMask":void 0;if(t.providers?.length){const r=new Set;let n=1;for(const i of t.providers){let t=e(i);t||(t=`Unknown Wallet #${n}`,n+=1),r.add(t)}const i=[...r];return i.length?i:i[0]??"Injected"}return e(t)??"Injected"}(i);r.name?this.name=r.name(t):this.name="string"==typeof t?t:t[0]}else this.name="Injected";this.ready=!!i}async connect({chainId:t}={}){try{const e=await this.getProvider();if(!e)throw new i.N;e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)),this.emit("message",{type:"connecting"});const r=await e.request({method:"eth_requestAccounts"}),n=(0,a.K)(r[0]);let s=await this.getChainId(),o=this.isChainUnsupported(s);return t&&s!==t&&(s=(await this.switchChain(t)).id,o=this.isChainUnsupported(s)),this.options.shimDisconnect&&this.storage?.setItem(this.shimDisconnectKey,!0),{account:n,chain:{id:s,unsupported:o}}}catch(t){if(this.isUserRejectedRequestError(t))throw new c.ab(t);if(-32002===t.code)throw new c.pT(t);throw t}}async disconnect(){const t=await this.getProvider();t?.removeListener&&(t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&this.storage?.removeItem(this.shimDisconnectKey))}async getAccount(){const t=await this.getProvider();if(!t)throw new i.N;const e=await t.request({method:"eth_accounts"});return(0,a.K)(e[0])}async getChainId(){const t=await this.getProvider();if(!t)throw new i.N;return t.request({method:"eth_chainId"}).then(s.J)}async getProvider(){const t=this.options.getProvider();return t&&(0,o.qx)(this,n,t),(0,o.ac)(this,n)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,l.K)({account:r,chain:n,transport:(0,u.P)(e)})}async isAuthorized(){try{if(this.options.shimDisconnect&&!this.storage?.getItem(this.shimDisconnectKey))return!1;if(!await this.getProvider())throw new i.N;return!!await this.getAccount()}catch{return!1}}async switchChain(t){const e=await this.getProvider();if(!e)throw new i.N;const r=(0,h.eC)(t);try{return await Promise.all([e.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),new Promise((e=>this.on("change",(({chain:r})=>{r?.id===t&&e()}))))]),this.chains.find((e=>e.id===t))??{id:t,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const s=this.chains.find((e=>e.id===t));if(!s)throw new i.B({chainId:t,connectorId:this.id});if(4902===n.code||4902===n?.data?.originalError?.code)try{if(await e.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:[s.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(s)}]}),await this.getChainId()!==t)throw new c.ab(new Error("User rejected switch after adding network."));return s}catch(t){throw new c.ab(t)}if(this.isUserRejectedRequestError(n))throw new c.ab(n);throw new c.x3(n)}}async watchAsset({address:t,decimals:e=18,image:r,symbol:n}){const s=await this.getProvider();if(!s)throw new i.N;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:e,image:r,symbol:n}}})}isUserRejectedRequestError(t){return 4001===t.code}};n=new WeakMap},57858:(t,e,r)=>{"use strict";r.d(e,{B:()=>n,N:()=>i});var n=class extends Error{constructor({chainId:t,connectorId:e}){super(`Chain "${t}" not configured for connector "${e}".`),this.name="ChainNotConfiguredForConnectorError"}},i=class extends Error{constructor(){super(...arguments),this.name="ConnectorNotFoundError",this.message="Connector not found"}}},53324:(t,e,r)=>{"use strict";r.d(e,{Ko:()=>c,U9:()=>u,ac:()=>a,qx:()=>l,wR:()=>h});var n=r(26729),i=r(66403),s=r(6891),o=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},a=(t,e,r)=>(o(t,e,"read from private field"),r?r.call(t):e.get(t)),c=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},l=(t,e,r,n)=>(o(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),u=(t,e,r)=>(o(t,e,"access private method"),r),h=class extends n{constructor({chains:t=[i.R,s.w],options:e}){super(),this.chains=t,this.options=e}getBlockExplorerUrls(t){const{default:e,...r}=t.blockExplorers??{};if(e)return[e.url,...Object.values(r).map((t=>t.url))]}isChainUnsupported(t){return!this.chains.some((e=>e.id===t))}setStorage(t){this.storage=t}}},90719:(t,e,r)=>{"use strict";r.r(e),r.d(e,{acala:()=>i,arbitrum:()=>s,arbitrumGoerli:()=>o,arbitrumNova:()=>a,arbitrumSepolia:()=>l,astar:()=>c,astarZkatana:()=>u,aurora:()=>h,auroraTestnet:()=>d,avalanche:()=>f,avalancheFuji:()=>p,bahamut:()=>m,base:()=>A,baseGoerli:()=>E,baseSepolia:()=>x,bearNetworkChainMainnet:()=>_,bearNetworkChainTestnet:()=>S,bitTorrent:()=>M,bitTorrentTestnet:()=>C,boba:()=>k,bronos:()=>I,bronosTestnet:()=>P,bsc:()=>O,bscTestnet:()=>N,bxn:()=>T,bxnTestnet:()=>R,canto:()=>B,celo:()=>ut,celoAlfajores:()=>ht,celoCannoli:()=>ft,chiliz:()=>dt,classic:()=>pt,confluxESpace:()=>mt,confluxESpaceTestnet:()=>gt,coreDao:()=>yt,cronos:()=>wt,cronosTestnet:()=>bt,crossbell:()=>vt,dfk:()=>At,dogechain:()=>Et,edgeware:()=>xt,edgewareTestnet:()=>_t,ekta:()=>It,ektaTestnet:()=>Pt,eos:()=>St,eosTestnet:()=>Mt,evmos:()=>Ct,evmosTestnet:()=>kt,fantom:()=>Ot,fantomSonicTestnet:()=>Nt,fantomTestnet:()=>Tt,fibo:()=>Rt,filecoin:()=>Bt,filecoinCalibration:()=>Lt,filecoinHyperspace:()=>Ut,flare:()=>jt,flareTestnet:()=>Dt,foundry:()=>Ft,fuse:()=>zt,fuseSparknet:()=>Ht,gnosis:()=>Zt,gnosisChiado:()=>Qt,gobi:()=>Gt,goerli:()=>Kt.w,haqqMainnet:()=>Xt,haqqTestedge2:()=>te,hardhat:()=>Jt,harmonyOne:()=>Yt,holesky:()=>ee,iotex:()=>$t,iotexTestnet:()=>qt,jbc:()=>Wt,karura:()=>Vt,kava:()=>re,kavaTestnet:()=>ne,klaytn:()=>ie,klaytnBaobab:()=>se,kroma:()=>oe,kromaSepolia:()=>ae,linea:()=>ce,lineaTestnet:()=>le,localhost:()=>ue,lukso:()=>he,mainnet:()=>de.R,mandala:()=>fe,manta:()=>pe,mantaTestnet:()=>me,mantle:()=>ge,mantleTestnet:()=>ye,meter:()=>we,meterTestnet:()=>be,metis:()=>ve,metisGoerli:()=>Ae,mev:()=>Ee,mevTestnet:()=>xe,modeTestnet:()=>_e,moonbaseAlpha:()=>Se,moonbeam:()=>Me,moonbeamDev:()=>Ce,moonriver:()=>ke,neonDevnet:()=>Ie,neonMainnet:()=>Pe,nexi:()=>Oe,nexilix:()=>Ne,oasisTestnet:()=>Re,oasys:()=>Te,okc:()=>Be,opBNB:()=>De,opBNBTestnet:()=>Fe,optimism:()=>Le,optimismGoerli:()=>Ue,optimismSepolia:()=>je,pgn:()=>ze,pgnTestnet:()=>He,plinga:()=>$e,polygon:()=>qe,polygonMumbai:()=>We,polygonZkEvm:()=>Ge,polygonZkEvmTestnet:()=>Ve,pulsechain:()=>Ke,pulsechainV4:()=>Ze,qMainnet:()=>Qe,qTestnet:()=>Je,rollux:()=>Ye,rolluxTestnet:()=>Xe,ronin:()=>tr,rootstock:()=>er,saigon:()=>rr,sapphire:()=>nr,sapphireTestnet:()=>ir,scroll:()=>sr,scrollSepolia:()=>or,scrollTestnet:()=>ar,sepolia:()=>cr.F,shardeumSphinx:()=>Ir,shibarium:()=>Pr,shimmer:()=>lr,shimmerTestnet:()=>ur,skaleBlockBrawlers:()=>hr,skaleCalypso:()=>dr,skaleCalypsoTestnet:()=>fr,skaleChaosTestnet:()=>pr,skaleCryptoBlades:()=>mr,skaleCryptoColosseum:()=>gr,skaleEuropa:()=>yr,skaleEuropaTestnet:()=>wr,skaleExorde:()=>br,skaleHumanProtocol:()=>vr,skaleNebula:()=>Ar,skaleNebulaTestnet:()=>Er,skaleRazor:()=>xr,skaleTitan:()=>_r,skaleTitanTestnet:()=>Sr,songbird:()=>Mr,songbirdTestnet:()=>Cr,spicy:()=>kr,syscoin:()=>Or,syscoinTestnet:()=>Nr,taikoJolnir:()=>Rr,taikoTestnetSepolia:()=>Br,taraxa:()=>Tr,taraxaTestnet:()=>Lr,telos:()=>Ur,telosTestnet:()=>jr,tenet:()=>Dr,thunderTestnet:()=>Fr,vechain:()=>zr,wanchain:()=>Hr,wanchainTestnet:()=>$r,wemix:()=>qr,wemixTestnet:()=>Wr,xdc:()=>Vr,xdcTestnet:()=>Gr,zetachainAthensTestnet:()=>nn,zhejiang:()=>Kr,zilliqa:()=>sn,zilliqaTestnet:()=>on,zkFair:()=>Zr,zkFairTestnet:()=>Qr,zkSync:()=>tn,zkSyncSepoliaTestnet:()=>rn,zkSyncTestnet:()=>en,zora:()=>an,zoraSepolia:()=>cn,zoraTestnet:()=>ln});var n=r(86164);const i=(0,n.a)({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network"}},testnet:!1}),s=(0,n.a)({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),o=(0,n.a)({id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),a=(0,n.a)({id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),c=(0,n.a)({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{public:{http:["https://astar.api.onfinality.io/public"]},default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),l=(0,n.a)({id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-sepolia.g.alchemy.com/v2"],webSocket:["wss://arb-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"},default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),u=(0,n.a)({id:1261120,name:"Astar zkEVM Testnet zKatana",network:"zKatana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]},public:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]}},blockExplorers:{blockscout:{name:"Blockscout zKatana chain explorer",url:"https://zkatana.blockscout.com"},default:{name:"zKatana Explorer",url:"https://zkatana.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:31317}},testnet:!0}),h=(0,n.a)({id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),d=(0,n.a)({id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0}),f=(0,n.a)({id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),p=(0,n.a)({id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),m=(0,n.a)({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com"}}});var g=r(95946),y=r(43310),w=r(6073),b=r(30866);const v={block:(0,y.G)({format(t){const e=t.transactions?.map((t=>{if("string"==typeof t)return t;const e=(0,w.Tr)(t);return"0x7e"===e.typeHex&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?(0,g.y_)(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}));return{transactions:e,stateRoot:t.stateRoot}}}),transaction:(0,w.y_)({format(t){const e={};return"0x7e"===t.type&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?(0,g.y_)(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:(0,b.d)({format:t=>({l1GasPrice:t.l1GasPrice?(0,g.y_)(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?(0,g.y_)(t.l1GasUsed):null,l1Fee:t.l1Fee?(0,g.y_)(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null})})},A=(0,n.a)({id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-mainnet.g.alchemy.com/v2"],webSocket:["wss://base-mainnet.g.alchemy.com/v2"]},infura:{http:["https://base-mainnet.infura.io/v3"],webSocket:["wss://base-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},{formatters:v}),E=(0,n.a)({id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-goerli.g.alchemy.com/v2"],webSocket:["wss://base-goerli.g.alchemy.com/v2"]},default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0,sourceId:5},{formatters:v}),x=(0,n.a)({id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://base-sepolia.g.alchemy.com/v2"],webSocket:["wss://base-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0,sourceId:11155111},{formatters:v}),_=(0,n.a)({id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}}),S=(0,n.a)({id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0}),M=(0,n.a)({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://bttcscan.com"},default:{name:"Bttcscan",url:"https://bttcscan.com"}}}),C=(0,n.a)({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{etherscan:{name:"Bttcscan",url:"https://testnet.bttcscan.com"},default:{name:"Bttcscan",url:"https://testnet.bttcscan.com"}},testnet:!0}),k=(0,n.a)({id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),I=(0,n.a)({id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),P=(0,n.a)({id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),O=(0,n.a)({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),N=(0,n.a)({id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),T=(0,n.a)({id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}}),R=(0,n.a)({id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}}),B=(0,n.a)({id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}});var L=r(92106),U=r(74688),j=r(61836);function D(t){return 0===t||0n===t||null==t||"0"===t||""===t||"string"==typeof t&&("0x"===(0,j.f)(t).toLowerCase()||"0x00"===(0,j.f)(t).toLowerCase())}function F(t){return!D(t)}function z(t){return F(t.maxFeePerGas)&&F(t.maxPriorityFeePerGas)}function H(t){return"cip42"===t.type||z(t)&&(F(t.feeCurrency)||F(t.gatewayFeeRecipient)||F(t.gatewayFee))}function $(t){return"cip64"===t.type||z(t)&&F(t.feeCurrency)&&D(t.gatewayFee)&&D(t.gatewayFeeRecipient)}const q={block:(0,y.G)({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(t){const e=t.transactions?.map((t=>"string"==typeof t?t:{...(0,w.Tr)(t),feeCurrency:t.feeCurrency,..."0x7b"!==t.type?{gatewayFee:t.gatewayFee?(0,g.y_)(t.gatewayFee):null,gatewayFeeRecipient:t.gatewayFeeRecipient||null}:{}}));return{randomness:t.randomness,transactions:e}}}),transaction:(0,w.y_)({format(t){const e={feeCurrency:t.feeCurrency};return"0x7b"===t.type?e.type="cip64":("0x7c"===t.type&&(e.type="cip42"),e.gatewayFee=t.gatewayFee?(0,g.y_)(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:(0,U.iy)({format(t){const e={feeCurrency:t.feeCurrency};return $(t)?e.type="0x7b":(H(t)&&(e.type="0x7c"),e.gatewayFee=void 0!==t.gatewayFee?(0,L.eC)(t.gatewayFee):void 0,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}})};var W=r(26087),V=r(62027),G=r(80377),K=r(26445),Z=r(49321),Q=r(57040);class J extends V.G{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class Y extends V.G{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}const X={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,assertPosition(t){if(t<0||t>this.bytes.length-1)throw new Y({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new J({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},incrementPosition(t){if(t<0)throw new J({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const r=e??this.position;return this.assertPosition(r+t-1),this.bytes.subarray(r,r+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){const t=this.inspectByte();return this.position++,t},readBytes(t){const e=this.inspectBytes(t);return this.position+=t,e},readUint8(){const t=this.inspectUint8();return this.position+=1,t},readUint16(){const t=this.inspectUint16();return this.position+=2,t},readUint24(){const t=this.inspectUint24();return this.position+=3,t},readUint32(){const t=this.inspectUint32();return this.position+=4,t},setPosition(t){this.assertPosition(t),this.position=t}};var tt=r(11187);function et(t,e="hex"){const r=rt(t),n=function(t){const e=Object.create(X);return e.bytes=t,e.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),e}(new Uint8Array(r.length));return r.encode(n),"hex"===e?(0,L.ci)(n.bytes):n.bytes}function rt(t){return Array.isArray(t)?function(t){const e=t.reduce(((t,e)=>t+e.length),0),r=nt(e);return{length:e<=55?1+e:1+r+e,encode(n){e<=55?n.pushByte(192+e):(n.pushByte(247+r),1===r?n.pushUint8(e):2===r?n.pushUint16(e):3===r?n.pushUint24(e):n.pushUint32(e));for(const{encode:e}of t)e(n)}}}(t.map((t=>rt(t)))):function(t){const e="string"==typeof t?(0,tt.nr)(t):t,r=nt(e.length);return{length:1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+r+e.length,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+r),1===r?t.pushUint8(e.length):2===r?t.pushUint16(e.length):3===r?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function nt(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new V.G("Length is too large.")}var it=r(33639);function st(t){if(!t||0===t.length)return[];const e=[];for(let r=0;r2n**256n-1n)throw new K.Hh({maxFeePerGas:i});if(r&&i&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r})}(t);const h=st(l),d=[(0,L.NC)(r),i?(0,L.NC)(i):"0x",c?(0,L.NC)(c):"0x",a?(0,L.NC)(a):"0x",n?(0,L.NC)(n):"0x",s??"0x",o?(0,L.NC)(o):"0x",u??"0x",h];if(e){const t=0n===e.v?"0x":1n===e.v?(0,L.NC)(1):27n===e.v?"0x":(0,L.NC)(1);d.push(t,(0,j.f)(e.r),(0,j.f)(e.s))}return(0,Q.SM)(["0x02",et(d)])}(t,e):"eip2930"===r?function(t,e){const{chainId:r,gas:n,data:i,nonce:s,to:o,value:a,accessList:c,gasPrice:l}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new W.b({address:s});if(r||i)throw new V.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>2n**256n-1n)throw new K.Hh({maxFeePerGas:n})}(t);const u=st(c),h=[(0,L.NC)(r),s?(0,L.NC)(s):"0x",l?(0,L.NC)(l):"0x",n?(0,L.NC)(n):"0x",o??"0x",a?(0,L.NC)(a):"0x",i??"0x",u];if(e){const t=0n===e.v?"0x":1n===e.v?(0,L.NC)(1):27n===e.v?"0x":(0,L.NC)(1);h.push(t,(0,j.f)(e.r),(0,j.f)(e.s))}return(0,Q.SM)(["0x01",et(h)])}(t,e):function(t,e){const{chainId:r=0,gas:n,data:i,nonce:s,to:o,value:a,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,accessList:o}=t;if(s&&!(0,Z.U)(s))throw new W.b({address:s});if(void 0!==e&&e<=0)throw new G.hJ({chainId:e});if(r||i)throw new V.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>2n**256n-1n)throw new K.Hh({maxFeePerGas:n});if(o)throw new V.G("`accessList` is not a valid Legacy Transaction attribute.")}(t);let l=[s?(0,L.NC)(s):"0x",c?(0,L.NC)(c):"0x",n?(0,L.NC)(n):"0x",o??"0x",a?(0,L.NC)(a):"0x",i??"0x"];if(e){const t=(()=>{if(r>0)return BigInt(2*r)+BigInt(35n+e.v-27n);if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new it.vl({v:e.v});return t})();l=[...l,(0,L.NC)(t),e.r,e.s]}else r>0&&(l=[...l,(0,L.NC)(r),"0x","0x"]);return et(l)}(t,e)}const ct={transaction:(t,e)=>$(t)?function(t,e){!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,feeCurrency:o}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new W.b({address:s});if(n)throw new V.G("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(F(i)&&i>lt)throw new K.Hh({maxFeePerGas:i});if(F(r)&&F(i)&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r});if(F(o)&&!(0,Z.U)(o))throw new V.G("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(D(o))throw new V.G("`feeCurrency` must be provided for CIP-64 transactions.")}(t);const{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,data:h}=t,d=[(0,L.NC)(r),i?(0,L.NC)(i):"0x",c?(0,L.NC)(c):"0x",a?(0,L.NC)(a):"0x",n?(0,L.NC)(n):"0x",s??"0x",o?(0,L.NC)(o):"0x",h??"0x",st(l),u];return e&&d.push(27n===e.v?"0x":(0,L.NC)(1),(0,j.f)(e.r),(0,j.f)(e.s)),(0,Q.SM)(["0x7b",et(d)])}(t,e):H(t)?function(t,e){!function(t){const{chainId:e,maxPriorityFeePerGas:r,gasPrice:n,maxFeePerGas:i,to:s,feeCurrency:o,gatewayFee:a,gatewayFeeRecipient:c}=t;if(e<=0)throw new G.hJ({chainId:e});if(s&&!(0,Z.U)(s))throw new W.b({address:s});if(n)throw new V.G("`gasPrice` is not a valid CIP-42 Transaction attribute.");if(F(i)&&i>lt)throw new K.Hh({maxFeePerGas:i});if(F(r)&&F(i)&&r>i)throw new K.cs({maxFeePerGas:i,maxPriorityFeePerGas:r});if(F(a)&&D(c)||F(c)&&D(a))throw new V.G("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if(F(o)&&!(0,Z.U)(o))throw new V.G("`feeCurrency` MUST be a token address for CIP-42 transactions.");if(F(c)&&!(0,Z.U)(c))throw new W.b(c);if(D(o)&&D(c))throw new V.G("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}(t);const{chainId:r,gas:n,nonce:i,to:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,feeCurrency:u,gatewayFeeRecipient:h,gatewayFee:d,data:f}=t,p=[(0,L.NC)(r),i?(0,L.NC)(i):"0x",c?(0,L.NC)(c):"0x",a?(0,L.NC)(a):"0x",n?(0,L.NC)(n):"0x",u??"0x",h??"0x",d?(0,L.NC)(d):"0x",s??"0x",o?(0,L.NC)(o):"0x",f??"0x",st(l)];return e&&p.push(27n===e.v?"0x":(0,L.NC)(1),(0,j.f)(e.r),(0,j.f)(e.s)),(0,Q.SM)(["0x7c",et(p)])}(t,e):at(t,e)},lt=2n**256n-1n,ut=(0,n.a)({id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},{formatters:q,serializers:ct}),ht=(0,n.a)({id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},{formatters:q,serializers:ct}),dt=(0,n.a)({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]},public:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com"}}}),ft=(0,n.a)({id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},{formatters:q,serializers:ct}),pt=(0,n.a)({id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),mt=(0,n.a)({id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]},public:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),gt=(0,n.a)({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]},public:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),yt=(0,n.a)({id:1116,name:"Core Dao",network:"coreDao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{public:{http:["https://rpc.coredao.org"]},default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"},etherscan:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),wt=(0,n.a)({id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),bt=(0,n.a)({id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),vt=(0,n.a)({id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),At=(0,n.a)({id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}}),Et=(0,n.a)({id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}}),xt=(0,n.a)({id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),_t=(0,n.a)({id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}}),St=(0,n.a)({id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),Mt=(0,n.a)({id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),Ct=(0,n.a)({id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),kt=(0,n.a)({id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),It=(0,n.a)({id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}}),Pt=(0,n.a)({id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0}),Ot=(0,n.a)({id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),Nt=(0,n.a)({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]},public:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),Tt=(0,n.a)({id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}}),Rt=(0,n.a)({id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),Bt=(0,n.a)({id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),Lt=(0,n.a)({id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}}),Ut=(0,n.a)({id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}}),jt=(0,n.a)({id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}}),Dt=(0,n.a)({id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0}),Ft=(0,n.a)({id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),zt=(0,n.a)({id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),Ht=(0,n.a)({id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}}),$t=(0,n.a)({id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}}),qt=(0,n.a)({id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}}),Wt=(0,n.a)({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),Vt=(0,n.a)({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network"}},testnet:!1}),Gt=(0,n.a)({id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0});var Kt=r(6891);const Zt=(0,n.a)({id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]},public:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),Qt=(0,n.a)({id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]},public:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),Jt=(0,n.a)({id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}}),Yt=(0,n.a)({id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),Xt=(0,n.a)({id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}}),te=(0,n.a)({id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}}),ee=(0,n.a)({id:17e3,network:"holesky",name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77}},testnet:!0}),re=(0,n.a)({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.kava.io"]},default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),ne=(0,n.a)({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{public:{http:["https://evm.testnet.kava.io"]},default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),ie=(0,n.a)({id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]},public:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),se=(0,n.a)({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]},public:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"},default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),oe=(0,n.a)({id:255,network:"kroma",name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]},public:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network"}},testnet:!1}),ae=(0,n.a)({id:2358,network:"kroma-sepolia",name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]},public:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network"}},testnet:!0}),ce=(0,n.a)({id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),le=(0,n.a)({id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),ue=(0,n.a)({id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}}),he=(0,n.a)({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]},public:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network"}}});var de=r(66403);const fe=(0,n.a)({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network"}},testnet:!0}),pe=(0,n.a)({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]},public:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{etherscan:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"},default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),me=(0,n.a)({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]},public:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{etherscan:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"},default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),ge=(0,n.a)({id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),ye=(0,n.a)({id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0}),we=(0,n.a)({id:82,name:"Meter",network:"meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]},public:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),be=(0,n.a)({id:83,name:"Meter Testnet",network:"meter-testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]},public:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),ve=(0,n.a)({id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),Ae=(0,n.a)({id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),Ee=(0,n.a)({id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),xe=(0,n.a)({id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),_e=(0,n.a)({id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0}),Se=(0,n.a)({id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),Me=(0,n.a)({id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),Ce=(0,n.a)({id:1281,name:"Moonbeam Development Node",network:"development",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]},public:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),ke=(0,n.a)({id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),Ie=(0,n.a)({id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),Pe=(0,n.a)({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]},public:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{},testnet:!1}),Oe=(0,n.a)({id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),Ne=(0,n.a)({id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),Te=(0,n.a)({id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}}),Re=(0,n.a)({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com"}},testnet:!0}),Be=(0,n.a)({id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),Le=(0,n.a)({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:v}),Ue=(0,n.a)({id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},{formatters:v}),je=(0,n.a)({id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-sepolia.g.alchemy.com/v2"],webSocket:["wss://opt-sepolia.g.alchemy.com/v2"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"},default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},testnet:!0},{formatters:v}),De=(0,n.a)({id:204,name:"opBNB",network:"opBNB Mainnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{public:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}}),Fe=(0,n.a)({id:5611,name:"opBNB Testnet",network:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{public:{http:["https://opbnb-testnet-rpc.bnbchain.org"]},default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0}),ze=(0,n.a)({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]},public:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209}}},{formatters:v}),He=(0,n.a)({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]},public:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},testnet:!0},{formatters:v}),$e=(0,n.a)({id:242,name:"Plinga",network:"plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]},public:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),qe=(0,n.a)({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),We=(0,n.a)({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),Ve=(0,n.a)({id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),Ge=(0,n.a)({id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),Ke=(0,n.a)({id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Ze=(0,n.a)({id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Qe=(0,n.a)({id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}}),Je=(0,n.a)({id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0}),Ye=(0,n.a)({id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),Xe=(0,n.a)({id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),tr=(0,n.a)({id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),er=(0,n.a)({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{public:{http:["https://public-node.rsk.co"]},default:{http:["https://public-node.rsk.co"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://rootstock.blockscout.com"},default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),rr=(0,n.a)({id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),nr=(0,n.a)({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),ir=(0,n.a)({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev"}},testnet:!0}),sr=(0,n.a)({id:534352,name:"Scroll",network:"scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]},public:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com"},blockscout:{name:"Blockscout",url:"https://blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),or=(0,n.a)({id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]},public:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),ar=(0,n.a)({id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0});var cr=r(35194);const lr=(0,n.a)({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.shimmer.network"]},default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network"}}}),ur=(0,n.a)({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{public:{http:["https://json-rpc.evm.testnet.shimmer.network"]},default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network"}},testnet:!0}),hr=(0,n.a)({id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),dr=(0,n.a)({id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),fr=(0,n.a)({id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0}),pr=(0,n.a)({id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0}),mr=(0,n.a)({id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),gr=(0,n.a)({id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),yr=(0,n.a)({id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),wr=(0,n.a)({id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0}),br=(0,n.a)({id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),vr=(0,n.a)({id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),Ar=(0,n.a)({id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),Er=(0,n.a)({id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0}),xr=(0,n.a)({id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),_r=(0,n.a)({id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),Sr=(0,n.a)({id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0}),Mr=(0,n.a)({id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}}),Cr=(0,n.a)({id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0}),kr=(0,n.a)({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]},public:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com"}},testnet:!0}),Ir=(0,n.a)({id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),Pr=(0,n.a)({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]},public:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{etherscan:{name:"Blockscout",url:"https://shibariumscan.io"},default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),Or=(0,n.a)({id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),Nr=(0,n.a)({id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),Tr=(0,n.a)({id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),Rr=(0,n.a)({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",network:"tko-jolnir",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]},public:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}}}),Br=(0,n.a)({id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),Lr=(0,n.a)({id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),Ur=(0,n.a)({id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),jr=(0,n.a)({id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),Dr=(0,n.a)({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{public:{http:["https://rpc.tenet.org"]},default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io"}},testnet:!1}),Fr=(0,n.a)({id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0}),zr=(0,n.a)({id:100009,name:"Vechain",network:"vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]},public:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),Hr=(0,n.a)({id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),$r=(0,n.a)({id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),qr=(0,n.a)({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://explorer.wemix.com"},default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),Wr=(0,n.a)({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{etherscan:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"},default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com"}},testnet:!0}),Vr=(0,n.a)({id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}}),Gr=(0,n.a)({id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}}),Kr=(0,n.a)({id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),Zr=(0,n.a)({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io"}},testnet:!1}),Qr=(0,n.a)({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0});var Jr=r(53992);const Yr={block:(0,y.G)({format(t){const e=t.transactions?.map((t=>{if("string"==typeof t)return t;const e=Yr.transaction.format(t);return"0x71"===e.typeHex?e.type="eip712":"0xff"===e.typeHex&&(e.type="priority"),e}));return{l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?(0,g.y_)(t.l1BatchTimestamp):null,transactions:e}}}),transaction:(0,w.y_)({format(t){const e={};return"0x71"===t.type?e.type="eip712":"0xff"===t.type&&(e.type="priority"),{...e,l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?(0,g.y_)(t.l1BatchTxIndex):null}}}),transactionReceipt:(0,b.d)({format:t=>({l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?(0,g.y_)(t.l1BatchTxIndex):null,logs:t.logs.map((t=>({...(0,Jr.U)(t),l1BatchNumber:t.l1BatchNumber?(0,g.y_)(t.l1BatchNumber):null,transactionLogIndex:(0,g.ly)(t.transactionLogIndex),logType:t.logType}))),l2ToL1Logs:t.l2ToL1Logs.map((t=>({blockNumber:(0,g.y_)(t.blockHash),blockHash:t.blockHash,l1BatchNumber:(0,g.y_)(t.l1BatchNumber),transactionIndex:(0,g.y_)(t.transactionIndex),shardId:(0,g.y_)(t.shardId),isService:t.isService,sender:t.sender,key:t.key,value:t.value,transactionHash:t.transactionHash,logIndex:(0,g.y_)(t.logIndex)})))})}),transactionRequest:(0,U.iy)({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format:t=>t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:(0,L.NC)(t.gasPerPubdata)}:{},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from((0,tt.nr)(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps}:{},...t.customSignature?{customSignature:t.customSignature}:{}},type:"eip712"===t.type?"0x71":"0xff"}:{}})},Xr={transaction:(t,e)=>{return"customSignature"in(r=t)||"paymaster"in r||"paymasterInput"in r||"gasPerPubdata"in r||"factoryDeps"in r?function(t){const{chainId:e,gas:r,nonce:n,to:i,from:s,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,customSignature:l,factoryDeps:u,paymaster:h,paymasterInput:d,gasPerPubdata:f,data:p}=t;!function(t){const{chainId:e,to:r,from:n,paymaster:i,paymasterInput:s}=t;if(e<=0)throw new G.hJ({chainId:e});if(r&&!(0,Z.U)(r))throw new W.b({address:r});if(n&&!(0,Z.U)(n))throw new W.b({address:n});if(i&&!(0,Z.U)(i))throw new W.b({address:i});if(i&&!s)throw new V.G("`paymasterInput` must be provided when `paymaster` is defined");if(!i&&s)throw new V.G("`paymaster` must be provided when `paymasterInput` is defined")}(t);const m=[n?(0,L.NC)(n):"0x",c?(0,L.NC)(c):"0x",a?(0,L.NC)(a):"0x",r?(0,L.NC)(r):"0x",i??"0x",o?(0,L.NC)(o):"0x",p??"0x",(0,L.NC)(e),(0,L.NC)(""),(0,L.NC)(""),(0,L.NC)(e),s??"0x",f?(0,L.NC)(f):"0x",u??[],l??"0x",h&&d?[h,d]:[]];return(0,Q.SM)(["0x71",et(m)])}(t):at(t,e);var r}},tn=(0,n.a)({id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},{serializers:Xr,formatters:Yr}),en=(0,n.a)({id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:Xr,formatters:Yr}),rn=(0,n.a)({id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]},public:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},{serializers:Xr,formatters:Yr}),nn=(0,n.a)({id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0}),sn=(0,n.a)({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]},public:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),on=(0,n.a)({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]},public:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),an=(0,n.a)({id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},{formatters:v}),cn=(0,n.a)({id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160}},testnet:!0},{formatters:v}),ln=(0,n.a)({id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0},{formatters:v})},46070:(t,e,n)=>{"use strict";n.d(e,{Yl:()=>Pe,X4:()=>Oe,De:()=>Qe,gs:()=>Te,wi:()=>Ne,OJ:()=>Re,QB:()=>Ie,$j:()=>Xe,_g:()=>Je,o6:()=>$e,vZ:()=>Be,vB:()=>Ue,zP:()=>tr,em:()=>er,yS:()=>ir,YD:()=>nr,EG:()=>xr,RQ:()=>Br,bh:()=>Or,w6:()=>Nr,Lk:()=>Tr,Uj:()=>Rr,jS:()=>Lr,EC:()=>sr,KI:()=>Ur,D0:()=>_r,iE:()=>Ye,uN:()=>fr,Hy:()=>Sr,uV:()=>or,Wy:()=>je,xz:()=>ar,jr:()=>cr,Ap:()=>pr,wp:()=>He,uw:()=>jr,$q:()=>dr,a4:()=>mr,JH:()=>gr,T7:()=>Dr,qC:()=>ze,l:()=>Mr,xq:()=>Cr,If:()=>kr,Mn:()=>Fr,uH:()=>Ir,qu:()=>wr,Y$:()=>yr,Mx:()=>br,QC:()=>Pr,us:()=>zr,pC:()=>lr,jt:()=>vr,fn:()=>Ar,Tb:()=>ur,fq:()=>hr,n9:()=>Er});var i=n(92219),s=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},o=(t,e,r)=>(s(t,e,"read from private field"),r?r.call(t):e.get(t)),a=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},c=(t,e,r,n)=>(s(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),l=n(9914),u=n(16693),h=n(7210),d=n(77799),f=n(47864),p=n(61836),m=n(92106),g=n(21746),y=n(62027),w=n(15980);function b(t,e){if(!(t instanceof y.G))return!1;const r=t.walk((t=>t instanceof w.Lu));return r instanceof w.Lu&&("ResolverNotFound"===r.data?.errorName||"ResolverWildcardNotSupported"===r.data?.errorName||!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===e&&r.reason===g.$[50])}var v=n(57040),A=n(11187),E=n(43199),x=n(15102);function _(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return(0,x.v)(e)?e:null}function S(t){let e=new Uint8Array(32).fill(0);if(!t)return(0,m.ci)(e);const r=t.split(".");for(let t=r.length-1;t>=0;t-=1){const n=_(r[t]),i=n?(0,A.O0)(n):(0,E.w)((0,A.qX)(r[t]),"bytes");e=(0,E.w)((0,v.zo)([e,i]),"bytes")}return(0,m.ci)(e)}function M(t){const e=new Uint8Array(32).fill(0);return t?_(t)||(0,E.w)((0,A.qX)(t)):(0,m.ci)(e)}function C(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const r=new Uint8Array((0,A.qX)(e).byteLength+2);let n=0;const i=e.split(".");for(let t=0;t255&&(e=(0,A.qX)(`[${M(i[t]).slice(2)}]`)),r[n]=e.length,r.set(e,n+1),n+=e.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}var k=n(93714),I=n(57412),P=n(39028);const O=3;function N(t,{abi:e,address:r,args:n,docsPath:i,functionName:s,sender:o}){const{code:a,data:c,message:l,shortMessage:u}=t instanceof w.VQ?t:t instanceof y.G?t.walk((t=>"data"in t))||t.walk():{},h=t instanceof I.wb?new w.Dk({functionName:s}):[O,P.XS.code].includes(a)&&(c||l||u)?new w.Lu({abi:e,data:"object"==typeof c?c.data:c,functionName:s,message:u??l}):t;return new w.uq(h,{abi:e,args:n,contractAddress:r,docsPath:i,functionName:s,sender:o})}var T=n(76143);async function R(t,{abi:e,address:r,args:n,functionName:i,...s}){const o=(0,d.R)({abi:e,args:n,functionName:i});try{const{data:a}=await(0,k.s)(t,T.R,"call")({data:o,to:r,...s});return(0,h.k)({abi:e,args:n,functionName:i,data:a||"0x"})}catch(t){throw N(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}class B extends y.G{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class L extends y.G{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class U extends y.G{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class j extends y.G{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const D=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,F=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,z=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,H=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function $(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function q({uri:t,gatewayUrls:e}){const r=z.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};const n=$(e?.ipfs,"https://ipfs.io"),i=$(e?.arweave,"https://arweave.net"),s=t.match(D),{protocol:o,subpath:a,target:c,subtarget:l=""}=s?.groups||{},u="ipns:/"===o||"ipns/"===a,h="ipfs:/"===o||"ipfs/"===a||F.test(t);if(t.startsWith("http")&&!u&&!h){let r=t;return e?.arweave&&(r=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((u||h)&&c)return{uri:`${n}/${u?"ipns":"ipfs"}/${c}${l}`,isOnChain:!1,isEncoded:!1};if("ar:/"===o&&c)return{uri:`${i}/${c}${l||""}`,isOnChain:!1,isEncoded:!1};let d=t.replace(H,"");if(d.startsWith("{const r=new Image;r.onload=()=>{e(!0)},r.onerror=()=>{e(!1)},r.src=t}))}}(r);if(i)return r;throw new U({uri:e})}async function G(t,{blockNumber:e,blockTag:r,name:n,key:i,universalResolverAddress:s}){let o=s;if(!o){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,f.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const s=await(0,k.s)(t,R,"readContract")({address:o,abi:u.k3,functionName:"resolve",args:[(0,m.NC)(C(n)),(0,d.R)({abi:u.nZ,functionName:"text",args:[S(n),i]})],blockNumber:e,blockTag:r});if("0x"===s[0])return null;const a=(0,h.k)({abi:u.nZ,functionName:"text",data:s[0]});return""===a?null:a}catch(t){if(b(t,"resolve"))return null;throw t}}function K(t,{method:e}){const r={};return"fallback"===t.transport.type&&t.transport.onResponse?.((({method:t,response:n,status:i,transport:s})=>{"success"===i&&e===t&&(r[n]=s.request)})),e=>r[e]||t.request}class Z extends y.G{constructor(t){super(`Filter type "${t}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var Q=n(54092),J=n(45444),Y=n(80522),X=n(40840);function tt({abi:t,eventName:e,args:r}){let n=t[0];if(e&&(n=(0,X.mE)({abi:t,args:r,name:e}),!n))throw new I.mv(e,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new I.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const i=(0,Y.t)(n),s=(0,Q.e)(i);let o=[];if(r&&"inputs"in n){const t=n.inputs?.filter((t=>"indexed"in t&&t.indexed)),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map((t=>r[t.name]))??[]:[];e.length>0&&(o=t?.map(((t,r)=>Array.isArray(e[r])?e[r].map(((n,i)=>et({param:t,value:e[r][i]}))):e[r]?et({param:t,value:e[r]}):null))??[])}return[s,...o]}function et({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return(0,E.w)((0,A.O0)(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Z(t.type);return(0,J.E)([t],[e])}async function rt(t,{address:e,abi:r,args:n,eventName:i,fromBlock:s,strict:o,toBlock:a}){const c=K(t,{method:"eth_newFilter"}),l=i?tt({abi:r,args:n,eventName:i}):void 0,u=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof s?(0,m.eC)(s):s,toBlock:"bigint"==typeof a?(0,m.eC)(a):a,topics:l}]});return{abi:r,args:n,eventName:i,id:u,request:c(u),strict:o,type:"event"}}async function nt(t,{address:e,args:r,event:n,events:i,fromBlock:s,strict:o,toBlock:a}={}){const c=i??(n?[n]:void 0),l=K(t,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap((t=>tt({abi:[t],eventName:t.name,args:r})))],n&&(u=u[0]));const h=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof s?(0,m.eC)(s):s,toBlock:"bigint"==typeof a?(0,m.eC)(a):a,...u.length?{topics:u}:{}}]});return{abi:c,args:r,eventName:n?n.name:void 0,fromBlock:s,id:h,request:l(h),strict:o,toBlock:a,type:"event"}}async function it(t){const e=K(t,{method:"eth_newPendingTransactionFilter"}),r=await t.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:e(r),type:"transaction"}}var st=n(14503),ot=n(84241);async function at(t,{abi:e,address:r,args:n,functionName:i,...s}){const o=(0,d.R)({abi:e,args:n,functionName:i});try{return await(0,k.s)(t,ot.Q,"estimateGas")({data:o,to:r,...s})}catch(t){throw N(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:(s.account?(0,st.T)(s.account):void 0)?.address})}}var ct=n(43861),lt=n(79379),ut=n(75016);const ht=new Map,dt=new Map,ft=t=>`blockNumber.${t}`;async function pt(t,{cacheTime:e=t.cacheTime,maxAge:r}={}){const n=await async function(t,{cacheKey:e,cacheTime:r=1/0}){const n=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:r=>e.set(t,r)}),r=e(t,ht),n=e(t,dt);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(e),i=n.response.get();if(i&&r>0&&(new Date).getTime()-i.created.getTime()t.request({method:"eth_blockNumber"})),{cacheKey:ft(t.uid),cacheTime:r??e});return BigInt(n)}var mt=n(95946),gt=n(79524),yt=n(34450);const wt="/docs/contract/decodeEventLog";function bt({abi:t,data:e,strict:r,topics:n}){const i=r??!0,[s,...o]=n;if(!s)throw new I.FM({docsPath:wt});const a=t.find((t=>"event"===t.type&&s===(0,Q.e)((0,Y.t)(t))));if(!a||!("name"in a)||"event"!==a.type)throw new I.lC(s,{docsPath:wt});const{name:c,inputs:l}=a,u=l?.some((t=>!("name"in t&&t.name)));let h=u?[]:{};const d=l.filter((t=>"indexed"in t&&t.indexed));for(let t=0;t!("indexed"in t&&t.indexed)));if(f.length>0)if(e&&"0x"!==e)try{const t=(0,yt.r)(f,e);if(t)if(u)h=[...h,...t];else for(let e=0;e0?h:void 0}}function vt({param:t,value:e}){return"string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/)?e:((0,yt.r)([t],e)||[])[0]}var At=n(53992);async function Et(t,{address:e,blockHash:r,fromBlock:n,toBlock:i,event:s,events:o,args:a,strict:c}={}){const l=c??!1,u=o??(s?[s]:void 0);let h,d=[];return u&&(d=[u.flatMap((t=>tt({abi:[t],eventName:t.name,args:a})))],s&&(d=d[0])),h=r?await t.request({method:"eth_getLogs",params:[{address:e,topics:d,blockHash:r}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:d,fromBlock:"bigint"==typeof n?(0,m.eC)(n):n,toBlock:"bigint"==typeof i?(0,m.eC)(i):i}]}),h.map((t=>{try{const{eventName:e,args:r}=u?bt({abi:u,data:t.data,topics:t.topics,strict:l}):{eventName:void 0,args:void 0};return(0,At.U)(t,{args:r,eventName:e})}catch(e){let r,n;if(e instanceof I.SM||e instanceof I.Gy){if(l)return;r=e.abiItem.name,n=e.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,At.U)(t,{args:n?[]:{},eventName:r})}})).filter(Boolean)}async function xt(t,{abi:e,address:r,args:n,blockHash:i,eventName:s,fromBlock:o,toBlock:a,strict:c}){const l=s?(0,X.mE)({abi:e,name:s}):void 0,u=l?void 0:e.filter((t=>"event"===t.type));return(0,k.s)(t,Et,"getLogs")({address:r,args:n,blockHash:i,event:l,events:u,fromBlock:o,toBlock:a,strict:c})}async function _t(t,{filter:e}){const r="strict"in e&&e.strict;return(await e.request({method:"eth_getFilterChanges",params:[e.id]})).map((t=>{if("string"==typeof t)return t;try{const{eventName:n,args:i}="abi"in e&&e.abi?bt({abi:e.abi,data:t.data,topics:t.topics,strict:r}):{eventName:void 0,args:void 0};return(0,At.U)(t,{args:i,eventName:n})}catch(r){let n,i;if(r instanceof I.SM||r instanceof I.Gy){if("strict"in e&&e.strict)return;n=r.abiItem.name,i=r.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,At.U)(t,{args:i?[]:{},eventName:n})}})).filter(Boolean)}var St=n(24453),Mt=n(33639),Ct=n(6073);async function kt(t,{blockHash:e,blockNumber:r,blockTag:n,hash:i,index:s}){const o=n||"latest",a=void 0!==r?(0,m.eC)(r):void 0;let c=null;if(i?c=await t.request({method:"eth_getTransactionByHash",params:[i]}):e?c=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,(0,m.eC)(s)]}):(a||o)&&(c=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[a||o,(0,m.eC)(s)]})),!c)throw new Mt.Bh({blockHash:e,blockNumber:r,blockTag:o,hash:i,index:s});return(t.chain?.formatters?.transaction?.format||Ct.Tr)(c)}var It=n(86162),Pt=n(30866);async function Ot(t,{hash:e}){const r=await t.request({method:"eth_getTransactionReceipt",params:[e]});if(!r)throw new Mt.Yb({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Pt.f)(r)}async function Nt(t,{abi:e,address:r,args:n,dataSuffix:i,functionName:s,...o}){const a=o.account?(0,st.T)(o.account):void 0,c=(0,d.R)({abi:e,args:n,functionName:s});try{const{data:a}=await(0,k.s)(t,T.R,"call")({batch:!1,data:`${c}${i?i.replace("0x",""):""}`,to:r,...o});return{result:(0,h.k)({abi:e,args:n,functionName:s,data:a||"0x"}),request:{abi:e,address:r,args:n,dataSuffix:i,functionName:s,...o}}}catch(t){throw N(t,{abi:e,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:s,sender:a?.address})}}async function Tt(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}BigInt(0),BigInt(1),BigInt(2);var Rt=n(30286);async function Bt(t,{address:e,hash:r,signature:n,...i}){const s=(0,x.v)(n)?n:(0,m.NC)(n);try{const{data:n}=await(0,k.s)(t,T.R,"call")({data:(0,Rt.w)({abi:u.$o,args:[e,r,s],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return o=n??"0x0",a="0x1",function(t,e){if(t.length!==e.length)return!1;for(let r=0;r`${e} ${t}`)).join(",")})`;return r}({primaryType:t,types:e}));return(0,E.w)(r)}function zt({primaryType:t,types:e},r=new Set){const n=t.match(/^\w*/u)?.[0];if(r.has(n)||void 0===e[n])return r;r.add(n);for(const t of e[n])zt({primaryType:t.type,types:e},r);return r}function Ht({types:t,name:e,type:r,value:n}){if(void 0!==t[r])return[{type:"bytes32"},(0,E.w)(Dt({data:n,primaryType:r,types:t}))];if("bytes"===r)return n="0x"+(n.length%2?"0":"")+n.slice(2),[{type:"bytes32"},(0,E.w)(n)];if("string"===r)return[{type:"bytes32"},(0,E.w)((0,m.NC)(n))];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),s=n.map((r=>Ht({name:e,type:i,types:t,value:r})));return[{type:"bytes32"},(0,E.w)((0,J.E)(s.map((([t])=>t)),s.map((([,t])=>t))))]}return[{type:r},n]}var $t=n(79814);const qt=new Map,Wt=new Map;let Vt=0;function Gt(t,e,r){const n=++Vt,i=()=>qt.get(t)||[],s=()=>{const e=Wt.get(t);1===i().length&&e&&e(),(()=>{const e=i();qt.set(t,e.filter((t=>t.id!==n)))})()},o=i();if(qt.set(t,[...o,{id:n,fns:e}]),o&&o.length>0)return s;const a={};for(const t in e)a[t]=(...e)=>{const r=i();if(0!==r.length)for(const n of r)n.fns[t]?.(...e)};const c=r(a);return"function"==typeof c&&Wt.set(t,c),s}var Kt=n(7760),Zt=n(96070),Qt=n(62914);function Jt(t,{emitOnBegin:e,initialWaitTime:r,interval:n}){let i=!0;const s=()=>i=!1;return(async()=>{let o;e&&(o=await t({unpoll:s}));const a=await(r?.(o))??n;await(0,Qt.D)(a);const c=async()=>{i&&(await t({unpoll:s}),await(0,Qt.D)(n),c())};c()})(),s}function Yt(t,{emitOnBegin:e=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:s,pollingInterval:o=t.pollingInterval}){let a;return(void 0!==s?s:"webSocket"!==t.transport.type)?Gt((0,Zt.P)(["watchBlockNumber",t.uid,e,r,o]),{onBlockNumber:n,onError:i},(n=>Jt((async()=>{try{const e=await(0,k.s)(t,pt,"getBlockNumber")({cacheTime:0});if(a){if(e===a)return;if(e-a>1&&r)for(let t=a+1n;ta)&&(n.onBlockNumber(e,a),a=e)}catch(t){n.onError?.(t)}}),{emitOnBegin:e,interval:o}))):(()=>{let e=!0,r=()=>e=!1;return(async()=>{try{const{unsubscribe:s}=await t.transport.subscribe({params:["newHeads"],onData(t){if(!e)return;const r=(0,mt.y_)(t.result?.number);n(r,a),a=r},onError(t){i?.(t)}});r=s,e||r()}catch(t){i?.(t)}})(),r})()}var Xt=n(43310);function te(t,{abi:e,address:r,args:n,batch:i=!0,eventName:s,onError:o,onLogs:a,poll:c,pollingInterval:l=t.pollingInterval,strict:u}){return(void 0!==c?c:"webSocket"!==t.transport.type)?(()=>{const c=(0,Zt.P)(["watchContractEvent",r,n,i,t.uid,s,l]),h=u??!1;return Gt(c,{onLogs:a,onError:o},(o=>{let a,c,u=!1;const d=Jt((async()=>{if(u)try{let l;if(c)l=await(0,k.s)(t,_t,"getFilterChanges")({filter:c});else{const i=await(0,k.s)(t,pt,"getBlockNumber")({});l=a&&a!==i?await(0,k.s)(t,xt,"getContractEvents")({abi:e,address:r,args:n,eventName:s,fromBlock:a+1n,toBlock:i,strict:h}):[],a=i}if(0===l.length)return;if(i)o.onLogs(l);else for(const t of l)o.onLogs([t])}catch(t){c&&t instanceof P.yR&&(u=!1),o.onError?.(t)}else{try{c=await(0,k.s)(t,rt,"createContractEventFilter")({abi:e,address:r,args:n,eventName:s,strict:h})}catch{}u=!0}}),{emitOnBegin:!0,interval:l});return async()=>{c&&await(0,k.s)(t,Tt,"uninstallFilter")({filter:c}),d()}}))})():(()=>{let i=!0,c=()=>i=!1;return(async()=>{try{const l=s?tt({abi:e,eventName:s,args:n}):[],{unsubscribe:h}=await t.transport.subscribe({params:["logs",{address:r,topics:l}],onData(t){if(!i)return;const r=t.result;try{const{eventName:t,args:n}=bt({abi:e,data:r.data,topics:r.topics,strict:u}),i=(0,At.U)(r,{args:n,eventName:t});a([i])}catch(t){let e,n;if(t instanceof I.SM||t instanceof I.Gy){if(u)return;e=t.abiItem.name,n=t.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}const i=(0,At.U)(r,{args:n?[]:{},eventName:e});a([i])}},onError(t){o?.(t)}});c=h,i||c()}catch(t){o?.(t)}})(),c})()}var ee=n(37397),re=n(99238);function ne(t){return{call:e=>(0,T.R)(t,e),createBlockFilter:()=>async function(t){const e=K(t,{method:"eth_newBlockFilter"}),r=await t.request({method:"eth_newBlockFilter"});return{id:r,request:e(r),type:"block"}}(t),createContractEventFilter:e=>rt(t,e),createEventFilter:e=>nt(t,e),createPendingTransactionFilter:()=>it(t),estimateContractGas:e=>at(t,e),estimateGas:e=>(0,ot.Q)(t,e),getBalance:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest"}){const i=r?(0,m.eC)(r):void 0,s=await t.request({method:"eth_getBalance",params:[e,i||n]});return BigInt(s)}(t,e),getBlock:e=>(0,ut.Q)(t,e),getBlockNumber:e=>pt(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:r,blockTag:n="latest"}={}){const i=void 0!==r?(0,m.eC)(r):void 0;let s;return s=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]}),(0,mt.ly)(s)}(t,e),getBytecode:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest"}){const i=void 0!==r?(0,m.eC)(r):void 0,s=await t.request({method:"eth_getCode",params:[e,i||n]});if("0x"!==s)return s}(t,e),getChainId:()=>(0,gt.L)(t),getContractEvents:e=>xt(t,e),getEnsAddress:e=>async function(t,{blockNumber:e,blockTag:r,coinType:n,name:i,universalResolverAddress:s}){let o=s;if(!o){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,f.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}try{const s=(0,d.R)({abi:u.X$,functionName:"addr",...null!=n?{args:[S(i),BigInt(n)]}:{args:[S(i)]}}),a=await(0,k.s)(t,R,"readContract")({address:o,abi:u.k3,functionName:"resolve",args:[(0,m.NC)(C(i)),s],blockNumber:e,blockTag:r});if("0x"===a[0])return null;const c=(0,h.k)({abi:u.X$,args:null!=n?[S(i),BigInt(n)]:void 0,functionName:"addr",data:a[0]});return"0x"===c||"0x00"===(0,p.f)(c)?null:c}catch(t){if(b(t,"resolve"))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:r,gatewayUrls:n,name:i,universalResolverAddress:s}){const o=await(0,k.s)(t,G,"getEnsText")({blockNumber:e,blockTag:r,key:"avatar",name:i,universalResolverAddress:s});if(!o)return null;try{return await async function(t,{gatewayUrls:e,record:r}){return/eip155:/i.test(r)?async function(t,{gatewayUrls:e,record:r}){const n=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[r,n,i]=e.split("/"),[s,o]=r.split(":"),[a,c]=n.split(":");if(!s||"eip155"!==s.toLowerCase())throw new L({reason:"Only EIP-155 supported"});if(!o)throw new L({reason:"Chain ID not found"});if(!c)throw new L({reason:"Contract address not found"});if(!i)throw new L({reason:"Token ID not found"});if(!a)throw new L({reason:"ERC namespace not found"});return{chainID:parseInt(o),namespace:a.toLowerCase(),contractAddress:c,tokenID:i}}(r),i=await async function(t,{nft:e}){if("erc721"===e.namespace)return R(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return R(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new j({namespace:e.namespace})}(t,{nft:n}),{uri:s,isOnChain:o,isEncoded:a}=q({uri:i,gatewayUrls:e});if(o&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const t=a?atob(s.replace("data:application/json;base64,","")):s;return V({uri:W(JSON.parse(t)),gatewayUrls:e})}let c=n.tokenID;return"erc1155"===n.namespace&&(c=c.replace("0x","").padStart(64,"0")),async function({gatewayUrls:t,uri:e}){try{const r=await fetch(e).then((t=>t.json()));return await V({gatewayUrls:t,uri:W(r)})}catch{throw new U({uri:e})}}({gatewayUrls:e,uri:s.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:r}):V({uri:r,gatewayUrls:e})}(t,{record:o,gatewayUrls:n})}catch{return null}}(t,e),getEnsName:e=>async function(t,{address:e,blockNumber:r,blockTag:n,universalResolverAddress:i}){let s=i;if(!s){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,f.L)({blockNumber:r,chain:t.chain,contract:"ensUniversalResolver"})}const o=`${e.toLowerCase().substring(2)}.addr.reverse`;try{const[i,a]=await(0,k.s)(t,R,"readContract")({address:s,abi:u.du,functionName:"reverse",args:[(0,m.NC)(C(o))],blockNumber:r,blockTag:n});return e.toLowerCase()!==a.toLowerCase()?null:i}catch(t){if(b(t,"reverse"))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,{blockNumber:e,blockTag:r,name:n,universalResolverAddress:i}){let s=i;if(!s){if(!t.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,f.L)({blockNumber:e,chain:t.chain,contract:"ensUniversalResolver"})}const[o]=await(0,k.s)(t,R,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,m.NC)(C(n))],blockNumber:e,blockTag:r});return o}(t,e),getEnsText:e=>G(t,e),getFeeHistory:e=>async function(t,{blockCount:e,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){const s=r?(0,m.eC)(r):void 0;return{baseFeePerGas:(o=await t.request({method:"eth_feeHistory",params:[(0,m.eC)(e),s||n,i]})).baseFeePerGas.map((t=>BigInt(t))),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map((t=>t.map((t=>BigInt(t)))))};var o}(t,e),estimateFeesPerGas:e=>(0,ct.X)(t,e),getFilterChanges:t=>_t(0,t),getFilterLogs:t=>async function(t,{filter:e}){const r=e.strict??!1;return(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map((t=>{try{const{eventName:n,args:i}="abi"in e&&e.abi?bt({abi:e.abi,data:t.data,topics:t.topics,strict:r}):{eventName:void 0,args:void 0};return(0,At.U)(t,{args:i,eventName:n})}catch(r){let n,i;if(r instanceof I.SM||r instanceof I.Gy){if("strict"in e&&e.strict)return;n=r.abiItem.name,i=r.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}return(0,At.U)(t,{args:i?[]:{},eventName:n})}})).filter(Boolean)}(0,t),getGasPrice:()=>(0,St.o)(t),getLogs:e=>Et(t,e),getProof:e=>async function(t,{address:e,blockNumber:r,blockTag:n,storageKeys:i}){const s=n??"latest",o=void 0!==r?(0,m.eC)(r):void 0;return a=await t.request({method:"eth_getProof",params:[e,i,o||s]}),{...a,balance:a.balance?BigInt(a.balance):void 0,nonce:a.nonce?(0,mt.ly)(a.nonce):void 0,storageProof:a.storageProof?(c=a.storageProof,c.map((t=>({...t,value:BigInt(t.value)})))):void 0};var a,c}(t,e),estimateMaxPriorityFeePerGas:e=>(0,lt._)(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:r,blockTag:n="latest",slot:i}){const s=void 0!==r?(0,m.eC)(r):void 0;return await t.request({method:"eth_getStorageAt",params:[e,i,s||n]})}(t,e),getTransaction:e=>kt(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:r}){const[n,i]=await Promise.all([(0,k.s)(t,pt,"getBlockNumber")({}),e?(0,k.s)(t,kt,"getBlockNumber")({hash:e}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}(t,e),getTransactionCount:e=>(0,It.K)(t,e),getTransactionReceipt:e=>Ot(t,e),multicall:e=>async function(t,e){const{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:s,contracts:o,multicallAddress:a}=e,c=n??("object"==typeof t.batch?.multicall&&t.batch.multicall.batchSize||1024);let l=a;if(!l){if(!t.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,f.L)({blockNumber:i,chain:t.chain,contract:"multicall3"})}const p=[[]];let m=0,g=0;for(let e=0;e0&&g>c&&p[m].length>0&&(m++,g=(t.length-2)/2,p[m]=[]),p[m]=[...p[m],{allowFailure:!0,callData:t,target:i}]}catch(t){const e=N(t,{abi:n,address:i,args:s,docsPath:"/docs/contract/multicall",functionName:a});if(!r)throw e;p[m]=[...p[m],{allowFailure:!0,callData:"0x",target:i}]}}const b=await Promise.allSettled(p.map((e=>(0,k.s)(t,R,"readContract")({abi:u.F8,address:l,args:[e],blockNumber:i,blockTag:s,functionName:"aggregate3"})))),v=[];for(let e=0;e(0,ee.Z)(t,e),readContract:e=>R(t,e),sendRawTransaction:e=>(0,re.p)(t,e),simulateContract:e=>Nt(t,e),verifyMessage:e=>async function(t,{address:e,message:r,signature:n,...i}){const s=function(t,e){const r="string"==typeof t?(0,A.qX)(t):t.raw instanceof Uint8Array?t.raw:(0,A.O0)(t.raw),n=(0,A.qX)(`Ethereum Signed Message:\n${r.length}`);return(0,E.w)((0,v.zo)([n,r]),void 0)}(r);return Bt(t,{address:e,hash:s,signature:n,...i})}(t,e),verifyTypedData:e=>async function(t,{address:e,signature:r,message:n,primaryType:i,types:s,domain:o,...a}){return Bt(t,{address:e,hash:Ut({message:n,primaryType:i,types:s,domain:o}),signature:r,...a})}(t,e),uninstallFilter:t=>Tt(0,t),waitForTransactionReceipt:e=>async function(t,{confirmations:e=1,hash:r,onReplaced:n,pollingInterval:i=t.pollingInterval,timeout:s}){const o=(0,Zt.P)(["waitForTransactionReceipt",t.uid,r]);let a,c,l,u=!1;return new Promise(((h,d)=>{s&&setTimeout((()=>d(new Mt.mc({hash:r}))),s);const f=Gt(o,{onReplaced:n,resolve:h,reject:d},(n=>{const s=(0,k.s)(t,Yt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(u)return;let o=i;const h=t=>{s(),t(),f()};try{if(l){if(e>1&&(!l.blockNumber||o-l.blockNumber+1nn.resolve(l)))}if(a||(u=!0,await(0,Kt.J)((async()=>{a=await(0,k.s)(t,kt,"getTransaction")({hash:r}),a.blockNumber&&(o=a.blockNumber)}),{delay:({count:t})=>200*~~(1<1&&(!l.blockNumber||o-l.blockNumber+1nn.resolve(l)))}catch(r){if(a&&(r instanceof Mt.Bh||r instanceof Mt.Yb))try{c=a,u=!0;const r=await(0,Kt.J)((()=>(0,k.s)(t,ut.Q,"getBlock")({blockNumber:o,includeTransactions:!0})),{delay:({count:t})=>200*~~(1<t instanceof $t.f});u=!1;const i=r.transactions.find((({from:t,nonce:e})=>t===c.from&&e===c.nonce));if(!i)return;if(l=await(0,k.s)(t,Ot,"getTransactionReceipt")({hash:i.hash}),e>1&&(!l.blockNumber||o-l.blockNumber+1n{n.onReplaced?.({reason:s,replacedTransaction:c,transaction:i,transactionReceipt:l}),n.resolve(l)}))}catch(t){h((()=>n.reject(t)))}else h((()=>n.reject(r)))}}})}))}))}(t,e),watchBlocks:e=>function(t,{blockTag:e="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:o,poll:a,pollingInterval:c=t.pollingInterval}){const l=void 0!==a?a:"webSocket"!==t.transport.type,u=o??!1;let h;return l?Gt((0,Zt.P)(["watchBlocks",t.uid,r,n,u,c]),{onBlock:i,onError:s},(i=>Jt((async()=>{try{const n=await(0,k.s)(t,ut.Q,"getBlock")({blockTag:e,includeTransactions:u});if(n.number&&h?.number){if(n.number===h.number)return;if(n.number-h.number>1&&r)for(let e=h?.number+1n;eh.number)&&(i.onBlock(n,h),h=n)}catch(t){i.onError?.(t)}}),{emitOnBegin:n,interval:c}))):(()=>{let e=!0,r=()=>e=!1;return(async()=>{try{const{unsubscribe:n}=await t.transport.subscribe({params:["newHeads"],onData(r){if(!e)return;const n=(t.chain?.formatters?.block?.format||Xt.Z)(r.result);i(n,h),h=n},onError(t){s?.(t)}});r=n,e||r()}catch(t){s?.(t)}})(),r})()}(t,e),watchBlockNumber:e=>Yt(t,e),watchContractEvent:e=>te(t,e),watchEvent:e=>function(t,{address:e,args:r,batch:n=!0,event:i,events:s,onError:o,onLogs:a,poll:c,pollingInterval:l=t.pollingInterval,strict:u}){const h=void 0!==c?c:"webSocket"!==t.transport.type,d=u??!1;return h?Gt((0,Zt.P)(["watchEvent",e,r,n,t.uid,i,l]),{onLogs:a,onError:o},(o=>{let a,c,u=!1;const h=Jt((async()=>{if(u)try{let l;if(c)l=await(0,k.s)(t,_t,"getFilterChanges")({filter:c});else{const n=await(0,k.s)(t,pt,"getBlockNumber")({});l=a&&a!==n?await(0,k.s)(t,Et,"getLogs")({address:e,args:r,event:i,events:s,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===l.length)return;if(n)o.onLogs(l);else for(const t of l)o.onLogs([t])}catch(t){c&&t instanceof P.yR&&(u=!1),o.onError?.(t)}else{try{c=await(0,k.s)(t,nt,"createEventFilter")({address:e,args:r,event:i,events:s,strict:d})}catch{}u=!0}}),{emitOnBegin:!0,interval:l});return async()=>{c&&await(0,k.s)(t,Tt,"uninstallFilter")({filter:c}),h()}})):(()=>{let n=!0,c=()=>n=!1;return(async()=>{try{const l=s??(i?[i]:void 0);let h=[];l&&(h=[l.flatMap((t=>tt({abi:[t],eventName:t.name,args:r})))],i&&(h=h[0]));const{unsubscribe:f}=await t.transport.subscribe({params:["logs",{address:e,topics:h}],onData(t){if(!n)return;const e=t.result;try{const{eventName:t,args:r}=bt({abi:l,data:e.data,topics:e.topics,strict:d}),n=(0,At.U)(e,{args:r,eventName:t});a([n])}catch(t){let r,n;if(t instanceof I.SM||t instanceof I.Gy){if(u)return;r=t.abiItem.name,n=t.abiItem.inputs?.some((t=>!("name"in t&&t.name)))}const i=(0,At.U)(e,{args:n?[]:{},eventName:r});a([i])}},onError(t){o?.(t)}});c=f,n||c()}catch(t){o?.(t)}})(),c})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=t.pollingInterval}){return(void 0!==i?i:"webSocket"!==t.transport.type)?Gt((0,Zt.P)(["watchPendingTransactions",t.uid,e,s]),{onTransactions:n,onError:r},(r=>{let n;const i=Jt((async()=>{try{if(!n)try{return void(n=await(0,k.s)(t,it,"createPendingTransactionFilter")({}))}catch(t){throw i(),t}const s=await(0,k.s)(t,_t,"getFilterChanges")({filter:n});if(0===s.length)return;if(e)r.onTransactions(s);else for(const t of s)r.onTransactions([t])}catch(t){r.onError?.(t)}}),{emitOnBegin:!0,interval:s});return async()=>{n&&await(0,k.s)(t,Tt,"uninstallFilter")({filter:n}),i()}})):(()=>{let e=!0,i=()=>e=!1;return(async()=>{try{const{unsubscribe:s}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const r=t.result;n([r])},onError(t){r?.(t)}});i=s,e||i()}catch(t){r?.(t)}})(),i})()}(t,e)}}function ie(t){const{key:e="public",name:r="Public Client"}=t;return(0,l.e)({...t,key:e,name:r,type:"publicClient"}).extend(ne)}var se=n(37029),oe=n(31031);function ae(t,e={}){const{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:s,retryDelay:o}=e;return({chain:e,pollingInterval:a=4e3,timeout:c})=>{let l=t,u=()=>{};const h=(0,oe.q)({key:r,name:n,async request({method:t,params:r}){const n=async(i=0)=>{const s=l[i]({chain:e,retryCount:0,timeout:c});try{const e=await s.request({method:t,params:r});return u({method:t,params:r,response:e,transport:s,status:"success"}),e}catch(e){if(u({error:e,method:t,params:r,transport:s,status:"error"}),(0,se.y)(e))throw e;if(i===l.length-1)throw e;return n(i+1)}};return n()},retryCount:s,retryDelay:o,type:"fallback"},{onResponse:t=>u=t,transports:l.map((t=>t({chain:e,retryCount:0})))});if(i){const t="object"==typeof i?i:{};!function({chain:t,interval:e=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:s,weights:o={}}){const{stability:a=.7,latency:c=.3}=o,l=[],u=async()=>{const o=await Promise.all(s.map((async e=>{const r=e({chain:t,retryCount:0,timeout:i}),n=Date.now();let s,o;try{await r.request({method:"net_listening"}),o=1}catch{o=0}finally{s=Date.now()}return{latency:s-n,success:o}})));l.push(o),l.length>n&&l.shift();const h=Math.max(...l.map((t=>Math.max(...t.map((({latency:t})=>t)))))),d=s.map(((t,e)=>{const r=l.map((t=>t[e].latency)),n=1-r.reduce(((t,e)=>t+e),0)/r.length/h,i=l.map((t=>t[e].success)),s=i.reduce(((t,e)=>t+e),0)/i.length;return 0===s?[0,e]:[c*n+a*s,e]})).sort(((t,e)=>e[0]-t[0]));r(d.map((([,t])=>s[t]))),await(0,Qt.D)(e),u()};u()}({chain:e,interval:t.interval??a,onTransports:t=>l=t,sampleCount:t.sampleCount,timeout:t.timeout,transports:l,weights:t.weights})}return h}}var ce=n(78863);class le extends y.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var ue=n(32357);const he=function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==r.g.WebSocket)return r.g.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}();function de(t,{errorInstance:e=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,s)=>{(async()=>{let o;try{const a=new AbortController;r>0&&(o=setTimeout((()=>{n?a.abort():s(e)}),r)),i(await t({signal:a?.signal}))}catch(t){"AbortError"===t.name&&s(e),s(t)}finally{clearTimeout(o)}})()}))}let fe=0;const pe=new Map;async function me(t){let e=pe.get(t);if(e)return e;const{schedule:r}=(0,ue.S)({id:t,fn:async()=>{const r=new he(t),n=new Map,i=new Map,s=({data:t})=>{const e=JSON.parse(t),r="eth_subscription"===e.method,s=r?e.params.subscription:e.id,o=r?i:n,a=o.get(s);a&&a({data:t}),r||o.delete(s)},o=()=>{pe.delete(t),r.removeEventListener("close",o),r.removeEventListener("message",s)};return r.addEventListener("close",o),r.addEventListener("message",s),r.readyState===he.CONNECTING&&await new Promise(((t,e)=>{r&&(r.onopen=t,r.onerror=e)})),e=Object.assign(r,{requests:n,subscriptions:i}),pe.set(t,e),[e]}}),[n,[i]]=await r();return i}const ge={http:async function(t,{body:e,fetchOptions:r={},timeout:n=1e4}){const{headers:i,method:s,signal:o}=r;try{const a=await de((async({signal:a})=>await fetch(t,{...r,body:Array.isArray(e)?(0,Zt.P)(e.map((t=>({jsonrpc:"2.0",id:t.id??fe++,...t})))):(0,Zt.P)({jsonrpc:"2.0",id:e.id??fe++,...e}),headers:{...i,"Content-Type":"application/json"},method:s||"POST",signal:o||(n>0?a:void 0)})),{errorInstance:new ce.W5({body:e,url:t}),timeout:n,signal:!0});let c;if(c=a.headers.get("Content-Type")?.startsWith("application/json")?await a.json():await a.text(),!a.ok)throw new ce.Gg({body:e,details:(0,Zt.P)(c.error)||a.statusText,headers:a.headers,status:a.status,url:t});return c}catch(r){if(r instanceof ce.Gg)throw r;if(r instanceof ce.W5)throw r;throw new ce.Gg({body:e,details:r.message,url:t})}},webSocket:function(t,{body:e,onResponse:r}){if(t.readyState===t.CLOSED||t.readyState===t.CLOSING)throw new ce.c9({body:e,url:t.url,details:"Socket is closed."});const n=fe++,i=({data:s})=>{const o=JSON.parse(s);"number"==typeof o.id&&n!==o.id||(r?.(o),"eth_subscribe"===e.method&&"string"==typeof o.result&&t.subscriptions.set(o.result,i),"eth_unsubscribe"===e.method&&t.subscriptions.delete(e.params?.[0]))};return t.requests.set(n,i),t.send(JSON.stringify({jsonrpc:"2.0",...e,id:n})),t},webSocketAsync:async function(t,{body:e,timeout:r=1e4}){return de((()=>new Promise((r=>ge.webSocket(t,{body:e,onResponse:r})))),{errorInstance:new ce.W5({body:e,url:t.url}),timeout:r})}};var ye=n(57858),we=n(84192);function be(t,e){let r;try{r=t()}catch(t){return}return{getItem:t=>{var n;const i=t=>null===t?null:JSON.parse(t,null==e?void 0:e.reviver),s=null!=(n=r.getItem(t))?n:null;return s instanceof Promise?s.then(i):i(s)},setItem:(t,n)=>r.setItem(t,JSON.stringify(n,null==e?void 0:e.replacer)),removeItem:t=>r.removeItem(t)}}const ve=t=>e=>{try{const r=t(e);return r instanceof Promise?r:{then:t=>ve(t)(r),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>ve(e)(t)}}},Ae=t=>{let e;const r=new Set,n=(t,n)=>{const i="function"==typeof t?t(e):t;if(!Object.is(i,e)){const t=e;e=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},e,i),r.forEach((r=>r(e,t)))}},i=()=>e,s={setState:n,getState:i,subscribe:t=>(r.add(t),()=>r.delete(t)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return e=t(n,i,s),s};var Ee=n(15229);function xe(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,n]of t)if(!Object.is(n,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let n=0;nt.indexed)):2===t.length&&(r=!0),{args:r?t[0]:void 0,options:(r?t[1]:t[0])??{}}}var Ce=n(45775),ke=n(49321);function Ie(t,e,{batch:r={multicall:{wait:32}},pollingInterval:n=4e3,rank:i,retryCount:s,retryDelay:o,stallTimeout:a}={}){if(!t.length)throw new Error("must have at least one chain");let c=[];const l={},u={};for(const r of t){let t=!1;for(const n of e){const e=n(r);e&&(t=!0,c.some((({id:t})=>t===r.id))||(c=[...c,e.chain]),l[r.id]=[...l[r.id]||[],...e.rpcUrls.http],e.rpcUrls.webSocket&&(u[r.id]=[...u[r.id]||[],...e.rpcUrls.webSocket]))}if(!t)throw new Error([`Could not find valid provider configuration for chain "${r.name}".\n`,"You may need to add `jsonRpcProvider` to `configureChains` with the chain's RPC URLs.","Read more: https://wagmi.sh/core/providers/jsonRpc"].join("\n"))}return{chains:c,publicClient:({chainId:e})=>{const u=c.find((t=>t.id===e))??t[0],h=l[u.id];if(!h||!h[0])throw new Error(`No providers configured for chain "${u.id}"`);const d=ie({batch:r,chain:u,transport:ae(h.map((t=>function(t,e={}){const{batch:r,fetchOptions:n,key:i="http",name:s="HTTP JSON-RPC",retryDelay:o}=e;return({chain:a,retryCount:c,timeout:l})=>{const{batchSize:u=1e3,wait:h=0}="object"==typeof r?r:{},d=e.retryCount??c,f=l??e.timeout??1e4,p=t||a?.rpcUrls.default.http[0];if(!p)throw new le;return(0,oe.q)({key:i,name:s,async request({method:e,params:i}){const s={method:e,params:i},{schedule:o}=(0,ue.S)({id:`${t}`,wait:h,shouldSplitBatch:t=>t.length>u,fn:t=>ge.http(p,{body:t,fetchOptions:n,timeout:f}),sort:(t,e)=>t.id-e.id}),[{error:a,result:c}]=await(async t=>r?o(t):[await ge.http(p,{body:t,fetchOptions:n,timeout:f})])(s);if(a)throw new ce.bs({body:s,error:a,url:p});return c},retryCount:d,retryDelay:o,timeout:f,type:"http"},{fetchOptions:n,url:t})}}(t,{timeout:a}))),{rank:i,retryCount:s,retryDelay:o}),pollingInterval:n});return Object.assign(d,{chains:c})},webSocketPublicClient:({chainId:e})=>{const l=c.find((t=>t.id===e))??t[0],h=u[l.id];if(!h||!h[0])return;const d=ie({batch:r,chain:l,transport:ae(h.map((t=>function(t,e={}){const{key:r="webSocket",name:n="WebSocket JSON-RPC",retryDelay:i}=e;return({chain:s,retryCount:o,timeout:a})=>{const c=e.retryCount??o,l=a??e.timeout??1e4,u=t||s?.rpcUrls.default.webSocket?.[0];if(!u)throw new le;return(0,oe.q)({key:r,name:n,async request({method:t,params:e}){const r={method:t,params:e},n=await me(u),{error:i,result:s}=await ge.webSocketAsync(n,{body:r,timeout:l});if(i)throw new ce.bs({body:r,error:i,url:u});return s},retryCount:c,retryDelay:i,timeout:l,type:"webSocket"},{getSocket:()=>me(u),async subscribe({params:t,onData:e,onError:r}){const n=await me(u),{result:i}=await new Promise(((i,s)=>ge.webSocket(n,{body:{method:"eth_subscribe",params:t},onResponse(t){if(t.error)return s(t.error),void r?.(t.error);"number"!=typeof t.id?"eth_subscription"===t.method&&e(t.params):i(t)}})));return{subscriptionId:i,unsubscribe:async()=>new Promise((t=>ge.webSocket(n,{body:{method:"eth_unsubscribe",params:[i]},onResponse:t})))}}})}}(t,{timeout:a}))),{rank:i,retryCount:s,retryDelay:o}),pollingInterval:n});return Object.assign(d,{chains:c})}}}var Pe=class extends Error{constructor({activeChain:t,targetChain:e}){super(`Chain mismatch: Expected "${e}", received "${t}".`),this.name="ChainMismatchError"}},Oe=class extends Error{constructor({chainId:t,connectorId:e}){super(`Chain "${t}" not configured${e?` for connector "${e}"`:""}.`),this.name="ChainNotConfigured"}},Ne=class extends Error{constructor(){super(...arguments),this.name="ConnectorAlreadyConnectedError",this.message="Connector already connected"}},Te=class extends Error{constructor(){super(...arguments),this.name="ConfigChainsNotFound",this.message="No chains were found on the wagmi config. Some functions that require a chain may not work."}},Re=class extends Error{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),this.name="SwitchChainNotSupportedError"}};function Be(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(t)&&Array.isArray(e)){if(r=t.length,r!=e.length)return!1;for(n=r;0!=n--;)if(!Be(t[n],e[n]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const i=Object.keys(t);if(r=i.length,r!==Object.keys(e).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;0!=n--;){const r=i[n];if(r&&!Be(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}var Le=(t,{find:e,replace:r})=>t&&e(t)?r(t):"object"!=typeof t?t:Array.isArray(t)?t.map((t=>Le(t,{find:e,replace:r}))):t instanceof Object?Object.entries(t).reduce(((t,[n,i])=>({...t,[n]:Le(i,{find:e,replace:r})})),{}):t;function Ue(t){const e=JSON.parse(t);return Le(e,{find:t=>"string"==typeof t&&t.startsWith("#bigint."),replace:t=>BigInt(t.replace("#bigint.",""))})}function je(t){return"number"==typeof t?t:"wei"===t?0:Math.abs(we.Bd[t])}function De(t,e){return t.slice(0,e).join(".")||"."}function Fe(t,e){const{length:r}=t;for(let n=0;n{const n="bigint"==typeof r?`#bigint.${r.toString()}`:r;return e?.(t,n)||n}),n),r??void 0)}var He={getItem:t=>"",setItem:(t,e)=>null,removeItem:t=>null};function $e({deserialize:t=Ue,key:e="wagmi",serialize:r=ze,storage:n}){return{...n,getItem:(r,i=null)=>{const s=n.getItem(`${e}.${r}`);try{return s?t(s):i}catch(t){return console.warn(t),i}},setItem:(t,i)=>{if(null===i)n.removeItem(`${e}.${t}`);else try{n.setItem(`${e}.${t}`,r(i))}catch(t){console.error(t)}},removeItem:t=>n.removeItem(`${e}.${t}`)}}var qe,We,Ve,Ge,Ke,Ze="store",Qe=class{constructor({autoConnect:t=!1,connectors:e=[new i._],publicClient:r,storage:n=$e({storage:"undefined"!=typeof window?window.localStorage:He}),logger:o={warn:console.warn},webSocketPublicClient:l}){a(this,Ve),this.publicClients=new Map,this.webSocketPublicClients=new Map,a(this,qe,void 0),a(this,We,void 0),this.args={autoConnect:t,connectors:e,logger:o,publicClient:r,storage:n,webSocketPublicClient:l};let u,h="disconnected";if(t)try{const t=n.getItem(Ze)?.state?.data;h=t?.account?"reconnecting":"connecting",u=t?.chain?.id}catch(t){}const d="function"==typeof e?e():e;var f,p,m,g;d.forEach((t=>t.setStorage(n))),this.store=(g=((t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((t,e)=>(r,n,i)=>{let s={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},o=!1;const a=new Set,c=new Set;let l;try{l=s.getStorage()}catch(t){}if(!l)return t(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...t)}),n,i);const u=ve(s.serialize),h=()=>{const t=s.partialize({...n()});let e;const r=u({state:t,version:s.version}).then((t=>l.setItem(s.name,t))).catch((t=>{e=t}));if(e)throw e;return r},d=i.setState;i.setState=(t,e)=>{d(t,e),h()};const f=t(((...t)=>{r(...t),h()}),n,i);let p;const m=()=>{var t;if(!l)return;o=!1,a.forEach((t=>t(n())));const e=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,n()))||void 0;return ve(l.getItem.bind(l))(s.name).then((t=>{if(t)return s.deserialize(t)})).then((t=>{if(t){if("number"!=typeof t.version||t.version===s.version)return t.state;if(s.migrate)return s.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((t=>{var e;return p=s.merge(t,null!=(e=n())?e:f),r(p,!0),h()})).then((()=>{null==e||e(p,void 0),o=!0,c.forEach((t=>t(p)))})).catch((t=>{null==e||e(void 0,t)}))};return i.persist={setOptions:t=>{s={...s,...t},t.getStorage&&(l=t.getStorage())},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:t=>(a.add(t),()=>{a.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},m(),p||f})(t,e)):((t,e)=>(r,n,i)=>{let s={storage:be((()=>localStorage)),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},o=!1;const a=new Set,c=new Set;let l=s.storage;if(!l)return t(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...t)}),n,i);const u=()=>{const t=s.partialize({...n()});return l.setItem(s.name,{state:t,version:s.version})},h=i.setState;i.setState=(t,e)=>{h(t,e),u()};const d=t(((...t)=>{r(...t),u()}),n,i);let f;const p=()=>{var t,e;if(!l)return;o=!1,a.forEach((t=>{var e;return t(null!=(e=n())?e:d)}));const i=(null==(e=s.onRehydrateStorage)?void 0:e.call(s,null!=(t=n())?t:d))||void 0;return ve(l.getItem.bind(l))(s.name).then((t=>{if(t){if("number"!=typeof t.version||t.version===s.version)return t.state;if(s.migrate)return s.migrate(t.state,t.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((t=>{var e;return f=s.merge(t,null!=(e=n())?e:d),r(f,!0),u()})).then((()=>{null==i||i(f,void 0),f=n(),o=!0,c.forEach((t=>t(f)))})).catch((t=>{null==i||i(void 0,t)}))};return i.persist={setOptions:t=>{s={...s,...t},t.storage&&(l=t.storage)},clearStorage:()=>{null==l||l.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:t=>(a.add(t),()=>{a.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},s.skipHydration||p(),f||d})(t,e))((()=>({connectors:d,publicClient:this.getPublicClient({chainId:u}),status:h,webSocketPublicClient:this.getWebSocketPublicClient({chainId:u})})),{name:Ze,storage:n,partialize:e=>({...t&&{data:{account:e?.data?.account,chain:e?.data?.chain}},chains:e?.chains}),version:2}),(m=(t,e,r)=>{const n=r.subscribe;return r.subscribe=(t,e,i)=>{let s=t;if(e){const n=(null==i?void 0:i.equalityFn)||Object.is;let o=t(r.getState());s=r=>{const i=t(r);if(!n(o,i)){const t=o;e(o=i,t)}},(null==i?void 0:i.fireImmediately)&&e(o,o)}return n(s)},g(t,e,r)})?Ae(m):Ae),this.storage=n,c(this,We,n?.getItem("wallet")),(f=Ve,p=Ge,s(this,f,"access private method"),p).call(this),t&&"undefined"!=typeof window&&setTimeout((async()=>await this.autoConnect()),0)}get chains(){return this.store.getState().chains}get connectors(){return this.store.getState().connectors}get connector(){return this.store.getState().connector}get data(){return this.store.getState().data}get error(){return this.store.getState().error}get lastUsedChainId(){return this.data?.chain?.id}get publicClient(){return this.store.getState().publicClient}get status(){return this.store.getState().status}get subscribe(){return this.store.subscribe}get webSocketPublicClient(){return this.store.getState().webSocketPublicClient}setState(t){const e="function"==typeof t?t(this.store.getState()):t;this.store.setState(e,!0)}clearState(){this.setState((t=>({...t,chains:void 0,connector:void 0,data:void 0,error:void 0,status:"disconnected"})))}async destroy(){this.connector&&await(this.connector.disconnect?.()),c(this,qe,!1),this.clearState(),this.store.destroy()}async autoConnect(){if(o(this,qe))return;c(this,qe,!0),this.setState((t=>({...t,status:t.data?.account?"reconnecting":"connecting"})));const t=o(this,We)?[...this.connectors].sort((t=>t.id===o(this,We)?-1:1)):this.connectors;let e=!1;for(const r of t){if(!r.ready||!r.isAuthorized)continue;if(!await r.isAuthorized())continue;const t=await r.connect();this.setState((e=>({...e,connector:r,chains:r?.chains,data:t,status:"connected"}))),e=!0;break}return e||this.setState((t=>({...t,data:void 0,status:"disconnected"}))),c(this,qe,!1),this.data}setConnectors(t){this.args={...this.args,connectors:t};const e="function"==typeof t?t():t;e.forEach((t=>t.setStorage(this.args.storage))),this.setState((t=>({...t,connectors:e})))}getPublicClient({chainId:t}={}){let e=this.publicClients.get(-1);if(e&&e?.chain.id===t)return e;if(e=this.publicClients.get(t??-1),e)return e;const{publicClient:r}=this.args;return e="function"==typeof r?r({chainId:t}):r,this.publicClients.set(t??-1,e),e}setPublicClient(t){const e=this.data?.chain?.id;this.args={...this.args,publicClient:t},this.publicClients.clear(),this.setState((t=>({...t,publicClient:this.getPublicClient({chainId:e})})))}getWebSocketPublicClient({chainId:t}={}){let e=this.webSocketPublicClients.get(-1);if(e&&e?.chain.id===t)return e;if(e=this.webSocketPublicClients.get(t??-1),e)return e;const{webSocketPublicClient:r}=this.args;return e="function"==typeof r?r({chainId:t}):r,e&&this.webSocketPublicClients.set(t??-1,e),e}setWebSocketPublicClient(t){const e=this.data?.chain?.id;this.args={...this.args,webSocketPublicClient:t},this.webSocketPublicClients.clear(),this.setState((t=>({...t,webSocketPublicClient:this.getWebSocketPublicClient({chainId:e})})))}setLastUsedConnector(t=null){this.storage?.setItem("wallet",t)}};function Je(t){const e=new Qe(t);return Ke=e,e}function Ye(){if(!Ke)throw new Error("No wagmi config found. Ensure you have set up a config: https://wagmi.sh/react/config");return Ke}async function Xe({chainId:t,connector:e}){const r=Ye(),n=r.connector;if(n&&e.id===n.id)throw new Ne;try{r.setState((t=>({...t,status:"connecting"})));const n=await e.connect({chainId:t});return r.setLastUsedConnector(e.id),r.setState((t=>({...t,connector:e,chains:e?.chains,data:n,status:"connected"}))),r.storage.setItem("connected",!0),{...n,connector:e}}catch(t){throw r.setState((t=>({...t,status:t.connector?"connected":"disconnected"}))),t}}async function tr(){const t=Ye();t.connector&&await t.connector.disconnect(),t.clearState(),t.storage.removeItem("connected")}qe=new WeakMap,We=new WeakMap,Ve=new WeakSet,Ge=function(){const t=t=>{this.setState((e=>({...e,data:{...e.data,...t}})))},e=()=>{this.clearState()},r=t=>{this.setState((e=>({...e,error:t})))};this.store.subscribe((({connector:t})=>t),((n,i)=>{i?.off?.("change",t),i?.off?.("disconnect",e),i?.off?.("error",r),n&&(n.on?.("change",t),n.on?.("disconnect",e),n.on?.("error",r))}));const{publicClient:n,webSocketPublicClient:i}=this.args;("function"==typeof n||"function"==typeof i)&&this.store.subscribe((({data:t})=>t?.chain?.id),(t=>{this.setState((e=>({...e,publicClient:this.getPublicClient({chainId:t}),webSocketPublicClient:this.getWebSocketPublicClient({chainId:t})})))}))};var er=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],rr=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"bytes32"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],nr=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"event",name:"ApprovalForAll",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"operator",type:"address"},{indexed:!1,name:"approved",type:"bool"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!0,name:"tokenId",type:"uint256"}]},{type:"function",name:"approve",stateMutability:"payable",inputs:[{name:"spender",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"getApproved",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"address"}]},{type:"function",name:"isApprovedForAll",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"operator",type:"address"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"ownerOf",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"owner",type:"address"}]},{type:"function",name:"safeTransferFrom",stateMutability:"payable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]},{type:"function",name:"safeTransferFrom",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]},{type:"function",name:"setApprovalForAll",stateMutability:"nonpayable",inputs:[{name:"operator",type:"address"},{name:"approved",type:"bool"}],outputs:[]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{name:"",type:"string"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"index",type:"uint256"}],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"tokenByIndex",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"index",type:"uint256"}],outputs:[{name:"tokenId",type:"uint256"}]},{type:"function",name:"tokenURI",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{type:"function",name:"transferFrom",stateMutability:"payable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"tokeId",type:"uint256"}],outputs:[]}],ir=[{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"receiver",type:"address"},{indexed:!0,name:"owner",type:"address"},{indexed:!1,name:"assets",type:"uint256"},{indexed:!1,name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{name:"assetTokenAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"}],name:"deposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxDeposit",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"caller",type:"address"}],name:"maxMint",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxRedeem",outputs:[{name:"maxShares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{name:"maxAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"}],name:"mint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewMint",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"shares",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"redeem",outputs:[{name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalAssets",outputs:[{name:"totalManagedAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"assets",type:"uint256"},{name:"receiver",type:"address"},{name:"owner",type:"address"}],name:"withdraw",outputs:[{name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"}];async function sr({address:t,chainId:e,formatUnits:r=18}){async function n({abi:n}){const i={address:t,abi:n,chainId:e},[s,o,a,c]=await gr({allowFailure:!1,contracts:[{...i,functionName:"decimals"},{...i,functionName:"name"},{...i,functionName:"symbol"},{...i,functionName:"totalSupply"}]});return{address:t,decimals:s,name:o,symbol:a,totalSupply:{formatted:(0,Ee.b)(c,je(r)),value:c}}}try{return await n({abi:er})}catch(t){if(t instanceof w.uq){const{name:t,symbol:e,...r}=await n({abi:rr});return{name:(0,mt.rR)((0,p.f)(t,{dir:"right"})),symbol:(0,mt.rR)((0,p.f)(e,{dir:"right"})),...r}}throw t}}function or({chainId:t}={}){const e=Ye();return t&&e.getPublicClient({chainId:t})||e.publicClient}async function ar({chainId:t}={}){const e=Ye();return await(e.connector?.getWalletClient?.({chainId:t}))||null}function cr({chainId:t}={}){const e=Ye();return t&&e.getWebSocketPublicClient({chainId:t})||e.webSocketPublicClient}function lr(t,e){return Ye().subscribe((({publicClient:t})=>t),(async()=>e(or(t))))}function ur({chainId:t},e){return Ye().subscribe((({data:t,connector:e})=>({account:t?.account,chainId:t?.chain?.id,connector:e})),(async({chainId:r})=>{if(t&&r&&t!==r)return;const n=await ar({chainId:t});return Ye().connector?e(n):e(null)}),{equalityFn:xe})}function hr(t,e){return Ye().subscribe((({webSocketPublicClient:t})=>t),(async()=>e(cr(t))))}async function dr({abi:t,address:e,args:r,chainId:n,dataSuffix:i,functionName:s,walletClient:o,...a}){const c=or({chainId:n}),l=o??await ar({chainId:n});if(!l)throw new ye.N;n&&Hr({chainId:n});const{account:u,accessList:h,blockNumber:d,blockTag:f,gas:p,gasPrice:m,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:w,value:b}=function(t){return{accessList:t.accessList,account:t.account,blockNumber:t.blockNumber,blockTag:t.blockTag,data:t.data,gas:t.gas,gasPrice:t.gasPrice,maxFeePerGas:t.maxFeePerGas,maxPriorityFeePerGas:t.maxPriorityFeePerGas,nonce:t.nonce,to:t.to,value:t.value}}(a),{result:v,request:A}=await c.simulateContract({abi:t,address:e,functionName:s,args:r,account:u||l.account,accessList:h,blockNumber:d,blockTag:f,dataSuffix:i,gas:p,gasPrice:m,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:w,value:b});return{mode:"prepared",request:{...A,abi:t.filter((t=>"name"in t&&t.name===s)),chainId:n},result:v}}function fr({address:t,abi:e,chainId:r,walletClient:n}){return function({abi:t,address:e,publicClient:r,walletClient:n}){const i=null!=r,s=null!=n,o={};let a=!1,c=!1,l=!1;for(const e of t)if("function"===e.type?"view"===e.stateMutability||"pure"===e.stateMutability?a=!0:c=!0:"event"===e.type&&(l=!0),a&&c&&l)break;return i&&(a&&(o.read=new Proxy({},{get:(n,i)=>(...n)=>{const{args:s,options:o}=Se(n);return(0,k.s)(r,R,"readContract")({abi:t,address:e,functionName:i,args:s,...o})}})),c&&(o.simulate=new Proxy({},{get:(n,i)=>(...n)=>{const{args:s,options:o}=Se(n);return(0,k.s)(r,Nt,"simulateContract")({abi:t,address:e,functionName:i,args:s,...o})}})),l&&(o.createEventFilter=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Me(n,s);return(0,k.s)(r,rt,"createContractEventFilter")({abi:t,address:e,eventName:i,args:o,...a})}}),o.getEvents=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Me(n,s);return(0,k.s)(r,xt,"getContractEvents")({abi:t,address:e,eventName:i,args:o,...a})}}),o.watchEvent=new Proxy({},{get:(n,i)=>(...n)=>{const s=t.find((t=>"event"===t.type&&t.name===i)),{args:o,options:a}=Me(n,s);return(0,k.s)(r,te,"watchContractEvent")({abi:t,address:e,eventName:i,args:o,...a})}}))),s&&c&&(o.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:s,options:o}=Se(r);return(0,k.s)(n,_e.n,"writeContract")({abi:t,address:e,functionName:i,args:s,...o})}})),(i||s)&&c&&(o.estimateGas=new Proxy({},{get:(i,s)=>(...i)=>{const{args:o,options:a}=Se(i),c=r??n;return(0,k.s)(c,at,"estimateContractGas")({abi:t,address:e,functionName:s,args:o,...a,account:a.account??n.account})}})),o.address=e,o.abi=t,o}({address:t,abi:e,publicClient:or({chainId:r}),walletClient:n})}async function pr({chainId:t,contracts:e,blockNumber:r,blockTag:n,...i}){const s=or({chainId:t});if(!s.chains)throw new Te;if(t&&s.chain.id!==t)throw new Oe({chainId:t});return s.multicall({allowFailure:i.allowFailure??!0,blockNumber:r,blockTag:n,contracts:e})}async function mr({address:t,account:e,chainId:r,abi:n,args:i,functionName:s,blockNumber:o,blockTag:a}){return or({chainId:r}).readContract({abi:n,address:t,account:e,functionName:s,args:i,blockNumber:o,blockTag:a})}async function gr({contracts:t,blockNumber:e,blockTag:r,...n}){const{allowFailure:i=!0}=n;try{const n=or(),s=t.reduce(((t,e,r)=>{const i=e.chainId??n.chain.id;return{...t,[i]:[...t[i]||[],{contract:e,index:r}]}}),{}),o=()=>Object.entries(s).map((([t,n])=>pr({allowFailure:i,chainId:parseInt(t),contracts:n.map((({contract:t})=>t)),blockNumber:e,blockTag:r}))),a=(await Promise.all(o())).flat(),c=Object.values(s).flatMap((t=>t.map((({index:t})=>t))));return a.reduce(((t,e,r)=>(t&&(t[c[r]]=e),t)),[])}catch(n){if(n instanceof w.uq)throw n;const s=()=>t.map((t=>mr({...t,blockNumber:e,blockTag:r})));return i?(await Promise.allSettled(s())).map((t=>"fulfilled"===t.status?{result:t.value,status:"success"}:{error:t.reason,result:void 0,status:"failure"})):await Promise.all(s())}}function yr({address:t,abi:e,chainId:r,eventName:n},i){let s;const o=async()=>{s&&s();const o=cr({chainId:r})||or({chainId:r});s=o.watchContractEvent({address:t,abi:e,eventName:n,onLogs:i})};o();const a=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),o,{equalityFn:xe});return()=>{s?.(),a()}}function wr(t,e){let r;const n=t=>{r&&r(),r=t.watchBlockNumber({onBlockNumber:e,emitOnBegin:!0,poll:!0})},i=cr({chainId:t.chainId})??or({chainId:t.chainId});t.listen&&n(i);const s=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),(async({publicClient:e,webSocketPublicClient:r})=>{const i=r??e;t.listen&&!t.chainId&&i&&n(i)}),{equalityFn:xe});return()=>{s(),r?.()}}function br(t,e){const r=Ye(),n=async()=>e(await pr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}function vr(t,e){const r=Ye(),n=async()=>e(await mr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}function Ar(t,e){const r=Ye(),n=async()=>e(await gr(t)),i=t.listenToBlock?wr({listen:!0},n):void 0,s=r.subscribe((({publicClient:t})=>t),n);return()=>{s(),i?.()}}async function Er(t){const e=await ar({chainId:t.chainId});if(!e)throw new ye.N;let r;if(t.chainId&&Hr({chainId:t.chainId}),"prepared"===t.mode)r=t.request;else{const{chainId:e,mode:n,...i}=t;r=(await dr(i)).request}return{hash:await e.writeContract({...r,chain:t.chainId?{id:t.chainId}:null})}}async function xr({address:t,chainId:e,formatUnits:r,token:n}){const i=Ye(),s=or({chainId:e});if(n){const i=async({abi:i})=>{const s={abi:i,address:n,chainId:e},[o,a,c]=await gr({allowFailure:!1,contracts:[{...s,functionName:"balanceOf",args:[t]},{...s,functionName:"decimals"},{...s,functionName:"symbol"}]});return{decimals:a,formatted:(0,Ee.b)(o??"0",je(r??a)),symbol:c,value:o}};try{return await i({abi:er})}catch(t){if(t instanceof w.uq){const{symbol:t,...e}=await i({abi:rr});return{symbol:(0,mt.rR)((0,p.f)(t,{dir:"right"})),...e}}throw t}}const o=[...i.publicClient.chains||[],...i.chains??[]],a=await s.getBalance({address:t}),c=o.find((t=>t.id===s.chain.id));return{decimals:c?.nativeCurrency.decimals??18,formatted:(0,Ee.b)(a??"0",je(r??18)),symbol:c?.nativeCurrency.symbol??"ETH",value:a}}function _r(){const{data:t,connector:e,status:r}=Ye();switch(r){case"connected":return{address:t?.account,connector:e,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:r};case"reconnecting":return{address:t?.account,connector:e,isConnected:!!t?.account,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:r};case"connecting":return{address:t?.account,connector:e,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:r};case"disconnected":return{address:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:r}}}function Sr(){const t=Ye(),e=t.data?.chain?.id,r=t.chains??[],n=[...t.publicClient?.chains||[],...r].find((t=>t.id===e))??{id:e,name:`Chain ${e}`,network:`${e}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}};return{chain:e?{...n,...t.data?.chain,id:e}:void 0,chains:r}}async function Mr(t){const e=await ar();if(!e)throw new ye.N;return await e.signMessage({message:t.message})}async function Cr({domain:t,message:e,primaryType:r,types:n}){const i=await ar();if(!i)throw new ye.N;const{chainId:s}=t;return s&&Hr({chainId:s}),i.signTypedData({message:e,primaryType:r,types:n,domain:t})}async function kr({chainId:t}){const{connector:e}=Ye();if(!e)throw new ye.N;if(!e.switchChain)throw new Re({connector:e});return e.switchChain(t)}function Ir(t,{selector:e=(t=>t)}={}){return Ye().subscribe((({data:t,connector:r,status:n})=>e({address:t?.account,connector:r,status:n})),(()=>t(_r())),{equalityFn:xe})}function Pr(t,{selector:e=(t=>t)}={}){return Ye().subscribe((({data:t,chains:r})=>e({chainId:t?.chain?.id,chains:r})),(()=>t(Sr())),{equalityFn:xe})}async function Or({chainId:t,name:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:t}),s=await i.getEnsAddress({name:r(e)});try{return"0x0000000000000000000000000000000000000000"===s?null:s?(0,Ce.K)(s):null}catch(t){return null}}async function Nr({name:t,chainId:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:e});return await i.getEnsAvatar({name:r(t)})}async function Tr({address:t,chainId:e}){return or({chainId:e}).getEnsName({address:(0,Ce.K)(t)})}async function Rr({chainId:t,name:e}){const{normalize:r}=await Promise.resolve().then(n.bind(n,34849)),i=or({chainId:t});return await i.getEnsResolver({name:r(e)})}async function Br({chainId:t}={}){const e=or({chainId:t});return await e.getBlockNumber()}async function Lr({chainId:t,formatUnits:e="gwei"}={}){const r=or({chainId:t}),n=await r.getBlock();let i=null;try{i=await r.getGasPrice()}catch{}let s=null,o=null,a=null;n?.baseFeePerGas&&(s=n.baseFeePerGas,a=function(t,e="wei"){return function(t,e){let[r,n="0"]="1".split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>e){const[t,i,s]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],o=Math.round(Number(`${i}.${s}`));n=o>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${o}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${i?"-":""}${r}${n}`)}(0,we.Zn[e])}(),o=2n*n.baseFeePerGas+a);const c=je(e);return{lastBaseFeePerGas:s,gasPrice:i,maxFeePerGas:o,maxPriorityFeePerGas:a,formatted:{gasPrice:i?(0,Ee.b)(i,c):null,maxFeePerGas:o?(0,Ee.b)(o,c):null,maxPriorityFeePerGas:a?(0,Ee.b)(a,c):null}}}async function Ur({chainId:t,hash:e}){return or({chainId:t}).getTransaction({hash:e})}async function jr({accessList:t,account:e,chainId:r,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:c,to:l,value:u,walletClient:h}){const d=or({chainId:r}),f=h??await ar({chainId:r});if(!f)throw new ye.N;r&&Hr({chainId:r});const p=(l&&!(0,ke.U)(l)?await Or({name:l}):l)||void 0;if(p&&!(0,ke.U)(p))throw new Error("Invalid address");return{accessList:t,account:e,data:n,gas:void 0===i?await d.estimateGas({accessList:t,account:f.account,data:n,gas:i??void 0,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:c,to:p,value:u}):i||void 0,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,mode:"prepared",nonce:c,to:p,value:u,...r?{chainId:r}:{}}}async function Dr({accessList:t,account:e,chainId:r,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,mode:c,nonce:l,to:u,value:h}){const d=await ar({chainId:r});if(!d)throw new ye.N;let f;return r&&Hr({chainId:r}),f="prepared"===c?{account:e,accessList:t,chain:null,data:n,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:l,to:u,value:h}:await jr({accessList:t,account:e,chainId:r,data:n,gas:i||null,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:a,nonce:l,to:u,value:h}),{hash:await d.sendTransaction({...f,chain:r?{id:r}:null})}}async function Fr({chainId:t,confirmations:e=1,hash:r,onReplaced:n,timeout:i=0}){const s=or({chainId:t}),o=await s.waitForTransactionReceipt({hash:r,confirmations:e,onReplaced:n,timeout:i});if("reverted"===o.status){const t=await s.getTransaction({hash:o.transactionHash}),e=await s.call({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0}),r=(0,mt.rR)(`0x${e.substring(138)}`);throw new Error(r)}return o}function zr(t,e){let r;const n=t=>{r&&r(),r=t.watchPendingTransactions({onTransactions:e,poll:!0})},i=cr({chainId:t.chainId})??or({chainId:t.chainId});n(i);const s=Ye().subscribe((({publicClient:t,webSocketPublicClient:e})=>({publicClient:t,webSocketPublicClient:e})),(async({publicClient:e,webSocketPublicClient:r})=>{const i=r??e;!t.chainId&&i&&n(i)}),{equalityFn:xe});return()=>{s(),r?.()}}function Hr({chainId:t}){const{chain:e,chains:r}=Sr(),n=e?.id;if(n&&t!==n)throw new Pe({activeChain:r.find((t=>t.id===n))?.name??`Chain ${n}`,targetChain:r.find((e=>e.id===t))?.name??`Chain ${t}`})}},33694:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ChainMismatchError:()=>s.Yl,ChainNotConfiguredError:()=>s.X4,Config:()=>s.De,ConfigChainsNotFound:()=>s.gs,Connector:()=>a.wR,ConnectorAlreadyConnectedError:()=>s.wi,ConnectorNotFoundError:()=>o.N,InjectedConnector:()=>c._,SwitchChainNotSupportedError:()=>s.OJ,configureChains:()=>s.QB,connect:()=>s.$j,createConfig:()=>s._g,createStorage:()=>s.o6,deepEqual:()=>s.vZ,deserialize:()=>s.vB,disconnect:()=>s.zP,erc20ABI:()=>s.em,erc4626ABI:()=>s.yS,erc721ABI:()=>s.YD,fetchBalance:()=>s.EG,fetchBlockNumber:()=>s.RQ,fetchEnsAddress:()=>s.bh,fetchEnsAvatar:()=>s.w6,fetchEnsName:()=>s.Lk,fetchEnsResolver:()=>s.Uj,fetchFeeData:()=>s.jS,fetchToken:()=>s.EC,fetchTransaction:()=>s.KI,getAccount:()=>s.D0,getConfig:()=>s.iE,getContract:()=>s.uN,getNetwork:()=>s.Hy,getPublicClient:()=>s.uV,getUnit:()=>s.Wy,getWalletClient:()=>s.xz,getWebSocketPublicClient:()=>s.jr,mainnet:()=>n.R,multicall:()=>s.Ap,noopStorage:()=>s.wp,prepareSendTransaction:()=>s.uw,prepareWriteContract:()=>s.$q,readContract:()=>s.a4,readContracts:()=>s.JH,sendTransaction:()=>s.T7,sepolia:()=>i.F,serialize:()=>s.qC,signMessage:()=>s.l,signTypedData:()=>s.xq,switchNetwork:()=>s.If,waitForTransaction:()=>s.Mn,watchAccount:()=>s.uH,watchBlockNumber:()=>s.qu,watchContractEvent:()=>s.Y$,watchMulticall:()=>s.Mx,watchNetwork:()=>s.QC,watchPendingTransactions:()=>s.us,watchPublicClient:()=>s.pC,watchReadContract:()=>s.jt,watchReadContracts:()=>s.fn,watchWalletClient:()=>s.Tb,watchWebSocketPublicClient:()=>s.fq,writeContract:()=>s.n9});var n=r(66403),i=r(35194),s=r(46070),o=r(57858),a=r(53324),c=r(92219)},70672:(t,e,r)=>{"use strict";r.d(e,{AV:()=>s,ConfigCtrl:()=>f,ExplorerCtrl:()=>N,OptionsCtrl:()=>h,ThemeCtrl:()=>z,ToastCtrl:()=>$,jb:()=>R,uA:()=>l,zv:()=>o});var n=r(96828);const i=(0,n.sj)({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),s={state:i,subscribe:t=>(0,n.Ld)(i,(()=>t(i))),push(t,e){t!==i.view&&(i.view=t,e&&(i.data=e),i.history.push(t))},reset(t){i.view=t,i.history=[t]},replace(t){i.history.length>1&&(i.history[i.history.length-1]=t,i.view=t)},goBack(){if(i.history.length>1){i.history.pop();const[t]=i.history.slice(-1);i.view=t}},setData(t){i.data=t}},o={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>o.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const t=navigator.userAgent.toLowerCase();return o.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),isArray:t=>Array.isArray(t)&&t.length>0,formatNativeUrl(t,e,r){if(o.isHttpUrl(t))return this.formatUniversalUrl(t,e,r);let n=t;return n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},formatUniversalUrl(t,e,r){if(!o.isHttpUrl(t))return this.formatNativeUrl(t,e,r);let n=t;return n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},wait:async t=>new Promise((e=>{setTimeout(e,t)})),openHref(t,e){window.open(t,e,"noreferrer noopener")},setWalletConnectDeepLink(t,e){try{localStorage.setItem(o.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(t){try{const[e]=t.split("?");localStorage.setItem(o.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(o.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(o.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var t;const e=null==(t=s.state.data)?void 0:t.Wallet;if(!e)throw new Error('Missing "Wallet" view data');return e}},a=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),c=(0,n.sj)({enabled:a,userSessionId:"",events:[],connectedWalletId:void 0}),l={state:c,subscribe:t=>(0,n.Ld)(c.events,(()=>t((0,n.CO)(c.events[c.events.length-1])))),initialize(){c.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(c.userSessionId=crypto.randomUUID())},setConnectedWalletId(t){c.connectedWalletId=t},click(t){if(c.enabled){const e={type:"CLICK",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}},track(t){if(c.enabled){const e={type:"TRACK",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}},view(t){if(c.enabled){const e={type:"VIEW",name:t.name,userSessionId:c.userSessionId,timestamp:Date.now(),data:t};c.events.push(e)}}},u=(0,n.sj)({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),h={state:u,subscribe:t=>(0,n.Ld)(u,(()=>t(u))),setChains(t){u.chains=t},setWalletConnectUri(t){u.walletConnectUri=t},setIsCustomDesktop(t){u.isCustomDesktop=t},setIsCustomMobile(t){u.isCustomMobile=t},setIsDataLoaded(t){u.isDataLoaded=t},setIsUiLoaded(t){u.isUiLoaded=t},setIsAuth(t){u.isAuth=t}},d=(0,n.sj)({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),f={state:d,subscribe:t=>(0,n.Ld)(d,(()=>t(d))),setConfig(t){var e,r;l.initialize(),h.setChains(t.chains),h.setIsAuth(Boolean(t.enableAuthMode)),h.setIsCustomMobile(Boolean(null==(e=t.mobileWallets)?void 0:e.length)),h.setIsCustomDesktop(Boolean(null==(r=t.desktopWallets)?void 0:r.length)),o.setModalVersionInStorage(),Object.assign(d,t)}};var p=Object.defineProperty,m=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,w=(t,e,r)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const b="https://explorer-api.walletconnect.com",v="wcm",A="js-2.6.2";async function E(t,e){const r=((t,e)=>{for(var r in e||(e={}))g.call(e,r)&&w(t,r,e[r]);if(m)for(var r of m(e))y.call(e,r)&&w(t,r,e[r]);return t})({sdkType:v,sdkVersion:A},e),n=new URL(t,b);return n.searchParams.append("projectId",f.state.projectId),Object.entries(r).forEach((([t,e])=>{e&&n.searchParams.append(t,String(e))})),(await fetch(n)).json()}const x=async t=>E("/w3m/v1/getDesktopListings",t),_=async t=>E("/w3m/v1/getMobileListings",t);var S=Object.defineProperty,M=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,I=(t,e,r)=>e in t?S(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const P=o.isMobile(),O=(0,n.sj)({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),N={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:t,explorerExcludedWalletIds:e}=f.state;if("NONE"===t||"ALL"===e&&!t)return O.recomendedWallets;if(o.isArray(t)){const e={recommendedIds:t.join(",")},{listings:r}=await(async t=>E("/w3m/v1/getAllListings",t))(e),n=Object.values(r);n.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id))),O.recomendedWallets=n}else{const{chains:t,isAuth:r}=h.state,n=t?.join(","),i=o.isArray(e),s={page:1,sdks:r?"auth_v1":void 0,entries:o.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:i?e.join(","):void 0},{listings:a}=P?await _(s):await x(s);O.recomendedWallets=Object.values(a)}return O.recomendedWallets},async getWallets(t){const e=((t,e)=>{for(var r in e||(e={}))C.call(e,r)&&I(t,r,e[r]);if(M)for(var r of M(e))k.call(e,r)&&I(t,r,e[r]);return t})({},t),{explorerRecommendedWalletIds:r,explorerExcludedWalletIds:n}=f.state,{recomendedWallets:i}=O;if("ALL"===n)return O.wallets;i.length?e.excludedIds=i.map((t=>t.id)).join(","):o.isArray(r)&&(e.excludedIds=r.join(",")),o.isArray(n)&&(e.excludedIds=[e.excludedIds,n].filter(Boolean).join(",")),h.state.isAuth&&(e.sdks="auth_v1");const{page:s,search:a}=t,{listings:c,total:l}=P?await _(e):await x(e),u=Object.values(c),d=a?"search":"wallets";return O[d]={listings:[...O[d].listings,...u],total:l,page:s??1},{listings:u,total:l}},getWalletImageUrl:t=>(t=>`${b}/w3m/v1/getWalletImage/${t}?projectId=${f.state.projectId}&sdkType=${v}&sdkVersion=${A}`)(t),getAssetImageUrl:t=>(t=>`${b}/w3m/v1/getAssetImage/${t}?projectId=${f.state.projectId}&sdkType=${v}&sdkVersion=${A}`)(t),resetSearch(){O.search={listings:[],total:0,page:1}}},T=(0,n.sj)({open:!1}),R={state:T,subscribe:t=>(0,n.Ld)(T,(()=>t(T))),open:async t=>new Promise((e=>{const{isUiLoaded:r,isDataLoaded:n}=h.state;if(o.removeWalletConnectDeepLink(),h.setWalletConnectUri(t?.uri),h.setChains(t?.chains),s.reset("ConnectWallet"),r&&n)T.open=!0,e();else{const t=setInterval((()=>{const r=h.state;r.isUiLoaded&&r.isDataLoaded&&(clearInterval(t),T.open=!0,e())}),200)}})),close(){T.open=!1}};var B=Object.defineProperty,L=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,D=(t,e,r)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const F=(0,n.sj)({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),z={state:F,subscribe:t=>(0,n.Ld)(F,(()=>t(F))),setThemeConfig(t){const{themeMode:e,themeVariables:r}=t;e&&(F.themeMode=e),r&&(F.themeVariables=((t,e)=>{for(var r in e||(e={}))U.call(e,r)&&D(t,r,e[r]);if(L)for(var r of L(e))j.call(e,r)&&D(t,r,e[r]);return t})({},r))}},H=(0,n.sj)({open:!1,message:"",variant:"success"}),$={state:H,subscribe:t=>(0,n.Ld)(H,(()=>t(H))),openToast(t,e){H.open=!0,H.message=t,H.variant=e},closeToast(){H.open=!1}}},30663:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WcmModal:()=>ln,WcmQrCode:()=>mr});const n=window,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t;var u;const h=window,d=h.trustedTypes,f=d?d.emptyScript:"",p=h.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:g},w="finalized";class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const n=this._$Ep(r,e);void 0!==n&&(this._$Ev.set(n,r),t.push(n))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,r,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty(w))return!1;this[w]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),i=n.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var n;const i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){const s=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:m).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,e){var r;const n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=n.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:m;this._$El=i,this[i]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let n=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var v;b[w]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:b}),(null!==(u=h.reactiveElementVersions)&&void 0!==u?u:h.reactiveElementVersions=[]).push("1.6.3");const A=window,E=A.trustedTypes,x=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,_="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,C=`<${M}>`,k=document,I=()=>k.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,N="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,B=/>/g,L=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,j=/"/g,D=/^(?:script|style|textarea|title)$/i,F=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),z=F(1),H=F(2),$=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,V=k.createTreeWalker(k,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==x?x.createHTML(e):e}class K{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=((t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=T;for(let e=0;e"===c[0]?(o=null!=i?i:T,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?L:'"'===c[3]?j:U):o===j||o===U?o=L:o===R||o===B?o=T:(o=L,i=void 0);const h=o===L&&t[e+1].startsWith("/>")?" ":"";s+=o===T?r+C:l>=0?(n.push(a),r.slice(0,l)+_+r.slice(l)+S+h):r+S+(-2===l?(n.push(void 0),e):h)}return[G(t,s+(t[r]||"")+(2===e?"":"")),n]})(t,e);if(this.el=K.createElement(c,r),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=V.nextNode())&&a.length0){n.textContent=E?E.emptyScript:"";for(let r=0;rO(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(G(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(r);else{const t=new Q(i,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new K(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new J(this.k(I()),this.k(I()),this,this.options)):r=e[n],r._$AI(i),n++;n2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=Z(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==$,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{var n,i;const s=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:e;let o=s._$litPart$;if(void 0===o){const t=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;s._$litPart$=o=new J(e.insertBefore(I(),t),t,void 0,null!=r?r:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return $}}at.finalized=!0,at._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:at});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:at}),(null!==(ot=globalThis.litElementVersions)&&void 0!==ot?ot:globalThis.litElementVersions=[]).push("3.3.3");const lt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.define(t,e)}}})(t,e),ut=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function ht(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):ut(t,e)}function dt(t){return ht({...t,state:!0})}var ft;null===(ft=window.HTMLSlotElement)||void 0===ft||ft.prototype.assignedElements;class pt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const mt=(gt=class extends pt{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const i=t.element.classList;this.it.forEach((t=>{t in e||(i.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(r?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return $}},(...t)=>({_$litDirective$:gt,values:t}));var gt,yt=r(70672);const wt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},bt=t=>1e3*t,vt=()=>{},At=t=>t;function Et(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}const xt=t=>t(),_t=(t,e,r=wt.duration)=>new Proxy({animations:t.map(xt).filter(Boolean),duration:r,options:e},St),St={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return(t=>t/1e3)((null==r?void 0:r[e])||0);case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Mt)).catch(vt)),t.finished;case"stop":return()=>{t.animations.forEach((t=>Et(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=bt(r);case"playbackRate":for(let n=0;nt.finished,Ct=t=>"object"==typeof t&&Boolean(t.createAnimation),kt=t=>"number"==typeof t,It=t=>Array.isArray(t)&&!kt(t[0]),Pt=(t,e,r)=>-r*t+r*e+t,Ot=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Nt(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Ot(0,e,n);t.push(Pt(r,1,i))}}const Tt=(t,e,r)=>Math.min(Math.max(r,t),e),Rt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function Bt(t,e,r,n){return t===e&&r===n?At:i=>0===i||1===i?i:Rt(function(t,e,r,n,i){let s,o,a=0;do{o=e+(r-e)/2,s=Rt(o,n,i)-t,s>0?r=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,t,r),e,n)}const Lt=t=>"function"==typeof t,Ut=t=>Array.isArray(t)&&kt(t[0]),jt={ease:Bt(.25,.1,.25,1),"ease-in":Bt(.42,0,1,1),"ease-in-out":Bt(.42,0,.58,1),"ease-out":Bt(0,0,.58,1)},Dt=/\((.*?)\)/;function Ft(t){if(Lt(t))return t;if(Ut(t))return Bt(...t);if(jt[t])return jt[t];if(t.startsWith("steps")){const e=Dt.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const n=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,i="end"===e?Math.floor(n):Math.ceil(n);return Tt(0,1,i/t)})(parseFloat(t[0]),t[1].trim())}}return At}class zt{constructor(t,e=[0,1],{easing:r,duration:n=wt.duration,delay:i=wt.delay,endDelay:s=wt.endDelay,repeat:o=wt.repeat,offset:a,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=At,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||wt.easing,Ct(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,n=t.duration||n}this.repeat=o,this.easing=It(r)?At:Ft(r),this.updateDuration(n);const l=function(t,e=function(t){const e=[0];return Nt(e,t-1),e}(t.length),r=At){const n=t.length,i=n-e.length;return i>0&&Nt(e,i),i=>{let s=0;for(;s{const n=e-0;return((r-0)%n+n)%n+0})(0,t.length,e)]:t}(r,s);return o=a(o),Pt(t[s],t[s+1],o)}}(e,a,It(r)?r.map(Ft):At);this.tick=e=>{var r;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);const o=n/this.duration;let a=Math.floor(o),u=o%1;!u&&o>=1&&(u=1),1===u&&a--;const h=a%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(u=1-u);const d=n>=this.totalDuration?1:Math.min(u,1),f=l(this.easing(d));t(f),void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+s)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,f)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Ht{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const $t=new WeakMap;function qt(t){return $t.has(t)||$t.set(t,{transforms:[],values:new Map}),$t.get(t)}const Wt=["","X","Y","Z"],Vt={x:"translateX",y:"translateY",z:"translateZ"},Gt={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Kt={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Gt,scale:{syntax:"",initialValue:1,toDefaultUnit:At},skew:Gt},Zt=new Map,Qt=t=>`--motion-${t}`,Jt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Wt.forEach((e=>{Jt.push(t+e),Zt.set(Qt(t+e),Kt[t])}))}));const Yt=(t,e)=>Jt.indexOf(t)-Jt.indexOf(e),Xt=new Set(Jt),te=t=>Xt.has(t),ee=(t,e)=>`${t} ${e}(var(${Qt(e)}))`,re=t=>t.startsWith("--"),ne=new Set,ie=(t,e)=>document.createElement("div").animate(t,e),se={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ie({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(ie({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{ie({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},oe={},ae={};for(const t in se)ae[t]=()=>(void 0===oe[t]&&(oe[t]=se[t]()),oe[t]);const ce=(t,e)=>Lt(t)?ae.linearEasing()?`linear(${((t,e)=>{let r="";const n=Math.round(e/.015);for(let e=0;e`cubic-bezier(${t}, ${e}, ${r}, ${n})`;function ue(t){return Vt[t]&&(t=Vt[t]),te(t)?Qt(t):t}const he=(t,e,r)=>{e=ue(e),re(e)?t.style.setProperty(e,r):t.style[e]=r};function de(t,e,r,n={},i){const s=window.__MOTION_DEV_TOOLS_RECORD,o=!1!==n.record&&s;let a,{duration:c=wt.duration,delay:l=wt.delay,endDelay:u=wt.endDelay,repeat:h=wt.repeat,easing:d=wt.easing,persist:f=!1,direction:p,offset:m,allowWebkitAcceleration:g=!1}=n;const y=qt(t),w=te(e);let b=ae.waapi();w&&((t,e)=>{Vt[e]&&(e=Vt[e]);const{transforms:r}=qt(t);var n,i;i=e,-1===(n=r).indexOf(i)&&n.push(i),t.style.transform=(t=>t.sort(Yt).reduce(ee,"").trim())(r)})(t,e);const v=ue(e),A=function(t,e){return t.has(e)||t.set(e,new Ht),t.get(e)}(y.values,v),E=Zt.get(v);return Et(A.animation,!(Ct(d)&&A.generator)&&!1!==n.record),()=>{const y=()=>{var e,r;return null!==(r=null!==(e=((t,e)=>{e=ue(e);let r=re(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Zt.get(e);t&&(r=t.initialValue)}return r})(t,v))&&void 0!==e?e:null==E?void 0:E.initialValue)&&void 0!==r?r:0};let x=function(t,e){for(let r=0;rArray.isArray(t)?t:[t])(r),y);const _=function(t,e){var r;let n=(null==e?void 0:e.toDefaultUnit)||At;const i=t[t.length-1];if("string"==typeof i){const t=(null===(r=i.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(n=e=>e+t)}return n}(x,E);if(Ct(d)){const t=d.createAnimation(x,"opacity"!==e,y,v,A);d=t.easing,x=t.keyframes||x,c=t.duration||c}if(re(v)&&(ae.cssRegisterProperty()?function(t){if(!ne.has(t)){ne.add(t);try{const{syntax:e,initialValue:r}=Zt.has(t)?Zt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(v):b=!1),w&&!ae.linearEasing()&&(Lt(d)||It(d)&&d.some(Lt))&&(b=!1),b){E&&(x=x.map((t=>kt(t)?E.toDefaultUnit(t):t))),1!==x.length||ae.partialKeyframes()&&!o||x.unshift(y());const e={delay:bt(l),duration:bt(c),endDelay:bt(u),easing:It(d)?void 0:ce(d,c),direction:p,iterations:h+1,fill:"both"};a=t.animate({[v]:x,offset:m,easing:It(d)?d.map((t=>ce(t,c))):void 0},e),a.finished||(a.finished=new Promise(((t,e)=>{a.onfinish=t,a.oncancel=e})));const r=x[x.length-1];a.finished.then((()=>{f||(he(t,v,r),a.cancel())})).catch(vt),g||(a.playbackRate=1.000001)}else if(i&&w)x=x.map((t=>"string"==typeof t?parseFloat(t):t)),1===x.length&&x.unshift(parseFloat(y())),a=new i((e=>{he(t,v,_?_(e):e)}),x,Object.assign(Object.assign({},n),{duration:c,easing:d}));else{const e=x[x.length-1];he(t,v,E&&kt(e)?E.toDefaultUnit(e):e)}return o&&s(t,e,x,{duration:c,delay:l,easing:d,repeat:h,offset:m},"motion-one"),A.setAnimation(a),a}}const fe=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function pe(t,e,r){return Lt(t)?t(e,r):t}const me=(ge=zt,function(t,e,r={}){const n=(t=function(t,e){return"string"==typeof t?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Boolean(n),Boolean(e);const i=[];for(let s=0;s{const r=new zt(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function we(t,e,r){return(Lt(t)?ye:me)(t,e,r)}const be=t=>null!=t?t:q;var ve=r(92592),Ae=Object.defineProperty,Ee=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Se=(t,e,r)=>e in t?Ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Me=(t,e)=>{for(var r in e||(e={}))xe.call(e,r)&&Se(t,r,e[r]);if(Ee)for(var r of Ee(e))_e.call(e,r)&&Se(t,r,e[r]);return t};const Ce={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=yt.ThemeCtrl.state;if(t){const r=Me(Me(Me({},function(){var t;const e={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(t=yt.ThemeCtrl.state.themeMode)?t:"dark"];return{"--wcm-color-fg-1":e.foreground[1],"--wcm-color-fg-2":e.foreground[2],"--wcm-color-fg-3":e.foreground[3],"--wcm-color-bg-1":e.background[1],"--wcm-color-bg-2":e.background[2],"--wcm-color-bg-3":e.background[3],"--wcm-color-overlay":e.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),e);Object.entries(r).forEach((([e,r])=>t.style.setProperty(e,r)))}},globalCss:c`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},ke=c`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Ie=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Oe=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Pe(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ie(e,r,s),s};let Ne=class extends at{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),z``}};Ne.styles=[Ce.globalCss,ke],Oe([ht({type:Boolean})],Ne.prototype,"disabled",2),Oe([ht()],Ne.prototype,"iconLeft",2),Oe([ht()],Ne.prototype,"iconRight",2),Oe([ht()],Ne.prototype,"onClick",2),Oe([ht()],Ne.prototype,"variant",2),Ne=Oe([lt("wcm-button")],Ne);const Te=c`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var Re=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,Le=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Be(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Re(e,r,s),s};let Ue=class extends at{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return z``}};Ue.styles=[Ce.globalCss,Te],Le([ht({type:Boolean})],Ue.prototype,"disabled",2),Le([ht()],Ue.prototype,"variant",2),Ue=Le([lt("wcm-button-big")],Ue);const je=c`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let De=class extends at{render(){return z`
    `}};De.styles=[Ce.globalCss,je],De=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-info-footer")],De);const Fe={CROSS_ICON:H``,WALLET_CONNECT_LOGO:H``,WALLET_CONNECT_ICON:H``,WALLET_CONNECT_ICON_COLORED:H``,BACK_ICON:H``,COPY_ICON:H``,RETRY_ICON:H``,DESKTOP_ICON:H``,MOBILE_ICON:H``,ARROW_DOWN_ICON:H``,ARROW_UP_RIGHT_ICON:H``,ARROW_RIGHT_ICON:H``,QRCODE_ICON:H``,SCAN_ICON:H``,CHECKMARK_ICON:H``,SEARCH_ICON:H``,WALLET_PLACEHOLDER:H``,GLOBE_ICON:H``},ze=c`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let He=class extends at{render(){return z`
    ${Fe.WALLET_CONNECT_LOGO}
    `}};He.styles=[Ce.globalCss,ze],He=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-backcard")],He);const $e=c`main{padding:20px;padding-top:0;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let qe=class extends at{render(){return z`
    `}};qe.styles=[Ce.globalCss,$e],qe=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-content")],qe);const We=c`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ve=class extends at{render(){return z`
    `}};Ve.styles=[Ce.globalCss,We],Ve=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-modal-footer")],Ve);const Ge=c`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var Ke=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,Qe=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Ze(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ke(e,r,s),s};let Je=class extends at{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return z``}actionBtnTemplate(){return z``}render(){const t={"wcm-border":this.border},e=yt.AV.state.history.length>1,r=this.title?z`${this.title}`:z``;return z`
    ${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
    `}};Je.styles=[Ce.globalCss,Ge],Qe([ht()],Je.prototype,"title",2),Qe([ht()],Je.prototype,"onAction",2),Qe([ht()],Je.prototype,"actionIcon",2),Qe([ht({type:Boolean})],Je.prototype,"border",2),Je=Qe([lt("wcm-modal-header")],Je);const Ye={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=yt.ConfigCtrl.state;return null!=r&&r[t]?r[t]:e?yt.ExplorerCtrl.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Ye.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,yt.zv.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=yt.OptionsCtrl.state,{mobile:r,name:n}=t,i=r?.native,s=r?.universal;Ye.setRecentWallet(t),e&&function(t){let e="";i?e=yt.zv.formatUniversalUrl(i,t,n):s&&(e=yt.zv.formatNativeUrl(s,t,n)),yt.zv.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=yt.OptionsCtrl.state;t&&(yt.zv.setWalletConnectAndroidDeepLink(t),yt.zv.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=yt.OptionsCtrl.state;if(t)try{await navigator.clipboard.writeText(t),yt.ToastCtrl.openToast("Link copied","success")}catch{yt.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=yt.ConfigCtrl.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Ye.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Ye.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){yt.zv.openHref(Ye.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=yt.zv.getWalletRouterData(),r=Boolean(t?.native),n=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:n}},goToConnectingView(t){yt.AV.setData({Wallet:t});const e=yt.zv.isMobile(),{isDesktop:r,isWeb:n,isMobile:i}=Ye.getCachedRouterWalletPlatforms();e?i?yt.AV.push("MobileConnecting"):n?yt.AV.push("WebConnecting"):yt.AV.push("InstallWallet"):r?yt.AV.push("DesktopConnecting"):n?yt.AV.push("WebConnecting"):i?yt.AV.push("MobileQrcodeConnecting"):yt.AV.push("InstallWallet")}},Xe=c`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor,rr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?er(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&tr(e,r,s),s};let nr=class extends at{constructor(){super(),this.view=yt.AV.state.view,this.prevView=yt.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=yt.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&we(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Ye.getShadowRootElement(this,".wcm-router")}get contentEl(){return Ye.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return z``;case"DesktopConnecting":return z``;case"MobileConnecting":return z``;case"WebConnecting":return z``;case"MobileQrcodeConnecting":return z``;case"WalletExplorer":return z``;case"Qrcode":return z``;case"InstallWallet":return z``;default:return z`
    Not Found
    `}}async onChangeRoute(){await we(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=yt.AV.state.view,we(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return z`
    ${this.viewTemplate()}
    `}};nr.styles=[Ce.globalCss,Xe],rr([dt()],nr.prototype,"view",2),rr([dt()],nr.prototype,"prevView",2),nr=rr([lt("wcm-modal-router")],nr);const ir=c`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var sr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ar=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?or(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&sr(e,r,s),s};let cr=class extends at{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=yt.ToastCtrl.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>yt.ToastCtrl.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),yt.ToastCtrl.closeToast()}render(){const{message:t,variant:e}=yt.ToastCtrl.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?z`
    ${"success"===e?Fe.CHECKMARK_ICON:null} ${"error"===e?Fe.CROSS_ICON:null}${t}
    `:null}};function lr(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}cr.styles=[Ce.globalCss,ir],ar([dt()],cr.prototype,"open",2),cr=ar([lt("wcm-modal-toast")],cr);const ur={generate(t,e,r){const n="#141414",i=[],s=function(t,e){const r=Array.prototype.slice.call(ve.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e;for(let t=0;t`)}}));const c=Math.floor((r+25)/o),l=s.length/2-c/2,u=s.length/2+c/2-1,h=[];s.forEach(((t,e)=>{t.forEach(((t,r)=>{if(s[e][r]&&!(e<7&&r<7||e>s.length-8&&r<7||e<7&&r>s.length-8)&&!(e>l&&el&&r{d[t]?d[t].push(e):d[t]=[e]})),Object.entries(d).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!lr(t,e,o)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{i.push(H``)}))})),Object.entries(d).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>lr(t,e,o)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>te.some((e=>lr(t,e,o)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{i.push(H``)}))})),i}},hr=c`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var dr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,pr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?fr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&dr(e,r,s),s};let mr=class extends at{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t="light"===yt.ThemeCtrl.state.themeMode?this.size:this.size-36;return H`${ur.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":"dark"===yt.ThemeCtrl.state.themeMode};return z`
    ${this.walletId||this.imageUrl?z``:Fe.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
    `}};mr.styles=[Ce.globalCss,hr],pr([ht()],mr.prototype,"uri",2),pr([ht({type:Number})],mr.prototype,"size",2),pr([ht()],mr.prototype,"imageId",2),pr([ht()],mr.prototype,"walletId",2),pr([ht()],mr.prototype,"imageUrl",2),mr=pr([lt("wcm-qrcode")],mr);const gr=c`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var yr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,br=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?wr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&yr(e,r,s),s};let vr=class extends at{constructor(){super(...arguments),this.onChange=()=>null}render(){return z` ${Fe.SEARCH_ICON}`}};vr.styles=[Ce.globalCss,gr],br([ht()],vr.prototype,"onChange",2),vr=br([lt("wcm-search-input")],vr);const Ar=c`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Er=class extends at{render(){return z``}};Er.styles=[Ce.globalCss,Ar],Er=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-spinner")],Er);const xr=c`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var _r=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,Mr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Sr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&_r(e,r,s),s};let Cr=class extends at{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return z``}};Cr.styles=[Ce.globalCss,xr],Mr([ht()],Cr.prototype,"variant",2),Mr([ht()],Cr.prototype,"color",2),Cr=Mr([lt("wcm-text")],Cr);const kr=c`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Ir=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Or=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Pr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ir(e,r,s),s};let Nr=class extends at{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?z`RECENT`:this.installed?z`INSTALLED`:null}handleClick(){yt.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return z``}};Nr.styles=[Ce.globalCss,kr],Or([ht()],Nr.prototype,"onClick",2),Or([ht()],Nr.prototype,"name",2),Or([ht()],Nr.prototype,"walletId",2),Or([ht()],Nr.prototype,"label",2),Or([ht()],Nr.prototype,"imageId",2),Or([ht({type:Boolean})],Nr.prototype,"installed",2),Or([ht({type:Boolean})],Nr.prototype,"recent",2),Nr=Or([lt("wcm-wallet-button")],Nr);const Tr=c`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Rr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Lr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Br(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Rr(e,r,s),s};let Ur=class extends at{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Ye.getWalletIcon({id:this.walletId,image_id:this.imageId});return z`${e.length?z`
    ${this.id}
    `:Fe.WALLET_PLACEHOLDER}`}};Ur.styles=[Ce.globalCss,Tr],Lr([ht()],Ur.prototype,"walletId",2),Lr([ht()],Ur.prototype,"imageId",2),Lr([ht()],Ur.prototype,"imageUrl",2),Ur=Lr([lt("wcm-wallet-image")],Ur);var jr=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,Fr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Dr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&jr(e,r,s),s};let zr=class extends at{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Ye.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(yt.ConfigCtrl.state.enableExplorer){await yt.ExplorerCtrl.getRecomendedWallets(),yt.OptionsCtrl.setIsDataLoaded(!0);const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=t.map((t=>Ye.getWalletIcon(t)));await this.loadImages(e)}else yt.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Ye.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),yt.ToastCtrl.openToast("Failed preloading","error")}}};Fr([dt()],zr.prototype,"preload",2),zr=Fr([lt("wcm-explorer-context")],zr),Object.defineProperty,Object.getOwnPropertyDescriptor;let Hr=class extends at{constructor(){super(),this.unsubscribeTheme=void 0,Ce.setTheme(),this.unsubscribeTheme=yt.ThemeCtrl.subscribe(Ce.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};Hr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-theme-context")],Hr);const $r=c`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let qr=class extends at{onGoToQrcode(){yt.AV.push("Qrcode")}render(){const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=[...t,...t],r=2*yt.zv.RECOMMENDED_WALLET_AMOUNT;return z`
    ${Fe.MOBILE_ICON}WalletConnect
    ${[...Array(r)].map(((t,r)=>{const n=e[r%e.length];return n?z``:Fe.WALLET_PLACEHOLDER}))}
    Select Wallet
    Choose WalletConnect to see supported apps on your device`}};qr.styles=[Ce.globalCss,$r],qr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-android-wallet-selection")],qr);const Wr=c`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Vr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Kr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Gr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Vr(e,r,s),s};let Zr=class extends at{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=null!=(e=null==(t=yt.ThemeCtrl.state.themeVariables)?void 0:t["--wcm-wallet-icon-large-border-radius"])?e:Ce.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;return n=r.includes("%")?.88*parseInt(r,10):parseInt(r,10),n*=1.17,z``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return z`
    ${this.svgLoaderTemplate()}
    ${this.isError?"Connection declined":this.label}`}};Zr.styles=[Ce.globalCss,Wr],Kr([ht()],Zr.prototype,"walletId",2),Kr([ht()],Zr.prototype,"imageId",2),Kr([ht({type:Boolean})],Zr.prototype,"isError",2),Kr([ht({type:Boolean})],Zr.prototype,"isStale",2),Kr([ht()],Zr.prototype,"label",2),Zr=Kr([lt("wcm-connector-waiting")],Zr);const Qr={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:n}=yt.ConfigCtrl.state,i=null==(t=Qr.recentWallet())?void 0:t.id,s=(yt.zv.isMobile()?r:n)?.filter((t=>i!==t.id));return null!=(e=yt.zv.isMobile()?s?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):s?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Ye.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Qr.recentWallet())?void 0:e.id,{recomendedWallets:n}=yt.ExplorerCtrl.state;return n.filter((t=>r!==t.id))}},Jr={onConnecting(t){Ye.goToConnectingView(t)},manualWalletsTemplate(){return Qr.manualWallets().map((t=>z``))},recomendedWalletsTemplate(t=!1){return Qr.recomendedWallets(t).map((t=>z``))},recentWalletTemplate(){const t=Qr.recentWallet();if(t)return z``}},Yr=c`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Xr=class extends at{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=yt.ConfigCtrl.state,r="ALL"!==t&&e,n=Jr.manualWalletsTemplate(),i=Jr.recomendedWalletsTemplate();let s=[Jr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>4||r;let a=[];a=o?s.slice(0,3):s;const c=Boolean(a.length);return z`
    ${Fe.MOBILE_ICON}Mobile
    ${Fe.SCAN_ICON}Scan with your wallet
    ${c?z`
    ${Fe.DESKTOP_ICON}Desktop
    ${a} ${o?z``:null}
    `:null}`}};Xr.styles=[Ce.globalCss,Yr],Xr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-desktop-wallet-selection")],Xr);const tn=c`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let en=class extends at{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=yt.ConfigCtrl.state;return t??e?z`
    By connecting your wallet to this app, you agree to the app's ${t?z`Terms of Service`:null} ${t&&e?"and":null} ${e?z`Privacy Policy`:null}
    `:null}};en.styles=[Ce.globalCss,tn],en=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-legal-notice")],en);const rn=c`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let nn=class extends at{onQrcode(){yt.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=yt.ConfigCtrl.state,r="ALL"!==t&&e,n=Jr.manualWalletsTemplate(),i=Jr.recomendedWalletsTemplate();let s=[Jr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>8||r;let a=[];a=o?s.slice(0,7):s;const c=Boolean(a.length);return z`${c?z`
    ${a} ${o?z``:null}
    `:null}`}};nn.styles=[Ce.globalCss,rn],nn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-mobile-wallet-selection")],nn);const sn=c`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var on=Object.defineProperty,an=Object.getOwnPropertyDescriptor,cn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?an(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&on(e,r,s),s};let ln=class extends at{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=yt.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Ye.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Ye.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){document.querySelector("body")&&(t?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(t){t.target===t.currentTarget&&yt.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Ye.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([we(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,we(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Ye.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([we(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,we(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var e;"Escape"===t.key?yt.jb.close():"Tab"===t.key&&(null!=(e=t.target)&&e.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return z`
    ${this.open?z`
    `:null}
    `}};ln.styles=[Ce.globalCss,sn],cn([dt()],ln.prototype,"open",2),cn([dt()],ln.prototype,"active",2),ln=cn([lt("wcm-modal")],ln);const un=c`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var hn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,fn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?dn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&hn(e,r,s),s};let pn=class extends at{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){yt.zv.isMobile()?yt.AV.replace("MobileConnecting"):yt.AV.replace("MobileQrcodeConnecting")}onDesktop(){yt.AV.replace("DesktopConnecting")}onWeb(){yt.AV.replace("WebConnecting")}render(){return z`
    ${this.isRetry?z``:null} ${this.isMobile?z`Mobile`:null} ${this.isDesktop?z`Desktop`:null} ${this.isWeb?z`Web`:null}
    `}};pn.styles=[Ce.globalCss,un],fn([ht({type:Boolean})],pn.prototype,"isMobile",2),fn([ht({type:Boolean})],pn.prototype,"isDesktop",2),fn([ht({type:Boolean})],pn.prototype,"isWeb",2),fn([ht({type:Boolean})],pn.prototype,"isRetry",2),pn=fn([lt("wcm-platform-selection")],pn);const mn=c`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let gn=class extends at{onClick(){yt.AV.push("WalletExplorer")}render(){const{recomendedWallets:t}=yt.ExplorerCtrl.state,e=[...t,...Qr.manualWallets()].reverse().slice(0,4);return z``}};gn.styles=[Ce.globalCss,mn],gn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-view-all-wallets-button")],gn);const yn=c`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var wn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,vn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?bn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&wn(e,r,s),s};let An=class extends at{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=yt.OptionsCtrl.state;this.uri=t}),0)}get overlayEl(){return Ye.getShadowRootElement(this,".wcm-qr-container")}render(){return z`
    ${this.uri?z``:z``}
    `}};An.styles=[Ce.globalCss,yn],vn([ht()],An.prototype,"walletId",2),vn([ht()],An.prototype,"imageId",2),vn([dt()],An.prototype,"uri",2),An=vn([lt("wcm-walletconnect-qr")],An),Object.defineProperty,Object.getOwnPropertyDescriptor;let En=class extends at{viewTemplate(){return yt.zv.isAndroid()?z``:yt.zv.isMobile()?z``:z``}render(){return z`${this.viewTemplate()}`}};En.styles=[Ce.globalCss],En=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-connect-wallet-view")],En);const xn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var _n=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Mn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Sn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&_n(e,r,s),s};let Cn=class extends at{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=yt.zv.getWalletRouterData(),n=e?.native;if(n){const e=yt.zv.formatNativeUrl(n,t,r);yt.zv.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=yt.OptionsCtrl.state,e=yt.zv.getWalletRouterData();Ye.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isMobile:n,isWeb:i}=Ye.getCachedRouterWalletPlatforms();return z`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Cn.styles=[Ce.globalCss,xn],Mn([dt()],Cn.prototype,"isError",2),Cn=Mn([lt("wcm-desktop-connecting-view")],Cn);const kn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let In=class extends at{onInstall(t){t&&yt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:n}=yt.zv.getWalletRouterData();return z`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};In.styles=[Ce.globalCss,kn],In=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-install-wallet-view")],In);const Pn=c`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var On=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Tn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Nn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&On(e,r,s),s};let Rn=class extends at{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:n}=yt.zv.getWalletRouterData(),i=r?.native,s=r?.universal;if(i&&!e){const e=yt.zv.formatNativeUrl(i,t,n);yt.zv.openHref(e,"_self")}else if(s){const e=yt.zv.formatUniversalUrl(s,t,n);yt.zv.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=yt.OptionsCtrl.state,r=yt.zv.getWalletRouterData();Ye.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&yt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:n,mobile:i}=yt.zv.getWalletRouterData(),{isWeb:s}=Ye.getCachedRouterWalletPlatforms(),o=n?.ios,a=i?.universal;return z`Retry${a?z`Still doesn't work? Try this alternate link`:null}
    ${`Get ${t}`}
    App Store
    `}};Rn.styles=[Ce.globalCss,Pn],Tn([dt()],Rn.prototype,"isError",2),Rn=Tn([lt("wcm-mobile-connecting-view")],Rn);const Bn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ln=class extends at{render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isDesktop:n,isWeb:i}=Ye.getCachedRouterWalletPlatforms();return z`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Ln.styles=[Ce.globalCss,Bn],Ln=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-mobile-qr-connecting-view")],Ln),Object.defineProperty,Object.getOwnPropertyDescriptor;let Un=class extends at{render(){return z``}};Un.styles=[Ce.globalCss],Un=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([lt("wcm-qrcode-view")],Un);const jn=c`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Dn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,zn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Fn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Dn(e,r,s),s};let Hn=class extends at{constructor(){super(...arguments),this.loading=!yt.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!yt.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Ye.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,yt.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),yt.ExplorerCtrl.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Ye.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=yt.ExplorerCtrl.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=yt.ExplorerCtrl.state,{listings:n,total:i,page:s}=this.search?r:e;if(!this.endReached&&(this.firstFetch||i>40&&n.lengthYe.getWalletIcon(t)));await Promise.all([...n.map((async t=>Ye.preloadImage(t))),yt.zv.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),yt.ToastCtrl.openToast(Ye.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){yt.zv.isAndroid()?Ye.handleMobileLinking(t):Ye.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=yt.ExplorerCtrl.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let s=Jr.manualWalletsTemplate(),o=Jr.recomendedWalletsTemplate(!0);i&&(s=s.filter((({values:t})=>Ye.caseSafeIncludes(t[0],this.search))),o=o.filter((({values:t})=>Ye.caseSafeIncludes(t[0],this.search))));const a=!this.loading&&!r.length&&!o.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":a};return z`
    ${n?null:s} ${n?null:o} ${n?null:r.map((t=>z`${t?z``:null}`))}
    ${a?z`No results found`:null} ${!a&&this.loading?z``:null}
    `}};Hn.styles=[Ce.globalCss,jn],zn([dt()],Hn.prototype,"loading",2),zn([dt()],Hn.prototype,"firstFetch",2),zn([dt()],Hn.prototype,"search",2),zn([dt()],Hn.prototype,"endReached",2),Hn=zn([lt("wcm-wallet-explorer-view")],Hn);const $n=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Vn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Wn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&qn(e,r,s),s};let Gn=class extends at{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=yt.zv.getWalletRouterData(),n=e?.universal;if(n){const e=yt.zv.formatUniversalUrl(n,t,r);yt.zv.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=yt.OptionsCtrl.state,e=yt.zv.getWalletRouterData();Ye.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=yt.zv.getWalletRouterData(),{isMobile:n,isDesktop:i}=Ye.getCachedRouterWalletPlatforms(),s=yt.zv.isMobile();return z`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};Gn.styles=[Ce.globalCss,$n],Vn([dt()],Gn.prototype,"isError",2),Gn=Vn([lt("wcm-web-connecting-view")],Gn)},59343:(t,e,r)=>{"use strict";r.d(e,{WalletConnectModal:()=>i});var n=r(70672);class i{constructor(t){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.ThemeCtrl.setThemeConfig,n.ThemeCtrl.setThemeConfig(t),n.ConfigCtrl.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(r.bind(r,30663));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),n.OptionsCtrl.setIsUiLoaded(!0)}}}},10248:(t,e,r)=>{"use strict";r.d(e,{E:()=>o});var n=r(27484),i=r(70660),s=r(84110);n.extend(s),n.extend(i),n.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"%s sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}});const o={getYear:(t=(new Date).toISOString())=>n(t).year(),getRelativeDateFromNow:t=>n(t).fromNow(!0)}},95909:(t,e,r)=>{"use strict";r.d(e,{AccountController:()=>l,ApiController:()=>k,fz:()=>Z,Lr:()=>j,ConnectionController:()=>q,ConnectorController:()=>b,bq:()=>o,j1:()=>a,Xs:()=>N,IN:()=>L,NetworkController:()=>x,OptionsController:()=>S,Ie:()=>A,RouterController:()=>R,_4:()=>Q,yD:()=>V,SnackController:()=>F,MO:()=>m,ThemeController:()=>K,sl:()=>H});var n=r(96828);function i(t,e,r,i){let s=t[e];return(0,n.Ld)(t,(()=>{const n=t[e];Object.is(s,n)||r(s=n)}),i)}Symbol();const s="https://secure.web3modal.com",o={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:s,SECURE_SITE_DASHBOARD:`${s}/dashboard`,SECURE_SITE_FAVICON:`${s}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet"}},a={isMobile:()=>"undefined"!=typeof window&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid(){const t=window.navigator.userAgent.toLowerCase();return a.isMobile()&&t.includes("android")},isIos(){const t=window.navigator.userAgent.toLowerCase();return a.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:t=>!t||t-Date.now()<=o.TEN_SEC_MS,isAllowedRetry:t=>Date.now()-t>=o.ONE_SEC_MS,copyToClopboard(t){navigator.clipboard.writeText(t)},getPairingExpiry:()=>Date.now()+o.FOUR_MINUTES_MS,getPlainAddress:t=>t.split(":")[2],wait:async t=>new Promise((e=>{setTimeout(e,t)})),debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),formatNativeUrl(t,e){if(a.isHttpUrl(t))return this.formatUniversalUrl(t,e);let r=t;return r.includes("://")||(r=t.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(e)}`,href:r}},formatUniversalUrl(t,e){if(!a.isHttpUrl(t))return this.formatNativeUrl(t,e);let r=t;return r.endsWith("/")||(r=`${r}/`),{redirect:`${r}wc?uri=${encodeURIComponent(e)}`,href:r}},openHref(t,e){window.open(t,e,"noreferrer noopener")},async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,a.wait(2e3)])},formatBalance(t,e){let r;if("0"===t)r="0.000";else if("string"==typeof t){const e=Number(t);e&&(r=e.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return r?`${r} ${e}`:`0.000 ${e}`},isRestrictedRegion(){try{const{timeZone:t}=(new Intl.DateTimeFormat).resolvedOptions(),e=t.toUpperCase();return o.RESTRICTED_TIMEZONES.includes(e)}catch{return!1}},getApiUrl:()=>a.isRestrictedRegion()?"https://api.web3modal.org":"https://api.web3modal.com",getBlockchainApiUrl:()=>a.isRestrictedRegion()?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com",getAnalyticsUrl:()=>a.isRestrictedRegion()?"https://pulse.walletconnect.org":"https://pulse.walletconnect.com",getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})),parseError:t=>"string"==typeof t?t:"string"==typeof t?.issues?.[0]?.message?t.issues[0].message:t instanceof Error?t.message:"Unknown error"},c=(0,n.sj)({isConnected:!1}),l={state:c,subscribe:t=>(0,n.Ld)(c,(()=>t(c))),subscribeKey:(t,e)=>i(c,t,e),setIsConnected(t){c.isConnected=t},setCaipAddress(t){c.caipAddress=t,c.address=t?a.getPlainAddress(t):void 0},setBalance(t,e){c.balance=t,c.balanceSymbol=e},setProfileName(t){c.profileName=t},setProfileImage(t){c.profileImage=t},setAddressExplorerUrl(t){c.addressExplorerUrl=t},resetAccount(){c.isConnected=!1,c.caipAddress=void 0,c.address=void 0,c.balance=void 0,c.balanceSymbol=void 0,c.profileName=void 0,c.profileImage=void 0,c.addressExplorerUrl=void 0}};class u{constructor({baseUrl:t}){this.baseUrl=t}async get({headers:t,...e}){const r=this.createUrl(e);return(await fetch(r,{method:"GET",headers:t})).json()}async getBlob({headers:t,...e}){const r=this.createUrl(e);return(await fetch(r,{method:"GET",headers:t})).blob()}async post({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"POST",headers:e,body:t?JSON.stringify(t):void 0})).json()}async put({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"PUT",headers:e,body:t?JSON.stringify(t):void 0})).json()}async delete({body:t,headers:e,...r}){const n=this.createUrl(r);return(await fetch(n,{method:"DELETE",headers:e,body:t?JSON.stringify(t):void 0})).json()}createUrl({path:t,params:e}){const r=new URL(t,this.baseUrl);return e&&Object.entries(e).forEach((([t,e])=>{e&&r.searchParams.append(t,e)})),r}}const h="WALLETCONNECT_DEEPLINK_CHOICE",d="@w3m/recent",f="@w3m/connected_wallet_image_url",p="@w3m/connected_connector",m={setWalletConnectDeepLink({href:t,name:e}){try{localStorage.setItem(h,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{const t=localStorage.getItem(h);if(t)return JSON.parse(t)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(h)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(t){try{const e=m.getRecentWallets();e.find((e=>e.id===t.id))||(e.unshift(t),e.length>2&&e.pop(),localStorage.setItem(d,JSON.stringify(e)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{const t=localStorage.getItem(d);return t?JSON.parse(t):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(t){try{localStorage.setItem(f,t)}catch{console.info("Unable to set Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(f)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(t){try{localStorage.setItem(p,t)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(p)}catch{console.info("Unable to get Connected Connector")}}},g=(0,n.sj)({walletImages:{},networkImages:{},connectorImages:{},tokenImages:{}}),y={state:g,subscribeNetworkImages:t=>(0,n.Ld)(g.networkImages,(()=>t(g.networkImages))),subscribeKey:(t,e)=>i(g,t,e),setWalletImage(t,e){g.walletImages[t]=e},setNetworkImage(t,e){g.networkImages[t]=e},setConnectorImage(t,e){g.connectorImages[t]=e},setTokenImage(t,e){g.tokenImages[t]=e}},w=(0,n.sj)({connectors:[]}),b={state:w,subscribeKey:(t,e)=>i(w,t,e),setConnectors(t){w.connectors=t.map((t=>(0,n.iH)(t)))},addConnector(t){w.connectors.push((0,n.iH)(t))},getEmailConnector:()=>w.connectors.find((t=>"EMAIL"===t.type)),getAnnouncedConnectorRdns:()=>w.connectors.filter((t=>"ANNOUNCED"===t.type)).map((t=>t.info?.rdns)),getConnectors:()=>w.connectors},v=(0,n.sj)({open:!1,selectedNetworkId:void 0}),A={state:v,subscribe:t=>(0,n.Ld)(v,(()=>t(v))),set(t){Object.assign(v,{...v,...t})}},E=(0,n.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1}),x={state:E,subscribeKey:(t,e)=>i(E,t,e),_getClient(){if(!E._client)throw new Error("NetworkController client not set");return E._client},setClient(t){E._client=(0,n.iH)(t)},setCaipNetwork(t){E.caipNetwork=t,A.set({selectedNetworkId:t?.id})},setDefaultCaipNetwork(t){E.caipNetwork=t,A.set({selectedNetworkId:t?.id}),E.isDefaultCaipNetwork=!0},setRequestedCaipNetworks(t){E.requestedCaipNetworks=t},async getApprovedCaipNetworksData(){const t=await this._getClient().getApprovedCaipNetworksData();E.supportsAllNetworks=t.supportsAllNetworks,E.approvedCaipNetworkIds=t.approvedCaipNetworkIds},async switchActiveNetwork(t){await this._getClient().switchCaipNetwork(t),E.caipNetwork=t},resetNetwork(){E.isDefaultCaipNetwork||(E.caipNetwork=void 0),E.approvedCaipNetworkIds=void 0,E.supportsAllNetworks=!0}},_=(0,n.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),S={state:_,subscribeKey:(t,e)=>i(_,t,e),setProjectId(t){_.projectId=t},setIncludeWalletIds(t){_.includeWalletIds=t},setExcludeWalletIds(t){_.excludeWalletIds=t},setFeaturedWalletIds(t){_.featuredWalletIds=t},setTokens(t){_.tokens=t},setTermsConditionsUrl(t){_.termsConditionsUrl=t},setPrivacyPolicyUrl(t){_.privacyPolicyUrl=t},setCustomWallets(t){_.customWallets=t},setEnableAnalytics(t){_.enableAnalytics=t},setSdkVersion(t){_.sdkVersion=t},setMetadata(t){_.metadata=t}},M=new u({baseUrl:a.getApiUrl()}),C=(0,n.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[]}),k={state:C,subscribeKey:(t,e)=>i(C,t,e),_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:r}=S.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":r}},async _fetchWalletImage(t){const e=`${M.baseUrl}/getWalletImage/${t}`,r=await M.getBlob({path:e,headers:k._getApiHeaders()});y.setWalletImage(t,URL.createObjectURL(r))},async _fetchNetworkImage(t){const e=`${M.baseUrl}/public/getAssetImage/${t}`,r=await M.getBlob({path:e,headers:k._getApiHeaders()});y.setNetworkImage(t,URL.createObjectURL(r))},async _fetchConnectorImage(t){const e=`${M.baseUrl}/public/getAssetImage/${t}`,r=await M.getBlob({path:e,headers:k._getApiHeaders()});y.setConnectorImage(t,URL.createObjectURL(r))},async fetchNetworkImages(){const{requestedCaipNetworks:t}=x.state,e=t?.map((({imageId:t})=>t)).filter(Boolean);e&&await Promise.allSettled(e.map((t=>k._fetchNetworkImage(t))))},async fetchConnectorImages(){const{connectors:t}=b.state,e=t.map((({imageId:t})=>t)).filter(Boolean);await Promise.allSettled(e.map((t=>k._fetchConnectorImage(t))))},async fetchFeaturedWallets(){const{featuredWalletIds:t}=S.state;if(t?.length){const{data:e}=await M.get({path:"/getWallets",headers:k._getApiHeaders(),params:{page:"1",entries:t?.length?String(t.length):"4",include:t?.join(",")}});e.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id)));const r=e.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled(r.map((t=>k._fetchWalletImage(t)))),C.featured=e}},async fetchRecommendedWallets(){const{includeWalletIds:t,excludeWalletIds:e,featuredWalletIds:r}=S.state,n=[...e??[],...r??[]].filter(Boolean),{data:i,count:s}=await M.get({path:"/getWallets",headers:k._getApiHeaders(),params:{page:"1",entries:"4",include:t?.join(","),exclude:n?.join(",")}}),o=m.getRecentWallets(),a=i.map((t=>t.image_id)).filter(Boolean),c=o.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...a,...c].map((t=>k._fetchWalletImage(t)))),C.recommended=i,C.count=s??0},async fetchWallets({page:t}){const{includeWalletIds:e,excludeWalletIds:r,featuredWalletIds:n}=S.state,i=[...C.recommended.map((({id:t})=>t)),...r??[],...n??[]].filter(Boolean),{data:s,count:o}=await M.get({path:"/getWallets",headers:k._getApiHeaders(),params:{page:String(t),entries:"40",include:e?.join(","),exclude:i.join(",")}}),c=s.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...c.map((t=>k._fetchWalletImage(t))),a.wait(300)]),C.wallets=[...C.wallets,...s],C.count=o>C.count?o:C.count,C.page=t},async searchWallet({search:t}){const{includeWalletIds:e,excludeWalletIds:r}=S.state;C.search=[];const{data:n}=await M.get({path:"/getWallets",headers:k._getApiHeaders(),params:{page:"1",entries:"100",search:t,include:e?.join(","),exclude:r?.join(",")}}),i=n.map((t=>t.image_id)).filter(Boolean);await Promise.allSettled([...i.map((t=>k._fetchWalletImage(t))),a.wait(300)]),C.search=n},prefetch(){C.prefetchPromise=Promise.race([Promise.allSettled([k.fetchFeaturedWallets(),k.fetchRecommendedWallets(),k.fetchNetworkImages(),k.fetchConnectorImages()]),a.wait(3e3)])}},I=new u({baseUrl:a.getAnalyticsUrl()}),P=["MODAL_CREATED"],O=(0,n.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),N={state:O,subscribe:t=>(0,n.Ld)(O,(()=>t(O))),_getApiHeaders(){const{projectId:t,sdkType:e,sdkVersion:r}=S.state;return{"x-project-id":t,"x-sdk-type":e,"x-sdk-version":r}},async _sendAnalyticsEvent(t){try{if(P.includes(t.data.event)||"undefined"==typeof window)return;await I.post({path:"/e",headers:N._getApiHeaders(),body:{eventId:a.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:t.timestamp,props:t.data}})}catch{}},sendEvent(t){O.timestamp=Date.now(),O.data=t,S.state.enableAnalytics&&N._sendAnalyticsEvent(O)}},T=(0,n.sj)({view:"Connect",history:["Connect"]}),R={state:T,subscribeKey:(t,e)=>i(T,t,e),push(t,e){t!==T.view&&(T.view=t,T.history.push(t),T.data=e)},reset(t){T.view=t,T.history=[t]},replace(t,e){T.history.length>1&&T.history.at(-1)!==t&&(T.view=t,T.history[T.history.length-1]=t,T.data=e)},goBack(){if(T.history.length>1){T.history.pop();const[t]=T.history.slice(-1);t&&(T.view=t)}},goBackToIndex(t){if(T.history.length>1){T.history=T.history.slice(0,t+1);const[e]=T.history.slice(-1);e&&(T.view=e)}}},B=(0,n.sj)({loading:!1,open:!1}),L={state:B,subscribe:t=>(0,n.Ld)(B,(()=>t(B))),subscribeKey:(t,e)=>i(B,t,e),async open(t){await k.state.prefetchPromise,t?.view?R.reset(t.view):l.state.isConnected?R.reset("Account"):R.reset("Connect"),B.open=!0,A.set({open:!0}),N.sendEvent({type:"track",event:"MODAL_OPEN"})},close(){B.open=!1,A.set({open:!1}),N.sendEvent({type:"track",event:"MODAL_CLOSE"})},setLoading(t){B.loading=t}},U=new u({baseUrl:a.getBlockchainApiUrl()}),j={fetchIdentity:({caipChainId:t,address:e})=>U.get({path:`/v1/identity/${e}`,params:{chainId:t,projectId:S.state.projectId}}),fetchTransactions({account:t,projectId:e,cursor:r}){const n=r?{cursor:r}:{};return U.get({path:`/v1/account/${t}/history?projectId=${e}`,params:n})}},D=(0,n.sj)({message:"",variant:"success",open:!1}),F={state:D,subscribeKey:(t,e)=>i(D,t,e),showSuccess(t){D.message=t,D.variant="success",D.open=!0},showError(t){const e=a.parseError(t);D.message=e,D.variant="error",D.open=!0},hide(){D.open=!1}},z=(0,n.sj)({transactions:[],transactionsByYear:{},loading:!1,empty:!1,next:void 0}),H={state:z,subscribe:t=>(0,n.Ld)(z,(()=>t(z))),async fetchTransactions(t){const{projectId:e}=S.state;if(!e||!t)throw new Error("Transactions can't be fetched without a projectId and an accountAddress");z.loading=!0;try{const r=await j.fetchTransactions({account:t,projectId:e,cursor:z.next}),n=this.filterSpamTransactions(r.data),i=[...z.transactions,...n];z.loading=!1,z.transactions=i,z.transactionsByYear=this.groupTransactionsByYear(z.transactionsByYear,n),z.empty=0===i.length,z.next=r.next?r.next:void 0}catch(r){N.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:t,projectId:e,cursor:z.next}}),F.showError("Failed to fetch transactions"),z.loading=!1,z.empty=!0}},groupTransactionsByYear(t={},e=[]){const r=t;return e.forEach((t=>{const e=new Date(t.metadata.minedAt).getFullYear();r[e]||(r[e]=[]),r[e]?.push(t)})),r},filterSpamTransactions:t=>t.filter((t=>!t.transfers.every((t=>!0===t.nft_info?.flags.is_spam)))),resetTransactions(){z.transactions=[],z.transactionsByYear={},z.loading=!1,z.empty=!1,z.next=void 0}},$=(0,n.sj)({wcError:!1,buffering:!1}),q={state:$,subscribeKey:(t,e)=>i($,t,e),_getClient(){if(!$._client)throw new Error("ConnectionController client not set");return $._client},setClient(t){$._client=(0,n.iH)(t)},connectWalletConnect(){$.wcPromise=this._getClient().connectWalletConnect((t=>{$.wcUri=t,$.wcPairingExpiry=a.getPairingExpiry()}))},async connectExternal(t){await(this._getClient().connectExternal?.(t)),m.setConnectedConnector(t.type)},async signMessage(t){return this._getClient().signMessage(t)},checkInstalled(t){return this._getClient().checkInstalled?.(t)},resetWcConnection(){$.wcUri=void 0,$.wcPairingExpiry=void 0,$.wcPromise=void 0,$.wcLinking=void 0,$.recentWallet=void 0,H.resetTransactions(),m.deleteWalletConnectDeepLink()},setWcLinking(t){$.wcLinking=t},setWcError(t){$.wcError=t,$.buffering=!1},setRecentWallet(t){$.recentWallet=t},setBuffering(t){$.buffering=t},async disconnect(){await this._getClient().disconnect(),this.resetWcConnection()}},W=(0,n.sj)({status:"uninitialized",isSiweEnabled:!1}),V={state:W,subscribeKey:(t,e)=>i(W,t,e),subscribe:t=>(0,n.Ld)(W,(()=>t(W))),_getClient(){if(!W._client)throw new Error("SIWEController client not set");return W._client},async getNonce(){const t=this._getClient(),e=await t.getNonce();return this.setNonce(e),e},async getSession(){const t=this._getClient(),e=await t.getSession();return e&&(this.setSession(e),this.setStatus("success")),e},createMessage(t){const e=this._getClient().createMessage(t);return this.setMessage(e),e},async verifyMessage(t){const e=this._getClient();return await e.verifyMessage(t)},async signIn(){const t=this._getClient();return await t.signIn()},async signOut(){const t=this._getClient();await t.signOut(),this.setStatus("ready"),t.onSignOut?.()},onSignIn(t){this._getClient().onSignIn?.(t)},onSignOut(){this._getClient().onSignOut?.()},setSIWEClient(t){W._client=(0,n.iH)(t),W.status="ready",W.isSiweEnabled=t.options.enabled},setNonce(t){W.nonce=t},setStatus(t){W.status=t},setMessage(t){W.message=t},setSession(t){W.session=t}},G=(0,n.sj)({themeMode:"dark",themeVariables:{}}),K={state:G,subscribe:t=>(0,n.Ld)(G,(()=>t(G))),setThemeMode(t){G.themeMode=t},setThemeVariables(t){G.themeVariables={...G.themeVariables,...t}},getSnapshot:()=>(0,n.CO)(G)},Z={getWalletImage:t=>t?.image_url?t?.image_url:t?.image_id?y.state.walletImages[t.image_id]:void 0,getNetworkImage:t=>t?.imageUrl?t?.imageUrl:t?.imageId?y.state.networkImages[t.imageId]:void 0,getConnectorImage:t=>t?.imageUrl?t.imageUrl:t?.imageId?y.state.connectorImages[t.imageId]:void 0},Q={goBackOrCloseModal(){R.state.history.length>1?R.goBack():L.close()},navigateAfterNetworkSwitch(){const{history:t}=R.state,e=t.findIndex((t=>"Networks"===t));e>=1?R.goBackToIndex(e-1):L.close()}}},96541:(t,e,r)=>{"use strict";r.r(e),r.d(e,{W3mModal:()=>u});var n=r(95909),i=r(31123),s=r(74666),o=r(2927);const a=s.iv` :host { z-index: var(--w3m-z-index); display: block; @@ -86,7 +86,7 @@ - `:null}async onOverlayClick(t){t.target===t.currentTarget&&await this.handleClose()}async handleClose(){this.isSiweEnabled&&"success"!==n.yD.state.status&&await n.ConnectionController.disconnect(),n.IN.close()}initializeTheming(){const{themeVariables:t,themeMode:e}=n.ThemeController.state,r=i.UiHelperUtil.getColorTheme(e);(0,i.initializeTheming)(t,r)}async onClose(){this.onScrollUnlock(),await this.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,n.SnackController.hide(),this.open=!1,this.onRemoveKeyboardListener()}async onOpen(){this.onScrollLock(),this.open=!0,await this.animate([{opacity:0},{opacity:1}],{duration:200,easing:"ease",fill:"forwards",delay:300}).finished,this.onAddKeyboardListener()}onScrollLock(){const t=document.createElement("style");t.dataset.w3m=l,t.textContent="\n html, body {\n touch-action: none;\n overflow: hidden;\n overscroll-behavior: contain;\n }\n w3m-modal {\n pointer-events: auto;\n }\n ",document.head.appendChild(t)}onScrollUnlock(){const t=document.head.querySelector(`style[data-w3m="${l}"]`);t&&t.remove()}onAddKeyboardListener(){this.abortController=new AbortController;const t=this.shadowRoot?.querySelector("wui-card");t?.focus(),window.addEventListener("keydown",(e=>{if("Escape"===e.key)this.handleClose();else if("Tab"===e.key){const{tagName:r}=e.target;!r||r.includes("W3M-")||r.includes("WUI-")||t?.focus()}}),this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAccountState(t){const{isConnected:e,caipAddress:r}=t;if(this.isSiweEnabled){e&&!this.caipAddress&&(this.caipAddress=r),e&&r&&this.caipAddress!==r&&(await n.yD.signOut(),this.onSiweNavigation(),this.caipAddress=r);try{const t=await n.yD.getSession();t&&!e?await n.yD.signOut():e&&!t&&this.onSiweNavigation()}catch(t){e&&this.onSiweNavigation()}}}onSiweNavigation(){this.open?n.RouterController.push("ConnectingSiwe"):n.IN.open({view:"ConnectingSiwe"})}};u.styles=a,c([(0,o.SB)()],u.prototype,"open",void 0),c([(0,o.SB)()],u.prototype,"caipAddress",void 0),c([(0,o.SB)()],u.prototype,"isSiweEnabled",void 0),u=c([(0,i.customElement)("w3m-modal")],u)},48247:(t,e,r)=>{"use strict";r.d(e,{fl:()=>A,iv:()=>c,Ts:()=>E,Qu:()=>x});const n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t,{is:u,defineProperty:h,getOwnPropertyDescriptor:d,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:m}=Object,g=globalThis,y=g.trustedTypes,w=y?y.emptyScript:"",b=g.reactiveElementPolyfillSupport,v=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},x=(t,e)=>!u(t,e),_={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&h(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return n?.call(this)},set(e){const s=n?.call(this);i.call(this,e),this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...p(t),...f(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:E).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=n,this[n]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,i){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??x)(n?i:this[t],e))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[v("elementProperties")]=new Map,A[v("finalized")]=new Map,b?.({ReactiveElement:A}),(g.reactiveElementVersions??=[]).push("2.0.2")},88382:(t,e,r)=>{"use strict";r.d(e,{Jb:()=>k,Ld:()=>S,_$LH:()=>$,dy:()=>A,sY:()=>F});const n=globalThis,i=n.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",a=`lit$${(Math.random()+"").slice(9)}$`,c="?"+a,l=`<${c}>`,u=document,h=()=>u.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,p=Array.isArray,f=t=>p(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,w=/>/g,b=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,E=/"/g,x=/^(?:script|style|textarea|title)$/i,_=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),A=_(1),k=(_(2),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),C=new WeakMap,M=u.createTreeWalker(u,129);function I(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const P=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",c=g;for(let e=0;e"===h[0]?(c=i??g,d=-1):void 0===h[1]?d=-2:(d=c.lastIndex-h[2].length,u=h[1],c=void 0===h[3]?b:'"'===h[3]?E:v):c===E||c===v?c=b:c===y||c===w?c=g:(c=b,i=void 0);const f=c===b&&t[e+1].startsWith("/>")?" ":"";s+=c===g?r+l:d>=0?(n.push(u),r.slice(0,d)+o+r.slice(d)+a+f):r+a+(-2===d?e:f)}return[I(t,s+(t[r]||"")+(2===e?"":"")),n]};class O{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,l=0;const u=t.length-1,d=this.parts,[p,f]=P(t,e);if(this.el=O.createElement(p,r),M.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=M.nextNode())&&d.length0){n.textContent=i?i.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=S}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=T(this,t,e,0),s=!d(t)||t!==this._$AH&&t!==k,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new R(e.insertBefore(h(),t),t,void 0,r??{})}return i._$AI(t),i}},2927:(t,e,r)=>{"use strict";r.d(e,{Cb:()=>o,SB:()=>a});var n=r(48247);const i={attribute:!0,type:String,converter:n.Ts,reflect:!1,hasChanged:n.Qu},s=(t=i,e,r)=>{const{kind:n,metadata:s}=r;let o=globalThis.litPropertyMetadata.get(s);if(void 0===o&&globalThis.litPropertyMetadata.set(s,o=new Map),o.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function o(t){return(e,r)=>"object"==typeof r?s(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,n?{...t,wrapped:!0}:t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}function a(t){return o({...t,state:!0,attribute:!1})}},74666:(t,e,r)=>{"use strict";r.d(e,{oi:()=>s,iv:()=>n.iv,dy:()=>i.dy});var n=r(48247),i=r(88382);class s extends n.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,i.sY)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.Jb}}s._$litElement$=!0,s.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:s}),(0,globalThis.litElementPolyfillSupport)?.({LitElement:s}),(globalThis.litElementVersions??=[]).push("4.0.2")},31123:(t,e,r)=>{"use strict";r.r(e),r.d(e,{TransactionUtil:()=>Ji,UiHelperUtil:()=>fr,WuiAccountButton:()=>Sr,WuiAllWalletsImage:()=>Tr,WuiAvatar:()=>vr,WuiButton:()=>Br,WuiCard:()=>At,WuiCardSelect:()=>Vr,WuiCardSelectLoader:()=>Dr,WuiChip:()=>Zr,WuiConnectButton:()=>Yr,WuiCtaButton:()=>en,WuiEmailInput:()=>vn,WuiFlex:()=>yr,WuiGrid:()=>Hi,WuiIcon:()=>Ie,WuiIconBox:()=>_r,WuiIconLink:()=>_n,WuiImage:()=>Te,WuiInputElement:()=>Sn,WuiInputNumeric:()=>In,WuiInputText:()=>yn,WuiLink:()=>Tn,WuiListAccordion:()=>Ri,WuiListContent:()=>Li,WuiListItem:()=>Bn,WuiListWallet:()=>Jn,WuiListWalletTransaction:()=>$i,WuiLoadingHexagon:()=>Re,WuiLoadingSpinner:()=>Le,WuiLoadingThumbnail:()=>$e,WuiLogo:()=>Xn,WuiLogoSelect:()=>ri,WuiNetworkButton:()=>si,WuiNetworkImage:()=>Hr,WuiNoticeCard:()=>Oi,WuiOtp:()=>ci,WuiQrCode:()=>fi,WuiSearchBar:()=>gi,WuiSeparator:()=>Vi,WuiShimmer:()=>He,WuiSnackbar:()=>bi,WuiTabs:()=>xi,WuiTag:()=>Gn,WuiText:()=>Ze,WuiTooltip:()=>ki,WuiTransactionListItem:()=>zn,WuiTransactionListItemLoader:()=>Wn,WuiTransactionVisual:()=>Dn,WuiVisual:()=>dr,WuiVisualThumbnail:()=>Mi,WuiWalletImage:()=>Ir,customElement:()=>xt,initializeTheming:()=>mt,setColorTheme:()=>gt,setThemeVariables:()=>yt});const n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,s),l=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},u=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return c(e)})(t):t,{is:h,defineProperty:d,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,w=y.trustedTypes,b=w?w.emptyScript:"",v=y.reactiveElementPolyfillSupport,E=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},_=(t,e)=>!h(t,e),A={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class k extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&d(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return n?.call(this)},set(e){const s=n?.call(this);i.call(this,e),this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??A}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:x).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=n,this[n]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,i){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??_)(n?i:this[t],e))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[E("elementProperties")]=new Map,k[E("finalized")]=new Map,v?.({ReactiveElement:k}),(y.reactiveElementVersions??=[]).push("2.0.2");const S=globalThis,C=S.trustedTypes,M=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,O="?"+P,T=`<${O}>`,N=document,R=()=>N.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,L=t=>j(t)||"function"==typeof t?.[Symbol.iterator],U="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,F=/>/g,z=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,W=/"/g,q=/^(?:script|style|textarea|title)$/i,V=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),G=V(1),K=V(2),Z=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,Y=N.createTreeWalker(N,129);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==M?M.createHTML(e):e}const tt=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=D;for(let e=0;e"===c[0]?(o=i??D,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?z:'"'===c[3]?W:H):o===W||o===H?o=z:o===$||o===F?o=D:(o=z,i=void 0);const h=o===z&&t[e+1].startsWith("/>")?" ":"";s+=o===D?r+T:l>=0?(n.push(a),r.slice(0,l)+I+r.slice(l)+P+h):r+P+(-2===l?e:h)}return[X(t,s+(t[r]||"")+(2===e?"":"")),n]};class et{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=tt(t,e);if(this.el=et.createElement(c,r),Y.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=C?C.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=rt(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==Z,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new it(e.insertBefore(R(),t),t,void 0,r??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}}let dt,pt,ft;function mt(t,e){dt=document.createElement("style"),pt=document.createElement("style"),ft=document.createElement("style"),dt.textContent=wt(t).core.cssText,pt.textContent=wt(t).dark.cssText,ft.textContent=wt(t).light.cssText,document.head.appendChild(dt),document.head.appendChild(pt),document.head.appendChild(ft),gt(e)}function gt(t){pt&&ft&&("light"===t?(pt.removeAttribute("media"),ft.media="enabled"):(ft.removeAttribute("media"),pt.media="enabled"))}function yt(t){dt&&pt&&ft&&(dt.textContent=wt(t).core.cssText,pt.textContent=wt(t).dark.cssText,ft.textContent=wt(t).light.cssText)}function wt(t){return{core:l` + `:null}async onOverlayClick(t){t.target===t.currentTarget&&await this.handleClose()}async handleClose(){this.isSiweEnabled&&"success"!==n.yD.state.status&&await n.ConnectionController.disconnect(),n.IN.close()}initializeTheming(){const{themeVariables:t,themeMode:e}=n.ThemeController.state,r=i.UiHelperUtil.getColorTheme(e);(0,i.initializeTheming)(t,r)}async onClose(){this.onScrollUnlock(),await this.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,n.SnackController.hide(),this.open=!1,this.onRemoveKeyboardListener()}async onOpen(){this.onScrollLock(),this.open=!0,await this.animate([{opacity:0},{opacity:1}],{duration:200,easing:"ease",fill:"forwards",delay:300}).finished,this.onAddKeyboardListener()}onScrollLock(){const t=document.createElement("style");t.dataset.w3m=l,t.textContent="\n html, body {\n touch-action: none;\n overflow: hidden;\n overscroll-behavior: contain;\n }\n w3m-modal {\n pointer-events: auto;\n }\n ",document.head.appendChild(t)}onScrollUnlock(){const t=document.head.querySelector(`style[data-w3m="${l}"]`);t&&t.remove()}onAddKeyboardListener(){this.abortController=new AbortController;const t=this.shadowRoot?.querySelector("wui-card");t?.focus(),window.addEventListener("keydown",(e=>{if("Escape"===e.key)this.handleClose();else if("Tab"===e.key){const{tagName:r}=e.target;!r||r.includes("W3M-")||r.includes("WUI-")||t?.focus()}}),this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAccountState(t){const{isConnected:e,caipAddress:r}=t;if(this.isSiweEnabled){e&&!this.caipAddress&&(this.caipAddress=r),e&&r&&this.caipAddress!==r&&(await n.yD.signOut(),this.onSiweNavigation(),this.caipAddress=r);try{const t=await n.yD.getSession();t&&!e?await n.yD.signOut():e&&!t&&this.onSiweNavigation()}catch(t){e&&this.onSiweNavigation()}}}onSiweNavigation(){this.open?n.RouterController.push("ConnectingSiwe"):n.IN.open({view:"ConnectingSiwe"})}};u.styles=a,c([(0,o.SB)()],u.prototype,"open",void 0),c([(0,o.SB)()],u.prototype,"caipAddress",void 0),c([(0,o.SB)()],u.prototype,"isSiweEnabled",void 0),u=c([(0,i.customElement)("w3m-modal")],u)},48247:(t,e,r)=>{"use strict";r.d(e,{fl:()=>_,iv:()=>c,Ts:()=>A,Qu:()=>E});const n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t,{is:u,defineProperty:h,getOwnPropertyDescriptor:d,getOwnPropertyNames:f,getOwnPropertySymbols:p,getPrototypeOf:m}=Object,g=globalThis,y=g.trustedTypes,w=y?y.emptyScript:"",b=g.reactiveElementPolyfillSupport,v=(t,e)=>t,A={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},E=(t,e)=>!u(t,e),x={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:E};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&h(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return n?.call(this)},set(e){const s=n?.call(this);i.call(this,e),this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??x}static _$Ei(){if(this.hasOwnProperty(v("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(v("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(v("properties"))){const t=this.properties,e=[...f(t),...p(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:A).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:A;this._$Em=n,this[n]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,i){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??E)(n?i:this[t],e))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[v("elementProperties")]=new Map,_[v("finalized")]=new Map,b?.({ReactiveElement:_}),(g.reactiveElementVersions??=[]).push("2.0.2")},88382:(t,e,r)=>{"use strict";r.d(e,{Jb:()=>S,Ld:()=>M,_$LH:()=>F,dy:()=>_,sY:()=>z});const n=globalThis,i=n.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",a=`lit$${(Math.random()+"").slice(9)}$`,c="?"+a,l=`<${c}>`,u=document,h=()=>u.createComment(""),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,p=t=>f(t)||"function"==typeof t?.[Symbol.iterator],m="[ \t\n\f\r]",g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,w=/>/g,b=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,A=/"/g,E=/^(?:script|style|textarea|title)$/i,x=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_=x(1),S=(x(2),Symbol.for("lit-noChange")),M=Symbol.for("lit-nothing"),C=new WeakMap,k=u.createTreeWalker(u,129);function I(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const P=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",c=g;for(let e=0;e"===h[0]?(c=i??g,d=-1):void 0===h[1]?d=-2:(d=c.lastIndex-h[2].length,u=h[1],c=void 0===h[3]?b:'"'===h[3]?A:v):c===A||c===v?c=b:c===y||c===w?c=g:(c=b,i=void 0);const p=c===b&&t[e+1].startsWith("/>")?" ":"";s+=c===g?r+l:d>=0?(n.push(u),r.slice(0,d)+o+r.slice(d)+a+p):r+a+(-2===d?e:p)}return[I(t,s+(t[r]||"")+(2===e?"":"")),n]};class O{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let s=0,l=0;const u=t.length-1,d=this.parts,[f,p]=P(t,e);if(this.el=O.createElement(f,r),k.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=k.nextNode())&&d.length0){n.textContent=i?i.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=M}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=N(this,t,e,0),s=!d(t)||t!==this._$AH&&t!==S,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new R(e.insertBefore(h(),t),t,void 0,r??{})}return i._$AI(t),i}},2927:(t,e,r)=>{"use strict";r.d(e,{Cb:()=>o,SB:()=>a});var n=r(48247);const i={attribute:!0,type:String,converter:n.Ts,reflect:!1,hasChanged:n.Qu},s=(t=i,e,r)=>{const{kind:n,metadata:s}=r;let o=globalThis.litPropertyMetadata.get(s);if(void 0===o&&globalThis.litPropertyMetadata.set(s,o=new Map),o.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function o(t){return(e,r)=>"object"==typeof r?s(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,n?{...t,wrapped:!0}:t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}function a(t){return o({...t,state:!0,attribute:!1})}},74666:(t,e,r)=>{"use strict";r.d(e,{oi:()=>s,iv:()=>n.iv,dy:()=>i.dy});var n=r(48247),i=r(88382);class s extends n.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,i.sY)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.Jb}}s._$litElement$=!0,s.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:s}),(0,globalThis.litElementPolyfillSupport)?.({LitElement:s}),(globalThis.litElementVersions??=[]).push("4.0.2")},31123:(t,e,r)=>{"use strict";r.r(e),r.d(e,{TransactionUtil:()=>Qi,UiHelperUtil:()=>pr,WuiAccountButton:()=>Mr,WuiAllWalletsImage:()=>Nr,WuiAvatar:()=>vr,WuiButton:()=>Br,WuiCard:()=>_t,WuiCardSelect:()=>Vr,WuiCardSelectLoader:()=>Dr,WuiChip:()=>Zr,WuiConnectButton:()=>Yr,WuiCtaButton:()=>en,WuiEmailInput:()=>vn,WuiFlex:()=>yr,WuiGrid:()=>$i,WuiIcon:()=>Ie,WuiIconBox:()=>xr,WuiIconLink:()=>xn,WuiImage:()=>Ne,WuiInputElement:()=>Mn,WuiInputNumeric:()=>In,WuiInputText:()=>yn,WuiLink:()=>Nn,WuiListAccordion:()=>Ri,WuiListContent:()=>Ui,WuiListItem:()=>Bn,WuiListWallet:()=>Qn,WuiListWalletTransaction:()=>Fi,WuiLoadingHexagon:()=>Re,WuiLoadingSpinner:()=>Ue,WuiLoadingThumbnail:()=>Fe,WuiLogo:()=>Xn,WuiLogoSelect:()=>ri,WuiNetworkButton:()=>si,WuiNetworkImage:()=>$r,WuiNoticeCard:()=>Oi,WuiOtp:()=>ci,WuiQrCode:()=>pi,WuiSearchBar:()=>gi,WuiSeparator:()=>Vi,WuiShimmer:()=>$e,WuiSnackbar:()=>bi,WuiTabs:()=>Ei,WuiTag:()=>Gn,WuiText:()=>Ze,WuiTooltip:()=>Si,WuiTransactionListItem:()=>Hn,WuiTransactionListItemLoader:()=>qn,WuiTransactionVisual:()=>Dn,WuiVisual:()=>dr,WuiVisualThumbnail:()=>ki,WuiWalletImage:()=>Ir,customElement:()=>Et,initializeTheming:()=>mt,setColorTheme:()=>gt,setThemeVariables:()=>yt});const n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=t=>new a("string"==typeof t?t:t+"",void 0,s),l=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},u=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return c(e)})(t):t,{is:h,defineProperty:d,getOwnPropertyDescriptor:f,getOwnPropertyNames:p,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,y=globalThis,w=y.trustedTypes,b=w?w.emptyScript:"",v=y.reactiveElementPolyfillSupport,A=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},x=(t,e)=>!h(t,e),_={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(t,r,e);void 0!==n&&d(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){const{get:n,set:i}=f(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return n?.call(this)},set(e){const s=n?.call(this);i.call(this,e),this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_}static _$Ei(){if(this.hasOwnProperty(A("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(A("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(A("properties"))){const t=this.properties,e=[...p(t),...m(t)];for(const r of e)this.createProperty(r,t[r])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const r=this._$Eu(t,e);void 0!==r&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Eu(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=r.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){const r=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:E).toAttribute(e,r.type);this._$Em=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){const r=this.constructor,n=r._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=r.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=n,this[n]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,r,n=!1,i){if(void 0!==t){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??x)(n?i:this[t],e))return;this.C(t,e,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,r]of t)!0!==r.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],r)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[A("elementProperties")]=new Map,S[A("finalized")]=new Map,v?.({ReactiveElement:S}),(y.reactiveElementVersions??=[]).push("2.0.2");const M=globalThis,C=M.trustedTypes,k=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,O="?"+P,N=`<${O}>`,T=document,R=()=>T.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,U=t=>L(t)||"function"==typeof t?.[Symbol.iterator],j="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,z=/>/g,H=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$=/'/g,q=/"/g,W=/^(?:script|style|textarea|title)$/i,V=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),G=V(1),K=V(2),Z=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),J=new WeakMap,Y=T.createTreeWalker(T,129);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==k?k.createHTML(e):e}const tt=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=D;for(let e=0;e"===c[0]?(o=i??D,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?H:'"'===c[3]?q:$):o===q||o===$?o=H:o===F||o===z?o=D:(o=H,i=void 0);const h=o===H&&t[e+1].startsWith("/>")?" ":"";s+=o===D?r+N:l>=0?(n.push(a),r.slice(0,l)+I+r.slice(l)+P+h):r+P+(-2===l?e:h)}return[X(t,s+(t[r]||"")+(2===e?"":"")),n]};class et{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=tt(t,e);if(this.el=et.createElement(c,r),Y.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=Y.nextNode())&&a.length0){n.textContent=C?C.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Q}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=rt(this,t,e,0),s=!B(t)||t!==this._$AH&&t!==Z,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{const n=r?.renderBefore??e;let i=n._$litPart$;if(void 0===i){const t=r?.renderBefore??null;n._$litPart$=i=new it(e.insertBefore(R(),t),t,void 0,r??{})}return i._$AI(t),i})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Z}}let dt,ft,pt;function mt(t,e){dt=document.createElement("style"),ft=document.createElement("style"),pt=document.createElement("style"),dt.textContent=wt(t).core.cssText,ft.textContent=wt(t).dark.cssText,pt.textContent=wt(t).light.cssText,document.head.appendChild(dt),document.head.appendChild(ft),document.head.appendChild(pt),gt(e)}function gt(t){ft&&pt&&("light"===t?(ft.removeAttribute("media"),pt.media="enabled"):(pt.removeAttribute("media"),ft.media="enabled"))}function yt(t){dt&&ft&&pt&&(dt.textContent=wt(t).core.cssText,ft.textContent=wt(t).dark.cssText,pt.textContent=wt(t).light.cssText)}function wt(t){return{core:l` @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); :root { --w3m-color-mix-strength: ${c(t?.["--w3m-color-mix-strength"]?`${t["--w3m-color-mix-strength"]}%`:"0%")}; @@ -756,7 +756,7 @@ outline: none; appearance: none; } -`,Et=l` +`,At=l` .wui-color-inherit { color: var(--wui-color-inherit); } @@ -828,7 +828,7 @@ .wui-bg-color-fg-300 { background-color: var(--wui-color-fg-300); } -`;function xt(t){return function(e){return"function"==typeof e?function(t,e){return customElements.get(t)||customElements.define(t,e),e}(t,e):function(t,e){const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.get(t)||customElements.define(t,e)}}}(t,e)}}const _t=l` +`;function Et(t){return function(e){return"function"==typeof e?function(t,e){return customElements.get(t)||customElements.define(t,e),e}(t,e):function(t,e){const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.get(t)||customElements.define(t,e)}}}(t,e)}}const xt=l` :host { display: block; border-radius: clamp(0px, var(--wui-border-radius-l), 44px); @@ -836,7 +836,7 @@ background-color: var(--wui-color-modal-bg); overflow: hidden; } -`;let At=class extends ht{render(){return G``}};At.styles=[bt,_t],At=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([xt("wui-card")],At);const kt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:_},St=(t=kt,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function Ct(t){return(e,r)=>"object"==typeof r?St(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,n?{...t,wrapped:!0}:t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}function Mt(t){return Ct({...t,state:!0,attribute:!1})}const It=l` +`;let _t=class extends ht{render(){return G``}};_t.styles=[bt,xt],_t=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([Et("wui-card")],_t);const St={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:x},Mt=(t=St,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),"accessor"===n){const{name:n}=r;return{set(r){const i=e.get.call(this);e.set.call(this,r),this.requestUpdate(n,i,t)},init(e){return void 0!==e&&this.C(n,void 0,t),e}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];e.call(this,r),this.requestUpdate(n,i,t)}}throw Error("Unsupported decorator location: "+n)};function Ct(t){return(e,r)=>"object"==typeof r?Mt(t,e,r):((t,e,r)=>{const n=e.hasOwnProperty(r);return e.constructor.createProperty(r,n?{...t,wrapped:!0}:t),n?Object.getOwnPropertyDescriptor(e,r):void 0})(t,e,r)}function kt(t){return Ct({...t,state:!0,attribute:!1})}const It=l` :host { display: flex; aspect-ratio: 1 / 1; @@ -871,7 +871,7 @@ -`,Tt=K` +`,Nt=K` @@ -888,7 +888,7 @@ -`,Nt=K` +`,Tt=K` -`,jt=K` +`,Lt=K` -`,Lt=K` +`,Ut=K` -`,Ut=K` +`,jt=K` -`,$t=K` +`,Ft=K` -`,Ft=K` +`,zt=K` -`,zt=K` +`,Ht=K` -`,Ht=K` +`,$t=K` -`,Wt=K` +`,qt=K` -`,qt=K` +`,Wt=K` `,Zt=K` -`,Jt=K` +`,Qt=K` -`,Qt=K` +`,Jt=K` -`,pe=K` `,fe=K` -`,fe=K` +`,pe=K` - `,Ee=K` + `,Ae=K` @@ -1357,7 +1357,7 @@ -`,xe=K` +`,Ee=K` @@ -1371,26 +1371,26 @@ -`,_e=K` +`,xe=K` -`,Ae=K` +`,_e=K` -`,ke=K` +`,Se=K` -`,Se=K` +`,Me=K` -`;var Ce=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const Me={allWallets:Pt,appStore:Ot,chromeStore:Ht,apple:Tt,arrowBottom:Nt,arrowLeft:Rt,arrowRight:Bt,arrowTop:jt,browser:Lt,checkmark:Ut,chevronBottom:Dt,chevronLeft:$t,chevronRight:Ft,chevronTop:zt,clock:Wt,close:qt,compass:Gt,coinPlaceholder:Vt,copy:Kt,cursor:Zt,desktop:Jt,disconnect:Qt,discord:Yt,etherscan:Xt,extension:te,externalLink:ee,facebook:re,filters:ne,github:ie,google:se,helpCircle:oe,infoCircle:ae,mail:ce,mobile:le,networkPlaceholder:ue,nftPlaceholder:he,off:de,playStore:pe,qrCode:fe,refresh:me,search:ge,swapHorizontal:ye,swapHorizontalBold:we,swapVertical:be,telegram:ve,twitch:Ee,twitter:xe,twitterIcon:_e,verify:Ae,verifyFilled:ke,wallet:K` +`;var Ce=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const ke={allWallets:Pt,appStore:Ot,chromeStore:$t,apple:Nt,arrowBottom:Tt,arrowLeft:Rt,arrowRight:Bt,arrowTop:Lt,browser:Ut,checkmark:jt,chevronBottom:Dt,chevronLeft:Ft,chevronRight:zt,chevronTop:Ht,clock:qt,close:Wt,compass:Gt,coinPlaceholder:Vt,copy:Kt,cursor:Zt,desktop:Qt,disconnect:Jt,discord:Yt,etherscan:Xt,extension:te,externalLink:ee,facebook:re,filters:ne,github:ie,google:se,helpCircle:oe,infoCircle:ae,mail:ce,mobile:le,networkPlaceholder:ue,nftPlaceholder:he,off:de,playStore:fe,qrCode:pe,refresh:me,search:ge,swapHorizontal:ye,swapHorizontalBold:we,swapVertical:be,telegram:ve,twitch:Ae,twitter:Ee,twitterIcon:xe,verify:_e,verifyFilled:Se,wallet:K` -`,walletPlaceholder:Se,warningCircle:K` +`,walletPlaceholder:Me,warningCircle:K` -`};let Ie=class extends ht{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`\n --local-color: var(--wui-color-${this.color});\n --local-width: var(--wui-icon-size-${this.size});\n `,G`${Me[this.name]}`}};Ie.styles=[bt,Et,It],Ce([Ct()],Ie.prototype,"size",void 0),Ce([Ct()],Ie.prototype,"name",void 0),Ce([Ct()],Ie.prototype,"color",void 0),Ie=Ce([xt("wui-icon")],Ie);const Pe=l` +`};let Ie=class extends ht{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`\n --local-color: var(--wui-color-${this.color});\n --local-width: var(--wui-icon-size-${this.size});\n `,G`${ke[this.name]}`}};Ie.styles=[bt,At,It],Ce([Ct()],Ie.prototype,"size",void 0),Ce([Ct()],Ie.prototype,"name",void 0),Ce([Ct()],Ie.prototype,"color",void 0),Ie=Ce([Et("wui-icon")],Ie);const Pe=l` :host { display: block; width: 100%; @@ -1446,7 +1446,7 @@ object-position: center center; border-radius: inherit; } -`;var Oe=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Te=class extends ht{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image"}render(){return G`${this.alt}`}};Te.styles=[bt,Et,Pe],Oe([Ct()],Te.prototype,"src",void 0),Oe([Ct()],Te.prototype,"alt",void 0),Te=Oe([xt("wui-image")],Te);const Ne=l` +`;var Oe=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ne=class extends ht{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image"}render(){return G`${this.alt}`}};Ne.styles=[bt,At,Pe],Oe([Ct()],Ne.prototype,"src",void 0),Oe([Ct()],Ne.prototype,"alt",void 0),Ne=Oe([Et("wui-image")],Ne);const Te=l` :host { display: block; width: var(--wui-box-size-lg); @@ -1483,7 +1483,7 @@ /> - `}};Re.styles=[bt,Ne],Re=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([xt("wui-loading-hexagon")],Re);const Be=l` + `}};Re.styles=[bt,Te],Re=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([Et("wui-loading-hexagon")],Re);const Be=l` :host { display: flex; } @@ -1552,9 +1552,9 @@ stroke-dashoffset: -125; } } -`;var je=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Le=class extends ht{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: var(--wui-color-${this.color});`,this.dataset.size=this.size,G` +`;var Le=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ue=class extends ht{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: var(--wui-color-${this.color});`,this.dataset.size=this.size,G` - `}};Le.styles=[bt,Be],je([Ct()],Le.prototype,"color",void 0),je([Ct()],Le.prototype,"size",void 0),Le=je([xt("wui-loading-spinner")],Le);const Ue=l` + `}};Ue.styles=[bt,Be],Le([Ct()],Ue.prototype,"color",void 0),Le([Ct()],Ue.prototype,"size",void 0),Ue=Le([Et("wui-loading-spinner")],Ue);const je=l` :host { display: block; width: var(--wui-box-size-md); @@ -1580,7 +1580,7 @@ stroke-dashoffset: 0px; } } -`;var De=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $e=class extends ht{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const t=this.radius>50?50:this.radius,e=36-t;return G` +`;var De=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Fe=class extends ht{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const t=this.radius>50?50:this.radius,e=36-t;return G` - `}};$e.styles=[bt,Ue],De([Ct({type:Number})],$e.prototype,"radius",void 0),$e=De([xt("wui-loading-thumbnail")],$e);const Fe=l` + `}};Fe.styles=[bt,je],De([Ct({type:Number})],Fe.prototype,"radius",void 0),Fe=De([Et("wui-loading-thumbnail")],Fe);const ze=l` :host { display: block; box-shadow: inset 0 0 0 1px var(--wui-gray-glass-005); @@ -1618,7 +1618,7 @@ background-position: 250% 0; } } -`;var ze=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let He=class extends ht{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m"}render(){return this.style.cssText=`\n width: ${this.width};\n height: ${this.height};\n border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);\n `,G``}};He.styles=[Fe],ze([Ct()],He.prototype,"width",void 0),ze([Ct()],He.prototype,"height",void 0),ze([Ct()],He.prototype,"borderRadius",void 0),He=ze([xt("wui-shimmer")],He);const We=t=>(...e)=>({_$litDirective$:t,values:e});class qe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Ve=We(class extends qe{constructor(t){if(super(t),1!==t.type||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const r=t.element.classList;for(const t of this.it)t in e||(r.remove(t),this.it.delete(t));for(const t in e){const n=!!e[t];n===this.it.has(t)||this.st?.has(t)||(n?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return Z}}),Ge=l` +`;var He=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $e=class extends ht{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m"}render(){return this.style.cssText=`\n width: ${this.width};\n height: ${this.height};\n border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);\n `,G``}};$e.styles=[ze],He([Ct()],$e.prototype,"width",void 0),He([Ct()],$e.prototype,"height",void 0),He([Ct()],$e.prototype,"borderRadius",void 0),$e=He([Et("wui-shimmer")],$e);const qe=t=>(...e)=>({_$litDirective$:t,values:e});class We{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Ve=qe(class extends We{constructor(t){if(super(t),1!==t.type||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const r=t.element.classList;for(const t of this.it)t in e||(r.remove(t),this.it.delete(t));for(const t in e){const n=!!e[t];n===this.it.has(t)||this.st?.has(t)||(n?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return Z}}),Ge=l` :host { display: flex !important; } @@ -1691,7 +1691,7 @@ .wui-font-micro-600 { font-weight: var(--wui-font-weight-medium); } -`;var Ke=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ze=class extends ht{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left"}render(){const t={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0};return this.style.cssText=`\n --local-align: ${this.align};\n --local-color: var(--wui-color-${this.color});\n `,G``}};Ze.styles=[bt,Ge],Ke([Ct()],Ze.prototype,"variant",void 0),Ke([Ct()],Ze.prototype,"color",void 0),Ke([Ct()],Ze.prototype,"align",void 0),Ze=Ke([xt("wui-text")],Ze);const Je=K` +`;var Ke=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ze=class extends ht{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left"}render(){const t={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0};return this.style.cssText=`\n --local-align: ${this.align};\n --local-color: var(--wui-color-${this.color});\n `,G``}};Ze.styles=[bt,Ge],Ke([Ct()],Ze.prototype,"variant",void 0),Ke([Ct()],Ze.prototype,"color",void 0),Ke([Ct()],Ze.prototype,"align",void 0),Ze=Ke([Et("wui-text")],Ze);const Qe=K` - `,Qe=K` + `,Je=K` =0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const hr={browser:Je,dao:Qe,defi:Ye,defiAlt:Xe,eth:tr,layers:er,lock:rr,login:nr,network:ir,nft:sr,noun:or,profile:ar,system:cr};let dr=class extends ht{constructor(){super(...arguments),this.name="browser"}render(){return G`${hr[this.name]}`}};dr.styles=[bt,lr],ur([Ct()],dr.prototype,"name",void 0),dr=ur([xt("wui-visual")],dr);const pr=t=>t??J,fr={getSpacingStyles:(t,e)=>Array.isArray(t)?t[e]?`var(--wui-spacing-${t[e]})`:void 0:"string"==typeof t?`var(--wui-spacing-${t})`:void 0,getFormattedDate:t=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t),getHostName:t=>new URL(t).hostname,getTruncateString:({string:t,charsStart:e,charsEnd:r,truncate:n})=>t.length<=e+r?t:"end"===n?`${t.substring(0,e)}...`:"start"===n?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`,generateAvatarColors(t){const e=t.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(e),n=[];for(let t=0;t<5;t+=1){const e=this.tintColor(r,.15*t);n.push(`rgb(${e[0]}, ${e[1]}, ${e[2]})`)}return`\n --local-color-1: ${n[0]};\n --local-color-2: ${n[1]};\n --local-color-3: ${n[2]};\n --local-color-4: ${n[3]};\n --local-color-5: ${n[4]};\n `},hexToRgb(t){const e=parseInt(t,16);return[e>>16&255,e>>8&255,255&e]},tintColor(t,e){const[r,n,i]=t;return[Math.round(r+(255-r)*e),Math.round(n+(255-n)*e),Math.round(i+(255-i)*e)]},isNumber:t=>/^[0-9]+$/u.test(t),getColorTheme:t=>t||("undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark")},mr=l` +`;var ur=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const hr={browser:Qe,dao:Je,defi:Ye,defiAlt:Xe,eth:tr,layers:er,lock:rr,login:nr,network:ir,nft:sr,noun:or,profile:ar,system:cr};let dr=class extends ht{constructor(){super(...arguments),this.name="browser"}render(){return G`${hr[this.name]}`}};dr.styles=[bt,lr],ur([Ct()],dr.prototype,"name",void 0),dr=ur([Et("wui-visual")],dr);const fr=t=>t??Q,pr={getSpacingStyles:(t,e)=>Array.isArray(t)?t[e]?`var(--wui-spacing-${t[e]})`:void 0:"string"==typeof t?`var(--wui-spacing-${t})`:void 0,getFormattedDate:t=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(t),getHostName:t=>new URL(t).hostname,getTruncateString:({string:t,charsStart:e,charsEnd:r,truncate:n})=>t.length<=e+r?t:"end"===n?`${t.substring(0,e)}...`:"start"===n?`...${t.substring(t.length-r)}`:`${t.substring(0,Math.floor(e))}...${t.substring(t.length-Math.floor(r))}`,generateAvatarColors(t){const e=t.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(e),n=[];for(let t=0;t<5;t+=1){const e=this.tintColor(r,.15*t);n.push(`rgb(${e[0]}, ${e[1]}, ${e[2]})`)}return`\n --local-color-1: ${n[0]};\n --local-color-2: ${n[1]};\n --local-color-3: ${n[2]};\n --local-color-4: ${n[3]};\n --local-color-5: ${n[4]};\n `},hexToRgb(t){const e=parseInt(t,16);return[e>>16&255,e>>8&255,255&e]},tintColor(t,e){const[r,n,i]=t;return[Math.round(r+(255-r)*e),Math.round(n+(255-n)*e),Math.round(i+(255-i)*e)]},isNumber:t=>/^[0-9]+$/u.test(t),getColorTheme:t=>t||("undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":"dark")},mr=l` :host { display: flex; width: inherit; height: inherit; } -`;var gr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let yr=class extends ht{render(){return this.style.cssText=`\n flex-direction: ${this.flexDirection};\n flex-wrap: ${this.flexWrap};\n flex-basis: ${this.flexBasis};\n flex-grow: ${this.flexGrow};\n flex-shrink: ${this.flexShrink};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&fr.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&fr.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&fr.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&fr.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&fr.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&fr.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&fr.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&fr.getSpacingStyles(this.margin,3)};\n `,G``}};yr.styles=[bt,mr],gr([Ct()],yr.prototype,"flexDirection",void 0),gr([Ct()],yr.prototype,"flexWrap",void 0),gr([Ct()],yr.prototype,"flexBasis",void 0),gr([Ct()],yr.prototype,"flexGrow",void 0),gr([Ct()],yr.prototype,"flexShrink",void 0),gr([Ct()],yr.prototype,"alignItems",void 0),gr([Ct()],yr.prototype,"justifyContent",void 0),gr([Ct()],yr.prototype,"columnGap",void 0),gr([Ct()],yr.prototype,"rowGap",void 0),gr([Ct()],yr.prototype,"gap",void 0),gr([Ct()],yr.prototype,"padding",void 0),gr([Ct()],yr.prototype,"margin",void 0),yr=gr([xt("wui-flex")],yr);const wr=l` +`;var gr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let yr=class extends ht{render(){return this.style.cssText=`\n flex-direction: ${this.flexDirection};\n flex-wrap: ${this.flexWrap};\n flex-basis: ${this.flexBasis};\n flex-grow: ${this.flexGrow};\n flex-shrink: ${this.flexShrink};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&pr.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&pr.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&pr.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&pr.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&pr.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&pr.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&pr.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&pr.getSpacingStyles(this.margin,3)};\n `,G``}};yr.styles=[bt,mr],gr([Ct()],yr.prototype,"flexDirection",void 0),gr([Ct()],yr.prototype,"flexWrap",void 0),gr([Ct()],yr.prototype,"flexBasis",void 0),gr([Ct()],yr.prototype,"flexGrow",void 0),gr([Ct()],yr.prototype,"flexShrink",void 0),gr([Ct()],yr.prototype,"alignItems",void 0),gr([Ct()],yr.prototype,"justifyContent",void 0),gr([Ct()],yr.prototype,"columnGap",void 0),gr([Ct()],yr.prototype,"rowGap",void 0),gr([Ct()],yr.prototype,"gap",void 0),gr([Ct()],yr.prototype,"padding",void 0),gr([Ct()],yr.prototype,"margin",void 0),yr=gr([Et("wui-flex")],yr);const wr=l` :host { display: block; width: var(--wui-icon-box-size-xl); @@ -2107,7 +2107,7 @@ #6ebdea 100% ); } -`;var br=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let vr=class extends ht{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0}render(){return G`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",G``;if(this.address){this.dataset.variant="generated";const t=fr.generateAvatarColors(this.address);return this.style.cssText=t,null}return this.dataset.variant="default",null}};vr.styles=[bt,wr],br([Ct()],vr.prototype,"imageSrc",void 0),br([Ct()],vr.prototype,"alt",void 0),br([Ct()],vr.prototype,"address",void 0),vr=br([xt("wui-avatar")],vr);const Er=l` +`;var br=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let vr=class extends ht{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0}render(){return G`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",G``;if(this.address){this.dataset.variant="generated";const t=pr.generateAvatarColors(this.address);return this.style.cssText=t,null}return this.dataset.variant="default",null}};vr.styles=[bt,wr],br([Ct()],vr.prototype,"imageSrc",void 0),br([Ct()],vr.prototype,"alt",void 0),br([Ct()],vr.prototype,"address",void 0),vr=br([Et("wui-avatar")],vr);const Ar=l` :host { display: inline-flex; justify-content: center; @@ -2128,7 +2128,7 @@ background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent); } } -`;var xr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let _r=class extends ht{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){const t=this.iconSize||this.size,e="lg"===this.size,r="xl"===this.size,n=e?"12%":"16%",i=e?"xxs":r?"s":"3xl",s="gray"===this.background,o="opaque"===this.background,a="accent-100"===this.backgroundColor&&o||"success-100"===this.backgroundColor&&o||"error-100"===this.backgroundColor&&o||"inverse-100"===this.backgroundColor&&o;let c=`var(--wui-color-${this.backgroundColor})`;return a?c=`var(--wui-icon-box-bg-${this.backgroundColor})`:s&&(c=`var(--wui-gray-${this.backgroundColor})`),this.style.cssText=`\n --local-bg-value: ${c};\n --local-bg-mix: ${a||s?"100%":n};\n --local-border-radius: var(--wui-border-radius-${i});\n --local-size: var(--wui-icon-box-size-${this.size});\n --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}\n `,G` `}};_r.styles=[bt,vt,Er],xr([Ct()],_r.prototype,"size",void 0),xr([Ct()],_r.prototype,"backgroundColor",void 0),xr([Ct()],_r.prototype,"iconColor",void 0),xr([Ct()],_r.prototype,"iconSize",void 0),xr([Ct()],_r.prototype,"background",void 0),xr([Ct({type:Boolean})],_r.prototype,"border",void 0),xr([Ct()],_r.prototype,"borderColor",void 0),xr([Ct()],_r.prototype,"icon",void 0),_r=xr([xt("wui-icon-box")],_r);const Ar=l` +`;var Er=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let xr=class extends ht{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){const t=this.iconSize||this.size,e="lg"===this.size,r="xl"===this.size,n=e?"12%":"16%",i=e?"xxs":r?"s":"3xl",s="gray"===this.background,o="opaque"===this.background,a="accent-100"===this.backgroundColor&&o||"success-100"===this.backgroundColor&&o||"error-100"===this.backgroundColor&&o||"inverse-100"===this.backgroundColor&&o;let c=`var(--wui-color-${this.backgroundColor})`;return a?c=`var(--wui-icon-box-bg-${this.backgroundColor})`:s&&(c=`var(--wui-gray-${this.backgroundColor})`),this.style.cssText=`\n --local-bg-value: ${c};\n --local-bg-mix: ${a||s?"100%":n};\n --local-border-radius: var(--wui-border-radius-${i});\n --local-size: var(--wui-icon-box-size-${this.size});\n --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}\n `,G` `}};xr.styles=[bt,vt,Ar],Er([Ct()],xr.prototype,"size",void 0),Er([Ct()],xr.prototype,"backgroundColor",void 0),Er([Ct()],xr.prototype,"iconColor",void 0),Er([Ct()],xr.prototype,"iconSize",void 0),Er([Ct()],xr.prototype,"background",void 0),Er([Ct({type:Boolean})],xr.prototype,"border",void 0),Er([Ct()],xr.prototype,"borderColor",void 0),Er([Ct()],xr.prototype,"icon",void 0),xr=Er([Et("wui-icon-box")],xr);const _r=l` :host { display: block; } @@ -2232,10 +2232,10 @@ color: var(--wui-color-fg-175); } } -`;var kr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Sr=class extends ht{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.disabled=!1,this.isProfileName=!1,this.address="",this.charsStart=4,this.charsEnd=6}render(){return G` +`;var Sr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Mr=class extends ht{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.disabled=!1,this.isProfileName=!1,this.address="",this.charsStart=4,this.charsEnd=6}render(){return G` @@ -2259,7 +2259,7 @@ `;return G` ${t} ${this.balance} - `}return null}};Sr.styles=[bt,vt,Ar],kr([Ct()],Sr.prototype,"networkSrc",void 0),kr([Ct()],Sr.prototype,"avatarSrc",void 0),kr([Ct()],Sr.prototype,"balance",void 0),kr([Ct({type:Boolean})],Sr.prototype,"disabled",void 0),kr([Ct({type:Boolean})],Sr.prototype,"isProfileName",void 0),kr([Ct()],Sr.prototype,"address",void 0),kr([Ct()],Sr.prototype,"charsStart",void 0),kr([Ct()],Sr.prototype,"charsEnd",void 0),Sr=kr([xt("wui-account-button")],Sr);const Cr=l` + `}return null}};Mr.styles=[bt,vt,_r],Sr([Ct()],Mr.prototype,"networkSrc",void 0),Sr([Ct()],Mr.prototype,"avatarSrc",void 0),Sr([Ct()],Mr.prototype,"balance",void 0),Sr([Ct({type:Boolean})],Mr.prototype,"disabled",void 0),Sr([Ct({type:Boolean})],Mr.prototype,"isProfileName",void 0),Sr([Ct()],Mr.prototype,"address",void 0),Sr([Ct()],Mr.prototype,"charsStart",void 0),Sr([Ct()],Mr.prototype,"charsEnd",void 0),Mr=Sr([Et("wui-account-button")],Mr);const Cr=l` :host { position: relative; background-color: var(--wui-gray-glass-002); @@ -2337,7 +2337,7 @@ border: 2px solid var(--wui-color-bg-base-150, #1e1f1f); padding: 1px; } -`;var Mr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ir=class extends ht{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="xxs";return t="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`\n --local-border-radius: var(--wui-border-radius-${t});\n --local-size: var(--wui-wallet-image-size-${this.size});\n `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),G` +`;var kr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ir=class extends ht{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="xxs";return t="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`\n --local-border-radius: var(--wui-border-radius-${t});\n --local-size: var(--wui-wallet-image-size-${this.size});\n `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),G` ${this.templateVisual()} ${this.templateInstalledBadge()} `}templateVisual(){return this.imageSrc?G``:this.walletIcon?G` - `:null}};Ir.styles=[bt,Cr],Mr([Ct()],Ir.prototype,"size",void 0),Mr([Ct()],Ir.prototype,"name",void 0),Mr([Ct()],Ir.prototype,"imageSrc",void 0),Mr([Ct()],Ir.prototype,"walletIcon",void 0),Mr([Ct({type:Boolean})],Ir.prototype,"installed",void 0),Mr([Ct()],Ir.prototype,"badgeSize",void 0),Ir=Mr([xt("wui-wallet-image")],Ir);const Pr=l` + `:null}};Ir.styles=[bt,Cr],kr([Ct()],Ir.prototype,"size",void 0),kr([Ct()],Ir.prototype,"name",void 0),kr([Ct()],Ir.prototype,"imageSrc",void 0),kr([Ct()],Ir.prototype,"walletIcon",void 0),kr([Ct({type:Boolean})],Ir.prototype,"installed",void 0),kr([Ct()],Ir.prototype,"badgeSize",void 0),Ir=kr([Et("wui-wallet-image")],Ir);const Pr=l` :host { position: relative; border-radius: var(--wui-border-radius-xxs); @@ -2404,11 +2404,11 @@ z-index: 2; display: flex; } -`;var Or=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Tr=class extends ht{constructor(){super(...arguments),this.walletImages=[]}render(){const t=this.walletImages.length<4;return G`${this.walletImages.slice(0,4).map((({src:t,walletName:e})=>G` +`;var Or=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Nr=class extends ht{constructor(){super(...arguments),this.walletImages=[]}render(){const t=this.walletImages.length<4;return G`${this.walletImages.slice(0,4).map((({src:t,walletName:e})=>G` `))} ${t?[...Array(4-this.walletImages.length)].map((()=>G` `)):null} @@ -2421,7 +2421,7 @@ icon="checkmark" background="opaque" > - `}};Tr.styles=[bt,Pr],Or([Ct({type:Array})],Tr.prototype,"walletImages",void 0),Tr=Or([xt("wui-all-wallets-image")],Tr);const Nr=l` + `}};Nr.styles=[bt,Pr],Or([Ct({type:Array})],Nr.prototype,"walletImages",void 0),Nr=Or([Et("wui-all-wallets-image")],Nr);const Tr=l` :host { width: var(--local-width); position: relative; @@ -2497,11 +2497,11 @@ this.handleSlotRightChange()}> - `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){return this.loading?G``:G``}};Br.styles=[bt,vt,Nr],Rr([Ct()],Br.prototype,"size",void 0),Rr([Ct({type:Boolean})],Br.prototype,"disabled",void 0),Rr([Ct({type:Boolean})],Br.prototype,"fullWidth",void 0),Rr([Ct({type:Boolean})],Br.prototype,"loading",void 0),Rr([Ct()],Br.prototype,"variant",void 0),Rr([Ct({type:Boolean})],Br.prototype,"hasIconLeft",void 0),Rr([Ct({type:Boolean})],Br.prototype,"hasIconRight",void 0),Br=Rr([xt("wui-button")],Br);const jr=K` + `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){return this.loading?G``:G``}};Br.styles=[bt,vt,Tr],Rr([Ct()],Br.prototype,"size",void 0),Rr([Ct({type:Boolean})],Br.prototype,"disabled",void 0),Rr([Ct({type:Boolean})],Br.prototype,"fullWidth",void 0),Rr([Ct({type:Boolean})],Br.prototype,"loading",void 0),Rr([Ct()],Br.prototype,"variant",void 0),Rr([Ct({type:Boolean})],Br.prototype,"hasIconLeft",void 0),Rr([Ct({type:Boolean})],Br.prototype,"hasIconRight",void 0),Br=Rr([Et("wui-button")],Br);const Lr=K` -`,Lr=l` +`,Ur=l` :host { display: flex; flex-direction: column; @@ -2531,7 +2531,7 @@ stroke: var(--wui-gray-glass-010); stroke-width: 1px; } -`;var Ur=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Dr=class extends ht{constructor(){super(...arguments),this.type="wallet"}render(){return G` +`;var jr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Dr=class extends ht{constructor(){super(...arguments),this.type="wallet"}render(){return G` ${this.shimmerTemplate()} `}shimmerTemplate(){return"network"===this.type?G` - ${jr}`:G``}};Dr.styles=[bt,vt,Lr],Ur([Ct()],Dr.prototype,"type",void 0),Dr=Ur([xt("wui-card-select-loader")],Dr);const $r=K` + ${Lr}`:G``}};Dr.styles=[bt,vt,Ur],jr([Ct()],Dr.prototype,"type",void 0),Dr=jr([Et("wui-card-select-loader")],Dr);const Fr=K` -`,Fr=l` +`,zr=l` :host { position: relative; border-radius: inherit; @@ -2583,7 +2583,7 @@ width: var(--local-icon-size); height: var(--local-icon-size); } -`;var zr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Hr=class extends ht{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){const t="lg"===this.size;return this.style.cssText=`\n --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-gray-glass-010)"};\n --local-path: ${t?"var(--wui-path-network-lg)":"var(--wui-path-network)"};\n --local-width: ${t?"86px":"48px"};\n --local-height: ${t?"96px":"54px"};\n --local-icon-size: ${t?"42px":"24px"};\n `,G`${this.templateVisual()} ${t?$r:jr}`}templateVisual(){return this.imageSrc?G``:G``}};Hr.styles=[bt,Fr],zr([Ct()],Hr.prototype,"size",void 0),zr([Ct()],Hr.prototype,"name",void 0),zr([Ct()],Hr.prototype,"imageSrc",void 0),zr([Ct({type:Boolean})],Hr.prototype,"selected",void 0),Hr=zr([xt("wui-network-image")],Hr);const Wr=l` +`;var Hr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $r=class extends ht{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){const t="lg"===this.size;return this.style.cssText=`\n --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-gray-glass-010)"};\n --local-path: ${t?"var(--wui-path-network-lg)":"var(--wui-path-network)"};\n --local-width: ${t?"86px":"48px"};\n --local-height: ${t?"96px":"54px"};\n --local-icon-size: ${t?"42px":"24px"};\n `,G`${this.templateVisual()} ${t?Fr:Lr}`}templateVisual(){return this.imageSrc?G``:G``}};$r.styles=[bt,zr],Hr([Ct()],$r.prototype,"size",void 0),Hr([Ct()],$r.prototype,"name",void 0),Hr([Ct()],$r.prototype,"imageSrc",void 0),Hr([Ct({type:Boolean})],$r.prototype,"selected",void 0),$r=Hr([Et("wui-network-image")],$r);const qr=l` button { flex-direction: column; width: 76px; @@ -2619,8 +2619,8 @@ [data-selected='true']:active:enabled { background-color: var(--wui-accent-glass-010); } -`;var qr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Vr=class extends ht{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return G` - `:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};yn.styles=[bt,vt,mn],gn([Ct()],yn.prototype,"size",void 0),gn([Ct()],yn.prototype,"icon",void 0),gn([Ct({type:Boolean})],yn.prototype,"disabled",void 0),gn([Ct()],yn.prototype,"placeholder",void 0),gn([Ct()],yn.prototype,"type",void 0),gn([Ct()],yn.prototype,"keyHint",void 0),gn([Ct()],yn.prototype,"value",void 0),yn=gn([Et("wui-input-text")],yn);const wn=l` :host { position: relative; display: inline-block; @@ -3069,7 +3069,7 @@ data-testid="wui-email-input" > ${this.templateError()} - `}templateError(){return this.errorMessage?G`${this.errorMessage}`:null}};vn.styles=[bt,wn],bn([Ct()],vn.prototype,"errorMessage",void 0),bn([Ct({type:Boolean})],vn.prototype,"disabled",void 0),bn([Ct()],vn.prototype,"value",void 0),vn=bn([xt("wui-email-input")],vn);const En=l` + `}templateError(){return this.errorMessage?G`${this.errorMessage}`:null}};vn.styles=[bt,wn],bn([Ct()],vn.prototype,"errorMessage",void 0),bn([Ct({type:Boolean})],vn.prototype,"disabled",void 0),bn([Ct()],vn.prototype,"value",void 0),vn=bn([Et("wui-email-input")],vn);const An=l` button { border-radius: var(--wui-border-radius-xxs); color: var(--wui-color-fg-100); @@ -3093,11 +3093,11 @@ button:disabled { background-color: transparent; } -`;var xn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let _n=class extends ht{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){return G` +`;var En=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let xn=class extends ht{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){return G` - `}};_n.styles=[bt,vt,Et,En],xn([Ct()],_n.prototype,"size",void 0),xn([Ct({type:Boolean})],_n.prototype,"disabled",void 0),xn([Ct()],_n.prototype,"icon",void 0),xn([Ct()],_n.prototype,"iconColor",void 0),_n=xn([xt("wui-icon-link")],_n);const An=l` + `}};xn.styles=[bt,vt,At,An],En([Ct()],xn.prototype,"size",void 0),En([Ct({type:Boolean})],xn.prototype,"disabled",void 0),En([Ct()],xn.prototype,"icon",void 0),En([Ct()],xn.prototype,"iconColor",void 0),xn=En([Et("wui-icon-link")],xn);const _n=l` button { background-color: var(--wui-color-fg-300); border-radius: var(--wui-border-radius-4xs); @@ -3127,11 +3127,11 @@ background-color: var(--wui-color-fg-250); } } -`;var kn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Sn=class extends ht{constructor(){super(...arguments),this.icon="copy"}render(){return G` +`;var Sn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Mn=class extends ht{constructor(){super(...arguments),this.icon="copy"}render(){return G` - `}};Sn.styles=[bt,vt,An],kn([Ct()],Sn.prototype,"icon",void 0),Sn=kn([xt("wui-input-element")],Sn);const Cn=l` + `}};Mn.styles=[bt,vt,_n],Sn([Ct()],Mn.prototype,"icon",void 0),Mn=Sn([Et("wui-input-element")],Mn);const Cn=l` :host { position: relative; display: inline-block; @@ -3186,13 +3186,13 @@ background-color: var(--wui-gray-glass-010); } } -`;var Mn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let In=class extends ht{constructor(){super(...arguments),this.disabled=!1}render(){return G`
    +`;var jn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Dn=class extends ht{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){const[t,e]=this.images,r="NFT"===t?.type,n=r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)",i=(e?.url?"NFT"===e.type:r)?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)";return this.style.cssText=`\n --local-left-border-radius: ${n};\n --local-right-border-radius: ${i};\n `,G` ${this.templateVisual()} ${this.templateIcon()} `}templateVisual(){const[t,e]=this.images,r=t?.type;return 2===this.images.length&&(t?.url||e?.url)?G`
    ${t?.url?G``:null} ${e?.url?G``:null}
    `:t?.url?G``:"NFT"===r?G``:G``}templateIcon(){let t,e="accent-100";return t=this.getIcon(),this.status&&(e=this.getStatusColor()),t?G` @@ -3387,7 +3387,7 @@ ?border=${!0} borderColor="wui-color-bg-125" > - `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};Dn.styles=[Ln],Un([Ct()],Dn.prototype,"type",void 0),Un([Ct()],Dn.prototype,"status",void 0),Un([Ct()],Dn.prototype,"direction",void 0),Un([Ct({type:Boolean})],Dn.prototype,"onlyDirectionIcon",void 0),Un([Ct({type:Array})],Dn.prototype,"images",void 0),Un([Ct({type:Object})],Dn.prototype,"secondImage",void 0),Dn=Un([xt("wui-transaction-visual")],Dn);const $n=l` + `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};Dn.styles=[Un],jn([Ct()],Dn.prototype,"type",void 0),jn([Ct()],Dn.prototype,"status",void 0),jn([Ct()],Dn.prototype,"direction",void 0),jn([Ct({type:Boolean})],Dn.prototype,"onlyDirectionIcon",void 0),jn([Ct({type:Array})],Dn.prototype,"images",void 0),jn([Ct({type:Object})],Dn.prototype,"secondImage",void 0),Dn=jn([Et("wui-transaction-visual")],Dn);const Fn=l` :host > wui-flex:first-child { align-items: center; column-gap: var(--wui-spacing-s); @@ -3430,18 +3430,18 @@ -webkit-box-orient: vertical; -webkit-line-clamp: 1; } -`;var Fn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let zn=class extends ht{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return G` +`;var zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Hn=class extends ht{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[]}render(){return G` - ${jn[this.type]} + ${Ln[this.type]} ${this.templateDescription()} ${this.templateSecondDescription()} @@ -3458,7 +3458,7 @@ ${t} - `:null}};zn.styles=[bt,$n],Fn([Ct()],zn.prototype,"type",void 0),Fn([Ct({type:Array})],zn.prototype,"descriptions",void 0),Fn([Ct()],zn.prototype,"date",void 0),Fn([Ct({type:Boolean})],zn.prototype,"onlyDirectionIcon",void 0),Fn([Ct()],zn.prototype,"status",void 0),Fn([Ct()],zn.prototype,"direction",void 0),Fn([Ct({type:Array})],zn.prototype,"images",void 0),zn=Fn([xt("wui-transaction-list-item")],zn);const Hn=l` + `:null}};Hn.styles=[bt,Fn],zn([Ct()],Hn.prototype,"type",void 0),zn([Ct({type:Array})],Hn.prototype,"descriptions",void 0),zn([Ct()],Hn.prototype,"date",void 0),zn([Ct({type:Boolean})],Hn.prototype,"onlyDirectionIcon",void 0),zn([Ct()],Hn.prototype,"status",void 0),zn([Ct()],Hn.prototype,"direction",void 0),zn([Ct({type:Array})],Hn.prototype,"images",void 0),Hn=zn([Et("wui-transaction-list-item")],Hn);const $n=l` :host > wui-flex:first-child { column-gap: var(--wui-spacing-s); padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); @@ -3469,7 +3469,7 @@ display: flex; flex: 1; } -`;let Wn=class extends ht{render(){return G` +`;let qn=class extends ht{render(){return G` @@ -3478,7 +3478,7 @@ - `}};Wn.styles=[bt,Hn],Wn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([xt("wui-transaction-list-item-loader")],Wn);const qn=l` + `}};qn.styles=[bt,$n],qn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([Et("wui-transaction-list-item-loader")],qn);const Wn=l` :host { display: block; padding: 3.5px 5px !important; @@ -3508,7 +3508,7 @@ - `}};Gn.styles=[bt,qn],Vn([Ct()],Gn.prototype,"variant",void 0),Gn=Vn([xt("wui-tag")],Gn);const Kn=l` + `}};Gn.styles=[bt,Wn],Vn([Ct()],Gn.prototype,"variant",void 0),Gn=Vn([Et("wui-tag")],Gn);const Kn=l` button { column-gap: var(--wui-spacing-s); padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); @@ -3536,7 +3536,7 @@ background-color: var(--wui-gray-glass-010); color: var(--wui-color-fg-300); } -`;var Zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Jn=class extends ht{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return G` +`;var Zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Qn=class extends ht{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return G` - `}};ri.styles=[bt,vt,ti],ei([Ct()],ri.prototype,"logo",void 0),ei([Ct({type:Boolean})],ri.prototype,"disabled",void 0),ri=ei([xt("wui-logo-select")],ri);const ni=l` + `}};ri.styles=[bt,vt,ti],ei([Ct()],ri.prototype,"logo",void 0),ei([Ct({type:Boolean})],ri.prototype,"disabled",void 0),ri=ei([Et("wui-logo-select")],ri);const ni=l` :host { display: block; } @@ -3629,7 +3629,7 @@ backgroundColor="fg-100" icon="networkPlaceholder" > - `}};si.styles=[bt,vt,ni],ii([Ct()],si.prototype,"imageSrc",void 0),ii([Ct({type:Boolean})],si.prototype,"disabled",void 0),si=ii([xt("wui-network-button")],si);const oi=l` + `}};si.styles=[bt,vt,ni],ii([Ct()],si.prototype,"imageSrc",void 0),ii([Ct({type:Boolean})],si.prototype,"disabled",void 0),si=ii([Et("wui-network-button")],si);const oi=l` :host { position: relative; display: block; @@ -3645,7 +3645,7 @@ `))} - `}updateInput(t,e,r){const n=this.numerics[e],i=t||(n?this.getInputElement(n):void 0);i&&(i.value=r,this.valueArr=this.valueArr.map(((t,n)=>n===e?r:t)))}handleInput(t,e){const r=t.target,n=this.getInputElement(r);if(n){const r=n.value;"insertFromPaste"===t.inputType?this.handlePaste(n,r,e):fr.isNumber(r)&&t.data?(this.updateInput(n,e,t.data),this.focusInputField("next",e)):this.updateInput(n,e,"")}this.dispatchInputChangeEvent()}handlePaste(t,e,r){const n=e[0];if(n&&fr.isNumber(n)){this.updateInput(t,r,n);const i=e.substring(1);if(r+1(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e,l=.45;for(let t=0;tn===e?r:t)))}handleInput(t,e){const r=t.target,n=this.getInputElement(r);if(n){const r=n.value;"insertFromPaste"===t.inputType?this.handlePaste(n,r,e):pr.isNumber(r)&&t.data?(this.updateInput(n,e,t.data),this.focusInputField("next",e)):this.updateInput(n,e,"")}this.dispatchInputChangeEvent()}handlePaste(t,e,r){const n=e[0];if(n&&pr.isNumber(n)){this.updateInput(t,r,n);const i=e.substring(1);if(r+1(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e,l=.45;for(let t=0;t=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let fi=class extends ht{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0}render(){return this.dataset.theme=this.theme,this.style.cssText=`--local-size: ${this.size}px`,G`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const t="light"===this.theme?this.size:this.size-32;return K` +`;var fi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let pi=class extends ht{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0}render(){return this.dataset.theme=this.theme,this.style.cssText=`--local-size: ${this.size}px`,G`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const t="light"===this.theme?this.size:this.size-32;return K` ${hi.generate(this.uri,t,t/4)} - `}templateVisual(){return this.imageSrc?G``:G``}};fi.styles=[bt,di],pi([Ct()],fi.prototype,"uri",void 0),pi([Ct({type:Number})],fi.prototype,"size",void 0),pi([Ct()],fi.prototype,"theme",void 0),pi([Ct()],fi.prototype,"imageSrc",void 0),pi([Ct()],fi.prototype,"alt",void 0),fi=pi([xt("wui-qr-code")],fi);const mi=l` + `}templateVisual(){return this.imageSrc?G``:G``}};pi.styles=[bt,di],fi([Ct()],pi.prototype,"uri",void 0),fi([Ct({type:Number})],pi.prototype,"size",void 0),fi([Ct()],pi.prototype,"theme",void 0),fi([Ct()],pi.prototype,"imageSrc",void 0),fi([Ct()],pi.prototype,"alt",void 0),pi=fi([Et("wui-qr-code")],pi);const mi=l` :host { position: relative; display: inline-block; @@ -3721,7 +3721,7 @@ } `;let gi=class extends ht{constructor(){super(...arguments),this.inputComponentRef=hn()}render(){return G` - `}clearValue(){const t=this.inputComponentRef.value?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};gi.styles=[bt,mi],gi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([xt("wui-search-bar")],gi);const yi=l` + `}clearValue(){const t=this.inputComponentRef.value?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};gi.styles=[bt,mi],gi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([Et("wui-search-bar")],gi);const yi=l` :host { display: flex; column-gap: var(--wui-spacing-xs); @@ -3751,7 +3751,7 @@ icon=${this.icon} > ${this.message} - `}};bi.styles=[bt,yi],wi([Ct()],bi.prototype,"backgroundColor",void 0),wi([Ct()],bi.prototype,"iconColor",void 0),wi([Ct()],bi.prototype,"icon",void 0),wi([Ct()],bi.prototype,"message",void 0),bi=wi([xt("wui-snackbar")],bi);const vi=l` + `}};bi.styles=[bt,yi],wi([Ct()],bi.prototype,"backgroundColor",void 0),wi([Ct()],bi.prototype,"iconColor",void 0),wi([Ct()],bi.prototype,"icon",void 0),wi([Ct()],bi.prototype,"message",void 0),bi=wi([Et("wui-snackbar")],bi);const vi=l` :host { display: inline-flex; background-color: var(--wui-gray-glass-002); @@ -3855,7 +3855,7 @@ button { border-radius: var(--wui-border-radius-3xl); } -`;var Ei=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let xi=class extends ht{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.activeTab=0,this.localTabWidth="100px",this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\n --local-tab: ${this.activeTab};\n --local-tab-width: ${this.localTabWidth};\n `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map(((t,e)=>{const r=e===this.activeTab;return G` +`;var Ai=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ei=class extends ht{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.activeTab=0,this.localTabWidth="100px",this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\n --local-tab: ${this.activeTab};\n --local-tab-width: ${this.localTabWidth};\n `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map(((t,e)=>{const r=e===this.activeTab;return G` - `}))}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout((()=>{this.animateTabs(0,!0)}),0))}onTabClick(t){this.buttons&&this.animateTabs(t,!1),this.activeTab=t,this.onTabChange(t)}animateTabs(t,e){const r=this.buttons[this.activeTab],n=this.buttons[t],i=r?.querySelector("wui-text"),s=n?.querySelector("wui-text"),o=n?.getBoundingClientRect(),a=s?.getBoundingClientRect();r&&i&&!e&&t!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),n&&o&&a&&s&&(t!==this.activeTab||e)&&(this.localTabWidth=`${Math.round(o.width+a.width)+6}px`,n.animate([{width:`${o.width+a.width}px`}],{duration:e?0:500,fill:"forwards",easing:"ease"}),s.animate([{opacity:1}],{duration:e?0:125,delay:e?0:200,fill:"forwards",easing:"ease"}))}};xi.styles=[bt,vt,vi],Ei([Ct({type:Array})],xi.prototype,"tabs",void 0),Ei([Ct()],xi.prototype,"onTabChange",void 0),Ei([Ct({type:Array})],xi.prototype,"buttons",void 0),Ei([Ct({type:Boolean})],xi.prototype,"disabled",void 0),Ei([Mt()],xi.prototype,"activeTab",void 0),Ei([Mt()],xi.prototype,"localTabWidth",void 0),Ei([Mt()],xi.prototype,"isDense",void 0),xi=Ei([xt("wui-tabs")],xi);const _i=l` + `}))}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout((()=>{this.animateTabs(0,!0)}),0))}onTabClick(t){this.buttons&&this.animateTabs(t,!1),this.activeTab=t,this.onTabChange(t)}animateTabs(t,e){const r=this.buttons[this.activeTab],n=this.buttons[t],i=r?.querySelector("wui-text"),s=n?.querySelector("wui-text"),o=n?.getBoundingClientRect(),a=s?.getBoundingClientRect();r&&i&&!e&&t!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),n&&o&&a&&s&&(t!==this.activeTab||e)&&(this.localTabWidth=`${Math.round(o.width+a.width)+6}px`,n.animate([{width:`${o.width+a.width}px`}],{duration:e?0:500,fill:"forwards",easing:"ease"}),s.animate([{opacity:1}],{duration:e?0:125,delay:e?0:200,fill:"forwards",easing:"ease"}))}};Ei.styles=[bt,vt,vi],Ai([Ct({type:Array})],Ei.prototype,"tabs",void 0),Ai([Ct()],Ei.prototype,"onTabChange",void 0),Ai([Ct({type:Array})],Ei.prototype,"buttons",void 0),Ai([Ct({type:Boolean})],Ei.prototype,"disabled",void 0),Ai([kt()],Ei.prototype,"activeTab",void 0),Ai([kt()],Ei.prototype,"localTabWidth",void 0),Ai([kt()],Ei.prototype,"isDense",void 0),Ei=Ai([Et("wui-tabs")],Ei);const xi=l` :host { display: block; padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); @@ -3903,13 +3903,13 @@ right: 0%; transform: translate(65%, -50%) rotate(270deg); } -`;var Ai=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let ki=class extends ht{constructor(){super(...arguments),this.placement="top",this.message=""}render(){return G`=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Si=class extends ht{constructor(){super(...arguments),this.placement="top",this.message=""}render(){return G` - ${this.message}`}};ki.styles=[bt,vt,_i],Ai([Ct()],ki.prototype,"placement",void 0),Ai([Ct()],ki.prototype,"message",void 0),ki=Ai([xt("wui-tooltip")],ki);const Si=l` + ${this.message}`}};Si.styles=[bt,vt,xi],_i([Ct()],Si.prototype,"placement",void 0),_i([Ct()],Si.prototype,"message",void 0),Si=_i([Et("wui-tooltip")],Si);const Mi=l` :host { display: flex; justify-content: center; @@ -3925,12 +3925,12 @@ width: 32px; height: 32px; } -`;var Ci=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Mi=class extends ht{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"};`,G`${this.templateVisual()}`}templateVisual(){return this.imageSrc?G``:G`=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let ki=class extends ht{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"};`,G`${this.templateVisual()}`}templateVisual(){return this.imageSrc?G``:G``}};Mi.styles=[bt,Si],Ci([Ct()],Mi.prototype,"imageSrc",void 0),Ci([Ct()],Mi.prototype,"alt",void 0),Ci([Ct({type:Boolean})],Mi.prototype,"borderRadiusFull",void 0),Mi=Ci([xt("wui-visual-thumbnail")],Mi);const Ii=l` + >`}};ki.styles=[bt,Mi],Ci([Ct()],ki.prototype,"imageSrc",void 0),Ci([Ct()],ki.prototype,"alt",void 0),Ci([Ct({type:Boolean})],ki.prototype,"borderRadiusFull",void 0),ki=Ci([Et("wui-visual-thumbnail")],ki);const Ii=l` :host { display: block; } @@ -3972,7 +3972,7 @@ - `}};Oi.styles=[bt,vt,Ii],Pi([Ct()],Oi.prototype,"label",void 0),Pi([Ct()],Oi.prototype,"description",void 0),Pi([Ct()],Oi.prototype,"icon",void 0),Oi=Pi([xt("wui-notice-card")],Oi);const Ti=l` + `}};Oi.styles=[bt,vt,Ii],Pi([Ct()],Oi.prototype,"label",void 0),Pi([Ct()],Oi.prototype,"description",void 0),Pi([Ct()],Oi.prototype,"icon",void 0),Oi=Pi([Et("wui-notice-card")],Oi);const Ni=l` button { height: auto; position: relative; @@ -4013,7 +4013,7 @@ overflow-x: auto; overflow-wrap: anywhere; } -`;var Ni=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ri=class extends ht{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}firstUpdated(){setTimeout((()=>{const t=this.shadowRoot?.querySelector(".heightContent");if(t){this.scrollElement=t;const e=t?.scrollHeight;e&&e>100&&(this.enableAccordion=!0,this.scrollHeightElement=e,this.requestUpdate())}}),0)}render(){return G` +`;var Ti=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ri=class extends ht{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}firstUpdated(){setTimeout((()=>{const t=this.shadowRoot?.querySelector(".heightContent");if(t){this.scrollElement=t;const e=t?.scrollHeight;e&&e>100&&(this.enableAccordion=!0,this.scrollHeightElement=e,this.requestUpdate())}}),0)}render(){return G`
    - `}onClick(){const t=this.shadowRoot?.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?"100px":`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:"100px"}],{duration:300,fill:"forwards",easing:"ease"}),t&&t.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?G` `:null}};Ri.styles=[bt,vt,Ti],Ni([Ct()],Ri.prototype,"textTitle",void 0),Ni([Ct()],Ri.prototype,"overflowedContent",void 0),Ri=Ni([xt("wui-list-accordion")],Ri);const Bi=l` + `}onClick(){const t=this.shadowRoot?.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?"100px":`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:"100px"}],{duration:300,fill:"forwards",easing:"ease"}),t&&t.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?G` `:null}};Ri.styles=[bt,vt,Ni],Ti([Ct()],Ri.prototype,"textTitle",void 0),Ti([Ct()],Ri.prototype,"overflowedContent",void 0),Ri=Ti([Et("wui-list-accordion")],Ri);const Bi=l` :host { display: flex; column-gap: var(--wui-spacing-s); @@ -4051,14 +4051,14 @@ width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); } -`;var ji=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Li=class extends ht{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return G` +`;var Li=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Ui=class extends ht{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return G` ${this.textTitle} ${this.templateContent()} - `}templateContent(){return this.imageSrc?G``:this.textValue?G` ${this.textValue} `:G``}};Li.styles=[bt,vt,Bi],ji([Ct()],Li.prototype,"imageSrc",void 0),ji([Ct()],Li.prototype,"textTitle",void 0),ji([Ct()],Li.prototype,"textValue",void 0),Li=ji([xt("wui-list-content")],Li);const Ui=l` + `}templateContent(){return this.imageSrc?G``:this.textValue?G` ${this.textValue} `:G``}};Ui.styles=[bt,vt,Bi],Li([Ct()],Ui.prototype,"imageSrc",void 0),Li([Ct()],Ui.prototype,"textTitle",void 0),Li([Ct()],Ui.prototype,"textValue",void 0),Ui=Li([Et("wui-list-content")],Ui);const ji=l` :host { display: flex; flex-direction: column; @@ -4080,7 +4080,7 @@ width: var(--wui-icon-size-lg); height: var(--wui-icon-size-lg); } -`;var Di=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $i=class extends ht{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress=""}render(){return G` +`;var Di=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Fi=class extends ht{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress=""}render(){return G` Sending @@ -4099,13 +4099,13 @@ title=${this.receiverAddress} > - `}templateNetworkVisual(){return this.networkImageUrl?G``:G``}};$i.styles=[bt,vt,Ui],Di([Ct()],$i.prototype,"amount",void 0),Di([Ct()],$i.prototype,"networkCurreny",void 0),Di([Ct()],$i.prototype,"networkImageUrl",void 0),Di([Ct()],$i.prototype,"receiverAddress",void 0),$i=Di([xt("wui-list-wallet-transaction")],$i);const Fi=l` + `}templateNetworkVisual(){return this.networkImageUrl?G``:G``}};Fi.styles=[bt,vt,ji],Di([Ct()],Fi.prototype,"amount",void 0),Di([Ct()],Fi.prototype,"networkCurreny",void 0),Di([Ct()],Fi.prototype,"networkImageUrl",void 0),Di([Ct()],Fi.prototype,"receiverAddress",void 0),Fi=Di([Et("wui-list-wallet-transaction")],Fi);const zi=l` :host { display: grid; width: inherit; height: inherit; } -`;var zi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Hi=class extends ht{render(){return this.style.cssText=`\n grid-template-rows: ${this.gridTemplateRows};\n grid-template-columns: ${this.gridTemplateColumns};\n justify-items: ${this.justifyItems};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n align-content: ${this.alignContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&fr.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&fr.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&fr.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&fr.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&fr.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&fr.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&fr.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&fr.getSpacingStyles(this.margin,3)};\n `,G``}};Hi.styles=[bt,Fi],zi([Ct()],Hi.prototype,"gridTemplateRows",void 0),zi([Ct()],Hi.prototype,"gridTemplateColumns",void 0),zi([Ct()],Hi.prototype,"justifyItems",void 0),zi([Ct()],Hi.prototype,"alignItems",void 0),zi([Ct()],Hi.prototype,"justifyContent",void 0),zi([Ct()],Hi.prototype,"alignContent",void 0),zi([Ct()],Hi.prototype,"columnGap",void 0),zi([Ct()],Hi.prototype,"rowGap",void 0),zi([Ct()],Hi.prototype,"gap",void 0),zi([Ct()],Hi.prototype,"padding",void 0),zi([Ct()],Hi.prototype,"margin",void 0),Hi=zi([xt("wui-grid")],Hi);const Wi=l` +`;var Hi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $i=class extends ht{render(){return this.style.cssText=`\n grid-template-rows: ${this.gridTemplateRows};\n grid-template-columns: ${this.gridTemplateColumns};\n justify-items: ${this.justifyItems};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n align-content: ${this.alignContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&pr.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&pr.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&pr.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&pr.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&pr.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&pr.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&pr.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&pr.getSpacingStyles(this.margin,3)};\n `,G``}};$i.styles=[bt,zi],Hi([Ct()],$i.prototype,"gridTemplateRows",void 0),Hi([Ct()],$i.prototype,"gridTemplateColumns",void 0),Hi([Ct()],$i.prototype,"justifyItems",void 0),Hi([Ct()],$i.prototype,"alignItems",void 0),Hi([Ct()],$i.prototype,"justifyContent",void 0),Hi([Ct()],$i.prototype,"alignContent",void 0),Hi([Ct()],$i.prototype,"columnGap",void 0),Hi([Ct()],$i.prototype,"rowGap",void 0),Hi([Ct()],$i.prototype,"gap",void 0),Hi([Ct()],$i.prototype,"padding",void 0),Hi([Ct()],$i.prototype,"margin",void 0),$i=Hi([Et("wui-grid")],$i);const qi=l` :host { position: relative; display: flex; @@ -4121,7 +4121,7 @@ padding: 0px 10px; background-color: var(--wui-color-modal-bg); } -`;var qi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Vi=class extends ht{constructor(){super(...arguments),this.text=""}render(){return G`${this.template()}`}template(){return this.text?G`${this.text}`:null}};Vi.styles=[bt,Wi],qi([Ct()],Vi.prototype,"text",void 0),Vi=qi([xt("wui-separator")],Vi);var Gi=r(10248);const Ki=["receive","deposit","borrow","claim"],Zi=["withdraw","repay","burn"],Ji={getTransactionGroupTitle:t=>t===Gi.E.getYear()?"This Year":t,getTransactionImages(t){const[e,r]=t,n=Boolean(e)&&t?.every((t=>Boolean(t.nft_info))),i=t?.length>1;return 2!==t?.length||n?i?t.map((t=>this.getTransactionImage(t))):[this.getTransactionImage(e)]:[this.getTransactionImage(e),this.getTransactionImage(r)]},getTransactionImage:t=>({type:Ji.getTransactionTransferTokenType(t),url:Ji.getTransactionImageURL(t)}),getTransactionImageURL(t){let e=null;const r=Boolean(t?.nft_info),n=Boolean(t?.fungible_info);return t&&r?e=t?.nft_info?.content?.preview?.url:t&&n&&(e=t?.fungible_info?.icon?.url),e},getTransactionTransferTokenType:t=>t?.fungible_info?"FUNGIBLE":t?.nft_info?"NFT":null,getTransactionDescriptions(t){const e=t.metadata?.operationType,r=t.transfers,n=t.transfers?.length>0,i=t.transfers?.length>1,s=n&&r?.every((t=>Boolean(t.fungible_info))),[o,a]=r;let c=this.getTransferDescription(o),l=this.getTransferDescription(a);if(!n)return"send"!==e&&"receive"!==e||!s?[t.metadata.status]:(c=fr.getTruncateString({string:t.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),l=fr.getTruncateString({string:t.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[c,l]);if(i)return r.map((t=>this.getTransferDescription(t)));let u="";return Ki.includes(e)?u="+":Zi.includes(e)&&(u="-"),c=u.concat(c),[c]},getTransferDescription(t){let e="";return t?(t?.nft_info?e=t?.nft_info?.name||"-":t?.fungible_info&&(e=this.getFungibleTransferDescription(t)||"-"),e):e},getFungibleTransferDescription(t){return t?[this.getQuantityFixedValue(t?.quantity.numeric),t?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:t=>t?parseFloat(t).toFixed(3):null}},80252:(t,e,r)=>{"use strict";r.r(e),r.d(e,{EIP6963Connector:()=>hi,EmailConnector:()=>gi,createWeb3Modal:()=>Yi,defaultWagmiConfig:()=>Qi,walletConnectProvider:()=>Ji});var n=r(46070),i=r(66403),s=r(95909),o=r(31123),a=r(74666),c=r(2927),l=r(88382);const u=t=>t??l.Ld;var h=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let d=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=s.AccountController.state.address,this.balanceVal=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.profileName=s.AccountController.state.profileName,this.profileImage=s.AccountController.state.profileImage,this.network=s.NetworkController.state.caipNetwork,this.unsubscribe.push(s.AccountController.subscribe((t=>{t.isConnected?(this.address=t.address,this.balanceVal=t.balance,this.profileName=t.profileName,this.profileImage=t.profileImage,this.balanceSymbol=t.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")})),s.NetworkController.subscribeKey("caipNetwork",(t=>this.network=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=s.fz.getNetworkImage(this.network),e="show"===this.balance;return a.dy` +`;var Wi=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Vi=class extends ht{constructor(){super(...arguments),this.text=""}render(){return G`${this.template()}`}template(){return this.text?G`${this.text}`:null}};Vi.styles=[bt,qi],Wi([Ct()],Vi.prototype,"text",void 0),Vi=Wi([Et("wui-separator")],Vi);var Gi=r(10248);const Ki=["receive","deposit","borrow","claim"],Zi=["withdraw","repay","burn"],Qi={getTransactionGroupTitle:t=>t===Gi.E.getYear()?"This Year":t,getTransactionImages(t){const[e,r]=t,n=Boolean(e)&&t?.every((t=>Boolean(t.nft_info))),i=t?.length>1;return 2!==t?.length||n?i?t.map((t=>this.getTransactionImage(t))):[this.getTransactionImage(e)]:[this.getTransactionImage(e),this.getTransactionImage(r)]},getTransactionImage:t=>({type:Qi.getTransactionTransferTokenType(t),url:Qi.getTransactionImageURL(t)}),getTransactionImageURL(t){let e=null;const r=Boolean(t?.nft_info),n=Boolean(t?.fungible_info);return t&&r?e=t?.nft_info?.content?.preview?.url:t&&n&&(e=t?.fungible_info?.icon?.url),e},getTransactionTransferTokenType:t=>t?.fungible_info?"FUNGIBLE":t?.nft_info?"NFT":null,getTransactionDescriptions(t){const e=t.metadata?.operationType,r=t.transfers,n=t.transfers?.length>0,i=t.transfers?.length>1,s=n&&r?.every((t=>Boolean(t.fungible_info))),[o,a]=r;let c=this.getTransferDescription(o),l=this.getTransferDescription(a);if(!n)return"send"!==e&&"receive"!==e||!s?[t.metadata.status]:(c=pr.getTruncateString({string:t.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),l=pr.getTruncateString({string:t.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"}),[c,l]);if(i)return r.map((t=>this.getTransferDescription(t)));let u="";return Ki.includes(e)?u="+":Zi.includes(e)&&(u="-"),c=u.concat(c),[c]},getTransferDescription(t){let e="";return t?(t?.nft_info?e=t?.nft_info?.name||"-":t?.fungible_info&&(e=this.getFungibleTransferDescription(t)||"-"),e):e},getFungibleTransferDescription(t){return t?[this.getQuantityFixedValue(t?.quantity.numeric),t?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:t=>t?parseFloat(t).toFixed(3):null}},80252:(t,e,r)=>{"use strict";r.r(e),r.d(e,{EIP6963Connector:()=>hi,EmailConnector:()=>gi,createWeb3Modal:()=>Yi,defaultWagmiConfig:()=>Ji,walletConnectProvider:()=>Qi});var n=r(46070),i=r(66403),s=r(95909),o=r(31123),a=r(74666),c=r(2927),l=r(88382);const u=t=>t??l.Ld;var h=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let d=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=s.AccountController.state.address,this.balanceVal=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.profileName=s.AccountController.state.profileName,this.profileImage=s.AccountController.state.profileImage,this.network=s.NetworkController.state.caipNetwork,this.unsubscribe.push(s.AccountController.subscribe((t=>{t.isConnected?(this.address=t.address,this.balanceVal=t.balance,this.profileName=t.profileName,this.profileImage=t.profileImage,this.balanceSymbol=t.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")})),s.NetworkController.subscribeKey("caipNetwork",(t=>this.network=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=s.fz.getNetworkImage(this.network),e="show"===this.balance;return a.dy` - `}onClick(){s.IN.open()}};h([(0,c.Cb)({type:Boolean})],d.prototype,"disabled",void 0),h([(0,c.Cb)()],d.prototype,"balance",void 0),h([(0,c.Cb)()],d.prototype,"charsStart",void 0),h([(0,c.Cb)()],d.prototype,"charsEnd",void 0),h([(0,c.SB)()],d.prototype,"address",void 0),h([(0,c.SB)()],d.prototype,"balanceVal",void 0),h([(0,c.SB)()],d.prototype,"balanceSymbol",void 0),h([(0,c.SB)()],d.prototype,"profileName",void 0),h([(0,c.SB)()],d.prototype,"profileImage",void 0),h([(0,c.SB)()],d.prototype,"network",void 0),d=h([(0,o.customElement)("w3m-account-button")],d);var p=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let f=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=s.AccountController.state.isConnected,this.unsubscribe.push(s.AccountController.subscribeKey("isConnected",(t=>{this.isAccount=t})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return this.isAccount?a.dy` + `}onClick(){s.IN.open()}};h([(0,c.Cb)({type:Boolean})],d.prototype,"disabled",void 0),h([(0,c.Cb)()],d.prototype,"balance",void 0),h([(0,c.Cb)()],d.prototype,"charsStart",void 0),h([(0,c.Cb)()],d.prototype,"charsEnd",void 0),h([(0,c.SB)()],d.prototype,"address",void 0),h([(0,c.SB)()],d.prototype,"balanceVal",void 0),h([(0,c.SB)()],d.prototype,"balanceSymbol",void 0),h([(0,c.SB)()],d.prototype,"profileName",void 0),h([(0,c.SB)()],d.prototype,"profileImage",void 0),h([(0,c.SB)()],d.prototype,"network",void 0),d=h([(0,o.customElement)("w3m-account-button")],d);var f=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let p=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=s.AccountController.state.isConnected,this.unsubscribe.push(s.AccountController.subscribeKey("isConnected",(t=>{this.isAccount=t})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return this.isAccount?a.dy` - `}};p([(0,c.Cb)({type:Boolean})],f.prototype,"disabled",void 0),p([(0,c.Cb)()],f.prototype,"balance",void 0),p([(0,c.Cb)()],f.prototype,"size",void 0),p([(0,c.Cb)()],f.prototype,"label",void 0),p([(0,c.Cb)()],f.prototype,"loadingLabel",void 0),p([(0,c.Cb)()],f.prototype,"charsStart",void 0),p([(0,c.Cb)()],f.prototype,"charsEnd",void 0),p([(0,c.SB)()],f.prototype,"isAccount",void 0),f=p([(0,o.customElement)("w3m-button")],f);var m=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let g=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=s.IN.state.open,this.loading=s.IN.state.loading,this.unsubscribe.push(s.IN.subscribe((t=>{this.open=t.open,this.loading=t.loading})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.loading||this.open;return a.dy` + `}};f([(0,c.Cb)({type:Boolean})],p.prototype,"disabled",void 0),f([(0,c.Cb)()],p.prototype,"balance",void 0),f([(0,c.Cb)()],p.prototype,"size",void 0),f([(0,c.Cb)()],p.prototype,"label",void 0),f([(0,c.Cb)()],p.prototype,"loadingLabel",void 0),f([(0,c.Cb)()],p.prototype,"charsStart",void 0),f([(0,c.Cb)()],p.prototype,"charsEnd",void 0),f([(0,c.SB)()],p.prototype,"isAccount",void 0),p=f([(0,o.customElement)("w3m-button")],p);var m=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let g=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=s.IN.state.open,this.loading=s.IN.state.loading,this.unsubscribe.push(s.IN.subscribe((t=>{this.open=t.open,this.loading=t.loading})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.loading||this.open;return a.dy` =0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let E=class extends a.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=s.RouterController.state.view,this.unsubscribe.push(s.RouterController.subscribeKey("view",(t=>this.onViewChange(t))))}firstUpdated(){this.resizeObserver=new ResizeObserver((async([t])=>{const e=`${t?.contentRect.height}px`;"0px"!==this.prevHeight&&(await this.animate([{height:this.prevHeight},{height:e}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.style.height="auto"),this.prevHeight=e})),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach((t=>t()))}render(){return a.dy`
    ${this.viewTemplate()}
    `}viewTemplate(){switch(this.view){case"Connect":default:return a.dy``;case"ConnectingWalletConnect":return a.dy``;case"ConnectingExternal":return a.dy``;case"ConnectingSiwe":return a.dy``;case"AllWallets":return a.dy``;case"Networks":return a.dy``;case"SwitchNetwork":return a.dy``;case"Account":return a.dy``;case"WhatIsAWallet":return a.dy``;case"WhatIsANetwork":return a.dy``;case"GetWallet":return a.dy``;case"Downloads":return a.dy``;case"EmailVerifyOtp":return a.dy``;case"EmailVerifyDevice":return a.dy``;case"ApproveTransaction":return a.dy``;case"Transactions":return a.dy``;case"UpgradeEmailWallet":return a.dy``;case"UpdateEmailWallet":return a.dy``;case"UpdateEmailWalletWaiting":return a.dy``}}async onViewChange(t){const{history:e}=s.RouterController.state;let r=-10,n=10;e.length=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let A=class extends a.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=s.RouterController.state.view,this.unsubscribe.push(s.RouterController.subscribeKey("view",(t=>this.onViewChange(t))))}firstUpdated(){this.resizeObserver=new ResizeObserver((async([t])=>{const e=`${t?.contentRect.height}px`;"0px"!==this.prevHeight&&(await this.animate([{height:this.prevHeight},{height:e}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.style.height="auto"),this.prevHeight=e})),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach((t=>t()))}render(){return a.dy`
    ${this.viewTemplate()}
    `}viewTemplate(){switch(this.view){case"Connect":default:return a.dy``;case"ConnectingWalletConnect":return a.dy``;case"ConnectingExternal":return a.dy``;case"ConnectingSiwe":return a.dy``;case"AllWallets":return a.dy``;case"Networks":return a.dy``;case"SwitchNetwork":return a.dy``;case"Account":return a.dy``;case"WhatIsAWallet":return a.dy``;case"WhatIsANetwork":return a.dy``;case"GetWallet":return a.dy``;case"Downloads":return a.dy``;case"EmailVerifyOtp":return a.dy``;case"EmailVerifyDevice":return a.dy``;case"ApproveTransaction":return a.dy``;case"Transactions":return a.dy``;case"UpgradeEmailWallet":return a.dy``;case"UpdateEmailWallet":return a.dy``;case"UpdateEmailWalletWaiting":return a.dy``}}async onViewChange(t){const{history:e}=s.RouterController.state;let r=-10,n=10;e.length=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let A=class extends a.oi{constructor(){super(),this.usubscribe=[],this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.balance=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.network=s.NetworkController.state.caipNetwork,this.disconecting=!1,this.usubscribe.push(s.AccountController.subscribe((t=>{t.address?(this.address=t.address,this.profileImage=t.profileImage,this.profileName=t.profileName,this.balance=t.balance,this.balanceSymbol=t.balanceSymbol):s.IN.close()})),s.NetworkController.subscribeKey("caipNetwork",(t=>{t?.id&&(this.network=t)})))}disconnectedCallback(){this.usubscribe.forEach((t=>t()))}render(){if(!this.address)throw new Error("w3m-account-view: No account provided");const t=s.fz.getNetworkImage(this.network);return a.dy` +`;var x=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let _=class extends a.oi{constructor(){super(),this.usubscribe=[],this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.balance=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.network=s.NetworkController.state.caipNetwork,this.disconecting=!1,this.usubscribe.push(s.AccountController.subscribe((t=>{t.address?(this.address=t.address,this.profileImage=t.profileImage,this.profileName=t.profileName,this.balance=t.balance,this.balanceSymbol=t.balanceSymbol):s.IN.close()})),s.NetworkController.subscribeKey("caipNetwork",(t=>{t?.id&&(this.network=t)})))}disconnectedCallback(){this.usubscribe.forEach((t=>t()))}render(){if(!this.address)throw new Error("w3m-account-view: No account provided");const t=s.fz.getNetworkImage(this.network);return a.dy` - `:null}isAllowedNetworkSwitch(){const{requestedCaipNetworks:t}=s.NetworkController.state,e=!!t&&t.length>1,r=t?.find((({id:t})=>t===this.network?.id));return e||!r}onCopyAddress(){try{this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&s.RouterController.push("Networks")}onTransactions(){s.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS"}),s.RouterController.push("Transactions")}async onDisconnect(){try{this.disconecting=!0,await s.ConnectionController.disconnect(),s.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),s.IN.close()}catch{s.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),s.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}onExplorer(){const{addressExplorerUrl:t}=s.AccountController.state;t&&s.j1.openHref(t,"_blank")}onGoToUpgradeView(){s.RouterController.push("UpgradeEmailWallet")}onGoToUpdateEmail(t){s.RouterController.push("UpdateEmailWallet",{email:t})}};A.styles=x,_([(0,c.SB)()],A.prototype,"address",void 0),_([(0,c.SB)()],A.prototype,"profileImage",void 0),_([(0,c.SB)()],A.prototype,"profileName",void 0),_([(0,c.SB)()],A.prototype,"balance",void 0),_([(0,c.SB)()],A.prototype,"balanceSymbol",void 0),_([(0,c.SB)()],A.prototype,"network",void 0),_([(0,c.SB)()],A.prototype,"disconecting",void 0),A=_([(0,o.customElement)("w3m-account-view")],A);var k=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let S=class extends a.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=s.j1.debounce((t=>{this.search=t}))}render(){const t=this.search.length>=2;return a.dy` + `:null}isAllowedNetworkSwitch(){const{requestedCaipNetworks:t}=s.NetworkController.state,e=!!t&&t.length>1,r=t?.find((({id:t})=>t===this.network?.id));return e||!r}onCopyAddress(){try{this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&s.RouterController.push("Networks")}onTransactions(){s.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS"}),s.RouterController.push("Transactions")}async onDisconnect(){try{this.disconecting=!0,await s.ConnectionController.disconnect(),s.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),s.IN.close()}catch{s.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),s.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}onExplorer(){const{addressExplorerUrl:t}=s.AccountController.state;t&&s.j1.openHref(t,"_blank")}onGoToUpgradeView(){s.RouterController.push("UpgradeEmailWallet")}onGoToUpdateEmail(t){s.RouterController.push("UpdateEmailWallet",{email:t})}};_.styles=E,x([(0,c.SB)()],_.prototype,"address",void 0),x([(0,c.SB)()],_.prototype,"profileImage",void 0),x([(0,c.SB)()],_.prototype,"profileName",void 0),x([(0,c.SB)()],_.prototype,"balance",void 0),x([(0,c.SB)()],_.prototype,"balanceSymbol",void 0),x([(0,c.SB)()],_.prototype,"network",void 0),x([(0,c.SB)()],_.prototype,"disconecting",void 0),_=x([(0,o.customElement)("w3m-account-view")],_);var S=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let M=class extends a.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=s.j1.debounce((t=>{this.search=t}))}render(){const t=this.search.length>=2;return a.dy` ${this.qrButtonTemplate()} @@ -4301,7 +4301,7 @@ borderColor="wui-accent-glass-010" @click=${this.onWalletConnectQr.bind(this)} > - `:null}onWalletConnectQr(){s.RouterController.push("ConnectingWalletConnect")}};k([(0,c.SB)()],S.prototype,"search",void 0),S=k([(0,o.customElement)("w3m-all-wallets-view")],S);const C=a.iv` + `:null}onWalletConnectQr(){s.RouterController.push("ConnectingWalletConnect")}};S([(0,c.SB)()],M.prototype,"search",void 0),M=S([(0,o.customElement)("w3m-all-wallets-view")],M);const C=a.iv` wui-flex { max-height: clamp(360px, 540px, 80vh); overflow: scroll; @@ -4311,7 +4311,7 @@ wui-flex::-webkit-scrollbar { display: none; } -`;var M=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let I=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` +`;var k=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let I=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` @@ -4395,7 +4395,7 @@ @click=${()=>this.onConnectWallet(t)} > - `))}onConnector(t){"WALLET_CONNECT"===t.type?s.j1.isMobile()?s.RouterController.push("AllWallets"):s.RouterController.push("ConnectingWalletConnect"):s.RouterController.push("ConnectingExternal",{connector:t})}filterOutDuplicateWallets(t){const{connectors:e}=s.ConnectorController.state,r=s.MO.getRecentWallets().map((t=>t.id)),n=e.map((t=>t.info?.rdns)).filter(Boolean);return t.filter((t=>!r.includes(t.id)&&!n.includes(t.rdns??void 0)))}onAllWallets(){s.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),s.RouterController.push("AllWallets")}onConnectWallet(t){s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};I.styles=C,M([(0,c.SB)()],I.prototype,"connectors",void 0),I=M([(0,o.customElement)("w3m-connect-view")],I);const P=a.iv` + `))}onConnector(t){"WALLET_CONNECT"===t.type?s.j1.isMobile()?s.RouterController.push("AllWallets"):s.RouterController.push("ConnectingWalletConnect"):s.RouterController.push("ConnectingExternal",{connector:t})}filterOutDuplicateWallets(t){const{connectors:e}=s.ConnectorController.state,r=s.MO.getRecentWallets().map((t=>t.id)),n=e.map((t=>t.info?.rdns)).filter(Boolean);return t.filter((t=>!r.includes(t.id)&&!n.includes(t.rdns??void 0)))}onAllWallets(){s.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),s.RouterController.push("AllWallets")}onConnectWallet(t){s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};I.styles=C,k([(0,c.SB)()],I.prototype,"connectors",void 0),I=k([(0,o.customElement)("w3m-connect-view")],I);const P=a.iv` @keyframes shake { 0% { transform: translateX(0); @@ -4453,7 +4453,7 @@ display: block; opacity: 1; } -`;var O=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};class T extends a.oi{constructor(){super(),this.wallet=s.RouterController.state.data?.wallet,this.connector=s.RouterController.state.data?.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=s.fz.getWalletImage(this.wallet)??s.fz.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=s.ConnectionController.state.wcUri,this.error=s.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(s.ConnectionController.subscribeKey("wcUri",(t=>{this.uri=t,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())})),s.ConnectionController.subscribeKey("wcError",(t=>this.error=t)),s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();const t=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let e=`Continue in ${this.name}`;return this.buffering&&(e="Connecting..."),this.error&&(e="Connection declined"),a.dy` +`;var O=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};class N extends a.oi{constructor(){super(),this.wallet=s.RouterController.state.data?.wallet,this.connector=s.RouterController.state.data?.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=s.fz.getWalletImage(this.wallet)??s.fz.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=s.ConnectionController.state.wcUri,this.error=s.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(s.ConnectionController.subscribeKey("wcUri",(t=>{this.uri=t,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())})),s.ConnectionController.subscribeKey("wcError",(t=>this.error=t)),s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();const t=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let e=`Continue in ${this.name}`;return this.buffering&&(e="Connecting..."),this.error&&(e="Connection declined"),a.dy` - `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(s.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){const t=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],e=t?parseInt(t.replace("px",""),10):4;return a.dy``}onCopyUri(){try{this.uri&&(s.j1.copyToClopboard(this.uri),s.SnackController.showSuccess("Link copied"))}catch{s.SnackController.showError("Failed to copy")}}}T.styles=P,O([(0,c.SB)()],T.prototype,"uri",void 0),O([(0,c.SB)()],T.prototype,"error",void 0),O([(0,c.SB)()],T.prototype,"ready",void 0),O([(0,c.SB)()],T.prototype,"showRetry",void 0),O([(0,c.SB)()],T.prototype,"buffering",void 0),O([(0,c.Cb)({type:Boolean})],T.prototype,"isMobile",void 0),O([(0,c.Cb)()],T.prototype,"onRetry",void 0);const N={INJECTED:"browser",ANNOUNCED:"browser"};let R=class extends T{constructor(){if(super(),!this.connector)throw new Error("w3m-connecting-view: No connector provided");s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:N[this.connector.type]??"external"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&s.MO.setConnectedWalletImageUrl(this.connector.imageUrl),await s.ConnectionController.connectExternal(this.connector),s.yD.state.isSiweEnabled?s.RouterController.push("ConnectingSiwe"):s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"external"}}))}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};R=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-external-view")],R);var B=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let j=class extends a.oi{constructor(){super(...arguments),this.dappName=s.OptionsController.state.metadata?.name,this.isSigning=!1}render(){return a.dy` + `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(s.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){const t=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],e=t?parseInt(t.replace("px",""),10):4;return a.dy``}onCopyUri(){try{this.uri&&(s.j1.copyToClopboard(this.uri),s.SnackController.showSuccess("Link copied"))}catch{s.SnackController.showError("Failed to copy")}}}N.styles=P,O([(0,c.SB)()],N.prototype,"uri",void 0),O([(0,c.SB)()],N.prototype,"error",void 0),O([(0,c.SB)()],N.prototype,"ready",void 0),O([(0,c.SB)()],N.prototype,"showRetry",void 0),O([(0,c.SB)()],N.prototype,"buffering",void 0),O([(0,c.Cb)({type:Boolean})],N.prototype,"isMobile",void 0),O([(0,c.Cb)()],N.prototype,"onRetry",void 0);const T={INJECTED:"browser",ANNOUNCED:"browser"};let R=class extends N{constructor(){if(super(),!this.connector)throw new Error("w3m-connecting-view: No connector provided");s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:T[this.connector.type]??"external"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&s.MO.setConnectedWalletImageUrl(this.connector.imageUrl),await s.ConnectionController.connectExternal(this.connector),s.yD.state.isSiweEnabled?s.RouterController.push("ConnectingSiwe"):s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"external"}}))}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};R=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-external-view")],R);var B=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let L=class extends a.oi{constructor(){super(...arguments),this.dappName=s.OptionsController.state.metadata?.name,this.isSigning=!1}render(){return a.dy` @@ -4549,10 +4549,10 @@ ${this.isSigning?"Signing...":"Sign"} - `}async onSign(){this.isSigning=!0,s.Xs.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track"});try{s.yD.setStatus("loading");const t=await s.yD.signIn();return s.yD.setStatus("success"),s.Xs.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track"}),t}catch(t){return s.SnackController.showError("Signature declined"),s.yD.setStatus("error"),s.Xs.sendEvent({event:"SIWE_AUTH_ERROR",type:"track"})}finally{this.isSigning=!1}}async onCancel(){const{isConnected:t}=s.AccountController.state;t?(await s.ConnectionController.disconnect(),s.IN.close()):s.RouterController.push("Connect"),s.Xs.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track"})}};B([(0,c.SB)()],j.prototype,"isSigning",void 0),j=B([(0,o.customElement)("w3m-connecting-siwe-view")],j);var L=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let U=class extends a.oi{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=s.RouterController.state.data?.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),s.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),a.dy` + `}async onSign(){this.isSigning=!0,s.Xs.sendEvent({event:"CLICK_SIGN_SIWE_MESSAGE",type:"track"});try{s.yD.setStatus("loading");const t=await s.yD.signIn();return s.yD.setStatus("success"),s.Xs.sendEvent({event:"SIWE_AUTH_SUCCESS",type:"track"}),t}catch(t){return s.SnackController.showError("Signature declined"),s.yD.setStatus("error"),s.Xs.sendEvent({event:"SIWE_AUTH_ERROR",type:"track"})}finally{this.isSigning=!1}}async onCancel(){const{isConnected:t}=s.AccountController.state;t?(await s.ConnectionController.disconnect(),s.IN.close()):s.RouterController.push("Connect"),s.Xs.sendEvent({event:"CLICK_CANCEL_SIWE",type:"track"})}};B([(0,c.SB)()],L.prototype,"isSigning",void 0),L=B([(0,o.customElement)("w3m-connecting-siwe-view")],L);var U=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let j=class extends a.oi{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=s.RouterController.state.data?.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),s.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),a.dy` ${this.headerTemplate()}
    ${this.platformTemplate()}
    - `):a.dy``}async initializeConnection(t=!1){try{const{wcPairingExpiry:e}=s.ConnectionController.state;if(t||s.j1.isPairingExpired(e)){if(s.ConnectionController.connectWalletConnect(),this.wallet){const t=s.fz.getWalletImage(this.wallet);t&&s.MO.setConnectedWalletImageUrl(t)}else{const t=s.ConnectorController.state.connectors.find((t=>"WALLET_CONNECT"===t.type)),e=s.fz.getConnectorImage(t);e&&s.MO.setConnectedWalletImageUrl(e)}await s.ConnectionController.state.wcPromise,this.finalizeConnection(),s.yD.state.isSiweEnabled?s.RouterController.push("ConnectingSiwe"):s.IN.close()}}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),s.ConnectionController.setWcError(!0),s.j1.isAllowedRetry(this.lastRetry)&&(s.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){const{wcLinking:t,recentWallet:e}=s.ConnectionController.state;t&&s.MO.setWalletConnectDeepLink(t),e&&s.MO.setWeb3ModalRecent(e),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:t?"mobile":"qrcode"}})}determinePlatforms(){if(!this.wallet)throw new Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;const{mobile_link:t,desktop_link:e,webapp_link:r,injected:n,rdns:i}=this.wallet,o=n?.map((({injected_id:t})=>t)).filter(Boolean),a=i?[i]:o??[],c=a.length,l=t,u=r,h=s.ConnectionController.checkInstalled(a),d=c&&h,p=e&&!s.j1.isMobile();d&&this.platforms.push("browser"),l&&this.platforms.push(s.j1.isMobile()?"mobile":"qrcode"),u&&this.platforms.push("web"),p&&this.platforms.push("desktop"),!d&&c&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return a.dy``;case"desktop":return a.dy` + `):a.dy``}async initializeConnection(t=!1){try{const{wcPairingExpiry:e}=s.ConnectionController.state;if(t||s.j1.isPairingExpired(e)){if(s.ConnectionController.connectWalletConnect(),this.wallet){const t=s.fz.getWalletImage(this.wallet);t&&s.MO.setConnectedWalletImageUrl(t)}else{const t=s.ConnectorController.state.connectors.find((t=>"WALLET_CONNECT"===t.type)),e=s.fz.getConnectorImage(t);e&&s.MO.setConnectedWalletImageUrl(e)}await s.ConnectionController.state.wcPromise,this.finalizeConnection(),s.yD.state.isSiweEnabled?s.RouterController.push("ConnectingSiwe"):s.IN.close()}}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),s.ConnectionController.setWcError(!0),s.j1.isAllowedRetry(this.lastRetry)&&(s.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){const{wcLinking:t,recentWallet:e}=s.ConnectionController.state;t&&s.MO.setWalletConnectDeepLink(t),e&&s.MO.setWeb3ModalRecent(e),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:t?"mobile":"qrcode"}})}determinePlatforms(){if(!this.wallet)throw new Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;const{mobile_link:t,desktop_link:e,webapp_link:r,injected:n,rdns:i}=this.wallet,o=n?.map((({injected_id:t})=>t)).filter(Boolean),a=i?[i]:o??[],c=a.length,l=t,u=r,h=s.ConnectionController.checkInstalled(a),d=c&&h,f=e&&!s.j1.isMobile();d&&this.platforms.push("browser"),l&&this.platforms.push(s.j1.isMobile()?"mobile":"qrcode"),u&&this.platforms.push("web"),f&&this.platforms.push("desktop"),!d&&c&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return a.dy``;case"desktop":return a.dy` this.initializeConnection(!0)}> `;case"web":return a.dy` @@ -4567,7 +4567,7 @@ .onSelectPlatfrom=${this.onSelectPlatform.bind(this)} > - `:null}async onSelectPlatform(t){const e=this.shadowRoot?.querySelector("div");e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=t,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};L([(0,c.SB)()],U.prototype,"platform",void 0),L([(0,c.SB)()],U.prototype,"platforms",void 0),U=L([(0,o.customElement)("w3m-connecting-wc-view")],U);let D=class extends a.oi{constructor(){super(...arguments),this.wallet=s.RouterController.state.data?.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return a.dy` + `:null}async onSelectPlatform(t){const e=this.shadowRoot?.querySelector("div");e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=t,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};U([(0,c.SB)()],j.prototype,"platform",void 0),U([(0,c.SB)()],j.prototype,"platforms",void 0),j=U([(0,o.customElement)("w3m-connecting-wc-view")],j);let D=class extends a.oi{constructor(){super(...arguments),this.wallet=s.RouterController.state.data?.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return a.dy` ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} ${this.homepageTemplate()} @@ -4606,7 +4606,7 @@ > Website - `:null}onChromeStore(){this.wallet?.chrome_store&&s.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};D=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-downloads-view")],D);let $=class extends a.oi{render(){return a.dy` + `:null}onChromeStore(){this.wallet?.chrome_store&&s.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};D=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-downloads-view")],D);let F=class extends a.oi{render(){return a.dy` ${this.recommendedWalletsTemplate()} {s.j1.openHref(t.homepage??"https://walletconnect.com/explorer","_blank")}} > - `))}};$=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-get-wallet-view")],$);const F=a.iv` + `))}};F=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-get-wallet-view")],F);const z=a.iv` @keyframes shake { 0% { transform: translateX(0); @@ -4678,7 +4678,7 @@ display: block; opacity: 1; } -`;var z=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let H=class extends a.oi{constructor(){super(),this.network=s.RouterController.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw new Error("w3m-network-switch-view: No network provided");this.onShowRetry();const t=this.error?"Switch declined":"Approve in wallet",e=this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet";return a.dy` +`;var H=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $=class extends a.oi{constructor(){super(),this.network=s.RouterController.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw new Error("w3m-network-switch-view: No network provided");this.onShowRetry();const t=this.error?"Switch declined":"Approve in wallet",e=this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet";return a.dy` - `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await s.NetworkController.switchActiveNetwork(this.network),s.yD.state.isSiweEnabled||s._4.navigateAfterNetworkSwitch())}catch{this.error=!0}}};H.styles=F,z([(0,c.SB)()],H.prototype,"showRetry",void 0),z([(0,c.SB)()],H.prototype,"error",void 0),H=z([(0,o.customElement)("w3m-network-switch-view")],H);const W=a.iv` + `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await s.NetworkController.switchActiveNetwork(this.network),s.yD.state.isSiweEnabled||s._4.navigateAfterNetworkSwitch())}catch{this.error=!0}}};$.styles=z,H([(0,c.SB)()],$.prototype,"showRetry",void 0),H([(0,c.SB)()],$.prototype,"error",void 0),$=H([(0,o.customElement)("w3m-network-switch-view")],$);const q=a.iv` :host > wui-grid { max-height: 360px; overflow: auto; @@ -4729,7 +4729,7 @@ wui-grid::-webkit-scrollbar { display: none; } -`;var q=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let V=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.caipNetwork=s.NetworkController.state.caipNetwork,this.unsubscribe.push(s.NetworkController.subscribeKey("caipNetwork",(t=>this.caipNetwork=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` +`;var W=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let V=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.caipNetwork=s.NetworkController.state.caipNetwork,this.unsubscribe.push(s.NetworkController.subscribeKey("caipNetwork",(t=>this.caipNetwork=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` ${this.networksTemplate()} @@ -4755,14 +4755,14 @@ .disabled=${!r&&!n?.includes(t.id)} data-testid=${`w3m-network-switch-${t.name??t.id}`} > - `))}async onSwitchNetwork(t){const{isConnected:e}=s.AccountController.state,{approvedCaipNetworkIds:r,supportsAllNetworks:n,caipNetwork:i}=s.NetworkController.state,{data:o}=s.RouterController.state;e&&i?.id!==t.id?r?.includes(t.id)?(await s.NetworkController.switchActiveNetwork(t),s._4.navigateAfterNetworkSwitch()):n&&s.RouterController.push("SwitchNetwork",{...o,network:t}):e||(s.NetworkController.setCaipNetwork(t),s.RouterController.push("Connect"))}};V.styles=W,q([(0,c.SB)()],V.prototype,"caipNetwork",void 0),V=q([(0,o.customElement)("w3m-networks-view")],V);var G=r(10248);const K=a.iv` + `))}async onSwitchNetwork(t){const{isConnected:e}=s.AccountController.state,{approvedCaipNetworkIds:r,supportsAllNetworks:n,caipNetwork:i}=s.NetworkController.state,{data:o}=s.RouterController.state;e&&i?.id!==t.id?r?.includes(t.id)?(await s.NetworkController.switchActiveNetwork(t),s._4.navigateAfterNetworkSwitch()):n&&s.RouterController.push("SwitchNetwork",{...o,network:t}):e||(s.NetworkController.setCaipNetwork(t),s.RouterController.push("Connect"))}};V.styles=q,W([(0,c.SB)()],V.prototype,"caipNetwork",void 0),V=W([(0,o.customElement)("w3m-networks-view")],V);var G=r(10248);const K=a.iv` :host > wui-flex:first-child { height: 500px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; } -`;var Z=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const J="last-transaction";let Q=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.address=s.AccountController.state.address,this.transactions=s.sl.state.transactions,this.transactionsByYear=s.sl.state.transactionsByYear,this.loading=s.sl.state.loading,this.empty=s.sl.state.empty,this.next=s.sl.state.next,this.unsubscribe.push(s.AccountController.subscribe((t=>{t.isConnected&&this.address!==t.address&&(this.address=t.address,s.sl.resetTransactions(),s.sl.fetchTransactions(t.address))})),s.sl.subscribe((t=>{this.transactions=t.transactions,this.transactionsByYear=t.transactionsByYear,this.loading=t.loading,this.empty=t.empty,this.next=t.next})))}firstUpdated(){0===this.transactions.length&&s.sl.fetchTransactions(this.address),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` +`;var Z=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const Q="last-transaction";let J=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.address=s.AccountController.state.address,this.transactions=s.sl.state.transactions,this.transactionsByYear=s.sl.state.transactionsByYear,this.loading=s.sl.state.loading,this.empty=s.sl.state.empty,this.next=s.sl.state.next,this.unsubscribe.push(s.AccountController.subscribe((t=>{t.isConnected&&this.address!==t.address&&(this.address=t.address,s.sl.resetTransactions(),s.sl.fetchTransactions(t.address))})),s.sl.subscribe((t=>{this.transactions=t.transactions,this.transactionsByYear=t.transactionsByYear,this.loading=t.loading,this.empty=t.empty,this.next=t.next})))}firstUpdated(){0===this.transactions.length&&s.sl.fetchTransactions(this.address),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` ${this.empty?null:this.templateTransactionsByYear()} ${this.loading?this.templateLoading():null} @@ -4784,7 +4784,7 @@ `:null}))}templateRenderTransaction(t,e){const{date:r,descriptions:n,direction:i,isAllNFT:s,images:c,status:l,transfers:u,type:h}=this.getTransactionListItemProps(t),d=u?.length>1;return 2!==u?.length||s?d?u.map(((t,n)=>{const i=o.TransactionUtil.getTransferDescription(t),s=e&&n===u.length-1;return a.dy` - `}templateLoading(){return Array(7).fill(a.dy` `).map((t=>t))}createPaginationObserver(){const{projectId:t}=s.OptionsController.state;this.paginationObserver=new IntersectionObserver((([e])=>{e?.isIntersecting&&!this.loading&&(s.sl.fetchTransactions(this.address),s.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:t,cursor:this.next}}))}),{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();const t=this.shadowRoot?.querySelector(`#${J}`);t&&this.paginationObserver?.observe(t)}getTransactionListItemProps(t){const e=G.E.getRelativeDateFromNow(t?.metadata?.minedAt),r=o.TransactionUtil.getTransactionDescriptions(t),n=t?.transfers,i=t?.transfers?.[0],s=Boolean(i)&&t?.transfers?.every((t=>Boolean(t.nft_info))),a=o.TransactionUtil.getTransactionImages(n);return{date:e,direction:i?.direction,descriptions:r,isAllNFT:s,images:a,status:t.metadata?.status,transfers:n,type:t.metadata?.operationType}}};Q.styles=K,Z([(0,c.SB)()],Q.prototype,"address",void 0),Z([(0,c.SB)()],Q.prototype,"transactions",void 0),Z([(0,c.SB)()],Q.prototype,"transactionsByYear",void 0),Z([(0,c.SB)()],Q.prototype,"loading",void 0),Z([(0,c.SB)()],Q.prototype,"empty",void 0),Z([(0,c.SB)()],Q.prototype,"next",void 0),Q=Z([(0,o.customElement)("w3m-transactions-view")],Q);const Y=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let X=class extends a.oi{render(){return a.dy` + `}templateLoading(){return Array(7).fill(a.dy` `).map((t=>t))}createPaginationObserver(){const{projectId:t}=s.OptionsController.state;this.paginationObserver=new IntersectionObserver((([e])=>{e?.isIntersecting&&!this.loading&&(s.sl.fetchTransactions(this.address),s.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:t,cursor:this.next}}))}),{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();const t=this.shadowRoot?.querySelector(`#${Q}`);t&&this.paginationObserver?.observe(t)}getTransactionListItemProps(t){const e=G.E.getRelativeDateFromNow(t?.metadata?.minedAt),r=o.TransactionUtil.getTransactionDescriptions(t),n=t?.transfers,i=t?.transfers?.[0],s=Boolean(i)&&t?.transfers?.every((t=>Boolean(t.nft_info))),a=o.TransactionUtil.getTransactionImages(n);return{date:e,direction:i?.direction,descriptions:r,isAllNFT:s,images:a,status:t.metadata?.status,transfers:n,type:t.metadata?.operationType}}};J.styles=K,Z([(0,c.SB)()],J.prototype,"address",void 0),Z([(0,c.SB)()],J.prototype,"transactions",void 0),Z([(0,c.SB)()],J.prototype,"transactionsByYear",void 0),Z([(0,c.SB)()],J.prototype,"loading",void 0),Z([(0,c.SB)()],J.prototype,"empty",void 0),Z([(0,c.SB)()],J.prototype,"next",void 0),J=Z([(0,o.customElement)("w3m-transactions-view")],J);const Y=[{images:["network","layers","system"],title:"The system’s nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}];let X=class extends a.oi{render(){return a.dy` t,t.assertIs=function(t){},t.assertNever=function(t){throw new Error},t.arrayToEnum=t=>{const e={};for(const r of t)e[r]=r;return e},t.getValidEnumValues=e=>{const r=t.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const t of r)n[t]=e[t];return t.objectValues(n)},t.objectValues=e=>t.objectKeys(e).map((function(t){return e[t]})),t.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e},t.find=(t,e)=>{for(const r of t)if(e(r))return r},t.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&isFinite(t)&&Math.floor(t)===t,t.joinValues=function(t,e=" | "){return t.map((t=>"string"==typeof t?`'${t}'`:t)).join(e)},t.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e}(it||(it={})),function(t){t.mergeShapes=(t,e)=>({...t,...e})}(st||(st={}));const ot=it.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),at=t=>{switch(typeof t){case"undefined":return ot.undefined;case"string":return ot.string;case"number":return isNaN(t)?ot.nan:ot.number;case"boolean":return ot.boolean;case"function":return ot.function;case"bigint":return ot.bigint;case"symbol":return ot.symbol;case"object":return Array.isArray(t)?ot.array:null===t?ot.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?ot.promise:"undefined"!=typeof Map&&t instanceof Map?ot.map:"undefined"!=typeof Set&&t instanceof Set?ot.set:"undefined"!=typeof Date&&t instanceof Date?ot.date:ot.object;default:return ot.unknown}},ct=it.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class lt extends Error{constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const e=t||function(t){return t.message},r={_errors:[]},n=t=>{for(const i of t.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(e(i));else{let t=r,n=0;for(;nt.message)){const e={},r=[];for(const n of this.issues)n.path.length>0?(e[n.path[0]]=e[n.path[0]]||[],e[n.path[0]].push(t(n))):r.push(t(n));return{formErrors:r,fieldErrors:e}}get formErrors(){return this.flatten()}}lt.create=t=>new lt(t);const ut=(t,e)=>{let r;switch(t.code){case ct.invalid_type:r=t.received===ot.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case ct.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,it.jsonStringifyReplacer)}`;break;case ct.unrecognized_keys:r=`Unrecognized key(s) in object: ${it.joinValues(t.keys,", ")}`;break;case ct.invalid_union:r="Invalid input";break;case ct.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${it.joinValues(t.options)}`;break;case ct.invalid_enum_value:r=`Invalid enum value. Expected ${it.joinValues(t.options)}, received '${t.received}'`;break;case ct.invalid_arguments:r="Invalid function arguments";break;case ct.invalid_return_type:r="Invalid function return type";break;case ct.invalid_date:r="Invalid date";break;case ct.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:it.assertNever(t.validation):r="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case ct.too_small:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case ct.too_big:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case ct.custom:r="Invalid input";break;case ct.invalid_intersection_types:r="Intersection results could not be merged";break;case ct.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ct.not_finite:r="Number must be finite";break;default:r=e.defaultError,it.assertNever(t)}return{message:r}};let ht=ut;function dt(){return ht}const pt=t=>{const{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};let a="";const c=n.filter((t=>!!t)).slice().reverse();for(const t of c)a=t(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}};function ft(t,e){const r=pt({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dt(),ut].filter((t=>!!t))});t.common.issues.push(r)}class mt{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){const r=[];for(const n of e){if("aborted"===n.status)return gt;"dirty"===n.status&&t.dirty(),r.push(n.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,e){const r=[];for(const t of e)r.push({key:await t.key,value:await t.value});return mt.mergeObjectSync(t,r)}static mergeObjectSync(t,e){const r={};for(const n of e){const{key:e,value:i}=n;if("aborted"===e.status)return gt;if("aborted"===i.status)return gt;"dirty"===e.status&&t.dirty(),"dirty"===i.status&&t.dirty(),"__proto__"===e.value||void 0===i.value&&!n.alwaysSet||(r[e.value]=i.value)}return{status:t.value,value:r}}}const gt=Object.freeze({status:"aborted"}),yt=t=>({status:"dirty",value:t}),wt=t=>({status:"valid",value:t}),bt=t=>"aborted"===t.status,vt=t=>"dirty"===t.status,Et=t=>"valid"===t.status,xt=t=>"undefined"!=typeof Promise&&t instanceof Promise;var _t;!function(t){t.errToObj=t=>"string"==typeof t?{message:t}:t||{},t.toString=t=>"string"==typeof t?t:null==t?void 0:t.message}(_t||(_t={}));class At{constructor(t,e,r,n){this._cachedPath=[],this.parent=t,this.data=e,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const kt=(t,e)=>{if(Et(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new lt(t.common.issues);return this._error=e,this._error}}};function St(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return e?{errorMap:e,description:i}:{errorMap:(t,e)=>"invalid_type"!==t.code?{message:e.defaultError}:void 0===e.data?{message:null!=n?n:e.defaultError}:{message:null!=r?r:e.defaultError},description:i}}class Ct{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return at(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:at(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new mt,ctx:{common:t.parent.common,data:t.data,parsedType:at(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(xt(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const r=this.safeParse(t,e);if(r.success)return r.data;throw r.error}safeParse(t,e){var r;const n={common:{issues:[],async:null!==(r=null==e?void 0:e.async)&&void 0!==r&&r,contextualErrorMap:null==e?void 0:e.errorMap},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:at(t)},i=this._parseSync({data:t,path:n.path,parent:n});return kt(n,i)}async parseAsync(t,e){const r=await this.safeParseAsync(t,e);if(r.success)return r.data;throw r.error}async safeParseAsync(t,e){const r={common:{issues:[],contextualErrorMap:null==e?void 0:e.errorMap,async:!0},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:at(t)},n=this._parse({data:t,path:r.path,parent:r}),i=await(xt(n)?n:Promise.resolve(n));return kt(r,i)}refine(t,e){const r=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement(((e,n)=>{const i=t(e),s=()=>n.addIssue({code:ct.custom,...r(e)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then((t=>!!t||(s(),!1))):!!i||(s(),!1)}))}refinement(t,e){return this._refinement(((r,n)=>!!t(r)||(n.addIssue("function"==typeof e?e(r,n):e),!1)))}_refinement(t){return new fe({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return me.create(this,this._def)}nullable(){return ge.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zt.create(this,this._def)}promise(){return pe.create(this,this._def)}or(t){return Yt.create([this,t],this._def)}and(t){return re.create(this,t,this._def)}transform(t){return new fe({...St(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e="function"==typeof t?t:()=>t;return new ye({...St(this._def),innerType:this,defaultValue:e,typeName:Se.ZodDefault})}brand(){return new Ee({typeName:Se.ZodBranded,type:this,...St(this._def)})}catch(t){const e="function"==typeof t?t:()=>t;return new we({...St(this._def),innerType:this,catchValue:e,typeName:Se.ZodCatch})}describe(t){return new(0,this.constructor)({...this._def,description:t})}pipe(t){return xe.create(this,t)}readonly(){return _e.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Mt=/^c[^\s-]{8,}$/i,It=/^[a-z][a-z0-9]*$/,Pt=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ot=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Tt=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Nt;const Rt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Bt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class jt extends Ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ot.string){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.string,received:e.parsedType}),gt}const e=new mt;let r;for(const o of this._def.checks)if("min"===o.kind)t.data.lengtho.value&&(r=this._getOrReturnCtx(t,r),ft(r,{code:ct.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),e.dirty());else if("length"===o.kind){const n=t.data.length>o.value,i=t.data.lengtht.test(e)),{validation:e,code:ct.invalid_string,..._t.errToObj(r)})}_addCheck(t){return new jt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._t.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._t.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._t.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._t.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._t.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._t.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._t.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._t.errToObj(t)})}datetime(t){var e;return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===(null==t?void 0:t.precision)?null:null==t?void 0:t.precision,offset:null!==(e=null==t?void 0:t.offset)&&void 0!==e&&e,..._t.errToObj(null==t?void 0:t.message)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,..._t.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:null==e?void 0:e.position,..._t.errToObj(null==e?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,..._t.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,..._t.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,..._t.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,..._t.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,..._t.errToObj(e)})}nonempty(t){return this.min(1,_t.errToObj(t))}trim(){return new jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new jt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((t=>"datetime"===t.kind))}get isEmail(){return!!this._def.checks.find((t=>"email"===t.kind))}get isURL(){return!!this._def.checks.find((t=>"url"===t.kind))}get isEmoji(){return!!this._def.checks.find((t=>"emoji"===t.kind))}get isUUID(){return!!this._def.checks.find((t=>"uuid"===t.kind))}get isCUID(){return!!this._def.checks.find((t=>"cuid"===t.kind))}get isCUID2(){return!!this._def.checks.find((t=>"cuid2"===t.kind))}get isULID(){return!!this._def.checks.find((t=>"ulid"===t.kind))}get isIP(){return!!this._def.checks.find((t=>"ip"===t.kind))}get minLength(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuen?r:n;return parseInt(t.toFixed(i).replace(".",""))%parseInt(e.toFixed(i).replace(".",""))/Math.pow(10,i)}jt.create=t=>{var e;return new jt({checks:[],typeName:Se.ZodString,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...St(t)})};class Ut extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ot.number){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.number,received:e.parsedType}),gt}let e;const r=new mt;for(const n of this._def.checks)"int"===n.kind?it.isInteger(t.data)||(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?t.datan.value:t.data>=n.value)&&(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==Lt(t.data,n.value)&&(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(t.data)||(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.not_finite,message:n.message}),r.dirty()):it.assertNever(n);return{status:r.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,_t.toString(e))}gt(t,e){return this.setLimit("min",t,!1,_t.toString(e))}lte(t,e){return this.setLimit("max",t,!0,_t.toString(e))}lt(t,e){return this.setLimit("max",t,!1,_t.toString(e))}setLimit(t,e,r,n){return new Ut({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:_t.toString(n)}]})}_addCheck(t){return new Ut({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_t.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_t.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:_t.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:_t.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_t.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_t.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value"int"===t.kind||"multipleOf"===t.kind&&it.isInteger(t.value)))}get isFinite(){let t=null,e=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===e||r.value>e)&&(e=r.value):"max"===r.kind&&(null===t||r.valuenew Ut({checks:[],typeName:Se.ZodNumber,coerce:(null==t?void 0:t.coerce)||!1,...St(t)});class Dt extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ot.bigint){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.bigint,received:e.parsedType}),gt}let e;const r=new mt;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?t.datan.value:t.data>=n.value)&&(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?t.data%n.value!==BigInt(0)&&(e=this._getOrReturnCtx(t,e),ft(e,{code:ct.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):it.assertNever(n);return{status:r.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,_t.toString(e))}gt(t,e){return this.setLimit("min",t,!1,_t.toString(e))}lte(t,e){return this.setLimit("max",t,!0,_t.toString(e))}lt(t,e){return this.setLimit("max",t,!1,_t.toString(e))}setLimit(t,e,r,n){return new Dt({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:_t.toString(n)}]})}_addCheck(t){return new Dt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_t.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:_t.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value{var e;return new Dt({checks:[],typeName:Se.ZodBigInt,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...St(t)})};class $t extends Ct{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==ot.boolean){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.boolean,received:e.parsedType}),gt}return wt(t.data)}}$t.create=t=>new $t({typeName:Se.ZodBoolean,coerce:(null==t?void 0:t.coerce)||!1,...St(t)});class Ft extends Ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ot.date){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.date,received:e.parsedType}),gt}if(isNaN(t.data.getTime()))return ft(this._getOrReturnCtx(t),{code:ct.invalid_date}),gt;const e=new mt;let r;for(const n of this._def.checks)"min"===n.kind?t.data.getTime()n.value&&(r=this._getOrReturnCtx(t,r),ft(r,{code:ct.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),e.dirty()):it.assertNever(n);return{status:e.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ft({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:_t.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:_t.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuenew Ft({checks:[],coerce:(null==t?void 0:t.coerce)||!1,typeName:Se.ZodDate,...St(t)});class zt extends Ct{_parse(t){if(this._getType(t)!==ot.symbol){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.symbol,received:e.parsedType}),gt}return wt(t.data)}}zt.create=t=>new zt({typeName:Se.ZodSymbol,...St(t)});class Ht extends Ct{_parse(t){if(this._getType(t)!==ot.undefined){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.undefined,received:e.parsedType}),gt}return wt(t.data)}}Ht.create=t=>new Ht({typeName:Se.ZodUndefined,...St(t)});class Wt extends Ct{_parse(t){if(this._getType(t)!==ot.null){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.null,received:e.parsedType}),gt}return wt(t.data)}}Wt.create=t=>new Wt({typeName:Se.ZodNull,...St(t)});class qt extends Ct{constructor(){super(...arguments),this._any=!0}_parse(t){return wt(t.data)}}qt.create=t=>new qt({typeName:Se.ZodAny,...St(t)});class Vt extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wt(t.data)}}Vt.create=t=>new Vt({typeName:Se.ZodUnknown,...St(t)});class Gt extends Ct{_parse(t){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.never,received:e.parsedType}),gt}}Gt.create=t=>new Gt({typeName:Se.ZodNever,...St(t)});class Kt extends Ct{_parse(t){if(this._getType(t)!==ot.undefined){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.void,received:e.parsedType}),gt}return wt(t.data)}}Kt.create=t=>new Kt({typeName:Se.ZodVoid,...St(t)});class Zt extends Ct{_parse(t){const{ctx:e,status:r}=this._processInputParams(t),n=this._def;if(e.parsedType!==ot.array)return ft(e,{code:ct.invalid_type,expected:ot.array,received:e.parsedType}),gt;if(null!==n.exactLength){const t=e.data.length>n.exactLength.value,i=e.data.lengthn.maxLength.value&&(ft(e,{code:ct.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),e.common.async)return Promise.all([...e.data].map(((t,r)=>n.type._parseAsync(new At(e,t,e.path,r))))).then((t=>mt.mergeArray(r,t)));const i=[...e.data].map(((t,r)=>n.type._parseSync(new At(e,t,e.path,r))));return mt.mergeArray(r,i)}get element(){return this._def.type}min(t,e){return new Zt({...this._def,minLength:{value:t,message:_t.toString(e)}})}max(t,e){return new Zt({...this._def,maxLength:{value:t,message:_t.toString(e)}})}length(t,e){return new Zt({...this._def,exactLength:{value:t,message:_t.toString(e)}})}nonempty(t){return this.min(1,t)}}function Jt(t){if(t instanceof Qt){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=me.create(Jt(n))}return new Qt({...t._def,shape:()=>e})}return t instanceof Zt?new Zt({...t._def,type:Jt(t.element)}):t instanceof me?me.create(Jt(t.unwrap())):t instanceof ge?ge.create(Jt(t.unwrap())):t instanceof ne?ne.create(t.items.map((t=>Jt(t)))):t}Zt.create=(t,e)=>new Zt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...St(e)});class Qt extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),e=it.objectKeys(t);return this._cached={shape:t,keys:e}}_parse(t){if(this._getType(t)!==ot.object){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.object,received:e.parsedType}),gt}const{status:e,ctx:r}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Gt&&"strip"===this._def.unknownKeys))for(const t in r.data)i.includes(t)||s.push(t);const o=[];for(const t of i){const e=n[t],i=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new At(r,i,r.path,t)),alwaysSet:t in r.data})}if(this._def.catchall instanceof Gt){const t=this._def.unknownKeys;if("passthrough"===t)for(const t of s)o.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===t)s.length>0&&(ft(r,{code:ct.unrecognized_keys,keys:s}),e.dirty());else if("strip"!==t)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const t=this._def.catchall;for(const e of s){const n=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new At(r,n,r.path,e)),alwaysSet:e in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const t=[];for(const e of o){const r=await e.key;t.push({key:r,value:await e.value,alwaysSet:e.alwaysSet})}return t})).then((t=>mt.mergeObjectSync(e,t))):mt.mergeObjectSync(e,o)}get shape(){return this._def.shape()}strict(t){return _t.errToObj,new Qt({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,r)=>{var n,i,s,o;const a=null!==(s=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,e,r).message)&&void 0!==s?s:r.defaultError;return"unrecognized_keys"===e.code?{message:null!==(o=_t.errToObj(t).message)&&void 0!==o?o:a}:{message:a}}}:{}})}strip(){return new Qt({...this._def,unknownKeys:"strip"})}passthrough(){return new Qt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Qt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Qt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Se.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new Qt({...this._def,catchall:t})}pick(t){const e={};return it.objectKeys(t).forEach((r=>{t[r]&&this.shape[r]&&(e[r]=this.shape[r])})),new Qt({...this._def,shape:()=>e})}omit(t){const e={};return it.objectKeys(this.shape).forEach((r=>{t[r]||(e[r]=this.shape[r])})),new Qt({...this._def,shape:()=>e})}deepPartial(){return Jt(this)}partial(t){const e={};return it.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];t&&!t[r]?e[r]=n:e[r]=n.optional()})),new Qt({...this._def,shape:()=>e})}required(t){const e={};return it.objectKeys(this.shape).forEach((r=>{if(t&&!t[r])e[r]=this.shape[r];else{let t=this.shape[r];for(;t instanceof me;)t=t._def.innerType;e[r]=t}})),new Qt({...this._def,shape:()=>e})}keyof(){return ue(it.objectKeys(this.shape))}}Qt.create=(t,e)=>new Qt({shape:()=>t,unknownKeys:"strip",catchall:Gt.create(),typeName:Se.ZodObject,...St(e)}),Qt.strictCreate=(t,e)=>new Qt({shape:()=>t,unknownKeys:"strict",catchall:Gt.create(),typeName:Se.ZodObject,...St(e)}),Qt.lazycreate=(t,e)=>new Qt({shape:t,unknownKeys:"strip",catchall:Gt.create(),typeName:Se.ZodObject,...St(e)});class Yt extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r=this._def.options;if(e.common.async)return Promise.all(r.map((async t=>{const r={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:r}),ctx:r}}))).then((function(t){for(const e of t)if("valid"===e.result.status)return e.result;for(const r of t)if("dirty"===r.result.status)return e.common.issues.push(...r.ctx.common.issues),r.result;const r=t.map((t=>new lt(t.ctx.common.issues)));return ft(e,{code:ct.invalid_union,unionErrors:r}),gt}));{let t;const n=[];for(const i of r){const r={...e,common:{...e.common,issues:[]},parent:null},s=i._parseSync({data:e.data,path:e.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||t||(t={result:s,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(t)return e.common.issues.push(...t.ctx.common.issues),t.result;const i=n.map((t=>new lt(t)));return ft(e,{code:ct.invalid_union,unionErrors:i}),gt}}get options(){return this._def.options}}Yt.create=(t,e)=>new Yt({options:t,typeName:Se.ZodUnion,...St(e)});const Xt=t=>t instanceof ce?Xt(t.schema):t instanceof fe?Xt(t.innerType()):t instanceof le?[t.value]:t instanceof he?t.options:t instanceof de?Object.keys(t.enum):t instanceof ye?Xt(t._def.innerType):t instanceof Ht?[void 0]:t instanceof Wt?[null]:null;class te extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.object)return ft(e,{code:ct.invalid_type,expected:ot.object,received:e.parsedType}),gt;const r=this.discriminator,n=e.data[r],i=this.optionsMap.get(n);return i?e.common.async?i._parseAsync({data:e.data,path:e.path,parent:e}):i._parseSync({data:e.data,path:e.path,parent:e}):(ft(e,{code:ct.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),gt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,e,r){const n=new Map;for(const r of e){const e=Xt(r.shape[t]);if(!e)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const i of e){if(n.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);n.set(i,r)}}return new te({typeName:Se.ZodDiscriminatedUnion,discriminator:t,options:e,optionsMap:n,...St(r)})}}function ee(t,e){const r=at(t),n=at(e);if(t===e)return{valid:!0,data:t};if(r===ot.object&&n===ot.object){const r=it.objectKeys(e),n=it.objectKeys(t).filter((t=>-1!==r.indexOf(t))),i={...t,...e};for(const r of n){const n=ee(t[r],e[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===ot.array&&n===ot.array){if(t.length!==e.length)return{valid:!1};const r=[];for(let n=0;n{if(bt(t)||bt(n))return gt;const i=ee(t.value,n.value);return i.valid?((vt(t)||vt(n))&&e.dirty(),{status:e.value,value:i.data}):(ft(r,{code:ct.invalid_intersection_types}),gt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([t,e])=>n(t,e))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}re.create=(t,e,r)=>new re({left:t,right:e,typeName:Se.ZodIntersection,...St(r)});class ne extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.array)return ft(r,{code:ct.invalid_type,expected:ot.array,received:r.parsedType}),gt;if(r.data.lengththis._def.items.length&&(ft(r,{code:ct.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const n=[...r.data].map(((t,e)=>{const n=this._def.items[e]||this._def.rest;return n?n._parse(new At(r,t,r.path,e)):null})).filter((t=>!!t));return r.common.async?Promise.all(n).then((t=>mt.mergeArray(e,t))):mt.mergeArray(e,n)}get items(){return this._def.items}rest(t){return new ne({...this._def,rest:t})}}ne.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ne({items:t,typeName:Se.ZodTuple,rest:null,...St(e)})};class ie extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.object)return ft(r,{code:ct.invalid_type,expected:ot.object,received:r.parsedType}),gt;const n=[],i=this._def.keyType,s=this._def.valueType;for(const t in r.data)n.push({key:i._parse(new At(r,t,r.path,t)),value:s._parse(new At(r,r.data[t],r.path,t))});return r.common.async?mt.mergeObjectAsync(e,n):mt.mergeObjectSync(e,n)}get element(){return this._def.valueType}static create(t,e,r){return new ie(e instanceof Ct?{keyType:t,valueType:e,typeName:Se.ZodRecord,...St(r)}:{keyType:jt.create(),valueType:t,typeName:Se.ZodRecord,...St(e)})}}class se extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.map)return ft(r,{code:ct.invalid_type,expected:ot.map,received:r.parsedType}),gt;const n=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map((([t,e],s)=>({key:n._parse(new At(r,t,r.path,[s,"key"])),value:i._parse(new At(r,e,r.path,[s,"value"]))})));if(r.common.async){const t=new Map;return Promise.resolve().then((async()=>{for(const r of s){const n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return gt;"dirty"!==n.status&&"dirty"!==i.status||e.dirty(),t.set(n.value,i.value)}return{status:e.value,value:t}}))}{const t=new Map;for(const r of s){const n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return gt;"dirty"!==n.status&&"dirty"!==i.status||e.dirty(),t.set(n.value,i.value)}return{status:e.value,value:t}}}}se.create=(t,e,r)=>new se({valueType:e,keyType:t,typeName:Se.ZodMap,...St(r)});class oe extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.set)return ft(r,{code:ct.invalid_type,expected:ot.set,received:r.parsedType}),gt;const n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&(ft(r,{code:ct.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),e.dirty());const i=this._def.valueType;function s(t){const r=new Set;for(const n of t){if("aborted"===n.status)return gt;"dirty"===n.status&&e.dirty(),r.add(n.value)}return{status:e.value,value:r}}const o=[...r.data.values()].map(((t,e)=>i._parse(new At(r,t,r.path,e))));return r.common.async?Promise.all(o).then((t=>s(t))):s(o)}min(t,e){return new oe({...this._def,minSize:{value:t,message:_t.toString(e)}})}max(t,e){return new oe({...this._def,maxSize:{value:t,message:_t.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}oe.create=(t,e)=>new oe({valueType:t,minSize:null,maxSize:null,typeName:Se.ZodSet,...St(e)});class ae extends Ct{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.function)return ft(e,{code:ct.invalid_type,expected:ot.function,received:e.parsedType}),gt;function r(t,r){return pt({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,dt(),ut].filter((t=>!!t)),issueData:{code:ct.invalid_arguments,argumentsError:r}})}function n(t,r){return pt({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,dt(),ut].filter((t=>!!t)),issueData:{code:ct.invalid_return_type,returnTypeError:r}})}const i={errorMap:e.common.contextualErrorMap},s=e.data;if(this._def.returns instanceof pe){const t=this;return wt((async function(...e){const o=new lt([]),a=await t._def.args.parseAsync(e,i).catch((t=>{throw o.addIssue(r(e,t)),o})),c=await Reflect.apply(s,this,a);return await t._def.returns._def.type.parseAsync(c,i).catch((t=>{throw o.addIssue(n(c,t)),o}))}))}{const t=this;return wt((function(...e){const o=t._def.args.safeParse(e,i);if(!o.success)throw new lt([r(e,o.error)]);const a=Reflect.apply(s,this,o.data),c=t._def.returns.safeParse(a,i);if(!c.success)throw new lt([n(a,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ae({...this._def,args:ne.create(t).rest(Vt.create())})}returns(t){return new ae({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,e,r){return new ae({args:t||ne.create([]).rest(Vt.create()),returns:e||Vt.create(),typeName:Se.ZodFunction,...St(r)})}}class ce extends Ct{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}ce.create=(t,e)=>new ce({getter:t,typeName:Se.ZodLazy,...St(e)});class le extends Ct{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return ft(e,{received:e.data,code:ct.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:t.data}}get value(){return this._def.value}}function ue(t,e){return new he({values:t,typeName:Se.ZodEnum,...St(e)})}le.create=(t,e)=>new le({value:t,typeName:Se.ZodLiteral,...St(e)});class he extends Ct{_parse(t){if("string"!=typeof t.data){const e=this._getOrReturnCtx(t),r=this._def.values;return ft(e,{expected:it.joinValues(r),received:e.parsedType,code:ct.invalid_type}),gt}if(-1===this._def.values.indexOf(t.data)){const e=this._getOrReturnCtx(t),r=this._def.values;return ft(e,{received:e.data,code:ct.invalid_enum_value,options:r}),gt}return wt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t){return he.create(t)}exclude(t){return he.create(this.options.filter((e=>!t.includes(e))))}}he.create=ue;class de extends Ct{_parse(t){const e=it.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ot.string&&r.parsedType!==ot.number){const t=it.objectValues(e);return ft(r,{expected:it.joinValues(t),received:r.parsedType,code:ct.invalid_type}),gt}if(-1===e.indexOf(t.data)){const t=it.objectValues(e);return ft(r,{received:r.data,code:ct.invalid_enum_value,options:t}),gt}return wt(t.data)}get enum(){return this._def.values}}de.create=(t,e)=>new de({values:t,typeName:Se.ZodNativeEnum,...St(e)});class pe extends Ct{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.promise&&!1===e.common.async)return ft(e,{code:ct.invalid_type,expected:ot.promise,received:e.parsedType}),gt;const r=e.parsedType===ot.promise?e.data:Promise.resolve(e.data);return wt(r.then((t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap}))))}}pe.create=(t,e)=>new pe({type:t,typeName:Se.ZodPromise,...St(e)});class fe extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:r}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:t=>{ft(r,t),t.fatal?e.abort():e.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){const t=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(t).then((t=>this._def.schema._parseAsync({data:t,path:r.path,parent:r}))):this._def.schema._parseSync({data:t,path:r.path,parent:r})}if("refinement"===n.type){const t=t=>{const e=n.refinement(t,i);if(r.common.async)return Promise.resolve(e);if(e instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?gt:("dirty"===n.status&&e.dirty(),t(n.value),{status:e.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?gt:("dirty"===r.status&&e.dirty(),t(r.value).then((()=>({status:e.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const t=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Et(t))return t;const s=n.transform(t.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:s}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((t=>Et(t)?Promise.resolve(n.transform(t.value,i)).then((t=>({status:e.value,value:t}))):t))}it.assertNever(n)}}fe.create=(t,e,r)=>new fe({schema:t,typeName:Se.ZodEffects,effect:e,...St(r)}),fe.createWithPreprocess=(t,e,r)=>new fe({schema:e,effect:{type:"preprocess",transform:t},typeName:Se.ZodEffects,...St(r)});class me extends Ct{_parse(t){return this._getType(t)===ot.undefined?wt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}me.create=(t,e)=>new me({innerType:t,typeName:Se.ZodOptional,...St(e)});class ge extends Ct{_parse(t){return this._getType(t)===ot.null?wt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ge.create=(t,e)=>new ge({innerType:t,typeName:Se.ZodNullable,...St(e)});class ye extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t);let r=e.data;return e.parsedType===ot.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}ye.create=(t,e)=>new ye({innerType:t,typeName:Se.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...St(e)});class we extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r={...e,common:{...e.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return xt(n)?n.then((t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new lt(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new lt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}we.create=(t,e)=>new we({innerType:t,typeName:Se.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...St(e)});class be extends Ct{_parse(t){if(this._getType(t)!==ot.nan){const e=this._getOrReturnCtx(t);return ft(e,{code:ct.invalid_type,expected:ot.nan,received:e.parsedType}),gt}return{status:"valid",value:t.data}}}be.create=t=>new be({typeName:Se.ZodNaN,...St(t)});const ve=Symbol("zod_brand");class Ee extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r=e.data;return this._def.type._parse({data:r,path:e.path,parent:e})}unwrap(){return this._def.type}}class xe extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const t=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===t.status?gt:"dirty"===t.status?(e.dirty(),yt(t.value)):this._def.out._parseAsync({data:t.value,path:r.path,parent:r})})();{const t=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===t.status?gt:"dirty"===t.status?(e.dirty(),{status:"dirty",value:t.value}):this._def.out._parseSync({data:t.value,path:r.path,parent:r})}}static create(t,e){return new xe({in:t,out:e,typeName:Se.ZodPipeline})}}class _e extends Ct{_parse(t){const e=this._def.innerType._parse(t);return Et(e)&&(e.value=Object.freeze(e.value)),e}}_e.create=(t,e)=>new _e({innerType:t,typeName:Se.ZodReadonly,...St(e)});const Ae=(t,e={},r)=>t?qt.create().superRefine(((n,i)=>{var s,o;if(!t(n)){const t="function"==typeof e?e(n):"string"==typeof e?{message:e}:e,a=null===(o=null!==(s=t.fatal)&&void 0!==s?s:r)||void 0===o||o,c="string"==typeof t?{message:t}:t;i.addIssue({code:"custom",...c,fatal:a})}})):qt.create(),ke={object:Qt.lazycreate};var Se;!function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"}(Se||(Se={}));const Ce=jt.create,Me=Ut.create,Ie=be.create,Pe=Dt.create,Oe=$t.create,Te=Ft.create,Ne=zt.create,Re=Ht.create,Be=Wt.create,je=qt.create,Le=Vt.create,Ue=Gt.create,De=Kt.create,$e=Zt.create,Fe=Qt.create,ze=Qt.strictCreate,He=Yt.create,We=te.create,qe=re.create,Ve=ne.create,Ge=ie.create,Ke=se.create,Ze=oe.create,Je=ae.create,Qe=ce.create,Ye=le.create,Xe=he.create,tr=de.create,er=pe.create,rr=fe.create,nr=me.create,ir=ge.create,sr=fe.createWithPreprocess,or=xe.create,ar={string:t=>jt.create({...t,coerce:!0}),number:t=>Ut.create({...t,coerce:!0}),boolean:t=>$t.create({...t,coerce:!0}),bigint:t=>Dt.create({...t,coerce:!0}),date:t=>Ft.create({...t,coerce:!0})},cr=gt;var lr=Object.freeze({__proto__:null,defaultErrorMap:ut,setErrorMap:function(t){ht=t},getErrorMap:dt,makeIssue:pt,EMPTY_PATH:[],addIssueToContext:ft,ParseStatus:mt,INVALID:gt,DIRTY:yt,OK:wt,isAborted:bt,isDirty:vt,isValid:Et,isAsync:xt,get util(){return it},get objectUtil(){return st},ZodParsedType:ot,getParsedType:at,ZodType:Ct,ZodString:jt,ZodNumber:Ut,ZodBigInt:Dt,ZodBoolean:$t,ZodDate:Ft,ZodSymbol:zt,ZodUndefined:Ht,ZodNull:Wt,ZodAny:qt,ZodUnknown:Vt,ZodNever:Gt,ZodVoid:Kt,ZodArray:Zt,ZodObject:Qt,ZodUnion:Yt,ZodDiscriminatedUnion:te,ZodIntersection:re,ZodTuple:ne,ZodRecord:ie,ZodMap:se,ZodSet:oe,ZodFunction:ae,ZodLazy:ce,ZodLiteral:le,ZodEnum:he,ZodNativeEnum:de,ZodPromise:pe,ZodEffects:fe,ZodTransformer:fe,ZodOptional:me,ZodNullable:ge,ZodDefault:ye,ZodCatch:we,ZodNaN:be,BRAND:ve,ZodBranded:Ee,ZodPipeline:xe,ZodReadonly:_e,custom:Ae,Schema:Ct,ZodSchema:Ct,late:ke,get ZodFirstPartyTypeKind(){return Se},coerce:ar,any:je,array:$e,bigint:Pe,boolean:Oe,date:Te,discriminatedUnion:We,effect:rr,enum:Xe,function:Je,instanceof:(t,e={message:`Input not instance of ${t.name}`})=>Ae((e=>e instanceof t),e),intersection:qe,lazy:Qe,literal:Ye,map:Ke,nan:Ie,nativeEnum:tr,never:Ue,null:Be,nullable:ir,number:Me,object:Fe,oboolean:()=>Oe().optional(),onumber:()=>Me().optional(),optional:nr,ostring:()=>Ce().optional(),pipeline:or,preprocess:sr,promise:er,record:Ge,set:Ze,strictObject:ze,string:Ce,symbol:Ne,transformer:rr,tuple:Ve,undefined:Re,union:He,unknown:Le,void:De,NEVER:cr,ZodIssueCode:ct,quotelessJson:t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:lt});const ur=lr.object({message:lr.string()});function hr(t){return lr.literal(nt[t])}const dr=lr.object({chainId:lr.number()}),pr=lr.object({email:lr.string().email()}),fr=lr.object({otp:lr.string()}),mr=lr.object({chainId:lr.optional(lr.number())}),gr=lr.object({email:lr.string().email()}),yr=lr.object({themeMode:lr.optional(lr.enum(["light","dark"])),themeVariables:lr.optional(lr.record(lr.string(),lr.string().or(lr.number())))}),wr=lr.object({action:lr.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),br=lr.object({email:lr.string().email(),address:lr.string(),chainId:lr.number()}),vr=lr.object({isConnected:lr.boolean()}),Er=lr.object({chainId:lr.number()}),xr=lr.object({email:lr.string().email()}),_r=lr.string(),Ar=lr.object({method:lr.literal("personal_sign"),params:lr.array(lr.any())}),kr=lr.object({method:lr.literal("eth_sendTransaction"),params:lr.array(lr.any())}),Sr=lr.object({method:lr.literal("eth_accounts")}),Cr=lr.object({method:lr.literal("eth_getBalance"),params:lr.array(lr.any())}),Mr=lr.object({method:lr.literal("eth_estimateGas"),params:lr.array(lr.any())}),Ir=lr.object({method:lr.literal("eth_gasPrice")}),Pr=lr.object({method:lr.literal("eth_signTypedData_v4"),params:lr.array(lr.any())}),Or=lr.object({token:lr.string()}),Tr={appEvent:lr.object({type:hr("APP_SWITCH_NETWORK"),payload:dr}).or(lr.object({type:hr("APP_CONNECT_EMAIL"),payload:pr})).or(lr.object({type:hr("APP_CONNECT_DEVICE")})).or(lr.object({type:hr("APP_CONNECT_OTP"),payload:fr})).or(lr.object({type:hr("APP_GET_USER"),payload:lr.optional(mr)})).or(lr.object({type:hr("APP_SIGN_OUT")})).or(lr.object({type:hr("APP_IS_CONNECTED"),payload:lr.optional(Or)})).or(lr.object({type:hr("APP_GET_CHAIN_ID")})).or(lr.object({type:hr("APP_RPC_REQUEST"),payload:Ar.or(kr).or(Sr).or(Cr).or(Mr).or(Ir).or(Pr)})).or(lr.object({type:hr("APP_UPDATE_EMAIL"),payload:gr})).or(lr.object({type:hr("APP_AWAIT_UPDATE_EMAIL")})).or(lr.object({type:hr("APP_SYNC_THEME"),payload:yr})),frameEvent:lr.object({type:hr("FRAME_SWITCH_NETWORK_ERROR"),payload:ur}).or(lr.object({type:hr("FRAME_SWITCH_NETWORK_SUCCESS")})).or(lr.object({type:hr("FRAME_CONNECT_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_EMAIL_SUCCESS"),payload:wr})).or(lr.object({type:hr("FRAME_CONNECT_OTP_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_OTP_SUCCESS")})).or(lr.object({type:hr("FRAME_CONNECT_DEVICE_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_DEVICE_SUCCESS")})).or(lr.object({type:hr("FRAME_GET_USER_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_GET_USER_SUCCESS"),payload:br})).or(lr.object({type:hr("FRAME_SIGN_OUT_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_SIGN_OUT_SUCCESS")})).or(lr.object({type:hr("FRAME_IS_CONNECTED_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_IS_CONNECTED_SUCCESS"),payload:vr})).or(lr.object({type:hr("FRAME_GET_CHAIN_ID_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_GET_CHAIN_ID_SUCCESS"),payload:Er})).or(lr.object({type:hr("FRAME_RPC_REQUEST_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_RPC_REQUEST_SUCCESS"),payload:_r})).or(lr.object({type:hr("FRAME_SESSION_UPDATE"),payload:Or})).or(lr.object({type:hr("FRAME_UPDATE_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_UPDATE_EMAIL_SUCCESS")})).or(lr.object({type:hr("FRAME_AWAIT_UPDATE_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_AWAIT_UPDATE_EMAIL_SUCCESS"),payload:xr})).or(lr.object({type:hr("FRAME_SYNC_THEME_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_SYNC_THEME_SUCCESS")}))},Nr={set(t,e){localStorage.setItem(`${nt.STORAGE_KEY}${t}`,e)},get:t=>localStorage.getItem(`${nt.STORAGE_KEY}${t}`),delete(t){localStorage.removeItem(`${nt.STORAGE_KEY}${t}`)}},Rr=["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],Br=3e4,jr={getBlockchainApiUrl(){try{const{timeZone:t}=(new Intl.DateTimeFormat).resolvedOptions(),e=t.toUpperCase();return Rr.includes(e)?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"}catch{return!1}},checkIfAllowedToTriggerEmail(){const t=Nr.get(nt.LAST_EMAIL_LOGIN_TIME);if(t){const e=Date.now()-Number(t);if(e{window.addEventListener("message",(({data:e})=>{if(!e.type?.includes(nt.FRAME_EVENT_KEY))return;const r=Tr.frameEvent.parse(e);t(r)}))},onAppEvent:t=>{window.addEventListener("message",(({data:e})=>{if(!e.type?.includes(nt.APP_EVENT_KEY))return;const r=Tr.appEvent.parse(e);t(r)}))},postAppEvent:t=>{if(!this.iframe?.contentWindow)throw new Error("W3mFrame: iframe is not set");Tr.appEvent.parse(t),window.postMessage(t),this.iframe.contentWindow.postMessage(t,"*")},postFrameEvent:t=>{if(!parent)throw new Error("W3mFrame: parent is not set");Tr.frameEvent.parse(t),parent.postMessage(t,"*")}},this.projectId=t,this.frameLoadPromise=new Promise(((t,e)=>{this.frameLoadPromiseResolver={resolve:t,reject:e}})),e){this.frameLoadPromise=new Promise(((t,e)=>{this.frameLoadPromiseResolver={resolve:t,reject:e}}));const e=document.createElement("iframe");e.id="w3m-iframe",e.src=`${nt.SECURE_SITE_SDK}?projectId=${t}`,e.style.position="fixed",e.style.zIndex="999999",e.style.display="none",e.style.opacity="0",e.style.borderRadius="clamp(0px, var(--wui-border-radius-l), 44px)",document.body.appendChild(e),this.iframe=e,this.iframe.onload=()=>{this.frameLoadPromiseResolver?.resolve(void 0)},this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")}}}get networks(){const t=[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,324,280,100,8453,84531,7777777,999].map((t=>({[t]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=eip155:${t}&projectId=${this.projectId}`,chainId:t}})));return Object.assign({},...t)}}class Ur{constructor(t){this.connectEmailResolver=void 0,this.connectDeviceResolver=void 0,this.connectOtpResolver=void 0,this.connectResolver=void 0,this.disconnectResolver=void 0,this.isConnectedResolver=void 0,this.getChainIdResolver=void 0,this.switchChainResolver=void 0,this.rpcRequestResolver=void 0,this.updateEmailResolver=void 0,this.awaitUpdateEmailResolver=void 0,this.syncThemeResolver=void 0,this.w3mFrame=new Lr(t,!0),this.w3mFrame.events.onFrameEvent((t=>{switch(console.log("💻 received",t),t.type){case nt.FRAME_CONNECT_EMAIL_SUCCESS:return this.onConnectEmailSuccess(t);case nt.FRAME_CONNECT_EMAIL_ERROR:return this.onConnectEmailError(t);case nt.FRAME_CONNECT_DEVICE_SUCCESS:return this.onConnectDeviceSuccess();case nt.FRAME_CONNECT_DEVICE_ERROR:return this.onConnectDeviceError(t);case nt.FRAME_CONNECT_OTP_SUCCESS:return this.onConnectOtpSuccess();case nt.FRAME_CONNECT_OTP_ERROR:return this.onConnectOtpError(t);case nt.FRAME_GET_USER_SUCCESS:return this.onConnectSuccess(t);case nt.FRAME_GET_USER_ERROR:return this.onConnectError(t);case nt.FRAME_IS_CONNECTED_SUCCESS:return this.onIsConnectedSuccess(t);case nt.FRAME_IS_CONNECTED_ERROR:return this.onIsConnectedError(t);case nt.FRAME_GET_CHAIN_ID_SUCCESS:return this.onGetChainIdSuccess(t);case nt.FRAME_GET_CHAIN_ID_ERROR:return this.onGetChainIdError(t);case nt.FRAME_SIGN_OUT_SUCCESS:return this.onSignOutSuccess();case nt.FRAME_SIGN_OUT_ERROR:return this.onSignOutError(t);case nt.FRAME_SWITCH_NETWORK_SUCCESS:return this.onSwitchChainSuccess();case nt.FRAME_SWITCH_NETWORK_ERROR:return this.onSwitchChainError(t);case nt.FRAME_RPC_REQUEST_SUCCESS:return this.onRpcRequestSuccess(t);case nt.FRAME_RPC_REQUEST_ERROR:return this.onRpcRequestError(t);case nt.FRAME_SESSION_UPDATE:return this.onSessionUpdate(t);case nt.FRAME_UPDATE_EMAIL_SUCCESS:return this.onUpdateEmailSuccess();case nt.FRAME_UPDATE_EMAIL_ERROR:return this.onUpdateEmailError(t);case nt.FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:return this.onAwaitUpdateEmailSuccess(t);case nt.FRAME_AWAIT_UPDATE_EMAIL_ERROR:return this.onAwaitUpdateEmailError(t);case nt.FRAME_SYNC_THEME_SUCCESS:return this.onSyncThemeSuccess();case nt.FRAME_SYNC_THEME_ERROR:return this.onSyncThemeError(t);default:return null}}))}getLoginEmailUsed(){return Boolean(Nr.get(nt.EMAIL_LOGIN_USED_KEY))}getEmail(){return Nr.get(nt.EMAIL)}async connectEmail(t){return await this.w3mFrame.frameLoadPromise,jr.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_EMAIL,payload:t}),new Promise(((t,e)=>{this.connectEmailResolver={resolve:t,reject:e}}))}async connectDevice(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_DEVICE}),new Promise(((t,e)=>{this.connectDeviceResolver={resolve:t,reject:e}}))}async connectOtp(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_OTP,payload:t}),new Promise(((t,e)=>{this.connectOtpResolver={resolve:t,reject:e}}))}async isConnected(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_IS_CONNECTED,payload:void 0}),new Promise(((t,e)=>{this.isConnectedResolver={resolve:t,reject:e}}))}async getChainId(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_GET_CHAIN_ID}),new Promise(((t,e)=>{this.getChainIdResolver={resolve:t,reject:e}}))}async updateEmail(t){return await this.w3mFrame.frameLoadPromise,jr.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:nt.APP_UPDATE_EMAIL,payload:t}),new Promise(((t,e)=>{this.updateEmailResolver={resolve:t,reject:e}}))}async awaitUpdateEmail(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_AWAIT_UPDATE_EMAIL}),new Promise(((t,e)=>{this.awaitUpdateEmailResolver={resolve:t,reject:e}}))}async syncTheme(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SYNC_THEME,payload:t}),new Promise(((t,e)=>{this.syncThemeResolver={resolve:t,reject:e}}))}async connect(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_GET_USER,payload:t}),new Promise(((t,e)=>{this.connectResolver={resolve:t,reject:e}}))}async switchNetwork(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SWITCH_NETWORK,payload:{chainId:t}}),new Promise(((t,e)=>{this.switchChainResolver={resolve:t,reject:e}}))}async disconnect(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SIGN_OUT}),new Promise(((t,e)=>{this.disconnectResolver={resolve:t,reject:e}}))}async request(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_RPC_REQUEST,payload:t}),new Promise(((t,e)=>{this.rpcRequestResolver={resolve:t,reject:e}}))}onRpcRequest(t){this.w3mFrame.events.onAppEvent((e=>{e.type.includes(nt.RPC_METHOD_KEY)&&t(e)}))}onRpcResponse(t){this.w3mFrame.events.onFrameEvent((e=>{e.type.includes(nt.RPC_METHOD_KEY)&&t(e)}))}onIsConnected(t){this.w3mFrame.events.onFrameEvent((e=>{e.type===nt.FRAME_IS_CONNECTED_SUCCESS&&t()}))}onConnectEmailSuccess(t){this.connectEmailResolver?.resolve(t.payload),this.setNewLastEmailLoginTime()}onConnectEmailError(t){this.connectEmailResolver?.reject(t.payload.message)}onConnectDeviceSuccess(){this.connectDeviceResolver?.resolve(void 0)}onConnectDeviceError(t){this.connectDeviceResolver?.reject(t.payload.message)}onConnectOtpSuccess(){this.connectOtpResolver?.resolve(void 0)}onConnectOtpError(t){this.connectOtpResolver?.reject(t.payload.message)}onConnectSuccess(t){this.setEmailLoginSuccess(t.payload.email),this.connectResolver?.resolve(t.payload)}onConnectError(t){this.connectResolver?.reject(t.payload.message)}onIsConnectedSuccess(t){this.isConnectedResolver?.resolve(t.payload)}onIsConnectedError(t){this.isConnectedResolver?.reject(t.payload.message)}onGetChainIdSuccess(t){this.getChainIdResolver?.resolve(t.payload)}onGetChainIdError(t){this.getChainIdResolver?.reject(t.payload.message)}onSignOutSuccess(){this.disconnectResolver?.resolve(void 0),Nr.delete(nt.EMAIL_LOGIN_USED_KEY),Nr.delete(nt.EMAIL)}onSignOutError(t){this.disconnectResolver?.reject(t.payload.message)}onSwitchChainSuccess(){this.switchChainResolver?.resolve(void 0)}onSwitchChainError(t){this.switchChainResolver?.reject(t.payload.message)}onRpcRequestSuccess(t){this.rpcRequestResolver?.resolve(t.payload)}onRpcRequestError(t){this.rpcRequestResolver?.reject(t.payload.message)}onSessionUpdate(t){const{payload:e}=t}onUpdateEmailSuccess(){this.updateEmailResolver?.resolve(void 0),this.setNewLastEmailLoginTime()}onUpdateEmailError(t){this.updateEmailResolver?.reject(t.payload.message)}onAwaitUpdateEmailSuccess(t){this.setEmailLoginSuccess(t.payload.email),this.awaitUpdateEmailResolver?.resolve(t.payload)}onAwaitUpdateEmailError(t){this.awaitUpdateEmailResolver?.reject(t.payload.message)}onSyncThemeSuccess(){this.syncThemeResolver?.resolve(void 0)}onSyncThemeError(t){this.syncThemeResolver?.reject(t.payload.message)}setNewLastEmailLoginTime(){Nr.set(nt.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setEmailLoginSuccess(t){Nr.set(nt.EMAIL,t),Nr.set(nt.EMAIL_LOGIN_USED_KEY,"true"),Nr.delete(nt.LAST_EMAIL_LOGIN_TIME)}}var Dr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $r=class extends a.oi{constructor(){super(...arguments),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.timeoutTimeLeft=jr.getTimeToNextEmailLogin(),this.error=""}firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}render(){if(!this.email)throw new Error("w3m-email-verify-otp-view: No email provided");const t=Boolean(this.timeoutTimeLeft);return a.dy` +`,nt={SECURE_SITE_SDK:"https://secure.web3modal.com/sdk",APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@w3m-storage/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:"@w3m-frame/AWAIT_UPDATE_EMAIL_SUCCESS",FRAME_AWAIT_UPDATE_EMAIL_ERROR:"@w3m-frame/AWAIT_UPDATE_EMAIL_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR"};var it,st;!function(t){t.assertEqual=t=>t,t.assertIs=function(t){},t.assertNever=function(t){throw new Error},t.arrayToEnum=t=>{const e={};for(const r of t)e[r]=r;return e},t.getValidEnumValues=e=>{const r=t.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={};for(const t of r)n[t]=e[t];return t.objectValues(n)},t.objectValues=e=>t.objectKeys(e).map((function(t){return e[t]})),t.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e},t.find=(t,e)=>{for(const r of t)if(e(r))return r},t.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&isFinite(t)&&Math.floor(t)===t,t.joinValues=function(t,e=" | "){return t.map((t=>"string"==typeof t?`'${t}'`:t)).join(e)},t.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e}(it||(it={})),function(t){t.mergeShapes=(t,e)=>({...t,...e})}(st||(st={}));const ot=it.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),at=t=>{switch(typeof t){case"undefined":return ot.undefined;case"string":return ot.string;case"number":return isNaN(t)?ot.nan:ot.number;case"boolean":return ot.boolean;case"function":return ot.function;case"bigint":return ot.bigint;case"symbol":return ot.symbol;case"object":return Array.isArray(t)?ot.array:null===t?ot.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?ot.promise:"undefined"!=typeof Map&&t instanceof Map?ot.map:"undefined"!=typeof Set&&t instanceof Set?ot.set:"undefined"!=typeof Date&&t instanceof Date?ot.date:ot.object;default:return ot.unknown}},ct=it.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class lt extends Error{constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const e=t||function(t){return t.message},r={_errors:[]},n=t=>{for(const i of t.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(e(i));else{let t=r,n=0;for(;nt.message)){const e={},r=[];for(const n of this.issues)n.path.length>0?(e[n.path[0]]=e[n.path[0]]||[],e[n.path[0]].push(t(n))):r.push(t(n));return{formErrors:r,fieldErrors:e}}get formErrors(){return this.flatten()}}lt.create=t=>new lt(t);const ut=(t,e)=>{let r;switch(t.code){case ct.invalid_type:r=t.received===ot.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case ct.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,it.jsonStringifyReplacer)}`;break;case ct.unrecognized_keys:r=`Unrecognized key(s) in object: ${it.joinValues(t.keys,", ")}`;break;case ct.invalid_union:r="Invalid input";break;case ct.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${it.joinValues(t.options)}`;break;case ct.invalid_enum_value:r=`Invalid enum value. Expected ${it.joinValues(t.options)}, received '${t.received}'`;break;case ct.invalid_arguments:r="Invalid function arguments";break;case ct.invalid_return_type:r="Invalid function return type";break;case ct.invalid_date:r="Invalid date";break;case ct.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:it.assertNever(t.validation):r="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case ct.too_small:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case ct.too_big:r="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case ct.custom:r="Invalid input";break;case ct.invalid_intersection_types:r="Intersection results could not be merged";break;case ct.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ct.not_finite:r="Number must be finite";break;default:r=e.defaultError,it.assertNever(t)}return{message:r}};let ht=ut;function dt(){return ht}const ft=t=>{const{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s};let a="";const c=n.filter((t=>!!t)).slice().reverse();for(const t of c)a=t(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}};function pt(t,e){const r=ft({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dt(),ut].filter((t=>!!t))});t.common.issues.push(r)}class mt{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){const r=[];for(const n of e){if("aborted"===n.status)return gt;"dirty"===n.status&&t.dirty(),r.push(n.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,e){const r=[];for(const t of e)r.push({key:await t.key,value:await t.value});return mt.mergeObjectSync(t,r)}static mergeObjectSync(t,e){const r={};for(const n of e){const{key:e,value:i}=n;if("aborted"===e.status)return gt;if("aborted"===i.status)return gt;"dirty"===e.status&&t.dirty(),"dirty"===i.status&&t.dirty(),"__proto__"===e.value||void 0===i.value&&!n.alwaysSet||(r[e.value]=i.value)}return{status:t.value,value:r}}}const gt=Object.freeze({status:"aborted"}),yt=t=>({status:"dirty",value:t}),wt=t=>({status:"valid",value:t}),bt=t=>"aborted"===t.status,vt=t=>"dirty"===t.status,At=t=>"valid"===t.status,Et=t=>"undefined"!=typeof Promise&&t instanceof Promise;var xt;!function(t){t.errToObj=t=>"string"==typeof t?{message:t}:t||{},t.toString=t=>"string"==typeof t?t:null==t?void 0:t.message}(xt||(xt={}));class _t{constructor(t,e,r,n){this._cachedPath=[],this.parent=t,this.data=e,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const St=(t,e)=>{if(At(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new lt(t.common.issues);return this._error=e,this._error}}};function Mt(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return e?{errorMap:e,description:i}:{errorMap:(t,e)=>"invalid_type"!==t.code?{message:e.defaultError}:void 0===e.data?{message:null!=n?n:e.defaultError}:{message:null!=r?r:e.defaultError},description:i}}class Ct{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return at(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:at(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new mt,ctx:{common:t.parent.common,data:t.data,parsedType:at(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(Et(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const r=this.safeParse(t,e);if(r.success)return r.data;throw r.error}safeParse(t,e){var r;const n={common:{issues:[],async:null!==(r=null==e?void 0:e.async)&&void 0!==r&&r,contextualErrorMap:null==e?void 0:e.errorMap},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:at(t)},i=this._parseSync({data:t,path:n.path,parent:n});return St(n,i)}async parseAsync(t,e){const r=await this.safeParseAsync(t,e);if(r.success)return r.data;throw r.error}async safeParseAsync(t,e){const r={common:{issues:[],contextualErrorMap:null==e?void 0:e.errorMap,async:!0},path:(null==e?void 0:e.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:at(t)},n=this._parse({data:t,path:r.path,parent:r}),i=await(Et(n)?n:Promise.resolve(n));return St(r,i)}refine(t,e){const r=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement(((e,n)=>{const i=t(e),s=()=>n.addIssue({code:ct.custom,...r(e)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then((t=>!!t||(s(),!1))):!!i||(s(),!1)}))}refinement(t,e){return this._refinement(((r,n)=>!!t(r)||(n.addIssue("function"==typeof e?e(r,n):e),!1)))}_refinement(t){return new pe({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return me.create(this,this._def)}nullable(){return ge.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zt.create(this,this._def)}promise(){return fe.create(this,this._def)}or(t){return Yt.create([this,t],this._def)}and(t){return re.create(this,t,this._def)}transform(t){return new pe({...Mt(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e="function"==typeof t?t:()=>t;return new ye({...Mt(this._def),innerType:this,defaultValue:e,typeName:Me.ZodDefault})}brand(){return new Ae({typeName:Me.ZodBranded,type:this,...Mt(this._def)})}catch(t){const e="function"==typeof t?t:()=>t;return new we({...Mt(this._def),innerType:this,catchValue:e,typeName:Me.ZodCatch})}describe(t){return new(0,this.constructor)({...this._def,description:t})}pipe(t){return Ee.create(this,t)}readonly(){return xe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const kt=/^c[^\s-]{8,}$/i,It=/^[a-z][a-z0-9]*$/,Pt=/^[0-9A-HJKMNP-TV-Z]{26}$/,Ot=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Nt=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let Tt;const Rt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Bt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;class Lt extends Ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ot.string){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.string,received:e.parsedType}),gt}const e=new mt;let r;for(const o of this._def.checks)if("min"===o.kind)t.data.lengtho.value&&(r=this._getOrReturnCtx(t,r),pt(r,{code:ct.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),e.dirty());else if("length"===o.kind){const n=t.data.length>o.value,i=t.data.lengtht.test(e)),{validation:e,code:ct.invalid_string,...xt.errToObj(r)})}_addCheck(t){return new Lt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...xt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...xt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...xt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...xt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...xt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...xt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...xt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...xt.errToObj(t)})}datetime(t){var e;return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===(null==t?void 0:t.precision)?null:null==t?void 0:t.precision,offset:null!==(e=null==t?void 0:t.offset)&&void 0!==e&&e,...xt.errToObj(null==t?void 0:t.message)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...xt.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:null==e?void 0:e.position,...xt.errToObj(null==e?void 0:e.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...xt.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...xt.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...xt.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...xt.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...xt.errToObj(e)})}nonempty(t){return this.min(1,xt.errToObj(t))}trim(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Lt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((t=>"datetime"===t.kind))}get isEmail(){return!!this._def.checks.find((t=>"email"===t.kind))}get isURL(){return!!this._def.checks.find((t=>"url"===t.kind))}get isEmoji(){return!!this._def.checks.find((t=>"emoji"===t.kind))}get isUUID(){return!!this._def.checks.find((t=>"uuid"===t.kind))}get isCUID(){return!!this._def.checks.find((t=>"cuid"===t.kind))}get isCUID2(){return!!this._def.checks.find((t=>"cuid2"===t.kind))}get isULID(){return!!this._def.checks.find((t=>"ulid"===t.kind))}get isIP(){return!!this._def.checks.find((t=>"ip"===t.kind))}get minLength(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuen?r:n;return parseInt(t.toFixed(i).replace(".",""))%parseInt(e.toFixed(i).replace(".",""))/Math.pow(10,i)}Lt.create=t=>{var e;return new Lt({checks:[],typeName:Me.ZodString,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...Mt(t)})};class jt extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ot.number){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.number,received:e.parsedType}),gt}let e;const r=new mt;for(const n of this._def.checks)"int"===n.kind?it.isInteger(t.data)||(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?t.datan.value:t.data>=n.value)&&(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==Ut(t.data,n.value)&&(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(t.data)||(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.not_finite,message:n.message}),r.dirty()):it.assertNever(n);return{status:r.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,xt.toString(e))}gt(t,e){return this.setLimit("min",t,!1,xt.toString(e))}lte(t,e){return this.setLimit("max",t,!0,xt.toString(e))}lt(t,e){return this.setLimit("max",t,!1,xt.toString(e))}setLimit(t,e,r,n){return new jt({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:xt.toString(n)}]})}_addCheck(t){return new jt({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:xt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:xt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:xt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:xt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:xt.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:xt.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:xt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:xt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:xt.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value"int"===t.kind||"multipleOf"===t.kind&&it.isInteger(t.value)))}get isFinite(){let t=null,e=null;for(const r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===e||r.value>e)&&(e=r.value):"max"===r.kind&&(null===t||r.valuenew jt({checks:[],typeName:Me.ZodNumber,coerce:(null==t?void 0:t.coerce)||!1,...Mt(t)});class Dt extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ot.bigint){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.bigint,received:e.parsedType}),gt}let e;const r=new mt;for(const n of this._def.checks)"min"===n.kind?(n.inclusive?t.datan.value:t.data>=n.value)&&(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?t.data%n.value!==BigInt(0)&&(e=this._getOrReturnCtx(t,e),pt(e,{code:ct.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):it.assertNever(n);return{status:r.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,xt.toString(e))}gt(t,e){return this.setLimit("min",t,!1,xt.toString(e))}lte(t,e){return this.setLimit("max",t,!0,xt.toString(e))}lt(t,e){return this.setLimit("max",t,!1,xt.toString(e))}setLimit(t,e,r,n){return new Dt({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:r,message:xt.toString(n)}]})}_addCheck(t){return new Dt({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:xt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:xt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:xt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:xt.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:xt.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value{var e;return new Dt({checks:[],typeName:Me.ZodBigInt,coerce:null!==(e=null==t?void 0:t.coerce)&&void 0!==e&&e,...Mt(t)})};class Ft extends Ct{_parse(t){if(this._def.coerce&&(t.data=Boolean(t.data)),this._getType(t)!==ot.boolean){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.boolean,received:e.parsedType}),gt}return wt(t.data)}}Ft.create=t=>new Ft({typeName:Me.ZodBoolean,coerce:(null==t?void 0:t.coerce)||!1,...Mt(t)});class zt extends Ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ot.date){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.date,received:e.parsedType}),gt}if(isNaN(t.data.getTime()))return pt(this._getOrReturnCtx(t),{code:ct.invalid_date}),gt;const e=new mt;let r;for(const n of this._def.checks)"min"===n.kind?t.data.getTime()n.value&&(r=this._getOrReturnCtx(t,r),pt(r,{code:ct.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),e.dirty()):it.assertNever(n);return{status:e.value,value:new Date(t.data.getTime())}}_addCheck(t){return new zt({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:xt.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:xt.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.valuenew zt({checks:[],coerce:(null==t?void 0:t.coerce)||!1,typeName:Me.ZodDate,...Mt(t)});class Ht extends Ct{_parse(t){if(this._getType(t)!==ot.symbol){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.symbol,received:e.parsedType}),gt}return wt(t.data)}}Ht.create=t=>new Ht({typeName:Me.ZodSymbol,...Mt(t)});class $t extends Ct{_parse(t){if(this._getType(t)!==ot.undefined){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.undefined,received:e.parsedType}),gt}return wt(t.data)}}$t.create=t=>new $t({typeName:Me.ZodUndefined,...Mt(t)});class qt extends Ct{_parse(t){if(this._getType(t)!==ot.null){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.null,received:e.parsedType}),gt}return wt(t.data)}}qt.create=t=>new qt({typeName:Me.ZodNull,...Mt(t)});class Wt extends Ct{constructor(){super(...arguments),this._any=!0}_parse(t){return wt(t.data)}}Wt.create=t=>new Wt({typeName:Me.ZodAny,...Mt(t)});class Vt extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wt(t.data)}}Vt.create=t=>new Vt({typeName:Me.ZodUnknown,...Mt(t)});class Gt extends Ct{_parse(t){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.never,received:e.parsedType}),gt}}Gt.create=t=>new Gt({typeName:Me.ZodNever,...Mt(t)});class Kt extends Ct{_parse(t){if(this._getType(t)!==ot.undefined){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.void,received:e.parsedType}),gt}return wt(t.data)}}Kt.create=t=>new Kt({typeName:Me.ZodVoid,...Mt(t)});class Zt extends Ct{_parse(t){const{ctx:e,status:r}=this._processInputParams(t),n=this._def;if(e.parsedType!==ot.array)return pt(e,{code:ct.invalid_type,expected:ot.array,received:e.parsedType}),gt;if(null!==n.exactLength){const t=e.data.length>n.exactLength.value,i=e.data.lengthn.maxLength.value&&(pt(e,{code:ct.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),e.common.async)return Promise.all([...e.data].map(((t,r)=>n.type._parseAsync(new _t(e,t,e.path,r))))).then((t=>mt.mergeArray(r,t)));const i=[...e.data].map(((t,r)=>n.type._parseSync(new _t(e,t,e.path,r))));return mt.mergeArray(r,i)}get element(){return this._def.type}min(t,e){return new Zt({...this._def,minLength:{value:t,message:xt.toString(e)}})}max(t,e){return new Zt({...this._def,maxLength:{value:t,message:xt.toString(e)}})}length(t,e){return new Zt({...this._def,exactLength:{value:t,message:xt.toString(e)}})}nonempty(t){return this.min(1,t)}}function Qt(t){if(t instanceof Jt){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=me.create(Qt(n))}return new Jt({...t._def,shape:()=>e})}return t instanceof Zt?new Zt({...t._def,type:Qt(t.element)}):t instanceof me?me.create(Qt(t.unwrap())):t instanceof ge?ge.create(Qt(t.unwrap())):t instanceof ne?ne.create(t.items.map((t=>Qt(t)))):t}Zt.create=(t,e)=>new Zt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...Mt(e)});class Jt extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),e=it.objectKeys(t);return this._cached={shape:t,keys:e}}_parse(t){if(this._getType(t)!==ot.object){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.object,received:e.parsedType}),gt}const{status:e,ctx:r}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Gt&&"strip"===this._def.unknownKeys))for(const t in r.data)i.includes(t)||s.push(t);const o=[];for(const t of i){const e=n[t],i=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new _t(r,i,r.path,t)),alwaysSet:t in r.data})}if(this._def.catchall instanceof Gt){const t=this._def.unknownKeys;if("passthrough"===t)for(const t of s)o.push({key:{status:"valid",value:t},value:{status:"valid",value:r.data[t]}});else if("strict"===t)s.length>0&&(pt(r,{code:ct.unrecognized_keys,keys:s}),e.dirty());else if("strip"!==t)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const t=this._def.catchall;for(const e of s){const n=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new _t(r,n,r.path,e)),alwaysSet:e in r.data})}}return r.common.async?Promise.resolve().then((async()=>{const t=[];for(const e of o){const r=await e.key;t.push({key:r,value:await e.value,alwaysSet:e.alwaysSet})}return t})).then((t=>mt.mergeObjectSync(e,t))):mt.mergeObjectSync(e,o)}get shape(){return this._def.shape()}strict(t){return xt.errToObj,new Jt({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,r)=>{var n,i,s,o;const a=null!==(s=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,e,r).message)&&void 0!==s?s:r.defaultError;return"unrecognized_keys"===e.code?{message:null!==(o=xt.errToObj(t).message)&&void 0!==o?o:a}:{message:a}}}:{}})}strip(){return new Jt({...this._def,unknownKeys:"strip"})}passthrough(){return new Jt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Jt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Jt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Me.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new Jt({...this._def,catchall:t})}pick(t){const e={};return it.objectKeys(t).forEach((r=>{t[r]&&this.shape[r]&&(e[r]=this.shape[r])})),new Jt({...this._def,shape:()=>e})}omit(t){const e={};return it.objectKeys(this.shape).forEach((r=>{t[r]||(e[r]=this.shape[r])})),new Jt({...this._def,shape:()=>e})}deepPartial(){return Qt(this)}partial(t){const e={};return it.objectKeys(this.shape).forEach((r=>{const n=this.shape[r];t&&!t[r]?e[r]=n:e[r]=n.optional()})),new Jt({...this._def,shape:()=>e})}required(t){const e={};return it.objectKeys(this.shape).forEach((r=>{if(t&&!t[r])e[r]=this.shape[r];else{let t=this.shape[r];for(;t instanceof me;)t=t._def.innerType;e[r]=t}})),new Jt({...this._def,shape:()=>e})}keyof(){return ue(it.objectKeys(this.shape))}}Jt.create=(t,e)=>new Jt({shape:()=>t,unknownKeys:"strip",catchall:Gt.create(),typeName:Me.ZodObject,...Mt(e)}),Jt.strictCreate=(t,e)=>new Jt({shape:()=>t,unknownKeys:"strict",catchall:Gt.create(),typeName:Me.ZodObject,...Mt(e)}),Jt.lazycreate=(t,e)=>new Jt({shape:t,unknownKeys:"strip",catchall:Gt.create(),typeName:Me.ZodObject,...Mt(e)});class Yt extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r=this._def.options;if(e.common.async)return Promise.all(r.map((async t=>{const r={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:r}),ctx:r}}))).then((function(t){for(const e of t)if("valid"===e.result.status)return e.result;for(const r of t)if("dirty"===r.result.status)return e.common.issues.push(...r.ctx.common.issues),r.result;const r=t.map((t=>new lt(t.ctx.common.issues)));return pt(e,{code:ct.invalid_union,unionErrors:r}),gt}));{let t;const n=[];for(const i of r){const r={...e,common:{...e.common,issues:[]},parent:null},s=i._parseSync({data:e.data,path:e.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||t||(t={result:s,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(t)return e.common.issues.push(...t.ctx.common.issues),t.result;const i=n.map((t=>new lt(t)));return pt(e,{code:ct.invalid_union,unionErrors:i}),gt}}get options(){return this._def.options}}Yt.create=(t,e)=>new Yt({options:t,typeName:Me.ZodUnion,...Mt(e)});const Xt=t=>t instanceof ce?Xt(t.schema):t instanceof pe?Xt(t.innerType()):t instanceof le?[t.value]:t instanceof he?t.options:t instanceof de?Object.keys(t.enum):t instanceof ye?Xt(t._def.innerType):t instanceof $t?[void 0]:t instanceof qt?[null]:null;class te extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.object)return pt(e,{code:ct.invalid_type,expected:ot.object,received:e.parsedType}),gt;const r=this.discriminator,n=e.data[r],i=this.optionsMap.get(n);return i?e.common.async?i._parseAsync({data:e.data,path:e.path,parent:e}):i._parseSync({data:e.data,path:e.path,parent:e}):(pt(e,{code:ct.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),gt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,e,r){const n=new Map;for(const r of e){const e=Xt(r.shape[t]);if(!e)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const i of e){if(n.has(i))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(i)}`);n.set(i,r)}}return new te({typeName:Me.ZodDiscriminatedUnion,discriminator:t,options:e,optionsMap:n,...Mt(r)})}}function ee(t,e){const r=at(t),n=at(e);if(t===e)return{valid:!0,data:t};if(r===ot.object&&n===ot.object){const r=it.objectKeys(e),n=it.objectKeys(t).filter((t=>-1!==r.indexOf(t))),i={...t,...e};for(const r of n){const n=ee(t[r],e[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(r===ot.array&&n===ot.array){if(t.length!==e.length)return{valid:!1};const r=[];for(let n=0;n{if(bt(t)||bt(n))return gt;const i=ee(t.value,n.value);return i.valid?((vt(t)||vt(n))&&e.dirty(),{status:e.value,value:i.data}):(pt(r,{code:ct.invalid_intersection_types}),gt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((([t,e])=>n(t,e))):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}re.create=(t,e,r)=>new re({left:t,right:e,typeName:Me.ZodIntersection,...Mt(r)});class ne extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.array)return pt(r,{code:ct.invalid_type,expected:ot.array,received:r.parsedType}),gt;if(r.data.lengththis._def.items.length&&(pt(r,{code:ct.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const n=[...r.data].map(((t,e)=>{const n=this._def.items[e]||this._def.rest;return n?n._parse(new _t(r,t,r.path,e)):null})).filter((t=>!!t));return r.common.async?Promise.all(n).then((t=>mt.mergeArray(e,t))):mt.mergeArray(e,n)}get items(){return this._def.items}rest(t){return new ne({...this._def,rest:t})}}ne.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ne({items:t,typeName:Me.ZodTuple,rest:null,...Mt(e)})};class ie extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.object)return pt(r,{code:ct.invalid_type,expected:ot.object,received:r.parsedType}),gt;const n=[],i=this._def.keyType,s=this._def.valueType;for(const t in r.data)n.push({key:i._parse(new _t(r,t,r.path,t)),value:s._parse(new _t(r,r.data[t],r.path,t))});return r.common.async?mt.mergeObjectAsync(e,n):mt.mergeObjectSync(e,n)}get element(){return this._def.valueType}static create(t,e,r){return new ie(e instanceof Ct?{keyType:t,valueType:e,typeName:Me.ZodRecord,...Mt(r)}:{keyType:Lt.create(),valueType:t,typeName:Me.ZodRecord,...Mt(e)})}}class se extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.map)return pt(r,{code:ct.invalid_type,expected:ot.map,received:r.parsedType}),gt;const n=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map((([t,e],s)=>({key:n._parse(new _t(r,t,r.path,[s,"key"])),value:i._parse(new _t(r,e,r.path,[s,"value"]))})));if(r.common.async){const t=new Map;return Promise.resolve().then((async()=>{for(const r of s){const n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return gt;"dirty"!==n.status&&"dirty"!==i.status||e.dirty(),t.set(n.value,i.value)}return{status:e.value,value:t}}))}{const t=new Map;for(const r of s){const n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return gt;"dirty"!==n.status&&"dirty"!==i.status||e.dirty(),t.set(n.value,i.value)}return{status:e.value,value:t}}}}se.create=(t,e,r)=>new se({valueType:e,keyType:t,typeName:Me.ZodMap,...Mt(r)});class oe extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.parsedType!==ot.set)return pt(r,{code:ct.invalid_type,expected:ot.set,received:r.parsedType}),gt;const n=this._def;null!==n.minSize&&r.data.sizen.maxSize.value&&(pt(r,{code:ct.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),e.dirty());const i=this._def.valueType;function s(t){const r=new Set;for(const n of t){if("aborted"===n.status)return gt;"dirty"===n.status&&e.dirty(),r.add(n.value)}return{status:e.value,value:r}}const o=[...r.data.values()].map(((t,e)=>i._parse(new _t(r,t,r.path,e))));return r.common.async?Promise.all(o).then((t=>s(t))):s(o)}min(t,e){return new oe({...this._def,minSize:{value:t,message:xt.toString(e)}})}max(t,e){return new oe({...this._def,maxSize:{value:t,message:xt.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}oe.create=(t,e)=>new oe({valueType:t,minSize:null,maxSize:null,typeName:Me.ZodSet,...Mt(e)});class ae extends Ct{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.function)return pt(e,{code:ct.invalid_type,expected:ot.function,received:e.parsedType}),gt;function r(t,r){return ft({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,dt(),ut].filter((t=>!!t)),issueData:{code:ct.invalid_arguments,argumentsError:r}})}function n(t,r){return ft({data:t,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,dt(),ut].filter((t=>!!t)),issueData:{code:ct.invalid_return_type,returnTypeError:r}})}const i={errorMap:e.common.contextualErrorMap},s=e.data;if(this._def.returns instanceof fe){const t=this;return wt((async function(...e){const o=new lt([]),a=await t._def.args.parseAsync(e,i).catch((t=>{throw o.addIssue(r(e,t)),o})),c=await Reflect.apply(s,this,a);return await t._def.returns._def.type.parseAsync(c,i).catch((t=>{throw o.addIssue(n(c,t)),o}))}))}{const t=this;return wt((function(...e){const o=t._def.args.safeParse(e,i);if(!o.success)throw new lt([r(e,o.error)]);const a=Reflect.apply(s,this,o.data),c=t._def.returns.safeParse(a,i);if(!c.success)throw new lt([n(a,c.error)]);return c.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ae({...this._def,args:ne.create(t).rest(Vt.create())})}returns(t){return new ae({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,e,r){return new ae({args:t||ne.create([]).rest(Vt.create()),returns:e||Vt.create(),typeName:Me.ZodFunction,...Mt(r)})}}class ce extends Ct{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}ce.create=(t,e)=>new ce({getter:t,typeName:Me.ZodLazy,...Mt(e)});class le extends Ct{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return pt(e,{received:e.data,code:ct.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:t.data}}get value(){return this._def.value}}function ue(t,e){return new he({values:t,typeName:Me.ZodEnum,...Mt(e)})}le.create=(t,e)=>new le({value:t,typeName:Me.ZodLiteral,...Mt(e)});class he extends Ct{_parse(t){if("string"!=typeof t.data){const e=this._getOrReturnCtx(t),r=this._def.values;return pt(e,{expected:it.joinValues(r),received:e.parsedType,code:ct.invalid_type}),gt}if(-1===this._def.values.indexOf(t.data)){const e=this._getOrReturnCtx(t),r=this._def.values;return pt(e,{received:e.data,code:ct.invalid_enum_value,options:r}),gt}return wt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t){return he.create(t)}exclude(t){return he.create(this.options.filter((e=>!t.includes(e))))}}he.create=ue;class de extends Ct{_parse(t){const e=it.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ot.string&&r.parsedType!==ot.number){const t=it.objectValues(e);return pt(r,{expected:it.joinValues(t),received:r.parsedType,code:ct.invalid_type}),gt}if(-1===e.indexOf(t.data)){const t=it.objectValues(e);return pt(r,{received:r.data,code:ct.invalid_enum_value,options:t}),gt}return wt(t.data)}get enum(){return this._def.values}}de.create=(t,e)=>new de({values:t,typeName:Me.ZodNativeEnum,...Mt(e)});class fe extends Ct{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==ot.promise&&!1===e.common.async)return pt(e,{code:ct.invalid_type,expected:ot.promise,received:e.parsedType}),gt;const r=e.parsedType===ot.promise?e.data:Promise.resolve(e.data);return wt(r.then((t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap}))))}}fe.create=(t,e)=>new fe({type:t,typeName:Me.ZodPromise,...Mt(e)});class pe extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:r}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:t=>{pt(r,t),t.fatal?e.abort():e.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){const t=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(t).then((t=>this._def.schema._parseAsync({data:t,path:r.path,parent:r}))):this._def.schema._parseSync({data:t,path:r.path,parent:r})}if("refinement"===n.type){const t=t=>{const e=n.refinement(t,i);if(r.common.async)return Promise.resolve(e);if(e instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1===r.common.async){const n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?gt:("dirty"===n.status&&e.dirty(),t(n.value),{status:e.value,value:n.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((r=>"aborted"===r.status?gt:("dirty"===r.status&&e.dirty(),t(r.value).then((()=>({status:e.value,value:r.value}))))))}if("transform"===n.type){if(!1===r.common.async){const t=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!At(t))return t;const s=n.transform(t.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:s}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then((t=>At(t)?Promise.resolve(n.transform(t.value,i)).then((t=>({status:e.value,value:t}))):t))}it.assertNever(n)}}pe.create=(t,e,r)=>new pe({schema:t,typeName:Me.ZodEffects,effect:e,...Mt(r)}),pe.createWithPreprocess=(t,e,r)=>new pe({schema:e,effect:{type:"preprocess",transform:t},typeName:Me.ZodEffects,...Mt(r)});class me extends Ct{_parse(t){return this._getType(t)===ot.undefined?wt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}me.create=(t,e)=>new me({innerType:t,typeName:Me.ZodOptional,...Mt(e)});class ge extends Ct{_parse(t){return this._getType(t)===ot.null?wt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ge.create=(t,e)=>new ge({innerType:t,typeName:Me.ZodNullable,...Mt(e)});class ye extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t);let r=e.data;return e.parsedType===ot.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}ye.create=(t,e)=>new ye({innerType:t,typeName:Me.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...Mt(e)});class we extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r={...e,common:{...e.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Et(n)?n.then((t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new lt(r.common.issues)},input:r.data})}))):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new lt(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}we.create=(t,e)=>new we({innerType:t,typeName:Me.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...Mt(e)});class be extends Ct{_parse(t){if(this._getType(t)!==ot.nan){const e=this._getOrReturnCtx(t);return pt(e,{code:ct.invalid_type,expected:ot.nan,received:e.parsedType}),gt}return{status:"valid",value:t.data}}}be.create=t=>new be({typeName:Me.ZodNaN,...Mt(t)});const ve=Symbol("zod_brand");class Ae extends Ct{_parse(t){const{ctx:e}=this._processInputParams(t),r=e.data;return this._def.type._parse({data:r,path:e.path,parent:e})}unwrap(){return this._def.type}}class Ee extends Ct{_parse(t){const{status:e,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const t=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===t.status?gt:"dirty"===t.status?(e.dirty(),yt(t.value)):this._def.out._parseAsync({data:t.value,path:r.path,parent:r})})();{const t=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===t.status?gt:"dirty"===t.status?(e.dirty(),{status:"dirty",value:t.value}):this._def.out._parseSync({data:t.value,path:r.path,parent:r})}}static create(t,e){return new Ee({in:t,out:e,typeName:Me.ZodPipeline})}}class xe extends Ct{_parse(t){const e=this._def.innerType._parse(t);return At(e)&&(e.value=Object.freeze(e.value)),e}}xe.create=(t,e)=>new xe({innerType:t,typeName:Me.ZodReadonly,...Mt(e)});const _e=(t,e={},r)=>t?Wt.create().superRefine(((n,i)=>{var s,o;if(!t(n)){const t="function"==typeof e?e(n):"string"==typeof e?{message:e}:e,a=null===(o=null!==(s=t.fatal)&&void 0!==s?s:r)||void 0===o||o,c="string"==typeof t?{message:t}:t;i.addIssue({code:"custom",...c,fatal:a})}})):Wt.create(),Se={object:Jt.lazycreate};var Me;!function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"}(Me||(Me={}));const Ce=Lt.create,ke=jt.create,Ie=be.create,Pe=Dt.create,Oe=Ft.create,Ne=zt.create,Te=Ht.create,Re=$t.create,Be=qt.create,Le=Wt.create,Ue=Vt.create,je=Gt.create,De=Kt.create,Fe=Zt.create,ze=Jt.create,He=Jt.strictCreate,$e=Yt.create,qe=te.create,We=re.create,Ve=ne.create,Ge=ie.create,Ke=se.create,Ze=oe.create,Qe=ae.create,Je=ce.create,Ye=le.create,Xe=he.create,tr=de.create,er=fe.create,rr=pe.create,nr=me.create,ir=ge.create,sr=pe.createWithPreprocess,or=Ee.create,ar={string:t=>Lt.create({...t,coerce:!0}),number:t=>jt.create({...t,coerce:!0}),boolean:t=>Ft.create({...t,coerce:!0}),bigint:t=>Dt.create({...t,coerce:!0}),date:t=>zt.create({...t,coerce:!0})},cr=gt;var lr=Object.freeze({__proto__:null,defaultErrorMap:ut,setErrorMap:function(t){ht=t},getErrorMap:dt,makeIssue:ft,EMPTY_PATH:[],addIssueToContext:pt,ParseStatus:mt,INVALID:gt,DIRTY:yt,OK:wt,isAborted:bt,isDirty:vt,isValid:At,isAsync:Et,get util(){return it},get objectUtil(){return st},ZodParsedType:ot,getParsedType:at,ZodType:Ct,ZodString:Lt,ZodNumber:jt,ZodBigInt:Dt,ZodBoolean:Ft,ZodDate:zt,ZodSymbol:Ht,ZodUndefined:$t,ZodNull:qt,ZodAny:Wt,ZodUnknown:Vt,ZodNever:Gt,ZodVoid:Kt,ZodArray:Zt,ZodObject:Jt,ZodUnion:Yt,ZodDiscriminatedUnion:te,ZodIntersection:re,ZodTuple:ne,ZodRecord:ie,ZodMap:se,ZodSet:oe,ZodFunction:ae,ZodLazy:ce,ZodLiteral:le,ZodEnum:he,ZodNativeEnum:de,ZodPromise:fe,ZodEffects:pe,ZodTransformer:pe,ZodOptional:me,ZodNullable:ge,ZodDefault:ye,ZodCatch:we,ZodNaN:be,BRAND:ve,ZodBranded:Ae,ZodPipeline:Ee,ZodReadonly:xe,custom:_e,Schema:Ct,ZodSchema:Ct,late:Se,get ZodFirstPartyTypeKind(){return Me},coerce:ar,any:Le,array:Fe,bigint:Pe,boolean:Oe,date:Ne,discriminatedUnion:qe,effect:rr,enum:Xe,function:Qe,instanceof:(t,e={message:`Input not instance of ${t.name}`})=>_e((e=>e instanceof t),e),intersection:We,lazy:Je,literal:Ye,map:Ke,nan:Ie,nativeEnum:tr,never:je,null:Be,nullable:ir,number:ke,object:ze,oboolean:()=>Oe().optional(),onumber:()=>ke().optional(),optional:nr,ostring:()=>Ce().optional(),pipeline:or,preprocess:sr,promise:er,record:Ge,set:Ze,strictObject:He,string:Ce,symbol:Te,transformer:rr,tuple:Ve,undefined:Re,union:$e,unknown:Ue,void:De,NEVER:cr,ZodIssueCode:ct,quotelessJson:t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:lt});const ur=lr.object({message:lr.string()});function hr(t){return lr.literal(nt[t])}const dr=lr.object({chainId:lr.number()}),fr=lr.object({email:lr.string().email()}),pr=lr.object({otp:lr.string()}),mr=lr.object({chainId:lr.optional(lr.number())}),gr=lr.object({email:lr.string().email()}),yr=lr.object({themeMode:lr.optional(lr.enum(["light","dark"])),themeVariables:lr.optional(lr.record(lr.string(),lr.string().or(lr.number())))}),wr=lr.object({action:lr.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),br=lr.object({email:lr.string().email(),address:lr.string(),chainId:lr.number()}),vr=lr.object({isConnected:lr.boolean()}),Ar=lr.object({chainId:lr.number()}),Er=lr.object({email:lr.string().email()}),xr=lr.string(),_r=lr.object({method:lr.literal("personal_sign"),params:lr.array(lr.any())}),Sr=lr.object({method:lr.literal("eth_sendTransaction"),params:lr.array(lr.any())}),Mr=lr.object({method:lr.literal("eth_accounts")}),Cr=lr.object({method:lr.literal("eth_getBalance"),params:lr.array(lr.any())}),kr=lr.object({method:lr.literal("eth_estimateGas"),params:lr.array(lr.any())}),Ir=lr.object({method:lr.literal("eth_gasPrice")}),Pr=lr.object({method:lr.literal("eth_signTypedData_v4"),params:lr.array(lr.any())}),Or=lr.object({token:lr.string()}),Nr={appEvent:lr.object({type:hr("APP_SWITCH_NETWORK"),payload:dr}).or(lr.object({type:hr("APP_CONNECT_EMAIL"),payload:fr})).or(lr.object({type:hr("APP_CONNECT_DEVICE")})).or(lr.object({type:hr("APP_CONNECT_OTP"),payload:pr})).or(lr.object({type:hr("APP_GET_USER"),payload:lr.optional(mr)})).or(lr.object({type:hr("APP_SIGN_OUT")})).or(lr.object({type:hr("APP_IS_CONNECTED"),payload:lr.optional(Or)})).or(lr.object({type:hr("APP_GET_CHAIN_ID")})).or(lr.object({type:hr("APP_RPC_REQUEST"),payload:_r.or(Sr).or(Mr).or(Cr).or(kr).or(Ir).or(Pr)})).or(lr.object({type:hr("APP_UPDATE_EMAIL"),payload:gr})).or(lr.object({type:hr("APP_AWAIT_UPDATE_EMAIL")})).or(lr.object({type:hr("APP_SYNC_THEME"),payload:yr})),frameEvent:lr.object({type:hr("FRAME_SWITCH_NETWORK_ERROR"),payload:ur}).or(lr.object({type:hr("FRAME_SWITCH_NETWORK_SUCCESS")})).or(lr.object({type:hr("FRAME_CONNECT_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_EMAIL_SUCCESS"),payload:wr})).or(lr.object({type:hr("FRAME_CONNECT_OTP_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_OTP_SUCCESS")})).or(lr.object({type:hr("FRAME_CONNECT_DEVICE_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_CONNECT_DEVICE_SUCCESS")})).or(lr.object({type:hr("FRAME_GET_USER_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_GET_USER_SUCCESS"),payload:br})).or(lr.object({type:hr("FRAME_SIGN_OUT_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_SIGN_OUT_SUCCESS")})).or(lr.object({type:hr("FRAME_IS_CONNECTED_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_IS_CONNECTED_SUCCESS"),payload:vr})).or(lr.object({type:hr("FRAME_GET_CHAIN_ID_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_GET_CHAIN_ID_SUCCESS"),payload:Ar})).or(lr.object({type:hr("FRAME_RPC_REQUEST_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_RPC_REQUEST_SUCCESS"),payload:xr})).or(lr.object({type:hr("FRAME_SESSION_UPDATE"),payload:Or})).or(lr.object({type:hr("FRAME_UPDATE_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_UPDATE_EMAIL_SUCCESS")})).or(lr.object({type:hr("FRAME_AWAIT_UPDATE_EMAIL_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_AWAIT_UPDATE_EMAIL_SUCCESS"),payload:Er})).or(lr.object({type:hr("FRAME_SYNC_THEME_ERROR"),payload:ur})).or(lr.object({type:hr("FRAME_SYNC_THEME_SUCCESS")}))},Tr={set(t,e){localStorage.setItem(`${nt.STORAGE_KEY}${t}`,e)},get:t=>localStorage.getItem(`${nt.STORAGE_KEY}${t}`),delete(t){localStorage.removeItem(`${nt.STORAGE_KEY}${t}`)}},Rr=["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],Br=3e4,Lr={getBlockchainApiUrl(){try{const{timeZone:t}=(new Intl.DateTimeFormat).resolvedOptions(),e=t.toUpperCase();return Rr.includes(e)?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"}catch{return!1}},checkIfAllowedToTriggerEmail(){const t=Tr.get(nt.LAST_EMAIL_LOGIN_TIME);if(t){const e=Date.now()-Number(t);if(e{window.addEventListener("message",(({data:e})=>{if(!e.type?.includes(nt.FRAME_EVENT_KEY))return;const r=Nr.frameEvent.parse(e);t(r)}))},onAppEvent:t=>{window.addEventListener("message",(({data:e})=>{if(!e.type?.includes(nt.APP_EVENT_KEY))return;const r=Nr.appEvent.parse(e);t(r)}))},postAppEvent:t=>{if(!this.iframe?.contentWindow)throw new Error("W3mFrame: iframe is not set");Nr.appEvent.parse(t),window.postMessage(t),this.iframe.contentWindow.postMessage(t,"*")},postFrameEvent:t=>{if(!parent)throw new Error("W3mFrame: parent is not set");Nr.frameEvent.parse(t),parent.postMessage(t,"*")}},this.projectId=t,this.frameLoadPromise=new Promise(((t,e)=>{this.frameLoadPromiseResolver={resolve:t,reject:e}})),e){this.frameLoadPromise=new Promise(((t,e)=>{this.frameLoadPromiseResolver={resolve:t,reject:e}}));const e=document.createElement("iframe");e.id="w3m-iframe",e.src=`${nt.SECURE_SITE_SDK}?projectId=${t}`,e.style.position="fixed",e.style.zIndex="999999",e.style.display="none",e.style.opacity="0",e.style.borderRadius="clamp(0px, var(--wui-border-radius-l), 44px)",document.body.appendChild(e),this.iframe=e,this.iframe.onload=()=>{this.frameLoadPromiseResolver?.resolve(void 0)},this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")}}}get networks(){const t=[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,324,280,100,8453,84531,7777777,999].map((t=>({[t]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=eip155:${t}&projectId=${this.projectId}`,chainId:t}})));return Object.assign({},...t)}}class jr{constructor(t){this.connectEmailResolver=void 0,this.connectDeviceResolver=void 0,this.connectOtpResolver=void 0,this.connectResolver=void 0,this.disconnectResolver=void 0,this.isConnectedResolver=void 0,this.getChainIdResolver=void 0,this.switchChainResolver=void 0,this.rpcRequestResolver=void 0,this.updateEmailResolver=void 0,this.awaitUpdateEmailResolver=void 0,this.syncThemeResolver=void 0,this.w3mFrame=new Ur(t,!0),this.w3mFrame.events.onFrameEvent((t=>{switch(console.log("💻 received",t),t.type){case nt.FRAME_CONNECT_EMAIL_SUCCESS:return this.onConnectEmailSuccess(t);case nt.FRAME_CONNECT_EMAIL_ERROR:return this.onConnectEmailError(t);case nt.FRAME_CONNECT_DEVICE_SUCCESS:return this.onConnectDeviceSuccess();case nt.FRAME_CONNECT_DEVICE_ERROR:return this.onConnectDeviceError(t);case nt.FRAME_CONNECT_OTP_SUCCESS:return this.onConnectOtpSuccess();case nt.FRAME_CONNECT_OTP_ERROR:return this.onConnectOtpError(t);case nt.FRAME_GET_USER_SUCCESS:return this.onConnectSuccess(t);case nt.FRAME_GET_USER_ERROR:return this.onConnectError(t);case nt.FRAME_IS_CONNECTED_SUCCESS:return this.onIsConnectedSuccess(t);case nt.FRAME_IS_CONNECTED_ERROR:return this.onIsConnectedError(t);case nt.FRAME_GET_CHAIN_ID_SUCCESS:return this.onGetChainIdSuccess(t);case nt.FRAME_GET_CHAIN_ID_ERROR:return this.onGetChainIdError(t);case nt.FRAME_SIGN_OUT_SUCCESS:return this.onSignOutSuccess();case nt.FRAME_SIGN_OUT_ERROR:return this.onSignOutError(t);case nt.FRAME_SWITCH_NETWORK_SUCCESS:return this.onSwitchChainSuccess();case nt.FRAME_SWITCH_NETWORK_ERROR:return this.onSwitchChainError(t);case nt.FRAME_RPC_REQUEST_SUCCESS:return this.onRpcRequestSuccess(t);case nt.FRAME_RPC_REQUEST_ERROR:return this.onRpcRequestError(t);case nt.FRAME_SESSION_UPDATE:return this.onSessionUpdate(t);case nt.FRAME_UPDATE_EMAIL_SUCCESS:return this.onUpdateEmailSuccess();case nt.FRAME_UPDATE_EMAIL_ERROR:return this.onUpdateEmailError(t);case nt.FRAME_AWAIT_UPDATE_EMAIL_SUCCESS:return this.onAwaitUpdateEmailSuccess(t);case nt.FRAME_AWAIT_UPDATE_EMAIL_ERROR:return this.onAwaitUpdateEmailError(t);case nt.FRAME_SYNC_THEME_SUCCESS:return this.onSyncThemeSuccess();case nt.FRAME_SYNC_THEME_ERROR:return this.onSyncThemeError(t);default:return null}}))}getLoginEmailUsed(){return Boolean(Tr.get(nt.EMAIL_LOGIN_USED_KEY))}getEmail(){return Tr.get(nt.EMAIL)}async connectEmail(t){return await this.w3mFrame.frameLoadPromise,Lr.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_EMAIL,payload:t}),new Promise(((t,e)=>{this.connectEmailResolver={resolve:t,reject:e}}))}async connectDevice(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_DEVICE}),new Promise(((t,e)=>{this.connectDeviceResolver={resolve:t,reject:e}}))}async connectOtp(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_CONNECT_OTP,payload:t}),new Promise(((t,e)=>{this.connectOtpResolver={resolve:t,reject:e}}))}async isConnected(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_IS_CONNECTED,payload:void 0}),new Promise(((t,e)=>{this.isConnectedResolver={resolve:t,reject:e}}))}async getChainId(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_GET_CHAIN_ID}),new Promise(((t,e)=>{this.getChainIdResolver={resolve:t,reject:e}}))}async updateEmail(t){return await this.w3mFrame.frameLoadPromise,Lr.checkIfAllowedToTriggerEmail(),this.w3mFrame.events.postAppEvent({type:nt.APP_UPDATE_EMAIL,payload:t}),new Promise(((t,e)=>{this.updateEmailResolver={resolve:t,reject:e}}))}async awaitUpdateEmail(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_AWAIT_UPDATE_EMAIL}),new Promise(((t,e)=>{this.awaitUpdateEmailResolver={resolve:t,reject:e}}))}async syncTheme(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SYNC_THEME,payload:t}),new Promise(((t,e)=>{this.syncThemeResolver={resolve:t,reject:e}}))}async connect(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_GET_USER,payload:t}),new Promise(((t,e)=>{this.connectResolver={resolve:t,reject:e}}))}async switchNetwork(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SWITCH_NETWORK,payload:{chainId:t}}),new Promise(((t,e)=>{this.switchChainResolver={resolve:t,reject:e}}))}async disconnect(){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_SIGN_OUT}),new Promise(((t,e)=>{this.disconnectResolver={resolve:t,reject:e}}))}async request(t){return await this.w3mFrame.frameLoadPromise,this.w3mFrame.events.postAppEvent({type:nt.APP_RPC_REQUEST,payload:t}),new Promise(((t,e)=>{this.rpcRequestResolver={resolve:t,reject:e}}))}onRpcRequest(t){this.w3mFrame.events.onAppEvent((e=>{e.type.includes(nt.RPC_METHOD_KEY)&&t(e)}))}onRpcResponse(t){this.w3mFrame.events.onFrameEvent((e=>{e.type.includes(nt.RPC_METHOD_KEY)&&t(e)}))}onIsConnected(t){this.w3mFrame.events.onFrameEvent((e=>{e.type===nt.FRAME_IS_CONNECTED_SUCCESS&&t()}))}onConnectEmailSuccess(t){this.connectEmailResolver?.resolve(t.payload),this.setNewLastEmailLoginTime()}onConnectEmailError(t){this.connectEmailResolver?.reject(t.payload.message)}onConnectDeviceSuccess(){this.connectDeviceResolver?.resolve(void 0)}onConnectDeviceError(t){this.connectDeviceResolver?.reject(t.payload.message)}onConnectOtpSuccess(){this.connectOtpResolver?.resolve(void 0)}onConnectOtpError(t){this.connectOtpResolver?.reject(t.payload.message)}onConnectSuccess(t){this.setEmailLoginSuccess(t.payload.email),this.connectResolver?.resolve(t.payload)}onConnectError(t){this.connectResolver?.reject(t.payload.message)}onIsConnectedSuccess(t){this.isConnectedResolver?.resolve(t.payload)}onIsConnectedError(t){this.isConnectedResolver?.reject(t.payload.message)}onGetChainIdSuccess(t){this.getChainIdResolver?.resolve(t.payload)}onGetChainIdError(t){this.getChainIdResolver?.reject(t.payload.message)}onSignOutSuccess(){this.disconnectResolver?.resolve(void 0),Tr.delete(nt.EMAIL_LOGIN_USED_KEY),Tr.delete(nt.EMAIL)}onSignOutError(t){this.disconnectResolver?.reject(t.payload.message)}onSwitchChainSuccess(){this.switchChainResolver?.resolve(void 0)}onSwitchChainError(t){this.switchChainResolver?.reject(t.payload.message)}onRpcRequestSuccess(t){this.rpcRequestResolver?.resolve(t.payload)}onRpcRequestError(t){this.rpcRequestResolver?.reject(t.payload.message)}onSessionUpdate(t){const{payload:e}=t}onUpdateEmailSuccess(){this.updateEmailResolver?.resolve(void 0),this.setNewLastEmailLoginTime()}onUpdateEmailError(t){this.updateEmailResolver?.reject(t.payload.message)}onAwaitUpdateEmailSuccess(t){this.setEmailLoginSuccess(t.payload.email),this.awaitUpdateEmailResolver?.resolve(t.payload)}onAwaitUpdateEmailError(t){this.awaitUpdateEmailResolver?.reject(t.payload.message)}onSyncThemeSuccess(){this.syncThemeResolver?.resolve(void 0)}onSyncThemeError(t){this.syncThemeResolver?.reject(t.payload.message)}setNewLastEmailLoginTime(){Tr.set(nt.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setEmailLoginSuccess(t){Tr.set(nt.EMAIL,t),Tr.set(nt.EMAIL_LOGIN_USED_KEY,"true"),Tr.delete(nt.LAST_EMAIL_LOGIN_TIME)}}var Dr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Fr=class extends a.oi{constructor(){super(...arguments),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.timeoutTimeLeft=Lr.getTimeToNextEmailLogin(),this.error=""}firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}render(){if(!this.email)throw new Error("w3m-email-verify-otp-view: No email provided");const t=Boolean(this.timeoutTimeLeft);return a.dy` - `}startOTPTimeout(){this.OTPTimeout=setInterval((()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=jr.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)}),1e3)}async onOtpInputChange(t){try{if(!this.loading){const e=t.detail;this.emailConnector&&6===e.length&&(this.loading=!0,await this.emailConnector.provider.connectOtp({otp:e}),await s.ConnectionController.connectExternal(this.emailConnector),s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email"}}))}}catch(t){this.error=s.j1.parseError(t),this.loading=!1}}async onResendCode(){try{if(!this.loading&&!this.timeoutTimeLeft){const t=s.ConnectorController.getEmailConnector();if(!t||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await t.provider.connectEmail({email:this.email}),this.startOTPTimeout(),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};$r.styles=rt,Dr([(0,c.SB)()],$r.prototype,"loading",void 0),Dr([(0,c.SB)()],$r.prototype,"timeoutTimeLeft",void 0),Dr([(0,c.SB)()],$r.prototype,"error",void 0),$r=Dr([(0,o.customElement)("w3m-email-verify-otp-view")],$r);const Fr=a.iv` + `}startOTPTimeout(){this.OTPTimeout=setInterval((()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=Lr.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)}),1e3)}async onOtpInputChange(t){try{if(!this.loading){const e=t.detail;this.emailConnector&&6===e.length&&(this.loading=!0,await this.emailConnector.provider.connectOtp({otp:e}),await s.ConnectionController.connectExternal(this.emailConnector),s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email"}}))}}catch(t){this.error=s.j1.parseError(t),this.loading=!1}}async onResendCode(){try{if(!this.loading&&!this.timeoutTimeLeft){const t=s.ConnectorController.getEmailConnector();if(!t||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await t.provider.connectEmail({email:this.email}),this.startOTPTimeout(),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};Fr.styles=rt,Dr([(0,c.SB)()],Fr.prototype,"loading",void 0),Dr([(0,c.SB)()],Fr.prototype,"timeoutTimeLeft",void 0),Dr([(0,c.SB)()],Fr.prototype,"error",void 0),Fr=Dr([(0,o.customElement)("w3m-email-verify-otp-view")],Fr);const zr=a.iv` wui-icon-box { height: var(--wui-icon-box-size-xl); width: var(--wui-icon-box-size-xl); } -`;var zr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Hr=class extends a.oi{constructor(){super(),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw new Error("w3m-email-verify-device-view: No email provided");if(!this.emailConnector)throw new Error("w3m-email-verify-device-view: No email connector provided");return a.dy` +`;var Hr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $r=class extends a.oi{constructor(){super(),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw new Error("w3m-email-verify-device-view: No email provided");if(!this.emailConnector)throw new Error("w3m-email-verify-device-view: No email connector provided");return a.dy` - `}async listenForDeviceApproval(){this.emailConnector&&(await this.emailConnector.provider.connectDevice(),s.RouterController.replace("EmailVerifyOtp",{email:this.email}))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.emailConnector.provider.connectEmail({email:this.email}),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};Hr.styles=Fr,zr([(0,c.SB)()],Hr.prototype,"loading",void 0),Hr=zr([(0,o.customElement)("w3m-email-verify-device-view")],Hr);const Wr=a.iv` + `}async listenForDeviceApproval(){this.emailConnector&&(await this.emailConnector.provider.connectDevice(),s.RouterController.replace("EmailVerifyOtp",{email:this.email}))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.emailConnector.provider.connectEmail({email:this.email}),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};$r.styles=zr,Hr([(0,c.SB)()],$r.prototype,"loading",void 0),$r=Hr([(0,o.customElement)("w3m-email-verify-device-view")],$r);const qr=a.iv` div { width: 100%; height: 400px; @@ -4961,7 +4961,7 @@ transform: translateY(-50px); } } -`;var qr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Vr=class extends a.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(s.IN.subscribeKey("open",(t=>{t||this.onHideIframe()})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),this.bodyObserver?.unobserve(window.document.body)}firstUpdated(){this.iframe.style.display="block";const t=this.renderRoot.querySelector("div");this.bodyObserver=new ResizeObserver((()=>{const e=t?.getBoundingClientRect(),r=e??{left:0,top:0,width:0,height:0};this.iframe.style.width=`${r.width}px`,this.iframe.style.height=r.height-10+"px",this.iframe.style.left=`${r.left}px`,this.iframe.style.top=`${r.top+5}px`,this.ready=!0})),this.bodyObserver.observe(window.document.body)}render(){return this.ready&&this.onShowIframe(),a.dy`
    `}onShowIframe(){const t=window.innerWidth<=430;this.iframe.animate([{opacity:0,transform:t?"translateY(50px)":"scale(.95)"},{opacity:1,transform:t?"translateY(0)":"scale(1)"}],{duration:200,easing:"ease",fill:"forwards",delay:300})}async onHideIframe(){await this.iframe.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,this.iframe.style.display="none"}};Vr.styles=Wr,qr([(0,c.SB)()],Vr.prototype,"ready",void 0),Vr=qr([(0,o.customElement)("w3m-approve-transaction-view")],Vr);let Gr=class extends a.oi{render(){return a.dy` +`;var Wr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Vr=class extends a.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(s.IN.subscribeKey("open",(t=>{t||this.onHideIframe()})))}disconnectedCallback(){this.unsubscribe.forEach((t=>t())),this.bodyObserver?.unobserve(window.document.body)}firstUpdated(){this.iframe.style.display="block";const t=this.renderRoot.querySelector("div");this.bodyObserver=new ResizeObserver((()=>{const e=t?.getBoundingClientRect(),r=e??{left:0,top:0,width:0,height:0};this.iframe.style.width=`${r.width}px`,this.iframe.style.height=r.height-10+"px",this.iframe.style.left=`${r.left}px`,this.iframe.style.top=`${r.top+5}px`,this.ready=!0})),this.bodyObserver.observe(window.document.body)}render(){return this.ready&&this.onShowIframe(),a.dy`
    `}onShowIframe(){const t=window.innerWidth<=430;this.iframe.animate([{opacity:0,transform:t?"translateY(50px)":"scale(.95)"},{opacity:1,transform:t?"translateY(0)":"scale(1)"}],{duration:200,easing:"ease",fill:"forwards",delay:300})}async onHideIframe(){await this.iframe.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished,this.iframe.style.display="none"}};Vr.styles=qr,Wr([(0,c.SB)()],Vr.prototype,"ready",void 0),Vr=Wr([(0,o.customElement)("w3m-approve-transaction-view")],Vr);let Gr=class extends a.oi{render(){return a.dy` Follow the instructions on - `}};Gr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-upgrade-wallet-view")],Gr);const{D:Kr}=l._$LH;class Zr{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Jr=(t,e)=>{const r=t._$AN;if(void 0===r)return!1;for(const t of r)t._$AO?.(e,!1),Jr(t,e);return!0},Qr=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===r?.size)},Yr=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),en(e)}};function Xr(t){void 0!==this._$AN?(Qr(this),this._$AM=t,Yr(this)):this._$AM=t}function tn(t,e=!1,r=0){const n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(n))for(let t=r;t{2==t.type&&(t._$AP??=tn,t._$AQ??=Xr)};class rn extends Zr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Yr(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Jr(this,t),Qr(this))}setValue(t){if((t=>void 0===this._$Ct.strings)())this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const nn=()=>new sn;class sn{}const on=new WeakMap,an=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends rn{render(t){return l.Ld}update(t,[e]){const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=t.options?.host,this.ot(this.lt=t.element)),l.Ld}ot(t){if("function"==typeof this.G){const e=this.ct??globalThis;let r=on.get(e);void 0===r&&(r=new WeakMap,on.set(e,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){return"function"==typeof this.G?on.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),cn=a.iv` + `}};Gr=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-upgrade-wallet-view")],Gr);const{D:Kr}=l._$LH;class Zr{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Qr=(t,e)=>{const r=t._$AN;if(void 0===r)return!1;for(const t of r)t._$AO?.(e,!1),Qr(t,e);return!0},Jr=t=>{let e,r;do{if(void 0===(e=t._$AM))break;r=e._$AN,r.delete(t),t=e}while(0===r?.size)},Yr=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(void 0===r)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),en(e)}};function Xr(t){void 0!==this._$AN?(Jr(this),this._$AM=t,Yr(this)):this._$AM=t}function tn(t,e=!1,r=0){const n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(e)if(Array.isArray(n))for(let t=r;t{2==t.type&&(t._$AP??=tn,t._$AQ??=Xr)};class rn extends Zr{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,r){super._$AT(t,e,r),Yr(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Qr(this,t),Jr(this))}setValue(t){if((t=>void 0===this._$Ct.strings)())this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const nn=()=>new sn;class sn{}const on=new WeakMap,an=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends rn{render(t){return l.Ld}update(t,[e]){const r=e!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.ct=t.options?.host,this.ot(this.lt=t.element)),l.Ld}ot(t){if("function"==typeof this.G){const e=this.ct??globalThis;let r=on.get(e);void 0===r&&(r=new WeakMap,on.set(e,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,t),void 0!==t&&this.G.call(this.ct,t)}else this.G.value=t}get rt(){return"function"==typeof this.G?on.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),cn=a.iv` wui-email-input { width: 100%; } @@ -5019,7 +5019,7 @@ height: var(--wui-icon-box-size-xl); width: var(--wui-icon-box-size-xl); } -`;var dn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let pn=class extends a.oi{constructor(){super(),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForEmailUpdateApproval()}render(){if(!this.email)throw new Error("w3m-update-email-wallet-waiting-view: No email provided");if(!this.emailConnector)throw new Error("w3m-update-email-wallet-waiting-view: No email connector provided");return a.dy` +`;var dn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let fn=class extends a.oi{constructor(){super(),this.email=s.RouterController.state.data?.email,this.emailConnector=s.ConnectorController.getEmailConnector(),this.loading=!1,this.listenForEmailUpdateApproval()}render(){if(!this.email)throw new Error("w3m-update-email-wallet-waiting-view: No email provided");if(!this.emailConnector)throw new Error("w3m-update-email-wallet-waiting-view: No email connector provided");return a.dy`
    - `}async listenForEmailUpdateApproval(){this.emailConnector&&(await this.emailConnector.provider.awaitUpdateEmail(),s.RouterController.replace("Account"),s.SnackController.showSuccess("Email updated"))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-update-email-wallet-waiting-view: Unable to resend email");this.loading=!0,await this.emailConnector.provider.updateEmail({email:this.email}),this.listenForEmailUpdateApproval(),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};pn.styles=hn,dn([(0,c.SB)()],pn.prototype,"loading",void 0),pn=dn([(0,o.customElement)("w3m-update-email-wallet-waiting-view")],pn);const fn=a.iv` + `}async listenForEmailUpdateApproval(){this.emailConnector&&(await this.emailConnector.provider.awaitUpdateEmail(),s.RouterController.replace("Account"),s.SnackController.showSuccess("Email updated"))}async onResendCode(){try{if(!this.loading){if(!this.emailConnector||!this.email)throw new Error("w3m-update-email-wallet-waiting-view: Unable to resend email");this.loading=!0,await this.emailConnector.provider.updateEmail({email:this.email}),this.listenForEmailUpdateApproval(),s.SnackController.showSuccess("Code email resent")}}catch(t){s.SnackController.showError(t)}finally{this.loading=!1}}};fn.styles=hn,dn([(0,c.SB)()],fn.prototype,"loading",void 0),fn=dn([(0,o.customElement)("w3m-update-email-wallet-waiting-view")],fn);const pn=a.iv` wui-grid { max-height: clamp(360px, 400px, 80vh); overflow: scroll; @@ -5106,7 +5106,7 @@ @click=${()=>this.onConnectWallet(t)} .installed=${t.installed} > - `))}paginationLoaderTemplate(){const{wallets:t,recommended:e,featured:r,count:n}=s.ApiController.state,i=window.innerWidth<352?3:4,o=t.length+e.length;let a=Math.ceil(o/i)*i-o+i;return a-=t.length?r.length%i:0,0===n&&r.length>0?null:0===n||[...r,...t,...e].length{if(t?.isIntersecting&&!this.initial){const{page:t,count:e,wallets:r}=s.ApiController.state;r.lengthe===t.id));r?s.RouterController.push("ConnectingExternal",{connector:r}):s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};wn.styles=fn,gn([(0,c.SB)()],wn.prototype,"initial",void 0),gn([(0,c.SB)()],wn.prototype,"wallets",void 0),gn([(0,c.SB)()],wn.prototype,"recommended",void 0),gn([(0,c.SB)()],wn.prototype,"featured",void 0),wn=gn([(0,o.customElement)("w3m-all-wallets-list")],wn);const bn=a.iv` + `))}paginationLoaderTemplate(){const{wallets:t,recommended:e,featured:r,count:n}=s.ApiController.state,i=window.innerWidth<352?3:4,o=t.length+e.length;let a=Math.ceil(o/i)*i-o+i;return a-=t.length?r.length%i:0,0===n&&r.length>0?null:0===n||[...r,...t,...e].length{if(t?.isIntersecting&&!this.initial){const{page:t,count:e,wallets:r}=s.ApiController.state;r.lengthe===t.id));r?s.RouterController.push("ConnectingExternal",{connector:r}):s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};wn.styles=pn,gn([(0,c.SB)()],wn.prototype,"initial",void 0),gn([(0,c.SB)()],wn.prototype,"wallets",void 0),gn([(0,c.SB)()],wn.prototype,"recommended",void 0),gn([(0,c.SB)()],wn.prototype,"featured",void 0),wn=gn([(0,o.customElement)("w3m-all-wallets-list")],wn);const bn=a.iv` wui-grid, wui-loading-spinner, wui-flex { @@ -5131,7 +5131,7 @@ justify-content: center; align-items: center; } -`;var vn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let En=class extends a.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?a.dy``:this.walletsTemplate()}async onSearch(){this.query!==this.prevQuery&&(this.prevQuery=this.query,this.loading=!0,await s.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){const{search:t}=s.ApiController.state,e=mn(t);return t.length?a.dy` +`;var vn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let An=class extends a.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?a.dy``:this.walletsTemplate()}async onSearch(){this.query!==this.prevQuery&&(this.prevQuery=this.query,this.loading=!0,await s.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){const{search:t}=s.ApiController.state,e=mn(t);return t.length?a.dy` No Wallet found
    - `}onConnectWallet(t){const{connectors:e}=s.ConnectorController.state,r=e.find((({explorerId:e})=>e===t.id));r?s.RouterController.push("ConnectingExternal",{connector:r}):s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};En.styles=bn,vn([(0,c.SB)()],En.prototype,"loading",void 0),vn([(0,c.Cb)()],En.prototype,"query",void 0),En=vn([(0,o.customElement)("w3m-all-wallets-search")],En);var xn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let _n=class extends a.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}disconnectCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.generateTabs();return a.dy` + `}onConnectWallet(t){const{connectors:e}=s.ConnectorController.state,r=e.find((({explorerId:e})=>e===t.id));r?s.RouterController.push("ConnectingExternal",{connector:r}):s.RouterController.push("ConnectingWalletConnect",{wallet:t})}};An.styles=bn,vn([(0,c.SB)()],An.prototype,"loading",void 0),vn([(0,c.Cb)()],An.prototype,"query",void 0),An=vn([(0,o.customElement)("w3m-all-wallets-search")],An);var En=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let xn=class extends a.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}disconnectCallback(){this.unsubscribe.forEach((t=>t()))}render(){const t=this.generateTabs();return a.dy` - `}generateTabs(){const t=this.platforms.map((t=>"browser"===t?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===t?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===t?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===t?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===t?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"}));return this.platformTabs=t.map((({platform:t})=>t)),t}onTabChange(t){const e=this.platformTabs[t];e&&this.onSelectPlatfrom?.(e)}};xn([(0,c.Cb)({type:Array})],_n.prototype,"platforms",void 0),xn([(0,c.Cb)()],_n.prototype,"onSelectPlatfrom",void 0),xn([(0,c.SB)()],_n.prototype,"buffering",void 0),_n=xn([(0,o.customElement)("w3m-connecting-header")],_n);let An=class extends T{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:t}=s.ConnectorController.state,e=t.find((t=>"ANNOUNCED"===t.type&&t.info?.rdns===this.wallet?.rdns)),r=t.find((t=>"INJECTED"===t.type));e?await s.ConnectionController.connectExternal(e):r&&await s.ConnectionController.connectExternal(r),s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser"}})}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};An=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-browser")],An);let kn=class extends T{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.timeout=setTimeout((()=>{this.onConnect?.()}),200))}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_self")}catch{this.error=!0}}};kn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-desktop")],kn);let Sn=class extends T{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_self")}catch{this.error=!0}}onBuffering(){const t=s.j1.isIos();"visible"===document?.visibilityState&&!this.error&&t&&(s.ConnectionController.setBuffering(!0),setTimeout((()=>{s.ConnectionController.setBuffering(!1)}),5e3))}};Sn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-mobile")],Sn);const Cn=a.iv` + `}generateTabs(){const t=this.platforms.map((t=>"browser"===t?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===t?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===t?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===t?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===t?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"}));return this.platformTabs=t.map((({platform:t})=>t)),t}onTabChange(t){const e=this.platformTabs[t];e&&this.onSelectPlatfrom?.(e)}};En([(0,c.Cb)({type:Array})],xn.prototype,"platforms",void 0),En([(0,c.Cb)()],xn.prototype,"onSelectPlatfrom",void 0),En([(0,c.SB)()],xn.prototype,"buffering",void 0),xn=En([(0,o.customElement)("w3m-connecting-header")],xn);let _n=class extends N{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:t}=s.ConnectorController.state,e=t.find((t=>"ANNOUNCED"===t.type&&t.info?.rdns===this.wallet?.rdns)),r=t.find((t=>"INJECTED"===t.type));e?await s.ConnectionController.connectExternal(e):r&&await s.ConnectionController.connectExternal(r),s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser"}})}catch(t){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};_n=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-browser")],_n);let Sn=class extends N{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.timeout=setTimeout((()=>{this.onConnect?.()}),200))}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_self")}catch{this.error=!0}}};Sn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-desktop")],Sn);let Mn=class extends N{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_self")}catch{this.error=!0}}onBuffering(){const t=s.j1.isIos();"visible"===document?.visibilityState&&!this.error&&t&&(s.ConnectionController.setBuffering(!0),setTimeout((()=>{s.ConnectionController.setBuffering(!1)}),5e3))}};Mn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-mobile")],Mn);const Cn=a.iv` @keyframes fadein { from { opacity: 0; @@ -5190,7 +5190,7 @@ animation-name: fadein; animation-fill-mode: forwards; } -`;let Mn=class extends T{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),a.dy` +`;let kn=class extends N{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),a.dy` ${this.qrCodeTemplate()} @@ -5215,7 +5215,7 @@ > Copy link - `}};Mn.styles=Cn,Mn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-qrcode")],Mn);const In=a.iv` + `}};kn.styles=Cn,kn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-qrcode")],kn);const In=a.iv` :host { display: flex; justify-content: center; @@ -5247,12 +5247,12 @@ - `}};On=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-unsupported")],On);let Tn=class extends T{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatUniversalUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_blank")}catch{this.error=!0}}};Tn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-web")],Tn);const Nn=a.iv` + `}};On=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-unsupported")],On);let Nn=class extends N{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:e}=this.wallet,{redirect:r,href:n}=s.j1.formatUniversalUrl(t,this.uri);s.ConnectionController.setWcLinking({name:e,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_blank")}catch{this.error=!0}}};Nn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-connecting-wc-web")],Nn);const Tn=a.iv` wui-icon-link[data-hidden='true'] { opacity: 0 !important; pointer-events: none; } -`;var Rn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};function Bn(){const t=s.RouterController.state.data?.connector?.name,e=s.RouterController.state.data?.wallet?.name,r=s.RouterController.state.data?.network?.name,n=e??t,i=s.ConnectorController.getConnectors();return{Connect:`Connect ${1===i.length&&"w3m-email"===i[0]?.id?"Email":""} Wallet`,Account:void 0,ConnectingExternal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingSiwe:"Sign In",Networks:"Choose Network",SwitchNetwork:r??"Switch Network",AllWallets:"All Wallets",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",GetWallet:"Get a wallet",Downloads:n?`Get ${n}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",ApproveTransaction:"Approve Transaction",Transactions:"Activity",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailWalletWaiting:"Approve Email"}}let jn=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.heading=Bn()[s.RouterController.state.view],this.buffering=!1,this.showBack=!1,this.unsubscribe.push(s.RouterController.subscribeKey("view",(t=>{this.onViewChange(t),this.onHistoryChange()})),s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}disconnectCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` +`;var Rn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};function Bn(){const t=s.RouterController.state.data?.connector?.name,e=s.RouterController.state.data?.wallet?.name,r=s.RouterController.state.data?.network?.name,n=e??t,i=s.ConnectorController.getConnectors();return{Connect:`Connect ${1===i.length&&"w3m-email"===i[0]?.id?"Email":""} Wallet`,Account:void 0,ConnectingExternal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingSiwe:"Sign In",Networks:"Choose Network",SwitchNetwork:r??"Switch Network",AllWallets:"All Wallets",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",GetWallet:"Get a wallet",Downloads:n?`Get ${n}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",ApproveTransaction:"Approve Transaction",Transactions:"Activity",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailWalletWaiting:"Approve Email"}}let Ln=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.heading=Bn()[s.RouterController.state.view],this.buffering=!1,this.showBack=!1,this.unsubscribe.push(s.RouterController.subscribeKey("view",(t=>{this.onViewChange(t),this.onHistoryChange()})),s.ConnectionController.subscribeKey("buffering",(t=>this.buffering=t)))}disconnectCallback(){this.unsubscribe.forEach((t=>t()))}render(){return a.dy` ${this.dynamicButtonTemplate()} ${this.titleTemplate()} `}separatorTemplate(){return this.heading?a.dy``:null}getPadding(){return this.heading?["l","2l","l","2l"]:["l","2l","0","2l"]}async onViewChange(t){const e=this.shadowRoot?.querySelector("wui-text");if(e){const r=Bn()[t];await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.heading=r,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})}}async onHistoryChange(){const{history:t}=s.RouterController.state,e=this.shadowRoot?.querySelector("#dynamic");t.length>1&&!this.showBack&&e?(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):t.length<=1&&this.showBack&&e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){"ConnectingSiwe"===s.RouterController.state.view?s.RouterController.push("Connect"):s.RouterController.goBack()}};jn.styles=[Nn],Rn([(0,c.SB)()],jn.prototype,"heading",void 0),Rn([(0,c.SB)()],jn.prototype,"buffering",void 0),Rn([(0,c.SB)()],jn.prototype,"showBack",void 0),jn=Rn([(0,o.customElement)("w3m-header")],jn);var Ln=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Un=class extends a.oi{constructor(){super(...arguments),this.data=[]}render(){return a.dy` + >`}separatorTemplate(){return this.heading?a.dy``:null}getPadding(){return this.heading?["l","2l","l","2l"]:["l","2l","0","2l"]}async onViewChange(t){const e=this.shadowRoot?.querySelector("wui-text");if(e){const r=Bn()[t];await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.heading=r,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})}}async onHistoryChange(){const{history:t}=s.RouterController.state,e=this.shadowRoot?.querySelector("#dynamic");t.length>1&&!this.showBack&&e?(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):t.length<=1&&this.showBack&&e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){"ConnectingSiwe"===s.RouterController.state.view?s.RouterController.push("Connect"):s.RouterController.goBack()}};Ln.styles=[Tn],Rn([(0,c.SB)()],Ln.prototype,"heading",void 0),Rn([(0,c.SB)()],Ln.prototype,"buffering",void 0),Rn([(0,c.SB)()],Ln.prototype,"showBack",void 0),Ln=Rn([(0,o.customElement)("w3m-header")],Ln);var Un=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let jn=class extends a.oi{constructor(){super(...arguments),this.data=[]}render(){return a.dy` ${this.data.map((t=>a.dy` @@ -5289,7 +5289,7 @@ `))} - `}};Ln([(0,c.Cb)({type:Array})],Un.prototype,"data",void 0),Un=Ln([(0,o.customElement)("w3m-help-widget")],Un);const Dn=a.iv` + `}};Un([(0,c.Cb)({type:Array})],jn.prototype,"data",void 0),jn=Un([(0,o.customElement)("w3m-help-widget")],jn);const Dn=a.iv` wui-flex { background-color: var(--wui-gray-glass-005); } @@ -5299,19 +5299,19 @@ color: var(--wui-color-fg-175); font-weight: 500; } -`;let $n=class extends a.oi{render(){const{termsConditionsUrl:t,privacyPolicyUrl:e}=s.OptionsController.state;return t||e?a.dy` +`;let Fn=class extends a.oi{render(){const{termsConditionsUrl:t,privacyPolicyUrl:e}=s.OptionsController.state;return t||e?a.dy` By connecting your wallet, you agree to our
    ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
    - `:null}andTemplate(){const{termsConditionsUrl:t,privacyPolicyUrl:e}=s.OptionsController.state;return t&&e?"and":""}termsTemplate(){const{termsConditionsUrl:t}=s.OptionsController.state;return t?a.dy`Terms of Service`:null}privacyTemplate(){const{privacyPolicyUrl:t}=s.OptionsController.state;return t?a.dy`Privacy Policy`:null}};$n.styles=[Dn],$n=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-legal-footer")],$n);const Fn=a.iv` + `:null}andTemplate(){const{termsConditionsUrl:t,privacyPolicyUrl:e}=s.OptionsController.state;return t&&e?"and":""}termsTemplate(){const{termsConditionsUrl:t}=s.OptionsController.state;return t?a.dy`Terms of Service`:null}privacyTemplate(){const{privacyPolicyUrl:t}=s.OptionsController.state;return t?a.dy`Privacy Policy`:null}};Fn.styles=[Dn],Fn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}([(0,o.customElement)("w3m-legal-footer")],Fn);const zn=a.iv` :host { display: block; padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl); } -`;var zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Hn=class extends a.oi{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:t,app_store:e,play_store:r,chrome_store:n,homepage:i}=this.wallet,c=s.j1.isMobile(),l=s.j1.isIos(),u=s.j1.isAndroid(),h=[e,r,i,n].filter(Boolean).length>1,d=o.UiHelperUtil.getTruncateString({string:t,charsStart:12,charsEnd:0,truncate:"end"});return h&&!c?a.dy` +`;var Hn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let $n=class extends a.oi{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:t,app_store:e,play_store:r,chrome_store:n,homepage:i}=this.wallet,c=s.j1.isMobile(),l=s.j1.isIos(),u=s.j1.isAndroid(),h=[e,r,i,n].filter(Boolean).length>1,d=o.UiHelperUtil.getTruncateString({string:t,charsStart:12,charsEnd:0,truncate:"end"});return h&&!c?a.dy` - `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};Hn.styles=[Fn],zn([(0,c.Cb)({type:Object})],Hn.prototype,"wallet",void 0),Hn=zn([(0,o.customElement)("w3m-mobile-download-links")],Hn);const Wn=a.iv` + `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};$n.styles=[zn],Hn([(0,c.Cb)({type:Object})],$n.prototype,"wallet",void 0),$n=Hn([(0,o.customElement)("w3m-mobile-download-links")],$n);const qn=a.iv` :host { display: block; position: absolute; @@ -5345,14 +5345,14 @@ left: 50%; width: max-content; } -`;var qn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const Vn={success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let Gn=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=s.SnackController.state.open,this.unsubscribe.push(s.SnackController.subscribeKey("open",(t=>{this.open=t,this.onOpen()})))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach((t=>t()))}render(){const{message:t,variant:e}=s.SnackController.state,r=Vn[e];return a.dy` +`;var Wn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const Vn={success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}};let Gn=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=s.SnackController.state.open,this.unsubscribe.push(s.SnackController.subscribeKey("open",(t=>{this.open=t,this.onOpen()})))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach((t=>t()))}render(){const{message:t,variant:e}=s.SnackController.state,r=Vn[e];return a.dy` - `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout((()=>s.SnackController.hide()),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};Gn.styles=Wn,qn([(0,c.SB)()],Gn.prototype,"open",void 0),Gn=qn([(0,o.customElement)("w3m-snackbar")],Gn);const Kn=a.iv` + `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout((()=>s.SnackController.hide()),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};Gn.styles=qn,Wn([(0,c.SB)()],Gn.prototype,"open",void 0),Gn=Wn([(0,o.customElement)("w3m-snackbar")],Gn);const Kn=a.iv` :host { padding: var(--wui-spacing-3xs) 0; } @@ -5387,7 +5387,7 @@ wui-loading-spinner { right: var(--wui-spacing-m); } -`;var Zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Jn=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.formRef=nn(),this.connectors=s.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}firstUpdated(){this.formRef.value?.addEventListener("keydown",(t=>{"Enter"===t.key&&this.onSubmitEmail(t)}))}render(){const t=this.connectors.length>1,e=this.connectors.find((t=>"EMAIL"===t.type)),r=!this.loading&&this.email.length>3;return e?a.dy` +`;var Zn=function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};let Qn=class extends a.oi{constructor(){super(),this.unsubscribe=[],this.formRef=nn(),this.connectors=s.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",(t=>this.connectors=t)))}disconnectedCallback(){this.unsubscribe.forEach((t=>t()))}firstUpdated(){this.formRef.value?.addEventListener("keydown",(t=>{"Enter"===t.key&&this.onSubmitEmail(t)}))}render(){const t=this.connectors.length>1,e=this.connectors.find((t=>"EMAIL"===t.type)),r=!this.loading&&this.email.length>3;return e?a.dy`
    ${t?a.dy``:null} - `:null}onEmailInputChange(t){this.email=t.detail,this.error=""}async onSubmitEmail(t){try{if(this.loading)return;this.loading=!0,t.preventDefault();const e=s.ConnectorController.getEmailConnector();if(!e)throw new Error("w3m-email-login-widget: Email connector not found");const{action:r}=await e.provider.connectEmail({email:this.email});"VERIFY_OTP"===r?s.RouterController.push("EmailVerifyOtp",{email:this.email}):"VERIFY_DEVICE"===r&&s.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){s.j1.parseError(t)?.includes("Invalid email")?this.error="Invalid email. Try again.":s.SnackController.showError(t)}finally{this.loading=!1}}};Jn.styles=Kn,Zn([(0,c.SB)()],Jn.prototype,"connectors",void 0),Zn([(0,c.SB)()],Jn.prototype,"email",void 0),Zn([(0,c.SB)()],Jn.prototype,"loading",void 0),Zn([(0,c.SB)()],Jn.prototype,"error",void 0),Jn=Zn([(0,o.customElement)("w3m-email-login-widget")],Jn);let Qn=!1;class Yn{constructor(t){this.initPromise=void 0,this.setIsConnected=t=>{s.AccountController.setIsConnected(t)},this.setCaipAddress=t=>{s.AccountController.setCaipAddress(t)},this.setBalance=(t,e)=>{s.AccountController.setBalance(t,e)},this.setProfileName=t=>{s.AccountController.setProfileName(t)},this.setProfileImage=t=>{s.AccountController.setProfileImage(t)},this.resetAccount=()=>{s.AccountController.resetAccount()},this.setCaipNetwork=t=>{s.NetworkController.setCaipNetwork(t)},this.getCaipNetwork=()=>s.NetworkController.state.caipNetwork,this.setRequestedCaipNetworks=t=>{s.NetworkController.setRequestedCaipNetworks(t)},this.getApprovedCaipNetworksData=()=>s.NetworkController.getApprovedCaipNetworksData(),this.resetNetwork=()=>{s.NetworkController.resetNetwork()},this.setConnectors=t=>{s.ConnectorController.setConnectors(t)},this.addConnector=t=>{s.ConnectorController.addConnector(t)},this.getConnectors=()=>s.ConnectorController.getConnectors(),this.resetWcConnection=()=>{s.ConnectionController.resetWcConnection()},this.fetchIdentity=t=>s.Lr.fetchIdentity(t),this.setAddressExplorerUrl=t=>{s.AccountController.setAddressExplorerUrl(t)},this.setSIWENonce=t=>{s.yD.setNonce(t)},this.setSIWESession=t=>{s.yD.setSession(t)},this.setSIWEStatus=t=>{s.yD.setStatus(t)},this.setSIWEMessage=t=>{s.yD.setMessage(t)},this.initControllers(t),this.initOrContinue()}async open(t){await this.initOrContinue(),s.IN.open(t)}async close(){await this.initOrContinue(),s.IN.close()}setLoading(t){s.IN.setLoading(t)}getThemeMode(){return s.ThemeController.state.themeMode}getThemeVariables(){return s.ThemeController.state.themeVariables}setThemeMode(t){s.ThemeController.setThemeMode(t),(0,o.setColorTheme)(s.ThemeController.state.themeMode);try{const t=s.ConnectorController.getEmailConnector();t&&t.provider.syncTheme({themeMode:s.ThemeController.getSnapshot().themeMode})}catch{console.info("Unable to sync theme to email connector")}}setThemeVariables(t){s.ThemeController.setThemeVariables(t),(0,o.setThemeVariables)(s.ThemeController.state.themeVariables);try{const t=s.ConnectorController.getEmailConnector();t&&t.provider.syncTheme({themeVariables:s.ThemeController.getSnapshot().themeVariables})}catch{console.info("Unable to sync theme to email connector")}}subscribeTheme(t){return s.ThemeController.subscribe(t)}getState(){return{...s.Ie.state}}subscribeState(t){return s.Ie.subscribe(t)}getEvent(){return{...s.Xs.state}}subscribeEvents(t){return s.Xs.subscribe(t)}subscribeSIWEState(t){return s.yD.subscribe(t)}initControllers(t){if(s.NetworkController.setClient(t.networkControllerClient),s.NetworkController.setDefaultCaipNetwork(t.defaultChain),s.OptionsController.setProjectId(t.projectId),s.OptionsController.setIncludeWalletIds(t.includeWalletIds),s.OptionsController.setExcludeWalletIds(t.excludeWalletIds),s.OptionsController.setFeaturedWalletIds(t.featuredWalletIds),s.OptionsController.setTokens(t.tokens),s.OptionsController.setTermsConditionsUrl(t.termsConditionsUrl),s.OptionsController.setPrivacyPolicyUrl(t.privacyPolicyUrl),s.OptionsController.setCustomWallets(t.customWallets),s.OptionsController.setEnableAnalytics(t.enableAnalytics),s.OptionsController.setSdkVersion(t._sdkVersion),s.ConnectionController.setClient(t.connectionControllerClient),t.siweControllerClient){const e=t.siweControllerClient;s.yD.setSIWEClient(e)}t.metadata&&s.OptionsController.setMetadata(t.metadata),t.themeMode&&s.ThemeController.setThemeMode(t.themeMode),t.themeVariables&&s.ThemeController.setThemeVariables(t.themeVariables)}async initOrContinue(){return this.initPromise||Qn||!s.j1.isClient()||(Qn=!0,this.initPromise=new Promise((async t=>{await Promise.all([Promise.resolve().then(r.bind(r,31123)),Promise.resolve().then(r.bind(r,96541))]);const e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),t()}))),this.initPromise}}const Xn={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",COINBASE_CONNECTOR_ID:"coinbaseWallet",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",EMAIL_CONNECTOR_ID:"w3mEmail",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",VERSION:"3.5.5"},ti={ConnectorExplorerIds:{[Xn.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[Xn.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[Xn.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100"},ConnectorImageIds:{[Xn.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[Xn.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[Xn.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[Xn.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[Xn.INJECTED_CONNECTOR_ID]:"Browser Wallet",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[Xn.COINBASE_CONNECTOR_ID]:"Coinbase",[Xn.LEDGER_CONNECTOR_ID]:"Ledger",[Xn.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[Xn.INJECTED_CONNECTOR_ID]:"INJECTED",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[Xn.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[Xn.EMAIL_CONNECTOR_ID]:"EMAIL"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},ei={caipNetworkIdToNumber:t=>t?Number(t.split(":")[1]):void 0,getCaipTokens(t){if(!t)return;const e={};return Object.entries(t).forEach((([t,r])=>{e[`${Xn.EIP155}:${t}`]=r})),e}};function ri(t){if(t)return{id:`${Xn.EIP155}:${t.id}`,name:t.name,imageId:ti.EIP155NetworkImageIds[t.id]}}class ni extends Yn{constructor(t){const{wagmiConfig:e,siweConfig:r,chains:i,defaultChain:s,tokens:o,_sdkVersion:a,...c}=t;if(!e)throw new Error("web3modal:constructor - wagmiConfig is undefined");if(!c.projectId)throw new Error("web3modal:constructor - projectId is undefined");super({networkControllerClient:{switchCaipNetwork:async t=>{const e=ei.caipNetworkIdToNumber(t?.id);e&&await(0,n.If)({chainId:e})},async getApprovedCaipNetworksData(){const t=localStorage.getItem("wagmi.wallet");if(t?.includes(Xn.EMAIL_CONNECTOR_ID))return{supportsAllNetworks:!1,approvedCaipNetworkIds:ti.WalletConnectRpcChainIds.map((t=>`${Xn.EIP155}:${t}`))};if(t?.includes(Xn.WALLET_CONNECT_CONNECTOR_ID)){const t=e.connectors.find((t=>t.id===Xn.WALLET_CONNECT_CONNECTOR_ID));if(!t)throw new Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");const r=(await t.getProvider()).signer?.session?.namespaces,n=r?.[Xn.EIP155]?.methods,i=r?.[Xn.EIP155]?.chains;return{supportsAllNetworks:n?.includes(Xn.ADD_CHAIN_METHOD),approvedCaipNetworkIds:i}}return{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0}}},connectionControllerClient:{connectWalletConnect:async t=>{const r=e.connectors.find((t=>t.id===Xn.WALLET_CONNECT_CONNECTOR_ID));if(!r)throw new Error("connectionControllerClient:getWalletConnectUri - connector is undefined");r.on("message",(e=>{"display_uri"===e.type&&(t(e.data),r.removeAllListeners())}));const i=ei.caipNetworkIdToNumber(this.getCaipNetwork()?.id);await(0,n.$j)({connector:r,chainId:i})},connectExternal:async({id:t,provider:r,info:i})=>{const s=e.connectors.find((e=>e.id===t));if(!s)throw new Error("connectionControllerClient:connectExternal - connector is undefined");r&&i&&s.id===Xn.EIP6963_CONNECTOR_ID&&s.setEip6963Wallet?.({provider:r,info:i});const o=ei.caipNetworkIdToNumber(this.getCaipNetwork()?.id);await(0,n.$j)({connector:s,chainId:o})},checkInstalled:t=>{const e=this.getConnectors().filter((t=>"ANNOUNCED"===t.type)),r=this.getConnectors().find((t=>"INJECTED"===t.type));return t?!(!e.length||!t.some((t=>e.some((e=>e.info?.rdns===t)))))||!!r&&!!window?.ethereum&&t.some((t=>Boolean(window.ethereum?.[String(t)]))):Boolean(window.ethereum)},disconnect:async()=>{await(0,n.zP)(),r?.options?.signOutOnDisconnect&&await r.signOut()},signMessage:async t=>(0,n.l)({message:t})},siweControllerClient:r,defaultChain:ri(s),tokens:ei.getCaipTokens(o),_sdkVersion:a??`html-wagmi-${Xn.VERSION}`,...c}),this.hasSyncedConnectedAccount=!1,this.options=void 0,this.options=t,this.syncRequestedNetworks(i),this.syncConnectors(e),this.syncEmailConnector(e),this.listenEIP6963Connector(e),this.listenEmailConnector(e),(0,n.uH)((()=>this.syncAccount())),(0,n.QC)((()=>this.syncNetwork()))}getState(){const t=super.getState();return{...t,selectedNetworkId:ei.caipNetworkIdToNumber(t.selectedNetworkId)}}subscribeState(t){return super.subscribeState((e=>t({...e,selectedNetworkId:ei.caipNetworkIdToNumber(e.selectedNetworkId)})))}syncRequestedNetworks(t){const e=t?.map((t=>({id:`${Xn.EIP155}:${t.id}`,name:t.name,imageId:ti.EIP155NetworkImageIds[t.id],imageUrl:this.options?.chainImages?.[t.id]})));this.setRequestedCaipNetworks(e??[])}async syncAccount(){const{address:t,isConnected:e}=(0,n.D0)(),{chain:r}=(0,n.Hy)();if(this.resetAccount(),e&&t&&r){const n=`${Xn.EIP155}:${r.id}:${t}`;this.setIsConnected(e),this.setCaipAddress(n),await Promise.all([this.syncProfile(t,r),this.syncBalance(t,r),this.getApprovedCaipNetworksData()]),this.hasSyncedConnectedAccount=!0}else!e&&this.hasSyncedConnectedAccount&&(this.resetWcConnection(),this.resetNetwork())}async syncNetwork(){const{address:t,isConnected:e}=(0,n.D0)(),{chain:r}=(0,n.Hy)();if(r){const n=String(r.id),i=`${Xn.EIP155}:${n}`;if(this.setCaipNetwork({id:i,name:r.name,imageId:ti.EIP155NetworkImageIds[r.id],imageUrl:this.options?.chainImages?.[r.id]}),e&&t){const e=`${Xn.EIP155}:${r.id}:${t}`;if(this.setCaipAddress(e),r.blockExplorers?.default?.url){const e=`${r.blockExplorers.default.url}/address/${t}`;this.setAddressExplorerUrl(e)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&(await this.syncProfile(t,r),await this.syncBalance(t,r))}}}async syncProfile(t,e){if(e.id!==i.R.id)return this.setProfileName(null),void this.setProfileImage(null);try{const{name:r,avatar:n}=await this.fetchIdentity({caipChainId:`${Xn.EIP155}:${e.id}`,address:t});this.setProfileName(r),this.setProfileImage(n)}catch{const r=await(0,n.Lk)({address:t,chainId:e.id});if(r){this.setProfileName(r);const t=await(0,n.w6)({name:r,chainId:e.id});t&&this.setProfileImage(t)}}}async syncBalance(t,e){const r=await(0,n.EG)({address:t,chainId:e.id,token:this.options?.tokens?.[e.id]?.address});this.setBalance(r.formatted,r.symbol)}syncConnectors(t){const e=[];t.connectors.forEach((({id:t,name:r})=>{[Xn.EIP6963_CONNECTOR_ID,Xn.EMAIL_CONNECTOR_ID].includes(t)||e.push({id:t,explorerId:ti.ConnectorExplorerIds[t],imageId:ti.ConnectorImageIds[t],imageUrl:this.options?.connectorImages?.[t],name:ti.ConnectorNamesMap[t]??r,type:ti.ConnectorTypesMap[t]??"EXTERNAL"})})),this.setConnectors(e)}async syncEmailConnector(t){const e=t.connectors.find((({id:t})=>"w3mEmail"===t));if(e){const t=await e.getProvider();this.addConnector({id:Xn.EMAIL_CONNECTOR_ID,type:"EMAIL",name:"Email",provider:t})}}eip6963EventHandler(t,e){if(e.detail){const{info:r,provider:n}=e.detail;this.getConnectors().find((t=>t.name===r.name))||(this.addConnector({id:Xn.EIP6963_CONNECTOR_ID,type:"ANNOUNCED",imageUrl:r.icon??this.options?.connectorImages?.[Xn.EIP6963_CONNECTOR_ID],name:r.name,provider:n,info:r}),t.isAuthorized({info:r,provider:n}))}}listenEIP6963Connector(t){const e=t.connectors.find((t=>t.id===Xn.EIP6963_CONNECTOR_ID));if("undefined"!=typeof window&&e){const t=this.eip6963EventHandler.bind(this,e);window.addEventListener(Xn.EIP6963_ANNOUNCE_EVENT,t),window.dispatchEvent(new Event(Xn.EIP6963_REQUEST_EVENT))}}async listenEmailConnector(t){const e=t.connectors.find((t=>t.id===Xn.EMAIL_CONNECTOR_ID));if("undefined"!=typeof window&&e){super.setLoading(!0);const t=await e.getProvider(),r=t.getLoginEmailUsed();super.setLoading(r),t.onRpcRequest((()=>{super.open({view:"ApproveTransaction"})})),t.onRpcResponse((()=>{super.close()})),t.onIsConnected((()=>{super.setLoading(!1)}))}}}var ii,si,oi=r(92219),ai=r(45775),ci=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},li=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};const ui="connectedRdns";class hi extends oi._{constructor(t){super({chains:t.chains,options:{shimDisconnect:!0}}),this.id="eip6963",this.name="EIP6963",ii.set(this,void 0),si.set(this,void 0),this.onAccountsChanged=t=>{0===t.length?(this.storage?.removeItem(ui),this.emit("disconnect")):t[0]&&this.emit("change",{account:(0,ai.K)(t[0])})},ci(this,ii,this.options.getProvider(),"f")}async connect(t){const e=await super.connect(t);return li(this,si,"f")&&this.storage?.setItem(ui,li(this,si,"f").info.rdns),e}async disconnect(){await super.disconnect(),this.storage?.removeItem(ui),ci(this,si,void 0,"f")}async isAuthorized(t){const e=this.storage?.getItem(ui);if(e){if(li(this,si,"f")&&e===li(this,si,"f").info.rdns){const t=li(this,si,"f").provider;if((await t.request({method:"eth_accounts"})).length)return!0}t&&ci(this,si,t,"f")}return super.isAuthorized()}async getProvider(){return Promise.resolve(li(this,si,"f")?.provider??li(this,ii,"f"))}setEip6963Wallet(t){ci(this,si,t,"f")}}ii=new WeakMap,si=new WeakMap;var di=r(53324),pi=r(39028),fi=r(91677),mi=r(3980);class gi extends di.wR{constructor(t){super(t),this.id="w3mEmail",this.name="Web3Modal Email",this.ready=!0,this.provider={},"undefined"!=typeof window&&(this.provider=new Ur(t.options.projectId))}async getProvider(){return Promise.resolve(this.provider)}async connect(t={}){const{address:e,chainId:r}=await this.provider.connect({chainId:t.chainId});return{account:e,chain:{id:r,unsupported:this.isChainUnsupported(1)}}}async switchChain(t){try{const e=this.chains.find((e=>e.id===t));if(!e)throw new pi.x3(new Error("chain not found on connector."));await this.provider.switchNetwork(t);const r=this.isChainUnsupported(t);return this.emit("change",{chain:{id:t,unsupported:r}}),e}catch(t){if(t instanceof Error)throw new pi.x3(t);throw t}}async disconnect(){await this.provider.disconnect()}async getAccount(){const{address:t}=await this.provider.connect();return t}async getChainId(){const{chainId:t}=await this.provider.getChainId();return t}async getWalletClient(){const{address:t,chainId:e}=await this.provider.connect();return Promise.resolve((0,fi.K)({account:t,chain:{id:e},transport:(0,mi.P)(this.provider)}))}async isAuthorized(){const{isConnected:t}=await this.provider.isConnected();return t}onAccountsChanged(){}onChainChanged(){}onDisconnect(){}}var yi=r(48764);"undefined"!=typeof window&&(window.Buffer||(window.Buffer=yi.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}));var wi,bi,vi=r(57858),Ei=r(53516),xi=r(92106),_i=class extends di.wR{constructor({chains:t,options:e}){super({chains:t,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,(0,di.Ko)(this,wi,void 0),(0,di.Ko)(this,bi,void 0),this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,ai.K)(t[0])})},this.onChainChanged=t=>{const e=(0,Ei.J)(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:t}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const r=await e.enable(),n=(0,ai.K)(r[0]);let i=await this.getChainId(),s=this.isChainUnsupported(i);return t&&i!==t&&(i=(await this.switchChain(t)).id,s=this.isChainUnsupported(i)),{account:n,chain:{id:i,unsupported:s}}}catch(t){if(/(user closed modal|accounts received is empty)/i.test(t.message))throw new pi.ab(t);throw t}}async disconnect(){if(!(0,di.ac)(this,bi))return;const t=await this.getProvider();t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),t.disconnect(),t.close()}async getAccount(){const t=await this.getProvider(),e=await t.request({method:"eth_accounts"});return(0,ai.K)(e[0])}async getChainId(){const t=await this.getProvider();return(0,Ei.J)(t.chainId)}async getProvider(){if(!(0,di.ac)(this,bi)){let t=(await Promise.resolve().then(r.t.bind(r,45811,19))).default;"function"!=typeof t&&"function"==typeof t.default&&(t=t.default),(0,di.qx)(this,wi,new t(this.options));const e=(0,di.ac)(this,wi).walletExtension?.getChainId(),n=this.chains.find((t=>this.options.chainId?t.id===this.options.chainId:t.id===e))||this.chains[0],i=this.options.chainId||n?.id,s=this.options.jsonRpcUrl||n?.rpcUrls.default.http[0];(0,di.qx)(this,bi,(0,di.ac)(this,wi).makeWeb3Provider(s,i))}return(0,di.ac)(this,bi)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,fi.K)({account:r,chain:n,transport:(0,mi.P)(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(t){const e=await this.getProvider(),r=(0,xi.eC)(t);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),this.chains.find((e=>e.id===t))??{id:t,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const i=this.chains.find((e=>e.id===t));if(!i)throw new vi.B({chainId:t,connectorId:this.id});if(4902===n.code)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(t){throw new pi.ab(t)}throw new pi.x3(n)}}async watchAsset({address:t,decimals:e=18,image:r,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:e,image:r,symbol:n}}})}};wi=new WeakMap,bi=new WeakMap;var Ai,ki,Si,Ci,Mi,Ii,Pi,Oi,Ti,Ni,Ri,Bi,ji,Li,Ui,Di,$i,Fi,zi,Hi,Wi=r(49795),qi="eip155",Vi="requestedChains",Gi="wallet_addEthereumChain",Ki=class extends di.wR{constructor(t){super({...t,options:{isNewChainsStale:!0,...t.options}}),(0,di.Ko)(this,Si),(0,di.Ko)(this,Mi),(0,di.Ko)(this,Pi),(0,di.Ko)(this,Ti),(0,di.Ko)(this,Ri),(0,di.Ko)(this,ji),(0,di.Ko)(this,Ui),(0,di.Ko)(this,$i),(0,di.Ko)(this,zi),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,(0,di.Ko)(this,Ai,void 0),(0,di.Ko)(this,ki,void 0),this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,ai.K)(t[0])})},this.onChainChanged=t=>{const e=Number(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=()=>{(0,di.U9)(this,ji,Li).call(this,[]),this.emit("disconnect")},this.onDisplayUri=t=>{this.emit("message",{type:"display_uri",data:t})},this.onConnect=()=>{this.emit("connect",{})},(0,di.U9)(this,Si,Ci).call(this)}async connect({chainId:t,pairingTopic:e}={}){try{let r=t;if(!r){const t=this.storage?.getItem("store"),e=t?.state?.data?.chain?.id;r=e&&!this.isChainUnsupported(e)?e:this.chains[0]?.id}if(!r)throw new Error("No chains found on connector.");const n=await this.getProvider();(0,di.U9)(this,Ti,Ni).call(this);const i=(0,di.U9)(this,Pi,Oi).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){const t=this.chains.filter((t=>t.id!==r)).map((t=>t.id));this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:e,optionalChains:[r,...t]}),(0,di.U9)(this,ji,Li).call(this,this.chains.map((({id:t})=>t)))}const s=await n.enable(),o=(0,ai.K)(s[0]),a=await this.getChainId();return{account:o,chain:{id:a,unsupported:this.isChainUnsupported(a)}}}catch(t){if(/user rejected/i.test(t?.message))throw new pi.ab(t);throw t}}async disconnect(){const t=await this.getProvider();try{await t.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{(0,di.U9)(this,Ri,Bi).call(this),(0,di.U9)(this,ji,Li).call(this,[])}}async getAccount(){const{accounts:t}=await this.getProvider();return(0,ai.K)(t[0])}async getChainId(){const{chainId:t}=await this.getProvider();return t}async getProvider({chainId:t}={}){return(0,di.ac)(this,Ai)||await(0,di.U9)(this,Si,Ci).call(this),t&&await this.switchChain(t),(0,di.ac)(this,Ai)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider({chainId:t}),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,fi.K)({account:r,chain:n,transport:(0,mi.P)(e)})}async isAuthorized(){try{const[t,e]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,di.U9)(this,Pi,Oi).call(this);if(!t)return!1;if(r&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(t){const e=this.chains.find((e=>e.id===t));if(!e)throw new pi.x3(new Error("chain not found on connector."));try{const r=await this.getProvider(),n=(0,di.U9)(this,$i,Fi).call(this),i=(0,di.U9)(this,zi,Hi).call(this);if(!n.includes(t)&&i.includes(Gi)){await r.request({method:Gi,params:[{chainId:(0,xi.eC)(e.id),blockExplorerUrls:[e.blockExplorers?.default?.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const n=(0,di.U9)(this,Ui,Di).call(this);n.push(t),(0,di.U9)(this,ji,Li).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,xi.eC)(t)}]}),e}catch(t){if(/user rejected request/i.test("string"==typeof t?t:t?.message))throw new pi.ab(t);throw new pi.x3(t)}}};Ai=new WeakMap,ki=new WeakMap,Si=new WeakSet,Ci=async function(){return(0,di.ac)(this,ki)||"undefined"==typeof window||(0,di.qx)(this,ki,(0,di.U9)(this,Mi,Ii).call(this)),(0,di.ac)(this,ki)},Mi=new WeakSet,Ii=async function(){const{EthereumProvider:t}=await Promise.resolve().then(r.bind(r,33098)),e=this.chains.map((({id:t})=>t));if(e.length){const{projectId:r,showQrModal:n=!0,qrModalOptions:i,metadata:s,relayUrl:o}=this.options;(0,di.qx)(this,Ai,await t.init({showQrModal:n,qrModalOptions:i,projectId:r,optionalChains:e,rpcMap:Object.fromEntries(this.chains.map((t=>[t.id,t.rpcUrls.default.http[0]]))),metadata:s,relayUrl:o}))}},Pi=new WeakSet,Oi=function(){if((0,di.U9)(this,zi,Hi).call(this).includes(Gi))return!1;if(!this.options.isNewChainsStale)return!1;const t=(0,di.U9)(this,Ui,Di).call(this),e=this.chains.map((({id:t})=>t)),r=(0,di.U9)(this,$i,Fi).call(this);return!(r.length&&!r.some((t=>e.includes(t)))||e.every((e=>t.includes(e))))},Ti=new WeakSet,Ni=function(){(0,di.ac)(this,Ai)&&((0,di.U9)(this,Ri,Bi).call(this),(0,di.ac)(this,Ai).on("accountsChanged",this.onAccountsChanged),(0,di.ac)(this,Ai).on("chainChanged",this.onChainChanged),(0,di.ac)(this,Ai).on("disconnect",this.onDisconnect),(0,di.ac)(this,Ai).on("session_delete",this.onDisconnect),(0,di.ac)(this,Ai).on("display_uri",this.onDisplayUri),(0,di.ac)(this,Ai).on("connect",this.onConnect))},Ri=new WeakSet,Bi=function(){(0,di.ac)(this,Ai)&&((0,di.ac)(this,Ai).removeListener("accountsChanged",this.onAccountsChanged),(0,di.ac)(this,Ai).removeListener("chainChanged",this.onChainChanged),(0,di.ac)(this,Ai).removeListener("disconnect",this.onDisconnect),(0,di.ac)(this,Ai).removeListener("session_delete",this.onDisconnect),(0,di.ac)(this,Ai).removeListener("display_uri",this.onDisplayUri),(0,di.ac)(this,Ai).removeListener("connect",this.onConnect))},ji=new WeakSet,Li=function(t){this.storage?.setItem(Vi,t)},Ui=new WeakSet,Di=function(){return this.storage?.getItem(Vi)??[]},$i=new WeakSet,Fi=function(){if(!(0,di.ac)(this,Ai))return[];const t=(0,di.ac)(this,Ai).session?.namespaces;if(!t)return[];const e=(0,Wi.fK)(t)[qi]?.chains?.map((t=>parseInt(t.split(":")[1]||"")));return e??[]},zi=new WeakSet,Hi=function(){if(!(0,di.ac)(this,Ai))return[];const t=(0,di.ac)(this,Ai).session?.namespaces;if(!t)return[];const e=(0,Wi.fK)(t)[qi]?.methods;return e??[]};const Zi=s.j1.getBlockchainApiUrl();function Ji({projectId:t}){return function(e){if(!ti.WalletConnectRpcChainIds.includes(e.id))return null;const r=`${Zi}/v1/?chainId=${Xn.EIP155}:${e.id}&projectId=${t}`;return{chain:{...e,rpcUrls:{...e.rpcUrls,default:{http:[r]}}},rpcUrls:{http:[r]}}}}function Qi({projectId:t,chains:e,metadata:r,enableInjected:i,enableCoinbase:s,enableEIP6963:o,enableEmail:a,enableWalletConnect:c}){const{publicClient:l}=(0,n.QB)(e,[Ji({projectId:t}),function(t){return t.rpcUrls.public.http[0]?{chain:t,rpcUrls:t.rpcUrls.public}:null}]),u=[];return!1!==c&&u.push(new Ki({chains:e,options:{projectId:t,showQrModal:!1,metadata:r}})),!1!==i&&u.push(new oi._({chains:e,options:{shimDisconnect:!0}})),!1!==o&&u.push(new hi({chains:e})),!1!==s&&u.push(new _i({chains:e,options:{appName:r?.name??"Unknown"}})),!0===a&&u.push(new gi({chains:e,options:{projectId:t}})),(0,n._g)({autoConnect:!0,connectors:u,publicClient:l})}function Yi(t){return new ni({...t,_sdkVersion:`html-wagmi-${Xn.VERSION}`})}},33649:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__addDisposableResource:()=>R,__assign:()=>s,__asyncDelegator:()=>k,__asyncGenerator:()=>A,__asyncValues:()=>S,__await:()=>_,__awaiter:()=>f,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>T,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>j,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>P,__importStar:()=>I,__makeTemplateObject:()=>C,__metadata:()=>p,__param:()=>c,__propKey:()=>h,__read:()=>b,__rest:()=>o,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>v,__spreadArray:()=>x,__spreadArrays:()=>E,__values:()=>w,default:()=>L});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e,r,n,i,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!e&&t?n.static?t:t.prototype:null,h=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var f={};for(var m in n)f[m]="access"===m?{}:n[m];for(var m in n.access)f.access[m]=n.access[m];f.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var g=(0,r[p])("accessor"===c?{get:h.get,set:h.set}:h[l],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(h.get=a),(a=o(g.set))&&(h.set=a),(a=o(g.init))&&i.unshift(a)}else(a=o(g))&&("field"===c?i.unshift(a):h[l]=a)}u&&Object.defineProperty(u,n.name,h),d=!0}function u(t,e,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function v(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof _?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function k(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:_(t[n](e)),done:!1}:i?i(e):e}:i}}function S(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=w(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var M=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&g(e,t,r);return M(e,t),e}function P(t){return t&&t.__esModule?t:{default:t}}function O(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function T(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r}function N(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function R(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var B="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function j(t){function e(e){t.error=t.hasError?new B(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function r(){for(;t.stack.length;){var n=t.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(t){return e(t),r()}))}catch(t){e(t)}}if(t.hasError)throw t.error}()}const L={__extends:i,__assign:s,__rest:o,__decorate:a,__param:c,__metadata:p,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:w,__read:b,__spread:v,__spreadArrays:E,__spreadArray:x,__await:_,__asyncGenerator:A,__asyncDelegator:k,__asyncValues:S,__makeTemplateObject:C,__importStar:I,__importDefault:P,__classPrivateFieldGet:O,__classPrivateFieldSet:T,__classPrivateFieldIn:N,__addDisposableResource:R,__disposeResources:j}},53160:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(16867);function i(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}},20605:(t,e,r)=>{"use strict";r.d(e,{z:()=>s});var n=r(53160),i=r(16867);function s(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const r=(0,n.E)(e);let s=0;for(const e of t)r.set(e,s),s+=e.length;return(0,i.P)(r)}},52217:(t,e,r)=>{"use strict";r.d(e,{m:()=>s});var n=r(95114),i=r(16867);function s(t,e="utf8"){const r=n.Z[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):(0,i.P)(globalThis.Buffer.from(t,"utf-8"))}},37466:(t,e,r)=>{"use strict";r.d(e,{BB:()=>s.B,mL:()=>i.m,zo:()=>n.z});var n=r(20605),i=r(52217),s=r(92263)},92263:(t,e,r)=>{"use strict";r.d(e,{B:()=>i});var n=r(95114);function i(t,e="utf8"){const r=n.Z[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(t).substring(1):globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}},16867:(t,e,r)=>{"use strict";function n(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}r.d(e,{P:()=>n})},95114:(t,e,r)=>{"use strict";r.d(e,{Z:()=>jt});var n={};r.r(n),r.d(n,{identity:()=>S});var i={};r.r(i),r.d(i,{base2:()=>C});var s={};r.r(s),r.d(s,{base8:()=>M});var o={};r.r(o),r.d(o,{base10:()=>I});var a={};r.r(a),r.d(a,{base16:()=>P,base16upper:()=>O});var c={};r.r(c),r.d(c,{base32:()=>T,base32hex:()=>j,base32hexpad:()=>U,base32hexpadupper:()=>D,base32hexupper:()=>L,base32pad:()=>R,base32padupper:()=>B,base32upper:()=>N,base32z:()=>$});var l={};r.r(l),r.d(l,{base36:()=>F,base36upper:()=>z});var u={};r.r(u),r.d(u,{base58btc:()=>H,base58flickr:()=>W});var h={};r.r(h),r.d(h,{base64:()=>q,base64pad:()=>V,base64url:()=>G,base64urlpad:()=>K});var d={};r.r(d),r.d(d,{base256emoji:()=>Y});var p={};r.r(p),r.d(p,{sha256:()=>yt,sha512:()=>wt});var f={};r.r(f),r.d(f,{identity:()=>vt});var m={};r.r(m),r.d(m,{code:()=>xt,decode:()=>At,encode:()=>_t,name:()=>Et});var g={};r.r(g),r.d(g,{code:()=>Mt,decode:()=>Pt,encode:()=>It,name:()=>Ct});const y=(new Uint8Array(0),t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")});class w{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class b{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return E(this,t)}}class v{constructor(t){this.decoders=t}or(t){return E(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const E=(t,e)=>new v({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class x{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new w(t,e,r),this.decoder=new b(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const _=({name:t,prefix:e,encode:r,decode:n})=>new x(t,e,r,n),A=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var p=s-i;p!==s&&0===o[p];)p++;for(var f=new Uint8Array(n+(s-p)),m=n;p!==s;)f[m++]=o[p++];return f}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,p=o-1;(0!==h||d>>0,l[p]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var f=o-n;f!==o&&0===l[f];)f++;for(var m=c.repeat(r);fy(i(t))})},k=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>_({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),S=_({prefix:"\0",name:"identity",encode:t=>{return e=t,(new TextDecoder).decode(e);var e},decode:t=>(t=>(new TextEncoder).encode(t))(t)}),C=k({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=k({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),I=A({prefix:"9",name:"base10",alphabet:"0123456789"}),P=k({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),O=k({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),T=k({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),N=k({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),R=k({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),B=k({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),j=k({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),L=k({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),U=k({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),D=k({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),$=k({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),F=A({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),z=A({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),H=A({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),W=A({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),q=k({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),V=k({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),G=k({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),K=k({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Z=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),J=Z.reduce(((t,e,r)=>(t[r]=e,t)),[]),Q=Z.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Y=_({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+J[e]),"")},decode:function(t){const e=[];for(const r of t){const t=Q[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var X=Math.pow(2,31),tt=Math.pow(2,7),et=Math.pow(2,14),rt=Math.pow(2,21),nt=Math.pow(2,28),it=Math.pow(2,35),st=Math.pow(2,42),ot=Math.pow(2,49),at=Math.pow(2,56),ct=Math.pow(2,63);const lt=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=X;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},ut=(t,e,r=0)=>(lt(t,e,r),e),ht=t=>function(t){return t{const r=e.byteLength,n=ht(t),i=n+ht(r),s=new Uint8Array(i+r);return ut(t,s,0),ut(r,s,n),s.set(e,i),new pt(t,r,e,s)};class pt{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const ft=({name:t,code:e,encode:r})=>new mt(t,e,r);class mt{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?dt(this.code,e):e.then((t=>dt(this.code,t)))}throw Error("Unknown type, must be binary type")}}const gt=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),yt=ft({name:"sha2-256",code:18,encode:gt("SHA-256")}),wt=ft({name:"sha2-512",code:19,encode:gt("SHA-512")}),bt=y,vt={code:0,name:"identity",encode:bt,digest:t=>dt(0,bt(t))},Et="raw",xt=85,_t=t=>y(t),At=t=>y(t),kt=new TextEncoder,St=new TextDecoder,Ct="json",Mt=512,It=t=>kt.encode(JSON.stringify(t)),Pt=t=>JSON.parse(St.decode(t));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom"),Symbol.for("@ipld/js-cid/CID");const Ot={...n,...i,...s,...o,...a,...c,...l,...u,...h,...d};var Tt=r(53160);function Nt(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const Rt=Nt("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),Bt=Nt("ascii","a",(t=>{let e="a";for(let r=0;r{t=t.substring(1);const e=(0,Tt.E)(t.length);for(let r=0;r{"use strict";r.d(e,{sj:()=>h,iH:()=>f,CO:()=>p,Ld:()=>d}),Symbol();const n=Symbol(),i=Object.getPrototypeOf,s=new WeakMap,o=(t,e=!0)=>{s.set(t,e)},a=t=>"object"==typeof t&&null!==t,c=new WeakMap,l=new WeakSet,[u]=((t=Object.is,e=((t,e)=>new Proxy(t,e)),r=(t=>a(t)&&!l.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)),u=(t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),h=new WeakMap,d=((t,e,r=u)=>{const n=h.get(t);if((null==n?void 0:n[0])===e)return n[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return o(i,!0),h.set(t,[e,i]),Reflect.ownKeys(t).forEach((e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const n=Reflect.get(t,e),s={value:n,enumerable:!0,configurable:!0};if(l.has(n))o(n,!1);else if(n instanceof Promise)delete s.value,s.get=()=>r(n);else if(c.has(n)){const[t,e]=c.get(n);s.value=d(t,e(),r)}Object.defineProperty(i,e,s)})),Object.preventExtensions(i)}),p=new WeakMap,f=[1,1],m=(o=>{if(!a(o))throw new Error("object required");const u=p.get(o);if(u)return u;let h=f[0];const g=new Set,y=(t,e=++f[0])=>{h!==e&&(h=e,g.forEach((r=>r(t,e))))};let w=f[1];const b=t=>(e,r)=>{const n=[...e];n[1]=[t,...n[1]],y(n,r)},v=new Map,E=t=>{var e;const r=v.get(t);r&&(v.delete(t),null==(e=r[1])||e.call(r))},x=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),_=e(x,{deleteProperty(t,e){const r=Reflect.get(t,e);E(e);const n=Reflect.deleteProperty(t,e);return n&&y(["delete",[e],r]),n},set(e,o,u,h){const d=Reflect.has(e,o),f=Reflect.get(e,o,h);if(d&&(t(f,u)||p.has(u)&&t(f,p.get(u))))return!0;var w;E(o),a(u)&&(u=(t=>t&&(s.has(t)?s.get(t):i(t)===Object.prototype||i(t)===Array.prototype))(w=u)&&w[n]||u);let x=u;if(u instanceof Promise)u.then((t=>{u.status="fulfilled",u.value=t,y(["resolve",[o],t])})).catch((t=>{u.status="rejected",u.reason=t,y(["reject",[o],t])}));else{!c.has(u)&&r(u)&&(x=m(u));const t=!l.has(x)&&c.get(x);t&&((t,e)=>{if(v.has(t))throw new Error("prop listener already exists");if(g.size){const r=e[3](b(t));v.set(t,[e,r])}else v.set(t,[e])})(o,t)}return Reflect.set(e,o,x,h),y(["set",[o],u,f]),!0}});p.set(o,_);const A=[x,(t=++f[1])=>(w===t||g.size||(w=t,v.forEach((([e])=>{const r=e[1](t);r>h&&(h=r)}))),h),d,t=>(g.add(t),1===g.size&&v.forEach((([t,e],r)=>{if(e)throw new Error("remove already exists");const n=t[3](b(r));v.set(r,[t,n])})),()=>{g.delete(t),0===g.size&&v.forEach((([t,e],r)=>{e&&(e(),v.set(r,[t]))}))})];return c.set(_,A),Reflect.ownKeys(o).forEach((t=>{const e=Object.getOwnPropertyDescriptor(o,t);"value"in e&&(_[t]=o[t],delete e.value,delete e.writable),Object.defineProperty(x,t,e)})),_}))=>[m,c,l,t,e,r,u,h,d,p,f])();function h(t={}){return u(t)}function d(t,e,r){const n=c.get(t);let i;n||console.warn("Please use proxy object");const s=[],o=n[3];let a=!1;const l=o((t=>{s.push(t),r?e(s.splice(0)):i||(i=Promise.resolve().then((()=>{i=void 0,a&&e(s.splice(0))})))}));return a=!0,()=>{a=!1,l()}}function p(t,e){const r=c.get(t);r||console.warn("Please use proxy object");const[n,i,s]=r;return s(n,i(),e)}function f(t){return l.add(t),t}},14503:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}r.d(e,{T:()=>n})},76143:(t,e,r)=>{"use strict";r.d(e,{R:()=>w});var n=r(14503),i=r(16693),s=r(62027),o=r(80377),a=r(15980),c=r(7210),l=r(77799),u=r(47864),h=r(92106),d=r(26445),p=r(87469),f=r(61163),m=r(74688),g=r(32357),y=r(47531);async function w(t,e){const{account:w=t.account,batch:b=Boolean(t.batch?.multicall),blockNumber:v,blockTag:E="latest",accessList:x,data:_,gas:A,gasPrice:k,maxFeePerGas:S,maxPriorityFeePerGas:C,nonce:M,to:I,value:P,...O}=e,T=w?(0,n.T)(w):void 0;try{(0,y.F)(e);const r=(v?(0,h.eC)(v):void 0)||E,n=t.chain?.formatters?.transactionRequest?.format,s=(n||m.tG)({...(0,f.K)(O,{format:n}),from:T?.address,accessList:x,data:_,gas:A,gasPrice:k,maxFeePerGas:S,maxPriorityFeePerGas:C,nonce:M,to:I,value:P});if(b&&function({request:t}){const{data:e,to:r,...n}=t;return!(!e||e.startsWith("0x82ad56cb")||!r||Object.values(n).filter((t=>void 0!==t)).length>0)}({request:s}))try{return await async function(t,e){const{batchSize:r=1024,wait:n=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:s,blockTag:d="latest",data:p,multicallAddress:f,to:m}=e;let y=f;if(!y){if(!t.chain)throw new o.pZ;y=(0,u.L)({blockNumber:s,chain:t.chain,contract:"multicall3"})}const w=(s?(0,h.eC)(s):void 0)||d,{schedule:b}=(0,g.S)({id:`${t.uid}.${w}`,wait:n,shouldSplitBatch:t=>t.reduce(((t,{data:e})=>t+(e.length-2)),0)>2*r,fn:async e=>{const r=e.map((t=>({allowFailure:!0,callData:t.data,target:t.to}))),n=(0,l.R)({abi:i.F8,args:[r],functionName:"aggregate3"}),s=await t.request({method:"eth_call",params:[{data:n,to:y},w]});return(0,c.k)({abi:i.F8,args:[r],functionName:"aggregate3",data:s||"0x"})}}),[{returnData:v,success:E}]=await b({data:p,to:m});if(!E)throw new a.VQ({data:v});return"0x"===v?{data:void 0}:{data:v}}(t,{...s,blockNumber:v,blockTag:E})}catch(t){if(!(t instanceof o.pZ||t instanceof o.mm))throw t}const d=await t.request({method:"eth_call",params:r?[s,r]:[s]});return"0x"===d?{data:void 0}:{data:d}}catch(n){const i=function(t){if(!(t instanceof s.G))return;const e=t.walk();return"object"==typeof e.data?e.data.data:e.data}(n),{offchainLookup:o,offchainLookupSignature:c}=await Promise.resolve().then(r.bind(r,99770));if(i?.slice(0,10)===c&&I)return{data:await o(t,{data:i,to:I})};throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,p.k)(t,r);return e instanceof d.cj?t:e})();return new a.cg(n,{docsPath:e,...r})}(n,{...e,account:T,chain:t.chain})}}},43861:(t,e,r)=>{"use strict";r.d(e,{C:()=>l,X:()=>c});var n=r(15371),i=r(93714),s=r(79379),o=r(75016),a=r(24453);async function c(t,e){return l(t,e)}async function l(t,e){const{block:r,chain:c=t.chain,request:l,type:u="eip1559"}=e||{},h=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:t,request:l}):c?.fees?.baseFeeMultiplier??1.2)();if(h<1)throw new n.Fz;const d=10**(h.toString().split(".")[1]?.length??0),p=t=>t*BigInt(Math.ceil(h*d))/BigInt(d),f=r||await(0,i.s)(t,o.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas)return c.fees.estimateFeesPerGas({block:r,client:t,multiply:p,request:l,type:u});if("eip1559"===u){if("bigint"!=typeof f.baseFeePerGas)throw new n.e5;const e=l?.maxPriorityFeePerGas?l.maxPriorityFeePerGas:await(0,s.h)(t,{block:f,chain:c,request:l}),r=p(f.baseFeePerGas);return{maxFeePerGas:l?.maxFeePerGas??r+e,maxPriorityFeePerGas:e}}return{gasPrice:l?.gasPrice??p(await(0,i.s)(t,a.o,"getGasPrice")({}))}}},84241:(t,e,r)=>{"use strict";r.d(e,{Q:()=>y});var n=r(14503),i=r(8998),s=r(92106),o=r(39625),a=r(67795),c=r(62027),l=r(33639);class u extends c.G{constructor(t,{account:e,docsPath:r,chain:n,data:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:p,value:f}){const m=(0,l.xr)({from:e?.address,to:p,value:void 0!==f&&`${(0,o.d)(f)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:void 0!==c&&`${(0,a.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,a.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,a.o)(h)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}}var h=r(26445),d=r(87469),p=r(61163),f=r(74688),m=r(47531),g=r(37397);async function y(t,e){const r=e.account??t.account;if(!r)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});const o=(0,n.T)(r);try{const{accessList:r,blockNumber:n,blockTag:i,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:y,value:w,...b}="local"===o.type?await(0,g.Z)(t,e):e,v=(n?(0,s.eC)(n):void 0)||i;(0,m.F)(e);const E=t.chain?.formatters?.transactionRequest?.format,x=(E||f.tG)({...(0,p.K)(b,{format:E}),from:o.address,accessList:r,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:y,value:w}),_=await t.request({method:"eth_estimateGas",params:v?[x,v]:[x]});return BigInt(_)}catch(r){throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,d.k)(t,r);return e instanceof h.cj?t:e})();return new u(n,{docsPath:e,...r})}(r,{...e,account:o,chain:t.chain})}}},79379:(t,e,r)=>{"use strict";r.d(e,{_:()=>c,h:()=>l});var n=r(15371),i=r(95946),s=r(93714),o=r(75016),a=r(24453);async function c(t,e){return l(t,e)}async function l(t,e){const{block:r,chain:c=t.chain,request:l}=e||{};if("function"==typeof c?.fees?.defaultPriorityFee){const e=r||await(0,s.s)(t,o.Q,"getBlock")({});return c.fees.defaultPriorityFee({block:e,client:t,request:l})}if(void 0!==c?.fees?.defaultPriorityFee)return c?.fees?.defaultPriorityFee;try{const e=await t.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(e)}catch{const[e,i]=await Promise.all([r?Promise.resolve(r):(0,s.s)(t,o.Q,"getBlock")({}),(0,s.s)(t,a.o,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new n.e5;const c=i-e.baseFeePerGas;return c<0n?0n:c}}},75016:(t,e,r)=>{"use strict";r.d(e,{Q:()=>o});var n=r(79814),i=r(92106),s=r(43310);async function o(t,{blockHash:e,blockNumber:r,blockTag:o,includeTransactions:a}={}){const c=o??"latest",l=a??!1,u=void 0!==r?(0,i.eC)(r):void 0;let h=null;if(h=e?await t.request({method:"eth_getBlockByHash",params:[e,l]}):await t.request({method:"eth_getBlockByNumber",params:[u||c,l]}),!h)throw new n.f({blockHash:e,blockNumber:r});return(t.chain?.formatters?.block?.format||s.Z)(h)}},79524:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(95946);async function i(t){const e=await t.request({method:"eth_chainId"});return(0,n.ly)(e)}},24453:(t,e,r)=>{"use strict";async function n(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}r.d(e,{o:()=>n})},86162:(t,e,r)=>{"use strict";r.d(e,{K:()=>s});var n=r(95946),i=r(92106);async function s(t,{address:e,blockTag:r="latest",blockNumber:s}){const o=await t.request({method:"eth_getTransactionCount",params:[e,s?(0,i.eC)(s):r]});return(0,n.ly)(o)}},37397:(t,e,r)=>{"use strict";r.d(e,{Z:()=>p});var n=r(14503),i=r(43861),s=r(84241),o=r(75016),a=r(86162),c=r(8998),l=r(15371),u=r(93714),h=r(47531),d=r(82994);async function p(t,e){const{account:r=t.account,chain:p,gas:f,nonce:m,type:g}=e;if(!r)throw new c.o;const y=(0,n.T)(r),w=await(0,u.s)(t,o.Q,"getBlock")({blockTag:"latest"}),b={...e,from:y.address};if(void 0===m&&(b.nonce=await(0,u.s)(t,a.K,"getTransactionCount")({address:y.address,blockTag:"pending"})),void 0===g)try{b.type=(0,d.l)(b)}catch{b.type="bigint"==typeof w.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===b.type){const{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,i.C)(t,{block:w,chain:p,request:b});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas{"use strict";async function n(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]})}r.d(e,{p:()=>n})},52736:(t,e,r)=>{"use strict";r.d(e,{T:()=>g});var n=r(14503),i=r(8998),s=r(33840),o=r(26445),a=r(33639),c=r(87469),l=r(61163),u=r(74688),h=r(93714),d=r(47531),p=r(79524),f=r(37397),m=r(99238);async function g(t,e){const{account:r=t.account,chain:g=t.chain,accessList:y,data:w,gas:b,gasPrice:v,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:_,to:A,value:k,...S}=e;if(!r)throw new i.o({docsPath:"/docs/actions/wallet/sendTransaction"});const C=(0,n.T)(r);try{let r;if((0,d.F)(e),null!==g&&(r=await(0,h.s)(t,p.L,"getChainId")({}),(0,s.q)({currentChainId:r,chain:g})),"local"===C.type){const e=await(0,h.s)(t,f.Z,"prepareTransactionRequest")({account:C,accessList:y,chain:g,data:w,gas:b,gasPrice:v,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:_,to:A,value:k,...S});r||(r=await(0,h.s)(t,p.L,"getChainId")({}));const n=g?.serializers?.transaction,i=await C.signTransaction({...e,chainId:r},{serializer:n});return await(0,h.s)(t,m.p,"sendRawTransaction")({serializedTransaction:i})}const n=t.chain?.formatters?.transactionRequest?.format,i=(n||u.tG)({...(0,l.K)(S,{format:n}),accessList:y,data:w,from:C.address,gas:b,gasPrice:v,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:_,to:A,value:k});return await t.request({method:"eth_sendTransaction",params:[i]})}catch(t){throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,c.k)(t,r);return e instanceof o.cj?t:e})();return new a.mk(n,{docsPath:e,...r})}(t,{...e,account:C,chain:e.chain||void 0})}}},61877:(t,e,r)=>{"use strict";r.d(e,{n:()=>o});var n=r(77799),i=r(93714),s=r(52736);async function o(t,{abi:e,address:r,args:o,dataSuffix:a,functionName:c,...l}){const u=(0,n.R)({abi:e,args:o,functionName:c});return await(0,i.s)(t,s.T,"sendTransaction")({data:`${u}${a?a.replace("0x",""):""}`,to:r,...l})}},6891:(t,e,r)=>{"use strict";r.d(e,{w:()=>n});const n=(0,r(86164).a)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},66403:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});const n=(0,r(86164).a)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},35194:(t,e,r)=>{"use strict";r.d(e,{F:()=>n});const n=(0,r(86164).a)({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0})},9914:(t,e,r)=>{"use strict";r.d(e,{e:()=>a});var n=r(14503);let i,s=256;function o(t=11){if(!i||s+t>512){i="",s=0;for(let t=0;t<256;t++)i+=(256+256*Math.random()|0).toString(16).substring(1)}return i.substring(s,s+++t)}function a(t){const{batch:e,cacheTime:r=t.pollingInterval??4e3,key:i="base",name:s="Base Client",pollingInterval:a=4e3,type:c="base"}=t,l=t.chain,u=t.account?(0,n.T)(t.account):void 0,{config:h,request:d,value:p}=t.transport({chain:l,pollingInterval:a}),f={account:u,batch:e,cacheTime:r,chain:l,key:i,name:s,pollingInterval:a,request:d,transport:{...h,...p},type:c,uid:o()};return Object.assign(f,{extend:function t(e){return r=>{const n=r(e);for(const t in f)delete n[t];const i={...e,...n};return Object.assign(i,{extend:t(i)})}}(f)})}},91677:(t,e,r)=>{"use strict";r.d(e,{K:()=>x});var n=r(9914),i=r(79524),s=r(92106),o=r(30286),a=r(52736),c=r(45775),l=r(37397),u=r(99238),h=r(14503),d=r(8998),p=r(33840),f=r(74688),m=r(93714),g=r(47531),y=r(15102),w=r(96070),b=r(67829),v=r(61877);function E(t){return{addChain:e=>async function(t,{chain:e}){const{id:r,name:n,nativeCurrency:i,rpcUrls:o,blockExplorers:a}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:(0,s.eC)(r),chainName:n,nativeCurrency:i,rpcUrls:o.default.http,blockExplorerUrls:a?Object.values(a).map((({url:t})=>t)):void 0}]})}(t,e),deployContract:e=>function(t,{abi:e,args:r,bytecode:n,...i}){const s=(0,o.w)({abi:e,args:r,bytecode:n});return(0,a.T)(t,{...i,data:s})}(t,e),getAddresses:()=>async function(t){return"local"===t.account?.type?[t.account.address]:(await t.request({method:"eth_accounts"})).map((t=>(0,c.x)(t)))}(t),getChainId:()=>(0,i.L)(t),getPermissions:()=>async function(t){return await t.request({method:"wallet_getPermissions"})}(t),prepareTransactionRequest:e=>(0,l.Z)(t,e),requestAddresses:()=>async function(t){return(await t.request({method:"eth_requestAccounts"})).map((t=>(0,c.K)(t)))}(t),requestPermissions:e=>async function(t,e){return t.request({method:"wallet_requestPermissions",params:[e]})}(t,e),sendRawTransaction:e=>(0,u.p)(t,e),sendTransaction:e=>(0,a.T)(t,e),signMessage:e=>async function(t,{account:e=t.account,message:r}){if(!e)throw new d.o({docsPath:"/docs/actions/wallet/signMessage"});const n=(0,h.T)(e);if("local"===n.type)return n.signMessage({message:r});const i="string"==typeof r?(0,s.$G)(r):r.raw instanceof Uint8Array?(0,s.NC)(r.raw):r.raw;return t.request({method:"personal_sign",params:[i,n.address]})}(t,e),signTransaction:e=>async function(t,e){const{account:r=t.account,chain:n=t.chain,...o}=e;if(!r)throw new d.o({docsPath:"/docs/actions/wallet/signTransaction"});const a=(0,h.T)(r);(0,g.F)({account:a,...e});const c=await(0,m.s)(t,i.L,"getChainId")({});null!==n&&(0,p.q)({currentChainId:c,chain:n});const l=(n?.formatters||t.chain?.formatters)?.transactionRequest?.format||f.tG;return"local"===a.type?a.signTransaction({...o,chainId:c},{serializer:t.chain?.serializers?.transaction}):await t.request({method:"eth_signTransaction",params:[{...l(o),chainId:(0,s.eC)(c),from:a.address}]})}(t,e),signTypedData:e=>async function(t,{account:e=t.account,domain:r,message:n,primaryType:i,types:s}){if(!e)throw new d.o({docsPath:"/docs/actions/wallet/signTypedData"});const o=(0,h.T)(e),a={EIP712Domain:(0,b.cj)({domain:r}),...s};if((0,b.iC)({domain:r,message:n,primaryType:i,types:a}),"local"===o.type)return o.signTypedData({domain:r,primaryType:i,types:a,message:n});const c=(0,w.P)({domain:r??{},primaryType:i,types:a,message:n},((t,e)=>(0,y.v)(e)?e.toLowerCase():e));return t.request({method:"eth_signTypedData_v4",params:[o.address,c]})}(t,e),switchChain:e=>async function(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(e)}]})}(t,e),watchAsset:e=>async function(t,e){return await t.request({method:"wallet_watchAsset",params:e})}(t,e),writeContract:e=>(0,v.n)(t,e)}}function x(t){const{key:e="wallet",name:r="Wallet Client",transport:i}=t;return(0,n.e)({...t,key:e,name:r,transport:t=>i({...t,retryCount:0}),type:"walletClient"}).extend(E)}},31031:(t,e,r)=>{"use strict";r.d(e,{q:()=>i});var n=r(37029);function i({key:t,name:e,request:r,retryCount:i=3,retryDelay:s=150,timeout:o,type:a},c){return{config:{key:t,name:e,request:r,retryCount:i,retryDelay:s,timeout:o,type:a},request:(0,n.n)(r,{retryCount:i,retryDelay:s}),value:c}}},3980:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});var n=r(31031);function i(t,e={}){const{key:r="custom",name:i="Custom Provider",retryDelay:s}=e;return({retryCount:o})=>(0,n.q)({key:r,name:i,request:t.request.bind(t),retryCount:e.retryCount??o,retryDelay:s,type:"custom"})}},16693:(t,e,r)=>{"use strict";r.d(e,{$o:()=>l,F8:()=>n,X$:()=>c,du:()=>o,k3:()=>s,nZ:()=>a});const n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],s=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],a=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],l=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},21746:(t,e,r)=>{"use strict";r.d(e,{$:()=>n,Up:()=>i,hZ:()=>s});const n={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},84192:(t,e,r)=>{"use strict";r.d(e,{Bd:()=>s,Zn:()=>i,ez:()=>n});const n={gwei:9,wei:18},i={ether:-9,wei:9},s={ether:-18,gwei:-9}},34849:(t,e,r)=>{"use strict";r.d(e,{normalize:()=>nt});const n=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function i(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=2**31,d=h>>>1,p=h-1;let f=0;for(let t=0;t<31;t++)f=f<<1|u();let m=[],g=0,y=h;for(;;){let t=Math.floor(((f-g+1)*i-1)/y),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;g=o,y=1+a-o}let w=n-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return w+256+(t[a++]<<8|t[a++]);case 1:return w+t[a++];default:return e-1}}))}(function(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((t,r)=>e[t.charCodeAt(0)]=r));let r=t.length,n=new Uint8Array(6*r>>3);for(let i=0,s=0,o=0,a=0;i=8&&(n[s++]=a>>(o-=8));return n}(t)))}function s(t){return 1&t?~t>>1:t>>1}function o(t,e){let r=Array(t);for(let n=0,i=0;n{let e=a(t);if(e.length)return e}))}function l(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(d(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(p(r,t))}return e.flat()}function u(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function h(t,e,r){let n=Array(t).fill().map((()=>[]));for(let i=0;in[e].push(t)));return n}function d(t,e){let r=1+e(),n=e(),i=u(e);return h(i.length,1+t,e).flatMap(((t,e)=>{let[s,...o]=t;return Array(i[e]).fill().map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))}))}function p(t,e){return h(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}function f(t){return`{${function(t){return t.toString(16).toUpperCase().padStart(2,"0")}(t)}}`}function m(t){let e=t.length;if(e<4096)return String.fromCodePoint(...t);let r=[];for(let n=0;n>24&255}function x(t){return 16777215&t}let _,A,k,S;function C(t){return t>=y&&t<55204}function M(t,e){if(t>=w&&t<4371&&e>=b&&e<4470)return y+588*(t-w)+28*(e-b);if(C(t)&&e>v&&e<4547&&(t-y)%28==0)return t+(e-v);{let r=S.get(t);return r&&(r=r.get(e),r)?r:-1}}function I(t){_||function(){let t=i("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");_=new Map(c(t).flatMap(((t,e)=>t.map((t=>[t,e+1<<24]))))),A=new Set(a(t)),k=new Map,S=new Map;for(let[e,r]of l(t)){if(!A.has(e)&&2==r.length){let[t,n]=r,i=S.get(t);i||(i=new Map,S.set(t,i)),i.set(n,e)}k.set(e,r.reverse())}}();let e=[],r=[],n=!1;function s(t){let r=_.get(t);r&&(n=!0,t|=r),e.push(t)}for(let n of t)for(;;){if(n<128)e.push(n);else if(C(n)){let t=n-y,e=t%588/28|0,r=t%28;s(w+(t/588|0)),s(b+e),r>0&&s(v+r)}else{let t=k.get(n);t?r.push(...t):s(n)}if(!r.length)break;n=r.pop()}if(n&&e.length>1){let t=E(e[0]);for(let r=1;r0&&i>=t)0==t?(e.push(n,...r),r.length=0,n=o):r.push(o),i=t;else{let s=M(n,o);s>=0?n=s:0==i&&0==t?(e.push(n),n=o):(r.push(o),i=t)}}return n>=0&&e.push(n,...r),e}(I(t))}const T=t=>Array.from(t);function N(t,e){return t.P.has(e)||t.Q.has(e)}class R extends Array{get is_emoji(){return!0}}let B,j,L,U,D,$,F,z,H,W,q,V;function G(){if(B)return;let t=i("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI");const e=()=>a(t),r=()=>new Set(e());B=new Map(l(t)),j=r(),L=e(),U=new Set(e().map((t=>L[t]))),L=new Set(L),D=r(),$=r();let n=c(t),s=t();const o=()=>new Set(e().flatMap((t=>n[t])).concat(e()));F=u((e=>{let r=u(t).map((t=>t+96));if(r.length){let n=e>=s;return r[0]-=32,r=m(r),n&&(r=`Restricted[${r}]`),{N:r,P:o(),Q:o(),M:!t(),R:n}}})),z=r(),H=new Map;let h=e().concat(T(z)).sort(((t,e)=>t-e));h.forEach(((e,r)=>{let n=t(),i=h[r]=n?h[r-n]:{V:[],M:new Map};i.V.push(e),z.has(e)||H.set(e,i)}));for(let{V:t,M:e}of new Set(H.values())){let r=[];for(let e of t){let t=F.filter((t=>N(t,e))),n=r.find((({G:e})=>t.some((t=>e.has(t)))));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(e),t.forEach((t=>n.G.add(t)))}let n=r.flatMap((t=>T(t.G)));for(let{G:t,V:i}of r){let r=new Set(n.filter((e=>!t.has(e))));for(let t of i)e.set(t,r)}}let d=new Set,p=new Set;const f=t=>d.has(t)?p.add(t):d.add(t);for(let t of F){for(let e of t.P)f(e);for(let e of t.Q)f(e)}for(let t of d)H.has(t)||p.has(t)||H.set(t,1);W=new Set(T(d).concat(T(P(d)))),q=function(t){let e=[],r=a(t);return function t({S:r,B:n},i,s){if(!(4&r&&s===i[i.length-1])){2&r&&(s=i[i.length-1]),1&r&&e.push(i);for(let e of n)for(let r of e.Q)t(e,[...i,r],s)}}(function e(n){return{S:t(),B:u((()=>{let n=a(t).map((t=>r[t]));if(n.length)return e(n)})),Q:n}}([]),[]),e}(t).map((t=>R.from(t))).sort(g),V=new Map;for(let t of q){let e=[V];for(let r of t){let t=e.map((t=>{let e=t.get(r);return e||(e=new Map,t.set(r,e)),e}));65039===r?e.push(...t):e=t}for(let r of e)r.V=t}}function K(t){return(Q(t)?"":`${Z(J([t]))} `)+f(t)}function Z(t){return`"${t}"‎`}function J(t,e=f){let r=[];var n;n=t[0],G(),L.has(n)&&r.push("◌");let i=0,s=t.length;for(let n=0;nt.P.has(e)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function tt(t){return new Error(`illegal placement: ${t}`)}function et(t){return t.filter((t=>65039!=t))}function rt(t,e){let r,n=V,i=t.length;for(;i&&(n=n.get(t[--i]),n);){let{V:s}=n;s&&(r=s,e&&e.push(...t.slice(i).reverse()),t.length=i)}return r}function nt(t){return function(t){return function(t){return t.map((({input:e,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==t.length?n:`Invalid label ${Z(J(e))}: ${n}`)}return m(n)})).join(".")}(function(t,e,r){if(!t)return[];G();let i=0;return t.split(".").map((t=>{let s=function(t){let e=[];for(let r=0,n=t.length;r0;)if(95!==t[--e])throw new Error("underscore allowed only at start")}(c),!(o.emoji=a>1||i[0].is_emoji)&&c.every((t=>t<128)))!function(t){if(t.length>=4&&45==t[2]&&45==t[3])throw new Error(`invalid label extension: "${m(t.slice(0,4))}"`)}(c),t="ASCII";else{let e=i.flatMap((t=>t.is_emoji?[]:t));if(e.length){if(L.has(c[0]))throw tt("leading combining mark");for(let t=1;tN(t,r)));if(!t.length)throw F.some((t=>N(t,r)))?X(e[0],r):Y(r);if(e=t,1==t.length)break}return e}(r);!function(t,e){for(let r of e)if(!N(t,r))throw X(t,r);if(t.M){let t=P(e);for(let e=1,r=t.length;e4)throw new Error(`excessive non-spacing marks: ${Z(J(t.slice(e-1,i)))} (${i-e}/4)`);e=i}}}(s,e),function(t,e){let r,n=[];for(let t of e){let e=H.get(t);if(1===e)return;if(e){let n=e.M.get(t);if(r=r?r.filter((t=>n.has(t))):T(n),!r.length)return}else n.push(t)}if(r)for(let e of r)if(n.every((t=>N(e,t))))throw new Error(`whole-script confusable: ${t.N}/${e.N}`)}(s,r),t=s.N}else t="Emoji"}o.type=t}catch(t){o.error=t}return o}))}(t,O,et))}(t)}},57412:(t,e,r)=>{"use strict";r.d(e,{CI:()=>A,FM:()=>f,Gy:()=>x,KY:()=>v,M4:()=>h,MX:()=>w,S4:()=>b,SM:()=>E,cO:()=>a,dh:()=>_,fM:()=>o,fs:()=>d,gr:()=>u,hn:()=>k,lC:()=>m,mv:()=>g,wM:()=>S,wb:()=>l,xB:()=>c,xL:()=>y,yP:()=>p});var n=r(80522),i=r(39135),s=r(62027);class o extends s.G{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class a extends s.G{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class c extends s.G{constructor({data:t,params:e,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.h)(e,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=r}}class l extends s.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class u extends s.G{constructor({expectedLength:t,givenLength:e,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class h extends s.G{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${(0,i.d)(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class d extends s.G{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class p extends s.G{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class f extends s.G{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends s.G{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends s.G{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends s.G{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class w extends s.G{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class b extends s.G{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\`, and`,`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class v extends s.G{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class E extends s.G{constructor({abiItem:t,data:e,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data: ${e} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=r,this.size=i}}class x extends s.G{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${(0,n.t)(t,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class _ extends s.G{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class A extends s.G{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class k extends s.G{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class S extends s.G{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},8998:(t,e,r)=>{"use strict";r.d(e,{o:()=>i});var n=r(62027);class i extends n.G{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},26087:(t,e,r)=>{"use strict";r.d(e,{b:()=>i});var n=r(62027);class i extends n.G{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},62027:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(38673);class i extends Error{constructor(t,e={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.bo)()});const r=e.cause instanceof i?e.cause.details:e.cause?.message?e.cause.message:e.details,s=e.cause instanceof i&&e.cause.docsPath||e.docsPath;this.message=[t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...s?[`Docs: https://viem.sh${s}.html${e.docsSlug?`#${e.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),e.cause&&(this.cause=e.cause),this.details=r,this.docsPath=s,this.metaMessages=e.metaMessages,this.shortMessage=t}walk(t){return s(this,t)}}function s(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t?s(t.cause,e):e?null:t}},79814:(t,e,r)=>{"use strict";r.d(e,{f:()=>i});var n=r(62027);class i extends n.G{constructor({blockHash:t,blockNumber:e}){let r="Block";t&&(r=`Block at hash "${t}"`),e&&(r=`Block at number "${e}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},80377:(t,e,r)=>{"use strict";r.d(e,{Bk:()=>o,Yl:()=>s,hJ:()=>c,mm:()=>i,pZ:()=>a});var n=r(62027);class i extends n.G{constructor({blockNumber:t,chain:e,contract:r}){super(`Chain "${e.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class s extends n.G{constructor({chain:t,currentChainId:e}){super(`The current chain of the wallet (id: ${e}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${e}`,`Expected Chain ID: ${t.id} – ${t.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class o extends n.G{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class a extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class c extends n.G{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},15980:(t,e,r)=>{"use strict";r.d(e,{cg:()=>g,uq:()=>y,Lu:()=>w,Dk:()=>b,VQ:()=>v});var n=r(14503),i=r(21746),s=r(86899),o=r(80522),a=r(96070);function c({abiItem:t,args:e,includeFunctionName:r=!0,includeName:n=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${r?t.name:""}(${t.inputs.map(((t,r)=>`${n&&t.name?`${t.name}: `:""}${"object"==typeof e[r]?(0,a.P)(e[r]):e[r]}`)).join(", ")})`}var l=r(40840),u=r(39625),h=r(67795),d=r(57412),p=r(62027),f=r(33639),m=r(38673);class g extends p.G{constructor(t,{account:e,docsPath:r,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:p,value:m}){const g=e?(0,n.T)(e):void 0,y=(0,f.xr)({from:g?.address,to:p,value:void 0!==m&&`${(0,u.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,h.o)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,h.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,h.o)(l)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}}class y extends p.G{constructor(t,{abi:e,args:r,contractAddress:n,docsPath:i,functionName:s,sender:a}){const u=(0,l.mE)({abi:e,args:r,name:s}),h=u?c({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,d=u?(0,o.t)(u,{includeName:!0}):void 0,p=(0,f.xr)({address:n&&(0,m.CR)(n),function:d,args:h&&"()"!==h&&`${[...Array(s?.length??0).keys()].map((()=>" ")).join("")}${h}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",p].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=e,this.args=r,this.cause=t,this.contractAddress=n,this.functionName=s,this.sender=a}}class w extends p.G{constructor({abi:t,data:e,functionName:r,message:n}){let a,l,u,h,p;if(e&&"0x"!==e)try{l=(0,s.p)({abi:t,data:e});const{abiItem:r,errorName:n,args:a}=l;if("Error"===n)h=a[0];else if("Panic"===n){const[t]=a;h=i.$[t]}else{const t=r?(0,o.t)(r,{includeName:!0}):void 0,e=r&&a?c({abiItem:r,args:a,includeFunctionName:!1,includeName:!1}):void 0;u=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${e}`:""]}}catch(t){a=t}else n&&(h=n);a instanceof d.yP&&(p=a.signature,u=[`Unable to decode signature "${p}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${p}.`]),super(h&&"execution reverted"!==h||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,h||p].join("\n"):`The contract function "${r}" reverted.`,{cause:a,metaMessages:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.reason=h,this.signature=p}}class b extends p.G{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class v extends p.G{constructor({data:t,message:e}){super(e||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},69760:(t,e,r)=>{"use strict";r.d(e,{$:()=>s,m:()=>i});var n=r(62027);class i extends n.G{constructor({offset:t,position:e,size:r}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class s extends n.G{constructor({size:t,targetSize:e,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},87788:(t,e,r)=>{"use strict";r.d(e,{Cd:()=>s,J5:()=>i,M6:()=>o});var n=r(62027);class i extends n.G{constructor({max:t,min:e,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class s extends n.G{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class o extends n.G{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},15371:(t,e,r)=>{"use strict";r.d(e,{Fz:()=>s,e5:()=>o,ld:()=>a});var n=r(67795),i=r(62027);class s extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class o extends i.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class a extends i.G{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.o)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},26445:(t,e,r)=>{"use strict";r.d(e,{C_:()=>h,G$:()=>a,Hh:()=>o,M_:()=>s,WF:()=>d,ZI:()=>c,cj:()=>g,cs:()=>m,dR:()=>p,pZ:()=>f,se:()=>u,vU:()=>l});var n=r(67795),i=r(62027);class s extends i.G{constructor({cause:t,message:e}={}){const r=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${(0,n.o)(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${(0,n.o)(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.G{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class l extends i.G{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class d extends i.G{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.G{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class f extends i.G{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${(0,n.o)(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`].join("\n"),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},78863:(t,e,r)=>{"use strict";r.d(e,{Gg:()=>o,W5:()=>l,bs:()=>c,c9:()=>a});var n=r(96070),i=r(62027),s=r(38673);class o extends i.G{constructor({body:t,details:e,headers:r,status:i,url:o}){super("HTTP request failed.",{details:e,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,s.Gr)(o)}`,t&&`Request body: ${(0,n.P)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=i,this.url=o}}class a extends i.G{constructor({body:t,details:e,url:r}){super("WebSocket request failed.",{details:e,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class c extends i.G{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code}}class l extends i.G{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,s.Gr)(e)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},39028:(t,e,r)=>{"use strict";r.d(e,{B:()=>c,GD:()=>w,I0:()=>_,KB:()=>m,LX:()=>l,Og:()=>p,PE:()=>v,Pv:()=>y,Ts:()=>E,XS:()=>h,ab:()=>b,gS:()=>g,ir:()=>k,nY:()=>u,pT:()=>f,s7:()=>a,u5:()=>x,x3:()=>A,yR:()=>d});var n=r(62027),i=r(78863);class s extends n.G{constructor(t,{code:e,docsPath:r,metaMessages:n,shortMessage:s}){super(s,{cause:t,docsPath:r,metaMessages:n||t?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof i.bs?t.code:e??-1}}class o extends s{constructor(t,e){super(t,e),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class a extends s{constructor(t){super(t,{code:a.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends s{constructor(t){super(t,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class l extends s{constructor(t){super(t,{code:l.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends s{constructor(t){super(t,{code:u.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class h extends s{constructor(t){super(t,{code:h.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends s{constructor(t){super(t,{code:d.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends s{constructor(t){super(t,{code:p.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class f extends s{constructor(t){super(t,{code:f.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends s{constructor(t){super(t,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends s{constructor(t){super(t,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{constructor(t){super(t,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class w extends s{constructor(t){super(t,{code:w.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class b extends o{constructor(t){super(t,{code:b.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends o{constructor(t){super(t,{code:v.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends o{constructor(t){super(t,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends o{constructor(t){super(t,{code:x.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class _ extends o{constructor(t){super(t,{code:_.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class A extends o{constructor(t){super(t,{code:A.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends s{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},33639:(t,e,r)=>{"use strict";r.d(e,{Bh:()=>d,JC:()=>u,Yb:()=>p,j3:()=>l,mc:()=>f,mk:()=>h,vl:()=>c,xY:()=>a,xr:()=>o});var n=r(39625),i=r(67795),s=r(62027);function o(t){const e=Object.entries(t).map((([t,e])=>void 0===e||!1===e?null:[t,e])).filter(Boolean),r=e.reduce(((t,[e])=>Math.max(t,e.length)),0);return e.map((([t,e])=>` ${`${t}:`.padEnd(r+1)} ${e}`)).join("\n")}class a extends s.G{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class c extends s.G{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class l extends s.G{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class u extends s.G{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class h extends s.G{constructor(t,{account:e,docsPath:r,chain:s,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:p,value:f}){const m=o({chain:s&&`${s?.name} (id: ${s?.id})`,from:e?.address,to:p,value:void 0!==f&&`${(0,n.d)(f)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:c,gasPrice:void 0!==l&&`${(0,i.o)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}}class d extends s.G{constructor({blockHash:t,blockNumber:e,blockTag:r,hash:n,index:i}){let s="Transaction";r&&void 0!==i&&(s=`Transaction at block time "${r}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block hash "${t}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block number "${e}" at index "${i}"`),n&&(s=`Transaction with hash "${n}"`),super(`${s} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class p extends s.G{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class f extends s.G{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},38673:(t,e,r)=>{"use strict";r.d(e,{CR:()=>n,Gr:()=>i,bo:()=>s});const n=t=>t,i=t=>t,s=()=>"viem@1.21.3"},34450:(t,e,r)=>{"use strict";r.d(e,{r:()=>u});var n=r(57412),i=r(45775),s=r(39135),o=r(3972),a=r(61836),c=r(95946),l=r(45444);function u(t,e){if("0x"===e&&t.length>0)throw new n.wb;if((0,s.d)(e)&&(0,s.d)(e)<32)throw new n.xB({data:e,params:t,size:(0,s.d)(e)});return function({data:t,params:e}){const r=[];let i=0;for(let o=0;o=(0,s.d)(t))throw new n.xB({data:t,params:e,size:(0,s.d)(t)});const a=e[o],{consumed:c,value:l}=h({data:t,param:a,position:i});r.push(l),i+=c}return r}({data:e,params:t})}function h({data:t,param:e,position:r}){const s=(0,l.S)(e.type);if(s){const[n,i]=s;return function(t,{param:e,length:r,position:n}){if(!r){const r=(0,c.ly)((0,o.tP)(t,n,n+32,{strict:!0})),i=(0,c.ly)((0,o.tP)(t,r,r+32,{strict:!0}));let s=0;const a=[];for(let n=0;n!t)),i=n?[]:{};let s=0;if(d(e)){const a=(0,c.ly)((0,o.tP)(t,r,r+32,{strict:!0}));for(let r=0;r48?(0,c.y_)(t,{signed:r}):(0,c.ly)(t,{signed:r})}}(u,{param:e});if("address"===e.type)return function(t){return{consumed:32,value:(0,i.x)((0,o.tP)(t,-20))}}(u);if("bool"===e.type)return function(t){return{consumed:32,value:(0,c.XA)(t)}}(u);throw new n.CI(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function d(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(d);const r=(0,l.S)(t.type);return!(!r||!d({...t,type:r[1]}))}},86899:(t,e,r)=>{"use strict";r.d(e,{p:()=>l});var n=r(21746),i=r(57412),s=r(3972),o=r(40552),a=r(34450),c=r(80522);function l({abi:t,data:e}){const r=(0,s.tP)(e,0,4);if("0x"===r)throw new i.wb;const l=[...t||[],n.Up,n.hZ].find((t=>"error"===t.type&&r===(0,o.o)((0,c.t)(t))));if(!l)throw new i.yP(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.r)(l.inputs,(0,s.tP)(e,4)):void 0,errorName:l.name}}},7210:(t,e,r)=>{"use strict";r.d(e,{k:()=>a});var n=r(57412),i=r(34450),s=r(40840);const o="/docs/contract/decodeFunctionResult";function a({abi:t,args:e,functionName:r,data:a}){let c=t[0];if(r&&(c=(0,s.mE)({abi:t,args:e,name:r}),!c))throw new n.xL(r,{docsPath:o});if("function"!==c.type)throw new n.xL(void 0,{docsPath:o});if(!c.outputs)throw new n.MX(c.name,{docsPath:o});const l=(0,i.r)(c.outputs,a);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},45444:(t,e,r)=>{"use strict";r.d(e,{E:()=>h,S:()=>f});var n=r(57412),i=r(26087),s=r(49321),o=r(57040),a=r(61769),c=r(39135),l=r(3972),u=r(92106);function h(t,e){if(t.length!==e.length)throw new n.fs({expectedLength:t.length,givenLength:e.length});const r=function({params:t,values:e}){const r=[];for(let n=0;n0?(0,o.zo)([e,t]):e}}if(s)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:(0,o.zo)(a.map((({encoded:t})=>t)))}}(e,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:e}){let r=!1;const n=[];for(let i=0;it)))}}(e,{param:t});if("address"===t.type)return function(t){if(!(0,s.U)(t))throw new i.b({address:t});return{dynamic:!1,encoded:(0,a.gc)(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){return{dynamic:!1,encoded:(0,a.gc)((0,u.C4)(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(t,{signed:e}){return{dynamic:!1,encoded:(0,u.eC)(t,{size:32,signed:e})}}(e,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,r]=e.type.split("bytes"),i=(0,c.d)(t);if(!r){let e=t;return i%32!=0&&(e=(0,a.gc)(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:(0,o.zo)([(0,a.gc)((0,u.eC)(i,{size:32})),e])}}if(i!==parseInt(r))throw new n.M4({expectedSize:parseInt(r),value:t});return{dynamic:!1,encoded:(0,a.gc)(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=(0,u.$G)(t),r=Math.ceil((0,c.d)(e)/32),n=[];for(let t=0;t{"use strict";r.d(e,{w:()=>a});var n=r(57412),i=r(57040),s=r(45444);const o="/docs/contract/encodeDeployData";function a({abi:t,args:e,bytecode:r}){if(!e||0===e.length)return r;const a=t.find((t=>"type"in t&&"constructor"===t.type));if(!a)throw new n.fM({docsPath:o});if(!("inputs"in a))throw new n.cO({docsPath:o});if(!a.inputs||0===a.inputs.length)throw new n.cO({docsPath:o});const c=(0,s.E)(a.inputs,e);return(0,i.SM)([r,c])}},77799:(t,e,r)=>{"use strict";r.d(e,{R:()=>l});var n=r(57412),i=r(57040),s=r(40552),o=r(45444),a=r(80522),c=r(40840);function l({abi:t,args:e,functionName:r}){let l=t[0];if(r&&(l=(0,c.mE)({abi:t,args:e,name:r}),!l))throw new n.xL(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==l.type)throw new n.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const u=(0,a.t)(l),h=(0,s.o)(u),d="inputs"in l&&l.inputs?(0,o.E)(l.inputs,e??[]):void 0;return(0,i.SM)([h,d??"0x"])}},80522:(t,e,r)=>{"use strict";r.d(e,{h:()=>s,t:()=>i});var n=r(57412);function i(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new n.wM(t.type);return`${t.name}(${s(t.inputs,{includeName:e})})`}function s(t,{includeName:e=!1}={}){return t?t.map((t=>function(t,{includeName:e}){return t.type.startsWith("tuple")?`(${s(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e}))).join(e?", ":","):""}},40840:(t,e,r)=>{"use strict";r.d(e,{mE:()=>c});var n=r(57412),i=r(15102),s=r(54092),o=r(40552),a=r(49321);function c({abi:t,args:e=[],name:r}){const a=(0,i.v)(r,{strict:!1}),c=t.filter((t=>a?"function"===t.type?(0,o.o)(t)===r:"event"===t.type&&(0,s.e)(t)===r:"name"in t&&t.name===r));if(0===c.length)return;if(1===c.length)return c[0];let h;for(const t of c)if("inputs"in t)if(e&&0!==e.length){if(t.inputs&&0!==t.inputs.length&&t.inputs.length===e.length&&e.every(((e,r)=>{const n="inputs"in t&&t.inputs[r];return!!n&&l(e,n)}))){if(h&&"inputs"in h&&h.inputs){const r=u(t.inputs,h.inputs,e);if(r)throw new n.S4({abiItem:t,type:r[0]},{abiItem:h,type:r[1]})}h=t}}else if(!t.inputs||0===t.inputs.length)return t;return h||c[0]}function l(t,e){const r=typeof t,n=e.type;switch(n){case"address":return(0,a.U)(t);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in e?Object.values(e.components).every(((e,r)=>l(Object.values(t)[r],e))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&Array.isArray(t)&&t.every((t=>l(t,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})))}}function u(t,e,r){for(const n in t){const i=t[n],s=e[n];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return u(i.components,s.components,r[n]);const o=[i.type,s.type];if(o.includes("address")&&o.includes("bytes20")||(o.includes("address")&&o.includes("string")||o.includes("address")&&o.includes("bytes"))&&(0,a.U)(r[n]))return o}}},45775:(t,e,r)=>{"use strict";r.d(e,{K:()=>c,x:()=>a});var n=r(26087),i=r(11187),s=r(43199),o=r(49321);function a(t,e){const r=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),n=(0,s.w)((0,i.qX)(r),"bytes"),o=(e?r.substring(`${e}0x`.length):r).split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&o[t]&&(o[t]=o[t].toUpperCase()),(15&n[t>>1])>=8&&o[t+1]&&(o[t+1]=o[t+1].toUpperCase());return`0x${o.join("")}`}function c(t,e){if(!(0,o.U)(t))throw new n.b({address:t});return a(t,e)}},49321:(t,e,r)=>{"use strict";r.d(e,{U:()=>i});const n=/^0x[a-fA-F0-9]{40}$/;function i(t){return n.test(t)}},37029:(t,e,r)=>{"use strict";r.d(e,{n:()=>c,y:()=>a});var n=r(62027),i=r(78863),s=r(39028),o=r(7760);const a=t=>"code"in t?-1!==t.code&&-32004!==t.code&&-32005!==t.code&&-32042!==t.code&&-32603!==t.code:!!(t instanceof i.Gg&&t.status)&&403!==t.status&&408!==t.status&&413!==t.status&&429!==t.status&&500!==t.status&&502!==t.status&&503!==t.status&&504!==t.status;function c(t,{retryDelay:e=150,retryCount:r=3}={}){return async c=>(0,o.J)((async()=>{try{return await t(c)}catch(t){const e=t;switch(e.code){case s.s7.code:throw new s.s7(e);case s.B.code:throw new s.B(e);case s.LX.code:throw new s.LX(e);case s.nY.code:throw new s.nY(e);case s.XS.code:throw new s.XS(e);case s.yR.code:throw new s.yR(e);case s.Og.code:throw new s.Og(e);case s.pT.code:throw new s.pT(e);case s.KB.code:throw new s.KB(e);case s.gS.code:throw new s.gS(e);case s.Pv.code:throw new s.Pv(e);case s.GD.code:throw new s.GD(e);case s.ab.code:throw new s.ab(e);case s.PE.code:throw new s.PE(e);case s.Ts.code:throw new s.Ts(e);case s.u5.code:throw new s.u5(e);case s.I0.code:throw new s.I0(e);case s.x3.code:throw new s.x3(e);case 5e3:throw new s.ab(e);default:if(t instanceof n.G)throw t;throw new s.ir(e)}}}),{delay:({count:t,error:r})=>{if(r&&r instanceof i.Gg){const t=r?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*parseInt(t)}return~~(1<!a(t)})}},99770:(t,e,r)=>{"use strict";r.d(e,{offchainLookup:()=>b,offchainLookupSignature:()=>y});var n=r(76143),i=r(96070),s=r(62027),o=r(38673);class a extends s.G{constructor({callbackSelector:t,cause:e,data:r,extraData:n,sender:i,urls:s}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&[" Gateway URL(s):",...s.map((t=>` ${(0,o.Gr)(t)}`))],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class c extends s.G{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(e)}`,`Response: ${(0,i.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class l extends s.G{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}var u=r(78863),h=r(86899),d=r(45444),p=r(26087),f=r(49321),m=r(57040),g=r(15102);const y="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function b(t,{blockNumber:e,blockTag:r,data:s,to:o}){const{args:y}=(0,h.p)({data:s,abi:[w]}),[b,v,E,x,_]=y;try{if(!function(t,e){if(!(0,f.U)(t))throw new p.b({address:t});if(!(0,f.U)(e))throw new p.b({address:e});return t.toLowerCase()===e.toLowerCase()}(o,b))throw new l({sender:b,to:o});const s=await async function({data:t,sender:e,urls:r}){let n=new Error("An unknown error occurred.");for(let s=0;s{"use strict";r.d(e,{q:()=>i});var n=r(80377);function i({chain:t,currentChainId:e}){if(!t)throw new n.Bk;if(e!==t.id)throw new n.Yl({chain:t,currentChainId:e})}},86164:(t,e,r)=>{"use strict";function n(t,e={}){const{fees:r=t.fees,formatters:n=t.formatters,serializers:i=t.serializers}=e;return{...t,fees:r,formatters:n,serializers:i}}r.d(e,{a:()=>n})},47864:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(80377);function i({blockNumber:t,chain:e,contract:r}){const i=e?.contracts?.[r];if(!i)throw new n.mm({chain:e,contract:{name:r}});if(t&&i.blockCreated&&i.blockCreated>t)throw new n.mm({blockNumber:t,chain:e,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},57040:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t[0]?i(t):function(t){let e=0;for(const r of t)e+=r.length;const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(t)}function i(t){return`0x${t.reduce(((t,e)=>t+e.replace("0x","")),"")}`}r.d(e,{SM:()=>i,zo:()=>n})},15102:(t,e,r)=>{"use strict";function n(t,{strict:e=!0}={}){return!!t&&"string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x"))}r.d(e,{v:()=>n})},61769:(t,e,r)=>{"use strict";r.d(e,{gc:()=>s,vk:()=>i});var n=r(69760);function i(t,{dir:e,size:r=32}={}){return"string"==typeof t?s(t,{dir:e,size:r}):function(t,{dir:e,size:r=32}={}){if(null===r)return t;if(t.length>r)throw new n.$({size:t.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.$({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===e?"padEnd":"padStart"](2*r,"0")}`}},39135:(t,e,r)=>{"use strict";r.d(e,{d:()=>i});var n=r(15102);function i(t){return(0,n.v)(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}},3972:(t,e,r)=>{"use strict";r.d(e,{tP:()=>o});var n=r(69760),i=r(15102),s=r(39135);function o(t,e,r,{strict:n}={}){return(0,i.v)(t,{strict:!1})?function(t,e,r,{strict:n}={}){a(t,e);const i=`0x${t.replace("0x","").slice(2*(e??0),2*(r??t.length))}`;return n&&c(i,e,r),i}(t,e,r,{strict:n}):function(t,e,r,{strict:n}={}){a(t,e);const i=t.slice(e,r);return n&&c(i,e,r),i}(t,e,r,{strict:n})}function a(t,e){if("number"==typeof e&&e>0&&e>(0,s.d)(t)-1)throw new n.m({offset:e,position:"start",size:(0,s.d)(t)})}function c(t,e,r){if("number"==typeof e&&"number"==typeof r&&(0,s.d)(t)!==r-e)throw new n.m({offset:r,position:"end",size:(0,s.d)(t)})}},61836:(t,e,r)=>{"use strict";function n(t,{dir:e="left"}={}){let r="string"==typeof t?t.replace("0x",""):t,n=0;for(let t=0;tn})},95946:(t,e,r)=>{"use strict";r.d(e,{XA:()=>l,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>c});var n=r(87788),i=r(39135),s=r(61836),o=r(11187);function a(t,{size:e}){if((0,i.d)(t)>e)throw new n.M6({givenSize:(0,i.d)(t),maxSize:e})}function c(t,e={}){const{signed:r}=e;e.size&&a(t,{size:e.size});const n=BigInt(t);if(!r)return n;const i=(t.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function l(t,e={}){let r=t;if(e.size&&(a(r,{size:e.size}),r=(0,s.f)(r)),"0x00"===(0,s.f)(r))return!1;if("0x01"===(0,s.f)(r))return!0;throw new n.Cd(r)}function u(t,e={}){return Number(c(t,e))}function h(t,e={}){let r=(0,o.nr)(t);return e.size&&(a(r,{size:e.size}),r=(0,s.f)(r,{dir:"right"})),(new TextDecoder).decode(r)}},11187:(t,e,r)=>{"use strict";r.d(e,{O0:()=>l,nr:()=>h,qX:()=>d});var n=r(62027),i=r(15102),s=r(61769),o=r(95946),a=r(92106);const c=new TextEncoder;function l(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){return h((0,a.eC)(t,e))}(t,e):"boolean"==typeof t?function(t,e={}){const r=new Uint8Array(1);return r[0]=Number(t),"number"==typeof e.size?((0,o.Yf)(r,{size:e.size}),(0,s.vk)(r,{size:e.size})):r}(t,e):(0,i.v)(t)?h(t,e):d(t,e)}function u(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:void 0}function h(t,e={}){let r=t;e.size&&((0,o.Yf)(r,{size:e.size}),r=(0,s.vk)(r,{dir:"right",size:e.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const a=i.length/2,c=new Uint8Array(a);for(let t=0,e=0;t{"use strict";r.d(e,{$G:()=>d,C4:()=>c,NC:()=>a,ci:()=>l,eC:()=>u});var n=r(87788),i=r(61769),s=r(95946);const o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t,e={}){return"number"==typeof t||"bigint"==typeof t?u(t,e):"string"==typeof t?d(t,e):"boolean"==typeof t?c(t,e):l(t,e)}function c(t,e={}){const r=`0x${Number(t)}`;return"number"==typeof e.size?((0,s.Yf)(r,{size:e.size}),(0,i.vk)(r,{size:e.size})):r}function l(t,e={}){let r="";for(let e=0;ea||o{"use strict";r.d(e,{k:()=>s});var n=r(62027),i=r(26445);function s(t,e){const r=(t.details||"").toLowerCase(),s=t.walk((t=>t.code===i.M_.code));return s instanceof n.G?new i.M_({cause:t,message:s.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:t,message:t.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:t,maxFeePerGas:e?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:t,maxFeePerGas:e?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:t,nonce:e?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:t,nonce:e?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:t,nonce:e?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:t}):i.WF.nodeMessage.test(r)?new i.WF({cause:t,gas:e?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:t,gas:e?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:t}):i.cs.nodeMessage.test(r)?new i.cs({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new i.cj({cause:t})}},43310:(t,e,r)=>{"use strict";r.d(e,{G:()=>o,Z:()=>s});var n=r(21366),i=r(6073);function s(t){const e=t.transactions?.map((t=>"string"==typeof t?t:(0,i.Tr)(t)));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,difficulty:t.difficulty?BigInt(t.difficulty):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const o=(0,n.$)("block",s)},61163:(t,e,r)=>{"use strict";function n(t,{format:e}){if(!e)return{};const r={};return function e(n){const i=Object.keys(n);for(const s of i)s in t&&(r[s]=t[s]),n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])&&e(n[s])}(e(t||{})),r}r.d(e,{K:()=>n})},21366:(t,e,r)=>{"use strict";function n(t,e){return({exclude:r,format:n})=>({exclude:r,format:t=>{const i=e(t);if(r)for(const t of r)delete i[t];return{...i,...n(t)}},type:t})}r.d(e,{$:()=>n})},53992:(t,e,r)=>{"use strict";function n(t,{args:e,eventName:r}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...r?{args:e,eventName:r}:{}}}r.d(e,{U:()=>n})},6073:(t,e,r)=>{"use strict";r.d(e,{Tr:()=>o,c8:()=>s,y_:()=>a});var n=r(95946),i=r(21366);const s={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function o(t){const e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?(0,n.ly)(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?(0,n.ly)(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?s[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof e.v){if(0n===e.v||27n===e.v)return 0;if(1n===e.v||28n===e.v)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),"legacy"===e.type&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),"eip2930"===e.type&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const a=(0,i.$)("transaction",o)},30866:(t,e,r)=>{"use strict";r.d(e,{d:()=>l,f:()=>c});var n=r(95946),i=r(21366),s=r(53992),o=r(6073);const a={"0x0":"reverted","0x1":"success"};function c(t){return{...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map((t=>(0,s.U)(t))):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?(0,n.ly)(t.transactionIndex):null,status:t.status?a[t.status]:null,type:t.type?o.c8[t.type]||t.type:null}}const l=(0,i.$)("transactionReceipt",c)},74688:(t,e,r)=>{"use strict";r.d(e,{iy:()=>a,tG:()=>o});var n=r(92106),i=r(21366);const s={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function o(t){return{...t,gas:void 0!==t.gas?(0,n.eC)(t.gas):void 0,gasPrice:void 0!==t.gasPrice?(0,n.eC)(t.gasPrice):void 0,maxFeePerGas:void 0!==t.maxFeePerGas?(0,n.eC)(t.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==t.maxPriorityFeePerGas?(0,n.eC)(t.maxPriorityFeePerGas):void 0,nonce:void 0!==t.nonce?(0,n.eC)(t.nonce):void 0,type:void 0!==t.type?s[t.type]:void 0,value:void 0!==t.value?(0,n.eC)(t.value):void 0}}const a=(0,i.$)("transactionRequest",o)},93714:(t,e,r)=>{"use strict";function n(t,e,r){return n=>t[e.name||r]?.(n)??e(t,n)}r.d(e,{s:()=>n})},54092:(t,e,r)=>{"use strict";r.d(e,{e:()=>o});var n=r(11187),i=r(49574),s=r(43199);const o=t=>{return e=(t=>(0,i.r)(t))(t),(0,s.w)((0,n.O0)(e));var e}},40552:(t,e,r)=>{"use strict";r.d(e,{o:()=>a});var n=r(3972),i=r(11187),s=r(49574),o=r(43199);const a=t=>{return(0,n.tP)((e=(0,s.r)(t),(0,o.w)((0,i.O0)(e))),0,4);var e}},49574:(t,e,r)=>{"use strict";r.d(e,{r:()=>a});const n=/^tuple(?(\[(\d*)\])*)$/;function i(t){let e=t.type;if(n.test(t.type)&&"components"in t){e="(";const r=t.components.length;for(let n=0;n{var e;return function(t){let e=!0,r="",n=0,i="",s=!1;for(let o=0;o{"use strict";function n(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}r.d(e,{w:()=>I});const o=BigInt(2**32-1),a=BigInt(32);function c(t,e=!1){return e?{h:Number(t&o),l:Number(t>>a&o)}:{h:0|Number(t>>a&o),l:0|Number(t&o)}}if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function l(t){if("string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),!(t instanceof Uint8Array))throw new Error("expected Uint8Array, got "+typeof t);return t}class u{clone(){return this._cloneInto()}}const[h,d,p]=[[],[],[]],f=BigInt(0),m=BigInt(1),g=BigInt(2),y=BigInt(7),w=BigInt(256),b=BigInt(113);for(let t=0,e=m,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],h.push(2*(5*n+r)),d.push((t+1)*(t+2)/2%64);let i=f;for(let t=0;t<7;t++)e=(e<>y)*b)%w,e&g&&(i^=m<<(m<r>32?((t,e,r)=>e<>>64-r)(t,e,r):((t,e,r)=>t<>>32-r)(t,e,r),_=(t,e,r)=>r>32?((t,e,r)=>t<>>64-r)(t,e,r):((t,e,r)=>e<>>32-r)(t,e,r);class A extends u{constructor(t,e,r,i=!1,s=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}keccak(){!function(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=x(s,o,1)^r[n],c=_(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=d[r],s=x(e,i,n),o=_(e,i,n),a=h[r];e=t[a],i=t[a+1],t[a]=s,t[a+1]=o}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=v[n],t[1]^=E[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){s(this);const{blockLen:e,state:r}=this,n=(t=l(t)).length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(function(t,e){i(t);const r=e.outputLen;if(t.lengtht().update(l(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}((()=>new A(136,1,32)));var S=r(15102),C=r(11187),M=r(92106);function I(t,e){const r=e||"hex",n=k((0,S.v)(t,{strict:!1})?(0,C.O0)(t):t);return"bytes"===r?n:(0,M.NC)(n)}},32357:(t,e,r)=>{"use strict";r.d(e,{S:()=>i});const n=new Map;function i({fn:t,id:e,shouldSplitBatch:r,wait:i=0,sort:s}){const o=async()=>{const e=c();a();const r=e.map((({args:t})=>t));0!==r.length&&t(r).then((t=>{s&&Array.isArray(t)&&t.sort(s);for(let r=0;r{for(let r=0;rn.delete(e),c=()=>n.get(e)||[],l=t=>n.set(e,[...c(),t]);return{flush:a,async schedule(t){const e={},n=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),s=r?.([...c().map((({args:t})=>t)),t]);return s&&o(),c().length>0?(l({args:t,pendingPromise:e}),n):(l({args:t,pendingPromise:e}),setTimeout(o,i),n)}}}},7760:(t,e,r)=>{"use strict";r.d(e,{J:()=>i});var n=r(62914);function i(t,{delay:e=100,retryCount:r=2,shouldRetry:i=(()=>!0)}={}){return new Promise(((s,o)=>{const a=async({count:c=0}={})=>{try{const e=await t();s(e)}catch(t){if(c{const r="function"==typeof e?e({count:c,error:t}):e;r&&await(0,n.D)(r),a({count:c+1})})({error:t});o(t)}};a()}))}},96070:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});const n=(t,e,r)=>JSON.stringify(t,((t,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof e?e(t,n):n}),r)},47531:(t,e,r)=>{"use strict";r.d(e,{F:()=>c});var n=r(14503),i=r(26087),s=r(26445),o=r(33639),a=r(49321);function c(t){const{account:e,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:u}=t,h=e?(0,n.T)(e):void 0;if(h&&!(0,a.U)(h.address))throw new i.b({address:h.address});if(u&&!(0,a.U)(u))throw new i.b({address:u});if(void 0!==r&&(void 0!==c||void 0!==l))throw new o.xY;if(c&&c>2n**256n-1n)throw new s.Hh({maxFeePerGas:c});if(l&&c&&l>c)throw new s.cs({maxFeePerGas:c,maxPriorityFeePerGas:l})}},82994:(t,e,r)=>{"use strict";r.d(e,{l:()=>i});var n=r(33639);function i(t){if(t.type)return t.type;if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new n.j3({transaction:t})}},67829:(t,e,r)=>{"use strict";r.d(e,{cj:()=>h,iC:()=>u});var n=r(57412),i=r(26087),s=r(49321),o=r(39135),a=r(92106);const c=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,l=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function u({domain:t,message:e,primaryType:r,types:u}){const h=u,d=(t,e)=>{for(const r of t){const{name:t,type:u}=r,p=u,f=e[t],m=p.match(l);if(m&&("number"==typeof f||"bigint"==typeof f)){const[t,e,r]=m;(0,a.eC)(f,{signed:"int"===e,size:parseInt(r)/8})}if("address"===p&&"string"==typeof f&&!(0,s.U)(f))throw new i.b({address:f});const g=p.match(c);if(g){const[t,e]=g;if(e&&(0,o.d)(f)!==parseInt(e))throw new n.KY({expectedSize:parseInt(e),givenSize:(0,o.d)(f)})}const y=h[p];y&&d(y,f)}};if(h.EIP712Domain&&t&&d(h.EIP712Domain,t),"EIP712Domain"!==r){const t=h[r];d(t,e)}}function h({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},"number"==typeof t?.chainId&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},39625:(t,e,r)=>{"use strict";r.d(e,{d:()=>s});var n=r(84192),i=r(15229);function s(t,e="wei"){return(0,i.b)(t,n.ez[e])}},67795:(t,e,r)=>{"use strict";r.d(e,{o:()=>s});var n=r(84192),i=r(15229);function s(t,e="wei"){return(0,i.b)(t,n.Zn[e])}},15229:(t,e,r)=>{"use strict";function n(t,e){let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");let[i,s]=[r.slice(0,r.length-e),r.slice(r.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${s?`.${s}`:""}`}r.d(e,{b:()=>n})},62914:(t,e,r)=>{"use strict";async function n(t){return new Promise((e=>setTimeout(e,t)))}r.d(e,{D:()=>n})},80661:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')}},i={};function s(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}return s.amdO={},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);s.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&r;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>r[t]));return o.default=()=>r,s.d(i,o),i},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s(68138)})(),t.exports=n()},9082:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(9569),i=r(8089),s=r(6551);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},1525:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(4632),i=r(219),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=p,n>c&&(n-=d,s+=o);const a=e,f=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[f]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},5134:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(4632),i=r(219),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),p=o(0,u),f=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(p,t,f,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:p,expand:f,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===f)v=u(t,g,b,p);else if("xof"===f)v=h(t,g,b,a,p);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');v=t}const E=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},4632:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(219),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function p(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function f(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=p,e.tonelliShanks=f,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?p(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*p(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>p(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s}},219:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),f=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=p(t),i=p(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=p())=>{i=a(f([0]),t),n=a(),0!==t.length&&(i=a(f([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},6551:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(4632),i=r(219),s=r(219),o=r(1525),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),p=BigInt(4);function f(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function p(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),p=r.mul(o,o),f=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,f),l=r.add(c,l),c=r.sub(p,l),l=r.add(p,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),f=r.mul(t,f),m=r.sub(h,f),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,f),h=r.mul(h,m),l=r.add(l,h),f=r.mul(o,a),f=r.add(f,f),h=r.mul(f,m),c=r.sub(c,h),u=r.mul(f,p),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const p=e.a,f=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),E=r.add(o,a);v=r.mul(v,E),E=r.add(m,g),v=r.sub(v,E),E=r.add(n,s);let x=r.add(o,c);return E=r.mul(E,x),x=r.add(m,b),E=r.sub(E,x),x=r.add(i,s),l=r.add(a,c),x=r.mul(x,l),l=r.add(g,b),x=r.sub(x,l),h=r.mul(p,E),l=r.mul(f,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(p,b),E=r.mul(f,E),g=r.add(g,b),b=r.sub(m,b),b=r.mul(p,b),E=r.add(E,b),m=r.mul(g,E),u=r.add(u,m),m=r.mul(x,E),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(x,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(f(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,p=this;for(;o>l||c>l;)o&u&&(h=h.add(p)),c&u&&(d=d.add(p)),p=p.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){f(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:p}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,f),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=f,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function p(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=f({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function E(t){return t>c>>u}const x=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class _{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new _(x(t,0,e),x(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new _(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new _(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=p(-o*h),f=p(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,f);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const A={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=r.randomBytes(a.BYTES+8),e=n.hashToPrivateScalar(t,c);return i.numberToBytesBE(e,r.nByteLength)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function k(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const S=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return p(S(t))},M=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:f}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),x=[I(v),I(w)];if(null!=f){const t=!0===f?c(a.BYTES):f;x.push((0,s.ensureBytes)("extraEntropy",t,a.BYTES))}const A=i.concatBytes(...x),k=w;return{seed:A,k2sig:function(t){const e=S(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=p(n.x);if(i===l)return;const s=p(r*p(k+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&E(s)&&(a=function(t){return E(t)?p(-t):t}(s),o^=1),new _(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=_.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=_.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new _(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:f}=u,y=C(n),w=m(f),b=p(y*w),v=p(d*w),E=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!E&&p(E.x)===d},ProjectivePoint:g,Signature:_,utils:A}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:p}=r(s,l);h=t.mul(i,n),h=t.mul(h,p),u=t.cmov(u,o,d),h=t.cmov(h,p,d);const f=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,f),u=t.div(u,a),{x:u,y:h}}}},3497:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(3061),i=r(8089),s=r(4632),o=r(6551),a=r(219),c=r(5134),l=r(9082),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),f=(t,e)=>(t+e/p)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,f=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(f,r,e)*d%e,y=(0,s.pow2)(m,p,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,E=(0,s.pow2)(v,l,e)*v%e,x=(0,s.pow2)(E,c,e)*b%e,_=(0,s.pow2)(x,r,e)*d%e,A=(0,s.pow2)(_,a,e)*w%e,k=(0,s.pow2)(A,n,e)*h%e,S=(0,s.pow2)(k,p,e);if(!g.eql(g.sqr(S),t))throw new Error("Cannot find square root");return S}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=f(o*t,e),l=f(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),p=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=p>a;if(m&&(u=e-u),g&&(p=e-p),u>a||p>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:p}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const E=t=>t.toRawBytes(!0).slice(1),x=t=>(0,a.numberToBytesBE)(t,32),_=t=>(0,s.mod)(t,u),A=t=>(0,s.mod)(t,h),k=e.secp256k1.ProjectivePoint;function S(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:A(-r),bytes:E(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=_(t*t);let r=m(_(e*t+BigInt(7)));r%p!==y&&(r=_(-r));const n=new k(t,r,d);return n.assertValidity(),n}function M(...t){return A((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(u=r)&&y(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),O=(()=>(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),T=(()=>(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();e.hashToCurve=T.hashToCurve,e.encodeToCurve=T.encodeToCurve},7320:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(7320),i=r(8089);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){n.default.exists(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.fromBig=i,e.split=s,e.toBig=(t,e)=>BigInt(t>>>0)<>>0),e.add=o;const a={fromBig:i,split:s,toBig:e.toBig,shrSH:(t,e,r)=>t>>>r,shrSL:(t,e,r)=>t<<32-r|e>>>r,rotrSH:(t,e,r)=>t>>>r|e<<32-r,rotrSL:(t,e,r)=>t<<32-r|e>>>r,rotrBH:(t,e,r)=>t<<64-r|e>>>r-32,rotrBL:(t,e,r)=>t>>>r-32|e<<64-r,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,r)=>t<>>32-r,rotlSL:(t,e,r)=>e<>>32-r,rotlBH:(t,e,r)=>e<>>64-r,rotlBL:(t,e,r)=>t<>>64-r,add:o,add3L:(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),add3H:(t,e,r,n)=>e+r+n+(t/2**32|0)|0,add4L:(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),add4H:(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,add5H:(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,add5L:(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};e.default=a},1945:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},9569:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(7320),i=r(8089);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,n.default.hash(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},3061:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(7505),i=r(8089),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:p}=this;for(let t=0;t<64;t++){const e=p+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((f=u)&h^~f&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;p=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var f;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,n,a,l,u,h,d,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},5426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(7320),i=r(6873),s=r(8089),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),p=BigInt(256),f=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*f)%p,e&h&&(i^=u<<(u<r>32?i.default.rotlBH(t,e,r):i.default.rotlSH(t,e,r),w=(t,e,r)=>r>32?i.default.rotlBL(t,e,r):i.default.rotlSL(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){n.default.exists(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(n.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const E=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=E(6,144,28),e.sha3_256=E(6,136,32),e.sha3_384=E(6,104,48),e.sha3_512=E(6,72,64),e.keccak_224=E(1,144,28),e.keccak_256=E(1,136,32),e.keccak_384=E(1,104,48),e.keccak_512=E(1,72,64);const x=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=x(31,168,16),e.shake256=x(31,136,32)},8089:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(1945),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}},e.checkOpts=function(t,e){if(void 0!==e&&("object"!=typeof e||(r=e,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new Error("Options should be object or undefined");var r;return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},8099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7117);function i(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function s(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function o(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function a(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function c(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function l(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function u(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function h(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function d(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),u(t/4294967296>>>0,e,r),u(t>>>0,e,r+4),e}function p(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),h(t>>>0,e,r),h(t/4294967296>>>0,e,r+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=s,e.writeInt16LE=s,e.readInt32BE=o,e.readUint32BE=a,e.readInt32LE=c,e.readUint32LE=l,e.writeUint32BE=u,e.writeInt32BE=u,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var r=o(t,e),n=o(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*a(t,e)+a(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var r=c(t,e);return 4294967296*c(t,e+4)+r-4294967296*(r>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var r=l(t,e);return 4294967296*l(t,e+4)+r},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=p,e.writeInt64LE=p,e.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=t/8+r-1;s>=r;s--)n+=e[s]*i,i*=256;return n},e.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s=i;o--)r[o]=e/s&255,s*=256;return r},e.writeUintLE=function(t,e,r,i){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var s=1,o=i;o{"use strict";var n=r(5439),i=r(3027),s=r(7309),o=r(8099),a=r(4153);e.Cv=32,e.WH=12,e.pg=16;var c=new Uint8Array(16),l=function(){function t(t){if(this.nonceLength=e.WH,this.tagLength=e.pg,t.length!==e.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var a=new Uint8Array(32);n.stream(this._key,o,a,4);var c,l=e.length+this.tagLength;if(i){if(i.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");c=i}else c=new Uint8Array(l);return n.streamXOR(this._key,o,e,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},t.prototype.open=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&a.update(c.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&o.writeUint64LE(n.length,l),a.update(l),o.writeUint64LE(r.length,l),a.update(l);for(var u=a.digest(),h=0;h{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8099),i=r(7309);function s(t,e,r){for(var i=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],l=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=r[19]<<24|r[18]<<16|r[17]<<8|r[16],p=r[23]<<24|r[22]<<16|r[21]<<8|r[20],f=r[27]<<24|r[26]<<16|r[25]<<8|r[24],m=r[31]<<24|r[30]<<16|r[29]<<8|r[28],g=e[3]<<24|e[2]<<16|e[1]<<8|e[0],y=e[7]<<24|e[6]<<16|e[5]<<8|e[4],w=e[11]<<24|e[10]<<16|e[9]<<8|e[8],b=e[15]<<24|e[14]<<16|e[13]<<8|e[12],v=i,E=s,x=o,_=a,A=c,k=l,S=u,C=h,M=d,I=p,P=f,O=m,T=g,N=y,R=w,B=b,j=0;j<20;j+=2)A=(A^=M=M+(T=(T^=v=v+A|0)>>>16|T<<16)|0)>>>20|A<<12,k=(k^=I=I+(N=(N^=E=E+k|0)>>>16|N<<16)|0)>>>20|k<<12,S=(S^=P=P+(R=(R^=x=x+S|0)>>>16|R<<16)|0)>>>20|S<<12,C=(C^=O=O+(B=(B^=_=_+C|0)>>>16|B<<16)|0)>>>20|C<<12,S=(S^=P=P+(R=(R^=x=x+S|0)>>>24|R<<8)|0)>>>25|S<<7,C=(C^=O=O+(B=(B^=_=_+C|0)>>>24|B<<8)|0)>>>25|C<<7,k=(k^=I=I+(N=(N^=E=E+k|0)>>>24|N<<8)|0)>>>25|k<<7,A=(A^=M=M+(T=(T^=v=v+A|0)>>>24|T<<8)|0)>>>25|A<<7,k=(k^=P=P+(B=(B^=v=v+k|0)>>>16|B<<16)|0)>>>20|k<<12,S=(S^=O=O+(T=(T^=E=E+S|0)>>>16|T<<16)|0)>>>20|S<<12,C=(C^=M=M+(N=(N^=x=x+C|0)>>>16|N<<16)|0)>>>20|C<<12,A=(A^=I=I+(R=(R^=_=_+A|0)>>>16|R<<16)|0)>>>20|A<<12,C=(C^=M=M+(N=(N^=x=x+C|0)>>>24|N<<8)|0)>>>25|C<<7,A=(A^=I=I+(R=(R^=_=_+A|0)>>>24|R<<8)|0)>>>25|A<<7,S=(S^=O=O+(T=(T^=E=E+S|0)>>>24|T<<8)|0)>>>25|S<<7,k=(k^=P=P+(B=(B^=v=v+k|0)>>>24|B<<8)|0)>>>25|k<<7;n.writeUint32LE(v+i|0,t,0),n.writeUint32LE(E+s|0,t,4),n.writeUint32LE(x+o|0,t,8),n.writeUint32LE(_+a|0,t,12),n.writeUint32LE(A+c|0,t,16),n.writeUint32LE(k+l|0,t,20),n.writeUint32LE(S+u|0,t,24),n.writeUint32LE(C+h|0,t,28),n.writeUint32LE(M+d|0,t,32),n.writeUint32LE(I+p|0,t,36),n.writeUint32LE(P+f|0,t,40),n.writeUint32LE(O+m|0,t,44),n.writeUint32LE(T+g|0,t,48),n.writeUint32LE(N+y|0,t,52),n.writeUint32LE(R+w|0,t,56),n.writeUint32LE(B+b|0,t,60)}function o(t,e,r,n,o){if(void 0===o&&(o=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=o,e.stream=function(t,e,r,n){return void 0===n&&(n=0),i.wipe(r),o(t,e,r,r,n)}},4153:(t,e)=>{"use strict";function r(t,e){if(t.length!==e.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,r){return~(t-1)&e|t-1&r},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},1050:(t,e,r)=>{"use strict";e.Xx=e._w=e.aP=e.KS=e.jQ=void 0;r(1416);const n=r(3350);r(7309);function i(t){const e=new Float64Array(16);if(t)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,d(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function f(t){const e=new Uint8Array(32);return p(e,t),1&e[0]}function m(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function g(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function y(t,e,r){let n,i,s=0,o=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,f=0,m=0,g=0,y=0,w=0,b=0,v=0,E=0,x=0,_=0,A=0,k=0,S=0,C=0,M=0,I=0,P=0,O=0,T=0,N=0,R=0,B=0,j=r[0],L=r[1],U=r[2],D=r[3],$=r[4],F=r[5],z=r[6],H=r[7],W=r[8],q=r[9],V=r[10],G=r[11],K=r[12],Z=r[13],J=r[14],Q=r[15];n=e[0],s+=n*j,o+=n*L,a+=n*U,c+=n*D,l+=n*$,u+=n*F,h+=n*z,d+=n*H,p+=n*W,f+=n*q,m+=n*V,g+=n*G,y+=n*K,w+=n*Z,b+=n*J,v+=n*Q,n=e[1],o+=n*j,a+=n*L,c+=n*U,l+=n*D,u+=n*$,h+=n*F,d+=n*z,p+=n*H,f+=n*W,m+=n*q,g+=n*V,y+=n*G,w+=n*K,b+=n*Z,v+=n*J,E+=n*Q,n=e[2],a+=n*j,c+=n*L,l+=n*U,u+=n*D,h+=n*$,d+=n*F,p+=n*z,f+=n*H,m+=n*W,g+=n*q,y+=n*V,w+=n*G,b+=n*K,v+=n*Z,E+=n*J,x+=n*Q,n=e[3],c+=n*j,l+=n*L,u+=n*U,h+=n*D,d+=n*$,p+=n*F,f+=n*z,m+=n*H,g+=n*W,y+=n*q,w+=n*V,b+=n*G,v+=n*K,E+=n*Z,x+=n*J,_+=n*Q,n=e[4],l+=n*j,u+=n*L,h+=n*U,d+=n*D,p+=n*$,f+=n*F,m+=n*z,g+=n*H,y+=n*W,w+=n*q,b+=n*V,v+=n*G,E+=n*K,x+=n*Z,_+=n*J,A+=n*Q,n=e[5],u+=n*j,h+=n*L,d+=n*U,p+=n*D,f+=n*$,m+=n*F,g+=n*z,y+=n*H,w+=n*W,b+=n*q,v+=n*V,E+=n*G,x+=n*K,_+=n*Z,A+=n*J,k+=n*Q,n=e[6],h+=n*j,d+=n*L,p+=n*U,f+=n*D,m+=n*$,g+=n*F,y+=n*z,w+=n*H,b+=n*W,v+=n*q,E+=n*V,x+=n*G,_+=n*K,A+=n*Z,k+=n*J,S+=n*Q,n=e[7],d+=n*j,p+=n*L,f+=n*U,m+=n*D,g+=n*$,y+=n*F,w+=n*z,b+=n*H,v+=n*W,E+=n*q,x+=n*V,_+=n*G,A+=n*K,k+=n*Z,S+=n*J,C+=n*Q,n=e[8],p+=n*j,f+=n*L,m+=n*U,g+=n*D,y+=n*$,w+=n*F,b+=n*z,v+=n*H,E+=n*W,x+=n*q,_+=n*V,A+=n*G,k+=n*K,S+=n*Z,C+=n*J,M+=n*Q,n=e[9],f+=n*j,m+=n*L,g+=n*U,y+=n*D,w+=n*$,b+=n*F,v+=n*z,E+=n*H,x+=n*W,_+=n*q,A+=n*V,k+=n*G,S+=n*K,C+=n*Z,M+=n*J,I+=n*Q,n=e[10],m+=n*j,g+=n*L,y+=n*U,w+=n*D,b+=n*$,v+=n*F,E+=n*z,x+=n*H,_+=n*W,A+=n*q,k+=n*V,S+=n*G,C+=n*K,M+=n*Z,I+=n*J,P+=n*Q,n=e[11],g+=n*j,y+=n*L,w+=n*U,b+=n*D,v+=n*$,E+=n*F,x+=n*z,_+=n*H,A+=n*W,k+=n*q,S+=n*V,C+=n*G,M+=n*K,I+=n*Z,P+=n*J,O+=n*Q,n=e[12],y+=n*j,w+=n*L,b+=n*U,v+=n*D,E+=n*$,x+=n*F,_+=n*z,A+=n*H,k+=n*W,S+=n*q,C+=n*V,M+=n*G,I+=n*K,P+=n*Z,O+=n*J,T+=n*Q,n=e[13],w+=n*j,b+=n*L,v+=n*U,E+=n*D,x+=n*$,_+=n*F,A+=n*z,k+=n*H,S+=n*W,C+=n*q,M+=n*V,I+=n*G,P+=n*K,O+=n*Z,T+=n*J,N+=n*Q,n=e[14],b+=n*j,v+=n*L,E+=n*U,x+=n*D,_+=n*$,A+=n*F,k+=n*z,S+=n*H,C+=n*W,M+=n*q,I+=n*V,P+=n*G,O+=n*K,T+=n*Z,N+=n*J,R+=n*Q,n=e[15],v+=n*j,E+=n*L,x+=n*U,_+=n*D,A+=n*$,k+=n*F,S+=n*z,C+=n*H,M+=n*W,I+=n*q,P+=n*V,O+=n*G,T+=n*K,N+=n*Z,R+=n*J,B+=n*Q,s+=38*E,o+=38*x,a+=38*_,c+=38*A,l+=38*k,u+=38*S,h+=38*C,d+=38*M,p+=38*I,f+=38*P,m+=38*O,g+=38*T,y+=38*N,w+=38*R,b+=38*B,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),t[0]=s,t[1]=o,t[2]=a,t[3]=c,t[4]=l,t[5]=u,t[6]=h,t[7]=d,t[8]=p,t[9]=f,t[10]=m,t[11]=g,t[12]=y,t[13]=w,t[14]=b,t[15]=v}function w(t,e){y(t,e,e)}function b(t,e){const r=i(),n=i(),s=i(),o=i(),c=i(),l=i(),u=i(),h=i(),d=i();g(r,t[1],t[0]),g(d,e[1],e[0]),y(r,r,d),m(n,t[0],t[1]),m(d,e[0],e[1]),y(n,n,d),y(s,t[3],e[3]),y(s,s,a),y(o,t[2],e[2]),m(o,o,o),g(c,n,r),g(l,o,s),m(u,o,s),m(h,n,r),y(t[0],c,l),y(t[1],h,u),y(t[2],u,l),y(t[3],c,h)}function v(t,e,r){for(let n=0;n<4;n++)d(t[n],e[n],r)}function E(t,e){const r=i(),n=i(),s=i();(function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)w(r,r),2!==n&&4!==n&&y(r,r,e);for(n=0;n<16;n++)t[n]=r[n]})(s,e[2]),y(r,e[0],s),y(n,e[1],s),p(t,n),t[31]^=f(r)<<7}function x(t,e){const r=[i(),i(),i(),i()];u(r[0],c),u(r[1],l),u(r[2],o),y(r[3],c,l),function(t,e,r){u(t[0],s),u(t[1],o),u(t[2],o),u(t[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;v(t,e,i),b(e,t),b(t,t),v(t,e,i)}}(t,r,e)}e._w=function(t){if(t.length!==e.aP)throw new Error(`ed25519: seed must be ${e.aP} bytes`);const r=(0,n.hash)(t);r[0]&=248,r[31]&=127,r[31]|=64;const s=new Uint8Array(32),o=[i(),i(),i(),i()];x(o,r),E(s,o);const a=new Uint8Array(64);return a.set(t),a.set(s,32),{publicKey:s,secretKey:a}};const _=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 A(t,e){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i>4)*_[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*_[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function k(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;A(t,e)}e.Xx=function(t,e){const r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const a=new Uint8Array(64);a.set(o.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(e);const l=c.digest();c.clean(),k(l),x(s,l),E(a,s),c.reset(),c.update(a.subarray(0,32)),c.update(t.subarray(32)),c.update(e);const u=c.digest();k(u);for(let t=0;t<32;t++)r[t]=l[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)r[t+e]+=u[t]*o[e];return A(a.subarray(32),r),a}},9984:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSerializableHash=function(t){return void 0!==t.saveState&&void 0!==t.restoreState&&void 0!==t.cleanSavedState}},512:(t,e,r)=>{"use strict";var n=r(5629),i=r(7309),s=function(){function t(t,e,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var s=n.hmac(this._hash,r,e);this._hmac=new n.HMAC(t,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9984),i=r(4153),s=r(7309),o=function(){function t(t,e){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);e.length>this.blockSize?this._inner.update(e).finish(r).clean():r.set(e);for(var i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},3027:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4153),i=r(7309);e.DIGEST_LENGTH=16;var s=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=8191&r;var n=t[2]|t[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var s=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|s<<9);var o=t[8]|t[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=t[12]|t[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var l=t[14]|t[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],h=this._h[7],d=this._h[8],p=this._h[9],f=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],w=this._r[4],b=this._r[5],v=this._r[6],E=this._r[7],x=this._r[8],_=this._r[9];r>=16;){var A=t[e+0]|t[e+1]<<8;i+=8191&A;var k=t[e+2]|t[e+3]<<8;s+=8191&(A>>>13|k<<3);var S=t[e+4]|t[e+5]<<8;o+=8191&(k>>>10|S<<6);var C=t[e+6]|t[e+7]<<8;a+=8191&(S>>>7|C<<9);var M=t[e+8]|t[e+9]<<8;c+=8191&(C>>>4|M<<12),l+=M>>>1&8191;var I=t[e+10]|t[e+11]<<8;u+=8191&(M>>>14|I<<2);var P=t[e+12]|t[e+13]<<8;h+=8191&(I>>>11|P<<5);var O=t[e+14]|t[e+15]<<8,T=0,N=T;N+=i*f,N+=s*(5*_),N+=o*(5*x),N+=a*(5*E),T=(N+=c*(5*v))>>>13,N&=8191,N+=l*(5*b),N+=u*(5*w),N+=h*(5*y),N+=(d+=8191&(P>>>8|O<<8))*(5*g);var R=T+=(N+=(p+=O>>>5|n)*(5*m))>>>13;R+=i*m,R+=s*f,R+=o*(5*_),R+=a*(5*x),T=(R+=c*(5*E))>>>13,R&=8191,R+=l*(5*v),R+=u*(5*b),R+=h*(5*w),R+=d*(5*y),T+=(R+=p*(5*g))>>>13,R&=8191;var B=T;B+=i*g,B+=s*m,B+=o*f,B+=a*(5*_),T=(B+=c*(5*x))>>>13,B&=8191,B+=l*(5*E),B+=u*(5*v),B+=h*(5*b),B+=d*(5*w);var j=T+=(B+=p*(5*y))>>>13;j+=i*y,j+=s*g,j+=o*m,j+=a*f,T=(j+=c*(5*_))>>>13,j&=8191,j+=l*(5*x),j+=u*(5*E),j+=h*(5*v),j+=d*(5*b);var L=T+=(j+=p*(5*w))>>>13;L+=i*w,L+=s*y,L+=o*g,L+=a*m,T=(L+=c*f)>>>13,L&=8191,L+=l*(5*_),L+=u*(5*x),L+=h*(5*E),L+=d*(5*v);var U=T+=(L+=p*(5*b))>>>13;U+=i*b,U+=s*w,U+=o*y,U+=a*g,T=(U+=c*m)>>>13,U&=8191,U+=l*f,U+=u*(5*_),U+=h*(5*x),U+=d*(5*E);var D=T+=(U+=p*(5*v))>>>13;D+=i*v,D+=s*b,D+=o*w,D+=a*y,T=(D+=c*g)>>>13,D&=8191,D+=l*m,D+=u*f,D+=h*(5*_),D+=d*(5*x);var $=T+=(D+=p*(5*E))>>>13;$+=i*E,$+=s*v,$+=o*b,$+=a*w,T=($+=c*y)>>>13,$&=8191,$+=l*g,$+=u*m,$+=h*f,$+=d*(5*_);var F=T+=($+=p*(5*x))>>>13;F+=i*x,F+=s*E,F+=o*v,F+=a*b,T=(F+=c*w)>>>13,F&=8191,F+=l*y,F+=u*g,F+=h*m,F+=d*f;var z=T+=(F+=p*(5*_))>>>13;z+=i*_,z+=s*x,z+=o*E,z+=a*v,T=(z+=c*b)>>>13,z&=8191,z+=l*w,z+=u*y,z+=h*g,z+=d*m,i=N=8191&(T=(T=((T+=(z+=p*f)>>>13)<<2)+T|0)+(N&=8191)|0),s=R+=T>>>=13,o=B&=8191,a=j&=8191,c=L&=8191,l=U&=8191,u=D&=8191,h=$&=8191,d=F&=8191,p=z&=8191,e+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=h,this._h[8]=d,this._h[9]=p},t.prototype.finish=function(t,e){void 0===e&&(e=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(n=~n,s=0;s<10;s++)this._h[s]=this._h[s]&n|o[s];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),i=this._h[0]+this._pad[0],this._h[0]=65535&i,s=1;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,r=0,n=t.length;if(this._leftover){(e=16-this._leftover)>n&&(e=n);for(var i=0;i=16&&(e=n-n%16,this._blocks(t,r,e),r+=e,n-=e),n){for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const n=r(6008),i=r(8099),s=r(7309);function o(t,r=e.defaultRandomSource){return r.randomBytes(t)}e.defaultRandomSource=new n.SystemRandomSource,e.randomBytes=o,e.randomUint32=function(t=e.defaultRandomSource){const r=o(4,t),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(t,r=a,n=e.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;t>0;){const e=o(Math.ceil(256*t/l),n);for(let n=0;n0;n++){const s=e[n];s{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRandomSource=void 0,e.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeRandomSource=void 0;const n=r(7309);e.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const t=r(5883);t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemRandomSource=void 0;const n=r(5455),i=r(8871);e.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}}},3294:(t,e,r)=>{"use strict";var n=r(8099),i=r(7309);e.k=32,e.cn=64;var s=function(){function t(){this.digestLength=e.k,this.blockSize=e.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],e--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(r=a(this._temp,this._state,t,r,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[r++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.mE=s;var o=new Int32Array([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 a(t,e,r,i,s){for(;s>=64;){for(var a=e[0],c=e[1],l=e[2],u=e[3],h=e[4],d=e[5],p=e[6],f=e[7],m=0;m<16;m++){var g=i+4*m;t[m]=n.readUint32BE(r,g)}for(m=16;m<64;m++){var y=t[m-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,b=((y=t[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;t[m]=(w+t[m-7]|0)+(b+t[m-16]|0)}for(m=0;m<64;m++)w=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)|0)+(f+(o[m]+t[m]|0)|0)|0,b=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&l^c&l)|0,f=p,p=d,d=h,h=u+w|0,u=l,l=c,c=a,a=w+b|0;e[0]+=a,e[1]+=c,e[2]+=l,e[3]+=u,e[4]+=h,e[5]+=d,e[6]+=p,e[7]+=f,i+=64,s-=64}return i}e.vp=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},3350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8099),i=r(7309);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var s=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,r){if(void 0===r&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=s;var o=new Int32Array([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 a(t,e,r,i,s,a,c){for(var l,u,h,d,p,f,m,g,y=r[0],w=r[1],b=r[2],v=r[3],E=r[4],x=r[5],_=r[6],A=r[7],k=i[0],S=i[1],C=i[2],M=i[3],I=i[4],P=i[5],O=i[6],T=i[7];c>=128;){for(var N=0;N<16;N++){var R=8*N+a;t[N]=n.readUint32BE(s,R),e[N]=n.readUint32BE(s,R+4)}for(N=0;N<80;N++){var B,j,L=y,U=w,D=b,$=v,F=E,z=x,H=_,W=k,q=S,V=C,G=M,K=I,Z=P,J=O;if(p=65535&(u=T),f=u>>>16,m=65535&(l=A),g=l>>>16,p+=65535&(u=(I>>>14|E<<18)^(I>>>18|E<<14)^(E>>>9|I<<23)),f+=u>>>16,m+=65535&(l=(E>>>14|I<<18)^(E>>>18|I<<14)^(I>>>9|E<<23)),g+=l>>>16,p+=65535&(u=I&P^~I&O),f+=u>>>16,m+=65535&(l=E&x^~E&_),g+=l>>>16,l=o[2*N],p+=65535&(u=o[2*N+1]),f+=u>>>16,m+=65535&l,g+=l>>>16,l=t[N%16],f+=(u=e[N%16])>>>16,m+=65535&l,g+=l>>>16,m+=(f+=(p+=65535&u)>>>16)>>>16,p=65535&(u=d=65535&p|f<<16),f=u>>>16,m=65535&(l=h=65535&m|(g+=m>>>16)<<16),g=l>>>16,p+=65535&(u=(k>>>28|y<<4)^(y>>>2|k<<30)^(y>>>7|k<<25)),f+=u>>>16,m+=65535&(l=(y>>>28|k<<4)^(k>>>2|y<<30)^(k>>>7|y<<25)),g+=l>>>16,f+=(u=k&S^k&C^S&C)>>>16,m+=65535&(l=y&w^y&b^w&b),g+=l>>>16,B=65535&(m+=(f+=(p+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,j=65535&p|f<<16,p=65535&(u=G),f=u>>>16,m=65535&(l=$),g=l>>>16,f+=(u=d)>>>16,m+=65535&(l=h),g+=l>>>16,w=L,b=U,v=D,E=$=65535&(m+=(f+=(p+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,x=F,_=z,A=H,y=B,S=W,C=q,M=V,I=G=65535&p|f<<16,P=K,O=Z,T=J,k=j,N%16==15)for(R=0;R<16;R++)l=t[R],p=65535&(u=e[R]),f=u>>>16,m=65535&l,g=l>>>16,l=t[(R+9)%16],p+=65535&(u=e[(R+9)%16]),f+=u>>>16,m+=65535&l,g+=l>>>16,h=t[(R+1)%16],p+=65535&(u=((d=e[(R+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),f+=u>>>16,m+=65535&(l=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),g+=l>>>16,h=t[(R+14)%16],f+=(u=((d=e[(R+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,m+=65535&(l=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,t[R]=65535&m|g<<16,e[R]=65535&p|f<<16}p=65535&(u=k),f=u>>>16,m=65535&(l=y),g=l>>>16,l=r[0],f+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[0]=y=65535&m|g<<16,i[0]=k=65535&p|f<<16,p=65535&(u=S),f=u>>>16,m=65535&(l=w),g=l>>>16,l=r[1],f+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[1]=w=65535&m|g<<16,i[1]=S=65535&p|f<<16,p=65535&(u=C),f=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],f+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=C=65535&p|f<<16,p=65535&(u=M),f=u>>>16,m=65535&(l=v),g=l>>>16,l=r[3],f+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[3]=v=65535&m|g<<16,i[3]=M=65535&p|f<<16,p=65535&(u=I),f=u>>>16,m=65535&(l=E),g=l>>>16,l=r[4],f+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[4]=E=65535&m|g<<16,i[4]=I=65535&p|f<<16,p=65535&(u=P),f=u>>>16,m=65535&(l=x),g=l>>>16,l=r[5],f+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[5]=x=65535&m|g<<16,i[5]=P=65535&p|f<<16,p=65535&(u=O),f=u>>>16,m=65535&(l=_),g=l>>>16,l=r[6],f+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[6]=_=65535&m|g<<16,i[6]=O=65535&p|f<<16,p=65535&(u=T),f=u>>>16,m=65535&(l=A),g=l>>>16,l=r[7],f+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(f+=(p+=65535&u)>>>16)>>>16)>>>16,r[7]=A=65535&m|g<<16,i[7]=T=65535&p|f<<16,a+=128,c-=128}return a}e.hash=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},7309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var e=0;e{"use strict";e.gi=e.Au=e.KS=e.kz=void 0;const n=r(1416),i=r(7309);function s(t){const e=new Float64Array(16);if(t)for(let r=0;r=0;--t){const e=r[t>>>3]>>>(7&t)&1;l(i,o,e),l(f,m,e),u(g,i,f),h(i,i,f),u(f,o,m),h(o,o,m),p(m,g),p(y,i),d(i,f,i),d(f,o,g),u(g,i,f),h(i,i,f),p(o,i),h(f,m,y),d(i,f,a),u(i,i,m),d(f,f,i),d(i,m,y),d(m,o,n),p(o,g),l(i,o,e),l(f,m,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=f[t],n[t+48]=o[t],n[t+64]=m[t];const w=n.subarray(32),b=n.subarray(16);!function(t,e){const r=s();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)p(r,r),2!==t&&4!==t&&d(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(w,w),d(b,b,w);const v=new Uint8Array(32);return function(t,e){const r=s(),n=s();for(let t=0;t<16;t++)n[t]=e[t];c(n),c(n),c(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,l(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(v,b),v}e.Au=function(t){const r=(0,n.randomBytes)(32,t),s=function(t){if(t.length!==e.KS)throw new Error(`x25519: seed must be ${e.KS} bytes`);const r=new Uint8Array(t);return{publicKey:(n=r,f(n,o)),secretKey:r};var n}(r);return(0,i.wipe)(r),s},e.gi=function(t,r,n=!1){if(t.length!==e.kz)throw new Error("X25519: incorrect secret key length");if(r.length!==e.kz)throw new Error("X25519: incorrect public key length");const i=f(t,r);if(n){let t=0;for(let e=0;e{"use strict";const n=r(610),i=r(4020),s=r(500),o=r(2806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=f(r[t],e);else n[t]=f(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=p,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},926:(t,e,r)=>{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){const t=n();return t.subtle||t.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=n,e.getSubtleCrypto=i,e.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},8618:(t,e,r)=>{"use strict";var n=r(4155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=i,e.isNode=s,e.isBrowser=function(){return!i()&&!s()}},1468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(926),e),n.__exportStar(r(8618),e)},432:(t,e,r)=>{"use strict";r.r(e),r.d(e,{EthereumProvider:()=>Xc,OPTIONAL_EVENTS:()=>$c,OPTIONAL_METHODS:()=>Uc,REQUIRED_EVENTS:()=>Dc,REQUIRED_METHODS:()=>Lc,default:()=>Yc});var n={};r.r(n),r.d(n,{identity:()=>L});var i={};r.r(i),r.d(i,{base2:()=>U});var s={};r.r(s),r.d(s,{base8:()=>D});var o={};r.r(o),r.d(o,{base10:()=>$});var a={};r.r(a),r.d(a,{base16:()=>F,base16upper:()=>z});var c={};r.r(c),r.d(c,{base32:()=>H,base32hex:()=>G,base32hexpad:()=>Z,base32hexpadupper:()=>J,base32hexupper:()=>K,base32pad:()=>q,base32padupper:()=>V,base32upper:()=>W,base32z:()=>Q});var l={};r.r(l),r.d(l,{base36:()=>Y,base36upper:()=>X});var u={};r.r(u),r.d(u,{base58btc:()=>tt,base58flickr:()=>et});var h={};r.r(h),r.d(h,{base64:()=>rt,base64pad:()=>nt,base64url:()=>it,base64urlpad:()=>st});var d={};r.r(d),r.d(d,{base256emoji:()=>lt});var p={};r.r(p),r.d(p,{sha256:()=>It,sha512:()=>Pt});var f={};r.r(f),r.d(f,{identity:()=>Tt});var m={};r.r(m),r.d(m,{code:()=>Rt,decode:()=>jt,encode:()=>Bt,name:()=>Nt});var g={};r.r(g),r.d(g,{code:()=>$t,decode:()=>zt,encode:()=>Ft,name:()=>Dt});var y=r(7187),w=r.n(y),b=r(5501),v=r(512),E=r(1416),x=r(3294),_=r(7664);function A(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function k(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?A(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function S(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const r=k(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return A(r)}const C=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var p=s-i;p!==s&&0===o[p];)p++;for(var f=new Uint8Array(n+(s-p)),m=n;p!==s;)f[m++]=o[p++];return f}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,p=o-1;(0!==h||d>>0,l[p]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var f=o-n;f!==o&&0===l[f];)f++;for(var m=c.repeat(r);f{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")});class I{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class P{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return T(this,t)}}class O{constructor(t){this.decoders=t}or(t){return T(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const T=(t,e)=>new O({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class N{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new I(t,e,r),this.decoder=new P(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const R=({name:t,prefix:e,encode:r,decode:n})=>new N(t,e,r,n),B=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=C(r,e);return R({prefix:t,name:e,encode:n,decode:t=>M(i(t))})},j=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>R({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),L=R({prefix:"\0",name:"identity",encode:t=>{return e=t,(new TextDecoder).decode(e);var e},decode:t=>(t=>(new TextEncoder).encode(t))(t)}),U=j({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),D=j({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),$=B({prefix:"9",name:"base10",alphabet:"0123456789"}),F=j({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),z=j({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),H=j({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),W=j({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),q=j({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),V=j({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),G=j({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=j({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Z=j({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),J=j({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Q=j({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Y=B({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),X=B({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),tt=B({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),et=B({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),rt=j({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),nt=j({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),it=j({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),st=j({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ot=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),at=ot.reduce(((t,e,r)=>(t[r]=e,t)),[]),ct=ot.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),lt=R({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+at[e]),"")},decode:function(t){const e=[];for(const r of t){const t=ct[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var ut=Math.pow(2,31),ht=Math.pow(2,7),dt=Math.pow(2,14),pt=Math.pow(2,21),ft=Math.pow(2,28),mt=Math.pow(2,35),gt=Math.pow(2,42),yt=Math.pow(2,49),wt=Math.pow(2,56),bt=Math.pow(2,63);const vt=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=ut;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},Et=function(t){return t(vt(t,e,r),e),_t=t=>Et(t),At=(t,e)=>{const r=e.byteLength,n=_t(t),i=n+_t(r),s=new Uint8Array(i+r);return xt(t,s,0),xt(r,s,n),s.set(e,i),new kt(t,r,e,s)};class kt{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const St=({name:t,code:e,encode:r})=>new Ct(t,e,r);class Ct{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?At(this.code,e):e.then((t=>At(this.code,t)))}throw Error("Unknown type, must be binary type")}}const Mt=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),It=St({name:"sha2-256",code:18,encode:Mt("SHA-256")}),Pt=St({name:"sha2-512",code:19,encode:Mt("SHA-512")}),Ot=M,Tt={code:0,name:"identity",encode:Ot,digest:t=>At(0,Ot(t))},Nt="raw",Rt=85,Bt=t=>M(t),jt=t=>M(t),Lt=new TextEncoder,Ut=new TextDecoder,Dt="json",$t=512,Ft=t=>Lt.encode(JSON.stringify(t)),zt=t=>JSON.parse(Ut.decode(t));class Ht{constructor(t,e,r,n){this.code=e,this.version=t,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:cid_hidden,byteLength:cid_hidden,code:readonly,version:readonly,multihash:readonly,bytes:readonly,_baseCache:cid_hidden,asCID:cid_hidden})}toV0(){if(0===this.version)return this;{const{code:t,multihash:e}=this;if(t!==DAG_PB_CODE)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==SHA_256_CODE)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Ht.createV0(e)}}toV1(){switch(this.version){case 0:{const{code:t,digest:e}=this.multihash,r=Digest.create(t,e);return Ht.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&Digest.equals(this.multihash,t.multihash)}toString(t){const{bytes:e,version:r,_baseCache:n}=this;return 0===r?toStringV0(e,n,t||base58btc.encoder):toStringV1(e,n,t||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return deprecate(/^0\.0/,IS_CID_DEPRECATION),!(!t||!t[cidSymbol]&&t.asCID!==t)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof Ht)return t;if(null!=t&&t.asCID===t){const{version:e,code:r,multihash:n,bytes:i}=t;return new Ht(e,r,n,i||encodeCID(e,r,n.bytes))}if(null!=t&&!0===t[cidSymbol]){const{version:e,multihash:r,code:n}=t,i=Digest.decode(r);return Ht.create(e,n,i)}return null}static create(t,e,r){if("number"!=typeof e)throw new Error("String codecs are no longer supported");switch(t){case 0:if(e!==DAG_PB_CODE)throw new Error(`Version 0 CID must use dag-pb (code: ${DAG_PB_CODE}) block encoding`);return new Ht(t,e,r,r.bytes);case 1:{const n=encodeCID(t,e,r.bytes);return new Ht(t,e,r,n)}default:throw new Error("Invalid version")}}static createV0(t){return Ht.create(0,DAG_PB_CODE,t)}static createV1(t,e){return Ht.create(1,t,e)}static decode(t){const[e,r]=Ht.decodeFirst(t);if(r.length)throw new Error("Incorrect length");return e}static decodeFirst(t){const e=Ht.inspectBytes(t),r=e.size-e.multihashSize,n=coerce(t.subarray(r,r+e.multihashSize));if(n.byteLength!==e.multihashSize)throw new Error("Incorrect length");const i=n.subarray(e.multihashSize-e.digestSize),s=new Digest.Digest(e.multihashCode,e.digestSize,i,n);return[0===e.version?Ht.createV0(s):Ht.createV1(e.codec,s),t.subarray(e.size)]}static inspectBytes(t){const e=()=>{const[e,r]=varint.decode(t.subarray(0));return e};let r=e(),n=DAG_PB_CODE;if(18===r||1===r&&e(),0!==r&&1!==r)throw new RangeError(`Invalid CID version ${r}`);const i=e(),s=e(),o=0+s;return{version:r,codec:n,multihashCode:i,digestSize:s,multihashSize:o-0,size:o}}static parse(t,e){const[r,n]=parseCIDtoBytes(t,e),i=Ht.decode(n);return i._baseCache.set(r,t),i}}Symbol.for("@ipld/js-cid/CID");const Wt={...n,...i,...s,...o,...a,...c,...l,...u,...h,...d};function qt(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const Vt=qt("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),Gt=qt("ascii","a",(t=>{let e="a";for(let r=0;r{const e=k((t=t.substring(1)).length);for(let r=0;r{const t=new Map;return{name:"memory",options:{},hasItem:e=>t.has(e),getItem:e=>t.get(e)??null,getItemRaw:e=>t.get(e)??null,setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys:()=>Array.from(t.keys()),clear(){t.clear()},dispose(){t.clear()}}};function ye(t,e,r){return t.watch?t.watch(((t,n)=>e(t,r+n))):()=>{}}async function we(t){"function"==typeof t.dispose&&await le(t.dispose)}function be(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function ve(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=be(r);return(t,r)=>n.then((n=>r(n.transaction(e,t).objectStore(e))))}let Ee;function xe(){return Ee||(Ee=ve("keyval-store","keyval")),Ee}function _e(t,e=xe()){return e("readonly",(e=>be(e.get(t))))}function Ae(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return(t=>{const e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,((t,e)=>"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e))})(t)}catch(e){return t}}function ke(t){return"string"==typeof t?t:(e=t,JSON.stringify(e,((t,e)=>"bigint"==typeof e?e.toString()+"n":e))||"");var e}var Se=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",r=t=>e+t;let n;return t.dbName&&t.storeName&&(n=ve(t.dbName,t.storeName)),{name:"idb-keyval",options:t,hasItem:async t=>!(typeof await _e(r(t),n)>"u"),getItem:async t=>await _e(r(t),n)??null,setItem:(t,e)=>function(t,e,r=xe()){return r("readwrite",(r=>(r.put(e,t),be(r.transaction))))}(r(t),e,n),removeItem:t=>function(t,e=xe()){return e("readwrite",(e=>(e.delete(t),be(e.transaction))))}(r(t),n),getKeys:()=>function(t=xe()){return t("readonly",(t=>{if(t.getAllKeys)return be(t.getAllKeys());const e=[];return function(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},be(t.transaction)}(t,(t=>e.push(t.key))).then((()=>e))}))}(n),clear:()=>function(t=xe()){return t("readwrite",(t=>(t.clear(),be(t.transaction))))}(n)}};class Ce{constructor(){this.indexedDb=function(t={}){const e={mounts:{"":t.driver||ge()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const r of e.mountpoints)if(t.startsWith(r))return{base:r,relativeKey:t.slice(r.length),driver:e.mounts[r]};return{base:"",relativeKey:t,driver:e.mounts[""]}},n=(t,r)=>e.mountpoints.filter((e=>e.startsWith(t)||r&&t.startsWith(e))).map((r=>({relativeBase:t.length>r.length?t.slice(r.length):void 0,mountpoint:r,driver:e.mounts[r]}))),i=(t,r)=>{if(e.watching){r=pe(r);for(const n of e.watchListeners)n(t,r)}},s=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},o=(t,e,n)=>{const i=new Map,s=t=>{let e=i.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},i.set(t.base,e)),e};for(const n of t){const t="string"==typeof n,i=pe(t?n:n.key),o=t?void 0:n.value,a=t||!n.options?e:{...e,...n.options},c=r(i);s(c).items.push({key:i,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...i.values()].map((t=>n(t)))).then((t=>t.flat()))},a={hasItem(t,e={}){t=pe(t);const{relativeKey:n,driver:i}=r(t);return le(i.hasItem,n,e)},getItem(t,e={}){t=pe(t);const{relativeKey:n,driver:i}=r(t);return le(i.getItem,n,e).then((t=>ae(t)))},getItems:(t,e)=>o(t,e,(t=>t.driver.getItems?le(t.driver.getItems,t.items.map((t=>({key:t.relativeKey,options:t.options}))),e).then((e=>e.map((e=>({key:fe(t.base,e.key),value:ae(e.value)}))))):Promise.all(t.items.map((e=>le(t.driver.getItem,e.relativeKey,e.options).then((t=>({key:e.key,value:ae(t)})))))))),getItemRaw(t,e={}){t=pe(t);const{relativeKey:n,driver:i}=r(t);return i.getItemRaw?le(i.getItemRaw,n,e):le(i.getItem,n,e).then((t=>function(t){return"string"!=typeof t?t:t.startsWith(de)?(he(),ce.from(t.slice(de.length),"base64")):t}(t)))},async setItem(t,e,n={}){if(void 0===e)return a.removeItem(t);t=pe(t);const{relativeKey:s,driver:o}=r(t);o.setItem&&(await le(o.setItem,s,ue(e),n),o.watch||i("update",t))},async setItems(t,e){await o(t,e,(async t=>{t.driver.setItems&&await le(t.driver.setItems,t.items.map((t=>({key:t.relativeKey,value:ue(t.value),options:t.options}))),e),t.driver.setItem&&await Promise.all(t.items.map((e=>le(t.driver.setItem,e.relativeKey,ue(e.value),e.options))))}))},async setItemRaw(t,e,n={}){if(void 0===e)return a.removeItem(t,n);t=pe(t);const{relativeKey:s,driver:o}=r(t);if(o.setItemRaw)await le(o.setItemRaw,s,e,n);else{if(!o.setItem)return;await le(o.setItem,s,function(t){if("string"==typeof t)return t;he();const e=ce.from(t).toString("base64");return de+e}(e),n)}o.watch||i("update",t)},async removeItem(t,e={}){"boolean"==typeof e&&(e={removeMeta:e}),t=pe(t);const{relativeKey:n,driver:s}=r(t);s.removeItem&&(await le(s.removeItem,n,e),(e.removeMeta||e.removeMata)&&await le(s.removeItem,n+"$",e),s.watch||i("remove",t))},async getMeta(t,e={}){"boolean"==typeof e&&(e={nativeOnly:e}),t=pe(t);const{relativeKey:n,driver:i}=r(t),s=Object.create(null);if(i.getMeta&&Object.assign(s,await le(i.getMeta,n,e)),!e.nativeOnly){const t=await le(i.getItem,n+"$",e).then((t=>ae(t)));t&&"object"==typeof t&&("string"==typeof t.atime&&(t.atime=new Date(t.atime)),"string"==typeof t.mtime&&(t.mtime=new Date(t.mtime)),Object.assign(s,t))}return s},setMeta(t,e,r={}){return this.setItem(t+"$",e,r)},removeMeta(t,e={}){return this.removeItem(t+"$",e)},async getKeys(t,e={}){t=me(t);const r=n(t,!0);let i=[];const s=[];for(const t of r){const r=(await le(t.driver.getKeys,t.relativeBase,e)).map((e=>t.mountpoint+pe(e))).filter((t=>!i.some((e=>t.startsWith(e)))));s.push(...r),i=[t.mountpoint,...i.filter((e=>!e.startsWith(t.mountpoint)))]}return t?s.filter((e=>e.startsWith(t)&&!e.endsWith("$"))):s.filter((t=>!t.endsWith("$")))},async clear(t,e={}){t=me(t),await Promise.all(n(t,!1).map((async t=>{if(t.driver.clear)return le(t.driver.clear,t.relativeBase,e);if(t.driver.removeItem){const r=await t.driver.getKeys(t.relativeBase||"",e);return Promise.all(r.map((r=>t.driver.removeItem(r,e))))}})))},async dispose(){await Promise.all(Object.values(e.mounts).map((t=>we(t))))},watch:async t=>(await(async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await ye(e.mounts[t],i,t)}})(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter((e=>e!==t)),0===e.watchListeners.length&&await s()}),async unwatch(){e.watchListeners=[],await s()},mount(t,r){if((t=me(t))&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort(((t,e)=>e.length-t.length))),e.mounts[t]=r,e.watching&&Promise.resolve(ye(r,i,t)).then((r=>{e.unwatch[t]=r})).catch(console.error),a},async unmount(t,r=!0){(t=me(t))&&e.mounts[t]&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),r&&await we(e.mounts[t]),e.mountpoints=e.mountpoints.filter((e=>e!==t)),delete e.mounts[t])},getMount(t=""){t=pe(t)+":";const e=r(t);return{driver:e.driver,base:e.base}},getMounts:(t="",e={})=>(t=pe(t),n(t,e.parents).map((t=>({driver:t.driver,base:t.mountpoint}))))};return a}({driver:Se({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((t=>[t.key,t.value]))}async getItem(t){const e=await this.indexedDb.getItem(t);if(null!==e)return e}async setItem(t,e){await this.indexedDb.setItem(t,ke(e))}async removeItem(t){await this.indexedDb.removeItem(t)}}var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},Ie={exports:{}};function Pe(t){var e;return[t[0],Ae(null!=(e=t[1])?e:"")]}!function(){let t;function e(){}t=e,t.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){const t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof Me<"u"&&Me.localStorage?Ie.exports=Me.localStorage:typeof window<"u"&&window.localStorage?Ie.exports=window.localStorage:Ie.exports=new e}();class Oe{constructor(){this.localStorage=Ie.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(Pe)}async getItem(t){const e=this.localStorage.getItem(t);if(null!==e)return Ae(e)}async setItem(t,e){this.localStorage.setItem(t,ke(e))}async removeItem(t){this.localStorage.removeItem(t)}}class Te{constructor(){this.initialized=!1,this.setInitialized=t=>{this.storage=t,this.initialized=!0};const t=new Oe;this.storage=t;try{(async(t,e,r)=>{const n="wc_storage_version",i=await e.getItem(n);if(i&&i>=1)return void r(e);const s=await t.getKeys();if(!s.length)return void r(e);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){const n=await t.getItem(r);await e.setItem(r,n),o.push(r)}}await e.setItem(n,1),r(e),(async(t,e)=>{e.length&&e.forEach((async e=>{await t.removeItem(e)}))})(t,o)})(t,new Ce,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(t){return await this.initialize(),this.storage.getItem(t)}async setItem(t,e){return await this.initialize(),this.storage.setItem(t,e)}async removeItem(t){return await this.initialize(),this.storage.removeItem(t)}async initialize(){this.initialized||await new Promise((t=>{const e=setInterval((()=>{this.initialized&&(clearInterval(e),t())}),20)}))}}var Ne=r(772),Re=r(9107),Be=r(8200);class je extends Be.q{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}}class Le extends Be.q{constructor(t,e){super(),this.core=t,this.logger=e,this.records=new Map}}class Ue{constructor(t,e){this.logger=t,this.core=e}}class De extends Be.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class $e extends Be.q{constructor(t){super()}}class Fe{constructor(t,e,r,n){this.core=t,this.logger=e,this.name=r}}class ze extends Be.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class He extends Be.q{constructor(t,e){super(),this.core=t,this.logger=e}}class We{constructor(t,e){this.projectId=t,this.logger=e}}var qe=r(1050);const Ve="base64url",Ge="did",Ke="key",Ze="base58btc";function Je(t){return Jt(Zt(ke(t),"utf8"),Ve)}function Qe(t){const e="z"+Jt(S([Zt("K36",Ze),t]),Ze);return[Ge,Ke,e].join(":")}function Ye(t=(0,E.randomBytes)(32)){return qe._w(t)}r(3014);var Xe=r(4155),tr=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,s=e.length;i"u")throw new Error("missing sender public key");if(typeof t?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function Er(t){return 1===t.type&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}var xr=Object.defineProperty,_r=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Sr=(t,e,r)=>e in t?xr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Cr=(t,e)=>{for(var r in e||(e={}))Ar.call(e,r)&&Sr(t,r,e[r]);if(_r)for(var r of _r(e))kr.call(e,r)&&Sr(t,r,e[r]);return t};const Mr="react-native",Ir="browser",Pr="js";function Or(){return typeof hr<"u"&&typeof hr.versions<"u"&&typeof hr.versions.node<"u"}function Tr(){return!(0,Yt.getDocument)()&&!!(0,Yt.getNavigator)()&&"ReactNative"===navigator.product}function Nr(){return!Or()&&!!(0,Yt.getNavigator)()}function Rr(){return Tr()?Mr:Or()?"node":Nr()?Ir:"unknown"}function Br(t,e,n){const i=function(){if(Rr()===Mr&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:t,Version:e}=r.g.Platform;return[t,e].join("-")}const t=e?lr(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new sr:"undefined"!=typeof navigator?lr(navigator.userAgent):void 0!==Xe&&Xe.version?new rr(Xe.version.slice(1)):null;var e;if(null===t)return"unknown";const n=t.os?t.os.replace(" ","").toLowerCase():"unknown";return"browser"===t.type?[n,t.name,t.version].join("-"):[n,t.version].join("-")}(),s=function(){var t;const e=Rr();return e===Ir?[e,(null==(t=(0,Yt.getLocation)())?void 0:t.host)||"unknown"].join(":"):e}();return[[t,e].join("-"),[Pr,n].join("-"),i,s].join("/")}function jr(t){return Object.fromEntries(t.entries())}function Lr(t){return new Map(Object.entries(t))}function Ur(t,e,r){return new Promise((async(n,i)=>{const s=setTimeout((()=>i(new Error(r))),e);try{n(await t)}catch(t){i(t)}clearTimeout(s)}))}function Dr(t,e){if("string"==typeof e&&e.startsWith(`${t}:`))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function $r(t,e){return(0,Qt.fromMiliseconds)((e||Date.now())+(0,Qt.toMiliseconds)(t))}function Fr(t){return Date.now()>=(0,Qt.toMiliseconds)(t)}function zr(t,e){return`${t}${e?`:${e}`:""}`}function Hr(t){return t?.relay||{protocol:"irn"}}function Wr(t){const e=te[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var qr=Object.defineProperty,Vr=Object.getOwnPropertySymbols,Gr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Zr=(t,e,r)=>e in t?qr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;function Jr(t,e="-"){const r={},n="relay"+e;return Object.keys(t).forEach((e=>{if(e.startsWith(n)){const i=e.replace(n,""),s=t[e];r[i]=s}})),r}function Qr(t){const e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),r=-1!==t.indexOf("?")?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split("@"),s=typeof r<"u"?t.substring(r):"",o=ur.parse(s);return{protocol:n,topic:Yr(i[0]),version:parseInt(i[1],10),symKey:o.symKey,relay:Jr(o)}}function Yr(t){return t.startsWith("//")?t.substring(2):t}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Xr={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},tn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function en(t,e){const{message:r,code:n}=tn[t];return{message:e?`${r} ${e}`:r,code:n}}function rn(t,e){const{message:r,code:n}=Xr[t];return{message:e?`${r} ${e}`:r,code:n}}function nn(t){return typeof t>"u"}function sn(t,e){return!(!e||!nn(t))||"string"==typeof t&&!!t.trim().length}function on(t){return typeof t<"u"&&null!==typeof t}function an(){const t=Rr();return new Promise((e=>{switch(t){case Ir:e(Nr()&&navigator?.onLine);break;case Mr:e(async function(){return!(Tr()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo)||(await(null==r.g?void 0:r.g.NetInfo.fetch()))?.isConnected}());break;default:e(!0)}}))}const cn="INTERNAL_ERROR",ln="SERVER_ERROR",un=[-32700,-32600,-32601,-32602,-32603],hn={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[cn]:{code:-32603,message:"Internal error"},[ln]:{code:-32e3,message:"Server error"}},dn=ln;function pn(t){return Object.keys(hn).includes(t)?hn[t]:hn[dn]}function fn(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var mn=r(1468);function gn(t=3){return Date.now()*Math.pow(10,t)+Math.floor(Math.random()*Math.pow(10,t))}function yn(t=6){return BigInt(gn(t))}function wn(t,e,r){return{id:r||gn(),jsonrpc:"2.0",method:t,params:e}}function bn(t,e){return{id:t,jsonrpc:"2.0",result:e}}function vn(t,e,r){return{id:t,jsonrpc:"2.0",error:En(e,r)}}function En(t,e){return void 0===t?pn(cn):("string"==typeof t&&(t=Object.assign(Object.assign({},pn(ln)),{message:t})),void 0!==e&&(t.data=e),r=t.code,un.includes(r)&&(t=function(t){return Object.values(hn).find((e=>e.code===t))||hn[dn]}(t.code)),t);var r}class xn{}class _n extends xn{constructor(){super()}}class An extends _n{constructor(t){super()}}function kn(t,e){const r=function(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==r&&new RegExp(e).test(r)}function Sn(t){return kn(t,"^https?:")}function Cn(t){return kn(t,"^wss?:")}function Mn(t){return"object"==typeof t&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function In(t){return Mn(t)&&"method"in t}function Pn(t){return Mn(t)&&(On(t)||Tn(t))}function On(t){return"result"in t}function Tn(t){return"error"in t}class Nn extends An{constructor(t){super(t),this.events=new y.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async request(t,e){return this.requestStrict(wn(t.method,t.params||[],t.id||yn().toString()),e)}async requestStrict(t,e){return new Promise((async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(t){n(t)}this.events.on(`${t.id}`,(t=>{Tn(t)?n(t.error):r(t.result)}));try{await this.connection.send(t,e)}catch(t){n(t)}}))}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Pn(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&3e3===t.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof t&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(t=>this.onPayload(t))),this.connection.on("close",(t=>this.onClose(t))),this.connection.on("error",(t=>this.events.emit("error",t))),this.connection.on("register_error",(t=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const Rn=t=>t.split("?")[0],Bn=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(7026);class jn{constructor(t){if(this.url=t,this.events=new y.EventEmitter,this.registering=!1,!Cn(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){return new Promise(((t,e)=>{typeof this.socket>"u"?e(new Error("Connection already closed")):(this.socket.onclose=e=>{this.onClose(e),t()},this.socket.close())}))}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(ke(t))}catch(e){this.onError(t.id,e)}}register(t=this.url){if(!Cn(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return e(new Error("WebSocket connection is missing or invalid"));t(this.socket)}))}))}return this.url=t,this.registering=!0,new Promise(((e,n)=>{const i=new URLSearchParams(t).get("origin"),s=(0,mn.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:(a=t,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},o=new Bn(t,[],s);var a;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?o.onerror=t=>{const e=t;n(this.emitError(e.error))}:o.on("error",(t=>{n(this.emitError(t))})),o.onopen=()=>{this.onOpen(o),e(o)}}))}onOpen(t){t.onmessage=t=>this.onPayload(t),t.onclose=t=>this.onClose(t),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const e="string"==typeof t.data?Ae(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=vn(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return fn(t,Rn(e),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(t){const e=this.parseError(new Error(t?.message||`WebSocket connection failed for host: ${Rn(this.url)}`));return this.events.emit("register_error",e),e}}var Ln=r(2307),Un=r.n(Ln),Dn=r(4155),$n=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var p=s-i;p!==s&&0===o[p];)p++;for(var f=new Uint8Array(n+(s-p)),m=n;p!==s;)f[m++]=o[p++];return f}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,p=o-1;(0!==h||d>>0,l[p]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var f=o-n;f!==o&&0===l[f];)f++;for(var m=c.repeat(r);f{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")};class zn{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Hn{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return qn(this,t)}}class Wn{constructor(t){this.decoders=t}or(t){return qn(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const qn=(t,e)=>new Wn({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class Vn{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new zn(t,e,r),this.decoder=new Hn(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Gn=({name:t,prefix:e,encode:r,decode:n})=>new Vn(t,e,r,n),Kn=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=$n(r,e);return Gn({prefix:t,name:e,encode:n,decode:t=>Fn(i(t))})},Zn=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>Gn({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),Jn=Gn({prefix:"\0",name:"identity",encode:t=>(t=>(new TextDecoder).decode(t))(t),decode:t=>(t=>(new TextEncoder).encode(t))(t)});var Qn=Object.freeze({__proto__:null,identity:Jn});const Yn=Zn({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Xn=Object.freeze({__proto__:null,base2:Yn});const ti=Zn({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var ei=Object.freeze({__proto__:null,base8:ti});const ri=Kn({prefix:"9",name:"base10",alphabet:"0123456789"});var ni=Object.freeze({__proto__:null,base10:ri});const ii=Zn({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),si=Zn({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var oi=Object.freeze({__proto__:null,base16:ii,base16upper:si});const ai=Zn({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ci=Zn({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),li=Zn({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ui=Zn({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),hi=Zn({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),di=Zn({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),pi=Zn({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),fi=Zn({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),mi=Zn({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var gi=Object.freeze({__proto__:null,base32:ai,base32upper:ci,base32pad:li,base32padupper:ui,base32hex:hi,base32hexupper:di,base32hexpad:pi,base32hexpadupper:fi,base32z:mi});const yi=Kn({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),wi=Kn({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var bi=Object.freeze({__proto__:null,base36:yi,base36upper:wi});const vi=Kn({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ei=Kn({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var xi=Object.freeze({__proto__:null,base58btc:vi,base58flickr:Ei});const _i=Zn({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ai=Zn({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),ki=Zn({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Si=Zn({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Ci=Object.freeze({__proto__:null,base64:_i,base64pad:Ai,base64url:ki,base64urlpad:Si});const Mi=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Ii=Mi.reduce(((t,e,r)=>(t[r]=e,t)),[]),Pi=Mi.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Oi=Gn({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+Ii[e]),"")},decode:function(t){const e=[];for(const r of t){const t=Pi[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var Ti=Object.freeze({__proto__:null,base256emoji:Oi}),Ni=Math.pow(2,31),Ri=Math.pow(2,7),Bi=Math.pow(2,14),ji=Math.pow(2,21),Li=Math.pow(2,28),Ui=Math.pow(2,35),Di=Math.pow(2,42),$i=Math.pow(2,49),Fi=Math.pow(2,56),zi=Math.pow(2,63),Hi=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=Ni;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},Wi=function(t){return t(Hi(t,e,r),e),Vi=t=>Wi(t),Gi=(t,e)=>{const r=e.byteLength,n=Vi(t),i=n+Vi(r),s=new Uint8Array(i+r);return qi(t,s,0),qi(r,s,n),s.set(e,i),new Ki(t,r,e,s)};class Ki{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const Zi=({name:t,code:e,encode:r})=>new Ji(t,e,r);class Ji{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?Gi(this.code,e):e.then((t=>Gi(this.code,t)))}throw Error("Unknown type, must be binary type")}}const Qi=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),Yi=Zi({name:"sha2-256",code:18,encode:Qi("SHA-256")}),Xi=Zi({name:"sha2-512",code:19,encode:Qi("SHA-512")});Object.freeze({__proto__:null,sha256:Yi,sha512:Xi});const ts=Fn,es={code:0,name:"identity",encode:ts,digest:t=>Gi(0,ts(t))};Object.freeze({__proto__:null,identity:es}),new TextEncoder,new TextDecoder;const rs={...Qn,...Xn,...ei,...ni,...oi,...gi,...bi,...xi,...Ci,...Ti};function ns(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function is(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const ss=is("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),os=is("ascii","a",(t=>{let e="a";for(let r=0;r{const e=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?ns(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length);for(let r=0;r{if(!this.initialized){const t=await this.getKeyChain();typeof t<"u"&&(this.keychain=t),this.initialized=!0}},this.has=t=>(this.isInitialized(),this.keychain.has(t)),this.set=async(t,e)=>{this.isInitialized(),this.keychain.set(t,e),await this.persist()},this.get=t=>{this.isInitialized();const e=this.keychain.get(t);if(typeof e>"u"){const{message:e}=en("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e},this.del=async t=>{this.isInitialized(),this.keychain.delete(t),await this.persist()},this.core=t,this.logger=(0,Re.generateChildLogger)(e,this.name)}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,jr(t))}async getKeyChain(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Lr(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Ws{constructor(t,e,r){this.core=t,this.logger=e,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=t=>(this.isInitialized(),this.keychain.has(t)),this.getClientId=async()=>(this.isInitialized(),Qe(Ye(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();const t=function(){const t=_.Au();return{privateKey:Jt(t.secretKey,pr),publicKey:Jt(t.publicKey,pr)}}();return this.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=async t=>{this.isInitialized();const e=Ye(await this.getClientSeed()),r=gr(),n=ds;return await async function(t,e,r,n,i=(0,Qt.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:Qe(n.publicKey),sub:t,aud:e,iat:i,exp:i+r},a=Zt([Je((c={header:s,payload:o}).header),Je(c.payload)].join("."),"utf8");var c;return function(t){return[Je(t.header),Je(t.payload),(e=t.signature,Jt(e,Ve))].join(".");var e}({header:s,payload:o,signature:qe.Xx(n.secretKey,a)})}(r,t,n,e)},this.generateSharedKey=(t,e,r)=>{this.isInitialized();const n=function(t,e){const r=_.gi(Zt(t,pr),Zt(e,pr),!0);return Jt(new v.t(x.mE,r).expand(32),pr)}(this.getPrivateKey(t),e);return this.setSymKey(n,r)},this.setSymKey=async(t,e)=>{this.isInitialized();const r=e||function(t){return Jt((0,x.vp)(Zt(t,pr)),pr)}(t);return await this.keychain.set(r,t),r},this.deleteKeyPair=async t=>{this.isInitialized(),await this.keychain.del(t)},this.deleteSymKey=async t=>{this.isInitialized(),await this.keychain.del(t)},this.encode=async(t,e,r)=>{this.isInitialized();const n=vr(r),i=ke(e);if(Er(n)){const e=n.senderPublicKey,r=n.receiverPublicKey;t=await this.generateSharedKey(e,r)}const s=this.getSymKey(t),{type:o,senderPublicKey:a}=n;return function(t){const e=function(t){return Zt(`${t}`,dr)}(typeof t.type<"u"?t.type:0);if(1===wr(e)&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof t.senderPublicKey<"u"?Zt(t.senderPublicKey,pr):void 0,n=typeof t.iv<"u"?Zt(t.iv,pr):(0,E.randomBytes)(12);return function(t){if(1===wr(t.type)){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Jt(S([t.type,t.senderPublicKey,t.iv,t.sealed]),fr)}return Jt(S([t.type,t.iv,t.sealed]),fr)}({type:e,sealed:new b.OK(Zt(t.symKey,pr)).seal(n,Zt(t.message,mr)),iv:n,senderPublicKey:r})}({type:o,symKey:s,message:i,senderPublicKey:a})},this.decode=async(t,e,r)=>{this.isInitialized();const n=function(t,e){const r=br(t);return vr({type:wr(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?Jt(r.senderPublicKey,pr):void 0,receiverPublicKey:e?.receiverPublicKey})}(e,r);if(Er(n)){const e=n.receiverPublicKey,r=n.senderPublicKey;t=await this.generateSharedKey(e,r)}try{const r=function(t){const e=new b.OK(Zt(t.symKey,pr)),{sealed:r,iv:n}=br(t.encoded),i=e.open(n,r);if(null===i)throw new Error("Failed to decrypt");return Jt(i,mr)}({symKey:this.getSymKey(t),encoded:e});return Ae(r)}catch(e){this.logger.error(`Failed to decode message from topic: '${t}', clientId: '${await this.getClientId()}'`),this.logger.error(e)}},this.getPayloadType=t=>wr(br(t).type),this.getPayloadSenderPublicKey=t=>{const e=br(t);return e.senderPublicKey?Jt(e.senderPublicKey,pr):void 0},this.core=t,this.logger=(0,Re.generateChildLogger)(e,this.name),this.keychain=r||new Hs(this.core,this.logger)}get context(){return(0,Re.getLoggerContext)(this.logger)}async setPrivateKey(t,e){return await this.keychain.set(t,e),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(hs)}catch{t=gr(),await this.keychain.set(hs,t)}return function(t,e="utf8"){const r=as[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):ns(globalThis.Buffer.from(t,"utf-8"))}(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class qs extends Ue{constructor(t,e){super(t,e),this.logger=t,this.core=e,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=ls,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const t=await this.getRelayerMessages();typeof t<"u"&&(this.messages=t),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}finally{this.initialized=!0}}},this.set=async(t,e)=>{this.isInitialized();const r=yr(e);let n=this.messages.get(t);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=e,this.messages.set(t,n),await this.persist()),r},this.get=t=>{this.isInitialized();let e=this.messages.get(t);return typeof e>"u"&&(e={}),e},this.has=(t,e)=>(this.isInitialized(),typeof this.get(t)[yr(e)]<"u"),this.del=async t=>{this.isInitialized(),this.messages.delete(t),await this.persist()},this.logger=(0,Re.generateChildLogger)(t,this.name),this.core=e}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,jr(t))}async getRelayerMessages(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Lr(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Vs extends De{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.events=new y.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,Qt.toMiliseconds)(Qt.TEN_SECONDS),this.needsTransportRestart=!1,this.publish=async(t,e,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}});try{const i=r?.ttl||ps,s=Hr(r),o=r?.prompt||!1,a=r?.tag||0,c=r?.id||yn().toString(),l={topic:t,message:e,opts:{ttl:i,relay:s,prompt:o,tag:a,id:c}},u=setTimeout((()=>this.queue.set(c,l)),this.publishTimeout);try{await await Ur(this.rpcPublish(t,e,i,s,o,a,c),this.publishTimeout,"Failed to publish payload, please try again."),this.removeRequestFromQueue(c),this.relayer.events.emit(Es,l)}catch(t){if(this.logger.debug("Publishing Payload stalled"),this.needsTransportRestart=!0,null!=(n=r?.internal)&&n.throwOnFailedPublish)throw this.removeRequestFromQueue(c),t;return}finally{clearTimeout(u)}this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(t),t}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.relayer=t,this.logger=(0,Re.generateChildLogger)(e,this.name),this.registerEventListeners()}get context(){return(0,Re.getLoggerContext)(this.logger)}rpcPublish(t,e,r,n,i,s,o){var a,c,l,u;const h={method:Wr(n.protocol).publish,params:{topic:t,message:e,ttl:r,prompt:i,tag:s},id:o};return nn(null==(a=h.params)?void 0:a.prompt)&&(null==(c=h.params)||delete c.prompt),nn(null==(l=h.params)?void 0:l.tag)&&(null==(u=h.params)||delete u.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.request(h)}removeRequestFromQueue(t){this.queue.delete(t)}checkQueue(){this.queue.forEach((async t=>{const{topic:e,message:r,opts:n}=t;await this.publish(e,r,n)}))}registerEventListeners(){this.relayer.core.heartbeat.on(Ne.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(vs);this.checkQueue()})),this.relayer.on(ys,(t=>{this.removeRequestFromQueue(t.id.toString())}))}}class Gs{constructor(){this.map=new Map,this.set=(t,e)=>{const r=this.get(t);this.exists(t,e)||this.map.set(t,[...r,e])},this.get=t=>this.map.get(t)||[],this.exists=(t,e)=>this.get(t).includes(e),this.delete=(t,e)=>{if(typeof e>"u")return void this.map.delete(t);if(!this.map.has(t))return;const r=this.get(t);if(!this.exists(t,e))return;const n=r.filter((t=>t!==e));n.length?this.map.set(t,n):this.map.delete(t)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var Ks=Object.defineProperty,Zs=Object.defineProperties,Js=Object.getOwnPropertyDescriptors,Qs=Object.getOwnPropertySymbols,Ys=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,to=(t,e,r)=>e in t?Ks(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,eo=(t,e)=>{for(var r in e||(e={}))Ys.call(e,r)&&to(t,r,e[r]);if(Qs)for(var r of Qs(e))Xs.call(e,r)&&to(t,r,e[r]);return t},ro=(t,e)=>Zs(t,Js(e));class no extends ze{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.subscriptions=new Map,this.topicMap=new Gs,this.events=new y.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=ls,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}});try{const r=Hr(e),n={topic:t,relay:r};this.pending.set(t,n);const i=await this.rpcSubscribe(t,r);return this.onSubscribe(i,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}}),i}catch(t){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(t),t}},this.unsubscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),typeof e?.id<"u"?await this.unsubscribeById(t,e.id,e):await this.unsubscribeByTopic(t,e)},this.isSubscribed=async t=>!!this.topics.includes(t)||await new Promise(((e,r)=>{const n=new Qt.Watch;n.start(this.pendingSubscriptionWatchLabel);const i=setInterval((()=>{!this.pending.has(t)&&this.topics.includes(t)&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),e(!0)),n.elapsed(this.pendingSubscriptionWatchLabel)>=Ps&&(clearInterval(i),n.stop(this.pendingSubscriptionWatchLabel),r(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1)),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=(0,Re.generateChildLogger)(e,this.name),this.clientId=""}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,e){let r=!1;try{r=this.getSubscription(t).topic===e}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(t,e){const r=this.topicMap.get(t);await Promise.all(r.map((async r=>await this.unsubscribeById(t,r,e))))}async unsubscribeById(t,e,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}});try{const n=Hr(r);await this.rpcUnsubscribe(t,e,n);const i=rn("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,e,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(t),t}}async rpcSubscribe(t,e){const r={method:Wr(e.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{await await Ur(this.relayer.request(r),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(vs)}return yr(t+this.clientId)}async rpcBatchSubscribe(t){if(!t.length)return;const e={method:Wr(t[0].relay.protocol).batchSubscribe,params:{topics:t.map((t=>t.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:e});try{return await await Ur(this.relayer.request(e),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(vs)}}rpcUnsubscribe(t,e,r){const n={method:Wr(r.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),this.relayer.request(n)}onSubscribe(t,e){this.setSubscription(t,ro(eo({},e),{id:t})),this.pending.delete(e.topic)}onBatchSubscribe(t){t.length&&t.forEach((t=>{this.setSubscription(t.id,eo({},t)),this.pending.delete(t.topic)}))}async onUnsubscribe(t,e,r){this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,r),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,e){this.subscriptions.has(t)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e))}addSubscription(t,e){this.subscriptions.set(t,eo({},e)),this.topicMap.set(e.topic,t),this.events.emit(Cs,e)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});const e=this.subscriptions.get(t);if(!e){const{message:e}=en("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}deleteSubscription(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});const r=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(r.topic,t),this.events.emit(Ms,ro(eo({},r),{reason:e}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}async reset(){if(this.cached.length){const t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let e=0;e"u"||!t.length)return;if(this.subscriptions.size){const{message:t}=en("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async batchSubscribe(t){if(!t.length)return;const e=await this.rpcBatchSubscribe(t);(function(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))})(e)&&this.onBatchSubscribe(e.map(((e,r)=>ro(eo({},t[r]),{id:e}))))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||this.relayer.transportExplicitlyClosed)return;const t=[];this.pending.forEach((e=>{t.push(e)})),await this.batchSubscribe(t)}registerEventListeners(){this.relayer.core.heartbeat.on(Ne.HEARTBEAT_EVENTS.pulse,(async()=>{await this.checkPending()})),this.relayer.on(ws,(async()=>{await this.onConnect()})),this.relayer.on(bs,(()=>{this.onDisconnect()})),this.events.on(Cs,(async t=>{const e=Cs;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()})),this.events.on(Ms,(async t=>{const e=Ms;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise((t=>{const e=setInterval((()=>{this.restartInProgress||(clearInterval(e),t())}),this.pollingInterval)}))}}var io=Object.defineProperty,so=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable,co=(t,e,r)=>e in t?io(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;class lo extends $e{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new y.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled"],this.hasExperiencedNetworkDisruption=!1,this.request=async t=>{this.logger.debug("Publishing Request Payload");try{return await this.toEstablishConnection(),await this.provider.request(t)}catch(t){throw this.logger.debug("Failed to Publish Request"),this.logger.error(t),t}},this.onPayloadHandler=t=>{this.onProviderPayload(t)},this.onConnectHandler=()=>{this.events.emit(ws)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.error(t),this.events.emit("relayer_error",t),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(xs,this.onPayloadHandler),this.provider.on(_s,this.onConnectHandler),this.provider.on(As,this.onDisconnectHandler),this.provider.on(ks,this.onProviderErrorHandler)},this.core=t.core,this.logger=typeof t.logger<"u"&&"string"!=typeof t.logger?(0,Re.generateChildLogger)(t.logger,this.name):(0,Re.pino)((0,Re.getDefaultLoggerOptions)({level:t.logger||"error"})),this.messages=new qs(this.logger,t.core),this.subscriber=new no(this,this.logger),this.publisher=new Vs(this,this.logger),this.relayUrl=t?.relayUrl||fs,this.projectId=t.projectId,this.bundleId=function(){var t;try{return Tr()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${ms}...`),await this.restartTransport(ms)}this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return(0,Re.getLoggerContext)(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(t,e,r){this.isInitialized(),await this.publisher.publish(t,e,r),await this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()})}async subscribe(t,e){var r;this.isInitialized();let n,i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"";if(i)return i;const s=e=>{e.topic===t&&(this.subscriber.off(Cs,s),n())};return await Promise.all([new Promise((t=>{n=t,this.subscriber.on(Cs,s)})),new Promise((async r=>{i=await this.subscriber.subscribe(t,e),r()}))]),i}async unsubscribe(t,e){this.isInitialized(),await this.subscriber.unsubscribe(t,e)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async transportClose(){this.transportExplicitlyClosed=!0,this.hasExperiencedNetworkDisruption&&this.connected?await Ur(this.provider.disconnect(),1e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.connected&&await this.provider.disconnect()}async transportOpen(t){if(this.transportExplicitlyClosed=!1,await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress){t&&t!==this.relayUrl&&(this.relayUrl=t,await this.transportClose(),await this.createProvider()),this.connectionAttemptInProgress=!0;try{await Promise.all([new Promise((t=>{if(!this.initialized)return t();this.subscriber.once(Is,(()=>{t()}))})),new Promise((async(t,e)=>{try{await Ur(this.provider.connect(),1e4,`Socket stalled when trying to connect to ${this.relayUrl}`)}catch(t){return void e(t)}t()}))])}catch(t){this.logger.error(t);const e=t;if(!this.isConnectionStalled(e.message))throw t;this.provider.events.emit(As)}finally{this.connectionAttemptInProgress=!1,this.hasExperiencedNetworkDisruption=!1}}}async restartTransport(t){await this.confirmOnlineStateOrThrow(),!this.connectionAttemptInProgress&&(this.relayUrl=t||this.relayUrl,await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await an())throw new Error("No internet connection detected. Please restart your network and try again.")}isConnectionStalled(t){return this.staleConnectionErrors.some((e=>t.includes(e)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const t=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Nn(new jn(function({protocol:t,version:e,relayUrl:r,sdkVersion:n,auth:i,projectId:s,useOnCloseEvent:o,bundleId:a}){const c=r.split("?"),l={auth:i,ua:Br(t,e,n),projectId:s,useOnCloseEvent:o||void 0,origin:a||void 0},u=function(t,e){let r=ur.parse(t);return r=Cr(Cr({},r),e),ur.stringify(r)}(c[1]||"",l);return c[0]+"?"+u}({sdkVersion:"2.10.6",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(t){const{topic:e,message:r}=t;await this.messages.set(e,r)}async shouldIgnoreMessageEvent(t){const{topic:e,message:r}=t;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(e))return this.logger.debug(`Ignoring message for non-subscribed topic ${e}`),!0;const n=this.messages.has(e,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),In(t)){if(!t.method.endsWith("_subscription"))return;const e=t.params,{topic:r,message:n,publishedAt:i}=e.data,s={topic:r,message:n,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((t,e)=>{for(var r in e||(e={}))oo.call(e,r)&&co(t,r,e[r]);if(so)for(var r of so(e))ao.call(e,r)&&co(t,r,e[r]);return t})({type:"event",event:e.id},s)),this.events.emit(e.id,s),await this.acknowledgePayload(t),await this.onMessageEvent(s)}else Pn(t)&&this.events.emit(ys,t)}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(gs,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){const e=bn(t.id,!0);await this.provider.connection.send(e)}unregisterProviderListeners(){this.provider.off(xs,this.onPayloadHandler),this.provider.off(_s,this.onConnectHandler),this.provider.off(As,this.onDisconnectHandler),this.provider.off(ks,this.onProviderErrorHandler)}async registerEventListeners(){this.events.on(vs,(()=>{this.restartTransport().catch((t=>this.logger.error(t)))}));let t=await an();!function(t){switch(Rr()){case Ir:!function(t){!Tr()&&Nr()&&(window.addEventListener("online",(()=>t(!0))),window.addEventListener("offline",(()=>t(!1))))}(t);break;case Mr:!function(t){Tr()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((e=>t(e?.isConnected)))}(t)}}((async e=>{this.initialized&&t!==e&&(t=e,e?await this.restartTransport().catch((t=>this.logger.error(t))):(this.hasExperiencedNetworkDisruption=!0,await this.transportClose().catch((t=>this.logger.error(t)))))}))}onProviderDisconnect(){this.events.emit(bs),this.attemptToReconnect()}attemptToReconnect(){this.transportExplicitlyClosed||(this.logger.info("attemptToReconnect called. Connecting..."),setTimeout((async()=>{await this.restartTransport().catch((t=>this.logger.error(t)))}),(0,Qt.toMiliseconds)(Ss)))}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}async toEstablishConnection(){if(await this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectionAttemptInProgress)return await new Promise((t=>{const e=setInterval((()=>{this.connected&&(clearInterval(e),t())}),this.connectionStatusPollingInterval)}));await this.restartTransport()}}}var uo=Object.defineProperty,ho=Object.getOwnPropertySymbols,po=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,mo=(t,e,r)=>e in t?uo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,go=(t,e)=>{for(var r in e||(e={}))po.call(e,r)&&mo(t,r,e[r]);if(ho)for(var r of ho(e))fo.call(e,r)&&mo(t,r,e[r]);return t};class yo extends Fe{constructor(t,e,r,n=ls,i){super(t,e,r,n),this.core=t,this.logger=e,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ls,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>{this.getKey&&null!==t&&!nn(t)?this.map.set(this.getKey(t),t):function(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}(t)?this.map.set(t.id,t):function(t){return t?.topic}(t)&&this.map.set(t.topic,t)})),this.cached=[],this.initialized=!0)},this.set=async(t,e)=>{this.isInitialized(),this.map.has(t)?await this.update(t,e):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),await this.persist())},this.get=t=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:t}),this.getData(t)),this.getAll=t=>(this.isInitialized(),t?this.values.filter((e=>Object.keys(t).every((r=>Un()(e[r],t[r]))))):this.values),this.update=async(t,e)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e});const r=go(go({},this.getData(t)),e);this.map.set(t,r),await this.persist()},this.delete=async(t,e)=>{this.isInitialized(),this.map.has(t)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),await this.persist())},this.logger=(0,Re.generateChildLogger)(e,this.name),this.storagePrefix=n,this.getKey=i}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){const e=this.map.get(t);if(!e){const{message:e}=en("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}async persist(){await this.setDataStore(this.values)}async restore(){try{const t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){const{message:t}=en("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class wo{constructor(t,e){this.core=t,this.logger=e,this.name="pairing",this.version="0.3",this.events=new(w()),this.initialized=!1,this.storagePrefix=ls,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:t})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...t])]},this.create=async()=>{this.isInitialized();const t=gr(),e=await this.core.crypto.setSymKey(t),r=$r(Qt.FIVE_MINUTES),n={protocol:"irn"},i={topic:e,expiry:r,relay:n,active:!1},s=function(t){return`${t.protocol}:${t.topic}@${t.version}?`+ur.stringify(((t,e)=>{for(var r in e||(e={}))Gr.call(e,r)&&Zr(t,r,e[r]);if(Vr)for(var r of Vr(e))Kr.call(e,r)&&Zr(t,r,e[r]);return t})({symKey:t.symKey},function(t,e="-"){const r={};return Object.keys(t).forEach((n=>{const i="relay"+e+n;t[n]&&(r[i]=t[n])})),r}(t.relay)))}({protocol:this.core.protocol,version:this.core.version,topic:e,symKey:t,relay:n});return await this.pairings.set(e,i),await this.core.relayer.subscribe(e),this.core.expirer.set(e,r),{topic:e,uri:s}},this.pair=async t=>{this.isInitialized(),this.isValidPair(t);const{topic:e,symKey:r,relay:n}=Qr(t.uri);let i;if(this.pairings.keys.includes(e)&&(i=this.pairings.get(e),i.active))throw new Error(`Pairing already exists: ${e}. Please try again with a new connection URI.`);const s=$r(Qt.FIVE_MINUTES),o={topic:e,relay:n,expiry:s,active:!1};return await this.pairings.set(e,o),this.core.expirer.set(e,s),t.activatePairing&&await this.activate({topic:e}),this.events.emit(Ts,o),this.core.crypto.keychain.has(e)||(await this.core.crypto.setSymKey(r,e),await this.core.relayer.subscribe(e,{relay:n})),o},this.activate=async({topic:t})=>{this.isInitialized();const e=$r(Qt.THIRTY_DAYS);await this.pairings.update(t,{active:!0,expiry:e}),this.core.expirer.set(t,e)},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.pairings.keys.includes(e)){const t=await this.sendRequest(e,"wc_pairingPing",{}),{done:r,resolve:n,reject:i}=function(t=Qt.FIVE_MINUTES,e){const r=(0,Qt.toMiliseconds)(t||Qt.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}();this.events.once(zr("pairing_ping",t),(({error:t})=>{t?i(t):n()})),await r()}},this.updateExpiry=async({topic:t,expiry:e})=>{this.isInitialized(),await this.pairings.update(t,{expiry:e})},this.updateMetadata=async({topic:t,metadata:e})=>{this.isInitialized(),await this.pairings.update(t,{peerMetadata:e})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.pairings.keys.includes(e)&&(await this.sendRequest(e,"wc_pairingDelete",rn("USER_DISCONNECTED")),await this.deletePairing(e))},this.sendRequest=async(t,e,r)=>{const n=wn(e,r),i=await this.core.crypto.encode(t,n),s=Os[e].req;return this.core.history.set(t,n),this.core.relayer.publish(t,i,s),n.id},this.sendResult=async(t,e,r)=>{const n=bn(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Os[s.request.method].res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.sendError=async(t,e,r)=>{const n=vn(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Os[s.request.method]?Os[s.request.method].res:Os.unregistered_method.res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.deletePairing=async(t,e)=>{await this.core.relayer.unsubscribe(t),await Promise.all([this.pairings.delete(t,rn("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)])},this.cleanup=async()=>{const t=this.pairings.getAll().filter((t=>Fr(t.expiry)));await Promise.all(t.map((t=>this.deletePairing(t.topic))))},this.onRelayEventRequest=t=>{const{topic:e,payload:r}=t;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(e,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(e,r);default:return this.onUnknownRpcMethodRequest(e,r)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.core.history.get(e,r.id)).request.method;return"wc_pairingPing"===n?this.onPairingPingResponse(e,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult(r,t,!0),this.events.emit("pairing_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onPairingPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{On(e)?this.events.emit(zr("pairing_ping",r),{}):Tn(e)&&this.events.emit(zr("pairing_ping",r),{error:e.error})}),500)},this.onPairingDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t}),await this.deletePairing(t),this.events.emit("pairing_delete",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodRequest=async(t,e)=>{const{id:r,method:n}=e;try{if(this.registeredMethods.includes(n))return;const e=rn("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,t,e),this.logger.error(e)}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodResponse=t=>{this.registeredMethods.includes(t)||this.logger.error(rn("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=t=>{var e;if(!on(t)){const{message:e}=en("MISSING_OR_INVALID",`pair() params: ${t}`);throw new Error(e)}if(!function(t){if(sn(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}(t.uri)){const{message:e}=en("MISSING_OR_INVALID",`pair() uri: ${t.uri}`);throw new Error(e)}const r=Qr(t.uri);if(null==(e=r?.relay)||!e.protocol){const{message:t}=en("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(t)}if(null==r||!r.symKey){const{message:t}=en("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(t)}},this.isValidPing=async t=>{if(!on(t)){const{message:e}=en("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidDisconnect=async t=>{if(!on(t)){const{message:e}=en("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidPairingTopic=async t=>{if(!sn(t,!1)){const{message:e}=en("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.pairings.keys.includes(t)){const{message:e}=en("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if(Fr(this.pairings.get(t).expiry)){await this.deletePairing(t);const{message:e}=en("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}},this.core=t,this.logger=(0,Re.generateChildLogger)(e,this.name),this.pairings=new yo(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,Re.getLoggerContext)(this.logger)}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(gs,(async t=>{const{topic:e,message:r}=t;if(!this.pairings.keys.includes(e)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(e,r);try{In(n)?(this.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Pn(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.core.history.delete(e,n.id))}catch(t){this.logger.error(t)}}))}registerExpirerEvents(){this.core.expirer.on(Us,(async t=>{const{topic:e}=function(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}(t.target);e&&this.pairings.keys.includes(e)&&(await this.deletePairing(e,!0),this.events.emit("pairing_expire",{topic:e}))}))}}class bo extends Le{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.records=new Map,this.events=new y.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ls,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.records.set(t.id,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(t,e,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:t,request:e,chainId:r}),this.records.has(e.id))return;const n={id:e.id,topic:t,request:{method:e.method,params:e.params||null},chainId:r,expiry:$r(Qt.THIRTY_DAYS)};this.records.set(n.id,n),this.events.emit(Ns,n)},this.resolve=async t=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:t}),!this.records.has(t.id))return;const e=await this.getRecord(t.id);typeof e.response>"u"&&(e.response=Tn(t)?{error:t.error}:{result:t.result},this.records.set(e.id,e),this.events.emit(Rs,e))},this.get=async(t,e)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),await this.getRecord(e)),this.delete=(t,e)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:e}),this.values.forEach((r=>{if(r.topic===t){if(typeof e<"u"&&r.id!==e)return;this.records.delete(r.id),this.events.emit(Bs,r)}}))},this.exists=async(t,e)=>(this.isInitialized(),!!this.records.has(e)&&(await this.getRecord(e)).topic===t),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,Re.generateChildLogger)(e,this.name)}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const t=[];return this.values.forEach((e=>{if(typeof e.response<"u")return;const r={topic:e.topic,request:wn(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(r)})),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();const e=this.records.get(t);if(!e){const{message:e}=en("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{const t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){const{message:t}=en("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(Ns,(t=>{const e=Ns;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(Rs,(t=>{const e=Rs;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.events.on(Bs,(t=>{const e=Bs;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t}),this.persist()})),this.core.heartbeat.on(Ne.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.records.forEach((t=>{(0,Qt.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.delete(t.topic,t.id))}))}catch(t){this.logger.warn(t)}}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class vo extends He{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.expirations=new Map,this.events=new y.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=ls,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.expirations.set(t.target,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=t=>{try{const e=this.formatTarget(t);return typeof this.getExpiration(e)<"u"}catch{return!1}},this.set=(t,e)=>{this.isInitialized();const r=this.formatTarget(t),n={target:r,expiry:e};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(js,{target:r,expiration:n})},this.get=t=>{this.isInitialized();const e=this.formatTarget(t);return this.getExpiration(e)},this.del=t=>{if(this.isInitialized(),this.has(t)){const e=this.formatTarget(t),r=this.getExpiration(e);this.expirations.delete(e),this.events.emit(Ls,{target:e,expiration:r})}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=(0,Re.generateChildLogger)(e,this.name)}get context(){return(0,Re.getLoggerContext)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if("string"==typeof t)return function(t){return Dr("topic",t)}(t);if("number"==typeof t)return function(t){return Dr("id",t)}(t);const{message:e}=en("UNKNOWN_TYPE","Target type: "+typeof t);throw new Error(e)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}async restore(){try{const t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){const{message:t}=en("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){const e=this.expirations.get(t);if(!e){const{message:e}=en("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}checkExpiry(t,e){const{expiry:r}=e;(0,Qt.toMiliseconds)(r)-Date.now()<=0&&this.expire(t,e)}expire(t,e){this.expirations.delete(t),this.events.emit(Us,{target:t,expiration:e})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((t,e)=>this.checkExpiry(e,t)))}registerEventListeners(){this.core.heartbeat.on(Ne.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(js,(t=>{const e=js;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(Us,(t=>{const e=Us;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(Ls,(t=>{const e=Ls;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=en("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Eo extends We{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.name=Ds,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async t=>{if(this.verifyDisabled||Tr()||!Nr())return;const e=this.getVerifyUrl(t?.verifyUrl);this.verifyUrl!==e&&this.removeIframe(),this.verifyUrl=e;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t)}if(!this.initialized){this.removeIframe(),this.verifyUrl=Fs;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t),this.verifyDisabled=!0}}},this.register=async t=>{this.initialized?this.sendPost(t.attestationId):(this.addToQueue(t.attestationId),await this.init())},this.resolve=async t=>{if(this.isDevEnv)return"";const e=this.getVerifyUrl(t?.verifyUrl);let r;try{r=await this.fetchAttestation(t.attestationId,e)}catch(n){this.logger.info(`failed to resolve attestation: ${t.attestationId} from url: ${e}`),this.logger.info(n),r=await this.fetchAttestation(t.attestationId,Fs)}return r},this.fetchAttestation=async(t,e)=>{this.logger.info(`resolving attestation: ${t} from url: ${e}`);const r=this.startAbortTimer(2*Qt.ONE_SECOND),n=await fetch(`${e}/attestation/${t}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=t=>{this.queue.push(t)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((t=>this.sendPost(t))),this.queue=[])},this.sendPost=t=>{var e;try{if(!this.iframe)return;null==(e=this.iframe.contentWindow)||e.postMessage(t,"*"),this.logger.info(`postMessage sent: ${t} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let t;const e=r=>{"verify_ready"===r.data&&(this.initialized=!0,this.processQueue(),window.removeEventListener("message",e),t())};await Promise.race([new Promise((r=>{if(document.getElementById(Ds))return r();window.addEventListener("message",e);const n=document.createElement("iframe");n.id=Ds,n.src=`${this.verifyUrl}/${this.projectId}`,n.style.display="none",document.body.append(n),this.iframe=n,t=r})),new Promise(((t,r)=>setTimeout((()=>{window.removeEventListener("message",e),r("verify iframe load timeout")}),(0,Qt.toMiliseconds)(Qt.FIVE_SECONDS))))])},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=t=>{let e=t||$s;return zs.includes(e)||(this.logger.info(`verify url: ${e}, not included in trusted list, assigning default: ${$s}`),e=$s),e},this.logger=(0,Re.generateChildLogger)(e,this.name),this.verifyUrl=$s,this.abortController=new AbortController,this.isDevEnv=Or()&&Dn.env.IS_VITEST}get context(){return(0,Re.getLoggerContext)(this.logger)}startAbortTimer(t){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,Qt.toMiliseconds)(t))}}var xo=Object.defineProperty,_o=Object.getOwnPropertySymbols,Ao=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,So=(t,e,r)=>e in t?xo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Co=(t,e)=>{for(var r in e||(e={}))Ao.call(e,r)&&So(t,r,e[r]);if(_o)for(var r of _o(e))ko.call(e,r)&&So(t,r,e[r]);return t};class Mo extends je{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=cs,this.events=new y.EventEmitter,this.initialized=!1,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.projectId=t?.projectId,this.relayUrl=t?.relayUrl||fs,this.customStoragePrefix=null!=t&&t.customStoragePrefix?`:${t.customStoragePrefix}`:"";const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,Re.pino)((0,Re.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.logger=(0,Re.generateChildLogger)(e,this.name),this.heartbeat=new Ne.HeartBeat,this.crypto=new Ws(this,this.logger,t?.keychain),this.history=new bo(this,this.logger),this.expirer=new vo(this,this.logger),this.storage=null!=t&&t.storage?t.storage:new Te(Co(Co({},us),t?.storageOptions)),this.relayer=new lo({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new wo(this,this.logger),this.verify=new Eo(this.projectId||"",this.logger)}static async init(t){const e=new Mo(t);await e.initialize();const r=await e.crypto.getClientId();return await e.storage.setItem("WALLETCONNECT_CLIENT_ID",r),e}get context(){return(0,Re.getLoggerContext)(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}}const Io=Mo;class Po{constructor(t){this.opts=t,this.protocol="wc",this.version=2}}class Oo{constructor(t){this.client=t}}r(7338);var To=r(4155);function No(t,e){return t.includes(":")?[t]:e.chains||[]}function Ro(t){return Jt((0,x.vp)(Zt(t,"utf8")),"base16")}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Bo="react-native",jo="browser";function Lo(){return typeof To<"u"&&typeof To.versions<"u"&&typeof To.versions.node<"u"}function Uo(){return!Lo()&&!!(0,Yt.getNavigator)()}function Do(){return!(0,Yt.getDocument)()&&(0,Yt.getNavigator)()&&"ReactNative"===navigator.product?Bo:Lo()?"node":Uo()?jo:"unknown"}function $o(t,e){return t.filter((t=>e.includes(t))).length===t.length}function Fo(t=Qt.FIVE_MINUTES,e){const r=(0,Qt.toMiliseconds)(t||Qt.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}function zo(t,e){return(0,Qt.fromMiliseconds)((e||Date.now())+(0,Qt.toMiliseconds)(t))}function Ho(t){return Date.now()>=(0,Qt.toMiliseconds)(t)}function Wo(t,e){return`${t}${e?`:${e}`:""}`}function qo(t){const e=[];return t.forEach((t=>{const[r,n]=t.split(":");e.push(`${r}:${n}`)})),e}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Vo={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Go={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ko(t,e){const{message:r,code:n}=Go[t];return{message:e?`${r} ${e}`:r,code:n}}function Zo(t,e){const{message:r,code:n}=Vo[t];return{message:e?`${r} ${e}`:r,code:n}}function Jo(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}function Qo(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function Yo(t){return typeof t>"u"}function Xo(t,e){return!(!e||!Yo(t))||"string"==typeof t&&!!t.trim().length}function ta(t,e){return!(!e||!Yo(t))||"number"==typeof t&&!isNaN(t)}function ea(t){return!(!Xo(t,!1)||!t.includes(":"))&&2===t.split(":").length}function ra(t){let e=!0;return Jo(t)?t.length&&(e=t.every((t=>Xo(t,!1)))):e=!1,e}function na(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return ra(t?.methods)?ra(t?.events)||(r=Zo("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):r=Zo("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),r}(t,`${e}, namespace`);n&&(r=n)})),r}function ia(t,e){let r=null;if(t&&Qo(t)){const n=na(t,e);n&&(r=n);const i=function(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return Jo(t)?t.forEach((t=>{r||function(t){if(Xo(t,!1)&&t.includes(":")){const e=t.split(":");if(3===e.length){const t=e[0]+":"+e[1];return!!e[2]&&ea(t)}}return!1}(t)||(r=Zo("UNSUPPORTED_ACCOUNTS",`${e}, account ${t} should be a string and conform to "namespace:chainId:address" format`))})):r=Zo("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}(t?.accounts,`${e} namespace`);n&&(r=n)})),r}(t,e);i&&(r=i)}else r=Ko("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return r}function sa(t){return Xo(t.protocol,!0)}function oa(t){return typeof t<"u"&&null!==typeof t}function aa(t,e){return!(!ea(e)||!function(t){const e=[];return Object.values(t).forEach((t=>{e.push(...qo(t.accounts))})),e}(t).includes(e))}function ca(t,e,r){let n=null;const i=function(t){const e={};return Object.keys(t).forEach((r=>{var n;r.includes(":")?e[r]=t[r]:null==(n=t[r].chains)||n.forEach((n=>{e[n]={methods:t[r].methods,events:t[r].events}}))})),e}(t),s=function(t){const e={};return Object.keys(t).forEach((r=>{r.includes(":")?e[r]=t[r]:qo(t[r].accounts)?.forEach((n=>{e[n]={accounts:t[r].accounts.filter((t=>t.includes(`${n}:`))),methods:t[r].methods,events:t[r].events}}))})),e}(e),o=Object.keys(i),a=Object.keys(s),c=la(Object.keys(t)),l=la(Object.keys(e)),u=c.filter((t=>!l.includes(t)));return u.length&&(n=Ko("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(e).toString()}`)),$o(o,a)||(n=Ko("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(e).forEach((t=>{if(!t.includes(":")||n)return;const i=qo(e[t].accounts);i.includes(t)||(n=Ko("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n Required: ${t}\n Approved: ${i.toString()}`))})),o.forEach((t=>{n||($o(i[t].methods,s[t].methods)?$o(i[t].events,s[t].events)||(n=Ko("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${t}`)):n=Ko("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${t}`))})),n}function la(t){return[...new Set(t.map((t=>t.includes(":")?t.split(":")[0]:t)))]}const ua={};class ha{static get(t){return ua[t]}static set(t,e){ua[t]=e}static delete(t){delete ua[t]}}const da="client",pa=`wc@2:${da}:`,fa=da,ma="WALLETCONNECT_DEEPLINK_CHOICE",ga="Proposal expired",ya=Qt.SEVEN_DAYS,wa={wc_sessionPropose:{req:{ttl:Qt.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:Qt.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:Qt.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:Qt.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:Qt.ONE_DAY,prompt:!1,tag:1104},res:{ttl:Qt.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:Qt.ONE_DAY,prompt:!1,tag:1106},res:{ttl:Qt.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:Qt.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:Qt.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:Qt.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:Qt.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:Qt.ONE_DAY,prompt:!1,tag:1112},res:{ttl:Qt.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:Qt.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:Qt.THIRTY_SECONDS,prompt:!1,tag:1115}}},ba={min:Qt.FIVE_MINUTES,max:Qt.SEVEN_DAYS},va="IDLE",Ea="ACTIVE",xa=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"];var _a=Object.defineProperty,Aa=Object.defineProperties,ka=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,Ca=Object.prototype.hasOwnProperty,Ma=Object.prototype.propertyIsEnumerable,Ia=(t,e,r)=>e in t?_a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pa=(t,e)=>{for(var r in e||(e={}))Ca.call(e,r)&&Ia(t,r,e[r]);if(Sa)for(var r of Sa(e))Ma.call(e,r)&&Ia(t,r,e[r]);return t},Oa=(t,e)=>Aa(t,ka(e));class Ta extends Oo{constructor(t){super(t),this.name="engine",this.events=new(w()),this.initialized=!1,this.ignoredPayloadTypes=[1],this.requestQueue={state:va,queue:[]},this.sessionRequestQueue={state:va,queue:[]},this.requestQueueDelay=Qt.ONE_SECOND,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(wa)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,Qt.toMiliseconds)(this.requestQueueDelay)))},this.connect=async t=>{await this.isInitialized();const e=Oa(Pa({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(e);const{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:s,relays:o}=e;let a,c=r,l=!1;if(c&&(l=this.client.core.pairing.pairings.get(c).active),!c||!l){const{topic:t,uri:e}=await this.client.core.pairing.create();c=t,a=e}const u=await this.client.core.crypto.generateKeyPair(),h=Pa({requiredNamespaces:n,optionalNamespaces:i,relays:o??[{protocol:"irn"}],proposer:{publicKey:u,metadata:this.client.metadata}},s&&{sessionProperties:s}),{reject:d,resolve:p,done:f}=Fo(Qt.FIVE_MINUTES,ga);if(this.events.once(Wo("session_connect"),(async({error:t,session:e})=>{if(t)d(t);else if(e){e.self.publicKey=u;const t=Oa(Pa({},e),{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces});await this.client.session.set(e.topic,t),await this.setExpiry(e.topic,e.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:e.peer.metadata}),p(t)}})),!c){const{message:t}=Ko("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(t)}const m=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:h}),g=zo(Qt.FIVE_MINUTES);return await this.setProposal(m,Pa({id:m,expiry:g},h)),{uri:a,approval:f}},this.pair=async t=>(await this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{await this.isInitialized(),await this.isValidApprove(t);const{id:e,relayProtocol:r,namespaces:n,sessionProperties:i}=t,s=this.client.proposal.get(e);let{pairingTopic:o,proposer:a,requiredNamespaces:c,optionalNamespaces:l}=s;o=o||"",Qo(c)||(c=function(t,e){const r=ia(t,"approve()");if(r)throw new Error(r.message);const n={};for(const[e,r]of Object.entries(t))n[e]={methods:r.methods,events:r.events,chains:r.accounts.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))};return n}(n));const u=await this.client.core.crypto.generateKeyPair(),h=a.publicKey,d=await this.client.core.crypto.generateSharedKey(u,h);o&&e&&(await this.client.core.pairing.updateMetadata({topic:o,metadata:a.metadata}),await this.sendResult({id:e,topic:o,result:{relay:{protocol:r??"irn"},responderPublicKey:u}}),await this.client.proposal.delete(e,Zo("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:o}));const p=Pa({relay:{protocol:r??"irn"},namespaces:n,requiredNamespaces:c,optionalNamespaces:l,pairingTopic:o,controller:{publicKey:u,metadata:this.client.metadata},expiry:zo(ya)},i&&{sessionProperties:i});await this.client.core.relayer.subscribe(d),await this.sendRequest({topic:d,method:"wc_sessionSettle",params:p,throwOnFailedPublish:!0});const f=Oa(Pa({},p),{topic:d,pairingTopic:o,acknowledged:!1,self:p.controller,peer:{publicKey:a.publicKey,metadata:a.metadata},controller:u});return await this.client.session.set(d,f),await this.setExpiry(d,zo(ya)),{topic:d,acknowledged:()=>new Promise((t=>setTimeout((()=>t(this.client.session.get(d))),500)))}},this.reject=async t=>{await this.isInitialized(),await this.isValidReject(t);const{id:e,reason:r}=t,{pairingTopic:n}=this.client.proposal.get(e);n&&(await this.sendError(e,n,r),await this.client.proposal.delete(e,Zo("USER_DISCONNECTED")))},this.update=async t=>{await this.isInitialized(),await this.isValidUpdate(t);const{topic:e,namespaces:r}=t,n=await this.sendRequest({topic:e,method:"wc_sessionUpdate",params:{namespaces:r}}),{done:i,resolve:s,reject:o}=Fo();return this.events.once(Wo("session_update",n),(({error:t})=>{t?o(t):s()})),await this.client.session.update(e,{namespaces:r}),{acknowledged:i}},this.extend=async t=>{await this.isInitialized(),await this.isValidExtend(t);const{topic:e}=t,r=await this.sendRequest({topic:e,method:"wc_sessionExtend",params:{}}),{done:n,resolve:i,reject:s}=Fo();return this.events.once(Wo("session_extend",r),(({error:t})=>{t?s(t):i()})),await this.setExpiry(e,zo(ya)),{acknowledged:n}},this.request=async t=>{await this.isInitialized(),await this.isValidRequest(t);const{chainId:e,request:n,topic:i,expiry:s}=t,o=gn(),{done:a,resolve:c,reject:l}=Fo(s,"Request expired. Please try again.");return this.events.once(Wo("session_request",o),(({error:t,result:e})=>{t?l(t):c(e)})),await Promise.all([new Promise((async t=>{await this.sendRequest({clientRpcId:o,topic:i,method:"wc_sessionRequest",params:{request:n,chainId:e},expiry:s,throwOnFailedPublish:!0}).catch((t=>l(t))),this.client.events.emit("session_request_sent",{topic:i,request:n,chainId:e,id:o}),t()})),new Promise((async t=>{const e=await async function(t,e){try{return await t.getItem(e)||(Uo()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}(this.client.core.storage,ma);(async function({id:t,topic:e,wcDeepLink:n}){try{if(!n)return;let i=("string"==typeof n?JSON.parse(n):n)?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const s=`${i}/wc?requestId=${t}&sessionTopic=${e}`,o=Do();o===jo?s.startsWith("https://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===Bo&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}})({id:o,topic:i,wcDeepLink:e}),t()})),a()]).then((t=>t[2]))},this.respond=async t=>{await this.isInitialized(),await this.isValidRespond(t);const{topic:e,response:r}=t,{id:n}=r;On(r)?await this.sendResult({id:n,topic:e,result:r.result,throwOnFailedPublish:!0}):Tn(r)&&await this.sendError(n,e,r.error),this.cleanupAfterResponse(t)},this.ping=async t=>{await this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.client.session.keys.includes(e)){const t=await this.sendRequest({topic:e,method:"wc_sessionPing",params:{}}),{done:r,resolve:n,reject:i}=Fo();this.events.once(Wo("session_ping",t),(({error:t})=>{t?i(t):n()})),await r()}else this.client.core.pairing.pairings.keys.includes(e)&&await this.client.core.pairing.ping({topic:e})},this.emit=async t=>{await this.isInitialized(),await this.isValidEmit(t);const{topic:e,event:r,chainId:n}=t;await this.sendRequest({topic:e,method:"wc_sessionEvent",params:{event:r,chainId:n}})},this.disconnect=async t=>{await this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.client.session.keys.includes(e)?(await this.sendRequest({topic:e,method:"wc_sessionDelete",params:Zo("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession(e)):await this.client.core.pairing.disconnect({topic:e})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter((e=>function(t,e){const{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r);let s=!0;return!!$o(i,n)&&(n.forEach((e=>{const{accounts:n,methods:i,events:o}=t.namespaces[e],a=qo(n),c=r[e];$o(No(e,c),a)&&$o(c.methods,i)&&$o(c.events,o)||(s=!1)})),s)}(e,t)))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.cleanupDuplicatePairings=async t=>{if(t.pairingTopic)try{const e=this.client.core.pairing.pairings.get(t.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&r.topic&&r.topic!==e.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((t=>this.client.core.pairing.disconnect({topic:t.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async(t,e)=>{const{self:r}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),this.client.session.delete(t,Zo("USER_DISCONNECTED")),this.client.core.crypto.keychain.has(r.publicKey)&&await this.client.core.crypto.deleteKeyPair(r.publicKey),this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteSymKey(t),e||this.client.core.expirer.del(t),this.client.core.storage.removeItem(ma).catch((t=>this.client.logger.warn(t)))},this.deleteProposal=async(t,e)=>{await Promise.all([this.client.proposal.delete(t,Zo("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,e,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((e=>e.id!==t)),r&&(this.sessionRequestQueue.state=va)},this.setExpiry=async(t,e)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:e}),this.client.core.expirer.set(t,e)},this.setProposal=async(t,e)=>{await this.client.proposal.set(t,e),this.client.core.expirer.set(t,e.expiry)},this.setPendingSessionRequest=async t=>{const e=wa.wc_sessionRequest.req.ttl,{id:r,topic:n,params:i,verifyContext:s}=t;await this.client.pendingRequest.set(r,{id:r,topic:n,params:i,verifyContext:s}),e&&this.client.core.expirer.set(r,zo(e))},this.sendRequest=async t=>{const{topic:e,method:r,params:n,expiry:i,relayRpcId:s,clientRpcId:o,throwOnFailedPublish:a}=t,c=wn(r,n,o);if(Uo()&&xa.includes(r)){const t=Ro(JSON.stringify(c));this.client.core.verify.register({attestationId:t})}const l=await this.client.core.crypto.encode(e,c),u=wa[r].req;return i&&(u.ttl=i),s&&(u.id=s),this.client.core.history.set(e,c),a?(u.internal=Oa(Pa({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(e,l,u)):this.client.core.relayer.publish(e,l,u).catch((t=>this.client.logger.error(t))),c.id},this.sendResult=async t=>{const{id:e,topic:r,result:n,throwOnFailedPublish:i}=t,s=bn(e,n),o=await this.client.core.crypto.encode(r,s),a=await this.client.core.history.get(r,e),c=wa[a.request.method].res;i?(c.internal=Oa(Pa({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,o,c)):this.client.core.relayer.publish(r,o,c).catch((t=>this.client.logger.error(t))),await this.client.core.history.resolve(s)},this.sendError=async(t,e,r)=>{const n=vn(t,r),i=await this.client.core.crypto.encode(e,n),s=await this.client.core.history.get(e,t),o=wa[s.request.method].res;this.client.core.relayer.publish(e,i,o),await this.client.core.history.resolve(n)},this.cleanup=async()=>{const t=[],e=[];this.client.session.getAll().forEach((e=>{Ho(e.expiry)&&t.push(e.topic)})),this.client.proposal.getAll().forEach((t=>{Ho(t.expiry)&&e.push(t.id)})),await Promise.all([...t.map((t=>this.deleteSession(t))),...e.map((t=>this.deleteProposal(t)))])},this.onRelayEventRequest=async t=>{this.requestQueue.queue.push(t),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==Ea){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Ea;const t=this.requestQueue.queue.shift();if(t)try{this.processRequest(t),await new Promise((t=>setTimeout(t,300)))}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=va}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=t=>{const{topic:e,payload:r}=t,n=r.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeRequest(e,r);case"wc_sessionSettle":return this.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return this.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return this.onSessionExtendRequest(e,r);case"wc_sessionPing":return this.onSessionPingRequest(e,r);case"wc_sessionDelete":return this.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return this.onSessionRequest(e,r);case"wc_sessionEvent":return this.onSessionEventRequest(e,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.client.core.history.get(e,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(e,r);case"wc_sessionSettle":return this.onSessionSettleResponse(e,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(e,r);case"wc_sessionExtend":return this.onSessionExtendResponse(e,r);case"wc_sessionPing":return this.onSessionPingResponse(e,r);case"wc_sessionRequest":return this.onSessionRequestResponse(e,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=t=>{const{topic:e}=t,{message:r}=Ko("MISSING_OR_INVALID",`Decoded payload on topic ${e} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.onSessionProposeRequest=async(t,e)=>{const{params:r,id:n}=e;try{this.isValidConnect(Pa({},e.params));const i=zo(Qt.FIVE_MINUTES),s=Pa({id:n,pairingTopic:t,expiry:i},r);await this.setProposal(n,s);const o=Ro(JSON.stringify(e)),a=await this.getVerifyContext(o,s.proposer.metadata);this.client.events.emit("session_proposal",{id:n,params:s,verifyContext:a})}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.onSessionProposeResponse=async(t,e)=>{const{id:r}=e;if(On(e)){const{result:n}=e;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const i=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const s=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s});const o=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:o});const a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:a});const c=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:t})}else Tn(e)&&(await this.client.proposal.delete(r,Zo("USER_DISCONNECTED")),this.events.emit(Wo("session_connect"),{error:e.error}))},this.onSessionSettleRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidSessionSettleRequest(n);const{relay:r,controller:i,expiry:s,namespaces:o,requiredNamespaces:a,optionalNamespaces:c,sessionProperties:l,pairingTopic:u}=e.params,h=Pa({topic:t,relay:r,expiry:s,namespaces:o,acknowledged:!0,pairingTopic:u,requiredNamespaces:a,optionalNamespaces:c,controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l});await this.sendResult({id:e.id,topic:t,result:!0}),this.events.emit(Wo("session_connect"),{session:h}),this.cleanupDuplicatePairings(h)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionSettleResponse=async(t,e)=>{const{id:r}=e;On(e)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(Wo("session_approve",r),{})):Tn(e)&&(await this.client.session.delete(t,Zo("USER_DISCONNECTED")),this.events.emit(Wo("session_approve",r),{error:e.error}))},this.onSessionUpdateRequest=async(t,e)=>{const{params:r,id:n}=e;try{const e=`${t}_session_update`,i=ha.get(e);if(i&&this.isRequestOutOfSync(i,n))return void this.client.logger.info(`Discarding out of sync request - ${n}`);this.isValidUpdate(Pa({topic:t},r)),await this.client.session.update(t,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:t,result:!0}),this.client.events.emit("session_update",{id:n,topic:t,params:r}),ha.set(e,n)}catch(e){await this.sendError(n,t,e),this.client.logger.error(e)}},this.isRequestOutOfSync=(t,e)=>parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3)),this.onSessionUpdateResponse=(t,e)=>{const{id:r}=e;On(e)?this.events.emit(Wo("session_update",r),{}):Tn(e)&&this.events.emit(Wo("session_update",r),{error:e.error})},this.onSessionExtendRequest=async(t,e)=>{const{id:r}=e;try{this.isValidExtend({topic:t}),await this.setExpiry(t,zo(ya)),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_extend",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionExtendResponse=(t,e)=>{const{id:r}=e;On(e)?this.events.emit(Wo("session_extend",r),{}):Tn(e)&&this.events.emit(Wo("session_extend",r),{error:e.error})},this.onSessionPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult({id:r,topic:t,result:!0}),this.client.events.emit("session_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{On(e)?this.events.emit(Wo("session_ping",r),{}):Tn(e)&&this.events.emit(Wo("session_ping",r),{error:e.error})}),500)},this.onSessionDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t,reason:e.params}),await Promise.all([new Promise((e=>{this.client.core.relayer.once(Es,(async()=>{e(await this.deleteSession(t))}))})),this.sendResult({id:r,topic:t,result:!0})]),this.client.events.emit("session_delete",{id:r,topic:t})}catch(t){this.client.logger.error(t)}},this.onSessionRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidRequest(Pa({topic:t},n));const e=Ro(JSON.stringify(wn("wc_sessionRequest",n,r))),i=this.client.session.get(t),s={id:r,topic:t,params:n,verifyContext:await this.getVerifyContext(e,i.peer.metadata)};await this.setPendingSessionRequest(s),this.addSessionRequestToSessionRequestQueue(s),this.processSessionRequestQueue()}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.onSessionRequestResponse=(t,e)=>{const{id:r}=e;On(e)?this.events.emit(Wo("session_request",r),{result:e.result}):Tn(e)&&this.events.emit(Wo("session_request",r),{error:e.error})},this.onSessionEventRequest=async(t,e)=>{const{id:r,params:n}=e;try{const e=`${t}_session_event_${n.event.name}`,i=ha.get(e);if(i&&this.isRequestOutOfSync(i,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(Pa({topic:t},n)),this.client.events.emit("session_event",{id:r,topic:t,params:n}),ha.set(e,r)}catch(e){await this.sendError(r,t,e),this.client.logger.error(e)}},this.addSessionRequestToSessionRequestQueue=t=>{this.sessionRequestQueue.queue.push(t)},this.cleanupAfterResponse=t=>{this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=va,this.processSessionRequestQueue()}),(0,Qt.toMiliseconds)(this.requestQueueDelay))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Ea)return void this.client.logger.info("session request queue is already active.");const t=this.sessionRequestQueue.queue[0];if(t)try{this.sessionRequestQueue.state=Ea,this.client.events.emit("session_request",t)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.onPairingCreated=t=>{if(t.active)return;const e=this.client.proposal.getAll().find((e=>e.pairingTopic===t.topic));e&&this.onSessionProposeRequest(t.topic,wn("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))},this.isValidConnect=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(e)}const{pairingTopic:e,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:s}=t;if(Yo(e)||await this.isValidPairingTopic(e),!function(t,e){let r=!1;return t?t&&Jo(t)&&t.length&&t.forEach((t=>{r=sa(t)})):r=!0,r}(s)){const{message:t}=Ko("MISSING_OR_INVALID",`connect() relays: ${s}`);throw new Error(t)}!Yo(r)&&0!==Qo(r)&&this.validateNamespaces(r,"requiredNamespaces"),!Yo(n)&&0!==Qo(n)&&this.validateNamespaces(n,"optionalNamespaces"),Yo(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(t,e)=>{const r=function(t,e,r){let n=null;if(t&&Qo(t)){const i=na(t,e);i&&(n=i);const s=function(t,e,r){let n=null;return Object.entries(t).forEach((([t,i])=>{if(n)return;const s=function(t,e,r){let n=null;return Jo(e)&&e.length?e.forEach((t=>{n||ea(t)||(n=Zo("UNSUPPORTED_CHAINS",`${r}, chain ${t} should be a string and conform to "namespace:chainId" format`))})):ea(t)||(n=Zo("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}(t,No(t,i),`${e} ${r}`);s&&(n=s)})),n}(t,e,r);s&&(n=s)}else n=Ko("MISSING_OR_INVALID",`${e}, ${r} should be an object with data`);return n}(t,"connect()",e);if(r)throw new Error(r.message)},this.isValidApprove=async t=>{if(!oa(t))throw new Error(Ko("MISSING_OR_INVALID",`approve() params: ${t}`).message);const{id:e,namespaces:r,relayProtocol:n,sessionProperties:i}=t;await this.isValidProposalId(e);const s=this.client.proposal.get(e),o=ia(r,"approve()");if(o)throw new Error(o.message);const a=ca(s.requiredNamespaces,r,"approve()");if(a)throw new Error(a.message);if(!Xo(n,!0)){const{message:t}=Ko("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw new Error(t)}Yo(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(e)}const{id:e,reason:r}=t;if(await this.isValidProposalId(e),!function(t){return!!(t&&"object"==typeof t&&t.code&&ta(t.code,!1)&&t.message&&Xo(t.message,!1))}(r)){const{message:t}=Ko("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidSessionSettleRequest=t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(e)}const{relay:e,controller:r,namespaces:n,expiry:i}=t;if(!sa(e)){const{message:t}=Ko("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(t)}const s=function(t,e){let r=null;return Xo(t?.publicKey,!1)||(r=Ko("MISSING_OR_INVALID","onSessionSettleRequest() controller public key should be a string")),r}(r);if(s)throw new Error(s.message);const o=ia(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);if(Ho(i)){const{message:t}=Ko("EXPIRED","onSessionSettleRequest()");throw new Error(t)}},this.isValidUpdate=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(e)}const{topic:e,namespaces:r}=t;await this.isValidSessionTopic(e);const n=this.client.session.get(e),i=ia(r,"update()");if(i)throw new Error(i.message);const s=ca(n.requiredNamespaces,r,"update()");if(s)throw new Error(s.message)},this.isValidExtend=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionTopic(e)},this.isValidRequest=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(e)}const{topic:e,request:r,chainId:n,expiry:i}=t;await this.isValidSessionTopic(e);const{namespaces:s}=this.client.session.get(e);if(!aa(s,n)){const{message:t}=Ko("MISSING_OR_INVALID",`request() chainId: ${n}`);throw new Error(t)}if(!function(t){return!(Yo(t)||!Xo(t.method,!1))}(r)){const{message:t}=Ko("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(t)}if(!function(t,e,r){return!!Xo(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{qo(t.accounts).includes(e)&&r.push(...t.methods)})),r}(t,e).includes(r)}(s,n,r.method)){const{message:t}=Ko("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(t)}if(i&&!function(t,e){return ta(t,!1)&&t<=e.max&&t>=e.min}(i,ba)){const{message:t}=Ko("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${ba.min} and ${ba.max}`);throw new Error(t)}},this.isValidRespond=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(e)}const{topic:e,response:r}=t;if(await this.isValidSessionTopic(e),!function(t){return!(Yo(t)||Yo(t.result)&&Yo(t.error)||!ta(t.id,!1)||!Xo(t.jsonrpc,!1))}(r)){const{message:t}=Ko("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidPing=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.isValidEmit=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(e)}const{topic:e,event:r,chainId:n}=t;await this.isValidSessionTopic(e);const{namespaces:i}=this.client.session.get(e);if(!aa(i,n)){const{message:t}=Ko("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw new Error(t)}if(!function(t){return!(Yo(t)||!Xo(t.name,!1))}(r)){const{message:t}=Ko("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}if(!function(t,e,r){return!!Xo(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{qo(t.accounts).includes(e)&&r.push(...t.events)})),r}(t,e).includes(r)}(i,n,r.name)){const{message:t}=Ko("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidDisconnect=async t=>{if(!oa(t)){const{message:e}=Ko("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.getVerifyContext=async(t,e)=>{const r={verified:{verifyUrl:e.verifyUrl||$s,validation:"UNKNOWN",origin:e.url||""}};try{const n=await this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(e.url).origin?"VALID":"INVALID")}catch(t){this.client.logger.info(t)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(t,e)=>{Object.values(t).forEach((t=>{if(!Xo(t,!1)){const{message:r}=Ko("MISSING_OR_INVALID",`${e} must be in Record format. Received: ${JSON.stringify(t)}`);throw new Error(r)}}))}}async isInitialized(){if(!this.initialized){const{message:t}=Ko("NOT_INITIALIZED",this.name);throw new Error(t)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(gs,(async t=>{const{topic:e,message:r}=t;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(r)))return;const n=await this.client.core.crypto.decode(e,r);try{In(n)?(this.client.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Pn(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.client.core.history.delete(e,n.id)):this.onRelayEventUnknownPayload({topic:e,payload:n})}catch(t){this.client.logger.error(t)}}))}registerExpirerEvents(){this.client.core.expirer.on(Us,(async t=>{const{topic:e,id:r}=function(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}(t.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,Ko("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession(e,!0),this.client.events.emit("session_expire",{topic:e})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))}))}registerPairingEvents(){this.client.core.pairing.events.on(Ts,(t=>this.onPairingCreated(t)))}isValidPairingTopic(t){if(!Xo(t,!1)){const{message:e}=Ko("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=Ko("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if(Ho(this.client.core.pairing.pairings.get(t).expiry)){const{message:e}=Ko("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}}async isValidSessionTopic(t){if(!Xo(t,!1)){const{message:e}=Ko("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(e)}if(!this.client.session.keys.includes(t)){const{message:e}=Ko("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(e)}if(Ho(this.client.session.get(t).expiry)){await this.deleteSession(t);const{message:e}=Ko("EXPIRED",`session topic: ${t}`);throw new Error(e)}}async isValidSessionOrPairingTopic(t){if(this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else{if(!this.client.core.pairing.pairings.keys.includes(t)){if(Xo(t,!1)){const{message:e}=Ko("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(e)}{const{message:e}=Ko("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(e)}}this.isValidPairingTopic(t)}}async isValidProposalId(t){if("number"!=typeof t){const{message:e}=Ko("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(e)}if(!this.client.proposal.keys.includes(t)){const{message:e}=Ko("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(e)}if(Ho(this.client.proposal.get(t).expiry)){await this.deleteProposal(t);const{message:e}=Ko("EXPIRED",`proposal id: ${t}`);throw new Error(e)}}}class Na extends yo{constructor(t,e){super(t,e,"proposal",pa),this.core=t,this.logger=e}}class Ra extends yo{constructor(t,e){super(t,e,"session",pa),this.core=t,this.logger=e}}class Ba extends yo{constructor(t,e){super(t,e,"request",pa,(t=>t.id)),this.core=t,this.logger=e}}class ja extends Po{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=fa,this.events=new y.EventEmitter,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(t){throw this.logger.error(t.message),t}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(t){throw this.logger.error(t.message),t}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(t){throw this.logger.error(t.message),t}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(t){throw this.logger.error(t.message),t}},this.update=async t=>{try{return await this.engine.update(t)}catch(t){throw this.logger.error(t.message),t}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(t){throw this.logger.error(t.message),t}},this.request=async t=>{try{return await this.engine.request(t)}catch(t){throw this.logger.error(t.message),t}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(t){throw this.logger.error(t.message),t}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(t){throw this.logger.error(t.message),t}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(t){throw this.logger.error(t.message),t}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(t){throw this.logger.error(t.message),t}},this.find=t=>{try{return this.engine.find(t)}catch(t){throw this.logger.error(t.message),t}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.name=t?.name||fa,this.metadata=t?.metadata||(0,Xt.D)()||{name:"",description:"",url:"",icons:[""]};const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,Re.pino)((0,Re.getDefaultLoggerOptions)({level:t?.logger||"error"}));this.core=t?.core||new Io(t),this.logger=(0,Re.generateChildLogger)(e,this.name),this.session=new Ra(this.core,this.logger),this.proposal=new Na(this.core,this.logger),this.pendingRequest=new Ba(this.core,this.logger),this.engine=new Ta(this)}static async init(t){const e=new ja(t);return await e.initialize(),e}get context(){return(0,Re.getLoggerContext)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}}r(4543),r(4155);function La(t=[],e=[]){return[...new Set([...t,...e])]}function Ua(t){return t.includes(":")}function Da(t){return Ua(t)?t.split(":")[0]:t}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const $a={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function Fa(t,e){const{message:r,code:n}=$a[t];return{message:e?`${r} ${e}`:r,code:n}}function za(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}var Ha=r(4098),Wa=r.n(Ha);const qa={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class Va{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new y.EventEmitter,this.isAvailable=!1,this.registering=!1,!Sn(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,e){this.isAvailable||await this.register();try{const e=ke(t),r=await Wa()(this.url,Object.assign(Object.assign({},qa),{body:e})),n=await r.json();this.onPayload({data:n})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!Sn(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.isAvailable)return e(new Error("HTTP connection is missing or invalid"));t()}))}))}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=ke({id:1,jsonrpc:"2.0",method:"test",params:[]});await Wa()(t,Object.assign(Object.assign({},qa),{body:e}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(void 0===t.data)return;const e="string"==typeof t.data?Ae(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=vn(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return fn(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const Ga=Va,Ka="error",Za="wc@2:universal_provider:",Ja="default_chain_changed";var Qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},Ya={exports:{}};!function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",s="__lodash_placeholder__",o=32,a=128,c=1/0,l=9007199254740991,u=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],p="[object Arguments]",f="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",v="[object Map]",E="[object Number]",x="[object Object]",_="[object Promise]",A="[object RegExp]",k="[object Set]",S="[object String]",C="[object Symbol]",M="[object WeakMap]",I="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",T="[object Float64Array]",N="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",U="[object Uint16Array]",D="[object Uint32Array]",$=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,q=RegExp(H.source),V=RegExp(W.source),G=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(X.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,pt=/^\[object .+?Constructor\]$/,ft=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",kt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",St="["+bt+"]",Ct="["+kt+"]",Mt="["+vt+"]",It="\\d+",Pt="["+Et+"]",Ot="["+xt+"]",Tt="[^"+bt+kt+It+Et+xt+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+bt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+_t+"]",Ut="\\u200d",Dt="(?:"+Ot+"|"+Tt+")",$t="(?:"+Lt+"|"+Tt+")",Ft="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Mt+"|"+Nt+")?",Wt="["+At+"]?",qt=Wt+Ht+"(?:"+Ut+"(?:"+[Rt,Bt,jt].join("|")+")"+Wt+Ht+")*",Vt="(?:"+[Pt,Bt,jt].join("|")+")"+qt,Gt="(?:"+[Rt+Mt+"?",Mt,Bt,jt,St].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(Mt,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Gt+qt,"g"),Qt=RegExp([Lt+"?"+Ot+"+"+Ft+"(?="+[Ct,Lt,"$"].join("|")+")",$t+"+"+zt+"(?="+[Ct,Lt+Dt,"$"].join("|")+")",Lt+"?"+Dt+"+"+Ft,Lt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Vt].join("|"),"g"),Yt=RegExp("["+Ut+bt+vt+At+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,re={};re[O]=re[T]=re[N]=re[R]=re[B]=re[j]=re[L]=re[U]=re[D]=!0,re[p]=re[f]=re[I]=re[m]=re[P]=re[g]=re[y]=re[w]=re[v]=re[E]=re[x]=re[A]=re[k]=re[S]=re[M]=!1;var ne={};ne[p]=ne[f]=ne[I]=ne[P]=ne[m]=ne[g]=ne[O]=ne[T]=ne[N]=ne[R]=ne[B]=ne[v]=ne[E]=ne[x]=ne[A]=ne[k]=ne[S]=ne[C]=ne[j]=ne[L]=ne[U]=ne[D]=!0,ne[y]=ne[w]=ne[M]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,oe=parseInt,ae="object"==typeof Qa&&Qa&&Qa.Object===Object&&Qa,ce="object"==typeof self&&self&&self.Object===Object&&self,le=ae||ce||Function("return this")(),ue=e&&!e.nodeType&&e,he=ue&&t&&!t.nodeType&&t,de=he&&he.exports===ue,pe=de&&ae.process,fe=function(){try{return he&&he.require&&he.require("util").types||pe&&pe.binding&&pe.binding("util")}catch{}}(),me=fe&&fe.isArrayBuffer,ge=fe&&fe.isDate,ye=fe&&fe.isMap,we=fe&&fe.isRegExp,be=fe&&fe.isSet,ve=fe&&fe.isTypedArray;function Ee(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function xe(t,e,r,n){for(var i=-1,s=null==t?0:t.length;++i-1}function Me(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Qe(t,e){for(var r=t.length;r--&&Le(e,t[r],0)>-1;);return r}function Ye(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Xe=ze({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=ze({"&":"&","<":"<",">":">",'"':""","'":"'"});function er(t){return"\\"+ie[t]}function rr(t){return Yt.test(t)}function nr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),hr=function t(e){var rt=(e=null==e?le:hr.defaults(le.Object(),e,hr.pick(le,te))).Array,bt=e.Date,vt=e.Error,Et=e.Function,xt=e.Math,_t=e.Object,At=e.RegExp,kt=e.String,St=e.TypeError,Ct=rt.prototype,Mt=Et.prototype,It=_t.prototype,Pt=e["__core-js_shared__"],Ot=Mt.toString,Tt=It.hasOwnProperty,Nt=0,Rt=function(){var t=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Bt=It.toString,jt=Ot.call(_t),Lt=le._,Ut=At("^"+Ot.call(Tt).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=de?e.Buffer:r,$t=e.Symbol,Ft=e.Uint8Array,zt=Dt?Dt.allocUnsafe:r,Ht=ir(_t.getPrototypeOf,_t),Wt=_t.create,qt=It.propertyIsEnumerable,Vt=Ct.splice,Gt=$t?$t.isConcatSpreadable:r,Jt=$t?$t.iterator:r,Yt=$t?$t.toStringTag:r,ie=function(){try{var t=as(_t,"defineProperty");return t({},"",{}),t}catch{}}(),ae=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=bt&&bt.now!==le.Date.now&&bt.now,ue=e.setTimeout!==le.setTimeout&&e.setTimeout,he=xt.ceil,pe=xt.floor,fe=_t.getOwnPropertySymbols,Re=Dt?Dt.isBuffer:r,ze=e.isFinite,dr=Ct.join,pr=ir(_t.keys,_t),fr=xt.max,mr=xt.min,gr=bt.now,yr=e.parseInt,wr=xt.random,br=Ct.reverse,vr=as(e,"DataView"),Er=as(e,"Map"),xr=as(e,"Promise"),_r=as(e,"Set"),Ar=as(e,"WeakMap"),kr=as(_t,"create"),Sr=Ar&&new Ar,Cr={},Mr=js(vr),Ir=js(Er),Pr=js(xr),Or=js(_r),Tr=js(Ar),Nr=$t?$t.prototype:r,Rr=Nr?Nr.valueOf:r,Br=Nr?Nr.toString:r;function jr(t){if(ta(t)&&!Ho(t)&&!(t instanceof $r)){if(t instanceof Dr)return t;if(Tt.call(t,"__wrapped__"))return Ls(t)}return new Dr(t)}var Lr=function(){function t(){}return function(e){if(!Xo(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Ur(){}function Dr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function $r(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Fr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,n,i,s,o){var a,c=1&e,l=2&e,u=4&e;if(n&&(a=s?n(t,i,s,o):n(t)),a!==r)return a;if(!Xo(t))return t;var h=Ho(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return ki(t,a)}else{var d=us(t),f=d==w||d==b;if(Go(t))return bi(t,c);if(d==x||d==p||f&&!s){if(a=l||f?{}:ds(t),!c)return l?function(t,e){return Si(t,ls(t),e)}(t,function(t,e){return t&&Si(e,Oa(e),t)}(a,t)):function(t,e){return Si(t,cs(t),e)}(t,tn(a,t))}else{if(!ne[d])return s?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case I:return vi(t);case m:case g:return new n(+t);case P:return function(t,e){var r=e?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case O:case T:case N:case R:case B:case j:case L:case U:case D:return Ei(t,r);case v:return new n;case E:case S:return new n(t);case A:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new n;case C:return function(t){return Rr?_t(Rr.call(t)):{}}(t)}}(t,d,c)}}o||(o=new qr);var y=o.get(t);if(y)return y;o.set(t,a),sa(t)?t.forEach((function(r){a.add(sn(r,e,n,r,t,o))})):ea(t)&&t.forEach((function(r,i){a.set(i,sn(r,e,n,i,t,o))}));var _=h?r:(u?l?ts:Xi:l?Oa:Pa)(t);return _e(_||t,(function(r,i){_&&(r=t[i=r]),Qr(a,i,sn(r,e,n,i,t,o))})),a}function on(t,e,n){var i=n.length;if(null==t)return!i;for(t=_t(t);i--;){var s=n[i],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function an(t,e,i){if("function"!=typeof t)throw new St(n);return Cs((function(){t.apply(r,i)}),e)}function cn(t,e,r,n){var i=-1,s=Ce,o=!0,a=t.length,c=[],l=e.length;if(!a)return c;r&&(e=Ie(e,Ge(r))),n?(s=Me,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Wr(e));t:for(;++i-1},zr.prototype.set=function(t,e){var r=this.__data__,n=Yr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new Fr,map:new(Er||zr),string:new Fr}},Hr.prototype.delete=function(t){var e=ss(this,t).delete(t);return this.size-=e?1:0,e},Hr.prototype.get=function(t){return ss(this,t).get(t)},Hr.prototype.has=function(t){return ss(this,t).has(t)},Hr.prototype.set=function(t,e){var r=ss(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Wr.prototype.add=Wr.prototype.push=function(t){return this.__data__.set(t,i),this},Wr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new zr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!Er||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(t,e),this.size=r.size,this};var ln=Ii(yn),un=Ii(wn,!0);function hn(t,e){var r=!0;return ln(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function dn(t,e,n){for(var i=-1,s=t.length;++i0&&r(a)?e>1?fn(a,e-1,r,n,i):Pe(i,a):n||(i[i.length]=a)}return i}var mn=Pi(),gn=Pi(!0);function yn(t,e){return t&&mn(t,e,Pa)}function wn(t,e){return t&&gn(t,e,Pa)}function bn(t,e){return Se(e,(function(e){return Jo(t[e])}))}function vn(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&ne}function An(t,e){return null!=t&&Tt.call(t,e)}function kn(t,e){return null!=t&&e in _t(t)}function Sn(t,e,n){for(var i=n?Me:Ce,s=t[0].length,o=t.length,a=o,c=rt(o),l=1/0,u=[];a--;){var h=t[a];a&&e&&(h=Ie(h,Ge(e))),l=mr(h.length,l),c[a]=!n&&(e||s>=120&&h.length>=120)?new Wr(a&&h):r}h=t[0];var d=-1,p=c[0];t:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Bn(t,(function(t,r,i){return{criteria:Ie(e,(function(e){return e(t)})),index:++n,value:t}})))}function Fn(t,e,r){for(var n=-1,i=e.length,s={};++n-1;)a!==t&&Vt.call(a,c,1),Vt.call(t,c,1);return t}function Hn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==s){var s=i;fs(i)?Vt.call(t,i,1):ai(t,i)}}return t}function Wn(t,e){return t+pe(wr()*(e-t+1))}function qn(t,e){var r="";if(!t||e<1||e>l)return r;do{e%2&&(r+=t),(e=pe(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return Ms(xs(t,e,rc),t+"")}function Gn(t){return Gr(Da(t))}function Kn(t,e){var r=Da(t);return Os(r,nn(e,0,r.length))}function Zn(t,e,n,i){if(!Xo(t))return t;for(var s=-1,o=(e=mi(e,t)).length,a=o-1,c=t;null!=c&&++si?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=rt(i);++n>>1,o=t[s];null!==o&&!aa(o)&&(r?o<=e:o=200){var l=e?null:qi(t);if(l)return or(l);o=!1,i=Ze,c=new Wr}else c=e?[]:a;t:for(;++n=i?t:Xn(t,e,n)}var wi=ae||function(t){return le.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var r=t.length,n=zt?zt(r):new t.constructor(r);return t.copy(n),n}function vi(t){var e=new t.constructor(t.byteLength);return new Ft(e).set(new Ft(t)),e}function Ei(t,e){var r=e?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function xi(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,o=aa(t),a=e!==r,c=null===e,l=e==e,u=aa(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!u&&t1?n[s-1]:r,a=s>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(s--,o):r,a&&ms(n[0],n[1],a)&&(o=s<3?r:o,s=1),e=_t(e);++i-1?s[o?e[a]:a]:r}}function Bi(t){return Yi((function(e){var i=e.length,s=i,o=Dr.prototype.thru;for(t&&e.reverse();s--;){var a=e[s];if("function"!=typeof a)throw new St(n);if(o&&!c&&"wrapper"==rs(a))var c=new Dr([],!0)}for(s=c?s:i;++s1&&w.reverse(),d&&uc))return!1;var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var d=-1,p=!0,f=2&n?new Wr:r;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return _e(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(st):[]}(n),r)))}function Ps(t){var e=0,n=0;return function(){var i=gr(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Os(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,no(t,n)}));function uo(t){var e=jr(t);return e.__chain__=!0,e}function ho(t,e){return e(t)}var po=Yi((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return rn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $r&&fs(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:ho,args:[s],thisArg:r}),new Dr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(s)})),fo=Ci((function(t,e,r){Tt.call(t,r)?++t[r]:en(t,r,1)})),mo=Ri(Fs),go=Ri(zs);function yo(t,e){return(Ho(t)?_e:ln)(t,is(e,3))}function wo(t,e){return(Ho(t)?Ae:un)(t,is(e,3))}var bo=Ci((function(t,e,r){Tt.call(t,r)?t[r].push(e):en(t,r,[e])})),vo=Vn((function(t,e,r){var n=-1,i="function"==typeof e,s=qo(t)?rt(t.length):[];return ln(t,(function(t){s[++n]=i?Ee(e,t,r):Cn(t,e,r)})),s})),Eo=Ci((function(t,e,r){en(t,r,e)}));function xo(t,e){return(Ho(t)?Ie:Bn)(t,is(e,3))}var _o=Ci((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ao=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&ms(t,e[0],e[1])?e=[]:r>2&&ms(e[0],e[1],e[2])&&(e=[e[0]]),$n(t,fn(e,1),[])})),ko=ce||function(){return le.Date.now()};function So(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Gi(t,a,r,r,r,r,e)}function Co(t,e){var i;if("function"!=typeof e)throw new St(n);return t=pa(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Mo=Vn((function(t,e,r){var n=1;if(r.length){var i=sr(r,ns(Mo));n|=o}return Gi(t,n,e,r,i)})),Io=Vn((function(t,e,r){var n=3;if(r.length){var i=sr(r,ns(Io));n|=o}return Gi(e,n,t,r,i)}));function Po(t,e,i){var s,o,a,c,l,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof t)throw new St(n);function m(e){var n=s,i=o;return s=o=r,h=e,c=t.apply(i,n)}function g(t){return h=t,l=Cs(w,e),d?m(t):c}function y(t){var n=t-u;return u===r||n>=e||n<0||p&&t-h>=a}function w(){var t=ko();if(y(t))return b(t);l=Cs(w,function(t){var r=e-(t-u);return p?mr(r,a-(t-h)):r}(t))}function b(t){return l=r,f&&s?m(t):(s=o=r,c)}function v(){var t=ko(),n=y(t);if(s=arguments,o=this,u=t,n){if(l===r)return g(u);if(p)return wi(l),l=Cs(w,e),m(u)}return l===r&&(l=Cs(w,e)),c}return e=ma(e)||0,Xo(i)&&(d=!!i.leading,a=(p="maxWait"in i)?fr(ma(i.maxWait)||0,e):a,f="trailing"in i?!!i.trailing:f),v.cancel=function(){l!==r&&wi(l),h=0,s=u=o=l=r},v.flush=function(){return l===r?c:b(ko())},v}var Oo=Vn((function(t,e){return an(t,1,e)})),To=Vn((function(t,e,r){return an(t,ma(e)||0,r)}));function No(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new St(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(No.Cache||Hr),r}function Ro(t){if("function"!=typeof t)throw new St(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}No.Cache=Hr;var Bo=gi((function(t,e){var r=(e=1==e.length&&Ho(e[0])?Ie(e[0],Ge(is())):Ie(fn(e,1),Ge(is()))).length;return Vn((function(n){for(var i=-1,s=mr(n.length,r);++i=e})),zo=Mn(function(){return arguments}())?Mn:function(t){return ta(t)&&Tt.call(t,"callee")&&!qt.call(t,"callee")},Ho=rt.isArray,Wo=me?Ge(me):function(t){return ta(t)&&xn(t)==I};function qo(t){return null!=t&&Yo(t.length)&&!Jo(t)}function Vo(t){return ta(t)&&qo(t)}var Go=Re||mc,Ko=ge?Ge(ge):function(t){return ta(t)&&xn(t)==g};function Zo(t){if(!ta(t))return!1;var e=xn(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!na(t)}function Jo(t){if(!Xo(t))return!1;var e=xn(t);return e==w||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qo(t){return"number"==typeof t&&t==pa(t)}function Yo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function Xo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=ye?Ge(ye):function(t){return ta(t)&&us(t)==v};function ra(t){return"number"==typeof t||ta(t)&&xn(t)==E}function na(t){if(!ta(t)||xn(t)!=x)return!1;var e=Ht(t);if(null===e)return!0;var r=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ot.call(r)==jt}var ia=we?Ge(we):function(t){return ta(t)&&xn(t)==A},sa=be?Ge(be):function(t){return ta(t)&&us(t)==k};function oa(t){return"string"==typeof t||!Ho(t)&&ta(t)&&xn(t)==S}function aa(t){return"symbol"==typeof t||ta(t)&&xn(t)==C}var ca=ve?Ge(ve):function(t){return ta(t)&&Yo(t.length)&&!!re[xn(t)]},la=zi(Rn),ua=zi((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(qo(t))return oa(t)?cr(t):ki(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=us(t);return(e==v?nr:e==k?or:Da)(t)}function da(t){return t?(t=ma(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pa(t){var e=da(t),r=e%1;return e==e?r?e-r:e:0}function fa(t){return t?nn(pa(t),0,h):0}function ma(t){if("number"==typeof t)return t;if(aa(t))return u;if(Xo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Xo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=dt.test(t);return r||ft.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?u:+t}function ga(t){return Si(t,Oa(t))}function ya(t){return null==t?"":si(t)}var wa=Mi((function(t,e){if(bs(e)||qo(e))Si(e,Pa(e),t);else for(var r in e)Tt.call(e,r)&&Qr(t,r,e[r])})),ba=Mi((function(t,e){Si(e,Oa(e),t)})),va=Mi((function(t,e,r,n){Si(e,Oa(e),t,n)})),Ea=Mi((function(t,e,r,n){Si(e,Pa(e),t,n)})),xa=Yi(rn),_a=Vn((function(t,e){t=_t(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&ms(e[0],e[1],s)&&(i=1);++n1),e})),Si(t,ts(t),r),n&&(r=sn(r,7,Ji));for(var i=e.length;i--;)ai(r,e[i]);return r})),Ba=Yi((function(t,e){return null==t?{}:function(t,e){return Fn(t,e,(function(e,r){return Sa(t,r)}))}(t,e)}));function ja(t,e){if(null==t)return{};var r=Ie(ts(t),(function(t){return[t]}));return e=is(e),Fn(t,r,(function(t,r){return e(t,r[0])}))}var La=Vi(Pa),Ua=Vi(Oa);function Da(t){return null==t?[]:Ke(t,Pa(t))}var $a=Ti((function(t,e,r){return e=e.toLowerCase(),t+(r?Fa(e):e)}));function Fa(t){return Za(ya(t).toLowerCase())}function za(t){return(t=ya(t))&&t.replace(gt,Xe).replace(Zt,"")}var Ha=Ti((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Wa=Ti((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),qa=Oi("toLowerCase"),Va=Ti((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Ga=Ti((function(t,e,r){return t+(r?" ":"")+Za(e)})),Ka=Ti((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Za=Oi("toUpperCase");function Ja(t,e,n){return t=ya(t),(e=n?r:e)===r?function(t){return Xt.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ot)||[]}(t):t.match(e)||[]}var Qa=Vn((function(t,e){try{return Ee(t,r,e)}catch(t){return Zo(t)?t:new vt(t)}})),Ya=Yi((function(t,e){return _e(e,(function(e){e=Bs(e),en(t,e,Mo(t[e],t))})),t}));function Xa(t){return function(){return t}}var tc=Bi(),ec=Bi(!0);function rc(t){return t}function nc(t){return Tn("function"==typeof t?t:sn(t,1))}var ic=Vn((function(t,e){return function(r){return Cn(r,t,e)}})),sc=Vn((function(t,e){return function(r){return Cn(t,r,e)}}));function oc(t,e,r){var n=Pa(e),i=bn(e,n);null==r&&(!Xo(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=bn(e,Pa(e)));var s=!(Xo(r)&&"chain"in r&&!r.chain),o=Jo(t);return _e(i,(function(r){var n=e[r];t[r]=n,o&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__),i=r.__actions__=ki(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Pe([this.value()],arguments))})})),t}function ac(){}var cc=Di(Ie),lc=Di(ke),uc=Di(Ne);function hc(t){return gs(t)?Fe(Bs(t)):function(t){return function(e){return vn(e,t)}}(t)}var dc=Fi(),pc=Fi(!0);function fc(){return[]}function mc(){return!1}var gc=Ui((function(t,e){return t+e}),0),yc=Wi("ceil"),wc=Ui((function(t,e){return t/e}),1),bc=Wi("floor"),vc=Ui((function(t,e){return t*e}),1),Ec=Wi("round"),xc=Ui((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new St(n);return t=pa(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=So,jr.assign=wa,jr.assignIn=ba,jr.assignInWith=va,jr.assignWith=Ea,jr.at=xa,jr.before=Co,jr.bind=Mo,jr.bindAll=Ya,jr.bindKey=Io,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ho(t)?t:[t]},jr.chain=uo,jr.chunk=function(t,e,n){e=(n?ms(t,e,n):e===r)?1:fr(pa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var s=0,o=0,a=rt(he(i/e));ss?0:s+n),(i=i===r||i>s?s:pa(i))<0&&(i+=s),i=n>i?0:fa(i);n>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=si(e))&&rr(t)?yi(cr(t),0,n):t.split(e,n):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new St(n);return e=null==e?0:fr(pa(e),0),Vn((function(r){var n=r[e],i=yi(r,0,e);return n&&Pe(i,n),Ee(t,this,i)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?Xn(t,1,e):[]},jr.take=function(t,e,n){return t&&t.length?Xn(t,0,(e=n||e===r?1:pa(e))<0?0:e):[]},jr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Xn(t,(e=i-(e=n||e===r?1:pa(e)))<0?0:e,i):[]},jr.takeRightWhile=function(t,e){return t&&t.length?li(t,is(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?li(t,is(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var i=!0,s=!0;if("function"!=typeof t)throw new St(n);return Xo(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),Po(t,e,{leading:i,maxWait:e,trailing:s})},jr.thru=ho,jr.toArray=ha,jr.toPairs=La,jr.toPairsIn=Ua,jr.toPath=function(t){return Ho(t)?Ie(t,Bs):aa(t)?[t]:ki(Rs(ya(t)))},jr.toPlainObject=ga,jr.transform=function(t,e,r){var n=Ho(t),i=n||Go(t)||ca(t);if(e=is(e,4),null==r){var s=t&&t.constructor;r=i?n?new s:[]:Xo(t)&&Jo(s)?Lr(Ht(t)):{}}return(i?_e:yn)(t,(function(t,n,i){return e(r,t,n,i)})),r},jr.unary=function(t){return So(t,1)},jr.union=Xs,jr.unionBy=to,jr.unionWith=eo,jr.uniq=function(t){return t&&t.length?oi(t):[]},jr.uniqBy=function(t,e){return t&&t.length?oi(t,is(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?oi(t,r,e):[]},jr.unset=function(t,e){return null==t||ai(t,e)},jr.unzip=ro,jr.unzipWith=no,jr.update=function(t,e,r){return null==t?t:ci(t,e,fi(r))},jr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ci(t,e,fi(n),i)},jr.values=Da,jr.valuesIn=function(t){return null==t?[]:Ke(t,Oa(t))},jr.without=io,jr.words=Ja,jr.wrap=function(t,e){return jo(fi(e),t)},jr.xor=so,jr.xorBy=oo,jr.xorWith=ao,jr.zip=co,jr.zipObject=function(t,e){return di(t||[],e||[],Qr)},jr.zipObjectDeep=function(t,e){return di(t||[],e||[],Zn)},jr.zipWith=lo,jr.entries=La,jr.entriesIn=Ua,jr.extend=ba,jr.extendWith=va,oc(jr,jr),jr.add=gc,jr.attempt=Qa,jr.camelCase=$a,jr.capitalize=Fa,jr.ceil=yc,jr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ma(n))==n?n:0),e!==r&&(e=(e=ma(e))==e?e:0),nn(ma(t),e,n)},jr.clone=function(t){return sn(t,4)},jr.cloneDeep=function(t){return sn(t,5)},jr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:r)},jr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:r)},jr.conformsTo=function(t,e){return null==e||on(t,e,Pa(e))},jr.deburr=za,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=wc,jr.endsWith=function(t,e,n){t=ya(t),e=si(e);var i=t.length,s=n=n===r?i:nn(pa(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},jr.eq=Do,jr.escape=function(t){return(t=ya(t))&&V.test(t)?t.replace(W,tr):t},jr.escapeRegExp=function(t){return(t=ya(t))&&tt.test(t)?t.replace(X,"\\$&"):t},jr.every=function(t,e,n){var i=Ho(t)?ke:hn;return n&&ms(t,e,n)&&(e=r),i(t,is(e,3))},jr.find=mo,jr.findIndex=Fs,jr.findKey=function(t,e){return Be(t,is(e,3),yn)},jr.findLast=go,jr.findLastIndex=zs,jr.findLastKey=function(t,e){return Be(t,is(e,3),wn)},jr.floor=bc,jr.forEach=yo,jr.forEachRight=wo,jr.forIn=function(t,e){return null==t?t:mn(t,is(e,3),Oa)},jr.forInRight=function(t,e){return null==t?t:gn(t,is(e,3),Oa)},jr.forOwn=function(t,e){return t&&yn(t,is(e,3))},jr.forOwnRight=function(t,e){return t&&wn(t,is(e,3))},jr.get=ka,jr.gt=$o,jr.gte=Fo,jr.has=function(t,e){return null!=t&&hs(t,e,An)},jr.hasIn=Sa,jr.head=Ws,jr.identity=rc,jr.includes=function(t,e,r,n){t=qo(t)?t:Da(t),r=r&&!n?pa(r):0;var i=t.length;return r<0&&(r=fr(i+r,0)),oa(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Le(t,e,r)>-1},jr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:pa(r);return i<0&&(i=fr(n+i,0)),Le(t,e,i)},jr.inRange=function(t,e,n){return e=da(e),n===r?(n=e,e=0):n=da(n),function(t,e,r){return t>=mr(e,r)&&t=-l&&t<=l},jr.isSet=sa,jr.isString=oa,jr.isSymbol=aa,jr.isTypedArray=ca,jr.isUndefined=function(t){return t===r},jr.isWeakMap=function(t){return ta(t)&&us(t)==M},jr.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==xn(t)},jr.join=function(t,e){return null==t?"":dr.call(t,e)},jr.kebabCase=Ha,jr.last=Ks,jr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=pa(n))<0?fr(i+s,0):mr(s,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,s):je(t,De,s,!0)},jr.lowerCase=Wa,jr.lowerFirst=qa,jr.lt=la,jr.lte=ua,jr.max=function(t){return t&&t.length?dn(t,rc,_n):r},jr.maxBy=function(t,e){return t&&t.length?dn(t,is(e,2),_n):r},jr.mean=function(t){return $e(t,rc)},jr.meanBy=function(t,e){return $e(t,is(e,2))},jr.min=function(t){return t&&t.length?dn(t,rc,Rn):r},jr.minBy=function(t,e){return t&&t.length?dn(t,is(e,2),Rn):r},jr.stubArray=fc,jr.stubFalse=mc,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=vc,jr.nth=function(t,e){return t&&t.length?Dn(t,pa(e)):r},jr.noConflict=function(){return le._===this&&(le._=Lt),this},jr.noop=ac,jr.now=ko,jr.pad=function(t,e,r){t=ya(t);var n=(e=pa(e))?ar(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return $i(pe(i),r)+t+$i(he(i),r)},jr.padEnd=function(t,e,r){t=ya(t);var n=(e=pa(e))?ar(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var s=wr();return mr(t+s*(e-t+se("1e-"+((s+"").length-1))),e)}return Wn(t,e)},jr.reduce=function(t,e,r){var n=Ho(t)?Oe:He,i=arguments.length<3;return n(t,is(e,4),r,i,ln)},jr.reduceRight=function(t,e,r){var n=Ho(t)?Te:He,i=arguments.length<3;return n(t,is(e,4),r,i,un)},jr.repeat=function(t,e,n){return e=(n?ms(t,e,n):e===r)?1:pa(e),qn(ya(t),e)},jr.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,n){var i=-1,s=(e=mi(e,t)).length;for(s||(s=1,t=r);++il)return[];var r=h,n=mr(t,h);e=is(e),t-=h;for(var i=qe(n,e);++r=o)return t;var c=n-ar(i);if(c<1)return i;var l=a?yi(a,0,c).join(""):t.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ia(s)){if(t.slice(c).search(s)){var u,h=l;for(s.global||(s=At(s.source,ya(ut.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var d=u.index;l=l.slice(0,d===r?c:d)}}else if(t.indexOf(si(s),c)!=c){var p=l.lastIndexOf(s);p>-1&&(l=l.slice(0,p))}return l+i},jr.unescape=function(t){return(t=ya(t))&&q.test(t)?t.replace(H,ur):t},jr.uniqueId=function(t){var e=++Nt;return ya(t)+e},jr.upperCase=Ka,jr.upperFirst=Za,jr.each=yo,jr.eachRight=wo,jr.first=Ws,oc(jr,function(){var t={};return yn(jr,(function(e,r){Tt.call(jr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),jr.VERSION="4.17.21",_e(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),_e(["drop","take"],(function(t,e){$r.prototype[t]=function(n){n=n===r?1:fr(pa(n),0);var i=this.__filtered__&&!e?new $r(this):this.clone();return i.__filtered__?i.__takeCount__=mr(n,i.__takeCount__):i.__views__.push({size:mr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},$r.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_e(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;$r.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:is(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),_e(["head","last"],(function(t,e){var r="take"+(e?"Right":"");$r.prototype[t]=function(){return this[r](1).value()[0]}})),_e(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");$r.prototype[t]=function(){return this.__filtered__?new $r(this):this[r](1)}})),$r.prototype.compact=function(){return this.filter(rc)},$r.prototype.find=function(t){return this.filter(t).head()},$r.prototype.findLast=function(t){return this.reverse().find(t)},$r.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new $r(this):this.map((function(r){return Cn(r,t,e)}))})),$r.prototype.reject=function(t){return this.filter(Ro(is(t)))},$r.prototype.slice=function(t,e){t=pa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $r(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=pa(e))<0?n.dropRight(-e):n.take(e-t)),n)},$r.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$r.prototype.toArray=function(){return this.take(h)},yn($r.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=jr[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(jr.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof $r,l=a[0],u=c||Ho(e),h=function(t){var e=s.apply(jr,Pe([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,m=c&&!p;if(!o&&u){e=m?e:new $r(this);var g=t.apply(e,a);return g.__actions__.push({func:ho,args:[h],thisArg:r}),new Dr(g,d)}return f&&m?t.apply(this,a):(g=this.thru(h),f?i?g.value()[0]:g.value():g)})})),_e(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ct[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Ho(i)?i:[],t)}return this[r]((function(r){return e.apply(Ho(r)?r:[],t)}))}})),yn($r.prototype,(function(t,e){var r=jr[e];if(r){var n=r.name+"";Tt.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:e,func:r})}})),Cr[ji(r,2).name]=[{name:"wrapper",func:r}],$r.prototype.clone=function(){var t=new $r(this.__wrapped__);return t.__actions__=ki(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ki(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ki(this.__views__),t},$r.prototype.reverse=function(){if(this.__filtered__){var t=new $r(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$r.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ho(t),n=e<0,i=r?t.length:0,s=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,n=this;n instanceof Ur;){var i=Ls(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $r){var e=t;return this.__actions__.length&&(e=new $r(this)),(e=e.reverse()).__actions__.push({func:ho,args:[Ys],thisArg:r}),new Dr(e,this.__chain__)}return this.thru(Ys)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,Jt&&(jr.prototype[Jt]=function(){return this}),jr}();he?((he.exports=hr)._=hr,ue._=hr):le._=hr}).call(Qa)}(Ya,Ya.exports);var Xa=Object.defineProperty,tc=Object.defineProperties,ec=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,nc=Object.prototype.hasOwnProperty,ic=Object.prototype.propertyIsEnumerable,sc=(t,e,r)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oc=(t,e)=>{for(var r in e||(e={}))nc.call(e,r)&&sc(t,r,e[r]);if(rc)for(var r of rc(e))ic.call(e,r)&&sc(t,r,e[r]);return t},ac=(t,e)=>tc(t,ec(e));function cc(t,e,r){var n;const i=function(t){const[e,r]=t.split(":");return{namespace:e,reference:r}}(t);return(null==(n=e.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function lc(t){return t.includes(":")?t.split(":")[1]:t}function uc(t){return t.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))}function hc(t){var e,r,n,i;const s={};if(o=t,Object.getPrototypeOf(o)!==Object.prototype||!Object.keys(o).length)return s;var o;for(const[o,a]of Object.entries(t)){const t=Ua(o)?[o]:a.chains,c=a.methods||[],l=a.events||[],u=a.rpcMap||{},h=Da(o);s[h]=ac(oc(oc({},s[h]),a),{chains:La(t,null==(e=s[h])?void 0:e.chains),methods:La(c,null==(r=s[h])?void 0:r.methods),events:La(l,null==(n=s[h])?void 0:n.events),rpcMap:oc(oc({},u),null==(i=s[h])?void 0:i.rpcMap)})}return s}function dc(t){return t.includes(":")?t.split(":")[2]:t}function pc(t){const e={};for(const[r,n]of Object.entries(t)){const t=n.methods||[],i=n.events||[],s=n.accounts||[],o=Ua(r)?[r]:n.chains?n.chains:uc(n.accounts);e[r]={chains:o,methods:t,events:i,accounts:s}}return e}function fc(t){return"number"==typeof t?t:t.includes("0x")?parseInt(t,16):t.includes(":")?Number(t.split(":")[1]):Number(t)}const mc={},gc=t=>mc[t],yc=(t,e)=>{mc[t]=e};class wc{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lc(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class bc{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(Ja,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const r=e||cc(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Va(r,gc("disableProviderPing")))}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=parseInt(lc(e));t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,r;let n=t.request.params?null==(e=t.request.params[0])?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const i=parseInt(n,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`)}return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}}class vc{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lc(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class Ec{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lc(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class xc{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{const r=this.getCardanoRPCUrl(e),n=lc(e);t[n]=this.createHttpProvider(n,r)})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||this.getCardanoRPCUrl(t);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class _c{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lc(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class Ac{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Ja,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lc(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Nn(new Ga(r,gc("disableProviderPing")))}}class kc{constructor(t){this.name="near",this.namespace=t.namespace,this.events=gc("events"),this.client=gc("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const r=e||cc(`${this.name}:${t}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,r)}this.events.emit(Ja,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;t[e]=this.createHttpProvider(e,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cc(t,this.namespace);return typeof r>"u"?void 0:new Nn(new Ga(r,gc("disableProviderPing")))}}var Sc=Object.defineProperty,Cc=Object.defineProperties,Mc=Object.getOwnPropertyDescriptors,Ic=Object.getOwnPropertySymbols,Pc=Object.prototype.hasOwnProperty,Oc=Object.prototype.propertyIsEnumerable,Tc=(t,e,r)=>e in t?Sc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nc=(t,e)=>{for(var r in e||(e={}))Pc.call(e,r)&&Tc(t,r,e[r]);if(Ic)for(var r of Ic(e))Oc.call(e,r)&&Tc(t,r,e[r]);return t},Rc=(t,e)=>Cc(t,Mc(e));class Bc{constructor(t){this.events=new(w()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:(0,Re.pino)((0,Re.getDefaultLoggerOptions)({level:t?.logger||Ka})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new Bc(t);return await e.initialize(),e}async request(t,e){const[r,n]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(r).request({request:Nc({},t),chainId:`${r}:${n}`,topic:this.session.topic})}sendAsync(t,e,r){this.request(t,r).then((t=>e(null,t))).catch((t=>e(t,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(t=this.session)?void 0:t.topic,reason:Fa("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:n}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await n().then((t=>{this.session=t,this.namespaces||(this.namespaces=pc(t.namespaces),this.persist("namespaces",this.namespaces))})).catch((t=>{if(t.message!==ga)throw t;e++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[r,n]=this.validateChain(t);this.getProvider(r).setDefaultChain(n,e)}catch(t){if(!/Please call connect/.test(t.message))throw t}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(za(e)){for(const r of e)t.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await ja.init({logger:this.providerOpts.logger||Ka,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map((t=>Da(t))))];yc("client",this.client),yc("events",this.events),yc("disableProviderPing",this.disableProviderPing),t.forEach((t=>{if(!this.session)return;const e=function(t,e){const r=Object.keys(e.namespaces).filter((e=>e.includes(t)));if(!r.length)return[];const n=[];return r.forEach((t=>{const r=e.namespaces[t].accounts;n.push(...r)})),n}(t,this.session),r=uc(e),n=function(t={},e={}){const r=hc(t),n=hc(e);return Ya.exports.merge(r,n)}(this.namespaces,this.optionalNamespaces),i=Rc(Nc({},n[t]),{accounts:e,chains:r});switch(t){case"eip155":this.rpcProviders[t]=new bc({namespace:i});break;case"solana":this.rpcProviders[t]=new vc({namespace:i});break;case"cosmos":this.rpcProviders[t]=new Ec({namespace:i});break;case"polkadot":this.rpcProviders[t]=new wc({namespace:i});break;case"cip34":this.rpcProviders[t]=new xc({namespace:i});break;case"elrond":this.rpcProviders[t]=new _c({namespace:i});break;case"multiversx":this.rpcProviders[t]=new Ac({namespace:i});break;case"near":this.rpcProviders[t]=new kc({namespace:i})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(t=>{this.events.emit("session_ping",t)})),this.client.on("session_event",(t=>{const{params:e}=t,{event:r}=e;if("accountsChanged"===r.name){const t=r.data;t&&za(t)&&this.events.emit("accountsChanged",t.map(dc))}else if("chainChanged"===r.name){const t=e.chainId,r=e.event.data,n=Da(t),i=fc(t)!==fc(r)?`${n}:${fc(r)}`:t;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit("session_event",t)})),this.client.on("session_update",(({topic:t,params:e})=>{var r;const{namespaces:n}=e,i=null==(r=this.client)?void 0:r.session.get(t);this.session=Rc(Nc({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})})),this.client.on("session_delete",(async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",Rc(Nc({},Fa("USER_DISCONNECTED")),{data:t.topic}))})),this.on(Ja,(t=>{this.onChainChanged(t,!0)}))}getProvider(t){if(!this.rpcProviders[t])throw new Error(`Provider not found: ${t}`);return this.rpcProviders[t]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((t=>{var e;this.getProvider(t).updateNamespace(null==(e=this.session)?void 0:e.namespaces[t])}))}setNamespaces(t){const{namespaces:e,optionalNamespaces:r,sessionProperties:n}=t;e&&Object.keys(e).length&&(this.namespaces=e),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist("namespaces",e),this.persist("optionalNamespaces",r)}validateChain(t){const[e,r]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,r];if(e&&!Object.keys(this.namespaces||{}).map((t=>Da(t))).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&r)return[e,r];const n=Da(Object.keys(this.namespaces)[0]);return[n,this.rpcProviders[n].getDefaultChain()]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){var r;if(!this.namespaces)return;const[n,i]=this.validateChain(t);e||this.getProvider(n).setDefaultChain(i),(null!=(r=this.namespaces[n])?r:this.namespaces[`${n}:${i}`]).defaultChain=i,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${Za}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${Za}/${t}`)}}const jc=Bc,Lc=["eth_sendTransaction","personal_sign"],Uc=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Dc=["chainChanged","accountsChanged"],$c=["chainChanged","accountsChanged","message","disconnect","connect"];var Fc=Object.defineProperty,zc=Object.defineProperties,Hc=Object.getOwnPropertyDescriptors,Wc=Object.getOwnPropertySymbols,qc=Object.prototype.hasOwnProperty,Vc=Object.prototype.propertyIsEnumerable,Gc=(t,e,r)=>e in t?Fc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Kc=(t,e)=>{for(var r in e||(e={}))qc.call(e,r)&&Gc(t,r,e[r]);if(Wc)for(var r of Wc(e))Vc.call(e,r)&&Gc(t,r,e[r]);return t},Zc=(t,e)=>zc(t,Hc(e));function Jc(t){return Number(t[0].split(":")[1])}function Qc(t){return`0x${t.toString(16)}`}class Yc{constructor(){this.events=new y.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(t,e)=>(this.events.on(t,e),this),this.once=(t,e)=>(this.events.once(t,e),this),this.removeListener=(t,e)=>(this.events.removeListener(t,e),this),this.off=(t,e)=>(this.events.off(t,e),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const e=new Yc;return await e.initialize(t),e}async request(t){return await this.signer.request(t,this.formatChainId(this.chainId))}sendAsync(t,e){this.signer.sendAsync(t,e,this.formatChainId(this.chainId))}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:e,optional:r}=function(t){const{chains:e,optionalChains:r,methods:n,optionalMethods:i,events:s,optionalEvents:o,rpcMap:a}=t;if(!re(e))throw new Error("Invalid chains");const c={chains:e,methods:n||Lc,events:s||Dc,rpcMap:Kc({},e.length?{[Jc(e)]:a[Jc(e)]}:{})},l=s?.filter((t=>!Dc.includes(t))),u=n?.filter((t=>!Lc.includes(t)));if(!(r||o||i||null!=l&&l.length||null!=u&&u.length))return{required:e.length?c:void 0};const h={chains:[...new Set(l?.length&&u?.length||!r?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(null!=i&&i.length?i:Uc))],events:[...new Set(c.events.concat(null!=o&&o.length?o:$c))],rpcMap:a};return{required:e.length?c:void 0,optional:r.length?h:void 0}}(this.rpc);try{const n=await new Promise((async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((t=>{!t.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(Zc(Kc({namespaces:Kc({},e&&{[this.namespace]:e})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:t?.pairingTopic})).then((t=>{n(t)})).catch((t=>{i(new Error(t.message))}))}));if(!n)return;const i=function(t,e=[]){const r=[];return Object.keys(t).forEach((n=>{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.accounts)})),r}(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit("connect",{chainId:Qc(this.chainId)})}catch(t){throw this.signer.logger.error(t),t}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(t=>{const{params:e}=t,{event:r}=e;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",t)})),this.signer.on("chainChanged",(t=>{const e=parseInt(t);this.chainId=e,this.events.emit("chainChanged",Qc(this.chainId)),this.persist()})),this.signer.on("session_update",(t=>{this.events.emit("session_update",t)})),this.signer.on("session_delete",(t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",Zc(Kc({},function(t,e){const{message:r,code:n}=ee[t];return{message:e?`${r} ${e}`:r,code:n}}("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(t=>{var e,r;this.rpc.showQrModal&&(null==(e=this.modal)||e.closeModal(),null==(r=this.modal)||r.openModal({uri:t})),this.events.emit("display_uri",t)}))}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return"string"==typeof t&&t.startsWith(`${this.namespace}:`)}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const e=t.filter((t=>this.isCompatibleChainId(t))).map((t=>this.parseChainId(t)));e.length&&(this.chainId=e[0],this.events.emit("chainChanged",Qc(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const e=this.parseChainId(t);this.chainId=e,this.switchEthereumChain(e)}}parseAccountId(t){const[e,r,n]=t.split(":");return{chainId:`${e}:${r}`,address:n}}setAccounts(t){this.accounts=t.filter((t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId)).map((t=>this.parseAccountId(t).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var e,r;const n=null!=(e=t?.chains)?e:[],i=null!=(r=t?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=n.length?t?.methods||Lc:[],a=n.length?t?.events||Dc:[],c=t?.optionalMethods||[],l=t?.optionalEvents||[],u=t?.rpcMap||this.buildRpcMap(s,t.projectId),h=t?.qrModalOptions||void 0;return{chains:n?.map((t=>this.formatChainId(t))),optionalChains:i.map((t=>this.formatChainId(t))),methods:o,events:a,optionalMethods:c,optionalEvents:l,rpcMap:u,showQrModal:!(null==t||!t.showQrModal),qrModalOptions:h,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,e){const r={};return t.forEach((t=>{r[t]=this.getRpcUrl(t,e)})),r}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?Jc(this.rpc.chains):Jc(this.rpc.optionalChains),this.signer=await jc.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let t;try{const{WalletConnectModal:e}=await Promise.resolve().then(r.bind(r,9343));t=e}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(t)try{this.modal=new t(Kc({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains},this.rpc.qrModalOptions))}catch(t){throw this.signer.logger.error(t),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:e,optionalChains:r,rpcMap:n}=t;e&&re(e)&&(this.rpc.chains=e.map((t=>this.formatChainId(t))),e.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)}))),r&&re(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((t=>this.formatChainId(t))),r.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)})))}getRpcUrl(t,e){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[t])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${t}&projectId=${e||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),e=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:e?.accounts),this.setAccounts(e?.accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return"string"==typeof t||t instanceof String?[this.parseAccount(t)]:t.map((t=>this.parseAccount(t)))}}const Xc=Yc},7283:(t,e,r)=>{"use strict";const n=r(610),i=r(4020),s=r(500),o=r(2806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=f(r[t],e);else n[t]=f(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=p,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},8200:(t,e,r)=>{"use strict";r.d(e,{q:()=>n});class n{}},997:(t,e,r)=>{"use strict";r.r(e),r.d(e,{IEvents:()=>n.q});var n=r(8200)},2568:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HEARTBEAT_EVENTS=e.HEARTBEAT_INTERVAL=void 0;const n=r(6736);e.HEARTBEAT_INTERVAL=n.FIVE_SECONDS,e.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},3401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(2568),e)},8969:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeat=void 0;const n=r(655),i=r(7187),s=r(6736),o=r(1614),a=r(3401);class c extends o.IHeartBeat{constructor(t){super(t),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(null==t?void 0:t.interval)||a.HEARTBEAT_INTERVAL}static init(t){return n.__awaiter(this,void 0,void 0,(function*(){const e=new c(t);return yield e.init(),e}))}init(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}initialize(){return n.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),s.toMiliseconds(this.interval))}))}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}e.HeartBeat=c},772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(8969),e),n.__exportStar(r(1614),e),n.__exportStar(r(3401),e)},4174:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IHeartBeat=void 0;const n=r(997);class i extends n.IEvents{constructor(t){super()}}e.IHeartBeat=i},1614:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(4174),e)},5727:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PINO_CUSTOM_CONTEXT_KEY=e.PINO_LOGGER_DEFAULTS=void 0,e.PINO_LOGGER_DEFAULTS={level:"info"},e.PINO_CUSTOM_CONTEXT_KEY="custom_context"},9107:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pino=void 0;const n=r(655),i=n.__importDefault(r(6559));Object.defineProperty(e,"pino",{enumerable:!0,get:function(){return i.default}}),n.__exportStar(r(5727),e),n.__exportStar(r(8048),e)},8048:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateChildLogger=e.formatChildLoggerContext=e.getLoggerContext=e.setBrowserLoggerContext=e.getBrowserLoggerContext=e.getDefaultLoggerOptions=void 0;const n=r(5727);function i(t,e=n.PINO_CUSTOM_CONTEXT_KEY){return t[e]||""}function s(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){return t[r]=e,t}function o(t,e=n.PINO_CUSTOM_CONTEXT_KEY){let r="";return r=void 0===t.bindings?i(t,e):t.bindings().context||"",r}function a(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=o(t,r);return i.trim()?`${i}/${e}`:e}e.getDefaultLoggerOptions=function(t){return Object.assign(Object.assign({},t),{level:(null==t?void 0:t.level)||n.PINO_LOGGER_DEFAULTS.level})},e.getBrowserLoggerContext=i,e.setBrowserLoggerContext=s,e.getLoggerContext=o,e.formatChildLoggerContext=a,e.generateChildLogger=function(t,e,r=n.PINO_CUSTOM_CONTEXT_KEY){const i=a(t,e,r);return s(t.child({context:i}),i,r)}},1882:()=>{},3014:()=>{},7338:(t,e,r)=>{"use strict";const n=r(610),i=r(4020),s=r(500),o=r(2806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=f(r[t],e);else n[t]=f(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=p,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},6900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(6869),e),n.__exportStar(r(8033),e)},6869:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_THOUSAND=e.ONE_HUNDRED=void 0,e.ONE_HUNDRED=100,e.ONE_THOUSAND=1e3},8033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=5*e.ONE_MINUTE,e.TEN_MINUTES=10*e.ONE_MINUTE,e.THIRTY_MINUTES=30*e.ONE_MINUTE,e.SIXTY_MINUTES=60*e.ONE_MINUTE,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=3*e.ONE_HOUR,e.SIX_HOURS=6*e.ONE_HOUR,e.TWELVE_HOURS=12*e.ONE_HOUR,e.TWENTY_FOUR_HOURS=24*e.ONE_HOUR,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=3*e.ONE_DAY,e.FIVE_DAYS=5*e.ONE_DAY,e.SEVEN_DAYS=7*e.ONE_DAY,e.THIRTY_DAYS=30*e.ONE_DAY,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=2*e.ONE_WEEK,e.THREE_WEEKS=3*e.ONE_WEEK,e.FOUR_WEEKS=4*e.ONE_WEEK,e.ONE_YEAR=365*e.ONE_DAY},6736:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4273),e),n.__exportStar(r(7001),e),n.__exportStar(r(2939),e),n.__exportStar(r(6900),e)},2939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(8766),e)},8766:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWatch=void 0,e.IWatch=class{}},3207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromMiliseconds=e.toMiliseconds=void 0;const n=r(6900);e.toMiliseconds=function(t){return t*n.ONE_THOUSAND},e.fromMiliseconds=function(t){return Math.floor(t/n.ONE_THOUSAND)}},3873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0,e.delay=function(t){return new Promise((e=>{setTimeout((()=>{e(!0)}),t)}))}},4273:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(3873),e),n.__exportStar(r(3207),e)},7001:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const e=this.get(t);if(void 0!==e.elapsed)throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-e.started;this.timestamps.set(t,{started:e.started,elapsed:r})}get(t){const e=this.timestamps.get(t);if(void 0===e)throw new Error(`No timestamp found for label: ${t}`);return e}elapsed(t){const e=this.get(t);return e.elapsed||Date.now()-e.started}}e.Watch=r,e.default=r},4543:(t,e,r)=>{"use strict";const n=r(610),i=r(4020),s=r(500),o=r(2806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=f(r[t],e);else n[t]=f(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=p,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},2873:(t,e)=>{"use strict";function r(t){let e;return"undefined"!=typeof window&&void 0!==window[t]&&(e=window[t]),e}function n(t){const e=r(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLocalStorage=e.getLocalStorageOrThrow=e.getCrypto=e.getCryptoOrThrow=e.getLocation=e.getLocationOrThrow=e.getNavigator=e.getNavigatorOrThrow=e.getDocument=e.getDocumentOrThrow=e.getFromWindowOrThrow=e.getFromWindow=void 0,e.getFromWindow=r,e.getFromWindowOrThrow=n,e.getDocumentOrThrow=function(){return n("document")},e.getDocument=function(){return r("document")},e.getNavigatorOrThrow=function(){return n("navigator")},e.getNavigator=function(){return r("navigator")},e.getLocationOrThrow=function(){return n("location")},e.getLocation=function(){return r("location")},e.getCryptoOrThrow=function(){return n("crypto")},e.getCrypto=function(){return r("crypto")},e.getLocalStorageOrThrow=function(){return n("localStorage")},e.getLocalStorage=function(){return r("localStorage")}},5755:(t,e,r)=>{"use strict";e.D=void 0;const n=r(2873);e.D=function(){let t,e;try{t=n.getDocumentOrThrow(),e=n.getLocationOrThrow()}catch(t){return null}function r(...e){const r=t.getElementsByTagName("meta");for(let t=0;tn.getAttribute(t))).filter((t=>!!t&&e.includes(t)));if(i.length&&i){const t=n.getAttribute("content");if(t)return t}}return""}const i=function(){let e=r("name","og:site_name","og:title","twitter:title");return e||(e=t.title),e}();return{description:r("description","og:description","twitter:description","keywords"),url:e.origin,icons:function(){const r=t.getElementsByTagName("link"),n=[];for(let t=0;t-1){const t=i.getAttribute("href");if(t)if(-1===t.toLowerCase().indexOf("https:")&&-1===t.toLowerCase().indexOf("http:")&&0!==t.indexOf("//")){let r=e.protocol+"//"+e.host;if(0===t.indexOf("/"))r+=t;else{const n=e.pathname.split("/");n.pop(),r+=n.join("/")+"/"+t}n.push(r)}else if(0===t.indexOf("//")){const r=e.protocol+t;n.push(r)}else n.push(t)}}return n}(),name:i}}},2295:(t,e,r)=>{const{sha3:n,BN:i}=r(8269),s=r(3338),o={savedABIs:[],methodIDs:{},keepNonDecodedLogs:!1};function a(t){return"tuple"===t.type?"("+t.components.map(a).join(",")+")":t.type}t.exports={getABIs:function(){return o.savedABIs},addABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map(a).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]=t:o.methodIDs[e.slice(2,10)]=t}})),o.savedABIs=o.savedABIs.concat(t)},getMethodIDs:function(){return o.methodIDs},decodeMethod:function(t){const e=t.slice(2,10),r=o.methodIDs[e];if(r){let e=s.decodeParameters(r.inputs,t.slice(10)),n={name:r.name,params:[]};for(let t=0;tnew i(t).toString())):new i(s).toString()),l&&(o=Array.isArray(s)?s.map((t=>t.toLowerCase())):s.toLowerCase()),n.params.push({name:r.inputs[t].name,value:o,type:r.inputs[t].type})}return n}},decodeLogs:function(t){return t.filter((t=>t.topics.length>0)).map((t=>{const e=t.topics[0].slice(2),r=o.methodIDs[e];if(r){const e=t.data;let n=[],o=0,a=1,c=[];r.inputs.map((function(t){t.indexed||c.push(t.type)}));const l=s.decodeParameters(c,e.slice(2));return r.inputs.map((function(e){let r={name:e.name,type:e.type};if(e.indexed?(r.value=t.topics[a],a++):(r.value=l[o],o++),"address"===e.type&&(r.value=r.value.toLowerCase(),r.value.length>42)){let t=r.value.length-42,e=r.value.split("");e.splice(2,t),r.value=e.join("")}"uint256"!==e.type&&"uint8"!==e.type&&"int"!==e.type||("string"==typeof r.value&&r.value.startsWith("0x")?r.value=new i(r.value.slice(2),16).toString(10):r.value=new i(r.value).toString(10)),n.push(r)})),{name:r.name,events:n,address:t.address}}})).filter((t=>o.keepNonDecodedLogs||t))},removeABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map((function(t){return t.type})).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]&&delete o.methodIDs[e.slice(2)]:o.methodIDs[e.slice(2,10)]&&delete o.methodIDs[e.slice(2,10)]}}))},keepNonDecodedLogs:function(){o.keepNonDecodedLogs=!0},discardNonDecodedLogs:function(){o.keepNonDecodedLogs=!1}}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=c(t),o=s[0],a=s[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,a)),u=0,h=a>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,c=n-i;ac?c:a+o));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,n){for(var i,s,o=[],a=e;a>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4431:function(t,e,r){var n;!function(i){"use strict";var s,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,p=9007199254740991,f=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e=0|t;return t>0||t===e?e:e-1}function w(t){for(var e,r,n=1,i=t.length,s=t[0]+"";nl^r?1:-1;for(a=(c=i.length)<(l=s.length)?c:l,o=0;os[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function v(t,e,r,n){if(tr||t!==c(t))throw Error(l+(n||"Argument")+("number"==typeof t?tr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function E(t){var e=t.c.length-1;return y(t.e/d)==e&&t.c[e]%2!=0}function x(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function _(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else eL?y.c=y.e=null:t.e=10;h/=10,l++);return void(l>L?y.c=y.e=null:(y.e=l,y.c=[t]))}g=String(t)}else{if(!o.test(g=String(t)))return i(y,g,f);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(l<0&&(l=h),l+=+g.slice(h+1),g=g.substring(0,h)):l<0&&(l=g.length)}else{if(v(e,2,z.length,"Base"),10==e&&H)return K(y=new W(t),T+y.e+1,N);if(g=String(t),f="number"==typeof t){if(0*t!=0)return i(y,g,f,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,W.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=z.slice(0,e),l=h=0,m=g.length;hl){l=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,l=0;continue}return i(y,String(t),f,e)}f=!1,(l=(g=n(g,e,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,f&&W.DEBUG&&m>15&&(t>p||t!==c(t)))throw Error(u+y.s*t);if((l=l-h-1)>L)y.c=y.e=null;else if(l=B)?x(c,o):_(c,o,"0");else if(s=(t=K(new W(t),e,r)).e,a=(c=w(t.c)).length,1==n||2==n&&(e<=s||s<=R)){for(;aa){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=s-a)>0)for(s+1==a&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function V(t,e){for(var r,n=1,i=new W(t[0]);n=10;i/=10,n++);return(r=n+r*d-1)>L?t.c=t.e=null:r=10;l/=10,i++);if((s=e-i)<0)s+=d,o=e,m=(u=g[p=0])/y[i-o-1]%10|0;else if((p=a((s+1)/d))>=g.length){if(!n)break t;for(;g.length<=p;g.push(0));u=m=0,i=1,o=(s%=d)-d+1}else{for(u=l=g[p],i=1;l>=10;l/=10,i++);m=(o=(s%=d)-d+i)<0?0:u/y[i-o-1]%10|0}if(n=n||e<0||null!=g[p+1]||(o<0?u:u%y[i-o-1]),n=r<4?(m||n)&&(0==r||r==(t.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(s>0?o>0?u/y[i-o]:0:g[p-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,n?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==s?(g.length=p,l=1,p--):(g.length=p+1,l=y[d-s],g[p]=o>0?c(u/y[i-o]%y[o])*l:0),n)for(;;){if(0==p){for(s=1,o=g[0];o>=10;o/=10,s++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);s!=l&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[p]+=l,g[p]!=h)break;g[p--]=0,l=1}for(s=g.length;0===g[--s];g.pop());}t.e>L?t.c=t.e=null:t.e=B?x(e,r):_(e,r,"0"),t.s<0?"-"+e:e)}return W.clone=t,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(l+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(v(r=t[e],0,g,e),T=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(v(r=t[e],0,8,e),N=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(v(r[0],-g,0,e),v(r[1],0,g,e),R=r[0],B=r[1]):(v(r,-g,g,e),R=-(B=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)v(r[0],-g,-1,e),v(r[1],1,g,e),j=r[0],L=r[1];else{if(v(r,-g,g,e),!r)throw Error(l+e+" cannot be zero: "+r);j=-(L=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(l+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!r,Error(l+"crypto unavailable");U=r}else U=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(v(r=t[e],0,9,e),D=r),t.hasOwnProperty(e="POW_PRECISION")&&(v(r=t[e],0,g,e),$=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(l+e+" not an object: "+r);F=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+e+" invalid: "+r);H="0123456789"==r.slice(0,10),z=r}}return{DECIMAL_PLACES:T,ROUNDING_MODE:N,EXPONENTIAL_AT:[R,B],RANGE:[j,L],CRYPTO:U,MODULO_MODE:D,POW_PRECISION:$,FORMAT:F,ALPHABET:z}},W.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!W.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===s||-1===s)&&i>=-g&&i<=g&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%d)<1&&(e+=d),String(n[0]).length==e){for(e=0;e=h||r!==c(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+t)},W.maximum=W.max=function(){return V(arguments,P.lt)},W.minimum=W.min=function(){return V(arguments,P.gt)},W.random=(s=9007199254740992,A=Math.random()*s&2097151?function(){return c(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,s,o=0,u=[],h=new W(O);if(null==t?t=T:v(t,0,g),i=a(t/d),U)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));o>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[o]=r[0],e[o+1]=r[1]):(u.push(s%1e14),o+=2);o=i/2}else{if(!crypto.randomBytes)throw U=!1,Error(l+"crypto unavailable");for(e=crypto.randomBytes(i*=7);o=9e15?crypto.randomBytes(7).copy(e,o):(u.push(s%1e14),o+=7);o=i/7}if(!U)for(;o=10;s/=10,o++);or-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,s,o,a){var c,l,u,h,d,p,f,m,g=n.indexOf("."),y=T,b=N;for(g>=0&&(h=$,$=0,n=n.replace(".",""),p=(m=new W(i)).pow(n.length-g),$=h,m.c=e(_(w(p.c),p.e,"0"),10,s,t),m.e=m.c.length),u=h=(f=e(n,i,s,a?(c=z,t):(c=t,z))).length;0==f[--h];f.pop());if(!f[0])return c.charAt(0);if(g<0?--u:(p.c=f,p.e=u,p.s=o,f=(p=r(p,m,y,b,s)).c,d=p.r,u=p.e),g=f[l=u+y+1],h=s/2,d=d||l<0||null!=f[l+1],d=b<4?(null!=g||d)&&(0==b||b==(p.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&f[l-1]||b==(p.s<0?8:7)),l<1||!f[0])n=d?_(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(f.length=l,d)for(--s;++f[--l]>s;)f[l]=0,l||(++u,f=[1].concat(f));for(h=f.length;!f[--h];);for(g=0,n="";g<=h;n+=c.charAt(f[g++]));n=_(n,u,c.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,s,o,a=0,c=t.length,l=e%m,u=e/m|0;for(t=t.slice();c--;)a=((i=l*(s=t[c]%m)+(n=u*s+(o=t[c]/m|0)*l)%m*m+a)/r|0)+(n/m|0)+u*o,t[c]=i%r;return a&&(t=[a].concat(t)),t}function e(t,e,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;ie[i]?1:-1;break}return s}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]1;t.splice(0,1));}return function(n,i,s,o,a){var l,u,p,f,m,g,w,b,v,E,x,_,A,k,S,C,M,I=n.s==i.s?1:-1,P=n.c,O=i.c;if(!(P&&P[0]&&O&&O[0]))return new W(n.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*I:I/0:NaN);for(v=(b=new W(I)).c=[],I=s+(u=n.e-i.e)+1,a||(a=h,u=y(n.e/d)-y(i.e/d),I=I/d|0),p=0;O[p]==(P[p]||0);p++);if(O[p]>(P[p]||0)&&u--,I<0)v.push(1),f=!0;else{for(k=P.length,C=O.length,p=0,I+=2,(m=c(a/(O[0]+1)))>1&&(O=t(O,m,a),P=t(P,m,a),C=O.length,k=P.length),A=C,x=(E=P.slice(0,C)).length;x=a/2&&S++;do{if(m=0,(l=e(O,E,C,x))<0){if(_=E[0],C!=x&&(_=_*a+(E[1]||0)),(m=c(_/S))>1)for(m>=a&&(m=a-1),w=(g=t(O,m,a)).length,x=E.length;1==e(g,E,w,x);)m--,r(g,C=10;I/=10,p++);K(b,s+(b.e=p+u*d-1)+1,o,f)}else b.e=u,b.r=+f;return b}}(),k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,C=/^\.([^.]+)$/,M=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,s=r?e:e.replace(I,"");if(M.test(s))t.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(k,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,s=s.replace(S,"$1").replace(C,"0.$1")),e!=s))return new W(s,i);if(W.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},P.absoluteValue=P.abs=function(){var t=new W(this);return t.s<0&&(t.s=1),t},P.comparedTo=function(t,e){return b(this,new W(t,e))},P.decimalPlaces=P.dp=function(t,e){var r,n,i,s=this;if(null!=t)return v(t,0,g),null==e?e=N:v(e,0,8),K(new W(s),t+s.e+1,e);if(!(r=s.c))return null;if(n=((i=r.length-1)-y(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(t,e){return r(this,new W(t,e),T,N)},P.dividedToIntegerBy=P.idiv=function(t,e){return r(this,new W(t,e),0,1)},P.exponentiatedBy=P.pow=function(t,e){var r,n,i,s,o,u,h,p,f=this;if((t=new W(t)).c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+Z(t));if(null!=e&&(e=new W(e)),o=t.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!t.c||!t.c[0])return p=new W(Math.pow(+Z(f),o?t.s*(2-E(t)):+Z(t))),e?p.mod(e):p;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new W(NaN);(n=!u&&f.isInteger()&&e.isInteger())&&(f=f.mod(e))}else{if(t.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||o&&f.c[1]>=24e7:f.c[0]<8e13||o&&f.c[0]<=9999975e7)))return s=f.s<0&&E(t)?-0:0,f.e>-1&&(s=1/s),new W(u?1/s:s);$&&(s=a($/d+2))}for(o?(r=new W(.5),u&&(t.s=1),h=E(t)):h=(i=Math.abs(+Z(t)))%2,p=new W(O);;){if(h){if(!(p=p.times(f)).c)break;s?p.c.length>s&&(p.c.length=s):n&&(p=p.mod(e))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(K(t=t.times(r),t.e+1,1),t.e>14)h=E(t);else{if(0==(i=+Z(t)))break;h=i%2}f=f.times(f),s?f.c&&f.c.length>s&&(f.c.length=s):n&&(f=f.mod(e))}return n?p:(u&&(p=O.div(p)),e?p.mod(e):s?K(p,$,N,void 0):p)},P.integerValue=function(t){var e=new W(this);return null==t?t=N:v(t,0,8),K(e,e.e+1,t)},P.isEqualTo=P.eq=function(t,e){return 0===b(this,new W(t,e))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(t,e){return b(this,new W(t,e))>0},P.isGreaterThanOrEqualTo=P.gte=function(t,e){return 1===(e=b(this,new W(t,e)))||0===e},P.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},P.isLessThan=P.lt=function(t,e){return b(this,new W(t,e))<0},P.isLessThanOrEqualTo=P.lte=function(t,e){return-1===(e=b(this,new W(t,e)))||0===e},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(t,e){var r,n,i,s,o=this,a=o.s;if(e=(t=new W(t,e)).s,!a||!e)return new W(NaN);if(a!=e)return t.s=-e,o.plus(t);var c=o.e/d,l=t.e/d,u=o.c,p=t.c;if(!c||!l){if(!u||!p)return u?(t.s=-e,t):new W(p?o:NaN);if(!u[0]||!p[0])return p[0]?(t.s=-e,t):new W(u[0]?o:3==N?-0:0)}if(c=y(c),l=y(l),u=u.slice(),a=c-l){for((s=a<0)?(a=-a,i=u):(l=c,i=p),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(n=(s=(a=u.length)<(e=p.length))?a:e,a=e=0;e0)for(;e--;u[r++]=0);for(e=h-1;n>a;){if(u[--n]=0;){for(r=0,f=_[i]%v,g=_[i]/v|0,s=i+(o=c);s>i;)r=((l=f*(l=x[--o]%v)+(a=g*l+(u=x[o]/v|0)*f)%v*v+w[s]+r)/b|0)+(a/v|0)+g*u,w[s--]=l%b;w[s]=r}return r?++n:w.splice(0,1),G(t,w,n)},P.negated=function(){var t=new W(this);return t.s=-t.s||null,t},P.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new W(t,e)).s,!i||!e)return new W(NaN);if(i!=e)return t.s=-e,n.minus(t);var s=n.e/d,o=t.e/d,a=n.c,c=t.c;if(!s||!o){if(!a||!c)return new W(i/0);if(!a[0]||!c[0])return c[0]?t:new W(a[0]?n:0*i)}if(s=y(s),o=y(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=c):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(e=c.length)<0&&(r=c,c=a,a=r,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++o),G(t,a,o)},P.precision=P.sd=function(t,e){var r,n,i,s=this;if(null!=t&&t!==!!t)return v(t,1,g),null==e?e=N:v(e,0,8),K(new W(s),t,e);if(!(r=s.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&s.e+1>n&&(n=s.e+1),n},P.shiftedBy=function(t){return v(t,-9007199254740991,p),this.times("1e"+t)},P.squareRoot=P.sqrt=function(){var t,e,n,i,s,o=this,a=o.c,c=o.s,l=o.e,u=T+4,h=new W("0.5");if(1!==c||!a||!a[0])return new W(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(c=Math.sqrt(+Z(o)))||c==1/0?(((e=w(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(+e),l=y((l+1)/2)-(l<0||l%2),n=new W(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new W(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(s=n,n=h.times(s.plus(r(o,s,u,1))),w(s.c).slice(0,c)===(e=w(n.c)).slice(0,c)){if(n.e0&&m>0){for(s=m%a||a,h=f.substr(0,s);s0&&(h+=u+f.slice(s)),p&&(h="-"+h)}n=d?h+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):h}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(t){var e,n,i,s,o,a,c,u,h,p,m,g,y=this,b=y.c;if(null!=t&&(!(c=new W(t)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!b)return new W(y);for(e=new W(O),h=n=new W(O),i=u=new W(O),g=w(b),o=e.e=g.length-y.e-1,e.c[0]=f[(a=o%d)<0?d+a:a],t=!t||c.comparedTo(e)>0?o>0?e:h:c,a=L,L=1/0,c=new W(g),u.c[0]=0;p=r(c,e,0,1),1!=(s=n.plus(p.times(i))).comparedTo(t);)n=i,i=s,h=u.plus(p.times(s=h)),u=s,e=c.minus(p.times(s=e)),c=s;return s=r(t.minus(n),i,0,1),u=u.plus(s.times(h)),n=n.plus(s.times(i)),u.s=h.s=y.s,m=r(h,i,o*=2,N).minus(y).abs().comparedTo(r(u,n,o,N).minus(y).abs())<1?[h,i]:[u,n],L=a,m},P.toNumber=function(){return+Z(this)},P.toPrecision=function(t,e){return null!=t&&v(t,1,g),q(this,t,e,2)},P.toString=function(t){var e,r=this,i=r.s,s=r.e;return null===s?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=s<=R||s>=B?x(w(r.c),s):_(w(r.c),s,"0"):10===t&&H?e=_(w((r=K(new W(r),T+s+1,N)).c),r.e,"0"):(v(t,2,z.length,"Base"),e=n(_(w(r.c),s,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},P.valueOf=P.toJSON=function(){return Z(this)},P._isBigNumber=!0,null!=e&&W.set(e),W}(),s.default=s.BigNumber=s,void 0===(n=function(){return s}.call(e,r,e,t))||(t.exports=n)}()},8764:(t,e,r)=>{"use strict";var n=r(9742),i=r(645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=a(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);var i=function(t){if(c.isBuffer(t)){var e=0|f(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||z(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),a(t<0?0:0|f(t))}function d(t){for(var e=t.length<0?0:0|f(t.length),r=a(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(i)return n?-1:U(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return S(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return k(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var s,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){for(var h=!0,d=0;di&&(n=i):n=i;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function k(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function S(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(s=t[i+1]))&&(c=(31&l)<<6|63&s)>127&&(u=c);break;case 3:s=t[i+1],o=t[i+2],128==(192&s)&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn.length?c.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else{if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i)}i+=s.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(F(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.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===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),a=Math.min(s,o),l=this.slice(n,i),u=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return x(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function M(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",s=e;sr)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,r,n,i,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,s){return e=+e,r>>>=0,s||R(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function j(t,e,r,n,s){return e=+e,r>>>=0,s||R(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var 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||T(t,e,this.length);for(var n=this[t],i=1,s=0;++s>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=this[t],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,n||N(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||N(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},c.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return j(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return j(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(s=e;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function D(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!=t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},1924:(t,e,r)=>{"use strict";var n=r(210),i=r(5559),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},5559:(t,e,r)=>{"use strict";var n=r(8612),i=r(210),s=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(o,s),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=a(n,o,arguments);if(c&&l){var r=c(e,"length");r.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var h=function(){return a(n,s,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h},4098:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in t,o="ArrayBuffer"in t;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=f(e);return e.readAsArrayBuffer(t),r}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=f(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function E(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},E.error=function(){var t=new E(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];E.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new E(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function _(t,r){return new Promise((function(n,s){var o=new b(t,r);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new E(i,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}_.polyfill=!0,t.fetch||(t.fetch=_,t.Headers=d,t.Request=b,t.Response=E),e.Headers=d,e.Request=b,e.Response=E,e.fetch=_,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},4020:t=>{"use strict";var e="%[a-f0-9]{2}",r=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],i(r),i(n))}function s(t){try{return decodeURIComponent(t)}catch(s){for(var e=t.match(r)||[],n=1;n{"use strict";var e={single_source_shortest_paths:function(t,r,n){var i={},s={};s[r]=0;var o,a,c,l,u,h,d,p=e.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(c in a=(o=p.pop()).value,l=o.cost,u=t[a]||{})u.hasOwnProperty(c)&&(h=l+u[c],d=s[c],(void 0===s[c]||d>h)&&(s[c]=h,p.push(c,h),i[c]=a));if(void 0!==n&&void 0===s[n]){var f=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,r,n){var i=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,i={};for(r in t=t||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},2378:t=>{"use strict";t.exports=function(t){for(var e=[],r=t.length,n=0;n=55296&&i<=56319&&r>n+1){var s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(i=1024*(i-55296)+s-56320+65536,n+=1)}i<128?e.push(i):i<2048?(e.push(i>>6|192),e.push(63&i|128)):i<55296||i>=57344&&i<65536?(e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)):i>=65536&&i<=1114111?(e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},6877:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(339);function i(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{512}$/i.test(t)||!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))}function s(t,e){"object"==typeof e&&e.constructor===Uint8Array&&(e=n.bytesToHex(e));const r=n.keccak256(e).replace("0x","");for(let e=0;e<12;e+=4){const n=(parseInt(r.substr(e,2),16)<<8)+parseInt(r.substr(e+2,2),16)&2047,i=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function a(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{64}$/i.test(t)||!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))}function c(t){return!("string"!=typeof t||!t.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=i,e.isInBloom=s,e.isUserEthereumAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid ethereum address given: "${e}"`);return s(t,n.padLeft(e,64))},e.isContractAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid contract address given: "${e}"`);return s(t,e)},e.isTopicInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!a(e))throw new Error("Invalid topic");return s(t,e)},e.isTopic=a,e.isAddress=c},339:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(1094);function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);const r=[];for(let e=0;e=256||parseInt(String(r))!=r)return!1}return!0}(t))return s(new Uint8Array(t));throw new Error("invalid arrayify value")}function s(t){return void 0!==t.slice||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}e.keccak256=function(t){return"0x"+n.keccak_256(i(t))},e.padLeft=(t,e)=>{const r=/^0x/i.test(t)||"number"==typeof t,n=e-(t=t.toString().replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=function(t){const e=[];for(let r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return`0x${e.join("").replace(/^0+/,"")}`},e.toByteArray=i},2192:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak512=e.keccak384=e.keccak256=e.keccak224=void 0;const n=r(5426),i=r(8040);e.keccak224=(0,i.wrapHash)(n.keccak_224),e.keccak256=(()=>{const t=(0,i.wrapHash)(n.keccak_256);return t.create=n.keccak_256.create,t})(),e.keccak384=(0,i.wrapHash)(n.keccak_384),e.keccak512=(0,i.wrapHash)(n.keccak_512)},5053:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var n=r(3497);Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},8040:function(t,e,r){"use strict";t=r.nmd(t);var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const i=n(r(7320)),s=r(8089),o=i.default.bool;e.assertBool=o;const a=i.default.bytes;e.assertBytes=a;var c=r(8089);Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),e.bytesToUtf8=function(t){if(!(t instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof t);return(new TextDecoder).decode(t)},e.hexToBytes=function(t){const e=t.startsWith("0x")?t.substring(2):t;return(0,s.hexToBytes)(e)},e.equalsBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;r(i.default.bytes(e),t(e))},e.crypto=(()=>{const e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},79:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(798),i=r(9681),s=r(2541);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},2781:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(3570),i=r(3912),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=p,n>c&&(n-=d,s+=o);const a=e,f=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[f]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},6791:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(3570),i=r(3912),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),p=o(0,u),f=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(p,t,f,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:p,expand:f,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===f)v=u(t,g,b,p);else if("xof"===f)v=h(t,g,b,a,p);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');v=t}const E=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},3570:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapHashToField=e.getMinHashLength=e.getFieldBytesLength=e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(3912),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function p(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function f(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=p,e.tonelliShanks=f,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function v(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function E(t){const e=v(t);return e+Math.ceil(e/2)}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?p(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*p(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>p(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s},e.getFieldBytesLength=v,e.getMinHashLength=E,e.mapHashToField=function(t,e,r=!1){const i=t.length,o=v(e),a=E(e);if(i<16||i1024)throw new Error(`expected ${a}-1024 bytes of input, got ${i}`);const c=h(r?(0,n.bytesToNumberBE)(t):(0,n.bytesToNumberLE)(t),e-s)+s;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)}},3912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),f=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=p(t),i=p(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=p())=>{i=a(f([0]),t),n=a(),0!==t.length&&(i=a(f([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},2541:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(3570),i=r(3912),s=r(3912),o=r(2781),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),p=BigInt(4);function f(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function p(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),p=r.mul(o,o),f=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,f),l=r.add(c,l),c=r.sub(p,l),l=r.add(p,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),f=r.mul(t,f),m=r.sub(h,f),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,f),h=r.mul(h,m),l=r.add(l,h),f=r.mul(o,a),f=r.add(f,f),h=r.mul(f,m),c=r.sub(c,h),u=r.mul(f,p),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const p=e.a,f=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),E=r.add(o,a);v=r.mul(v,E),E=r.add(m,g),v=r.sub(v,E),E=r.add(n,s);let x=r.add(o,c);return E=r.mul(E,x),x=r.add(m,b),E=r.sub(E,x),x=r.add(i,s),l=r.add(a,c),x=r.mul(x,l),l=r.add(g,b),x=r.sub(x,l),h=r.mul(p,E),l=r.mul(f,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(p,b),E=r.mul(f,E),g=r.add(g,b),b=r.sub(m,b),b=r.mul(p,b),E=r.add(E,b),m=r.mul(g,E),u=r.add(u,m),m=r.mul(x,E),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(x,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(f(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,p=this;for(;o>l||c>l;)o&u&&(h=h.add(p)),c&u&&(d=d.add(p)),p=p.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){f(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:p}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,f),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=f,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function p(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=f({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function E(t){return t>c>>u}const x=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class _{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new _(x(t,0,e),x(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new _(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new _(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=p(-o*h),f=p(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,f);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new _(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const A={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(t),r.n)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function k(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const S=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return p(S(t))},M=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:f}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),x=[I(v),I(w)];if(null!=f){const t=!0===f?c(a.BYTES):f;x.push((0,s.ensureBytes)("extraEntropy",t))}const A=i.concatBytes(...x),k=w;return{seed:A,k2sig:function(t){const e=S(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=p(n.x);if(i===l)return;const s=p(r*p(k+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&E(s)&&(a=function(t){return E(t)?p(-t):t}(s),o^=1),new _(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=_.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=_.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new _(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:f}=u,y=C(n),w=m(f),b=p(y*w),v=p(d*w),E=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!E&&p(E.x)===d},ProjectivePoint:g,Signature:_,utils:A}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:p}=r(s,l);h=t.mul(i,n),h=t.mul(h,p),u=t.cmov(u,o,d),h=t.cmov(h,p,d);const f=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,f),u=t.div(u,a),{x:u,y:h}}}},2958:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(7366),i=r(9681),s=r(3570),o=r(2541),a=r(3912),c=r(6791),l=r(79),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),f=(t,e)=>(t+e/p)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,f=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(f,r,e)*d%e,y=(0,s.pow2)(m,p,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,E=(0,s.pow2)(v,l,e)*v%e,x=(0,s.pow2)(E,c,e)*b%e,_=(0,s.pow2)(x,r,e)*d%e,A=(0,s.pow2)(_,a,e)*w%e,k=(0,s.pow2)(A,n,e)*h%e,S=(0,s.pow2)(k,p,e);if(!g.eql(g.sqr(S),t))throw new Error("Cannot find square root");return S}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=f(o*t,e),l=f(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),p=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=p>a;if(m&&(u=e-u),g&&(p=e-p),u>a||p>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:p}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const E=t=>t.toRawBytes(!0).slice(1),x=t=>(0,a.numberToBytesBE)(t,32),_=t=>(0,s.mod)(t,u),A=t=>(0,s.mod)(t,h),k=e.secp256k1.ProjectivePoint;function S(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=k.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:A(-r),bytes:E(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=_(t*t);let r=m(_(e*t+BigInt(7)));r%p!==y&&(r=_(-r));const n=new k(t,r,d);return n.assertValidity(),n}function M(...t){return A((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(u=r)&&y(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),O=(()=>(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),T=(()=>(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();e.hashToCurve=T.hashToCurve,e.encodeToCurve=T.encodeToCurve},6363:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(6363),i=r(9681);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){(0,n.exists)(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add5L=e.add5H=e.add4H=e.add4L=e.add3H=e.add3L=e.add=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0);e.toBig=o;const a=(t,e,r)=>t>>>r;e.shrSH=a;const c=(t,e,r)=>t<<32-r|e>>>r;e.shrSL=c;const l=(t,e,r)=>t>>>r|e<<32-r;e.rotrSH=l;const u=(t,e,r)=>t<<32-r|e>>>r;e.rotrSL=u;const h=(t,e,r)=>t<<64-r|e>>>r-32;e.rotrBH=h;const d=(t,e,r)=>t>>>r-32|e<<64-r;e.rotrBL=d;const p=(t,e)=>e;e.rotr32H=p;const f=(t,e)=>t;e.rotr32L=f;const m=(t,e,r)=>t<>>32-r;e.rotlSH=m;const g=(t,e,r)=>e<>>32-r;e.rotlSL=g;const y=(t,e,r)=>e<>>64-r;e.rotlBH=y;const w=(t,e,r)=>t<>>64-r;function b(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.rotlBL=w,e.add=b;const v=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);e.add3L=v;const E=(t,e,r,n)=>e+r+n+(t/2**32|0)|0;e.add3H=E;const x=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0);e.add4L=x;const _=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0;e.add4H=_;const A=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0);e.add5L=A;const k=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0;e.add5H=k;const S={fromBig:i,split:s,toBig:o,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:h,rotrBL:d,rotr32H:p,rotr32L:f,rotlSH:m,rotlSL:g,rotlBH:y,rotlBL:w,add:b,add3L:v,add3H:E,add4L:x,add4H:_,add5H:k,add5L:A};e.default=S},754:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},798:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(6363),i=r(9681);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},4112:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pbkdf2Async=e.pbkdf2=void 0;const n=r(6363),i=r(798),s=r(9681);function o(t,e,r,o){(0,n.hash)(t);const a=(0,s.checkOpts)({dkLen:32,asyncTick:10},o),{c,dkLen:l,asyncTick:u}=a;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const h=(0,s.toBytes)(e),d=(0,s.toBytes)(r),p=new Uint8Array(l),f=i.hmac.create(t,h),m=f._cloneInto().update(d);return{c,dkLen:l,asyncTick:u,DK:p,PRF:f,PRFSalt:m}}function a(t,e,r,n,i){return t.destroy(),e.destroy(),n&&n.destroy(),i.fill(0),r}e.pbkdf2=function(t,e,r,n){const{c:i,dkLen:c,DK:l,PRF:u,PRFSalt:h}=o(t,e,r,n);let d;const p=new Uint8Array(4),f=(0,s.createView)(p),m=new Uint8Array(u.outputLen);for(let t=1,e=0;e{h._cloneInto(p).update(g).digestInto(g);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.RIPEMD160=void 0;const n=r(915),i=r(9681),s=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((t,e)=>e));let a=[o],c=[o.map((t=>(9*t+5)%16))];for(let t=0;t<4;t++)for(let e of[a,c])e.push(e[t].map((t=>s[t])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((t=>new Uint8Array(t))),u=a.map(((t,e)=>t.map((t=>l[e][t])))),h=c.map(((t,e)=>t.map((t=>l[e][t])))),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),f=(t,e)=>t<>>32-e;function m(t,e,r,n){return 0===t?e^r^n:1===t?e&r|~e&n:2===t?(e|~r)^n:3===t?e&n|r&~n:e^(r|~n)}const g=new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:e,h2:r,h3:n,h4:i}=this;return[t,e,r,n,i]}set(t,e,r,n,i){this.h0=0|t,this.h1=0|e,this.h2=0|r,this.h3=0|n,this.h4=0|i}process(t,e){for(let r=0;r<16;r++,e+=4)g[r]=t.getUint32(e,!0);let r=0|this.h0,n=r,i=0|this.h1,s=i,o=0|this.h2,l=o,y=0|this.h3,w=y,b=0|this.h4,v=b;for(let t=0;t<5;t++){const e=4-t,E=d[t],x=p[t],_=a[t],A=c[t],k=u[t],S=h[t];for(let e=0;e<16;e++){const n=f(r+m(t,i,o,y)+g[_[e]]+E,k[e])+b|0;r=b,b=y,y=0|f(o,10),o=i,i=n}for(let t=0;t<16;t++){const r=f(n+m(e,s,l,w)+g[A[t]]+x,S[t])+v|0;n=v,v=w,w=0|f(l,10),l=s,s=r}}this.set(this.h1+o+w|0,this.h2+y+v|0,this.h3+b+n|0,this.h4+r+s|0,this.h0+i+l|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}e.RIPEMD160=y,e.ripemd160=(0,i.wrapConstructor)((()=>new y))},9468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scryptAsync=e.scrypt=void 0;const n=r(6363),i=r(7366),s=r(4112),o=r(9681),a=(t,e)=>t<>>32-e;function c(t,e,r,n,i,s){let o=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],h=t[e++]^r[n++],d=t[e++]^r[n++],p=t[e++]^r[n++],f=t[e++]^r[n++],m=t[e++]^r[n++],g=t[e++]^r[n++],y=t[e++]^r[n++],w=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],E=t[e++]^r[n++],x=t[e++]^r[n++],_=o,A=c,k=l,S=u,C=h,M=d,I=p,P=f,O=m,T=g,N=y,R=w,B=b,j=v,L=E,U=x;for(let t=0;t<8;t+=2)C^=a(_+B|0,7),O^=a(C+_|0,9),B^=a(O+C|0,13),_^=a(B+O|0,18),T^=a(M+A|0,7),j^=a(T+M|0,9),A^=a(j+T|0,13),M^=a(A+j|0,18),L^=a(N+I|0,7),k^=a(L+N|0,9),I^=a(k+L|0,13),N^=a(I+k|0,18),S^=a(U+R|0,7),P^=a(S+U|0,9),R^=a(P+S|0,13),U^=a(R+P|0,18),A^=a(_+S|0,7),k^=a(A+_|0,9),S^=a(k+A|0,13),_^=a(S+k|0,18),I^=a(M+C|0,7),P^=a(I+M|0,9),C^=a(P+I|0,13),M^=a(C+P|0,18),R^=a(N+T|0,7),O^=a(R+N|0,9),T^=a(O+R|0,13),N^=a(T+O|0,18),B^=a(U+L|0,7),j^=a(B+U|0,9),L^=a(j+B|0,13),U^=a(L+j|0,18);i[s++]=o+_|0,i[s++]=c+A|0,i[s++]=l+k|0,i[s++]=u+S|0,i[s++]=h+C|0,i[s++]=d+M|0,i[s++]=p+I|0,i[s++]=f+P|0,i[s++]=m+O|0,i[s++]=g+T|0,i[s++]=y+N|0,i[s++]=w+R|0,i[s++]=b+B|0,i[s++]=v+j|0,i[s++]=E+L|0,i[s++]=x+U|0}function l(t,e,r,n,i){let s=n+0,o=n+16*i;for(let n=0;n<16;n++)r[o+n]=t[e+16*(2*i-1)+n];for(let n=0;n0&&(o+=16),c(r,s,t,e+=16,r,o)}function u(t,e,r){const a=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:l,p:u,dkLen:h,asyncTick:d,maxmem:p,onProgress:f}=a;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),(0,n.number)(h),(0,n.number)(d),(0,n.number)(p),void 0!==f&&"function"!=typeof f)throw new Error("progressCb should be function");const m=128*l,g=m/4;if(c<=1||0!=(c&c-1)||c>=2**(m/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/m)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(h<0||h>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const y=m*(c+u);if(y>p)throw new Error(`Scrypt: parameters too large, ${y} (128 * r * (N + p)) > ${p} (maxmem)`);const w=(0,s.pbkdf2)(i.sha256,t,e,{c:1,dkLen:m*u}),b=(0,o.u32)(w),v=(0,o.u32)(new Uint8Array(m*c)),E=(0,o.u32)(new Uint8Array(m));let x=()=>{};if(f){const t=2*c*u,e=Math.max(Math.floor(t/1e4),1);let r=0;x=()=>{r++,!f||r%e&&r!==t||f(r/t)}}return{N:c,r:l,p:u,dkLen:h,blockSize32:g,V:v,B32:b,B:w,tmp:E,blockMixCb:x,asyncTick:d}}function h(t,e,r,n,o){const a=(0,s.pbkdf2)(i.sha256,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),o.fill(0),a}e.scrypt=function(t,e,r){const{N:n,r:i,p:s,dkLen:o,blockSize32:a,V:c,B32:d,B:p,tmp:f,blockMixCb:m}=u(t,e,r);for(let t=0;t{l(d,r,d,r+=c,i),g()})),l(d,(n-1)*c,p,e,i),g(),await(0,o.asyncLoop)(n,y,(()=>{const t=p[e+c-16]%n;for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(915),i=r(9681),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:p}=this;for(let t=0;t<64;t++){const e=p+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((f=u)&h^~f&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;p=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var f;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(r,n,a,l,u,h,d,p)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},7910:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(6363),i=r(4881),s=r(9681),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),p=BigInt(256),f=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*f)%p,e&h&&(i^=u<<(u<r>32?(0,i.rotlBH)(t,e,r):(0,i.rotlSH)(t,e,r),w=(t,e,r)=>r>32?(0,i.rotlBL)(t,e,r):(0,i.rotlSL)(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,n.exists)(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,n.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,n.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const E=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=E(6,144,28),e.sha3_256=E(6,136,32),e.sha3_384=E(6,104,48),e.sha3_512=E(6,72,64),e.keccak_224=E(1,144,28),e.keccak_256=E(1,136,32),e.keccak_384=E(1,104,48),e.keccak_512=E(1,72,64);const x=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=x(31,168,16),e.shake256=x(31,136,32)},937:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha384=e.sha512_256=e.sha512_224=e.sha512=e.SHA512=void 0;const n=r(915),i=r(4881),s=r(9681),[o,a]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:r,Bl:n,Ch:i,Cl:s,Dh:o,Dl:a,Eh:c,El:l,Fh:u,Fl:h,Gh:d,Gl:p,Hh:f,Hl:m}=this;return[t,e,r,n,i,s,o,a,c,l,u,h,d,p,f,m]}set(t,e,r,n,i,s,o,a,c,l,u,h,d,p,f,m){this.Ah=0|t,this.Al=0|e,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|h,this.Gh=0|d,this.Gl=0|p,this.Hh=0|f,this.Hl=0|m}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e),l[r]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|c[t-15],r=0|l[t-15],n=i.default.rotrSH(e,r,1)^i.default.rotrSH(e,r,8)^i.default.shrSH(e,r,7),s=i.default.rotrSL(e,r,1)^i.default.rotrSL(e,r,8)^i.default.shrSL(e,r,7),o=0|c[t-2],a=0|l[t-2],u=i.default.rotrSH(o,a,19)^i.default.rotrBH(o,a,61)^i.default.shrSH(o,a,6),h=i.default.rotrSL(o,a,19)^i.default.rotrBL(o,a,61)^i.default.shrSL(o,a,6),d=i.default.add4L(s,h,l[t-7],l[t-16]),p=i.default.add4H(d,n,u,c[t-7],c[t-16]);c[t]=0|p,l[t]=0|d}let{Ah:r,Al:n,Bh:s,Bl:u,Ch:h,Cl:d,Dh:p,Dl:f,Eh:m,El:g,Fh:y,Fl:w,Gh:b,Gl:v,Hh:E,Hl:x}=this;for(let t=0;t<80;t++){const e=i.default.rotrSH(m,g,14)^i.default.rotrSH(m,g,18)^i.default.rotrBH(m,g,41),_=i.default.rotrSL(m,g,14)^i.default.rotrSL(m,g,18)^i.default.rotrBL(m,g,41),A=m&y^~m&b,k=g&w^~g&v,S=i.default.add5L(x,_,k,a[t],l[t]),C=i.default.add5H(S,E,e,A,o[t],c[t]),M=0|S,I=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),P=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),O=r&s^r&h^s&h,T=n&u^n&d^u&d;E=0|b,x=0|v,b=0|y,v=0|w,y=0|m,w=0|g,({h:m,l:g}=i.default.add(0|p,0|f,0|C,0|M)),p=0|h,f=0|d,h=0|s,d=0|u,s=0|r,u=0|n;const N=i.default.add3L(M,P,T);r=i.default.add3H(N,C,I,O),n=0|N}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:s,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|s,0|u)),({h,l:d}=i.default.add(0|this.Ch,0|this.Cl,0|h,0|d)),({h:p,l:f}=i.default.add(0|this.Dh,0|this.Dl,0|p,0|f)),({h:m,l:g}=i.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:y,l:w}=i.default.add(0|this.Fh,0|this.Fl,0|y,0|w)),({h:b,l:v}=i.default.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:E,l:x}=i.default.add(0|this.Hh,0|this.Hl,0|E,0|x)),this.set(r,n,s,u,h,d,p,f,m,g,y,w,b,v,E,x)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=u;class h extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class p extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}e.sha512=(0,s.wrapConstructor)((()=>new u)),e.sha512_224=(0,s.wrapConstructor)((()=>new h)),e.sha512_256=(0,s.wrapConstructor)((()=>new d)),e.sha384=(0,s.wrapConstructor)((()=>new p))},9681:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(754),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!==c.call(e))throw new Error("Options should be object or undefined");return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},8415:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>E,__asyncGenerator:()=>v,__asyncValues:()=>x,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>M,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>p,__extends:()=>i,__generator:()=>h,__importDefault:()=>S,__importStar:()=>k,__makeTemplateObject:()=>_,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArray:()=>w,__spreadArrays:()=>y,__values:()=>f});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof b?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function E(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=f(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var A=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function k(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&d(e,t,r);return A(e,t),e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function M(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r}function I(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},4278:(t,e,r)=>{"use strict";var n=r(3614),i=r(3206),s=new n(0),o=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(t){var e=t?t.toLowerCase():"ether",r=a[e];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(r,10)}function l(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"==typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}t.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(t,e,r){var n=i(t),l=n.lt(s),u=c(e),h=a[e].length-1||1,d=r||{};l&&(n=n.mul(o));for(var p=n.mod(u).toString(10);p.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var d=h[0],p=h[1];if(d||(d="0"),p||(p="0"),p.length>s)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;p.length=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],p=h[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);r=(f=f.idivn(p)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function f(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):f(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return g[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},7187:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,s,o,l;if(a(r),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),void 0===o)o=s[e]=r,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=c(t))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var l=c.length,u=f(c,l);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2806:t=>{"use strict";t.exports=function(t,e){for(var r={},n=Object.keys(t),i=Array.isArray(e),s=0;s{"use strict";var n=r(5320),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=function(t,e,r){for(var n=0,i=t.length;n=3&&(s=r),"[object Array]"===i.call(t)?o(t,e,s):"string"==typeof t?a(t,e,s):c(t,e,s)}},7648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var s=this;if("function"!=typeof s||n.call(s)!==i)throw new TypeError(e+s);for(var o,a=r.call(arguments,1),c=function(){if(this instanceof o){var e=s.apply(this,a.concat(r.call(arguments)));return Object(e)===e?e:this}return s.apply(t,a.concat(r.call(arguments)))},l=Math.max(0,s.length-a.length),u=[],h=0;h{"use strict";var n=r(7648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{"use strict";var n,i=SyntaxError,s=Function,o=TypeError,a=function(t){try{return s('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,h=r(1405)(),d=Object.getPrototypeOf||function(t){return t.__proto__},p={},f="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(t){var g=d(d(t));m["%Error.prototype%"]=g}var y=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=d(i.prototype))}return m[e]=r,r},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),v=r(7642),E=b.call(Function.call,Array.prototype.concat),x=b.call(Function.apply,Array.prototype.splice),_=b.call(Function.call,String.prototype.replace),A=b.call(Function.call,String.prototype.slice),k=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,M=function(t){var e=A(t,0,1),r=A(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(t,S,(function(t,e,r,i){n[n.length]=r?_(i,C,"$1"):e||t})),n},I=function(t,e){var r,n=t;if(v(w,n)&&(n="%"+(r=w[n])[0]+"%"),v(m,n)){var s=m[n];if(s===p&&(s=y(n)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(t),n=r.length>0?r[0]:"",s=I("%"+n+"%",e),a=s.name,l=s.value,u=!1,h=s.alias;h&&(n=h[0],x(r,E([0,1],h)));for(var d=1,p=!0;d=r.length){var w=c(l,f);l=(p=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[f]}else p=v(l,f),l=l[f];p&&!u&&(m[a]=l)}}return l}},7296:(t,e,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},1405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(t,e,r)=>{"use strict";var n=r(5419);t.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(t,e,r)=>{"use strict";var n=r(8612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},645:(t,e)=>{e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,c=(1<>1,u=-7,h=r?i-1:0,d=r?-1:1,p=t[e+h];for(h+=d,s=p&(1<<-u)-1,p>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),s-=l}return(p?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,c,l=8*s-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,f=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&a,p+=f,a/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=f,o/=256,l-=8);t[r+p-f]|=128*m}},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2584:(t,e,r)=>{"use strict";var n=r(6410)(),i=r(1924)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},5320:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;c.call(d)===c.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(o(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},8662:(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=r(6410)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(o.test(s.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},3944:t=>{t.exports=function(t){if("string"!=typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},5692:(t,e,r)=>{"use strict";var n=r(4029),i=r(3083),s=r(1924),o=s("Object.prototype.toString"),a=r(6410)(),c=r(7296),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),h=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1}return!!c&&function(t){var e=!1;return n(p,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},1094:(t,e,r)=>{var n,i=r(4155);!function(){"use strict";var s="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:c&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&t.exports,u=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],f=[0,8,16,24],m=[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],y=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var v=function(t,e,r){return function(n){return new B(t,e,t).update(n)[r]()}},E=function(t,e,r){return function(n,i){return new B(t,e,i).update(n)[r]()}},x=function(t,e,r){return function(e,n,i,s){return C["cshake"+t].update(e,n,i,s)[r]()}},_=function(t,e,r){return function(e,n,i,s){return C["kmac"+t].update(e,n,i,s)[r]()}},A=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(t,e,r){B.call(this,t,e,r)}B.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,c=t.length,l=this.blockCount,u=0,d=this.s;u>2]|=t[u]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=a){for(this.start=n-a,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},B.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];o%e==0&&(L(r),s=0)}return i&&(t=r[s],a+=d[t>>4&15]+d[15&t],i>1&&(a+=d[t>>12&15]+d[t>>8&15]),i>2&&(a+=d[t>>20&15]+d[t>>16&15])),a},B.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&L(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},j.prototype=new B,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var L=function(t){var e,r,n,i,s,o,a,c,l,u,h,d,p,f,g,y,w,b,v,E,x,_,A,k,S,C,M,I,P,O,T,N,R,B,j,L,U,D,$,F,z,H,W,q,V,G,K,Z,J,Q,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(u<<1|h>>>31),r=a^(h<<1|u>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|p>>>31),r=l^(p<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=u^(i<<1|s>>>31),r=h^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,f=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,W=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,T=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,L=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,Q=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,N=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,S=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,$=t[27]<<25|t[26]>>>7,E=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,F=t[38]<<8|t[39]>>>24,z=t[39]<<8|t[38]>>>24,_=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=f^~y&b,t[1]=g^~w&v,t[10]=k^~C&I,t[11]=S^~M&P,t[20]=B^~L&D,t[21]=j^~U&$,t[30]=q^~G&Z,t[31]=V^~K&J,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&E,t[3]=w^~v&x,t[12]=C^~I&O,t[13]=M^~P&T,t[22]=L^~D&F,t[23]=U^~$&z,t[32]=G^~Z&Q,t[33]=K^~J&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~E&_,t[5]=v^~x&A,t[14]=I^~O&N,t[15]=P^~T&R,t[24]=D^~F&H,t[25]=$^~z&W,t[34]=Z^~Q&X,t[35]=J^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=E^~_&f,t[7]=x^~A&g,t[16]=O^~N&k,t[17]=T^~R&S,t[26]=F^~H&B,t[27]=z^~W&j,t[36]=Q^~X&q,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=_^~f&y,t[9]=A^~g&w,t[18]=N^~k&C,t[19]=R^~S&M,t[28]=H^~B&L,t[29]=W^~j&U,t[38]=X^~q&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=m[n],t[1]^=m[n+1]};if(l)t.exports=C;else{for(I=0;I{t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",E=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[s]=_[o]=_[b]=_[a]=_[v]=_[c]=_[l]=_[u]=_[h]=_[d]=_[p]=_[m]=_[g]=_[y]=_[w]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,k="object"==typeof self&&self&&self.Object===Object&&self,S=A||k||Function("return this")(),C=e&&!e.nodeType&&e,M=C&&t&&!t.nodeType&&t,I=M&&M.exports===C,P=I&&A.process,O=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),T=O&&O.isTypedArray;function N(t,e){for(var r=-1,n=null==t?0:t.length;++ra))return!1;var l=s.get(t);if(l&&s.get(e))return l==e;var u=-1,h=!0,d=2&r?new bt:void 0;for(s.set(t,e),s.set(e,t);++u-1},yt.prototype.set=function(t,e){var r=this.__data__,n=Et(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(it||yt),string:new gt}},wt.prototype.delete=function(t){var e=Ct(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ct(this,t).get(t)},wt.prototype.has=function(t){return Ct(this,t).has(t)},wt.prototype.set=function(t,e){var r=Ct(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,n),this},bt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.clear=function(){this.__data__=new yt,this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(n)}return r.set(t,e),this.size=r.size,this};var It=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,i=null==e?0:e.length,s=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=i}function Dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $t(t){return null!=t&&"object"==typeof t}var Ft=T?function(t){return function(e){return t(e)}}(T):function(t){return $t(t)&&Ut(t.length)&&!!_[xt(t)]};function zt(t){return null!=(e=t)&&Ut(e.length)&&!Lt(e)?function(t,e){var r=Bt(t),n=!r&&Rt(t),i=!r&&!n&&jt(t),s=!r&&!n&&!i&&Ft(t),o=r||n||i||s,a=o?function(t,e){for(var r=-1,n=Array(t);++r{"use strict";var n=r(8764).Buffer,i=r(4155);Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidStatusCodeError=e.InvalidCertError=void 0;const s=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class o extends Error{constructor(t,e){super(t),this.fingerprint256=e}}e.InvalidCertError=o;class a extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}function c(t,e){if(!e||"text"===e||"json"===e)try{let r=new TextDecoder("utf8",{fatal:!0}).decode(t);if("text"===e)return r;try{return JSON.parse(r)}catch(t){if("json"===e)throw t;return r}}catch(t){if("text"===e||"json"===e)throw t}return t}e.InvalidStatusCodeError=a;let l={};function u(t,e){let i={...s,...e};const h=r(2260),d=r(2895),p=r(1865),{promisify:f}=r(9539),{resolve:m}=r(8575),g=!!/^https/.test(t);let y={method:i.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const w=t=>t.replace(/:| /g,"").toLowerCase();if(i.keepAlive){const t={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},e=[g,g&&i.sslPinnedCertificates?.map((t=>w(t))).sort()].join();y.agent=l[e]||(l[e]=new(g?d:h).Agent(t))}return"json"===i.type&&(y.headers["Content-Type"]="application/json"),i.data&&(i.method||(y.method="POST"),y.body="json"===i.type?JSON.stringify(i.data):i.data),y.headers={...y.headers,...i.headers},i.sslAllowSelfSigned&&(y.rejectUnauthorized=!1),new Promise(((e,r)=>{const s=async e=>{if(e&&"DEPTH_ZERO_SELF_SIGNED_CERT"===e.code)try{await u(t,{...i,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(t){t&&t.fingerprint256&&(e=new o(`Self-signed SSL certificate: ${t.fingerprint256}`,t.fingerprint256))}r(e)},l=(g?d:h).request(t,y,(o=>{o.on("error",s),(async()=>{try{e(await(async e=>{const r=e.statusCode;if(i.redirect&&300<=r&&r<400&&e.headers.location){if(10==i._redirectCount)throw new Error("Request failed. Too much redirects.");return i._redirectCount+=1,await u(m(t,e.headers.location),i)}if(i.expectStatusCode&&r!==i.expectStatusCode)throw e.resume(),new a(r);let s=[];for await(const t of e)s.push(t);let o=n.concat(s);const l=e.headers["content-encoding"];"br"===l&&(o=await f(p.brotliDecompress)(o)),"gzip"!==l&&"deflate"!==l||(o=await f(p.unzip)(o));const h=c(o,i.type);return i.full?{headers:e.headers,status:r,body:h}:h})(o))}catch(t){r(t)}})()}));l.on("error",s);const b=i.sslPinnedCertificates?.map((t=>w(t))),v=t=>{const e=w(t.getPeerCertificate()?.fingerprint256||"");if((e||!t.isSessionReused())&&!b.includes(e))return l.emit("error",new o(`Invalid SSL certificate: ${e} Expected: ${b}`,e)),l.abort()};i.sslPinnedCertificates&&l.on("socket",(t=>{t.listeners("secureConnect").map((t=>(t.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||t.on("secureConnect",v.bind(null,t))})),i.keepAlive&&l.setNoDelay(!0),y.body&&l.write(y.body),l.end()}))}const h=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((t=>t.toLowerCase()))),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((t=>t.toLowerCase())));async function p(t,e){let r={...s,...e};const n=new Headers;"json"===r.type&&n.set("Content-Type","application/json");let i=new URL(t);if(i.username){const t=btoa(`${i.username}:${i.password}`);n.set("Authorization",`Basic ${t}`),i.username="",i.password=""}t=""+i;for(let t in r.headers){const e=t.toLowerCase();(h.has(e)||r.cors&&!d.has(e))&&n.set(t,r.headers[t])}let o={headers:n,redirect:r.redirect?"follow":"manual"};r.referrer||(o.referrerPolicy="no-referrer"),r.cors&&(o.mode="cors"),r.data&&(r.method||(o.method="POST"),o.body="json"===r.type?JSON.stringify(r.data):r.data);const l=await fetch(t,o);if(r.expectStatusCode&&l.status!==r.expectStatusCode)throw new a(l.status);const u=c(new Uint8Array(await l.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(l.headers.entries()),status:l.status,body:u}:u}const f=!!("object"==typeof i&&i.versions&&i.versions.node&&i.versions.v8);e.default=function(t,e){return(f?u:p)(t,e)}},3978:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=r(8764).Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],p=h[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);r=(f=f.idivn(p)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function f(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?p(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):f(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new E}return g[t]=e,e},x.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},3206:(t,e,r)=>{var n=r(3978),i=r(9604);t.exports=function(t){if("string"==typeof t||"number"==typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),s="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),o=i(r);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),e=new n(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new n(o,16).mul(e);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new n(o,10).mul(e)}else if("object"==typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},4155:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&d())}function d(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u1)for(var r=1;r{const n=r(7138),i=r(5115),s=r(6907),o=r(3776);function a(t,e,r,s,o){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=e,e=s=void 0):2!==c||e.getContext||(s=r,r=e,e=void 0),new Promise((function(n,o){try{const o=i.create(r,s);n(t(o,e,s))}catch(t){o(t)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=r,r=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=e,e=void 0));try{const n=i.create(r,s);o(null,t(n,e,s))}catch(t){o(t)}}e.create=i.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,r){return o.render(t,r)}))},7138:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1845:(t,e,r)=>{const n=r(242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),i=145===r?26:2*Math.ceil((r-13)/(2*e-2)),s=[r-7];for(let t=1;t{const n=r(6910),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*i.indexOf(this.data[e]);r+=i.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[e]),6)},t.exports=s},7245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},3280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,n){const i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},3424:(t,e,r)=>{const n=r(2378),i=r(6910);function s(t){this.mode=i.BYTE,"string"==typeof t&&(t=n(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,r=this.data.length;e{const n=r(4908),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},4908:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},6526:(t,e,r)=>{const n=r(242).getSymbolSize;e.getPositions=function(t){const e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},1642:(t,e,r)=>{const n=r(242),i=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){const r=t.bit<<3|e;let s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)r[e]=t,n[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return n[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[n[t]+n[e]]}},5442:(t,e,r)=>{const n=r(6910),i=r(242);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=s},7126:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let r=0,n=0,i=0,s=null,o=null;for(let a=0;a=5&&(r+=n-5+3),s=e,n=1),e=t.get(c,a),e===o?i++:(i>=5&&(r+=i-5+3),o=e,i=1)}n>=5&&(r+=n-5+3),i>=5&&(r+=i-5+3)}return r},e.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(o,s),o>=10&&(1488===i||93===i)&&r++}return 40*r},e.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let n=0;n{const n=r(3114),i=r(7007);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}},1085:(t,e,r)=>{const n=r(6910);function i(t){this.mode=n.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);const i=this.data.length-e;i>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*i+1))},t.exports=i},6143:(t,e,r)=>{const n=r(9729);e.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){const t=r[0];for(let i=0;i{const n=r(242),i=r(4908),s=r(7245),o=r(3280),a=r(1845),c=r(6526),l=r(7126),u=r(5393),h=r(2882),d=r(3103),p=r(1642),f=r(6910),m=r(6130);function g(t,e,r){const n=t.size,i=p.getEncodedBits(e,r);let s,o;for(s=0;s<15;s++)o=1==(i>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function y(t,e,r,i){let p;if(Array.isArray(t))p=m.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=e;if(!n){const e=m.rawSplit(t);n=d.getBestVersionForData(e,r)}p=m.fromString(t,n||40)}}const y=d.getBestVersionForData(p,r);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===e||6===e)||e>=2&&e<=4&&n>=2&&n<=4?t.set(i+e,s+n,!0,!0):t.set(i+e,s+n,!1,!0))}}(v,e),function(t){const e=t.size;for(let r=8;r=7&&function(t,e){const r=t.size,n=d.getEncodedBits(e);let i,s,o;for(let e=0;e<18;e++)i=Math.floor(e/3),s=e%3+r-8-3,o=1==(n>>e&1),t.set(i,s,o,!0),t.set(s,i,o,!0)}(v,e),function(t,e){const r=t.size;let n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!t.isReserved(i,a-r)){let n=!1;o>>s&1)),t.set(i,a-r,n),s--,-1===s&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(v,w),isNaN(i)&&(i=l.getBestMask(v,g.bind(null,v,r))),l.applyMask(i,v),g(v,r,i),{modules:v,version:e,errorCorrectionLevel:r,maskPattern:i,segments:p}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,s,o=i.M;return void 0!==e&&(o=i.from(e.errorCorrectionLevel,i.M),r=d.from(e.version),s=l.from(e.maskPattern),e.toSJISFunc&&n.setToSJISFunction(e.toSJISFunc)),y(t,r,o,s)}},2882:(t,e,r)=>{const n=r(6143);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=n.mod(e,this.genPoly),i=this.degree-r.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(r,i),t}return r},t.exports=i},7007:(t,e)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const s=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return s.test(t)},e.testNumeric=function(t){return o.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},6130:(t,e,r)=>{const n=r(6910),i=r(1085),s=r(8260),o=r(3424),a=r(5442),c=r(7007),l=r(242),u=r(5987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const n=[];let i;for(;null!==(i=t.exec(r));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function p(t){const e=d(c.NUMERIC,n.NUMERIC,t),r=d(c.ALPHANUMERIC,n.ALPHANUMERIC,t);let i,s;return l.isKanjiModeEnabled()?(i=d(c.BYTE,n.BYTE,t),s=d(c.KANJI,n.KANJI,t)):(i=d(c.BYTE_KANJI,n.BYTE,t),s=[]),e.concat(r,i,s).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case n.NUMERIC:return i.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){let r;const c=n.getBestModeForData(t);if(r=n.from(e,c),r!==n.BYTE&&r.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(p(t,l.isKanjiModeEnabled()))}},242:(t,e)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},3114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},3103:(t,e,r)=>{const n=r(242),i=r(5393),s=r(4908),o=r(6910),a=r(3114),c=n.getBCHDigit(7973);function l(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let r=0;return t.forEach((function(t){const n=l(t.mode,e);r+=n+t.getBitsLength()})),r}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const s=8*(n.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e));if(r===o.MIXED)return s;const c=s-l(r,t);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,r){let n;const i=s.from(r,s.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,r,o.MIXED))return n}(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(let i=1;i<=40;i++)if(r<=e.getCapacity(i,n,t))return i}(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-c>=0;)e^=7973<{const n=r(9653);e.render=function(t,e,r){let i=r,s=e;void 0!==i||e&&e.getContext||(i=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const o=n.getImageWidth(t.modules.size,i),a=s.getContext("2d"),c=a.createImageData(o,o);return n.qrToImageData(c.data,t,i),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});const s=e.render(t,r,i),o=i.type||"image/png",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},3776:(t,e,r)=>{const n=r(9653);function i(t,e){const r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function s(t,e,r){let n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){const o=n.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,u=o.color.light.a?"':"",h="0&&l>0&&t[c-1]||(n+=o?s("M",l+r,.5+u+r):s("m",i,0),i=0,o=!1),l+1',d='viewBox="0 0 '+l+" "+l+'"',p=''+u+h+"\n";return"function"==typeof r&&r(null,p),p}},9653:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){const n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){const i=r.modules.size,s=r.modules.data,o=e.getScale(i,n),a=Math.floor((i+2*n.margin)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let e=0;e=c&&r>=c&&e{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,i){r=r||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var o=/\+/g;t=t.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var l=0;l=0?(u=f.substr(0,m),h=f.substr(m+1)):(u=f,h=""),d=decodeURIComponent(u),p=decodeURIComponent(h),e(s,d)?Array.isArray(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,i){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var s=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map((function(t){return s+encodeURIComponent(e(t))})).join(r):s+encodeURIComponent(e(t[i]))})).join(r):i?encodeURIComponent(e(i))+n+encodeURIComponent(e(t)):""}},7673:(t,e,r)=>{"use strict";e.decode=e.parse=r(2587),e.encode=e.stringify=r(2361)},5346:t=>{"use strict";function e(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}t.exports=function(t,r,n){var i=n&&n.stringify||e;if("object"==typeof t&&null!==t){var s=r.length+1;if(1===s)return t;var o=new Array(s);o[0]=i(t);for(var a=1;a-1?h:0,t.charCodeAt(p+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;h=c)break;if(null==r[u])break;h=c)break;if(void 0===r[u])break;h",h=p+2,p++;break}l+=i(r[u]),h=p+2,p++;break;case 115:if(u>=c)break;h{"use strict";var n=r(4155),i=65536,s=r(9509).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a{var n=r(8764),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},500:t=>{"use strict";t.exports=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},610:t=>{"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},9604:(t,e,r)=>{var n=r(3944);t.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>v,__asyncGenerator:()=>b,__asyncValues:()=>E,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>k,__classPrivateFieldSet:()=>S,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>p,__extends:()=>i,__generator:()=>h,__importDefault:()=>A,__importStar:()=>_,__makeTemplateObject:()=>x,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>f});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof w?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:w(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=f(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function A(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function S(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},2511:function(t,e,r){var n;t=r.nmd(t),function(i){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof r.g&&r.g;s.global!==s&&s.window!==s&&s.self;var o,a=2147483647,c=36,l=/^xn--/,u=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function m(t){throw RangeError(d[t])}function g(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+g((t=t.replace(h,".")).split("."),e).join(".")}function w(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i65535&&(e+=f((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+f(t)})).join("")}function v(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=c)t=p(t/35);return p(n+36*t/(t+38))}function x(t){var e,r,n,i,s,o,l,u,h,d,f,g=[],y=t.length,w=0,v=128,x=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),g.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((u=(f=t.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c)>=c||u>p((a-w)/o))&&m("overflow"),w+=u*o,!(u<(h=l<=x?1:l>=x+26?26:l-x));l+=c)o>p(a/(d=c-h))&&m("overflow"),o*=d;x=E(w-s,e=g.length+1,0==s),p(w/e)>a-v&&m("overflow"),v+=p(w/e),w%=e,g.splice(w++,0,v)}return b(g)}function _(t){var e,r,n,i,s,o,l,u,h,d,g,y,b,x,_,A=[];for(y=(t=w(t)).length,e=128,r=0,s=72,o=0;o=e&&gp((a-r)/(b=n+1))&&m("overflow"),r+=(l-e)*b,e=l,o=0;oa&&m("overflow"),g==e){for(u=r,h=c;!(u<(d=h<=s?1:h>=s+26?26:h-s));h+=c)_=u-d,x=c-d,A.push(f(v(d+_%x,0))),u=p(_/x);A.push(f(v(u,0))),s=E(r,b,n==i),r=0,++n}++r,++e}return A.join("")}o={version:"1.3.2",ucs2:{decode:w,encode:b},decode:x,encode:_,toASCII:function(t){return y(t,(function(t){return u.test(t)?"xn--"+_(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?x(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},8575:(t,e,r)=>{"use strict";var n=r(2511),i=r(2502);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return i.isString(t)&&(t=b(t)),t instanceof s?t.format():s.prototype.format.call(t)},e.Url=s;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r(7673);function b(t,e,r){if(t&&i.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}s.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),a=-1!==s&&s127?N+="x":N+=T[R];if(!N.match(p)){var j=P.slice(0,C),L=P.slice(C+1),U=T.match(f);U&&(j.push(U[1]),L.unshift(U[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+D,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[x])for(C=0,O=u.length;C0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=_.slice(-1)[0],S=(r.host||t.host||_.length>1)&&("."===k||".."===k)||""===k,C=0,M=_.length;M>=0;M--)"."===(k=_[M])?_.splice(M,1):".."===k?(_.splice(M,1),C++):C&&(_.splice(M,1),C--);if(!E&&!x)for(;C--;C)_.unshift("..");!E||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var I,P=""===_[0]||_[0]&&"/"===_[0].charAt(0);return A&&(r.hostname=r.host=P?"":_.length?_.shift():"",(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),(E=E||r.host&&_.length)&&!P&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},2502:t=>{"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},5955:(t,e,r)=>{"use strict";var n=r(2584),i=r(8662),s=r(6430),o=r(5692);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),p=a(Boolean.prototype.valueOf);if(c)var f=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function w(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function v(t){return"[object WeakSet]"===u(t)}function E(t){return"[object ArrayBuffer]"===u(t)}function x(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function _(t){return"[object DataView]"===u(t)}function A(t){return"undefined"!=typeof DataView&&(_.working?_(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},w.working="undefined"!=typeof Set&&w(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(w.working?w(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=x,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===u(t)}function C(t){return void 0!==k&&(void 0===S.working&&(S.working=S(new k)),S.working?S(t):t instanceof k)}function M(t){return g(t,h)}function I(t){return g(t,d)}function P(t){return g(t,p)}function O(t){return c&&g(t,f)}function T(t){return l&&g(t,m)}e.isSharedArrayBuffer=C,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=M,e.isStringObject=I,e.isBooleanObject=P,e.isBigIntObject=O,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return M(t)||I(t)||P(t)||O(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(x(t)||C(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9539:(t,e,r)=>{var n=r(4155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,t,n.depth)}function u(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&k(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=d(t,i,n)),i}var s=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return w(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),A(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(r);if(0===o.length){if(k(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var l,u="",h=!1,x=["{","}"];return m(r)&&(h=!0,x=["[","]"]),k(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(u=" "+RegExp.prototype.toString.call(r)),_(r)&&(u=" "+Date.prototype.toUTCString.call(r)),A(r)&&(u=" "+p(r)),0!==o.length||h&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,u,x)):x[0]+u+x[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,s){var o,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),P(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(r)?d(t,c.value,null):d(t,c.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function m(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function w(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function E(t){return x(t)&&"[object RegExp]"===S(t)}function x(t){return"object"==typeof t&&null!==t}function _(t){return x(t)&&"[object Date]"===S(t)}function A(t){return x(t)&&("[object Error]"===S(t)||t instanceof Error)}function k(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(5955),e.isArray=m,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=w,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=E,e.types.isRegExp=E,e.isObject=x,e.isDate=_,e.types.isDate=_,e.isError=A,e.types.isNativeError=A,e.isFunction=k,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(384);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date,e=[C(t.getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=r(5717),e._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s{var n=r(8764).Buffer,i=r(8269),s=r(2816).RQ,o=r(2816)._R,a=new s((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"==typeof e&&"BN"===e.constructor.name?e:e.toString()}));function c(){}var l=function(){};l.prototype.encodeFunctionSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t).slice(0,10)},l.prototype.encodeEventSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t)},l.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},l.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,n){let i=t[n];if("object"==typeof i&&i.type&&(i=i.type),e=r.formatParam(i,e),"string"==typeof i&&i.includes("tuple")){const t=a._getCoder(o.from(i)),n=(t,e)=>{if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return e.map((e=>n(a._getCoder(o.from(t.type.replace("[]",""))),e)));const r=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(e.length!==r)throw new Error("Array length does not matches with the given input");return e.map((e=>n(a._getCoder(o.from(t.type.replace(/\[\d+\]/,""))),e)))}t.coders.forEach(((t,i)=>{"tuple"===t.name?n(t,e[i]):e[i]=r.formatParam(t.name,e[i])}))};n(t,e)}return e})),a.encode(t,e)},l.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"==typeof t&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var n=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))}else r.push(t)})),r},l.prototype.isSimplifiedStructFormat=function(t){return"object"==typeof t&&void 0===t.components&&void 0===t.name},l.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},l.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(n){"object"!=typeof t[n]?r.push({name:n,type:t[n]}):r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))})),r},l.prototype.formatParam=function(t,e){const r=new RegExp(/^bytes([0-9]*)$/),s=new RegExp(/^bytes([0-9]*)\[\]$/),o=new RegExp(/^(u?int)([0-9]*)$/),a=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(e)||i.isBigNumber(e))return e.toString(10);if(t.match(s)||t.match(a))return e.map((e=>this.formatParam(t.replace("[]",""),e)));let c=t.match(o);if(c){let t=parseInt(c[2]||"256");t/80&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=a.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),i=new c;return i.__length__=0,t.forEach((function(t,e){var r=n[i.__length__];const s="object"==typeof t&&t.type&&"string"===t.type;r="0x"!==r||s||"string"==typeof t&&"string"===t?r:null,i[e]=r,("function"==typeof t||t&&"object"==typeof t)&&t.name&&(i[t.name]=r),i.__length__++})),i},l.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],s=[],o=0;t.forEach((function(t,e){t.indexed?(s[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[o]):r[o],o++):i[e]=t}));var a=e,l=a?this.decodeParametersWith(i,a,!0):[],u=new c;return u.__length__=0,t.forEach((function(t,e){u[e]="string"===t.type?"":null,void 0!==l[e]&&(u[e]=l[e]),void 0!==s[e]&&(u[e]=s[e]),t.name&&(u[t.name]=u[e]),u.__length__++})),u};var u=new l;t.exports=u},8269:(t,e,r)=>{var n=r(4278),i=r(329),s=r(6780),o=r(1798),a=r(6383),c=function(t,e){var r=[];return e.forEach((function(e){if("object"==typeof e.components){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var n="",i=e.type.indexOf("[");i>=0&&(n=e.type.substring(i));var s=c(t,e.components);Array.isArray(s)&&t?r.push("tuple("+s.join(",")+")"+n):t?r.push("("+s+")"):r.push("("+s.join(",")+")"+n)}else r.push(e.type)})),r},l=function(t){if(!i.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r7?r+=t[n].toUpperCase():r+=t[n];return r},toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:l,toAscii:l,asciiToHex:u,fromAscii:u,unitMap:n.unitMap,toWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).toString(10)},padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:function(t,e){if(t===e)return 0;if("genesis"!==t&&"earliest"!==t&&0!==t||"genesis"!==e&&"earliest"!==e&&0!==e){if("genesis"===t||"earliest"===t||0===t)return-1;if("genesis"===e||"earliest"===e||0===e)return 1;if("latest"===t||"finalized"===t)return"pending"===e?-1:1;if("latest"===e||"finalized"===e)return"pending"===t?1:-1;if("pending"===t)return 1;if("pending"===e)return-1;if("safe"===t||"safe"===e)return;{let r=new a(t),n=new a(e);return r.lt(n)?-1:r.eq(n)?0:1}}return 0},toNumber:i.toNumber}},6780:(t,e,r)=>{var n=r(6383),i=r(329),s=function(t){var e=typeof t;if("string"===e)return i.isHexStrict(t)?new n(t.replace(/0x/i,""),16):new n(t,10);if("number"===e)return new n(t);if(i.isBigNumber(t))return new n(t.toString(10));if(i.isBN(t))return t;throw new Error(t+" is not a number")},o=function(t,e,r){var o,a,c;if("bytes"===(t=(c=t).startsWith("int[")?"int256"+c.slice(3):"int"===c?"int256":c.startsWith("uint[")?"uint256"+c.slice(4):"uint"===c?"uint256":c.startsWith("fixed[")?"fixed128x128"+c.slice(5):"fixed"===c?"fixed128x128":c.startsWith("ufixed[")?"ufixed128x128"+c.slice(6):"ufixed"===c?"ufixed128x128":c)){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return i.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(o=r?64:40,!i.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return i.leftPad(e.toLowerCase(),o)}if(o=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null}(t),t.startsWith("bytes")){if(!o)throw new Error("bytes[] not yet supported in solidity");if(r&&(o=32),o<1||o>32||o256)throw new Error("Invalid uint"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a.lt(new n(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return o?i.leftPad(a.toString("hex"),o/8*2):a}if(t.startsWith("int")){if(o%8||o<8||o>256)throw new Error("Invalid int"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.lt(new n(0))?a.toTwos(o).toString("hex"):o?i.leftPad(a.toString("hex"),o/8*2):a}throw new Error("Unsupported or invalid type: "+t)},a=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,s="";if(t&&"object"==typeof t&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,s=t.hasOwnProperty("v")?t.v:t.value):(e=i.toHex(t,!0),s=i.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new n(s)),Array.isArray(s)){if(r=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null}(e),r&&s.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(s));r=s.length}return Array.isArray(s)?s.map((function(t){return o(e,t,r).toString("hex").replace("0x","")})).join(""):o(e,s,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments),e=t.map(a);return i.sha3("0x"+e.join(""))},soliditySha3Raw:function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(a).join(""))},encodePacked:function(){var t=Array.prototype.slice.call(arguments),e=t.map(a);return"0x"+e.join("").toLowerCase()}}},329:(t,e,r)=>{var n=r(8764).Buffer,i=r(6383),s=r(3206),o=r(24),a=r(2730),c=r(6877),{keccak256:l}=r(2192),u=function(t){return i.isBN(t)},h=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},d=function(t){try{return s.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},p=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||f(t))},f=function(t){t=t.replace(/^0x/i,"");for(var e=x(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},m=function(t){var e="";t=(t=(t=(t=(t=o.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;rNumber.MAX_SAFE_INTEGER||r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:v,isHexStrict:b,stripHexPrefix:function(t){return 0!==t&&v(t)?t.replace(/^(-)?0x/i,"$1"):t},leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+d(t).toTwos(256).toString(16,64)},sha3:x,sha3Raw:function(t){return null===(t=x(t))?E:t},toNumber:function(t,e=!1){return"number"==typeof t?t:g(w(t),e)}}},6383:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(7500).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],p=[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],f=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;u+=(o=(i=0|t.words[f])*(s=0|e.words[p])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=p[t],u=f[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,E=b>>>13,x=0|o[4],_=8191&x,A=x>>>13,k=0|o[5],S=8191&k,C=k>>>13,M=0|o[6],I=8191&M,P=M>>>13,O=0|o[7],T=8191&O,N=O>>>13,R=0|o[8],B=8191&R,j=R>>>13,L=0|o[9],U=8191&L,D=L>>>13,$=0|a[0],F=8191&$,z=$>>>13,H=0|a[1],W=8191&H,q=H>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],J=8191&Z,Q=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],ft=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,F))|0)+((8191&(i=(i=Math.imul(h,z))+Math.imul(d,F)|0))<<13)|0;l=((s=Math.imul(d,z))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(f,F),i=(i=Math.imul(f,z))+Math.imul(m,F)|0,s=Math.imul(m,z);var yt=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,F),i=(i=Math.imul(y,z))+Math.imul(w,F)|0,s=Math.imul(w,z),n=n+Math.imul(f,W)|0,i=(i=i+Math.imul(f,q)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,q)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,F),i=(i=Math.imul(v,z))+Math.imul(E,F)|0,s=Math.imul(E,z),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,q)|0,n=n+Math.imul(f,G)|0,i=(i=i+Math.imul(f,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(_,F),i=(i=Math.imul(_,z))+Math.imul(A,F)|0,s=Math.imul(A,z),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,q)|0)+Math.imul(E,W)|0,s=s+Math.imul(E,q)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(f,J)|0,i=(i=i+Math.imul(f,Q)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,Q)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(S,F),i=(i=Math.imul(S,z))+Math.imul(C,F)|0,s=Math.imul(C,z),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,q)|0)+Math.imul(A,W)|0,s=s+Math.imul(A,q)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(E,G)|0,s=s+Math.imul(E,K)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,Q)|0,n=n+Math.imul(f,X)|0,i=(i=i+Math.imul(f,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var Et=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(I,F),i=(i=Math.imul(I,z))+Math.imul(P,F)|0,s=Math.imul(P,z),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(C,W)|0,s=s+Math.imul(C,q)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(E,J)|0,s=s+Math.imul(E,Q)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(f,rt)|0,i=(i=i+Math.imul(f,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var xt=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(T,F),i=(i=Math.imul(T,z))+Math.imul(N,F)|0,s=Math.imul(N,z),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,q)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(A,J)|0,s=s+Math.imul(A,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(E,X)|0,s=s+Math.imul(E,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(f,st)|0,i=(i=i+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var _t=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(B,F),i=(i=Math.imul(B,z))+Math.imul(j,F)|0,s=Math.imul(j,z),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,q)|0)+Math.imul(N,W)|0,s=s+Math.imul(N,q)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(C,J)|0,s=s+Math.imul(C,Q)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(E,rt)|0,s=s+Math.imul(E,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(f,ct)|0,i=(i=i+Math.imul(f,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var At=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,F),i=(i=Math.imul(U,z))+Math.imul(D,F)|0,s=Math.imul(D,z),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,q)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(N,G)|0,s=s+Math.imul(N,K)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,Q)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(E,st)|0,s=s+Math.imul(E,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(f,ht)|0,i=(i=i+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var kt=(l+(n=n+Math.imul(h,ft)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(D,W)|0,s=Math.imul(D,q),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,K)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(N,J)|0,s=s+Math.imul(N,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(_,st)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(E,ct)|0,s=s+Math.imul(E,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var St=(l+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,Q)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(N,X)|0,s=s+Math.imul(N,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(S,st)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(E,ht)|0,s=s+Math.imul(E,dt)|0;var Ct=(l+(n=n+Math.imul(y,ft)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,ft)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,J),i=(i=Math.imul(U,Q))+Math.imul(D,J)|0,s=Math.imul(D,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(j,X)|0,s=s+Math.imul(j,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(N,rt)|0,s=s+Math.imul(N,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(_,ht)|0,i=(i=i+Math.imul(_,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Mt=(l+(n=n+Math.imul(v,ft)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(E,ft)|0))<<13)|0;l=((s=s+Math.imul(E,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,X),i=(i=Math.imul(U,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(j,rt)|0,s=s+Math.imul(j,nt)|0,n=n+Math.imul(T,st)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(N,st)|0,s=s+Math.imul(N,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(S,ht)|0,i=(i=i+Math.imul(S,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(_,ft)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(A,ft)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,n=n+Math.imul(T,ct)|0,i=(i=i+Math.imul(T,lt)|0)+Math.imul(N,ct)|0,s=s+Math.imul(N,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(S,ft)|0)|0)+((8191&(i=(i=i+Math.imul(S,mt)|0)+Math.imul(C,ft)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,st),i=(i=Math.imul(U,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,n=n+Math.imul(T,ht)|0,i=(i=i+Math.imul(T,dt)|0)+Math.imul(N,ht)|0,s=s+Math.imul(N,dt)|0;var Ot=(l+(n=n+Math.imul(I,ft)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,ft)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(j,ht)|0,s=s+Math.imul(j,dt)|0;var Tt=(l+(n=n+Math.imul(T,ft)|0)|0)+((8191&(i=(i=i+Math.imul(T,mt)|0)+Math.imul(N,ft)|0))<<13)|0;l=((s=s+Math.imul(N,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,ht),i=(i=Math.imul(U,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Nt=(l+(n=n+Math.imul(B,ft)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863;var Rt=(l+(n=Math.imul(U,ft))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(D,ft)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=Et,c[6]=xt,c[7]=_t,c[8]=At,c[9]=kt,c[10]=St,c[11]=Ct,c[12]=Mt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Tt,c[17]=Nt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(r.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new S(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function E(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},E.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(t,e){t.iushrn(this.n,0,e)},E.prototype.imulK=function(t){return t.imul(this.k)},i(x,E),x.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new _;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return v[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),f=o;0!==p.cmp(a);){for(var m=p,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,S),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},24:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function s(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return i(t>>e&63|128)}function c(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(o(t),e=i(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=s(t),r=e.length,n=-1,i="";++n65535&&(s+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),s+=i(e);return s}(a)}}(e)},6430:(t,e,r)=>{"use strict";var n=r(4029),i=r(3083),s=r(1924),o=r(7296),a=s("Object.prototype.toString"),c=r(6410)(),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),h=s("String.prototype.slice"),d={},p=Object.getPrototypeOf;c&&o&&p&&n(u,(function(t){if("function"==typeof l[t]){var e=new l[t];if(Symbol.toStringTag in e){var r=p(e),n=o(r,Symbol.toStringTag);if(!n){var i=p(r);n=o(i,Symbol.toStringTag)}d[t]=n.get}}}));var f=r(5692);t.exports=function(t){return!!f(t)&&(c&&Symbol.toStringTag in t?function(t){var e=!1;return n(d,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):h(a(t),8,-1))}},7026:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},3416:t=>{t.exports=()=>{const t=window.BinanceChain;return{key:"binancewallet",name:"Binance Wallet",supports:["browser"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),download:"https://chrome.google.com/webstore/detail/binance-wallet/fhbohimaelbohpjbbldcngcnapndodjp",isDetected:()=>Boolean(window?.BinanceChain?.bnbSign)}}},8983:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.bitkeep?.ethereum;return{key:"bitget",name:"Bitget Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"https://bkcode.vip?action=dapp&url={siteUrl}",download:"https://web3.bitget.com/en/wallet-download?type=3",isDetected:()=>Boolean(window.bitkeep&&window.bitkeep.ethereum)}}},5491:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window.ethereum;return{key:"metamask",name:"MetaMask",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"https://metamask.app.link/dapp/{siteUrl}",download:"https://metamask.io/download/",isDetected:()=>Boolean(window?.ethereum?.isMetaMask)}}},3260:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.okxwallet;return{key:"okx",name:"Okx Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"okx://wallet/dapp/details?dappUrl={siteUrl}",download:"https://www.okx.com/download",isDetected:()=>Boolean(window?.okxwallet?.isOkxWallet)}}},4396:t=>{t.exports=()=>{const t=window?.phantom?.ethereum;return{key:"phantom",name:"Phantom",supports:["browser","mobile"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((async()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),deepLink:"https://phantom.app/ul/browse/{siteUrl}?ref={siteUrl}",download:"https://phantom.app/",isDetected:()=>Boolean(window.phantom?.ethereum)}}},2789:(t,e,r)=>{t.exports=(t,e)=>{const n=e.network,i=e.networks;if(!n)return new Promise((async t=>{t(!0)}));const{hex:s}=r(3555),o=async e=>{let r=await t.request(e);if(r&&r.error){if(-32e3==r.error.code)throw new Error("rpc-timeout");throw new Error(r.error.message)}return r};return new Promise((async(e,r)=>{try{await(async()=>t?.chainId?t?.chainId:parseInt(await o({method:"eth_chainId"}),16))()!=n.id?(t=>(t=JSON.parse(JSON.stringify(t)),new Promise((async(e,r)=>{let n=t.hexId||s(t.id);o({method:"wallet_switchEthereumChain",params:[{chainId:n}]}).then((()=>{e(!0)})).catch((n=>{4902===n.code||String(n.message).indexOf("wallet_addEthereumChain")>-1?(t=>new Promise((async(e,r)=>{try{let n=(t=i.find((e=>e.id==t.id))).hexId||s(t.id);o({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:t.name,rpcUrls:[t.rpcUrl],nativeCurrency:t.nativeCurrency,blockExplorerUrls:[t.explorerUrl]}]}).then((()=>{e(!0)})).catch((t=>{r(t)}))}catch(t){r(t)}})))(t).then((()=>{e(!0)})).catch((t=>{r(t)})):r(n)}))}))))(n).then((()=>{setTimeout((()=>{e(!0)}),1e3)})).catch((t=>{r(t)})):e(!0)}catch(t){r(t)}}))}},8435:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.ethereum?.isTrust?window.ethereum:window.trustwallet;return{key:"trustwallet",name:"Trust Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{if(window?.ethereum?.isTrust&&t.testnet)return r(e);n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),download:"https://trustwallet.com/download",isDetected:()=>Boolean(window?.ethereum?.isTrust||window?.trustwallet)}}},9086:(t,e,r)=>{t.exports=t=>{const e=t.network,n=t.wcProjectId,{EthereumProvider:i}=r(432),s={};return e&&(s[e.id]=e.rpcUrl),{key:"walletconnect",name:"WalletConnect",supports:["browser","mobile"],connect:async()=>{let r=await i.init({projectId:n,relayUrl:"wss://relay.walletconnect.com",optionalChains:e?[e.id]:[],rpcMap:s,showQrModal:!0,qrModalOptions:{projectId:n,themeMode:t.wcThemeMode,themeVariables:{"--wcm-z-index":999999999999},explorerExcludedWalletIds:"ALL",explorerRecommendedWalletIds:["c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96","4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0","1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369","0b415a746fb9ee99cce155c2ceca0c6f6061b1dbca2d722b3ba16381d0562150","971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709","c03dfee351b6fcc421b4494ea33b9d4b92a984f87aa76d1663bb28705e95034a","ecc4036f814562b41a5268adc86270fba1365471402006302e70169465b7ac18","ef333840daf915aafdc4a004525502d6d49d77bd9c65e0642dbaefb3c2893bef","bc949c5d968ae81310268bf9193f9c9fb7bb4e1283e1284af8f2bd4992535fd6","74f8092562bd79675e276d8b2062a83601a4106d30202f2d509195e30e19673d","afbd95522f4041c71dd4f1a065f971fd32372865b416f95a0b1db759ae33f2a7","20459438007b75f4f4acb98bf29aa3b800550309646d375da5fd4aac6c2a2c66","8837dd9413b1d9b585ee937d27a816590248386d9dbf59f5cd3422dbbb65683e","c286eebc742a537cd1d6818363e9dc53b21759a1e8e5d9b263d0c03ec7703576","38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662","85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041"]}});return new Promise((async(t,e)=>{r.enable().then((()=>{t(r)})).catch((t=>{e(t)}))}))},removeOldConnection:()=>{Object.keys(localStorage).filter((t=>t.startsWith("wc@2"))).forEach((t=>localStorage.removeItem(t)))}}}},1760:t=>{t.exports=()=>{const t=window?.xfi?.ethereum;return{key:"xdefi",name:"Xdefi Wallet",supports:["browser"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((async()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),download:"https://www.xdefi.io/",isDetected:()=>Boolean(window.xfi?.ethereum)}}},7631:(t,e,r)=>{const n=r(3555);t.exports=class{symbol;decimals;provider;constructor(t){this.provider=t,this.decimals=t.network.nativeCurrency.decimals,this.symbol=t.network.nativeCurrency.symbol}getSymbol(){return this.symbol}getDecimals(){return this.decimals}async getBalance(t){try{let e=await this.provider.methods.getBalance(t);return parseFloat((parseInt(e)/10**this.decimals).toFixed(6))}catch(t){throw t}}transfer(t,e,r){return new Promise((async(i,s)=>{try{if(parseFloat(r)>await this.getBalance(t))return s("insufficient-balance");if(parseFloat(r)<0)return s("transfer-amount-error");r=n.toHex(r,this.decimals);let o=await this.provider.methods.getEstimateGas({to:e,from:t,value:r,data:"0x"});return i([{to:e,from:t,value:r,gas:o,data:"0x"}])}catch(t){s(t)}}))}}},5874:(t,e,r)=>{const n=r(3555),i=r(1646);t.exports=class{address;contract;provider;constructor(t,e=null,r){e=e||i,this.address=t,this.provider=r,this.contract=this.provider.methods.contract(this.address,e,this.provider.web3)}getAddress(){return this.address}getName(){return this.contract.name()}getSymbol(){return this.contract.symbol()}async getDecimals(){return parseInt(await this.contract.decimals())}async getTotalSupply(){let t=await this.getDecimals(),e=await this.contract.totalSupply();return n.toDec(e,t)}async getBalance(t){let e=await this.getDecimals(),r=await this.contract.balanceOf(t);return n.toDec(r,e)}transfer(t,e,r){return new Promise((async(i,s)=>{try{if(parseFloat(r)>await this.getBalance(t))return s("insufficient-balance");if(parseFloat(r)<0)return s("transfer-amount-error");r=n.toHex(r,await this.getDecimals());const o=await this.contract.interface.encodeFunctionData("transfer",[e,r]),a=n.hex(await this.contract.transfer.estimateGas(e,r,{from:t}));return i([{to:this.address,value:"0x0",from:t,gas:a,data:o}])}catch(t){s(t)}}))}approve(t,e,r){return new Promise((async(i,s)=>{try{r=n.toHex(r,await this.getDecimals());const s=await this.contract.interface.encodeFunctionData("approve",[e,r]),o=n.hex(await this.contract.approve.estimateGas(e,r,{from:t}));return i([{to:this.address,value:"0x0",from:t,gas:o,data:s}])}catch(t){s(t)}}))}async allowance(t,e){return parseFloat(n.toDec(await this.contract.allowance(t,e),await this.getDecimals()))}}},5782:(t,e,r)=>{const n=r(3555);t.exports=class{hash;data;provider;timer=0;constructor(t,e){this.hash=t,this.provider=e}getHash(){return this.hash}setTimer(t){this.timer=t}async getFee(){let t=this.data?this.data:await this.getData();return n.toDec(t.gasPrice*t.gasUsed,this.provider.network.nativeCurrency.decimals)}async getData(){try{this.data=await this.provider.methods.getTransaction(this.hash);let t=await this.provider.methods.getTransactionReceipt(this.hash);t&&(this.data.status=void 0!==t.status?t.status:null,this.data.gasUsed=void 0!==t.gasUsed?t.gasUsed:null)}catch(t){if(-32e3==t.code||String(t.message).includes("timeout"))throw new Error("rpc-timeout");throw new Error("data-request-failed")}return this.data}async decodeInput(){if(this.data||await this.getData(),"0x"!=this.data.input){let t=n.abiDecoder(this.data.data);return{receiver:t.params[0].value,amount:t.params[1].value}}return null}async getTransferAmount(t){let e=await this.getData(),r=t.tokenAddress;if(r){let t=await this.decodeInput();return n.toDec(t.amount,await this.provider.Token(r).getDecimals())}return n.toDec(e.value,await this.provider.Coin().getDecimals())}async getConfirmations(){try{let t=await this.getData(),e=await this.provider.methods.getBlockNumber();if(null===t.blockNumber)return 0;let r=e-n.toDec(t.blockNumber,0);return r<0?0:r}catch(t){}}confirmTransaction(t=10,e=1){return new Promise(((r,n)=>{try{this.intervalConfirm=setInterval((async()=>{const e=await this.getConfirmations(this.hash);if(e>=t)return clearInterval(this.intervalConfirm),r(e)}),1e3*e)}catch(t){n(t)}}))}async validate(t=1){t=this.timer||t;try{await this.getData();let e=null;return this.data&&null!==this.data.blockNumber&&(e="0x0"!=this.data.status),"boolean"==typeof e?e:(await new Promise((e=>setTimeout(e,1e3*t))),this.validate(t))}catch(e){if("data-request-failed"==e.message)return this.validate(t);throw e}}async verifyTokenTransfer(t){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-token-address");return!!await this.validate()&&"0x"!=this.data.input}async verifyCoinTransfer(){return!!await this.validate()&&"0x0"!=this.data.value}async verifyTokenTransferWithData(t,e,r){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-receiver-address");if(await this.verifyTokenTransfer(r)){let i=await this.decodeInput(),s=this.provider.Token(r),o={receiver:i.receiver.toLowerCase(),amount:n.toDec(i.amount,await s.getDecimals())};return o.receiver==t&&o.amount==e}return!1}async verifyCoinTransferWithData(t,e){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-receiver-address");if(await this.verifyCoinTransfer()){let r=this.provider.Coin(),i={receiver:this.data.to.toLowerCase(),amount:n.toDec(this.data.value,await r.getDecimals())};return i.receiver==t&&i.amount==e}return!1}verifyTransfer(t=null){return t?this.verifyTokenTransfer(t):this.verifyCoinTransfer()}verifyTransferWithData(t){return t.tokenAddress?this.verifyTokenTransferWithData(t.receiver,t.amount,t.tokenAddress):this.verifyCoinTransferWithData(t.receiver,t.amount)}getUrl(){if(!this.provider.network.explorerUrl)throw new Error("explorer-url-not-found");let t=this.provider.network.explorerUrl;return t+=t.endsWith("/")?"":"/",t+="tx/"+this.hash,t}}},4850:(t,e,r)=>{const n={metamask:r(5491),binancewallet:r(3416),trustwallet:r(8435),walletconnect:r(9086),phantom:r(4396),bitget:r(8983),okx:r(3260),xdefi:r(1760)};t.exports=getAdapter=(t,e)=>n[t](e)},573:(t,e,r)=>{const n=r(3555),i=r(9237);t.exports=class{provider;web3Provider;constructor(t,e){this.provider=t,this.web3Provider=e}contract(t,e,r=null){return new i.Contract(t,e,r)}contractFactory(t,e,r=null){return new i.ContractFactory(t,e,r)}async getEstimateGas(t){return n.hex((await this.web3Provider.estimateGas(t)).toString())}async getGasPrice(){return n.hex((await this.web3Provider.getGasPrice()).toString())}getBlock(...t){return this.web3Provider.getBlock(...t)}getBlockNumber(){return this.web3Provider.getBlockNumber()}getTransaction(t){return this.web3Provider.getTransaction(t)}getTransactionReceipt(t){return this.web3Provider.getTransactionReceipt(t)}getBalance(t){return this.web3Provider.getBalance(t)}}},7405:(t,e,r)=>{const n=r(9237),i=r(3555),s=r(573),o=r(7631),a=r(5874),c=r(1407),l=r(5782);class u{web3=null;web3ws=null;qrPayments=!1;methods;testnet=!1;wcProjectId=null;wcThemeMode="light";web3Modal;network={};networks=[];supportedWallets;connectedWallet={};wcCustomWallets=[];constructor(t){this.testnet=t.testnet,this.wcProjectId=t.wcProjectId,this.wcThemeMode=t.wcThemeMode||"light",this.wcCustomWallets=t.wcCustomWallets||[],Object.keys(c).forEach((t=>{let e=c[t],r=e.blockExplorers?e.blockExplorers.default.url:null,n=e.rpcUrls.default.http[0];e.rpcUrls.infura?n=e.rpcUrls.infura.http[0]:e.rpcUrls.alchemy&&(n=e.rpcUrls.alchemy.http[0]),e=Object.assign(e,{explorerUrl:r,hexId:"0x"+e.id.toString(16),rpcUrl:n}),e.rpcUrls.default.webSocket&&e.rpcUrls.default.webSocket[0]?e.wsUrl=e.rpcUrls.default.webSocket[0]:e.rpcUrls.infura&&e.rpcUrls.infura.webSocket&&e.rpcUrls.infura.webSocket[0]?e.wsUrl=e.rpcUrls.infura.webSocket[0]:e.rpcUrls.alchemy&&e.rpcUrls.alchemy.webSocket&&e.rpcUrls.alchemy.webSocket[0]&&(e.wsUrl=e.rpcUrls.alchemy.webSocket[0]),this.networks.push(e)})),this.setNetwork(t.network)}setNetwork(t){if("object"==typeof t)this.network=t;else if(i.isNumeric(t))this.network=this.networks.find((e=>e.id==parseInt(t)));else{if("string"!=typeof t)throw new Error("Invalid network!");this.network=this.networks.find((e=>e.network==t))}this.setWeb3Provider(new n.JsonRpcProvider(t.rpcUrl)),t.wsUrl&&(this.qrPayments=!0,this.web3ws=new n.WebSocketProvider(t.wsUrl))}getNetworks(){return this.networks}async listenTransactions(t,e){const n=t.receiver,i=t.tokenAddress,s={unsubscribe:()=>{}};if(!this.web3ws)throw new Error("Websocket provider not found!");if(i){const t=this.methods.contract(i,r(1646),this.web3ws),o=(t,r,i,o)=>{r===n&&e(s,this.Transaction(o.log.transactionHash))},a=t.on("Transfer",o);s.unsubscribe=()=>{a.off("Transfer",o)}}else{let t=await this.methods.getBalance(n);const r=async r=>{const i=await this.methods.getBalance(n);t{const r=await this.methods.getTransaction(t);r.to&&r.to.toLowerCase()==n.toLowerCase()&&e(s,this.Transaction(r.hash))})))};this.web3ws.on("block",r),s.unsubscribe=()=>{this.web3ws.off("block",r)}}}setWeb3Provider(t){this.methods=new s(this,this.web3=t)}setConnectedWallet(t){this.connectedWallet=t}connectWallet(t){return new Promise((async(e,r)=>{let n=this.getDetectedWallets();if(n[t]){let s=n[t];s.connect().then((()=>{e(s)})).catch((t=>{i.rejectMessage(t,r)}))}else r("wallet-not-found")}))}createWeb3Modal(){const t=r(4900);if(this.web3Modal)return this.web3Modal;this.web3Modal=new t({network:this.network,projectId:this.wcProjectId,themeMode:this.wcThemeMode,customWallets:this.wcCustomWallets});const e=this.web3Modal.coinTransfer.bind(this.web3Modal),n=this.web3Modal.tokenTransfer.bind(this.web3Modal);return this.web3Modal.coinTransfer=async(...t)=>new Promise(((r,n)=>{e(...t).then((t=>{r(this.Transaction(t))})).catch((t=>{i.rejectMessage(t,n)}))})),this.web3Modal.tokenTransfer=async(...t)=>new Promise(((e,r)=>{n(...t).then((t=>{e(this.Transaction(t))})).catch((t=>{i.rejectMessage(t,r)}))})),this.web3Modal.getName=()=>"Web3 Wallets",this.web3Modal}getSupportedWallets(t){if(!this.supportedWallets){const t=r(5123);this.supportedWallets={metamask:new t("metamask",this),trustwallet:new t("trustwallet",this),binancewallet:new t("binancewallet",this),phantom:new t("phantom",this),bitget:new t("bitget",this),okx:new t("okx",this),xdefi:new t("xdefi",this)},this.wcProjectId&&(this.supportedWallets.web3modal=this.createWeb3Modal(),this.supportedWallets.walletconnect=new t("walletconnect",this))}return Object.fromEntries(Object.entries(this.supportedWallets).filter((([e])=>!t||t.includes(e))))}getDetectedWallets(t){let e=this.getSupportedWallets(t);return Object.fromEntries(Object.entries(e).filter((([t,e])=>null==e.isDetected()||e.isDetected())))}Coin(){return new o(this)}Token(t,e=null){return new a(t,e,this)}newContract(t){return this.methods.newContract(t)}Transaction(t){return new l(t,this)}}u.utils=i,u.BigNumber=r(4431),t.exports=u},3555:(t,e,r)=>{const n=r(8269),i=r(5946);t.exports=Object.assign(i,{isAddress:t=>n.isAddress(t),rejectMessage:(t,e)=>"Not supported chainId"==t.message||String(t.message).indexOf("chain ID")>-1||String(t.message).indexOf("networkConfigurationId")>-1||String(t.message).indexOf("The Provider is not connected to the requested chain.")>-1?e("not-accepted-chain"):4001==t.code||"Rejected by user"==t.error||"cancelled"==t.message||"User canceled"==t.message||"user reject this request"==t.message||"User rejected the transaction"==t.message||"An unexpected error occurred"==t.message||"User disapproved requested chains"==t.message||String(t.message).indexOf("User")>-1||String(t.message).indexOf("Rejected")>-1||String(t.message).indexOf("cancelled")>-1||String(t.message).indexOf("canceled")>-1||String(t.message).indexOf("rejected")>-1||String(t.message).indexOf("disapproved requested chains")>-1?e("request-rejected"):String(t.message).indexOf("Invalid RPC URL")>-1?e("invalid-rpc-error"):String(t.message).includes("timeout")||String(t.message).includes("request timed out")||-32e3==t.code?e("rpc-timeout"):-32603==t.code||-32602==t.code?e("transaction-create-fail"):-32601==t.code?e("non-supported-method"):"Already processing eth_requestAccounts. Please wait."==t.message||-32002==t.code?e("already-processing"):"User closed modal"==t.message?e("closed-walletconnect-modal"):"transaction underpriced"==t.message?e("transaction-underpriced"):e(t)})},5123:(t,e,r)=>{const n=r(9237),i=r(3555),s=r(4850);t.exports=class{adapter;wallet;provider;connectedNetwork;connectedAccount;constructor(t,e){this.provider=e,this.setAdapter(t)}setAdapter(t){this.adapter=s(t,this.provider)}getKey(){return this.adapter.key}getName(){return this.adapter.name}getSupports(){return this.adapter.supports}getDeepLink(){return this.adapter.deepLink}getDownloadLink(){return this.adapter.download}isDetected(){return this.adapter.isDetected?this.adapter.isDetected():void 0}async request(t){let e=await this.wallet.request(t);if(e&&e.error){if(-32e3==e.error.code)throw new Error("rpc-timeout");throw new Error(e.error.message)}return e}getAccounts(){return this.request({method:"eth_accounts"})}async getChainId(){return this.wallet?.chainId?this.wallet?.chainId:parseInt(await this.request({method:"eth_chainId"}),16)}async isConnected(){return 0!==(await this.getAccounts()).length}connect(){return new Promise(((t,e)=>{this.adapter.connect().then((async r=>{this.wallet=r;let i=await this.getChainId();if(this.provider.network){if(this.provider.network.id!=i)return e("not-accepted-chain")}else this.provider.setNetwork(i);this.provider.setConnectedWallet(this),this.provider.setWeb3Provider(new n.BrowserProvider(this.wallet)),this.connectedAccount=(await this.getAccounts())[0],this.connectedNetwork=this.provider.network,t(this.connectedAccount)})).catch((t=>{i.rejectMessage(t,e)}))}))}sendTransaction(t){return new Promise((async(e,r)=>{this.request({method:"eth_sendTransaction",params:t}).then((t=>{e(t)})).catch((t=>{i.rejectMessage(t,r)}))}))}tokenTransfer(t,e,r){return new Promise((async(n,s)=>{try{this.validate(t,e,r),this.provider.Token(r).transfer(this.connectedAccount,t,e).then((t=>{this.sendTransaction(t).then((t=>{n(this.provider.Transaction(t))})).catch((t=>{i.rejectMessage(t,s)}))})).catch((t=>{i.rejectMessage(t,s)}))}catch(t){i.rejectMessage(t,s)}}))}coinTransfer(t,e){return new Promise((async(r,n)=>{try{this.validate(t,e),this.provider.Coin().transfer(this.connectedAccount,t,e).then((t=>{this.sendTransaction(t).then((t=>{r(this.provider.Transaction(t))})).catch((t=>{i.rejectMessage(t,n)}))})).catch((t=>{i.rejectMessage(t,n)}))}catch(t){i.rejectMessage(t,n)}}))}transfer(t,e,r=null){return r?this.tokenTransfer(t,e,r):this.coinTransfer(t,e)}validate(t,e,r=null){if(!this.connectedAccount)throw new Error("no-linked-wallet");if(e<=0)throw new Error("transfer-amount-error");if(!1===i.isAddress(t))throw new Error("invalid-receiver-address");if(r&&!1===i.isAddress(r))throw new Error("invalid-token-address");return!0}deployContract(t,e,r=[],s=null){return new Promise((async(o,a)=>{try{let i=this.provider.methods.contractFactory(t,e,await this.provider.web3.getSigner());s&&r.push({value:n.utils.parseEther(s)});const a=await i.deploy(...r);await a.waitForDeployment(),o(a.target)}catch(t){i.rejectMessage(t,a)}}))}chainChanged(t){this.wallet.on("chainChanged",(e=>{t(e)}))}accountsChanged(t){this.wallet.on("accountsChanged",(e=>{t(e)}))}networkChanged(t){this.wallet.on("networkChanged",(e=>{t(e)}))}disconnectEvent(t){this.wallet.on("disconnect",((e,r)=>{t(e,r)}))}}},8677:()=>{},5883:()=>{},2260:()=>{},2895:()=>{},1865:()=>{},7500:()=>{},30:(t,e)=>{"use strict";const r=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function n(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=2**31,d=h>>>1,p=h-1;let f=0;for(let t=0;t<31;t++)f=f<<1|u();let m=[],g=0,y=h;for(;;){let t=Math.floor(((f-g+1)*i-1)/y),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;g=o,y=1+a-o}let w=n-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return w+256+(t[a++]<<8|t[a++]);case 1:return w+t[a++];default:return e-1}}))}(function(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((t,r)=>e[t.charCodeAt(0)]=r));let r=t.length,n=new Uint8Array(6*r>>3);for(let i=0,s=0,o=0,a=0;i=8&&(n[s++]=a>>(o-=8));return n}(t)))}function i(t){return 1&t?~t>>1:t>>1}function s(t,e){let r=Array(t);for(let n=0,s=0;n{let e=o(t);if(e.length)return e}))}function c(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(h(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(d(r,t))}return e.flat()}function l(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function u(t,e,r){let n=Array(t).fill().map((()=>[]));for(let i=0;in[e].push(t)));return n}function h(t,e){let r=1+e(),n=e(),i=l(e);return u(i.length,1+t,e).flatMap(((t,e)=>{let[s,...o]=t;return Array(i[e]).fill().map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))}))}function d(t,e){return u(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}function p(t){return`{${function(t){return t.toString(16).toUpperCase().padStart(2,"0")}(t)}}`}function f(t){let e=[];for(let r=0,n=t.length;r>24&255}function x(t){return 16777215&t}let _,A,k,S;function C(t){return t>=y&&t<55204}function M(t,e){if(t>=w&&t<4371&&e>=b&&e<4470)return y+588*(t-w)+28*(e-b);if(C(t)&&e>v&&e<4547&&(t-y)%28==0)return t+(e-v);{let r=S.get(t);return r&&(r=r.get(e),r)?r:-1}}function I(t){_||function(){let t=n("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");_=new Map(a(t).flatMap(((t,e)=>t.map((t=>[t,e+1<<24]))))),A=new Set(o(t)),k=new Map,S=new Map;for(let[e,r]of c(t)){if(!A.has(e)&&2==r.length){let[t,n]=r,i=S.get(t);i||(i=new Map,S.set(t,i)),i.set(n,e)}k.set(e,r.reverse())}}();let e=[],r=[],i=!1;function s(t){let r=_.get(t);r&&(i=!0,t|=r),e.push(t)}for(let n of t)for(;;){if(n<128)e.push(n);else if(C(n)){let t=n-y,e=t%588/28|0,r=t%28;s(w+(t/588|0)),s(b+e),r>0&&s(v+r)}else{let t=k.get(n);t?r.push(...t):s(n)}if(!r.length)break;n=r.pop()}if(i&&e.length>1){let t=E(e[0]);for(let r=1;r0&&i>=t)0==t?(e.push(n,...r),r.length=0,n=o):r.push(o),i=t;else{let s=M(n,o);s>=0?n=s:0==i&&0==t?(e.push(n),n=o):(r.push(o),i=t)}}return n>=0&&e.push(n,...r),e}(I(t))}const T=".",N=t=>Array.from(t);function R(t,e){return t.P.has(e)||t.Q.has(e)}class B extends Array{get is_emoji(){return!0}}let j,L,U,D,$,F,z,H,W,q,V,G;function K(){if(j)return;let t=n("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI");const e=()=>o(t),r=()=>new Set(e());j=new Map(c(t)),L=r(),U=e(),D=new Set(e().map((t=>U[t]))),U=new Set(U),$=r(),F=r();let i=a(t),s=t();const u=()=>new Set(e().flatMap((t=>i[t])).concat(e()));z=l((e=>{let r=l(t).map((t=>t+96));if(r.length){let n=e>=s;return r[0]-=32,r=m(r),n&&(r=`Restricted[${r}]`),{N:r,P:u(),Q:u(),M:!t(),R:n}}})),H=r(),W=new Map;let h=e().concat(N(H)).sort(((t,e)=>t-e));h.forEach(((e,r)=>{let n=t(),i=h[r]=n?h[r-n]:{V:[],M:new Map};i.V.push(e),H.has(e)||W.set(e,i)}));for(let{V:t,M:e}of new Set(W.values())){let r=[];for(let e of t){let t=z.filter((t=>R(t,e))),n=r.find((({G:e})=>t.some((t=>e.has(t)))));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(e),t.forEach((t=>n.G.add(t)))}let n=r.flatMap((t=>N(t.G)));for(let{G:t,V:i}of r){let r=new Set(n.filter((e=>!t.has(e))));for(let t of i)e.set(t,r)}}let d=new Set,p=new Set;const f=t=>d.has(t)?p.add(t):d.add(t);for(let t of z){for(let e of t.P)f(e);for(let e of t.Q)f(e)}for(let t of d)W.has(t)||p.has(t)||W.set(t,1);q=new Set(N(d).concat(N(P(d)))),V=function(t){let e=[],r=o(t);return function t({S:r,B:n},i,s){if(!(4&r&&s===i[i.length-1])){2&r&&(s=i[i.length-1]),1&r&&e.push(i);for(let e of n)for(let r of e.Q)t(e,[...i,r],s)}}(function e(n){return{S:t(),B:l((()=>{let n=o(t).map((t=>r[t]));if(n.length)return e(n)})),Q:n}}([]),[]),e}(t).map((t=>B.from(t))).sort(g),G=new Map;for(let t of V){let e=[G];for(let r of t){let t=e.map((t=>{let e=t.get(r);return e||(e=new Map,t.set(r,e)),e}));65039===r?e.push(...t):e=t}for(let r of e)r.V=t}}function Z(t){return(X(t)?"":`${J(Q([t]))} `)+p(t)}function J(t){return`"${t}"‎`}function Q(t,e=p){let r=[];Y(t[0])&&r.push("◌");let n=0,i=t.length;for(let s=0;s{let s=f(t),o={input:s,offset:i};i+=s.length+1;try{let t,i=o.tokens=st(s,e,n),a=i.length;if(!a)throw new Error("empty label");let c=o.output=i.flat();if(function(t){for(let e=t.lastIndexOf(95);e>0;)if(95!==t[--e])throw new Error("underscore allowed only at start")}(c),!(o.emoji=a>1||i[0].is_emoji)&&c.every((t=>t<128)))!function(t){if(t.length>=4&&45==t[2]&&45==t[3])throw new Error(`invalid label extension: "${m(t.slice(0,4))}"`)}(c),t="ASCII";else{let e=i.flatMap((t=>t.is_emoji?[]:t));if(e.length){if(U.has(c[0]))throw it("leading combining mark");for(let t=1;tR(t,r)));if(!t.length)throw z.some((t=>R(t,r)))?nt(e[0],r):rt(r);if(e=t,1==t.length)break}return e}(n);!function(t,e){for(let r of e)if(!R(t,r))throw nt(t,r);if(t.M){let t=P(e);for(let e=1,r=t.length;e4)throw new Error(`excessive non-spacing marks: ${J(Q(t.slice(e-1,i)))} (${i-e}/4)`);e=i}}}(s,e),function(t,e){let r,n=[];for(let t of e){let e=W.get(t);if(1===e)return;if(e){let n=e.M.get(t);if(r=r?r.filter((t=>n.has(t))):N(n),!r.length)return}else n.push(t)}if(r)for(let e of r)if(n.every((t=>R(e,t))))throw new Error(`whole-script confusable: ${t.N}/${e.N}`)}(s,n),t=s.N}else t="Emoji"}o.type=t}catch(t){o.error=t}return o}))}function et(t){return t.map((({input:e,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==t.length?n:`Invalid label ${J(Q(e))}: ${n}`)}return m(n)})).join(T)}function rt(t){return new Error(`disallowed character: ${Z(t)}`)}function nt(t,e){let r=Z(e),n=z.find((t=>t.P.has(e)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function it(t){return new Error(`illegal placement: ${t}`)}function st(t,e,r){let n=[],i=[];for(t=t.slice().reverse();t.length;){let s=at(t);if(s)i.length&&(n.push(e(i)),i=[]),n.push(r(s));else{let e=t.pop();if(q.has(e))i.push(e);else{let t=j.get(e);if(t)i.push(...t);else if(!L.has(e))throw rt(e)}}}return i.length&&n.push(e(i)),n}function ot(t){return t.filter((t=>65039!=t))}function at(t,e){let r,n=G,i=t.length;for(;i&&(n=n.get(t[--i]),n);){let{V:s}=n;s&&(r=s,e&&e.push(...t.slice(i).reverse()),t.length=i)}return r}const ct="valid",lt="mapped",ut="ignored";function ht(t){return t==ct||t==lt}function dt(t){return t.some((t=>F.has(t)))}function pt(t){for(let e=0;et.cps))})}return t}e.ens_beautify=function(t){let e=tt(t,O,(t=>t));for(let{type:t,output:r,error:n}of e){if(n)break;if("Greek"!==t){let t=0;for(;;){let e=r.indexOf(958,t);if(e<0)break;r[e]=926,t=e+1}}}return et(e)},e.ens_emoji=function(){return K(),V.map((t=>t.slice()))},e.ens_normalize=function(t){return et(tt(t,O,ot))},e.ens_normalize_fragment=function(t,e){K();let r=e?P:O;return t.split(T).map((t=>m(st(f(t),r,ot).flat()))).join(T)},e.ens_split=function(t,e){return tt(t,O,e?t=>t.slice():ot)},e.ens_tokenize=function t(e,{nf:r=!0}={}){K();let n=f(e).reverse(),i=[],s=[];for(;n.length;){let t=at(n,i);if(t)s.push({type:"emoji",emoji:t.slice(),input:i,cps:ot(t)}),i=[];else{let t=n.pop();if(46==t)s.push({type:"stop",cp:t});else if(q.has(t))s.push({type:ct,cps:[t]});else if(L.has(t))s.push({type:ut,cp:t});else{let e=j.get(t);e?s.push({type:lt,cp:t,cps:e.slice()}):s.push({type:"disallowed",cp:t})}}}if(r)for(let e=0,r=-1;eht(t.type)?t.cps:[])),a=O(o);g(a,o)?(s.splice(r,n-r,{type:"nfc",input:o,cps:a,tokens0:pt(i),tokens:t(m(a),{nf:!1})}),e=r):e=n-1,r=-1}else r=e;else n.type!==ut&&(r=-1)}return pt(s)},e.is_combining_mark=Y,e.nfc=O,e.nfd=P,e.safe_str_from_cps=Q,e.should_escape=X},3083:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="6.9.1"},4760:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbiCoder=void 0;const n=r(2120),i=r(2900),s=r(2063),o=r(8151),a=r(8583),c=r(5949),l=r(4148),u=r(6341),h=r(6893),d=r(3524),p=r(6701),f=r(6711),m=r(5475),g=r(2120),y=new Map;y.set(0,"GENERIC_PANIC"),y.set(1,"ASSERT_FALSE"),y.set(17,"OVERFLOW"),y.set(18,"DIVIDE_BY_ZERO"),y.set(33,"ENUM_RANGE_ERROR"),y.set(34,"BAD_STORAGE_DATA"),y.set(49,"STACK_UNDERFLOW"),y.set(50,"ARRAY_RANGE_ERROR"),y.set(65,"OUT_OF_MEMORY"),y.set(81,"UNINITIALIZED_FUNCTION_CALL");const w=new RegExp(/^bytes([0-9]*)$/),b=new RegExp(/^(u?int)([0-9]*)$/);let v=null;class E{#t(t){if(t.isArray())return new o.ArrayCoder(this.#t(t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new p.TupleCoder(t.components.map((t=>this.#t(t))),t.name);switch(t.baseType){case"address":return new s.AddressCoder(t.name);case"bool":return new a.BooleanCoder(t.name);case"string":return new d.StringCoder(t.name);case"bytes":return new c.BytesCoder(t.name);case"":return new u.NullCoder(t.name)}let e=t.type.match(b);if(e){let r=parseInt(e[2]||"256");return(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+e[1]+" bit length","param",t),new h.NumberCoder(r/8,"int"===e[1],t.name)}if(e=t.type.match(w),e){let r=parseInt(e[1]);return(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",t),new l.FixedBytesCoder(r,t.name)}(0,n.assertArgument)(!1,"invalid type","type",t.type)}getDefaultValue(t){const e=t.map((t=>this.#t(f.ParamType.from(t))));return new p.TupleCoder(e,"_").defaultValue()}encode(t,e){(0,n.assertArgumentCount)(e.length,t.length,"types/values length mismatch");const r=t.map((t=>this.#t(f.ParamType.from(t)))),s=new p.TupleCoder(r,"_"),o=new i.Writer;return s.encode(o,e),o.data}decode(t,e,r){const n=t.map((t=>this.#t(f.ParamType.from(t))));return new p.TupleCoder(n,"_").decode(new i.Reader(e,r))}static defaultAbiCoder(){return null==v&&(v=new E),v}static getBuiltinCallException(t,e,r){return function(t,e,r,n){let i="missing revert data",s=null,o=null;if(r){i="execution reverted";const t=(0,g.getBytes)(r);if(r=(0,g.hexlify)(r),0===t.length)i+=" (no data present; likely require(false) occurred",s="require(false)";else if(t.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,g.hexlify)(t.slice(0,4)))try{s=n.decode(["string"],t.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[s]},i+=`: ${JSON.stringify(s)}`}catch(t){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,g.hexlify)(t.slice(0,4)))try{const e=Number(n.decode(["uint256"],t.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[e]},s=`Panic due to ${y.get(e)||"UNKNOWN"}(${e})`,i+=`: ${s}`}catch(t){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const a={to:e.to?(0,m.getAddress)(e.to):null,data:e.data||"0x"};return e.from&&(a.from=(0,m.getAddress)(e.from)),(0,g.makeError)(i,"CALL_EXCEPTION",{action:t,data:r,reason:s,transaction:a,invocation:null,revert:o})}(t,e,r,E.defaultAbiCoder())}}e.AbiCoder=E},2472:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBytes32String=e.encodeBytes32String=void 0;const n=r(2120);e.encodeBytes32String=function(t){const e=(0,n.toUtf8Bytes)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,n.zeroPadBytes)(e,32)},e.decodeBytes32String=function(t){const e=(0,n.getBytes)(t,"bytes");if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===e[r-1];)r--;return(0,n.toUtf8String)(e.slice(0,r))}},2900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Reader=e.Writer=e.Coder=e.checkResultErrors=e.Result=e.WordSize=void 0;const n=r(2120);e.WordSize=32;const i=new Uint8Array(e.WordSize),s=["then"],o={};function a(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}class c extends Array{#e;constructor(...t){const e=t[0];let r=t[1],i=(t[2]||[]).slice(),c=!0;e!==o&&(r=t,i=[],c=!1),super(r.length),r.forEach(((t,e)=>{this[e]=t}));const l=i.reduce(((t,e)=>("string"==typeof e&&t.set(e,(t.get(e)||0)+1),t)),new Map);if(this.#e=Object.freeze(r.map(((t,e)=>{const r=i[e];return null!=r&&1===l.get(r)?r:null}))),c)return Object.freeze(this),new Proxy(this,{get:(t,e,r)=>{if("string"==typeof e){if(e.match(/^[0-9]+$/)){const r=(0,n.getNumber)(e,"%index");if(r<0||r>=this.length)throw new RangeError("out of result range");const i=t[r];return i instanceof Error&&a(`index ${r}`,i),i}if(s.indexOf(e)>=0)return Reflect.get(t,e,r);const i=t[e];if(i instanceof Function)return function(...e){return i.apply(this===r?t:this,e)};if(!(e in t))return t.getValue.apply(this===r?t:this,[e])}return Reflect.get(t,e,r)}})}toArray(){const t=[];return this.forEach(((e,r)=>{e instanceof Error&&a(`index ${r}`,e),t.push(e)})),t}toObject(){return this.#e.reduce(((t,e,r)=>((0,n.assert)(null!=e,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),e in t||(t[e]=this.getValue(e)),t)),{})}slice(t,e){null==t&&(t=0),t<0&&(t+=this.length)<0&&(t=0),null==e&&(e=this.length),e<0&&(e+=this.length)<0&&(e=0),e>this.length&&(e=this.length);const r=[],n=[];for(let i=t;i{this.#r[t]=l(e)}}};class u{allowLoose;#r;#s;constructor(t,e){(0,n.defineProperties)(this,{allowLoose:!!e}),this.#r=(0,n.getBytesCopy)(t),this.#s=0}get data(){return(0,n.hexlify)(this.#r)}get dataLength(){return this.#r.length}get consumed(){return this.#s}get bytes(){return new Uint8Array(this.#r)}#o(t,r,i){let s=Math.ceil(r/e.WordSize)*e.WordSize;return this.#s+s>this.#r.length&&(this.allowLoose&&i&&this.#s+r<=this.#r.length?s=r:(0,n.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#r),length:this.#r.length,offset:this.#s+s})),this.#r.slice(this.#s,this.#s+s)}subReader(t){return new u(this.#r.slice(this.#s+t),this.allowLoose)}readBytes(t,e){let r=this.#o(0,t,!!e);return this.#s+=r.length,r.slice(0,t)}readValue(){return(0,n.toBigInt)(this.readBytes(e.WordSize))}readIndex(){return(0,n.toNumber)(this.readBytes(e.WordSize))}}e.Reader=u},2063:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddressCoder=void 0;const n=r(5475),i=r(358),s=r(3762),o=r(2900);class a extends o.Coder{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){let r=s.Typed.dereference(e,"string");try{r=(0,n.getAddress)(r)}catch(t){return this._throwError(t.message,e)}return t.writeValue(r)}decode(t){return(0,n.getAddress)((0,i.toBeHex)(t.readValue(),20))}}e.AddressCoder=a},6347:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousCoder=void 0;const n=r(2900);class i extends n.Coder{coder;constructor(t){super(t.name,t.type,"_",t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}e.AnonymousCoder=i},8151:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayCoder=e.unpack=e.pack=void 0;const n=r(2120),i=r(3762),s=r(2900),o=r(6347);function a(t,e,r){let i=[];if(Array.isArray(r))i=r;else if(r&&"object"==typeof r){let t={};i=e.map((e=>{const i=e.localName;return(0,n.assert)(i,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:e},value:r}),(0,n.assert)(!t[i],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:e},value:r}),t[i]=!0,r[i]}))}else(0,n.assertArgument)(!1,"invalid tuple value","tuple",r);(0,n.assertArgument)(e.length===i.length,"types/value length mismatch","tuple",r);let o=new s.Writer,a=new s.Writer,c=[];e.forEach(((t,e)=>{let r=i[e];if(t.dynamic){let e=a.length;t.encode(a,r);let n=o.writeUpdatableValue();c.push((t=>{n(t+e)}))}else t.encode(o,r)})),c.forEach((t=>{t(o.length)}));let l=t.appendWriter(o);return l+=t.appendWriter(a),l}function c(t,e){let r=[],i=[],o=t.subReader(0);return e.forEach((e=>{let s=null;if(e.dynamic){let r=t.readIndex(),i=o.subReader(r);try{s=e.decode(i)}catch(t){if((0,n.isError)(t,"BUFFER_OVERRUN"))throw t;s=t,s.baseType=e.name,s.name=e.localName,s.type=e.type}}else try{s=e.decode(t)}catch(t){if((0,n.isError)(t,"BUFFER_OVERRUN"))throw t;s=t,s.baseType=e.name,s.name=e.localName,s.type=e.type}if(null==s)throw new Error("investigate");r.push(s),i.push(e.localName||null)})),s.Result.fromItems(r,i)}e.pack=a,e.unpack=c;class l extends s.Coder{coder;length;constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),(0,n.defineProperties)(this,{coder:t,length:e})}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanCoder=void 0;const n=r(3762),i=r(2900);class s extends i.Coder{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){const r=n.Typed.dereference(e,"bool");return t.writeValue(r?1:0)}decode(t){return!!t.readValue()}}e.BooleanCoder=s},5949:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BytesCoder=e.DynamicBytesCoder=void 0;const n=r(2120),i=r(2900);class s extends i.Coder{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=(0,n.getBytesCopy)(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readIndex(),!0)}}e.DynamicBytesCoder=s,e.BytesCoder=class extends s{constructor(t){super("bytes",t)}decode(t){return(0,n.hexlify)(super.decode(t))}}},4148:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FixedBytesCoder=void 0;const n=r(2120),i=r(3762),s=r(2900);class o extends s.Coder{size;constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),(0,n.defineProperties)(this,{size:t},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=(0,n.getBytesCopy)(i.Typed.dereference(e,this.type));return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return(0,n.hexlify)(t.readBytes(this.size))}}e.FixedBytesCoder=o},6341:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullCoder=void 0;const n=r(2900),i=new Uint8Array([]);class s extends n.Coder{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes(i)}decode(t){return t.readBytes(0),null}}e.NullCoder=s},6893:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberCoder=void 0;const n=r(2120),i=r(3762),s=r(2900),o=BigInt(0),a=BigInt(1),c=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class l extends s.Coder{size;signed;constructor(t,e,r){const i=(e?"int":"uint")+8*t;super(i,i,r,!1),(0,n.defineProperties)(this,{size:t,signed:e},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(t,e){let r=(0,n.getBigInt)(i.Typed.dereference(e,this.type)),l=(0,n.mask)(c,8*s.WordSize);if(this.signed){let t=(0,n.mask)(l,8*this.size-1);(r>t||r<-(t+a))&&this._throwError("value out-of-bounds",e),r=(0,n.toTwos)(r,8*s.WordSize)}else(r(0,n.mask)(l,8*this.size))&&this._throwError("value out-of-bounds",e);return t.writeValue(r)}decode(t){let e=(0,n.mask)(t.readValue(),8*this.size);return this.signed&&(e=(0,n.fromTwos)(e,8*this.size)),e}}e.NumberCoder=l},3524:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringCoder=void 0;const n=r(2119),i=r(3762),s=r(5949);class o extends s.DynamicBytesCoder{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,(0,n.toUtf8Bytes)(i.Typed.dereference(e,"string")))}decode(t){return(0,n.toUtf8String)(super.decode(t))}}e.StringCoder=o},6701:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TupleCoder=void 0;const n=r(9290),i=r(3762),s=r(2900),o=r(8151);class a extends s.Coder{coders;constructor(t,e){let r=!1;const i=[];t.forEach((t=>{t.dynamic&&(r=!0),i.push(t.type)})),super("tuple","tuple("+i.join(",")+")",e,r),(0,n.defineProperties)(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){const r=i.Typed.dereference(e,"tuple");return(0,o.pack)(t,this.coders,r)}decode(t){return(0,o.unpack)(t,this.coders)}}e.TupleCoder=a},6711:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StructFragment=e.FunctionFragment=e.FallbackFragment=e.ConstructorFragment=e.EventFragment=e.ErrorFragment=e.NamedFragment=e.Fragment=e.ParamType=void 0;const n=r(2120),i=r(8336);function s(t){const e=new Set;return t.forEach((t=>e.add(t))),Object.freeze(e)}const o=s("external public payable".split(" ")),a="constant external internal payable private public pure view",c=s(a.split(" ")),l="constructor error event fallback function receive struct",u=s(l.split(" ")),h="calldata memory storage payable indexed",d=s(h.split(" ")),p=s([l,h,"tuple returns",a].join(" ").split(" ")),f={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},m=new RegExp("^(\\s*)"),g=new RegExp("^([0-9]+)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),w=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),b=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class v{#s;#a;get offset(){return this.#s}get length(){return this.#a.length-this.#s}constructor(t){this.#s=0,this.#a=t.slice()}clone(){return new v(this.#a)}reset(){this.#s=0}#c(t=0,e=0){return new v(this.#a.slice(t,e).map((e=>Object.freeze(Object.assign({},e,{match:e.match-t,linkBack:e.linkBack-t,linkNext:e.linkNext-t})))))}popKeyword(t){const e=this.peek();if("KEYWORD"!==e.type||!t.has(e.text))throw new Error(`expected keyword ${e.text}`);return this.pop().text}popType(t){if(this.peek().type!==t)throw new Error(`expected ${t}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const t=this.peek();if("OPEN_PAREN"!==t.type)throw new Error("bad start");const e=this.#c(this.#s+1,t.match+1);return this.#s=t.match+1,e}popParams(){const t=this.peek();if("OPEN_PAREN"!==t.type)throw new Error("bad start");const e=[];for(;this.#s=this.#a.length)throw new Error("out-of-bounds");return this.#a[this.#s]}peekKeyword(t){const e=this.peekType("KEYWORD");return null!=e&&t.has(e)?e:null}peekType(t){if(0===this.length)return null;const e=this.peek();return e.type===t?e.text:null}pop(){const t=this.peek();return this.#s++,t}toString(){const t=[];for(let e=this.#s;e`}}function E(t){const e=[],r=e=>{const r=o0&&"NUMBER"===e[e.length-1].type){const r=e.pop().text;t=r+t,e[e.length-1].value=(0,n.getNumber)(r)}if(0===e.length||"BRACKET"!==e[e.length-1].type)throw new Error("missing opening bracket");e[e.length-1].text+=t}}else if(c=a.match(y),c){if(l.text=c[1],o+=l.text.length,p.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(b)){l.type="TYPE";continue}l.type="ID"}else{if(c=a.match(g),!c)throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`);l.text=c[1],l.type="NUMBER",o+=l.text.length}}return new v(e.map((t=>Object.freeze(t))))}function x(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function _(t,e){if(e.peekKeyword(u)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function A(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(null==n||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function k(t){let e=A(t,c);return x(e,s("constant payable nonpayable".split(" "))),x(e,s("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function S(t,e){return t.popParams().map((t=>$.from(t,e)))}function C(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return(0,n.getBigInt)(t.pop().text);throw new Error("invalid gas")}return null}function M(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const I=new RegExp(/^(.*)\[([0-9]*)\]$/);function P(t){const e=t.match(b);if((0,n.assertArgument)(e,"invalid type","type",t),"uint"===t)return"uint256";if("int"===t)return"int256";if(e[2]){const r=parseInt(e[2]);(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",t)}return t}const O={},T=Symbol.for("_ethers_internal"),N="_ParamTypeInternal",R="_ErrorInternal",B="_EventInternal",j="_ConstructorInternal",L="_FallbackInternal",U="_FunctionInternal",D="_StructInternal";class ${name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(t,e,r,i,s,o,a,c){if((0,n.assertPrivate)(t,O,"ParamType"),Object.defineProperty(this,T,{value:N}),o&&(o=Object.freeze(o.slice())),"array"===i){if(null==a||null==c)throw new Error("")}else if(null!=a||null!=c)throw new Error("");if("tuple"===i){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,n.defineProperties)(this,{name:e,type:r,baseType:i,indexed:s,components:o,arrayLength:a,arrayChildren:c})}format(t){if(null==t&&(t="sighash"),"json"===t){const e=this.name||"";if(this.isArray()){const t=JSON.parse(this.arrayChildren.format("json"));return t.name=e,t.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(t)}const r={type:"tuple"===this.baseType?"tuple":this.type,name:e};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(r)}let e="";return this.isArray()?(e+=this.arrayChildren.format(t),e+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?e+="("+this.components.map((e=>e.format(t))).join("full"===t?", ":",")+")":e+=this.type,"sighash"!==t&&(!0===this.indexed&&(e+=" indexed"),"full"===t&&this.name&&(e+=" "+this.name)),e}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(t,e){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return t.map((t=>r.arrayChildren.walk(t,e)))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");const r=this;return t.map(((t,n)=>r.components[n].walk(t,e)))}return e(this.type,t)}#l(t,e,r,n){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const i=this.arrayChildren,s=e.slice();return s.forEach(((e,n)=>{i.#l(t,e,r,(t=>{s[n]=t}))})),void n(s)}if(this.isTuple()){const i=this.components;let s;if(Array.isArray(e))s=e.slice();else{if(null==e||"object"!=typeof e)throw new Error("invalid tuple value");s=i.map((t=>{if(!t.name)throw new Error("cannot use object value with unnamed components");if(!(t.name in e))throw new Error(`missing value for component ${t.name}`);return e[t.name]}))}if(s.length!==this.components.length)throw new Error("array is wrong length");return s.forEach(((e,n)=>{i[n].#l(t,e,r,(t=>{s[n]=t}))})),void n(s)}const i=r(this.type,e);i.then?t.push(async function(){n(await i)}()):n(i)}async walkAsync(t,e){const r=[],n=[t];return this.#l(r,t,e,(t=>{n[0]=t})),r.length&&await Promise.all(r),n[0]}static from(t,e){if($.isParamType(t))return t;if("string"==typeof t)try{return $.from(E(t),e)}catch(e){(0,n.assertArgument)(!1,"invalid param type","obj",t)}else if(t instanceof v){let r="",n="",i=null;A(t,s(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(n="tuple",i=t.popParams().map((t=>$.from(t))),r=`tuple(${i.map((t=>t.format())).join(",")})`):(r=P(t.popType("TYPE")),n=r);let o=null,a=null;for(;t.length&&t.peekType("BRACKET");){const e=t.pop();o=new $(O,"",r,n,null,i,a,o),a=e.value,r+=e.text,n="array",i=null}let c=null;if(A(t,d).has("indexed")){if(!e)throw new Error("");c=!0}const l=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new $(O,l,r,n,c,i,a,o)}const r=t.name;(0,n.assertArgument)(!r||"string"==typeof r&&r.match(w),"invalid name","obj.name",r);let i=t.indexed;null!=i&&((0,n.assertArgument)(e,"parameter cannot be indexed","obj.indexed",t.indexed),i=!!i);let o=t.type,a=o.match(I);if(a){const e=parseInt(a[2]||"-1"),n=$.from({type:a[1],components:t.components});return new $(O,r||"",o,"array",i,null,e,n)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){const e=null!=t.components?t.components.map((t=>$.from(t))):null;return new $(O,r||"",o,"tuple",i,e,null,null)}return o=P(t.type),new $(O,r||"",o,o,i,null,null,null)}static isParamType(t){return t&&t[T]===N}}e.ParamType=$;class F{type;inputs;constructor(t,e,r){(0,n.assertPrivate)(t,O,"Fragment"),r=Object.freeze(r.slice()),(0,n.defineProperties)(this,{type:e,inputs:r})}static from(t){if("string"==typeof t){try{F.from(JSON.parse(t))}catch(t){}return F.from(E(t))}if(t instanceof v)switch(t.peekKeyword(u)){case"constructor":return V.from(t);case"error":return W.from(t);case"event":return q.from(t);case"fallback":case"receive":return G.from(t);case"function":return K.from(t);case"struct":return Z.from(t)}else if("object"==typeof t){switch(t.type){case"constructor":return V.from(t);case"error":return W.from(t);case"event":return q.from(t);case"fallback":case"receive":return G.from(t);case"function":return K.from(t);case"struct":return Z.from(t)}(0,n.assert)(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,n.assertArgument)(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return V.isFragment(t)}static isError(t){return W.isFragment(t)}static isEvent(t){return q.isFragment(t)}static isFunction(t){return K.isFragment(t)}static isStruct(t){return Z.isFragment(t)}}e.Fragment=F;class z extends F{name;constructor(t,e,r,i){super(t,e,i),(0,n.assertArgument)("string"==typeof r&&r.match(w),"invalid identifier","name",r),i=Object.freeze(i.slice()),(0,n.defineProperties)(this,{name:r})}}function H(t,e){return"("+e.map((e=>e.format(t))).join("full"===t?", ":",")+")"}e.NamedFragment=z;class W extends z{constructor(t,e,r){super(t,"error",e,r),Object.defineProperty(this,T,{value:R})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("error"),e.push(this.name+H(t,this.inputs)),e.join(" ")}static from(t){if(W.isFragment(t))return t;if("string"==typeof t)return W.from(E(t));if(t instanceof v){const e=_("error",t),r=S(t);return M(t),new W(O,e,r)}return new W(O,t.name,t.inputs?t.inputs.map($.from):[])}static isFragment(t){return t&&t[T]===R}}e.ErrorFragment=W;class q extends z{anonymous;constructor(t,e,r,i){super(t,"event",e,r),Object.defineProperty(this,T,{value:B}),(0,n.defineProperties)(this,{anonymous:i})}get topicHash(){return(0,i.id)(this.format("sighash"))}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("event"),e.push(this.name+H(t,this.inputs)),"sighash"!==t&&this.anonymous&&e.push("anonymous"),e.join(" ")}static getTopicHash(t,e){return e=(e||[]).map((t=>$.from(t))),new q(O,t,e,!1).topicHash}static from(t){if(q.isFragment(t))return t;if("string"==typeof t)try{return q.from(E(t))}catch(e){(0,n.assertArgument)(!1,"invalid event fragment","obj",t)}else if(t instanceof v){const e=_("event",t),r=S(t,!0),n=!!A(t,s(["anonymous"])).has("anonymous");return M(t),new q(O,e,r,n)}return new q(O,t.name,t.inputs?t.inputs.map((t=>$.from(t,!0))):[],!!t.anonymous)}static isFragment(t){return t&&t[T]===B}}e.EventFragment=q;class V extends F{payable;gas;constructor(t,e,r,i,s){super(t,e,r),Object.defineProperty(this,T,{value:j}),(0,n.defineProperties)(this,{payable:i,gas:s})}format(t){if((0,n.assert)(null!=t&&"sighash"!==t,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===t)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[`constructor${H(t,this.inputs)}`];return this.payable&&e.push("payable"),null!=this.gas&&e.push(`@${this.gas.toString()}`),e.join(" ")}static from(t){if(V.isFragment(t))return t;if("string"==typeof t)try{return V.from(E(t))}catch(e){(0,n.assertArgument)(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof v){A(t,s(["constructor"]));const e=S(t),r=!!A(t,o).has("payable"),n=C(t);return M(t),new V(O,"constructor",e,r,n)}return new V(O,"constructor",t.inputs?t.inputs.map($.from):[],!!t.payable,null!=t.gas?t.gas:null)}static isFragment(t){return t&&t[T]===j}}e.ConstructorFragment=V;class G extends F{payable;constructor(t,e,r){super(t,"fallback",e),Object.defineProperty(this,T,{value:L}),(0,n.defineProperties)(this,{payable:r})}format(t){const e=0===this.inputs.length?"receive":"fallback";if("json"===t){const t=this.payable?"payable":"nonpayable";return JSON.stringify({type:e,stateMutability:t})}return`${e}()${this.payable?" payable":""}`}static from(t){if(G.isFragment(t))return t;if("string"==typeof t)try{return G.from(E(t))}catch(e){(0,n.assertArgument)(!1,"invalid fallback fragment","obj",t)}else if(t instanceof v){const e=t.toString(),r=t.peekKeyword(s(["fallback","receive"]));if((0,n.assertArgument)(r,"type must be fallback or receive","obj",e),"receive"===t.popKeyword(s(["fallback","receive"]))){const e=S(t);return(0,n.assertArgument)(0===e.length,"receive cannot have arguments","obj.inputs",e),A(t,s(["payable"])),M(t),new G(O,[],!0)}let i=S(t);i.length?(0,n.assertArgument)(1===i.length&&"bytes"===i[0].type,"invalid fallback inputs","obj.inputs",i.map((t=>t.format("minimal"))).join(", ")):i=[$.from("bytes")];const o=k(t);if((0,n.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),A(t,s(["returns"])).has("returns")){const e=S(t);(0,n.assertArgument)(1===e.length&&"bytes"===e[0].type,"invalid fallback outputs","obj.outputs",e.map((t=>t.format("minimal"))).join(", "))}return M(t),new G(O,i,"payable"===o)}if("receive"===t.type)return new G(O,[],!0);if("fallback"===t.type){const e=[$.from("bytes")],r="payable"===t.stateMutability;return new G(O,e,r)}(0,n.assertArgument)(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[T]===L}}e.FallbackFragment=G;class K extends z{constant;outputs;stateMutability;payable;gas;constructor(t,e,r,i,s,o){super(t,"function",e,i),Object.defineProperty(this,T,{value:U}),s=Object.freeze(s.slice());const a="view"===r||"pure"===r,c="payable"===r;(0,n.defineProperties)(this,{constant:a,gas:o,outputs:s,payable:c,stateMutability:r})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("function"),e.push(this.name+H(t,this.inputs)),"sighash"!==t&&("nonpayable"!==this.stateMutability&&e.push(this.stateMutability),this.outputs&&this.outputs.length&&(e.push("returns"),e.push(H(t,this.outputs))),null!=this.gas&&e.push(`@${this.gas.toString()}`)),e.join(" ")}static getSelector(t,e){return e=(e||[]).map((t=>$.from(t))),new K(O,t,"view",e,[],null).selector}static from(t){if(K.isFragment(t))return t;if("string"==typeof t)try{return K.from(E(t))}catch(e){(0,n.assertArgument)(!1,"invalid function fragment","obj",t)}else if(t instanceof v){const e=_("function",t),r=S(t),n=k(t);let i=[];A(t,s(["returns"])).has("returns")&&(i=S(t));const o=C(t);return M(t),new K(O,e,n,r,i,o)}let e=t.stateMutability;return null==e&&(e="payable","boolean"==typeof t.constant?(e="view",t.constant||(e="payable","boolean"!=typeof t.payable||t.payable||(e="nonpayable"))):"boolean"!=typeof t.payable||t.payable||(e="nonpayable")),new K(O,t.name,e,t.inputs?t.inputs.map($.from):[],t.outputs?t.outputs.map($.from):[],null!=t.gas?t.gas:null)}static isFragment(t){return t&&t[T]===U}}e.FunctionFragment=K;class Z extends z{constructor(t,e,r){super(t,"struct",e,r),Object.defineProperty(this,T,{value:D})}format(){throw new Error("@TODO")}static from(t){if("string"==typeof t)try{return Z.from(E(t))}catch(e){(0,n.assertArgument)(!1,"invalid struct fragment","obj",t)}else if(t instanceof v){const e=_("struct",t),r=S(t);return M(t),new Z(O,e,r)}return new Z(O,t.name,t.inputs?t.inputs.map($.from):[])}static isFragment(t){return t&&t[T]===D}}e.StructFragment=Z},3707:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Typed=e.Result=e.TransactionDescription=e.LogDescription=e.ErrorDescription=e.Interface=e.Indexed=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.Fragment=e.FallbackFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.encodeBytes32String=e.decodeBytes32String=e.AbiCoder=void 0;var n=r(4760);Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}});var i=r(2472);Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}});var s=r(6711);Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return s.FallbackFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return s.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return s.StructFragment}});var o=r(6401);Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return o.Result}});var a=r(3762);Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return a.Typed}})},6401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Interface=e.Indexed=e.ErrorDescription=e.TransactionDescription=e.LogDescription=e.Result=e.checkResultErrors=void 0;const n=r(6965),i=r(8336),s=r(2120),o=r(4760),a=r(2900);Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return a.Result}});const c=r(6711),l=r(3762);class u{fragment;name;signature;topic;args;constructor(t,e,r){const n=t.name,i=t.format();(0,s.defineProperties)(this,{fragment:t,name:n,signature:i,topic:e,args:r})}}e.LogDescription=u;class h{fragment;name;args;signature;selector;value;constructor(t,e,r,n){const i=t.name,o=t.format();(0,s.defineProperties)(this,{fragment:t,name:i,args:r,signature:o,selector:e,value:n})}}e.TransactionDescription=h;class d{fragment;name;args;signature;selector;constructor(t,e,r){const n=t.name,i=t.format();(0,s.defineProperties)(this,{fragment:t,name:n,args:r,signature:i,selector:e})}}e.ErrorDescription=d;class p{hash;_isIndexed;static isIndexed(t){return!(!t||!t._isIndexed)}constructor(t){(0,s.defineProperties)(this,{hash:t,_isIndexed:!0})}}e.Indexed=p;const f={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},m={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&f[t.toString()]&&(e=f[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};class g{fragments;deploy;fallback;receive;#u;#h;#d;#p;constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,this.#d=new Map,this.#u=new Map,this.#h=new Map;const r=[];for(const t of e)try{r.push(c.Fragment.from(t))}catch(t){console.log("EE",t)}(0,s.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,i=!1;this.#p=this.getAbiCoder(),this.fragments.forEach(((t,e)=>{let r;switch(t.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,s.defineProperties)(this,{deploy:t});case"fallback":return void(0===t.inputs.length?i=!0:((0,s.assertArgument)(!n||t.payable!==n.payable,"conflicting fallback fragments",`fragments[${e}]`,t),n=t,i=n.payable));case"function":r=this.#d;break;case"event":r=this.#h;break;case"error":r=this.#u;break;default:return}const o=t.format();r.has(o)||r.set(o,t)})),this.deploy||(0,s.defineProperties)(this,{deploy:c.ConstructorFragment.from("constructor()")}),(0,s.defineProperties)(this,{fallback:n,receive:i})}format(t){const e=t?"minimal":"full";return this.fragments.map((t=>t.format(e)))}formatJson(){const t=this.fragments.map((t=>t.format("json")));return JSON.stringify(t.map((t=>JSON.parse(t))))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#f(t,e,r){if((0,s.isHexString)(t)){const e=t.toLowerCase();for(const t of this.#d.values())if(e===t.selector)return t;return null}if(-1===t.indexOf("(")){const n=[];for(const[e,r]of this.#d)e.split("(")[0]===t&&n.push(r);if(e){const t=e.length>0?e[e.length-1]:null;let r=e.length,i=!0;l.Typed.isTyped(t)&&"overrides"===t.type&&(i=!1,r--);for(let t=n.length-1;t>=0;t--){const e=n[t].inputs.length;e===r||i&&e===r-1||n.splice(t,1)}for(let t=n.length-1;t>=0;t--){const r=n[t].inputs;for(let i=0;i=r.length){if("overrides"===e[i].type)continue;n.splice(t,1);break}if(e[i].type!==r[i].baseType){n.splice(t,1);break}}}}if(1===n.length&&e&&e.length!==n[0].inputs.length){const t=e[e.length-1];(null==t||Array.isArray(t)||"object"!=typeof t)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){const e=n.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous function description (i.e. matches ${e})`,"key",t)}return n[0]}return this.#d.get(c.FunctionFragment.from(t).format())||null}getFunctionName(t){const e=this.#f(t,null,!1);return(0,s.assertArgument)(e,"no matching function","key",t),e.name}hasFunction(t){return!!this.#f(t,null,!1)}getFunction(t,e){return this.#f(t,e||null,!0)}forEachFunction(t){const e=Array.from(this.#d.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r=0;t--)n[t].inputs.length=0;t--){const r=n[t].inputs;for(let i=0;i1&&r){const e=n.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous event description (i.e. matches ${e})`,"key",t)}return n[0]}return this.#h.get(c.EventFragment.from(t).format())||null}getEventName(t){const e=this.#m(t,null,!1);return(0,s.assertArgument)(e,"no matching event","key",t),e.name}hasEvent(t){return!!this.#m(t,null,!1)}getEvent(t,e){return this.#m(t,e||null,!0)}forEachEvent(t){const e=Array.from(this.#h.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r1){const r=e.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",t)}return e[0]}if("Error(string)"===(t=c.ErrorFragment.from(t).format()))return c.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===t)return c.ErrorFragment.from("error Panic(uint256)");return this.#u.get(t)||null}forEachError(t){const e=Array.from(this.#u.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r"string"===t.type?(0,i.id)(e):"bytes"===t.type?(0,n.keccak256)((0,s.hexlify)(e)):("bool"===t.type&&"boolean"==typeof e?e=e?"0x01":"0x00":t.type.match(/^u?int/)?e=(0,s.toBeHex)(e):t.type.match(/^bytes/)?e=(0,s.zeroPadBytes)(e,32):"address"===t.type&&this.#p.encode(["address"],[e]),(0,s.zeroPadValue)((0,s.hexlify)(e),32));for(e.forEach(((e,n)=>{const i=t.inputs[n];i.indexed?null==e?r.push(null):"array"===i.baseType||"tuple"===i.baseType?(0,s.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+i.name,e):Array.isArray(e)?r.push(e.map((t=>o(i,t)))):r.push(o(i,e)):(0,s.assertArgument)(null==e,"cannot filter non-indexed parameters; must be null","contract."+i.name,e)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){if("string"==typeof t){const e=this.getEvent(t);(0,s.assertArgument)(e,"unknown event","eventFragment",t),t=e}const r=[],o=[],a=[];return t.anonymous||r.push(t.topicHash),(0,s.assertArgument)(e.length===t.inputs.length,"event arguments/values mismatch","values",e),t.inputs.forEach(((t,s)=>{const c=e[s];if(t.indexed)if("string"===t.type)r.push((0,i.id)(c));else if("bytes"===t.type)r.push((0,n.keccak256)(c));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this.#p.encode([t.type],[c]))}else o.push(t),a.push(c)})),{data:this.#p.encode(o,a),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t){const e=this.getEvent(t);(0,s.assertArgument)(e,"unknown event","eventFragment",t),t=e}if(null!=r&&!t.anonymous){const e=t.topicHash;(0,s.assertArgument)((0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===e,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const n=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(c.ParamType.from({type:"bytes32",name:t.name})),o.push(!0)):(n.push(t),o.push(!1)):(i.push(t),o.push(!1))}));const l=null!=r?this.#p.decode(n,(0,s.concat)(r)):null,u=this.#p.decode(i,e,!0),h=[],d=[];let f=0,m=0;return t.inputs.forEach(((t,e)=>{let r=null;if(t.indexed)if(null==l)r=new p(null);else if(o[e])r=new p(l[m++]);else try{r=l[m++]}catch(t){r=t}else try{r=u[f++]}catch(t){r=t}h.push(r),d.push(t.name||null)})),a.Result.fromItems(h,d)}parseTransaction(t){const e=(0,s.getBytes)(t.data,"tx.data"),r=(0,s.getBigInt)(null!=t.value?t.value:0,"tx.value"),n=this.getFunction((0,s.hexlify)(e.slice(0,4)));if(!n)return null;const i=this.#p.decode(n.inputs,e.slice(4));return new h(n,n.selector,i,r)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){const e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new u(e,e.topicHash,this.decodeEventLog(e,t.data,t.topics))}parseError(t){const e=(0,s.hexlify)(t),r=this.getError((0,s.dataSlice)(e,0,4));if(!r)return null;const n=this.#p.decode(r.inputs,(0,s.dataSlice)(e,4));return new d(r,r.selector,n)}static from(t){return t instanceof g?t:"string"==typeof t?new g(JSON.parse(t)):"function"==typeof t.format?new g(t.format("json")):new g(t)}}e.Interface=g},3762:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Typed=void 0;const n=r(2120),i={};function s(t,e){let r=!1;return e<0&&(r=!0,e*=-1),new c(i,`${r?"":"u"}int${e}`,t,{signed:r,width:e})}function o(t,e){return new c(i,`bytes${e||""}`,t,{size:e})}const a=Symbol.for("_ethers_typed");class c{type;value;#g;_typedSymbol;constructor(t,e,r,s){null==s&&(s=null),(0,n.assertPrivate)(i,t,"Typed"),(0,n.defineProperties)(this,{_typedSymbol:a,type:e,value:r}),this.#g=s,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((t=>t.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#g}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#g?-1:!1===this.#g?this.value.length:null}static from(t,e){return new c(i,t,e)}static uint8(t){return s(t,8)}static uint16(t){return s(t,16)}static uint24(t){return s(t,24)}static uint32(t){return s(t,32)}static uint40(t){return s(t,40)}static uint48(t){return s(t,48)}static uint56(t){return s(t,56)}static uint64(t){return s(t,64)}static uint72(t){return s(t,72)}static uint80(t){return s(t,80)}static uint88(t){return s(t,88)}static uint96(t){return s(t,96)}static uint104(t){return s(t,104)}static uint112(t){return s(t,112)}static uint120(t){return s(t,120)}static uint128(t){return s(t,128)}static uint136(t){return s(t,136)}static uint144(t){return s(t,144)}static uint152(t){return s(t,152)}static uint160(t){return s(t,160)}static uint168(t){return s(t,168)}static uint176(t){return s(t,176)}static uint184(t){return s(t,184)}static uint192(t){return s(t,192)}static uint200(t){return s(t,200)}static uint208(t){return s(t,208)}static uint216(t){return s(t,216)}static uint224(t){return s(t,224)}static uint232(t){return s(t,232)}static uint240(t){return s(t,240)}static uint248(t){return s(t,248)}static uint256(t){return s(t,256)}static uint(t){return s(t,256)}static int8(t){return s(t,-8)}static int16(t){return s(t,-16)}static int24(t){return s(t,-24)}static int32(t){return s(t,-32)}static int40(t){return s(t,-40)}static int48(t){return s(t,-48)}static int56(t){return s(t,-56)}static int64(t){return s(t,-64)}static int72(t){return s(t,-72)}static int80(t){return s(t,-80)}static int88(t){return s(t,-88)}static int96(t){return s(t,-96)}static int104(t){return s(t,-104)}static int112(t){return s(t,-112)}static int120(t){return s(t,-120)}static int128(t){return s(t,-128)}static int136(t){return s(t,-136)}static int144(t){return s(t,-144)}static int152(t){return s(t,-152)}static int160(t){return s(t,-160)}static int168(t){return s(t,-168)}static int176(t){return s(t,-176)}static int184(t){return s(t,-184)}static int192(t){return s(t,-192)}static int200(t){return s(t,-200)}static int208(t){return s(t,-208)}static int216(t){return s(t,-216)}static int224(t){return s(t,-224)}static int232(t){return s(t,-232)}static int240(t){return s(t,-240)}static int248(t){return s(t,-248)}static int256(t){return s(t,-256)}static int(t){return s(t,-256)}static bytes1(t){return o(t,1)}static bytes2(t){return o(t,2)}static bytes3(t){return o(t,3)}static bytes4(t){return o(t,4)}static bytes5(t){return o(t,5)}static bytes6(t){return o(t,6)}static bytes7(t){return o(t,7)}static bytes8(t){return o(t,8)}static bytes9(t){return o(t,9)}static bytes10(t){return o(t,10)}static bytes11(t){return o(t,11)}static bytes12(t){return o(t,12)}static bytes13(t){return o(t,13)}static bytes14(t){return o(t,14)}static bytes15(t){return o(t,15)}static bytes16(t){return o(t,16)}static bytes17(t){return o(t,17)}static bytes18(t){return o(t,18)}static bytes19(t){return o(t,19)}static bytes20(t){return o(t,20)}static bytes21(t){return o(t,21)}static bytes22(t){return o(t,22)}static bytes23(t){return o(t,23)}static bytes24(t){return o(t,24)}static bytes25(t){return o(t,25)}static bytes26(t){return o(t,26)}static bytes27(t){return o(t,27)}static bytes28(t){return o(t,28)}static bytes29(t){return o(t,29)}static bytes30(t){return o(t,30)}static bytes31(t){return o(t,31)}static bytes32(t){return o(t,32)}static address(t){return new c(i,"address",t)}static bool(t){return new c(i,"bool",!!t)}static bytes(t){return new c(i,"bytes",t)}static string(t){return new c(i,"string",t)}static array(t,e){throw new Error("not implemented yet")}static tuple(t,e){throw new Error("not implemented yet")}static overrides(t){return new c(i,"overrides",Object.assign({},t))}static isTyped(t){return t&&"object"==typeof t&&"_typedSymbol"in t&&t._typedSymbol===a}static dereference(t,e){if(c.isTyped(t)){if(t.type!==e)throw new Error(`invalid type: expecetd ${e}, got ${t.type}`);return t.value}return t}}e.Typed=c},805:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIcapAddress=e.getAddress=void 0;const n=r(6965),i=r(2120),s=BigInt(0),o=BigInt(36);function a(t){const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const s=(0,i.getBytes)((0,n.keccak256)(r));for(let t=0;t<40;t+=2)s[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&s[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const c={};for(let t=0;t<10;t++)c[String(t)]=String(t);for(let t=0;t<26;t++)c[String.fromCharCode(65+t)]=String(10+t);function l(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>c[t])).join("");for(;e.length>=15;){let t=e.substring(0,15);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const u=function(){const t={};for(let e=0;e<36;e++)t["0123456789abcdefghijklmnopqrstuvwxyz"[e]]=BigInt(e);return t}();function h(t){if((0,i.assertArgument)("string"==typeof t,"invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/)){t.startsWith("0x")||(t="0x"+t);const e=a(t);return(0,i.assertArgument)(!t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||e===t,"bad address checksum","address",t),e}if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.assertArgument)(t.substring(2,4)===l(t),"bad icap checksum","address",t);let e=function(t){t=t.toLowerCase();let e=s;for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAddress=e.isAddress=e.isAddressable=void 0;const n=r(2120),i=r(805);function s(t){return t&&"function"==typeof t.getAddress}async function o(t,e){const r=await e;return null!=r&&"0x0000000000000000000000000000000000000000"!==r||((0,n.assert)("string"!=typeof t,"unconfigured name","UNCONFIGURED_NAME",{value:t}),(0,n.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",t)),(0,i.getAddress)(r)}e.isAddressable=s,e.isAddress=function(t){try{return(0,i.getAddress)(t),!0}catch(t){}return!1},e.resolveAddress=function(t,e){return"string"==typeof t?t.match(/^0x[0-9a-f]{40}$/i)?(0,i.getAddress)(t):((0,n.assert)(null!=e,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(t,e.resolveName(t))):s(t)?o(t,t.getAddress()):t&&"function"==typeof t.then?o(t,t):void(0,n.assertArgument)(!1,"unsupported addressable value","target",t)}},6067:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCreate2Address=e.getCreateAddress=void 0;const n=r(6965),i=r(2120),s=r(805);e.getCreateAddress=function(t){const e=(0,s.getAddress)(t.from);let r=(0,i.getBigInt)(t.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,s.getAddress)((0,i.dataSlice)((0,n.keccak256)((0,i.encodeRlp)([e,r])),12))},e.getCreate2Address=function(t,e,r){const o=(0,s.getAddress)(t),a=(0,i.getBytes)(e,"salt"),c=(0,i.getBytes)(r,"initCodeHash");return(0,i.assertArgument)(32===a.length,"salt must be 32 bytes","salt",e),(0,i.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,s.getAddress)((0,i.dataSlice)((0,n.keccak256)((0,i.concat)(["0xff",o,a,c])),12))}},5475:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=void 0;var n=r(805);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return n.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return n.getIcapAddress}});var i=r(6067);Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}});var s=r(3442);Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return s.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return s.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return s.resolveAddress}})},3223:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZeroAddress=void 0,e.ZeroAddress="0x0000000000000000000000000000000000000000"},688:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZeroHash=void 0,e.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},87:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePrefix=e.EtherSymbol=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.N=e.ZeroHash=e.ZeroAddress=void 0;var n=r(3223);Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return n.ZeroAddress}});var i=r(688);Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return i.ZeroHash}});var s=r(4456);Object.defineProperty(e,"N",{enumerable:!0,get:function(){return s.N}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return s.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return s.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return s.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return s.MaxInt256}});var o=r(2359);Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},4456:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.N=void 0,e.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),e.WeiPerEther=BigInt("1000000000000000000"),e.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),e.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},2359:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePrefix=e.EtherSymbol=void 0,e.EtherSymbol="Ξ",e.MessagePrefix="Ethereum Signed Message:\n"},4350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.BaseContract=e.resolveArgs=e.copyOverrides=void 0;const n=r(3707),i=r(5475),s=r(7143),o=r(2120),a=r(7151),c=BigInt(0);function l(t){return t&&"function"==typeof t.call}function u(t){return t&&"function"==typeof t.estimateGas}function h(t){return t&&"function"==typeof t.resolveName}function d(t){return t&&"function"==typeof t.sendTransaction}function p(t){if(null!=t){if(h(t))return t;if(t.provider)return t.provider}}class f{#y;fragment;constructor(t,e,r){if((0,o.defineProperties)(this,{fragment:e}),e.inputs.lengthnull==r[e]?null:t.walkAsync(r[e],((t,e)=>"address"===t?Array.isArray(e)?Promise.all(e.map((t=>(0,i.resolveAddress)(t,s)))):(0,i.resolveAddress)(e,s):e)))));return t.interface.encodeFilterTopics(e,n)}()}getTopicFilter(){return this.#y}}function m(t,e){return null==t?null:"function"==typeof t[e]?t:t.provider&&"function"==typeof t.provider[e]?t.provider:null}function g(t){return null==t?null:t.provider||null}async function y(t,e){const r=n.Typed.dereference(t,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",t);const i=(0,s.copyRequest)(r);return(0,o.assertArgument)(null==i.to||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",i.to),(0,o.assertArgument)(null==i.data||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",i.data),i.from&&(i.from=i.from),i}async function w(t,e,r){const s=m(t,"resolveName"),o=h(s)?s:null;return await Promise.all(e.map(((t,e)=>t.walkAsync(r[e],((t,e)=>(e=n.Typed.dereference(e,t),"address"===t?(0,i.resolveAddress)(e,o):e))))))}function b(t){const e=async function(e){const r=await y(e,["data"]);r.to=await t.getAddress(),r.from&&(r.from=await(0,i.resolveAddress)(r.from,p(t.runner)));const n=t.interface,s=(0,o.getBigInt)(r.value||c,"overrides.value")===c,a="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||a||s||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",e),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data);const l=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(l||s,"cannot send value to non-payable fallback","overrides.value",r.value),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){const n=t.runner;(0,o.assert)(d(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await n.sendTransaction(await e(r)),s=g(t.runner);return new a.ContractTransactionResponse(t.interface,s,i)},n=async t=>await r(t);return(0,o.defineProperties)(n,{_contract:t,estimateGas:async function(r){const n=m(t.runner,"estimateGas");return(0,o.assert)(u(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await e(r))},populateTransaction:e,send:r,staticCall:async function(r){const n=m(t.runner,"call");(0,o.assert)(l(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await e(r);try{return await n.call(i)}catch(e){if((0,o.isCallException)(e)&&e.data)throw t.interface.makeError(e.data,i);throw e}}}),n}e.copyOverrides=y,e.resolveArgs=w;const v=Symbol.for("_ethersInternal_contract"),E=new WeakMap;function x(t){return E.get(t[v])}async function _(t,e){let r,n=null;if(Array.isArray(e)){const n=function(e){if((0,o.isHexString)(e,32))return e;const r=t.interface.getEvent(e);return(0,o.assertArgument)(r,"unknown fragment","name",e),r.topicHash};r=e.map((t=>null==t?null:Array.isArray(t)?t.map(n):n(t)))}else"*"===e?r=[null]:"string"==typeof e?(0,o.isHexString)(e,32)?r=[e]:(n=t.interface.getEvent(e),(0,o.assertArgument)(n,"unknown fragment","event",e),r=[n.topicHash]):(i=e)&&"object"==typeof i&&"getTopicFilter"in i&&"function"==typeof i.getTopicFilter&&i.fragment?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):(0,o.assertArgument)(!1,"unknown event name","event",e);var i;return r=r.map((t=>{if(null==t)return null;if(Array.isArray(t)){const e=Array.from(new Set(t.map((t=>t.toLowerCase()))).values());return 1===e.length?e[0]:(e.sort(),e)}return t.toLowerCase()})),{fragment:n,tag:r.map((t=>null==t?"null":Array.isArray(t)?t.join("|"):t)).join("&"),topics:r}}async function A(t,e){const{subs:r}=x(t);return r.get((await _(t,e)).tag)||null}async function k(t,e,r){const n=g(t.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:i,tag:s,topics:c}=await _(t,r),{addr:l,subs:u}=x(t);let h=u.get(s);if(!h){const e={address:l||t,topics:c},o=e=>{let n=i;if(null==n)try{n=t.interface.getEvent(e.topics[0])}catch(t){}if(n){const s=n,o=i?t.interface.decodeEventLog(i,e.data,e.topics):[];C(t,r,o,(n=>new a.ContractEventPayload(t,n,r,s,e)))}else C(t,r,[],(n=>new a.ContractUnknownEventPayload(t,n,r,e)))};let d=[];h={tag:s,listeners:[],start:()=>{d.length||d.push(n.on(e,o))},stop:async()=>{if(0==d.length)return;let t=d;d=[],await Promise.all(t),n.off(e,o)}},u.set(s,h)}return h}let S=Promise.resolve();async function C(t,e,r,n){try{await S}catch(t){}const i=async function(t,e,r,n){await S;const i=await A(t,e);if(!i)return!1;const s=i.listeners.length;return i.listeners=i.listeners.filter((({listener:e,once:i})=>{const s=Array.from(r);n&&s.push(n(i?null:e));try{e.call(t,...s)}catch(t){}return!i})),0===i.listeners.length&&(i.stop(),x(t).subs.delete(i.tag)),s>0}(t,e,r,n);return S=i,await i}const M=["then"];class I{target;interface;runner;filters;[v];fallback;constructor(t,e,r,s){(0,o.assertArgument)("string"==typeof t||(0,i.isAddressable)(t),"invalid value for Contract target","target",t),null==r&&(r=null);const c=n.Interface.from(e);let l;(0,o.defineProperties)(this,{target:t,runner:r,interface:c}),Object.defineProperty(this,v,{value:{}});let u=null,d=null;if(s){const t=g(r);d=new a.ContractTransactionResponse(this.interface,t,s)}let p=new Map;if("string"==typeof t)if((0,o.isHexString)(t))u=t,l=Promise.resolve(t);else{const e=m(r,"resolveName");if(!h(e))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});l=e.resolveName(t).then((e=>{if(null==e)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return x(this).addr=e,e}))}else l=t.getAddress().then((t=>{if(null==t)throw new Error("TODO");return x(this).addr=t,t}));var f;f={addrPromise:l,addr:u,deployTx:d,subs:p},E.set(this[v],f);const y=new Proxy({},{get:(t,e,r)=>{if("symbol"==typeof e||M.indexOf(e)>=0)return Reflect.get(t,e,r);try{return this.getEvent(e)}catch(t){if(!(0,o.isError)(t,"INVALID_ARGUMENT")||"key"!==t.argument)throw t}},has:(t,e)=>M.indexOf(e)>=0?Reflect.has(t,e):Reflect.has(t,e)||this.interface.hasEvent(String(e))});return(0,o.defineProperties)(this,{filters:y}),(0,o.defineProperties)(this,{fallback:c.receive||c.fallback?b(this):null}),new Proxy(this,{get:(t,e,r)=>{if("symbol"==typeof e||e in t||M.indexOf(e)>=0)return Reflect.get(t,e,r);try{return t.getFunction(e)}catch(t){if(!(0,o.isError)(t,"INVALID_ARGUMENT")||"key"!==t.argument)throw t}},has:(t,e)=>"symbol"==typeof e||e in t||M.indexOf(e)>=0?Reflect.has(t,e):t.interface.hasFunction(e)})}connect(t){return new I(this.target,this.interface,t)}attach(t){return new I(t,this.interface,this.runner)}async getAddress(){return await x(this).addrPromise}async getDeployedCode(){const t=g(this.runner);(0,o.assert)(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const e=await t.getCode(await this.getAddress());return"0x"===e?null:e}async waitForDeployment(){const t=this.deploymentTransaction();if(t)return await t.wait(),this;if(null!=await this.getDeployedCode())return this;const e=g(this.runner);return(0,o.assert)(null!=e,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((t,r)=>{const n=async()=>{try{if(null!=await this.getDeployedCode())return t(this);e.once("block",n)}catch(t){r(t)}};n()}))}deploymentTransaction(){return x(this).deployTx}getFunction(t){"string"!=typeof t&&(t=t.format());const e=function(t,e){const r=function(...r){const n=t.interface.getFunction(e,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),n},n=async function(...e){const n=r(...e);let s={};if(n.inputs.length+1===e.length&&(s=await y(e.pop()),s.from&&(s.from=await(0,i.resolveAddress)(s.from,p(t.runner)))),n.inputs.length!==e.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const a=await w(t.runner,n.inputs,e);return Object.assign({},s,await(0,o.resolveProperties)({to:t.getAddress(),data:t.interface.encodeFunctionData(n,a)}))},s=async function(...t){const e=await h(...t);return 1===e.length?e[0]:e},c=async function(...e){const r=t.runner;(0,o.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await r.sendTransaction(await n(...e)),s=g(t.runner);return new a.ContractTransactionResponse(t.interface,s,i)},h=async function(...e){const i=m(t.runner,"call");(0,o.assert)(l(i),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await n(...e);let a="0x";try{a=await i.call(s)}catch(e){if((0,o.isCallException)(e)&&e.data)throw t.interface.makeError(e.data,s);throw e}const c=r(...e);return t.interface.decodeFunctionResult(c,a)},f=async(...t)=>r(...t).constant?await s(...t):await c(...t);return(0,o.defineProperties)(f,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:async function(...e){const r=m(t.runner,"estimateGas");return(0,o.assert)(u(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...e))},populateTransaction:n,send:c,staticCall:s,staticCallResult:h}),Object.defineProperty(f,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=t.interface.getFunction(e);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),f}(this,t);return e}getEvent(t){return"string"!=typeof t&&(t=t.format()),function(t,e){const r=function(...r){const n=t.interface.getEvent(e,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),n},n=function(...e){return new f(t,r(...e),e)};return(0,o.defineProperties)(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=t.interface.getEvent(e);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,e,r){null==e&&(e=0),null==r&&(r="latest");const{addr:n,addrPromise:i}=x(this),c=n||await i,{fragment:l,topics:u}=await _(this,t),h={address:c,topics:u,fromBlock:e,toBlock:r},d=g(this.runner);return(0,o.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(h)).map((t=>{let e=l;if(null==e)try{e=this.interface.getEvent(t.topics[0])}catch(t){}if(e)try{return new a.EventLog(t,this.interface,e)}catch(e){return new a.UndecodedEventLog(t,e)}return new s.Log(t,d)}))}async on(t,e){const r=await k(this,"on",t);return r.listeners.push({listener:e,once:!1}),r.start(),this}async once(t,e){const r=await k(this,"once",t);return r.listeners.push({listener:e,once:!0}),r.start(),this}async emit(t,...e){return await C(this,t,e,null)}async listenerCount(t){if(t){const e=await A(this,t);return e?e.listeners.length:0}const{subs:e}=x(this);let r=0;for(const{listeners:t}of e.values())r+=t.length;return r}async listeners(t){if(t){const e=await A(this,t);return e?e.listeners.map((({listener:t})=>t)):[]}const{subs:e}=x(this);let r=[];for(const{listeners:t}of e.values())r=r.concat(t.map((({listener:t})=>t)));return r}async off(t,e){const r=await A(this,t);if(!r)return this;if(e){const t=r.listeners.map((({listener:t})=>t)).indexOf(e);t>=0&&r.listeners.splice(t,1)}return null!=e&&0!==r.listeners.length||(r.stop(),x(this).subs.delete(r.tag)),this}async removeAllListeners(t){if(t){const e=await A(this,t);if(!e)return this;e.stop(),x(this).subs.delete(e.tag)}else{const{subs:t}=x(this);for(const{tag:e,stop:r}of t.values())r(),t.delete(e)}return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return await this.off(t,e)}static buildClass(t){return class extends I{constructor(e,r=null){super(e,t,r)}}}static from(t,e,r){return null==r&&(r=null),new this(t,e,r)}}e.BaseContract=I;class P extends(function(){return I}()){}e.Contract=P},1018:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContractFactory=void 0;const n=r(3707),i=r(5475),s=r(2120),o=r(4350);class a{interface;bytecode;runner;constructor(t,e,r){const i=n.Interface.from(t);e instanceof Uint8Array||("object"==typeof e&&(e=e.object),e.startsWith("0x")||(e="0x"+e)),e=(0,s.hexlify)((0,s.getBytes)(e)),(0,s.defineProperties)(this,{bytecode:e,interface:i,runner:r||null})}attach(t){return new o.BaseContract(t,this.interface,this.runner)}async getDeployTransaction(...t){let e={};const r=this.interface.deploy;if(r.inputs.length+1===t.length&&(e=await(0,o.copyOverrides)(t.pop())),r.inputs.length!==t.length)throw new Error("incorrect number of arguments to constructor");const n=await(0,o.resolveArgs)(this.runner,r.inputs,t),i=(0,s.concat)([this.bytecode,this.interface.encodeDeploy(n)]);return Object.assign({},e,{data:i})}async deploy(...t){const e=await this.getDeployTransaction(...t);(0,s.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(e),n=(0,i.getCreateAddress)(r);return new o.BaseContract(n,this.interface,this.runner,r)}connect(t){return new a(this.interface,this.bytecode,t)}static fromSolidity(t,e){(0,s.assertArgument)(null!=t,"bad compiler output","output",t),"string"==typeof t&&(t=JSON.parse(t));const r=t.abi;let n="";return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(r,n,e)}}e.ContractFactory=a},7252:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndecodedEventLog=e.EventLog=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractUnknownEventPayload=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=void 0;var n=r(4350);Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return n.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return n.Contract}});var i=r(1018);Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return i.ContractFactory}});var s=r(7151);Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}})},7151:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContractEventPayload=e.ContractUnknownEventPayload=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.UndecodedEventLog=e.EventLog=void 0;const n=r(7143),i=r(2120);class s extends n.Log{interface;fragment;args;constructor(t,e,r){super(t,t.provider);const n=e.decodeEventLog(r,t.data,t.topics);(0,i.defineProperties)(this,{args:n,fragment:r,interface:e})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}e.EventLog=s;class o extends n.Log{error;constructor(t,e){super(t,t.provider),(0,i.defineProperties)(this,{error:e})}}e.UndecodedEventLog=o;class a extends n.TransactionReceipt{#w;constructor(t,e,r){super(r,e),this.#w=t}get logs(){return super.logs.map((t=>{const e=t.topics.length?this.#w.getEvent(t.topics[0]):null;if(e)try{return new s(t,this.#w,e)}catch(e){return new o(t,e)}return t}))}}e.ContractTransactionReceipt=a;class c extends n.TransactionResponse{#w;constructor(t,e,r){super(r,e),this.#w=t}async wait(t){const e=await super.wait(t);return null==e?null:new a(this.#w,this.provider,e)}}e.ContractTransactionResponse=c;class l extends i.EventPayload{log;constructor(t,e,r,n){super(t,e,r),(0,i.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}e.ContractUnknownEventPayload=l,e.ContractEventPayload=class extends l{constructor(t,e,r,n,o){super(t,e,r,new s(o,t.interface,n));const a=t.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,i.defineProperties)(this,{args:a,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},3147:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.pbkdf2Sync=e.createHmac=e.createHash=void 0;const n=r(798),i=r(4112),s=r(7366),o=r(937),a=r(2120),c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}(),l=c.crypto||c.msCrypto;e.createHash=function(t){switch(t){case"sha256":return s.sha256.create();case"sha512":return o.sha512.create()}(0,a.assertArgument)(!1,"invalid hashing algorithm name","algorithm",t)},e.createHmac=function(t,e){const r={sha256:s.sha256,sha512:o.sha512}[t];return(0,a.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",t),n.hmac.create(r,e)},e.pbkdf2Sync=function(t,e,r,n,c){const l={sha256:s.sha256,sha512:o.sha512}[c];return(0,a.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",c),(0,i.pbkdf2)(l,t,e,{c:r,dkLen:n})},e.randomBytes=function(t){(0,a.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,a.assertArgument)(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return l.getRandomValues(e),e}},6117:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeHmac=void 0;const n=r(3147),i=r(2120);let s=!1;const o=function(t,e,r){return(0,n.createHmac)(t,e).update(r).digest()};let a=o;function c(t,e,r){const n=(0,i.getBytes)(e,"key"),s=(0,i.getBytes)(r,"data");return(0,i.hexlify)(a(t,n,s))}e.computeHmac=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new Error("computeHmac is locked");a=t},Object.freeze(c)},6965:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lock=e.Signature=e.SigningKey=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=void 0;const n=r(6117);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}});const i=r(3037);Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return i.keccak256}});const s=r(7990);Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return s.ripemd160}});const o=r(4989);Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const a=r(2385);Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return a.randomBytes}});const c=r(6168);Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});const l=r(9233);Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return l.sha512}});var u=r(3106);Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var h=r(3295);Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return h.Signature}}),e.lock=function(){n.computeHmac.lock(),i.keccak256.lock(),o.pbkdf2.lock(),a.randomBytes.lock(),s.ripemd160.lock(),c.scrypt.lock(),c.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),a.randomBytes.lock()}},3037:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak256=void 0;const n=r(7910),i=r(2120);let s=!1;const o=function(t){return(0,n.keccak_256)(t)};let a=o;function c(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}e.keccak256=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new TypeError("keccak256 is locked");a=t},Object.freeze(c)},4989:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pbkdf2=void 0;const n=r(3147),i=r(2120);let s=!1;const o=function(t,e,r,i,s){return(0,n.pbkdf2Sync)(t,e,r,i,s)};let a=o;function c(t,e,r,n,s){const o=(0,i.getBytes)(t,"password"),c=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(a(o,c,r,n,s))}e.pbkdf2=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new Error("pbkdf2 is locked");a=t},Object.freeze(c)},2385:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=void 0;const n=r(3147);let i=!1;const s=function(t){return new Uint8Array((0,n.randomBytes)(t))};let o=s;function a(t){return o(t)}e.randomBytes=a,a._=s,a.lock=function(){i=!0},a.register=function(t){if(i)throw new Error("randomBytes is locked");o=t},Object.freeze(a)},7990:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=void 0;const n=r(7746),i=r(2120);let s=!1;const o=function(t){return(0,n.ripemd160)(t)};let a=o;function c(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}e.ripemd160=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new TypeError("ripemd160 is locked");a=t},Object.freeze(c)},6168:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scryptSync=e.scrypt=void 0;const n=r(9468),i=r(2120);let s=!1,o=!1;const a=async function(t,e,r,i,s,o,a){return await(0,n.scryptAsync)(t,e,{N:r,r:i,p:s,dkLen:o,onProgress:a})},c=function(t,e,r,i,s,o){return(0,n.scrypt)(t,e,{N:r,r:i,p:s,dkLen:o})};let l=a,u=c;async function h(t,e,r,n,s,o,a){const c=(0,i.getBytes)(t,"passwd"),u=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(await l(c,u,r,n,s,o,a))}function d(t,e,r,n,s,o){const a=(0,i.getBytes)(t,"passwd"),c=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(u(a,c,r,n,s,o))}e.scrypt=h,h._=a,h.lock=function(){o=!0},h.register=function(t){if(o)throw new Error("scrypt is locked");l=t},Object.freeze(h),e.scryptSync=d,d._=c,d.lock=function(){s=!0},d.register=function(t){if(s)throw new Error("scryptSync is locked");u=t},Object.freeze(d)},9233:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512=e.sha256=void 0;const n=r(3147),i=r(2120),s=function(t){return(0,n.createHash)("sha256").update(t).digest()},o=function(t){return(0,n.createHash)("sha512").update(t).digest()};let a=s,c=o,l=!1,u=!1;function h(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}function d(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(c(e))}e.sha256=h,h._=s,h.lock=function(){l=!0},h.register=function(t){if(l)throw new Error("sha256 is locked");a=t},Object.freeze(h),e.sha512=d,d._=o,d.lock=function(){u=!0},d.register=function(t){if(u)throw new Error("sha512 is locked");c=t},Object.freeze(h)},3295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Signature=void 0;const n=r(87),i=r(2120),s=BigInt(0),o=BigInt(1),a=BigInt(2),c=BigInt(27),l=BigInt(28),u=BigInt(35),h={};function d(t){return(0,i.zeroPadValue)((0,i.toBeArray)(t),32)}class p{#b;#v;#E;#x;get r(){return this.#b}set r(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid r","value",t),this.#b=(0,i.hexlify)(t)}get s(){return this.#v}set s(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid s","value",t);const e=(0,i.hexlify)(t);(0,i.assertArgument)(parseInt(e.substring(0,3))<8,"non-canonical s","value",e),this.#v=e}get v(){return this.#E}set v(t){const e=(0,i.getNumber)(t,"value");(0,i.assertArgument)(27===e||28===e,"invalid v","v",t),this.#E=e}get networkV(){return this.#x}get legacyChainId(){const t=this.networkV;return null==t?null:p.getChainId(t)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const t=(0,i.getBytes)(this.s);return this.yParity&&(t[0]|=128),(0,i.hexlify)(t)}get compactSerialized(){return(0,i.concat)([this.r,this.yParityAndS])}get serialized(){return(0,i.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(t,e,r,n){(0,i.assertPrivate)(t,h,"Signature"),this.#b=e,this.#v=r,this.#E=n,this.#x=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const t=new p(h,this.r,this.s,this.v);return this.networkV&&(t.#x=this.networkV),t}toJSON(){const t=this.networkV;return{_type:"signature",networkV:null!=t?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){const e=(0,i.getBigInt)(t,"v");return e==c||e==l?s:((0,i.assertArgument)(e>=u,"invalid EIP-155 v","v",t),(e-u)/a)}static getChainIdV(t,e){return(0,i.getBigInt)(t)*a+BigInt(35+e-27)}static getNormalizedV(t){const e=(0,i.getBigInt)(t);return e===s||e===c?27:e===o||e===l?28:((0,i.assertArgument)(e>=u,"invalid v","v",t),e&o?27:28)}static from(t){function e(e,r){(0,i.assertArgument)(e,r,"signature",t)}if(null==t)return new p(h,n.ZeroHash,n.ZeroHash,27);if("string"==typeof t){const r=(0,i.getBytes)(t,"signature");if(64===r.length){const t=(0,i.hexlify)(r.slice(0,32)),e=r.slice(32,64),n=128&e[0]?28:27;return e[0]&=127,new p(h,t,(0,i.hexlify)(e),n)}if(65===r.length){const t=(0,i.hexlify)(r.slice(0,32)),n=r.slice(32,64);e(0==(128&n[0]),"non-canonical s");const s=p.getNormalizedV(r[64]);return new p(h,t,(0,i.hexlify)(n),s)}e(!1,"invalid raw signature length")}if(t instanceof p)return t.clone();const r=t.r;e(null!=r,"missing r");const s=d(r),o=function(t,r){if(null!=t)return d(t);if(null!=r){e((0,i.isHexString)(r,32),"invalid yParityAndS");const t=(0,i.getBytes)(r);return t[0]&=127,(0,i.hexlify)(t)}e(!1,"missing s")}(t.s,t.yParityAndS);e(0==(128&(0,i.getBytes)(o)[0]),"non-canonical s");const{networkV:a,v:c}=function(t,r,n){if(null!=t){const e=(0,i.getBigInt)(t);return{networkV:e>=u?e:void 0,v:p.getNormalizedV(e)}}if(null!=r)return e((0,i.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,i.getBytes)(r)[0]?28:27};if(null!=n){switch((0,i.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}e(!1,"invalid yParity")}e(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),l=new p(h,s,o,c);return a&&(l.#x=a),e(null==t.yParity||(0,i.getNumber)(t.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),e(null==t.yParityAndS||t.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}e.Signature=p},3106:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigningKey=void 0;const n=r(2958),i=r(2120),s=r(3295);class o{#_;constructor(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid private key","privateKey","[REDACTED]"),this.#_=(0,i.hexlify)(t)}get privateKey(){return this.#_}get publicKey(){return o.computePublicKey(this.#_)}get compressedPublicKey(){return o.computePublicKey(this.#_,!0)}sign(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid digest length","digest",t);const e=n.secp256k1.sign((0,i.getBytesCopy)(t),(0,i.getBytesCopy)(this.#_),{lowS:!0});return s.Signature.from({r:(0,i.toBeHex)(e.r,32),s:(0,i.toBeHex)(e.s,32),v:e.recovery?28:27})}computeSharedSecret(t){const e=o.computePublicKey(t);return(0,i.hexlify)(n.secp256k1.getSharedSecret((0,i.getBytesCopy)(this.#_),(0,i.getBytes)(e),!1))}static computePublicKey(t,e){let r=(0,i.getBytes)(t,"key");if(32===r.length){const t=n.secp256k1.getPublicKey(r,!!e);return(0,i.hexlify)(t)}if(64===r.length){const t=new Uint8Array(65);t[0]=4,t.set(r,1),r=t}const s=n.secp256k1.ProjectivePoint.fromHex(r);return(0,i.hexlify)(s.toRawBytes(e))}static recoverPublicKey(t,e){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid digest length","digest",t);const r=s.Signature.from(e);let o=n.secp256k1.Signature.fromCompact((0,i.getBytesCopy)((0,i.concat)([r.r,r.s])));o=o.addRecoveryBit(r.yParity);const a=o.recoverPublicKey((0,i.getBytesCopy)(t));return(0,i.assertArgument)(null!=a,"invalid signautre for digest","signature",e),"0x"+a.toHex(!1)}static addPoints(t,e,r){const i=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(t).substring(2)),s=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(e).substring(2));return"0x"+i.add(s).toHex(!!r)}}e.SigningKey=o},1097:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=e.UndecodedEventLog=e.EventLog=e.ContractUnknownEventPayload=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=e.MessagePrefix=e.EtherSymbol=e.ZeroHash=e.N=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.ZeroAddress=e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=e.Typed=e.TransactionDescription=e.Result=e.LogDescription=e.Interface=e.Indexed=e.ErrorDescription=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.FallbackFragment=e.Fragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.AbiCoder=e.encodeBytes32String=e.decodeBytes32String=e.version=void 0,e.EtherscanPlugin=e.EnsPlugin=e.Network=e.EnsResolver=e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanProvider=e.CloudflareProvider=e.AnkrProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.AbstractProvider=e.VoidSigner=e.NonceManager=e.AbstractSigner=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.getDefaultProvider=e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=e.SigningKey=e.Signature=e.lock=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=void 0,e.toBeArray=e.getUint=e.getNumber=e.getBigInt=e.FixedNumber=e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.isError=e.isCallException=e.makeError=e.assertPrivate=e.assertNormalize=e.assertArgumentCount=e.assertArgument=e.assert=e.resolveProperties=e.defineProperties=e.zeroPadValue=e.zeroPadBytes=e.stripZerosLeft=e.isBytesLike=e.isHexString=e.hexlify=e.getBytesCopy=e.getBytes=e.dataSlice=e.dataLength=e.concat=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=e.Transaction=e.recoverAddress=e.computeAddress=e.accessListify=e.showThrottleMessage=e.copyRequest=e.UnmanagedSubscriber=e.SocketSubscriber=e.SocketPendingSubscriber=e.SocketEventSubscriber=e.SocketBlockSubscriber=e.MulticoinProviderPlugin=e.NetworkPlugin=e.GasCostPlugin=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=void 0,e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=e.encryptKeystoreJsonSync=e.encryptKeystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.decryptCrowdsaleJson=e.isKeystoreJson=e.isCrowdsaleJson=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.Wallet=e.HDNodeVoidWallet=e.HDNodeWallet=e.BaseWallet=e.Mnemonic=e.uuidV4=e.encodeRlp=e.decodeRlp=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.mask=e.toTwos=e.fromTwos=e.toQuantity=e.toNumber=e.toBeHex=e.toBigInt=void 0;var n=r(9406);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var i=r(3707);Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return i.ErrorDescription}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return i.Result}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}}),Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return i.Typed}});var s=r(5475);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return s.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return s.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return s.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return s.resolveAddress}});var o=r(87);Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(e,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var a=r(7252);Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return a.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return a.Contract}}),Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return a.ContractFactory}}),Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}});var c=r(6965);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return c.computeHmac}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return c.randomBytes}}),Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return c.keccak256}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return c.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return c.sha512}}),Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return c.pbkdf2}}),Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}}),Object.defineProperty(e,"lock",{enumerable:!0,get:function(){return c.lock}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return c.Signature}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var l=r(8336);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}});var u=r(4878);Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return u.getDefaultProvider}}),Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return u.AbstractSigner}}),Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return u.VoidSigner}}),Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return u.AbstractProvider}}),Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return u.FallbackProvider}}),Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return u.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return u.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return u.JsonRpcSigner}}),Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return u.BrowserProvider}}),Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return u.AlchemyProvider}}),Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return u.AnkrProvider}}),Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}}),Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}}),Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return u.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return u.InfuraWebSocketProvider}}),Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return u.PocketProvider}}),Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return u.QuickNodeProvider}}),Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return u.IpcSocketProvider}}),Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return u.SocketProvider}}),Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return u.WebSocketProvider}}),Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return u.EnsResolver}}),Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return u.Network}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return u.EtherscanPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return u.MulticoinProviderPlugin}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return u.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return u.SocketEventSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return u.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return u.SocketSubscriber}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return u.UnmanagedSubscriber}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}}),Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return u.showThrottleMessage}});var h=r(2290);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return h.accessListify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return h.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return h.recoverAddress}}),Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return h.Transaction}});var d=r(2120);Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var p=r(1602);Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var f=r(659);Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return f.Wordlist}}),Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return f.LangEn}}),Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return f.WordlistOwl}}),Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return f.WordlistOwlA}}),Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return f.wordlists}})},2625:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;const n=r(6965),i=r(2120);e.id=function(t){return(0,n.keccak256)((0,i.toUtf8Bytes)(t))}},8336:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=void 0;var n=r(2625);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return n.id}});var i=r(5420);Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return i.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return i.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return i.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return i.dnsEncode}});var s=r(8043);Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return s.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return s.verifyMessage}});var o=r(8191);Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var a=r(8993);Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return a.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return a.verifyTypedData}})},8043:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyMessage=e.hashMessage=void 0;const n=r(6965),i=r(87),s=r(2290),o=r(2120);function a(t){return"string"==typeof t&&(t=(0,o.toUtf8Bytes)(t)),(0,n.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(i.MessagePrefix),(0,o.toUtf8Bytes)(String(t.length)),t]))}e.hashMessage=a,e.verifyMessage=function(t,e){const r=a(t);return(0,s.recoverAddress)(r,e)}},5420:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=void 0;const n=r(6965),i=r(2120),s=r(30),o=new Uint8Array(32);function a(t){return(0,i.assertArgument)(0!==t.length,"invalid ENS name; empty component","comp",t),t}function c(t){const e=(0,i.toUtf8Bytes)(l(t)),r=[];if(0===t.length)return r;let n=0;for(let t=0;t{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e}))))+"00"}},8191:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=void 0;const n=r(5475),i=r(6965),s=r(2120),o=new RegExp("^bytes([0-9]+)$"),a=new RegExp("^(u?int)([0-9]*)$"),c=new RegExp("^(.*)\\[([0-9]*)\\]$");function l(t,e,r){switch(t){case"address":return r?(0,s.getBytes)((0,s.zeroPadValue)(e,32)):(0,s.getBytes)((0,n.getAddress)(e));case"string":return(0,s.toUtf8Bytes)(e);case"bytes":return(0,s.getBytes)(e);case"bool":return e=e?"0x01":"0x00",r?(0,s.getBytes)((0,s.zeroPadValue)(e,32)):(0,s.getBytes)(e)}let i=t.match(a);if(i){let n="int"===i[1],o=parseInt(i[2]||"256");return(0,s.assertArgument)((!i[2]||i[2]===String(o))&&o%8==0&&0!==o&&o<=256,"invalid number type","type",t),r&&(o=256),n&&(e=(0,s.toTwos)(e,o)),(0,s.getBytes)((0,s.zeroPadValue)((0,s.toBeArray)(e),o/8))}if(i=t.match(o),i){const n=parseInt(i[1]);return(0,s.assertArgument)(String(n)===i[1]&&0!==n&&n<=32,"invalid bytes type","type",t),(0,s.assertArgument)((0,s.dataLength)(e)===n,`invalid value for ${t}`,"value",e),r?(0,s.getBytes)((0,s.zeroPadBytes)(e,32)):e}if(i=t.match(c),i&&Array.isArray(e)){const r=i[1],n=parseInt(i[2]||String(e.length));(0,s.assertArgument)(n===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach((function(t){o.push(l(r,t,!0))})),(0,s.getBytes)((0,s.concat)(o))}(0,s.assertArgument)(!1,"invalid type","type",t)}function u(t,e){(0,s.assertArgument)(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach((function(t,n){r.push(l(t,e[n]))})),(0,s.hexlify)((0,s.concat)(r))}e.solidityPacked=u,e.solidityPackedKeccak256=function(t,e){return(0,i.keccak256)(u(t,e))},e.solidityPackedSha256=function(t,e){return(0,i.sha256)(u(t,e))}},8993:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTypedData=e.TypedDataEncoder=void 0;const n=r(5475),i=r(6965),s=r(2290),o=r(2120),a=r(2625),c=new Uint8Array(32);c.fill(0);const l=BigInt(-1),u=BigInt(0),h=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),p=(0,o.toBeHex)(h,32),f=(0,o.toBeHex)(u,32),m={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},g=["name","version","chainId","verifyingContract","salt"];function y(t){return function(e){return(0,o.assertArgument)("string"==typeof e,`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const w={name:y("name"),version:y("version"),chainId:function(t){const e=(0,o.getBigInt)(t,"domain.chainId");return(0,o.assertArgument)(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):(0,o.toQuantity)(e)},verifyingContract:function(t){try{return(0,n.getAddress)(t).toLowerCase()}catch(t){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=(0,o.getBytes)(t,"domain.salt");return(0,o.assertArgument)(32===e.length,'invalid domain value "salt"',"domain.salt",t),(0,o.hexlify)(e)}};function b(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(0,o.assertArgument)(n%8==0&&0!==n&&n<=256&&(null==e[2]||e[2]===String(n)),"invalid numeric width","type",t);const i=(0,o.mask)(d,r?n-1:n),s=r?(i+h)*l:u;return function(e){const n=(0,o.getBigInt)(e,"value");return(0,o.assertArgument)(n>=s&&n<=i,`value out-of-bounds for ${t}`,"value",n),(0,o.toBeHex)(r?(0,o.toTwos)(n,256):n,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0,o.assertArgument)(0!==r&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(e){const n=(0,o.getBytes)(e);return(0,o.assertArgument)(n.length===r,`invalid length for ${t}`,"value",e),function(t){const e=(0,o.getBytes)(t),r=e.length%32;return r?(0,o.concat)([e,c.slice(r)]):(0,o.hexlify)(e)}(e)}}}switch(t){case"address":return function(t){return(0,o.zeroPadValue)((0,n.getAddress)(t),32)};case"bool":return function(t){return t?p:f};case"bytes":return function(t){return(0,i.keccak256)(t)};case"string":return function(t){return(0,a.id)(t)}}return null}function v(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class E{primaryType;#A;get types(){return JSON.parse(this.#A)}#k;#S;constructor(t){this.#A=JSON.stringify(t),this.#k=new Map,this.#S=new Map;const e=new Map,r=new Map,n=new Map;Object.keys(t).forEach((t=>{e.set(t,new Set),r.set(t,[]),n.set(t,new Set)}));for(const n in t){const i=new Set;for(const s of t[n]){(0,o.assertArgument)(!i.has(s.name),`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(n)}`,"types",t),i.add(s.name);const a=s.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;(0,o.assertArgument)(a!==n,`circular type reference to ${JSON.stringify(a)}`,"types",t),b(a)||((0,o.assertArgument)(r.has(a),`unknown type ${JSON.stringify(a)}`,"types",t),r.get(a).push(n),e.get(n).add(a))}}const i=Array.from(r.keys()).filter((t=>0===r.get(t).length));(0,o.assertArgument)(0!==i.length,"missing primary type","types",t),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),(0,o.defineProperties)(this,{primaryType:i[0]}),function i(s,a){(0,o.assertArgument)(!a.has(s),`circular type reference to ${JSON.stringify(s)}`,"types",t),a.add(s);for(const t of e.get(s))if(r.has(t)){i(t,a);for(const e of a)n.get(e).add(t)}a.delete(s)}(this.primaryType,new Set);for(const[e,r]of n){const n=Array.from(r);n.sort(),this.#k.set(e,v(e,t[e])+n.map((e=>v(e,t[e]))).join(""))}}getEncoder(t){let e=this.#S.get(t);return e||(e=this.#C(t),this.#S.set(t,e)),e}#C(t){{const e=b(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t);return n=>{(0,o.assertArgument)(!e[3]||parseInt(e[3])===n.length,`array length mismatch; expected length ${parseInt(e[3])}`,"value",n);let s=n.map(r);return this.#k.has(t)&&(s=s.map(i.keccak256)),(0,i.keccak256)((0,o.concat)(s))}}const r=this.types[t];if(r){const e=(0,a.id)(this.#k.get(t));return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this.#k.has(r)?(0,i.keccak256)(n):n}));return n.unshift(e),(0,o.concat)(n)}}(0,o.assertArgument)(!1,`unknown type: ${t}`,"type",t)}encodeType(t){const e=this.#k.get(t);return(0,o.assertArgument)(e,`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return(0,i.keccak256)(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(b(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n)return(0,o.assertArgument)(!n[3]||parseInt(n[3])===e.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",e),e.map((t=>this._visit(n[1],t,r)));const i=this.types[t];if(i)return i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{});(0,o.assertArgument)(!1,`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new E(t)}static getPrimaryType(t){return E.from(t).primaryType}static hashStruct(t,e,r){return E.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){if(null==t[r])continue;const n=m[r];(0,o.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>g.indexOf(t.name)-g.indexOf(e.name))),E.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return(0,o.concat)(["0x1901",E.hashDomain(t),E.from(e).hash(r)])}static hash(t,e,r){return(0,i.keccak256)(E.encode(t,e,r))}static async resolveNames(t,e,r,n){t=Object.assign({},t);for(const e in t)null==t[e]&&delete t[e];const i={};t.verifyingContract&&!(0,o.isHexString)(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const s=E.from(e);s.visit(r,((t,e)=>("address"!==t||(0,o.isHexString)(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=await n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),{domain:t,value:r=s.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e))}}static getPayload(t,e,r){E.hashDomain(t);const n={},i=[];g.forEach((e=>{const r=t[e];null!=r&&(n[e]=w[e](r),i.push({name:e,type:m[e]}))}));const s=E.from(e),a=Object.assign({},e);return(0,o.assertArgument)(null==a.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",e),a.EIP712Domain=i,s.encode(r),{types:a,domain:n,primaryType:s.primaryType,message:s.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(e));if(t.match(/^u?int/))return(0,o.getBigInt)(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return(0,o.assertArgument)("string"==typeof e,"invalid string","value",e),e}(0,o.assertArgument)(!1,"unsupported type","type",t)}))}}}e.TypedDataEncoder=E,e.verifyTypedData=function(t,e,r,n){return(0,s.recoverAddress)(E.hash(t,e,r),n)}},9237:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethers=void 0;const n=r(8415),i=n.__importStar(r(1097));e.ethers=i,n.__exportStar(r(1097),e)},5142:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractProvider=e.UnmanagedSubscriber=void 0;const n=r(5475),i=r(87),s=r(7252),o=r(8336),a=r(2290),c=r(2120),l=r(4087),u=r(3080),h=r(4837),d=r(7143),p=r(3292),f=BigInt(2);function m(t){return t&&"function"==typeof t.then}function g(t,e){return t+":"+JSON.stringify(e,((t,e)=>{if(null==e)return"null";if("bigint"==typeof e)return`bigint:${e.toString()}`;if("string"==typeof e)return e.toLowerCase();if("object"==typeof e&&!Array.isArray(e)){const t=Object.keys(e);return t.sort(),t.reduce(((t,r)=>(t[r]=e[r],t)),{})}return e}))}class y{name;constructor(t){(0,c.defineProperties)(this,{name:t})}start(){}stop(){}pause(t){}resume(){}}function w(t){return(t=Array.from(new Set(t).values())).sort(),t}async function b(t,e){if(null==t)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),"string"==typeof t)switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if((0,c.isHexString)(t,32)){const e=t.toLowerCase();return{type:"transaction",tag:g("tx",{hash:e}),hash:e}}if(t.orphan){const e=t;return{type:"orphan",tag:g("orphan",e),filter:(r=e,JSON.parse(JSON.stringify(r)))}}var r;if(t.address||t.topics){const r=t,i={topics:(r.topics||[]).map((t=>null==t?null:Array.isArray(t)?w(t.map((t=>t.toLowerCase()))):t.toLowerCase()))};if(r.address){const t=[],s=[],o=r=>{(0,c.isHexString)(r)?t.push(r):s.push((async()=>{t.push(await(0,n.resolveAddress)(r,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),s.length&&await Promise.all(s),i.address=w(t.map((t=>t.toLowerCase())))}return{filter:i,tag:g("event",i),type:"event"}}(0,c.assertArgument)(!1,"unknown ProviderEvent","event",t)}function v(){return(new Date).getTime()}e.UnmanagedSubscriber=y;const E={cacheTimeout:250,pollingInterval:4e3};function x(t,e){try{const r=_(t,e);if(r)return(0,c.toUtf8String)(r)}catch(t){}return null}function _(t,e){if("0x"===t)return null;try{const r=(0,c.getNumber)((0,c.dataSlice)(t,e,e+32)),n=(0,c.getNumber)((0,c.dataSlice)(t,r,r+32));return(0,c.dataSlice)(t,r+32,r+32+n)}catch(t){}return null}function A(t){const e=(0,c.toBeArray)(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function k(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}e.AbstractProvider=class{#M;#I;#P;#O;#T;#N;#R;#B;#j;#L;#U;#g;constructor(t,e){if(this.#g=Object.assign({},E,e||{}),"any"===t)this.#N=!0,this.#T=null;else if(t){const e=h.Network.from(t);this.#N=!1,this.#T=Promise.resolve(e),setTimeout((()=>{this.emit("network",e,null)}),0)}else this.#N=!1,this.#T=null;this.#B=-1,this.#R=new Map,this.#M=new Map,this.#I=new Map,this.#P=null,this.#O=!1,this.#j=1,this.#L=new Map,this.#U=!1}get pollingInterval(){return this.#g.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#I.values())}attachPlugin(t){if(this.#I.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#I.set(t.name,t.connect(this)),this}getPlugin(t){return this.#I.get(t)||null}get disableCcipRead(){return this.#U}set disableCcipRead(t){this.#U=!!t}async#D(t){const e=this.#g.cacheTimeout;if(e<0)return await this._perform(t);const r=g(t.method,t);let n=this.#R.get(r);return n||(n=this._perform(t),this.#R.set(r,n),setTimeout((()=>{this.#R.get(r)===n&&this.#R.delete(r)}),e)),await n}async ccipReadFetch(t,e,r){if(this.disableCcipRead||0===r.length||null==t.to)return null;const n=t.to.toLowerCase(),i=e.toLowerCase(),s=[];for(let e=0;e=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:o,errorMessage:u}}),s.push(u)}(0,c.assert)(!1,`error encountered during CCIP fetch: ${s.map((t=>JSON.stringify(t))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:r,errorMessages:s}})}_wrapBlock(t,e){return new d.Block((0,u.formatBlock)(t),this)}_wrapLog(t,e){return new d.Log((0,u.formatLog)(t),this)}_wrapTransactionReceipt(t,e){return new d.TransactionReceipt((0,u.formatTransactionReceipt)(t),this)}_wrapTransactionResponse(t,e){return new d.TransactionResponse((0,u.formatTransactionResponse)(t),this)}_detectNetwork(){(0,c.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){(0,c.assert)(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){const t=(0,c.getNumber)(await this.#D({method:"getBlockNumber"}),"%response");return this.#B>=0&&(this.#B=t),t}_getAddress(t){return(0,n.resolveAddress)(t,this)}_getBlockTag(t){if(null==t)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}return(0,c.isHexString)(t)?(0,c.isHexString)(t,32)?t:(0,c.toQuantity)(t):("bigint"==typeof t&&(t=(0,c.getNumber)(t,"blockTag")),"number"==typeof t?t>=0?(0,c.toQuantity)(t):this.#B>=0?(0,c.toQuantity)(this.#B+t):this.getBlockNumber().then((e=>(0,c.toQuantity)(e+t))):void(0,c.assertArgument)(!1,"invalid blockTag","blockTag",t))}_getFilter(t){const e=(t.topics||[]).map((t=>null==t?null:Array.isArray(t)?w(t.map((t=>t.toLowerCase()))):t.toLowerCase())),r="blockHash"in t?t.blockHash:void 0,n=(t,n,i)=>{let s;switch(t.length){case 0:break;case 1:s=t[0];break;default:t.sort(),s=t}if(r&&(null!=n||null!=i))throw new Error("invalid filter");const o={};return s&&(o.address=s),e.length&&(o.topics=e),n&&(o.fromBlock=n),i&&(o.toBlock=i),r&&(o.blockHash=r),o};let i,s,o=[];if(t.address)if(Array.isArray(t.address))for(const e of t.address)o.push(this._getAddress(e));else o.push(this._getAddress(t.address));return"fromBlock"in t&&(i=this._getBlockTag(t.fromBlock)),"toBlock"in t&&(s=this._getBlockTag(t.toBlock)),o.filter((t=>"string"!=typeof t)).length||null!=i&&"string"!=typeof i||null!=s&&"string"!=typeof s?Promise.all([Promise.all(o),i,s]).then((t=>n(t[0],t[1],t[2]))):n(o,i,s)}_getTransactionRequest(t){const e=(0,d.copyRequest)(t),r=[];if(["to","from"].forEach((t=>{if(null==e[t])return;const i=(0,n.resolveAddress)(e[t],this);m(i)?r.push(async function(){e[t]=await i}()):e[t]=i})),null!=e.blockTag){const t=this._getBlockTag(e.blockTag);m(t)?r.push(async function(){e.blockTag=await t}()):e.blockTag=t}return r.length?async function(){return await Promise.all(r),e}():e}async getNetwork(){if(null==this.#T){const t=(async()=>{try{const t=await this._detectNetwork();return this.emit("network",t,null),t}catch(e){throw this.#T===t&&(this.#T=null),e}})();return this.#T=t,(await t).clone()}const t=this.#T,[e,r]=await Promise.all([t,this._detectNetwork()]);return e.chainId!==r.chainId&&(this.#N?(this.emit("network",r,e),this.#T===t&&(this.#T=Promise.resolve(r))):(0,c.assert)(!1,`network changed: ${e.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),e.clone()}async getFeeData(){const t=await this.getNetwork(),e=async()=>{const{_block:e,gasPrice:r,priorityFee:n}=await(0,c.resolveProperties)({_block:this.#$("latest",!1),gasPrice:(async()=>{try{const t=await this.#D({method:"getGasPrice"});return(0,c.getBigInt)(t,"%response")}catch(t){}return null})(),priorityFee:(async()=>{try{const t=await this.#D({method:"getPriorityFee"});return(0,c.getBigInt)(t,"%response")}catch(t){}return null})()});let i=null,s=null;const o=this._wrapBlock(e,t);return o&&o.baseFeePerGas&&(s=null!=n?n:BigInt("1000000000"),i=o.baseFeePerGas*f+s),new d.FeeData(r,i,s)},r=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const t=new c.FetchRequest(r.url),n=await r.processFunc(e,this,t);return new d.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await e()}async estimateGas(t){let e=this._getTransactionRequest(t);return m(e)&&(e=await e),(0,c.getBigInt)(await this.#D({method:"estimateGas",transaction:e}),"%response")}async#F(t,e,r){(0,c.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:e,enableCcipRead:!0})});const i=(0,d.copyRequest)(t);try{return(0,c.hexlify)(await this._perform({method:"call",transaction:i,blockTag:e}))}catch(t){if(!this.disableCcipRead&&(0,c.isCallException)(t)&&t.data&&r>=0&&"latest"===e&&null!=i.to&&"0x556f1830"===(0,c.dataSlice)(t.data,0,4)){const s=t.data,o=await(0,n.resolveAddress)(i.to,this);let a;try{a=function(t){const e={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,c.assert)((0,c.dataLength)(t)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=(0,c.dataSlice)(t,0,32);(0,c.assert)((0,c.dataSlice)(r,0,12)===(0,c.dataSlice)(M,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=(0,c.dataSlice)(r,12);try{const r=[],n=(0,c.getNumber)((0,c.dataSlice)(t,32,64)),i=(0,c.getNumber)((0,c.dataSlice)(t,n,n+32)),s=(0,c.dataSlice)(t,n+32);for(let t=0;te[t])),e}((0,c.dataSlice)(t.data,4))}catch(t){(0,c.assert)(!1,t.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:i,info:{data:s}})}(0,c.assert)(a.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:i,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:a.errorArgs}});const l=await this.ccipReadFetch(i,a.calldata,a.urls);(0,c.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:i,info:{data:t.data,errorArgs:a.errorArgs}});const u={to:o,data:(0,c.concat)([a.selector,C([l,a.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const t=await this.#F(u,e,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:t}),t}catch(t){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:t}),t}}throw t}}async#z(t){const{value:e}=await(0,c.resolveProperties)({network:this.getNetwork(),value:t});return e}async call(t){const{tx:e,blockTag:r}=await(0,c.resolveProperties)({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await this.#z(this.#F(e,r,t.enableCcipRead?0:-1))}async#H(t,e,r){let n=this._getAddress(e),i=this._getBlockTag(r);return"string"==typeof n&&"string"==typeof i||([n,i]=await Promise.all([n,i])),await this.#z(this.#D(Object.assign(t,{address:n,blockTag:i})))}async getBalance(t,e){return(0,c.getBigInt)(await this.#H({method:"getBalance"},t,e),"%response")}async getTransactionCount(t,e){return(0,c.getNumber)(await this.#H({method:"getTransactionCount"},t,e),"%response")}async getCode(t,e){return(0,c.hexlify)(await this.#H({method:"getCode"},t,e))}async getStorage(t,e,r){const n=(0,c.getBigInt)(e,"position");return(0,c.hexlify)(await this.#H({method:"getStorage",position:n},t,r))}async broadcastTransaction(t){const{blockNumber:e,hash:r,network:n}=await(0,c.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),i=a.Transaction.from(t);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,n).replaceableTransaction(e)}async#$(t,e){if((0,c.isHexString)(t,32))return await this.#D({method:"getBlock",blockHash:t,includeTransactions:e});let r=this._getBlockTag(t);return"string"!=typeof r&&(r=await r),await this.#D({method:"getBlock",blockTag:r,includeTransactions:e})}async getBlock(t,e){const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#$(t,!!e)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(t){const{network:e,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getTransaction",hash:t})});return null==r?null:this._wrapTransactionResponse(r,e)}async getTransactionReceipt(t){const{network:e,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getTransactionReceipt",hash:t})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){const e=await this.#D({method:"getTransaction",hash:t});if(null==e)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=e.gasPrice}return this._wrapTransactionReceipt(r,e)}async getTransactionResult(t){const{result:e}=await(0,c.resolveProperties)({network:this.getNetwork(),result:this.#D({method:"getTransactionResult",hash:t})});return null==e?null:(0,c.hexlify)(e)}async getLogs(t){let e=this._getFilter(t);m(e)&&(e=await e);const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getLogs",filter:e})});return n.map((t=>this._wrapLog(t,r)))}_getProvider(t){(0,c.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await l.EnsResolver.fromName(this,t)}async getAvatar(t){const e=await this.getResolver(t);return e?await e.getAvatar():null}async resolveName(t){const e=await this.getResolver(t);return e?await e.getAddress():null}async lookupAddress(t){t=(0,n.getAddress)(t);const e=(0,o.namehash)(t.substring(2).toLowerCase()+".addr.reverse");try{const r=await l.EnsResolver.getEnsAddress(this),n=new s.Contract(r,["function resolver(bytes32) view returns (address)"],this),o=await n.resolver(e);if(null==o||o===i.ZeroAddress)return null;const a=new s.Contract(o,["function name(bytes32) view returns (string)"],this),c=await a.name(e);return await this.resolveName(c)!==t?null:c}catch(t){if((0,c.isError)(t,"BAD_DATA")&&"0x"===t.value)return null;if((0,c.isError)(t,"CALL_EXCEPTION"))return null;throw t}return null}async waitForTransaction(t,e,r){const n=null!=e?e:1;return 0===n?this.getTransactionReceipt(t):new Promise((async(e,i)=>{let s=null;const o=async r=>{try{const i=await this.getTransactionReceipt(t);if(null!=i&&r-i.blockNumber+1>=n)return e(i),void(s&&(clearTimeout(s),s=null))}catch(t){console.log("EEE",t)}this.once("block",o)};null!=r&&(s=setTimeout((()=>{null!=s&&(s=null,this.off("block",o),i((0,c.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),r)),o(await this.getBlockNumber())}))}async waitForBlock(t){(0,c.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){const e=this.#L.get(t);e&&(e.timer&&clearTimeout(e.timer),this.#L.delete(t))}_setTimeout(t,e){null==e&&(e=0);const r=this.#j++,n=()=>{this.#L.delete(r),t()};if(this.paused)this.#L.set(r,{timer:null,func:n,time:e});else{const t=setTimeout(n,e);this.#L.set(r,{timer:t,func:n,time:v()})}return r}_forEachSubscriber(t){for(const e of this.#M.values())t(e.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new y(t.type);case"block":{const t=new p.PollingBlockSubscriber(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,t.type);case"event":return new p.PollingEventSubscriber(this,t.filter);case"transaction":return new p.PollingTransactionSubscriber(this,t.hash);case"orphan":return new p.PollingOrphanSubscriber(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,e){for(const r of this.#M.values())if(r.subscriber===t){r.started&&r.subscriber.stop(),r.subscriber=e,r.started&&e.start(),null!=this.#P&&e.pause(this.#P);break}}async#W(t,e){let r=await b(t,this);return"event"===r.type&&e&&e.length>0&&!0===e[0].removed&&(r=await b({orphan:"drop-log",log:e[0]},this)),this.#M.get(r.tag)||null}async#q(t){const e=await b(t,this),r=e.tag;let n=this.#M.get(r);return n||(n={subscriber:this._getSubscriber(e),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#M.set(r,n)),n}async on(t,e){const r=await this.#q(t);return r.listeners.push({listener:e,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#P&&r.subscriber.pause(this.#P)),this}async once(t,e){const r=await this.#q(t);return r.listeners.push({listener:e,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#P&&r.subscriber.pause(this.#P)),this}async emit(t,...e){const r=await this.#W(t,e);if(!r||0===r.listeners.length)return!1;const n=r.listeners.length;return r.listeners=r.listeners.filter((({listener:r,once:n})=>{const i=new c.EventPayload(this,n?null:r,t);try{r.call(this,...e,i)}catch(t){}return!n})),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#M.delete(r.tag)),n>0}async listenerCount(t){if(t){const e=await this.#W(t);return e?e.listeners.length:0}let e=0;for(const{listeners:t}of this.#M.values())e+=t.length;return e}async listeners(t){if(t){const e=await this.#W(t);return e?e.listeners.map((({listener:t})=>t)):[]}let e=[];for(const{listeners:t}of this.#M.values())e=e.concat(t.map((({listener:t})=>t)));return e}async off(t,e){const r=await this.#W(t);if(!r)return this;if(e){const t=r.listeners.map((({listener:t})=>t)).indexOf(e);t>=0&&r.listeners.splice(t,1)}return e&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#M.delete(r.tag)),this}async removeAllListeners(t){if(t){const{tag:e,started:r,subscriber:n}=await this.#q(t);r&&n.stop(),this.#M.delete(e)}else for(const[t,{started:e,subscriber:r}]of this.#M)e&&r.stop(),this.#M.delete(t);return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return this.off(t,e)}get destroyed(){return this.#O}destroy(){this.removeAllListeners();for(const t of this.#L.keys())this._clearTimeout(t);this.#O=!0}get paused(){return null!=this.#P}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(this.#B=-1,null!=this.#P){if(this.#P==!!t)return;(0,c.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((e=>e.pause(t))),this.#P=!!t;for(const t of this.#L.values())t.timer&&clearTimeout(t.timer),t.time=v()-t.time}resume(){if(null!=this.#P){this._forEachSubscriber((t=>t.resume())),this.#P=null;for(const t of this.#L.values()){let e=t.time;e<0&&(e=0),t.time=v(),setTimeout(t.func,e)}}}};const S=new Uint8Array([]);function C(t){const e=[];let r=0;for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VoidSigner=e.AbstractSigner=void 0;const n=r(5475),i=r(2290),s=r(2120),o=r(7143);function a(t,e){if(t.provider)return t.provider;(0,s.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function c(t,e){let r=(0,o.copyRequest)(e);if(null!=r.to&&(r.to=(0,n.resolveAddress)(r.to,t)),null!=r.from){const e=r.from;r.from=Promise.all([t.getAddress(),(0,n.resolveAddress)(e,t)]).then((([t,e])=>((0,s.assertArgument)(t.toLowerCase()===e.toLowerCase(),"transaction from mismatch","tx.from",e),t)))}else r.from=t.getAddress();return await(0,s.resolveProperties)(r)}class l{provider;constructor(t){(0,s.defineProperties)(this,{provider:t||null})}async getNonce(t){return a(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await c(this,t)}async populateTransaction(t){const e=a(this,"populateTransaction"),r=await c(this,t);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));const n=await this.provider.getNetwork();if(null!=r.chainId){const e=(0,s.getBigInt)(r.chainId);(0,s.assertArgument)(e===n.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else r.chainId=n.chainId;const i=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null==r.gasPrice||2!==r.type&&!i?0!==r.type&&1!==r.type||!i||(0,s.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t):(0,s.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",t),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas)if(0===r.type||1===r.type){const t=await e.getFeeData();(0,s.assert)(null!=t.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=t.gasPrice)}else{const t=await e.getFeeData();if(null==r.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(r.type=2,null!=r.gasPrice){const t=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=t,r.maxPriorityFeePerGas=t}else null==r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?((0,s.assert)(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=t.gasPrice),r.type=0):(0,s.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else r.type=2;return await(0,s.resolveProperties)(r)}async estimateGas(t){return a(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return a(this,"call").call(await this.populateCall(t))}async resolveName(t){const e=a(this,"resolveName");return await e.resolveName(t)}async sendTransaction(t){const e=a(this,"sendTransaction"),r=await this.populateTransaction(t);delete r.from;const n=i.Transaction.from(r);return await e.broadcastTransaction(await this.signTransaction(n))}}e.AbstractSigner=l;class u extends l{address;constructor(t,e){super(e),(0,s.defineProperties)(this,{address:t})}async getAddress(){return this.address}connect(t){return new u(this.address,t)}#V(t,e){(0,s.assert)(!1,`VoidSigner cannot sign ${t}`,"UNSUPPORTED_OPERATION",{operation:e})}async signTransaction(t){this.#V("transactions","signTransaction")}async signMessage(t){this.#V("messages","signMessage")}async signTypedData(t,e,r){this.#V("typed-data","signTypedData")}}e.VoidSigner=u},2813:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showThrottleMessage=void 0;const r=new Set;e.showThrottleMessage=function(t){r.has(t)||(r.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},7994:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultProvider=void 0;const n=r(2120),i=r(7949),s=r(3815),o=r(3377),a=r(2880),c=r(5012),l=r(1333),u=r(4129),h=r(2013),d=r(4837),p=r(2196),f="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");e.getDefaultProvider=function(t,e){null==e&&(e={});const r=t=>"-"!==e[t]&&("string"==typeof e.exclusive?t===e.exclusive:!Array.isArray(e.exclusive)||-1!==e.exclusive.indexOf(t));if("string"==typeof t&&t.match(/^https?:/))return new h.JsonRpcProvider(t);if("string"==typeof t&&t.match(/^wss?:/)||(m=t)&&"function"==typeof m.send&&"function"==typeof m.close)return new p.WebSocketProvider(t);var m;let g=null;try{g=d.Network.from(t)}catch(t){}const y=[];if(r("publicPolygon")&&g&&"matic"===g.name&&y.push(new h.JsonRpcProvider("https://polygon-rpc.com/",g,{staticNetwork:g})),r("alchemy"))try{y.push(new s.AlchemyProvider(t,e.alchemy))}catch(t){}if(r("ankr")&&null!=e.ankr)try{y.push(new i.AnkrProvider(t,e.ankr))}catch(t){}if(r("cloudflare"))try{y.push(new o.CloudflareProvider(t))}catch(t){}if(r("etherscan"))try{y.push(new a.EtherscanProvider(t,e.etherscan))}catch(t){}if(r("infura"))try{let r,n=e.infura;"object"==typeof n&&(r=n.projectSecret,n=n.projectId),y.push(new c.InfuraProvider(t,n,r))}catch(t){}if(r("quicknode"))try{let r=e.quicknode;y.push(new l.QuickNodeProvider(t,r))}catch(t){}if((0,n.assert)(y.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===y.length)return y[0];let w=Math.floor(y.length/2);return w>2&&(w=2),g&&-1!==f.indexOf(g.name)&&(w=1),e&&e.quorum&&(w=e.quorum),new u.FallbackProvider(y,void 0,{quorum:w})}},4087:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnsResolver=e.BasicMulticoinProviderPlugin=e.MulticoinProviderPlugin=void 0;const n=r(5475),i=r(87),s=r(7252),o=r(8336),a=r(2120);function c(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):(0,a.assertArgument)(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class l{name;constructor(t){(0,a.defineProperties)(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,e){throw new Error("unsupported coin")}async decodeAddress(t,e){throw new Error("unsupported coin")}}e.MulticoinProviderPlugin=l,e.BasicMulticoinProviderPlugin=class extends l{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const u=new RegExp("^(ipfs)://(.*)$","i"),h=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),u,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#G;#K;constructor(t,e,r){(0,a.defineProperties)(this,{provider:t,address:e,name:r}),this.#G=null,this.#K=new s.Contract(e,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t)}async supportsWildcard(){return null==this.#G&&(this.#G=(async()=>{try{return await this.#K.supportsInterface("0x9061b923")}catch(t){if((0,a.isError)(t,"CALL_EXCEPTION"))return!1;throw this.#G=null,t}})()),await this.#G}async#Z(t,e){e=(e||[]).slice();const r=this.#K.interface;e.unshift((0,o.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(t),(0,a.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),e=[(0,o.dnsEncode)(this.name),r.encodeFunctionData(n,e)],t="resolve(bytes,bytes)"),e.push({enableCcipRead:!0});try{const i=await this.#K[t](...e);return n?r.decodeFunctionResult(n,i)[0]:i}catch(t){if(!(0,a.isError)(t,"CALL_EXCEPTION"))throw t}return null}async getAddress(t){if(null==t&&(t=60),60===t)try{const t=await this.#Z("addr(bytes32)");return null==t||t===i.ZeroAddress?null:t}catch(t){if((0,a.isError)(t,"CALL_EXCEPTION"))return null;throw t}if(t>=0&&t<2147483648){let e=t+2147483648;const r=await this.#Z("addr(bytes32,uint)",[e]);if((0,a.isHexString)(r,20))return(0,n.getAddress)(r)}let e=null;for(const r of this.provider.plugins)if(r instanceof l&&r.supportsCoinType(t)){e=r;break}if(null==e)return null;const r=await this.#Z("addr(bytes32,uint)",[t]);if(null==r||"0x"===r)return null;const s=await e.decodeAddress(t,r);if(null!=s)return s;(0,a.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(t){const e=await this.#Z("text(bytes32,string)",[t]);return null==e||"0x"===e?null:e}async getContentHash(){const t=await this.#Z("contenthash(bytes32)");if(null==t||"0x"===t)return null;const e=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const t="e3010170"===e[1]?"ipfs":"ipns",r=parseInt(e[4],16);if(e[5].length===2*r)return`${t}://${(0,a.encodeBase58)("0x"+e[2])}`}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,a.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const t=[{type:"name",value:this.name}];try{const e=await this.getText("avatar");if(null==e)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:e});for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatTransactionResponse=e.formatTransactionReceipt=e.formatReceiptLog=e.formatBlock=e.formatLog=e.formatUint256=e.formatHash=e.formatData=e.formatBoolean=e.object=e.arrayOf=e.allowNull=void 0;const n=r(5475),i=r(6965),s=r(2290),o=r(2120),a=BigInt(0);function c(t,e){return function(r){return null==r?e:t(r)}}function l(t){return e=>{if(!Array.isArray(e))throw new Error("not an array");return e.map((e=>t(e)))}}function u(t,e){return r=>{const n={};for(const i in t){let s=i;if(e&&i in e&&!(s in r))for(const t of e[i])if(t in r){s=t;break}try{const e=t[i](r[s]);void 0!==e&&(n[i]=e)}catch(t){const e=t instanceof Error?t.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:r})}}return n}}function h(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function d(t){return(0,o.assertArgument)((0,o.isHexString)(t,!0),"invalid data","value",t),t}function p(t){return(0,o.assertArgument)((0,o.isHexString)(t,32),"invalid hash","value",t),t}e.allowNull=c,e.arrayOf=l,e.object=u,e.formatBoolean=h,e.formatData=d,e.formatHash=p,e.formatUint256=function(t){if(!(0,o.isHexString)(t))throw new Error("invalid uint256");return(0,o.zeroPadValue)(t,32)};const f=u({address:n.getAddress,blockHash:p,blockNumber:o.getNumber,data:d,index:o.getNumber,removed:c(h,!1),topics:l(p),transactionHash:p,transactionIndex:o.getNumber},{index:["logIndex"]});e.formatLog=function(t){return f(t)};const m=u({hash:c(p),parentHash:p,number:o.getNumber,timestamp:o.getNumber,nonce:c(d),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,miner:c(n.getAddress),extraData:d,baseFeePerGas:c(o.getBigInt)});e.formatBlock=function(t){const e=m(t);return e.transactions=t.transactions.map((t=>"string"==typeof t?t:b(t))),e};const g=u({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:p,address:n.getAddress,topics:l(p),data:d,index:o.getNumber,blockHash:p},{index:["logIndex"]});function y(t){return g(t)}e.formatReceiptLog=y;const w=u({to:c(n.getAddress,null),from:c(n.getAddress,null),contractAddress:c(n.getAddress,null),index:o.getNumber,root:c(o.hexlify),gasUsed:o.getBigInt,logsBloom:c(d),blockHash:p,hash:p,logs:l(y),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:c(o.getBigInt),status:c(o.getNumber),type:c(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function b(t){t.to&&(0,o.getBigInt)(t.to)===a&&(t.to="0x0000000000000000000000000000000000000000");const e=u({hash:p,type:t=>"0x"===t||null==t?0:(0,o.getNumber)(t),accessList:c(s.accessListify,null),blockHash:c(p,null),blockNumber:c(o.getNumber,null),transactionIndex:c(o.getNumber,null),from:n.getAddress,gasPrice:c(o.getBigInt),maxPriorityFeePerGas:c(o.getBigInt),maxFeePerGas:c(o.getBigInt),gasLimit:o.getBigInt,to:c(n.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:d,creates:c(n.getAddress,null),chainId:c(o.getBigInt,null)},{data:["input"],gasLimit:["gas"]})(t);if(null==e.to&&null==e.creates&&(e.creates=(0,n.getCreateAddress)(e)),1!==t.type&&2!==t.type||null!=t.accessList||(e.accessList=[]),t.signature?e.signature=i.Signature.from(t.signature):e.signature=i.Signature.from(t),null==e.chainId){const t=e.signature.legacyChainId;null!=t&&(e.chainId=t)}return e.blockHash&&(0,o.getBigInt)(e.blockHash)===a&&(e.blockHash=null),e}e.formatTransactionReceipt=function(t){return w(t)},e.formatTransactionResponse=b},4878:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SocketEventSubscriber=e.SocketPendingSubscriber=e.SocketBlockSubscriber=e.SocketSubscriber=e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanPlugin=e.EtherscanProvider=e.CloudflareProvider=e.AnkrProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.copyRequest=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EnsPlugin=e.GasCostPlugin=e.NetworkPlugin=e.NonceManager=e.Network=e.MulticoinProviderPlugin=e.EnsResolver=e.getDefaultProvider=e.showThrottleMessage=e.VoidSigner=e.AbstractSigner=e.UnmanagedSubscriber=e.AbstractProvider=void 0;var n=r(5142);Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return n.AbstractProvider}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return n.UnmanagedSubscriber}});var i=r(5649);Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return i.AbstractSigner}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return i.VoidSigner}});var s=r(2813);Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return s.showThrottleMessage}});var o=r(7994);Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var a=r(4087);Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return a.EnsResolver}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return a.MulticoinProviderPlugin}});var c=r(4837);Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return c.Network}});var l=r(2992);Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var u=r(7004);Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}});var h=r(7143);Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return h.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return h.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return h.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return h.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return h.TransactionResponse}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return h.copyRequest}});var d=r(4129);Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var p=r(2013);Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var f=r(292);Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return f.BrowserProvider}});var m=r(3815);Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return m.AlchemyProvider}});var g=r(7949);Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return g.AnkrProvider}});var y=r(3377);Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return y.CloudflareProvider}});var w=r(2880);Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return w.EtherscanProvider}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return w.EtherscanPlugin}});var b=r(5012);Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return b.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return b.InfuraWebSocketProvider}});var v=r(2751);Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return v.PocketProvider}});var E=r(1333);Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return E.QuickNodeProvider}});const x=r(8306);Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return x.IpcSocketProvider}});var _=r(2394);Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return _.SocketProvider}});var A=r(2196);Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return A.WebSocketProvider}});var k=r(2394);Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return k.SocketSubscriber}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return k.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return k.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return k.SocketEventSubscriber}})},4837:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const n=r(2290),i=r(2120),s=r(7004),o=new Map;class a{#Q;#Y;#I;constructor(t,e){this.#Q=t,this.#Y=(0,i.getBigInt)(e),this.#I=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#Q}set name(t){this.#Q=t}get chainId(){return this.#Y}set chainId(t){this.#Y=(0,i.getBigInt)(t,"chainId")}matches(t){if(null==t)return!1;if("string"==typeof t){try{return this.chainId===(0,i.getBigInt)(t)}catch(t){}return this.name===t}if("number"==typeof t||"bigint"==typeof t){try{return this.chainId===(0,i.getBigInt)(t)}catch(t){}return!1}if("object"==typeof t){if(null!=t.chainId){try{return this.chainId===(0,i.getBigInt)(t.chainId)}catch(t){}return!1}return null!=t.name&&this.name===t.name}return!1}get plugins(){return Array.from(this.#I.values())}attachPlugin(t){if(this.#I.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#I.set(t.name,t.clone()),this}getPlugin(t){return this.#I.get(t)||null}getPlugins(t){return this.plugins.filter((e=>e.name.split("#")[0]===t))}clone(){const t=new a(this.name,this.chainId);return this.plugins.forEach((e=>{t.attachPlugin(e.clone())})),t}computeIntrinsicGas(t){const e=this.getPlugin("org.ethers.plugins.network.GasCost")||new s.GasCostPlugin;let r=e.txBase;if(null==t.to&&(r+=e.txCreate),t.data)for(let n=2;n{n.attachPlugin(t)})),n};a.register(t,n),a.register(e,n),r.altNames&&r.altNames.forEach((t=>{a.register(t,n)}))}u||(u=!0,t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("matic",137,{ensNetwork:1,plugins:[l("https://gasstation.polygon.technology/v2")]}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[l("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("xdai",100,{ensNetwork:1}))}(),null==t)return a.from("mainnet");if("number"==typeof t&&(t=BigInt(t)),"string"==typeof t||"bigint"==typeof t){const e=o.get(t);if(e)return e();if("bigint"==typeof t)return new a("unknown",t);(0,i.assertArgument)(!1,"unknown network","network",t)}if("function"==typeof t.clone)return t.clone();if("object"==typeof t){(0,i.assertArgument)("string"==typeof t.name&&"number"==typeof t.chainId,"invalid network object name or chainId","network",t);const e=new a(t.name,t.chainId);return(t.ensAddress||null!=t.ensNetwork)&&e.attachPlugin(new s.EnsPlugin(t.ensAddress,t.ensNetwork)),e}(0,i.assertArgument)(!1,"invalid network","network",t)}static register(t,e){"number"==typeof t&&(t=BigInt(t));const r=o.get(t);r&&(0,i.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",t),o.set(t,e)}}function c(t,e){const r=String(t);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${t}`);const n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw new Error(`invalid gwei value: ${t}`);for(;n[1].length9){let t=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||t++,n[1]=t.toString()}return BigInt(n[0]+n[1])}function l(t){return new s.FetchUrlFeeDataNetworkPlugin(t,(async(t,e,r)=>{let n;r.setHeader("User-Agent","ethers");try{const[e,i]=await Promise.all([r.send(),t()]);n=e;const s=n.bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:c(s.maxFee,9),maxPriorityFeePerGas:c(s.maxPriorityFee,9)}}catch(t){(0,i.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:t})}}))}e.Network=a;let u=!1},7004:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EnsPlugin=e.GasCostPlugin=e.NetworkPlugin=void 0;const n=r(9290),i=r(2120);class s{name;constructor(t){(0,n.defineProperties)(this,{name:t})}clone(){return new s(this.name)}}e.NetworkPlugin=s;class o extends s{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(t,e){null==t&&(t=0),super(`org.ethers.network.plugins.GasCost#${t||0}`);const r={effectiveBlock:t};function s(t,n){let s=(e||{})[t];null==s&&(s=n),(0,i.assertArgument)("number"==typeof s,`invalud value for ${t}`,"costs",e),r[t]=s}s("txBase",21e3),s("txCreate",32e3),s("txDataZero",4),s("txDataNonzero",16),s("txAccessListStorageKey",1900),s("txAccessListAddress",2400),(0,n.defineProperties)(this,r)}clone(){return new o(this.effectiveBlock,this)}}e.GasCostPlugin=o;class a extends s{address;targetNetwork;constructor(t,e){super("org.ethers.plugins.network.Ens"),(0,n.defineProperties)(this,{address:t||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==e?1:e})}clone(){return new a(this.address,this.targetNetwork)}}e.EnsPlugin=a;class c extends s{#X;get feeDataFunc(){return this.#X}constructor(t){super("org.ethers.plugins.network.FeeData"),this.#X=t}async getFeeData(t){return await this.#X(t)}clone(){return new c(this.#X)}}e.FeeDataNetworkPlugin=c,e.FetchUrlFeeDataNetworkPlugin=class extends s{#tt;#et;get url(){return this.#tt}get processFunc(){return this.#et}constructor(t,e){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#tt=t,this.#et=e}clone(){return this}}},3815:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlchemyProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class c extends o.JsonRpcProvider{apiKey;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a),super(c.getRequest(r,e),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:e})}_getProvider(t){try{return new c(t,this.apiKey)}catch(t){}return super._getProvider(t)}async _perform(t){if("getTransactionResult"===t.method){const{trace:e,tx:r}=await(0,n.resolveProperties)({trace:this.send("trace_transaction",[t.hash]),tx:this.getTransaction(t.hash)});if(null==e||null==r)return null;let i,s=!1;try{i=e[0].result.output,s="Reverted"===e[0].error}catch(t){}if(i)return(0,n.assert)(!s,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:r,invocation:null,revert:null}),i;(0,n.assert)(!1,"could not parse trace result","BAD_DATA",{value:e})}return await super._perform(t)}isCommunityResource(){return this.apiKey===a}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v2/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("alchemy"),!0)),r}}e.AlchemyProvider=c},7949:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnkrProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends o.JsonRpcProvider{apiKey;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a);const i={polling:!0,staticNetwork:r};super(c.getRequest(r,e),r,i),(0,n.defineProperties)(this,{apiKey:e})}_getProvider(t){try{return new c(t,this.apiKey)}catch(t){}return super._getProvider(t)}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"matic":return"rpc.ankr.com/polygon";case"arbitrum":return"rpc.ankr.com/arbitrum"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("AnkrProvider"),!0)),r}getRpcError(t,e){return"eth_sendRawTransaction"===t.method&&e&&e.error&&"INTERNAL_ERROR: could not replace existing tx"===e.error.message&&(e.error.message="replacement transaction underpriced"),super.getRpcError(t,e)}isCommunityResource(){return this.apiKey===a}}e.AnkrProvider=c},292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserProvider=void 0;const n=r(2120),i=r(2013);class s extends i.JsonRpcApiPollingProvider{#rt;constructor(t,e){super(e,{batchMaxCount:1}),this.#rt=async(e,r)=>{const n={method:e,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{const e=await t.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:e}),e}catch(t){const e=new Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(t,e){return await this._start(),await super.send(t,e)}async _send(t){(0,n.assertArgument)(!Array.isArray(t),"EIP-1193 does not support batch request","payload",t);try{const e=await this.#rt(t.method,t.params||[]);return[{id:t.id,result:e}]}catch(e){return[{id:t.id,error:{code:e.code,data:e.data,message:e.message}}]}}getRpcError(t,e){switch((e=JSON.parse(JSON.stringify(e))).error.code||-1){case 4001:e.error.message=`ethers-user-denied: ${e.error.message}`;break;case 4200:e.error.message=`ethers-unsupported: ${e.error.message}`}return super.getRpcError(t,e)}async hasSigner(t){null==t&&(t=0);const e=await this.send("eth_accounts",[]);return"number"==typeof t?e.length>t:(t=t.toLowerCase(),0!==e.filter((e=>e.toLowerCase()===t)).length)}async getSigner(t){if(null==t&&(t=0),!await this.hasSigner(t))try{await this.#rt("eth_requestAccounts",[])}catch(t){const e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(t)}}e.BrowserProvider=s},3377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloudflareProvider=void 0;const n=r(2120),i=r(4837),s=r(2013);class o extends s.JsonRpcProvider{constructor(t){null==t&&(t="mainnet");const e=i.Network.from(t);(0,n.assertArgument)("mainnet"===e.name,"unsupported network","network",t),super("https://cloudflare-eth.com/",e,{staticNetwork:e})}}e.CloudflareProvider=o},2880:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EtherscanProvider=e.EtherscanPlugin=void 0;const n=r(3707),i=r(7252),s=r(2290),o=r(2120),a=r(5142),c=r(4837),l=r(7004),u=r(2813),h="org.ethers.plugins.provider.Etherscan";class d extends l.NetworkPlugin{baseUrl;constructor(t){super(h),(0,o.defineProperties)(this,{baseUrl:t})}clone(){return new d(this.baseUrl)}}e.EtherscanPlugin=d;const p=["enableCcipRead"];let f=1;class m extends a.AbstractProvider{network;apiKey;#nt;constructor(t,e){const r=null!=e?e:null;super();const n=c.Network.from(t);this.#nt=n.getPlugin(h),(0,o.defineProperties)(this,{apiKey:r,network:n}),this.getBaseUrl()}getBaseUrl(){if(this.#nt)return this.#nt.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";case"bnb":return"http://api.bscscan.com";case"bnbt":return"http://api-testnet.bscscan.com"}(0,o.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(t,e){const r=Object.keys(e).reduce(((t,r)=>{const n=e[r];return null!=n&&(t+=`&${r}=${n}`),t}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${t}${r}${n}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}async detectNetwork(){return this.network}async fetch(t,e,r){const n=f++,i=r?this.getPostUrl():this.getUrl(t,e),s=r?this.getPostData(t,e):null;this.emit("debug",{action:"sendRequest",id:n,url:i,payload:s});const a=new o.FetchRequest(i);a.setThrottleParams({slotInterval:1e3}),a.retryFunc=(t,e,r)=>(this.isCommunityResource()&&(0,u.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),a.processFunc=async(e,r)=>{const i=r.hasBody()?JSON.parse((0,o.toUtf8String)(r.body)):{},s=("string"==typeof i.result?i.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===t?i&&0==i.status&&"NOTOK"==i.message&&s&&(this.emit("debug",{action:"receiveError",id:n,reason:"proxy-NOTOK",error:i}),r.throwThrottleError(i.result,2e3)):s&&(this.emit("debug",{action:"receiveError",id:n,reason:"null result",error:i.result}),r.throwThrottleError(i.result,2e3)),r},s&&(a.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.body=Object.keys(s).map((t=>`${t}=${s[t]}`)).join("&"));const c=await a.send();try{c.assertOk()}catch(t){this.emit("debug",{action:"receiveError",id:n,error:t,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:a,response:c})}c.hasBody()||(this.emit("debug",{action:"receiveError",id:n,error:"missing body",reason:"null body"}),(0,o.assert)(!1,"missing response","SERVER_ERROR",{request:a,response:c}));const l=JSON.parse((0,o.toUtf8String)(c.body));return"proxy"===t?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:a,response:c,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"==typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:n,result:l}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result)}_getTransactionPostData(t){const e={};for(let r in t){if(p.indexOf(r)>=0)continue;if(null==t[r])continue;let n=t[r];"type"===r&&0===n||"blockTag"===r&&"latest"===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,o.toQuantity)(n):"accessList"===r?"["+(0,s.accessListify)(n).map((t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`)).join(",")+"]":(0,o.hexlify)(n),e[r]=n)}return e}_checkError(t,e,r){let i="";if((0,o.isError)(e,"SERVER_ERROR")){try{i=e.info.result.error.message}catch(t){}if(!i)try{i=e.info.message}catch(t){}}if("estimateGas"===t.method&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&(0,o.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.transaction}),("call"===t.method||"estimateGas"===t.method)&&i.match(/execution reverted/i)){let r="";try{r=e.info.result.error.data}catch(e){}const i=n.AbiCoder.getBuiltinCallException(t.method,t.transaction,r);throw i.info={request:t,error:e},i}if(i&&"broadcastTransaction"===t.method){const e=s.Transaction.from(t.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&(0,o.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:e}),i.match(/insufficient funds/)&&(0,o.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:e}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,o.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:e})}throw e}async _detectNetwork(){return this.network}async _perform(t){switch(t.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>this._checkError(t,e,t.signedTransaction)));case"getBlock":if("blockTag"in t)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});(0,o.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.hash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=this._getTransactionPostData(t.transaction);e.module="proxy",e.action="eth_call";try{return await this.fetch("proxy",e,!0)}catch(e){return this._checkError(t,e,t.transaction)}}case"estimateGas":{const e=this._getTransactionPostData(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return await this.fetch("proxy",e,!0)}catch(e){return this._checkError(t,e,t.transaction)}}}return super._perform(t)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(t){let e=this._getAddress(t);var r;(r=e)&&"function"==typeof r.then&&(e=await e);try{const t=await this.fetch("contract",{action:"getabi",address:e}),r=JSON.parse(t);return new i.Contract(e,r,this)}catch(t){return null}}isCommunityResource(){return null==this.apiKey}}e.EtherscanProvider=m},4129:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FallbackProvider=void 0;const n=r(2120),i=r(5142),s=r(4837),o=BigInt("1"),a=BigInt("2");function c(){return(new Date).getTime()}function l(t){return JSON.stringify(t,((t,e)=>"bigint"==typeof e?{type:"bigint",value:e.toString()}:e))}const u={stallTimeout:400,priority:1,weight:1},h={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(t){if(null==t)return"null";if(Array.isArray(t))return"["+t.map(d).join(",")+"]";if("object"==typeof t&&"function"==typeof t.toJSON)return d(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map((e=>`${JSON.stringify(e)}:${d(t[e])}`)).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function p(t){if("error"in t){const e=t.error;return{tag:d(e),value:e}}const e=t.result;return{tag:d(e),value:e}}function f(t,e){const r=new Map;for(const{value:t,tag:n,weight:i}of e){const e=r.get(n)||{value:t,weight:0};e.weight+=i,r.set(n,e)}let n=null;for(const e of r.values())e.weight>=t&&(!n||e.weight>n.weight)&&(n=e);if(n)return n.value}function m(t,e){let r=0;const n=new Map;let i=null;const s=[];for(const{value:t,tag:o,weight:a}of e)if(t instanceof Error){const e=n.get(o)||{value:t,weight:0};e.weight+=a,n.set(o,e),(null==i||e.weight>i.weight)&&(i=e)}else s.push(BigInt(t)),r+=a;if(r=t?i.value:void 0;s.sort(((t,e)=>tt?1:0));const c=Math.floor(s.length/2);return s.length%2?s[c]:(s[c-1]+s[c]+o)/a}function g(t,e){const r=f(t,e);if(void 0!==r)return r;for(const t of e)if(t.value)return t.value}class y extends i.AbstractProvider{quorum;eventQuorum;eventWorkers;#it;#st;#ot;constructor(t,e,r){super(e,r),this.#it=t.map((t=>t instanceof i.AbstractProvider?Object.assign({provider:t},u,h):Object.assign({},u,t,h))),this.#st=-2,this.#ot=null,r&&null!=r.quorum?this.quorum=r.quorum:this.quorum=Math.ceil(this.#it.reduce(((t,e)=>t+e.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,n.assertArgument)(this.quorum<=this.#it.reduce(((t,e)=>t+e.weight),0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return this.#it.map((t=>{const e=Object.assign({},t);for(const t in e)"_"===t[0]&&delete e[t];return e}))}async _detectNetwork(){return s.Network.from((0,n.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(t,e){switch(e.method){case"broadcastTransaction":return await t.broadcastTransaction(e.signedTransaction);case"call":return await t.call(Object.assign({},e.transaction,{blockTag:e.blockTag}));case"chainId":return(await t.getNetwork()).chainId;case"estimateGas":return await t.estimateGas(e.transaction);case"getBalance":return await t.getBalance(e.address,e.blockTag);case"getBlock":{const r="blockHash"in e?e.blockHash:e.blockTag;return await t.getBlock(r,e.includeTransactions)}case"getBlockNumber":return await t.getBlockNumber();case"getCode":return await t.getCode(e.address,e.blockTag);case"getGasPrice":return(await t.getFeeData()).gasPrice;case"getPriorityFee":return(await t.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await t.getLogs(e.filter);case"getStorage":return await t.getStorage(e.address,e.position,e.blockTag);case"getTransaction":return await t.getTransaction(e.hash);case"getTransactionCount":return await t.getTransactionCount(e.address,e.blockTag);case"getTransactionReceipt":return await t.getTransactionReceipt(e.hash);case"getTransactionResult":return await t.getTransactionResult(e.hash)}}#at(t){const e=Array.from(t).map((t=>t.config)),r=this.#it.slice();!function(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}(r),r.sort(((t,e)=>t.priority-e.priority));for(const t of r)if(!t._lastFatalError&&-1===e.indexOf(t))return t;return null}#ct(t,e){const r=this.#at(t);if(null==r)return null;const n={config:r,result:null,didBump:!1,perform:null,staller:null},i=c();return n.perform=(async()=>{try{r.requests++;const t=await this._translatePerform(r.provider,e);n.result={result:t}}catch(t){r.errorResponses++,n.result={error:t}}const t=c()-i;r._totalTime+=t,r.rollingDuration=.95*r.rollingDuration+.05*t,n.perform=null})(),n.staller=(async()=>{var t;await(t=r.stallTimeout,new Promise((e=>{setTimeout(e,t)}))),n.staller=null})(),t.add(n),n}async#lt(){let t=this.#ot;if(!t){const e=[];this.#it.forEach((t=>{e.push((async()=>{await async function(t,e){for(;(t.blockNumber<0||t.blockNumber<0)&&(t._updateNumber||(t._updateNumber=(async()=>{try{const e=await t.provider.getBlockNumber();e>t.blockNumber&&(t.blockNumber=e)}catch(e){t.blockNumber=-2,t._lastFatalError=e,t._lastFatalErrorTimestamp=c()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}(t),t._lastFatalError||(t._network=await t.provider.getNetwork())})())})),this.#ot=t=(async()=>{await Promise.all(e);let t=null;for(const e of this.#it){if(e._lastFatalError)continue;const r=e._network;null==t?t=r.chainId:r.chainId!==t&&(0,n.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await t}async#ut(t,e){const r=[];for(const e of t)if(null!=e.result){const{tag:t,value:n}=p(e.result);r.push({tag:t,value:n,weight:e.config.weight})}if(!(r.reduce(((t,e)=>t+e.weight),0)!t._lastFatalError)).map((t=>({value:t.blockNumber,tag:(0,n.getNumber)(t.blockNumber).toString(),weight:t.weight})))))));const t=function(t,e){if(1===t)return(0,n.getNumber)(m(t,e),"%internal");const r=new Map,i=(t,e)=>{const n=r.get(t)||{result:t,weight:0};n.weight+=e,r.set(t,n)};for(const{weight:t,value:r}of e){const e=(0,n.getNumber)(r);i(e-1,t),i(e,t),i(e+1,t)}let s,o=0;for(const{weight:e,result:n}of r.values())e>=t&&(e>o||null!=s&&e===o&&n>s)&&(o=e,s=n);return s}(this.quorum,r);if(void 0===t)return;return t>this.#st&&(this.#st=t),this.#st}case"getGasPrice":case"getPriorityFee":case"estimateGas":return m(this.quorum,r);case"getBlock":return"blockTag"in e&&"pending"===e.blockTag?g(this.quorum,r):f(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return f(this.quorum,r);case"broadcastTransaction":return g(this.quorum,r)}(0,n.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${l(e.method)})`})}}async#ht(t,e){if(0===t.size)throw new Error("no runners?!");const r=[];let i=0;for(const e of t)e.perform&&r.push(e.perform),e.staller?r.push(e.staller):e.didBump||(e.didBump=!0,i++);const s=await this.#ut(t,e);if(void 0!==s){if(s instanceof Error)throw s;return s}for(let r=0;r0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:Array.from(t).map((t=>l(t.result)))}}),await Promise.race(r),await this.#ht(t,e)}async _perform(t){if("broadcastTransaction"===t.method){const e=this.#it.map((t=>null)),r=this.#it.map((async({provider:r,weight:n},i)=>{try{const s=await r._perform(t);e[i]=Object.assign(p({result:s}),{weight:n})}catch(t){e[i]=Object.assign(p({error:t}),{weight:n})}}));for(;;){const t=e.filter((t=>null!=t));for(const{value:e}of t)if(!(e instanceof Error))return e;const i=f(this.quorum,e.filter((t=>null!=t)));if((0,n.isError)(i,"INSUFFICIENT_FUNDS"))throw i;const s=r.filter(((t,r)=>null==e[r]));if(0===s.length)break;await Promise.race(s)}const i=g(this.quorum,e);if((0,n.assert)(void 0!==i,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:e.map(l)}}),i instanceof Error)throw i;return i}await this.#lt();const e=new Set;let r=0;for(;;){const n=this.#ct(e,t);if(null==n)break;if(r+=n.config.weight,r>=this.quorum)break}const i=await this.#ht(e,t);for(const t of e)t.perform&&null==t.result&&t.config.lateResponses++;return i}async destroy(){for(const{provider:t}of this.#it)t.destroy();super.destroy()}}e.FallbackProvider=y},5012:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InfuraProvider=e.InfuraWebSocketProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a=r(2196),c="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{projectId;projectSecret;constructor(t,e){const r=new u(t,e),i=r._getConnection();(0,n.assert)(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),t),(0,n.defineProperties)(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===c}}e.InfuraWebSocketProvider=l;class u extends o.JsonRpcProvider{projectId;projectSecret;constructor(t,e,r){null==t&&(t="mainnet");const i=s.Network.from(t);null==e&&(e=c),null==r&&(r=null),super(u.getRequest(i,e,r),i,{staticNetwork:i}),(0,n.defineProperties)(this,{projectId:e,projectSecret:r})}_getProvider(t){try{return new u(t,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(t)}isCommunityResource(){return this.projectId===c}static getWebSocketProvider(t,e){return new l(t,e)}static getRequest(t,e,r){null==e&&(e=c),null==r&&(r=null);const s=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v3/${e}`);return s.allowGzip=!0,r&&s.setCredentials("",r),e===c&&(s.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("InfuraProvider"),!0)),s}}e.InfuraProvider=u},8306:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IpcSocketProvider=void 0,e.IpcSocketProvider=void 0},2013:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonRpcProvider=e.JsonRpcApiPollingProvider=e.JsonRpcApiProvider=e.JsonRpcSigner=void 0;const n=r(3707),i=r(5475),s=r(8336),o=r(2290),a=r(2120),c=r(5142),l=r(5649),u=r(4837),h=r(1570),d=r(3292),p="bigint,boolean,function,number,string,symbol".split(/,/g);function f(t){if(null==t||p.indexOf(typeof t)>=0)return t;if("function"==typeof t.getAddress)return t;if(Array.isArray(t))return t.map(f);if("object"==typeof t)return Object.keys(t).reduce(((e,r)=>(e[r]=t[r],e)),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function m(t){return new Promise((e=>{setTimeout(e,t)}))}function g(t){return t?t.toLowerCase():t}function y(t){return t&&"number"==typeof t.pollingInterval}const w={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class b extends l.AbstractSigner{address;constructor(t,e){super(t),e=(0,i.getAddress)(e),(0,a.defineProperties)(this,{address:e})}connect(t){(0,a.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const e=f(t),r=[];if(e.from){const n=e.from;r.push((async()=>{const r=await(0,i.resolveAddress)(n,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),e.from=r})())}else e.from=this.address;if(null==e.gasLimit&&r.push((async()=>{e.gasLimit=await this.provider.estimateGas({...e,from:this.address})})()),null!=e.to){const t=e.to;r.push((async()=>{e.to=await(0,i.resolveAddress)(t,this.provider)})())}r.length&&await Promise.all(r);const n=this.provider.getRpcTransaction(e);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(t){const e=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise(((t,n)=>{const i=[1e3,100];let s=0;const o=async()=>{try{const n=await this.provider.getTransaction(r);if(null!=n)return void t(n.replaceableTransaction(e))}catch(t){if((0,a.isError)(t,"CANCELLED")||(0,a.isError)(t,"BAD_DATA")||(0,a.isError)(t,"NETWORK_ERROR"))return null==t.info&&(t.info={}),t.info.sendTransactionHash=r,void n(t);if((0,a.isError)(t,"INVALID_ARGUMENT")&&(s++,null==t.info&&(t.info={}),t.info.sendTransactionHash=r,s>10))return void n(t);this.provider.emit("error",(0,a.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:t}))}this.provider._setTimeout((()=>{o()}),i.pop()||4e3)};o()}))}async signTransaction(t){const e=f(t);if(e.from){const r=await(0,i.resolveAddress)(e.from,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),e.from=r}else e.from=this.address;const r=this.provider.getRpcTransaction(e);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const e="string"==typeof t?(0,a.toUtf8Bytes)(t):t;return await this.provider.send("personal_sign",[(0,a.hexlify)(e),this.address.toLowerCase()])}async signTypedData(t,e,r){const n=f(r),o=await s.TypedDataEncoder.resolveNames(t,e,n,(async t=>{const e=await(0,i.resolveAddress)(t);return(0,a.assertArgument)(null!=e,"TypedData does not support null address","value",t),e}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(s.TypedDataEncoder.getPayload(o.domain,e,o.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const e="string"==typeof t?(0,a.toUtf8Bytes)(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,a.hexlify)(e)])}}e.JsonRpcSigner=b;class v extends c.AbstractProvider{#g;#dt;#pt;#ft;#mt;#gt;#yt;#wt(){if(this.#ft)return;const t=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#ft=setTimeout((()=>{this.#ft=null;const t=this.#pt;for(this.#pt=[];t.length;){const e=[t.shift()];for(;t.length&&e.length!==this.#g.batchMaxCount;)if(e.push(t.shift()),JSON.stringify(e.map((t=>t.payload))).length>this.#g.batchMaxSize){t.unshift(e.pop());break}(async()=>{const t=1===e.length?e[0].payload:e.map((t=>t.payload));this.emit("debug",{action:"sendRpcPayload",payload:t});try{const r=await this._send(t);this.emit("debug",{action:"receiveRpcResult",result:r});for(const{resolve:t,reject:n,payload:i}of e){if(this.destroyed){n((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}const e=r.filter((t=>t.id===i.id))[0];if(null!=e)"error"in e?n(this.getRpcError(i,e)):t(e.result);else{const t=(0,a.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:i}});this.emit("error",t),n(t)}}}catch(t){this.emit("debug",{action:"receiveRpcError",error:t});for(const{reject:r}of e)r(t)}})()}}),t)}constructor(t,e){super(t,e),this.#dt=1,this.#g=Object.assign({},w,e||{}),this.#pt=[],this.#ft=null,this.#gt=null,this.#yt=null;{let t=null;const e=new Promise((e=>{t=e}));this.#mt={promise:e,resolve:t}}const r=this._getOption("staticNetwork");"boolean"==typeof r?((0,a.assertArgument)(!r||"any"!==t,"staticNetwork cannot be used on special network 'any'","options",e),r&&null!=t&&(this.#gt=u.Network.from(t))):r&&((0,a.assertArgument)(null==t||r.matches(t),"staticNetwork MUST match network object","options",e),this.#gt=r)}_getOption(t){return this.#g[t]}get _network(){return(0,a.assert)(this.#gt,"network is not available yet","NETWORK_ERROR"),this.#gt}async _perform(t){if("call"===t.method||"estimateGas"===t.method){let e=t.transaction;if(e&&null!=e.type&&(0,a.getBigInt)(e.type)&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(t=Object.assign({},t,{transaction:Object.assign({},e,{type:void 0})}))}}const e=this.getRpcRequest(t);return null!=e?await this.send(e.method,e.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t){if(!0!==t)return t;if(this.#gt)return this.#gt}return this.#yt?await this.#yt:this.ready?(this.#yt=(async()=>{try{const t=u.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return this.#yt=null,t}catch(t){throw this.#yt=null,t}})(),await this.#yt):(this.#yt=(async()=>{const t={id:this.#dt++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let e;this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#yt=null}catch(t){throw this.#yt=null,this.emit("debug",{action:"receiveRpcError",error:t}),t}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return u.Network.from((0,a.getBigInt)(e.result));throw this.getRpcError(t,e)})(),await this.#yt)}_start(){null!=this.#mt&&null!=this.#mt.resolve&&(this.#mt.resolve(),this.#mt=null,(async()=>{for(;null==this.#gt&&!this.destroyed;)try{this.#gt=await this._detectNetwork()}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,a.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await m(1e3)}this.#wt()})())}async _waitUntilReady(){if(null!=this.#mt)return await this.#mt.promise}_getSubscriber(t){return"pending"===t.type?new h.FilterIdPendingSubscriber(this):"event"===t.type?this._getOption("polling")?new d.PollingEventSubscriber(this,t.filter):new h.FilterIdEventSubscriber(this,t.filter):"orphan"===t.type&&"drop-log"===t.filter.orphan?new c.UnmanagedSubscriber("orphan"):super._getSubscriber(t)}get ready(){return null==this.#mt}getRpcTransaction(t){const e={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((r=>{if(null==t[r])return;let n=r;"gasLimit"===r&&(n="gas"),e[n]=(0,a.toQuantity)((0,a.getBigInt)(t[r],`tx.${r}`))})),["from","to","data"].forEach((r=>{null!=t[r]&&(e[r]=(0,a.hexlify)(t[r]))})),t.accessList&&(e.accessList=(0,o.accessListify)(t.accessList)),e}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&null!=t.filter.address&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(g):t.filter.address=g(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,e){const{method:r}=t,{error:i}=e;if("eth_estimateGas"===r&&i.message){const e=i.message;if(!e.match(/revert/i)&&e.match(/insufficient funds/i))return(0,a.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if("eth_call"===r||"eth_estimateGas"===r){const e=x(i),s=n.AbiCoder.getBuiltinCallException("eth_call"===r?"call":"estimateGas",t.params[0],e?e.data:null);return s.info={error:i,payload:t},s}const s=JSON.stringify(function(t){const e=[];return _(t,e),e}(i));if("string"==typeof i.message&&i.message.match(/user denied|ethers-user-denied/i)){const e={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:e[r]||"unknown",reason:"rejected",info:{payload:t,error:i}})}if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){const e=t.params[0];if(s.match(/insufficient funds|base fee exceeds gas limit/i))return(0,a.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:e,info:{error:i}});if(s.match(/nonce/i)&&s.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:e,info:{error:i}});if(s.match(/replacement transaction/i)&&s.match(/underpriced/i))return(0,a.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:e,info:{error:i}});if(s.match(/only replay-protected/i))return(0,a.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:e,info:{error:i}}})}let o=!!s.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?(0,a.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):(0,a.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,e){if(this.destroyed)return Promise.reject((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=this.#dt++,n=new Promise(((n,i)=>{this.#pt.push({resolve:n,reject:i,payload:{method:t,params:e,id:r,jsonrpc:"2.0"}})}));return this.#wt(),n}async getSigner(t){null==t&&(t=0);const e=this.send("eth_accounts",[]);if("number"==typeof t){const r=await e;if(t>=r.length)throw new Error("no such account");return new b(this,r[t])}const{accounts:r}=await(0,a.resolveProperties)({network:this.getNetwork(),accounts:e});t=(0,i.getAddress)(t);for(const e of r)if((0,i.getAddress)(e)===t)return new b(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((t=>new b(this,t)))}destroy(){this.#ft&&(clearTimeout(this.#ft),this.#ft=null);for(const{payload:t,reject:e}of this.#pt)e((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));this.#pt=[],super.destroy()}}e.JsonRpcApiProvider=v;class E extends v{#bt;constructor(t,e){super(t,e),this.#bt=4e3}_getSubscriber(t){const e=super._getSubscriber(t);return y(e)&&(e.pollingInterval=this.#bt),e}get pollingInterval(){return this.#bt}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");this.#bt=t,this._forEachSubscriber((t=>{y(t)&&(t.pollingInterval=this.#bt)}))}}function x(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,a.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(const e in t){const r=x(t[e]);if(r)return r}return null}if("string"==typeof t)try{return x(JSON.parse(t))}catch(t){}return null}function _(t,e){if(null!=t){if("string"==typeof t.message&&e.push(t.message),"object"==typeof t)for(const r in t)_(t[r],e);if("string"==typeof t)try{return _(JSON.parse(t),e)}catch(t){}}}e.JsonRpcApiPollingProvider=E,e.JsonRpcProvider=class extends E{#vt;constructor(t,e,r){null==t&&(t="http://localhost:8545"),super(e,r),this.#vt="string"==typeof t?new a.FetchRequest(t):t.clone()}_getConnection(){return this.#vt.clone()}async send(t,e){return await this._start(),await super.send(t,e)}async _send(t){const e=this._getConnection();e.body=JSON.stringify(t),e.setHeader("content-type","application/json");const r=await e.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}},2751:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PocketProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="62e1ad51b37b8e00394bda3b";class c extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(t,e,r){null==t&&(t="mainnet");const i=s.Network.from(t);null==e&&(e=a),null==r&&(r=null);const o={staticNetwork:i};super(c.getRequest(i,e,r),i,o),(0,n.defineProperties)(this,{applicationId:e,applicationSecret:r})}_getProvider(t){try{return new c(t,this.applicationId,this.applicationSecret)}catch(t){}return super._getProvider(t)}static getRequest(t,e,r){null==e&&(e=a);const s=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v1/lb/${e}`);return s.allowGzip=!0,r&&s.setCredentials("",r),e===a&&(s.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("PocketProvider"),!0)),s}isCommunityResource(){return this.applicationId===a}}e.PocketProvider=c},1333:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickNodeProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";class c extends o.JsonRpcProvider{token;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a),super(c.getRequest(r,e),r,{staticNetwork:r}),(0,n.defineProperties)(this,{token:e})}_getProvider(t){try{return new c(t,this.token)}catch(t){}return super._getProvider(t)}isCommunityResource(){return this.token===a}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("QuickNodeProvider"),!0)),r}}e.QuickNodeProvider=c},2394:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SocketProvider=e.SocketEventSubscriber=e.SocketPendingSubscriber=e.SocketBlockSubscriber=e.SocketSubscriber=void 0;const n=r(5142),i=r(2120),s=r(2013);class o{#Et;#y;get filter(){return JSON.parse(this.#y)}#xt;#_t;#At;constructor(t,e){this.#Et=t,this.#y=JSON.stringify(e),this.#xt=null,this.#_t=null,this.#At=null}start(){this.#xt=this.#Et.send("eth_subscribe",this.filter).then((t=>(this.#Et._register(t,this),t)))}stop(){this.#xt.then((t=>{this.#Et.send("eth_unsubscribe",[t])})),this.#xt=null}pause(t){(0,i.assert)(t,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#_t=!!t}resume(){this.#_t=null}_handleMessage(t){if(null!=this.#xt&&null===this.#_t){let e=this.#At;e=null==e?this._emit(this.#Et,t):e.then((async()=>{await this._emit(this.#Et,t)})),this.#At=e.then((()=>{this.#At===e&&(this.#At=null)}))}}async _emit(t,e){throw new Error("sub-classes must implemente this; _emit")}}e.SocketSubscriber=o;class a extends o{constructor(t){super(t,["newHeads"])}async _emit(t,e){t.emit("block",parseInt(e.number))}}e.SocketBlockSubscriber=a;class c extends o{constructor(t){super(t,["newPendingTransactions"])}async _emit(t,e){t.emit("pending",e)}}e.SocketPendingSubscriber=c;class l extends o{#kt;get logFilter(){return JSON.parse(this.#kt)}constructor(t,e){super(t,["logs",e]),this.#kt=JSON.stringify(e)}async _emit(t,e){t.emit(this.logFilter,t._wrapLog(e,t._network))}}e.SocketEventSubscriber=l;class u extends s.JsonRpcApiProvider{#St;#M;#Ct;constructor(t,e){const r=Object.assign({},null!=e?e:{});(0,i.assertArgument)(null==r.batchMaxCount||1===r.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",e),r.batchMaxCount=1,null==r.staticNetwork&&(r.staticNetwork=!0),super(t,r),this.#St=new Map,this.#M=new Map,this.#Ct=new Map}_getSubscriber(t){switch(t.type){case"close":return new n.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new c(this);case"event":return new l(this,t.filter);case"orphan":if("drop-log"===t.filter.orphan)return new n.UnmanagedSubscriber("drop-log")}return super._getSubscriber(t)}_register(t,e){this.#M.set(t,e);const r=this.#Ct.get(t);if(r){for(const t of r)e._handleMessage(t);this.#Ct.delete(t)}}async _send(t){(0,i.assertArgument)(!Array.isArray(t),"WebSocket does not support batch send","payload",t);const e=new Promise(((e,r)=>{this.#St.set(t.id,{payload:t,resolve:e,reject:r})}));return await this._waitUntilReady(),await this._write(JSON.stringify(t)),[await e]}async _processMessage(t){const e=JSON.parse(t);if(e&&"object"==typeof e&&"id"in e){const t=this.#St.get(e.id);if(null==t)return void this.emit("error",(0,i.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:e}));this.#St.delete(e.id),t.resolve(e)}else{if(!e||"eth_subscription"!==e.method)return void this.emit("error",(0,i.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:e}));{const t=e.params.subscription,r=this.#M.get(t);if(r)r._handleMessage(e.params.result);else{let r=this.#Ct.get(t);null==r&&(r=[],this.#Ct.set(t,r)),r.push(e.params.result)}}}}async _write(t){throw new Error("sub-classes must override this")}}e.SocketProvider=u},2196:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebSocketProvider=void 0;const n=r(9817),i=r(2394);class s extends i.SocketProvider{#vt;#Mt;get websocket(){if(null==this.#Mt)throw new Error("websocket closed");return this.#Mt}constructor(t,e,r){super(e,r),"string"==typeof t?(this.#vt=()=>new n.WebSocket(t),this.#Mt=this.#vt()):"function"==typeof t?(this.#vt=t,this.#Mt=t()):(this.#vt=null,this.#Mt=t),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(t){console.log("failed to start WebsocketProvider",t)}},this.websocket.onmessage=t=>{this._processMessage(t.data)}}async _write(t){this.websocket.send(t)}async destroy(){null!=this.#Mt&&(this.#Mt.close(),this.#Mt=null),super.destroy()}}e.WebSocketProvider=s},7143:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionResponse=e.TransactionReceipt=e.Log=e.Block=e.copyRequest=e.FeeData=void 0;const n=r(2120),i=r(2290),s=BigInt(0);function o(t){return null==t?null:t}function a(t){return null==t?null:t.toString()}e.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(t,e,r){(0,n.defineProperties)(this,{gasPrice:o(t),maxFeePerGas:o(e),maxPriorityFeePerGas:o(r)})}toJSON(){const{gasPrice:t,maxFeePerGas:e,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:a(t),maxFeePerGas:a(e),maxPriorityFeePerGas:a(r)}}},e.copyRequest=function(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=(0,n.hexlify)(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const i of r)i in t&&null!=t[i]&&(e[i]=(0,n.getBigInt)(t[i],`request.${i}`));const s="type,nonce".split(/,/);for(const r of s)r in t&&null!=t[r]&&(e[r]=(0,n.getNumber)(t[r],`request.${r}`));return t.accessList&&(e.accessList=(0,i.accessListify)(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e};class c{provider;number;hash;timestamp;parentHash;nonce;difficulty;gasLimit;gasUsed;miner;extraData;baseFeePerGas;#It;constructor(t,e){this.#It=t.transactions.map((t=>"string"!=typeof t?new h(t,e):t)),(0,n.defineProperties)(this,{provider:e,hash:o(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,miner:t.miner,extraData:t.extraData,baseFeePerGas:o(t.baseFeePerGas)})}get transactions(){return this.#It.map((t=>"string"==typeof t?t:t.hash))}get prefetchedTransactions(){const t=this.#It.slice();return 0===t.length?[]:((0,n.assert)("object"==typeof t[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){const{baseFeePerGas:t,difficulty:e,extraData:r,gasLimit:n,gasUsed:i,hash:s,miner:o,nonce:c,number:l,parentHash:u,timestamp:h,transactions:d}=this;return{_type:"Block",baseFeePerGas:a(t),difficulty:a(e),extraData:r,gasLimit:a(n),gasUsed:a(i),hash:s,miner:o,nonce:c,number:l,parentHash:u,timestamp:h,transactions:d}}[Symbol.iterator](){let t=0;const e=this.transactions;return{next:()=>tnew l(t,e))));let r=s;null!=t.effectiveGasPrice?r=t.effectiveGasPrice:null!=t.gasPrice&&(r=t.gasPrice),(0,n.defineProperties)(this,{provider:e,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,gasPrice:r,type:t.type,status:t.status,root:t.root})}get logs(){return this.#Pt}toJSON(){const{to:t,from:e,contractAddress:r,hash:n,index:i,blockHash:s,blockNumber:o,logsBloom:c,logs:l,status:u,root:h}=this;return{_type:"TransactionReceipt",blockHash:s,blockNumber:o,contractAddress:r,cumulativeGasUsed:a(this.cumulativeGasUsed),from:e,gasPrice:a(this.gasPrice),gasUsed:a(this.gasUsed),hash:n,index:i,logs:l,logsBloom:c,root:h,status:u,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t{if(c)return null;const{blockNumber:t,nonce:e}=await(0,n.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(e{if(null==t||0!==t.status)return t;(0,n.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:t.to,from:t.from,data:""},receipt:t})},h=await this.provider.getTransactionReceipt(this.hash);if(0===r)return u(h);if(h){if(await h.confirmations()>=r)return u(h)}else if(await l(),0===r)return null;const d=new Promise(((t,e)=>{const s=[],a=()=>{s.forEach((t=>t()))};if(s.push((()=>{c=!0})),i>0){const t=setTimeout((()=>{a(),e((0,n.makeError)("wait for transaction timeout","TIMEOUT"))}),i);s.push((()=>{clearTimeout(t)}))}const h=async n=>{if(await n.confirmations()>=r){a();try{t(u(n))}catch(t){e(t)}}};if(s.push((()=>{this.provider.off(this.hash,h)})),this.provider.on(this.hash,h),o>=0){const t=async()=>{try{await l()}catch(t){if((0,n.isError)(t,"TRANSACTION_REPLACED"))return a(),void e(t)}c||this.provider.once("block",t)};s.push((()=>{this.provider.off("block",t)})),this.provider.once("block",t)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}removedEvent(){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(t){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,n.assert)(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,t)}replaceableTransaction(t){(0,n.assertArgument)(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);const e=new h(this,this.provider);return e.#Ot=t,e}}function d(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function p(t){return{orphan:"drop-transaction",tx:t}}e.TransactionResponse=h},2992:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonceManager=void 0;const n=r(2120),i=r(5649);class s extends i.AbstractSigner{signer;#Tt;#Nt;constructor(t){super(t.provider),(0,n.defineProperties)(this,{signer:t}),this.#Tt=null,this.#Nt=0}async getAddress(){return this.signer.getAddress()}connect(t){return new s(this.signer.connect(t))}async getNonce(t){if("pending"===t){null==this.#Tt&&(this.#Tt=super.getNonce("pending"));const t=this.#Nt;return await this.#Tt+t}return super.getNonce(t)}increment(){this.#Nt++}reset(){this.#Nt=0,this.#Tt=null}async sendTransaction(t){const e=this.getNonce("pending");return this.increment(),(t=await this.signer.populateTransaction(t)).nonce=await e,await this.signer.sendTransaction(t)}signTransaction(t){return this.signer.signTransaction(t)}signMessage(t){return this.signer.signMessage(t)}signTypedData(t,e,r){return this.signer.signTypedData(t,e,r)}}e.NonceManager=s},1570:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FilterIdPendingSubscriber=e.FilterIdEventSubscriber=e.FilterIdSubscriber=void 0;const n=r(2120),i=r(3292);class s{#Et;#Rt;#Bt;#jt;#gt;#Lt;constructor(t){this.#Et=t,this.#Rt=null,this.#Bt=this.#Ut.bind(this),this.#jt=!1,this.#gt=null,this.#Lt=!1}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,e){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}async#Ut(t){try{null==this.#Rt&&(this.#Rt=this._subscribe(this.#Et));let t=null;try{t=await this.#Rt}catch(t){if(!(0,n.isError)(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==t)return this.#Rt=null,void this.#Et._recoverSubscriber(this,this._recover(this.#Et));const e=await this.#Et.getNetwork();if(this.#gt||(this.#gt=e),this.#gt.chainId!==e.chainId)throw new Error("chaid changed");if(this.#Lt)return;const r=await this.#Et.send("eth_getFilterChanges",[t]);await this._emitResults(this.#Et,r)}catch(t){console.log("@TODO",t)}this.#Et.once("block",this.#Bt)}#Dt(){const t=this.#Rt;t&&(this.#Rt=null,t.then((t=>{this.#Et.send("eth_uninstallFilter",[t])})))}start(){this.#jt||(this.#jt=!0,this.#Ut(-2))}stop(){this.#jt&&(this.#jt=!1,this.#Lt=!0,this.#Dt(),this.#Et.off("block",this.#Bt))}pause(t){t&&this.#Dt(),this.#Et.off("block",this.#Bt)}resume(){this.start()}}e.FilterIdSubscriber=s,e.FilterIdEventSubscriber=class extends s{#$t;constructor(t,e){var r;super(t),this.#$t=(r=e,JSON.parse(JSON.stringify(r)))}_recover(t){return new i.PollingEventSubscriber(t,this.#$t)}async _subscribe(t){return await t.send("eth_newFilter",[this.#$t])}async _emitResults(t,e){for(const r of e)t.emit(this.#$t,t._wrapLog(r,t._network))}},e.FilterIdPendingSubscriber=class extends s{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,e){for(const r of e)t.emit("pending",r)}}},3292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PollingEventSubscriber=e.PollingTransactionSubscriber=e.PollingOrphanSubscriber=e.PollingBlockTagSubscriber=e.OnBlockSubscriber=e.PollingBlockSubscriber=e.getPollingSubscriber=void 0;const n=r(2120);function i(t){return JSON.parse(JSON.stringify(t))}e.getPollingSubscriber=function(t,e){return"block"===e?new s(t):(0,n.isHexString)(e,32)?new a(t,e):void(0,n.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:e}})};class s{#Et;#Bt;#Ft;#zt;constructor(t){this.#Et=t,this.#Bt=null,this.#Ft=4e3,this.#zt=-2}get pollingInterval(){return this.#Ft}set pollingInterval(t){this.#Ft=t}async#Ut(){try{const t=await this.#Et.getBlockNumber();if(-2===this.#zt)return void(this.#zt=t);if(t!==this.#zt){for(let e=this.#zt+1;e<=t;e++){if(null==this.#Bt)return;await this.#Et.emit("block",e)}this.#zt=t}}catch(t){}null!=this.#Bt&&(this.#Bt=this.#Et._setTimeout(this.#Ut.bind(this),this.#Ft))}start(){this.#Bt||(this.#Bt=this.#Et._setTimeout(this.#Ut.bind(this),this.#Ft),this.#Ut())}stop(){this.#Bt&&(this.#Et._clearTimeout(this.#Bt),this.#Bt=null)}pause(t){this.stop(),t&&(this.#zt=-2)}resume(){this.start()}}e.PollingBlockSubscriber=s;class o{#Et;#Ut;#jt;constructor(t){this.#Et=t,this.#jt=!1,this.#Ut=t=>{this._poll(t,this.#Et)}}async _poll(t,e){throw new Error("sub-classes must override this")}start(){this.#jt||(this.#jt=!0,this.#Ut(-2),this.#Et.on("block",this.#Ut))}stop(){this.#jt&&(this.#jt=!1,this.#Et.off("block",this.#Ut))}pause(t){this.stop()}resume(){this.start()}}e.OnBlockSubscriber=o,e.PollingBlockTagSubscriber=class extends o{#Ht;#Wt;constructor(t,e){super(t),this.#Ht=e,this.#Wt=-2}pause(t){t&&(this.#Wt=-2),super.pause(t)}async _poll(t,e){const r=await e.getBlock(this.#Ht);null!=r&&(-2===this.#Wt?this.#Wt=r.number:r.number>this.#Wt&&(e.emit(this.#Ht,r.number),this.#Wt=r.number))}},e.PollingOrphanSubscriber=class extends o{#y;constructor(t,e){super(t),this.#y=i(e)}async _poll(t,e){throw new Error("@TODO")}};class a extends o{#qt;constructor(t,e){super(t),this.#qt=e}async _poll(t,e){const r=await e.getTransactionReceipt(this.#qt);r&&e.emit(this.#qt,r)}}e.PollingTransactionSubscriber=a,e.PollingEventSubscriber=class{#Et;#y;#Bt;#jt;#zt;constructor(t,e){this.#Et=t,this.#y=i(e),this.#Bt=this.#Ut.bind(this),this.#jt=!1,this.#zt=-2}async#Ut(t){if(-2===this.#zt)return;const e=i(this.#y);e.fromBlock=this.#zt+1,e.toBlock=t;const r=await this.#Et.getLogs(e);if(0!==r.length)for(const t of r)this.#Et.emit(this.#y,t),this.#zt=t.blockNumber;else this.#zt{this.#zt=t})),this.#Et.on("block",this.#Bt))}stop(){this.#jt&&(this.#jt=!1,this.#Et.off("block",this.#Bt))}pause(t){this.stop(),t&&(this.#zt=-2)}resume(){this.start()}}},9817:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebSocket=void 0;const n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}().WebSocket;e.WebSocket=n},484:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.accessListify=void 0;const n=r(5475),i=r(2120);function s(t,e){return{address:(0,n.getAddress)(t),storageKeys:e.map(((t,e)=>((0,i.assertArgument)((0,i.isHexString)(t,32),"invalid slot",`storageKeys[${e}]`,t),t.toLowerCase())))}}e.accessListify=function(t){if(Array.isArray(t))return t.map(((e,r)=>Array.isArray(e)?((0,i.assertArgument)(2===e.length,"invalid slot set",`value[${r}]`,e),s(e[0],e[1])):((0,i.assertArgument)(null!=e&&"object"==typeof e,"invalid address-slot set","value",t),s(e.address,e.storageKeys))));(0,i.assertArgument)(null!=t&&"object"==typeof t,"invalid access list","value",t);const e=Object.keys(t).map((e=>{const r=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return s(e,Object.keys(r).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}},7782:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recoverAddress=e.computeAddress=void 0;const n=r(5475),i=r(6965);function s(t){let e;return e="string"==typeof t?i.SigningKey.computePublicKey(t,!1):t.publicKey,(0,n.getAddress)((0,i.keccak256)("0x"+e.substring(4)).substring(26))}e.computeAddress=s,e.recoverAddress=function(t,e){return s(i.SigningKey.recoverPublicKey(t,e))}},2290:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transaction=e.recoverAddress=e.computeAddress=e.accessListify=void 0;var n=r(484);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return n.accessListify}});var i=r(7782);Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return i.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return i.recoverAddress}});var s=r(1541);Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return s.Transaction}})},1541:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transaction=void 0;const n=r(5475),i=r(6965),s=r(2120),o=r(484),a=r(7782),c=BigInt(0),l=BigInt(2),u=BigInt(27),h=BigInt(28),d=BigInt(35),p=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function f(t){return"0x"===t?null:(0,n.getAddress)(t)}function m(t,e){try{return(0,o.accessListify)(t)}catch(r){(0,s.assertArgument)(!1,r.message,e,t)}}function g(t,e){return"0x"===t?0:(0,s.getNumber)(t,e)}function y(t,e){if("0x"===t)return c;const r=(0,s.getBigInt)(t,e);return(0,s.assertArgument)(r<=p,"value exceeds uint size",e,r),r}function w(t,e){const r=(0,s.getBigInt)(t,"value"),n=(0,s.toBeArray)(r);return(0,s.assertArgument)(n.length<=32,"value too large",`tx.${e}`,r),n}function b(t){return(0,o.accessListify)(t).map((t=>[t.address,t.storageKeys]))}function v(t,e){const r=[w(t.nonce||0,"nonce"),w(t.gasPrice||0,"gasPrice"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x"];let o=c;if(t.chainId!=c)o=(0,s.getBigInt)(t.chainId,"tx.chainId"),(0,s.assertArgument)(!e||null==e.networkV||e.legacyChainId===o,"tx.chainId/sig.v mismatch","sig",e);else if(t.signature){const e=t.signature.legacyChainId;null!=e&&(o=e)}if(!e)return o!==c&&(r.push((0,s.toBeArray)(o)),r.push("0x"),r.push("0x")),(0,s.encodeRlp)(r);let a=BigInt(27+e.yParity);return o!==c?a=i.Signature.getChainIdV(o,e.v):BigInt(e.v)!==a&&(0,s.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",e),r.push((0,s.toBeArray)(a)),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s)),(0,s.encodeRlp)(r)}function E(t,e){let r;try{if(r=g(e[0],"yParity"),0!==r&&1!==r)throw new Error("bad yParity")}catch(t){(0,s.assertArgument)(!1,"invalid yParity","yParity",e[0])}const n=(0,s.zeroPadValue)(e[1],32),o=(0,s.zeroPadValue)(e[2],32),a=i.Signature.from({r:n,s:o,yParity:r});t.signature=a}function x(t,e){const r=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(t.maxFeePerGas||0,"maxFeePerGas"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",b(t.accessList||[])];return e&&(r.push(w(e.yParity,"yParity")),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s))),(0,s.concat)(["0x02",(0,s.encodeRlp)(r)])}function _(t,e){const r=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.gasPrice||0,"gasPrice"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",b(t.accessList||[])];return e&&(r.push(w(e.yParity,"recoveryParam")),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s))),(0,s.concat)(["0x01",(0,s.encodeRlp)(r)])}class A{#Vt;#Gt;#r;#Kt;#Zt;#Jt;#Qt;#Yt;#Xt;#Y;#te;#ee;get type(){return this.#Vt}set type(t){switch(t){case null:this.#Vt=null;break;case 0:case"legacy":this.#Vt=0;break;case 1:case"berlin":case"eip-2930":this.#Vt=1;break;case 2:case"london":case"eip-1559":this.#Vt=2;break;default:(0,s.assertArgument)(!1,"unsupported transaction type","type",t)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559"}return null}get to(){return this.#Gt}set to(t){this.#Gt=null==t?null:(0,n.getAddress)(t)}get nonce(){return this.#Kt}set nonce(t){this.#Kt=(0,s.getNumber)(t,"value")}get gasLimit(){return this.#Zt}set gasLimit(t){this.#Zt=(0,s.getBigInt)(t)}get gasPrice(){const t=this.#Jt;return null!=t||0!==this.type&&1!==this.type?t:c}set gasPrice(t){this.#Jt=null==t?null:(0,s.getBigInt)(t,"gasPrice")}get maxPriorityFeePerGas(){const t=this.#Qt;return null==t?2===this.type?c:null:t}set maxPriorityFeePerGas(t){this.#Qt=null==t?null:(0,s.getBigInt)(t,"maxPriorityFeePerGas")}get maxFeePerGas(){const t=this.#Yt;return null==t?2===this.type?c:null:t}set maxFeePerGas(t){this.#Yt=null==t?null:(0,s.getBigInt)(t,"maxFeePerGas")}get data(){return this.#r}set data(t){this.#r=(0,s.hexlify)(t)}get value(){return this.#Xt}set value(t){this.#Xt=(0,s.getBigInt)(t,"value")}get chainId(){return this.#Y}set chainId(t){this.#Y=(0,s.getBigInt)(t)}get signature(){return this.#te||null}set signature(t){this.#te=null==t?null:i.Signature.from(t)}get accessList(){const t=this.#ee||null;return null==t?1===this.type||2===this.type?[]:null:t}set accessList(t){this.#ee=null==t?null:(0,o.accessListify)(t)}constructor(){this.#Vt=null,this.#Gt=null,this.#Kt=0,this.#Zt=BigInt(0),this.#Jt=null,this.#Qt=null,this.#Yt=null,this.#r="0x",this.#Xt=BigInt(0),this.#Y=BigInt(0),this.#te=null,this.#ee=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.serialized)}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,a.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}get serialized(){switch((0,s.assert)(null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"}),this.inferType()){case 0:return v(this,this.signature);case 1:return _(this,this.signature);case 2:return x(this,this.signature)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get unsignedSerialized(){switch(this.inferType()){case 0:return v(this);case 1:return _(this);case 2:return x(this)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".unsignedSerialized"})}inferType(){return this.inferTypes().pop()}inferTypes(){const t=null!=this.gasPrice,e=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,s.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,s.assert)(!e||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,s.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const n=[];return null!=this.type?n.push(this.type):e?n.push(2):t?(n.push(1),r||n.push(0)):r?(n.push(1),n.push(2)):(n.push(0),n.push(1),n.push(2)),n.sort(),n}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}clone(){return A.from(this)}toJSON(){const t=t=>null==t?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(null==t)return new A;if("string"==typeof t){const e=(0,s.getBytes)(t);if(e[0]>=127)return A.from(function(t){const e=(0,s.decodeRlp)(t);(0,s.assertArgument)(Array.isArray(e)&&(9===e.length||6===e.length),"invalid field count for legacy transaction","data",t);const r={type:0,nonce:g(e[0],"nonce"),gasPrice:y(e[1],"gasPrice"),gasLimit:y(e[2],"gasLimit"),to:f(e[3]),value:y(e[4],"value"),data:(0,s.hexlify)(e[5]),chainId:c};if(6===e.length)return r;const n=y(e[6],"v"),o=y(e[7],"r"),a=y(e[8],"s");if(o===c&&a===c)r.chainId=n;else{let o=(n-d)/l;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBase58=e.encodeBase58=void 0;const n=r(6239),i=r(1766),s=r(358),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let a=null;function c(t){if(null==a){a={};for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=void 0;const n=r(6239);e.decodeBase64=function(t){t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zeroPadBytes=e.zeroPadValue=e.stripZerosLeft=e.dataSlice=e.dataLength=e.concat=e.hexlify=e.isBytesLike=e.isHexString=e.getBytesCopy=e.getBytes=void 0;const n=r(1766);function i(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if("string"==typeof t&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const e=new Uint8Array((t.length-2)/2);let r=2;for(let n=0;n>4]+a[15&n]}return r}function l(t,e,r){const i=s(t);(0,n.assert)(e>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:e,offset:e+1});const o=new Uint8Array(e);return o.fill(0),r?o.set(i,e-i.length):o.set(i,0),c(o)}e.hexlify=c,e.concat=function(t){return"0x"+t.map((t=>c(t).substring(2))).join("")},e.dataLength=function(t){return o(t,!0)?(t.length-2)/2:s(t).length},e.dataSlice=function(t,e,r){const i=s(t);return null!=r&&r>i.length&&(0,n.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:r}),c(i.slice(null==e?0:e,null==r?i.length:r))},e.stripZerosLeft=function(t){let e=c(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e},e.zeroPadValue=function(t,e){return l(t,e,!0)},e.zeroPadBytes=function(t,e){return l(t,e,!1)}},1766:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertPrivate=e.assertNormalize=e.assertArgumentCount=e.assertArgument=e.assert=e.makeError=e.isCallException=e.isError=void 0;const n=r(9406),i=r(9290);function s(t){if(null==t)return"null";if(Array.isArray(t))return"[ "+t.map(s).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[15&t[n]];return r}if("object"==typeof t&&"function"==typeof t.toJSON)return s(t.toJSON());switch(typeof t){case"boolean":case"symbol":case"number":return t.toString();case"bigint":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map((e=>`${s(e)}: ${s(t[e])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(t,e){return t&&t.code===e}function a(t,e,r){let o,a=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${s(r)}`);for(const t in r){if("shortMessage"===t)continue;const e=r[t];i.push(t+"="+s(e))}}i.push(`code=${e}`),i.push(`version=${n.version}`),i.length&&(t+=" ("+i.join(", ")+")")}switch(e){case"INVALID_ARGUMENT":o=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(t);break;default:o=new Error(t)}return(0,i.defineProperties)(o,{code:e}),r&&Object.assign(o,r),null==o.shortMessage&&(0,i.defineProperties)(o,{shortMessage:a}),o}function c(t,e,r,n){if(!t)throw a(e,r,n)}e.isError=o,e.isCallException=function(t){return o(t,"CALL_EXCEPTION")},e.makeError=a,e.assert=c,e.assertArgument=function(t,e,r,n){c(t,e,"INVALID_ARGUMENT",{argument:r,value:n})},e.assertArgumentCount=function(t,e,r){null==r&&(r=""),r&&(r=": "+r),c(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),c(t<=e,"too many arguemnts"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})};const l=["NFD","NFC","NFKD","NFKC"].reduce(((t,e)=>{try{if("test"!=="test".normalize(e))throw new Error("bad");if("NFD"===e){if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken")}t.push(e)}catch(t){}return t}),[]);e.assertNormalize=function(t){c(l.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})},e.assertPrivate=function(t,e,r){if(null==r&&(r=""),t!==e){let t=r,e="new";r&&(t+=".",e+=" "+r),c(!1,`private constructor; use ${t}from* methods`,"UNSUPPORTED_OPERATION",{operation:e})}}},2203:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventPayload=void 0;const n=r(9290);e.EventPayload=class{filter;emitter;#re;constructor(t,e,r){this.#re=e,(0,n.defineProperties)(this,{emitter:t,filter:r})}async removeListener(){null!=this.#re&&await this.emitter.off(this.filter,this.#re)}}},3654:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchResponse=e.FetchRequest=e.FetchCancelSignal=void 0;const n=r(6446),i=r(6239),s=r(1766),o=r(9290),a=r(2119),c=r(3040);let l=(0,c.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),h=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function p(t,e){try{const e=t.match(u);if(!e)throw new Error("invalid data");return new v(200,"OK",{"content-type":e[1]||"text/plain"},e[2]?(0,n.decodeBase64)(e[3]):(r=e[3],(0,a.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,((t,e)=>String.fromCharCode(parseInt(e,16)))))))}catch(e){return new v(599,"BAD REQUEST (invalid data: URI)",{},null,new b(t))}var r}function f(t){return async function(e,r){try{const r=e.match(h);if(!r)throw new Error("invalid link");return new b(`${t}${r[2]}`)}catch(t){return new v(599,"BAD REQUEST (invalid IPFS URI)",{},null,new b(e))}}}const m={data:p,ipfs:f("https://gateway.ipfs.io/ipfs/")},g=new WeakMap;class y{#ne;#ie;constructor(t){this.#ne=[],this.#ie=!1,g.set(t,(()=>{if(!this.#ie){this.#ie=!0;for(const t of this.#ne)setTimeout((()=>{t()}),0);this.#ne=[]}}))}addListener(t){(0,s.assert)(!this.#ie,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#ne.push(t)}get cancelled(){return this.#ie}checkSignal(){(0,s.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function w(t){if(null==t)throw new Error("missing signal; should not happen");return t.checkSignal(),t}e.FetchCancelSignal=y;class b{#se;#oe;#ae;#ce;#le;#tt;#ue;#he;#de;#pe;#fe;#me;#ge;#ye;#we;get url(){return this.#tt}set url(t){this.#tt=String(t)}get body(){return null==this.#ue?null:new Uint8Array(this.#ue)}set body(t){if(null==t)this.#ue=void 0,this.#he=void 0;else if("string"==typeof t)this.#ue=(0,a.toUtf8Bytes)(t),this.#he="text/plain";else if(t instanceof Uint8Array)this.#ue=t,this.#he="application/octet-stream";else{if("object"!=typeof t)throw new Error("invalid body");this.#ue=(0,a.toUtf8Bytes)(JSON.stringify(t)),this.#he="application/json"}}hasBody(){return null!=this.#ue}get method(){return this.#ce?this.#ce:this.hasBody()?"POST":"GET"}set method(t){null==t&&(t=""),this.#ce=String(t).toUpperCase()}get headers(){const t=Object.assign({},this.#ae);return this.#de&&(t.authorization=`Basic ${(0,n.encodeBase64)((0,a.toUtf8Bytes)(this.#de))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),null==t["content-type"]&&this.#he&&(t["content-type"]=this.#he),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,e){this.#ae[String(t).toLowerCase()]=String(e)}clearHeaders(){this.#ae={}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",t),this.#le=t}get preflightFunc(){return this.#pe||null}set preflightFunc(t){this.#pe=t}get processFunc(){return this.#fe||null}set processFunc(t){this.#fe=t}get retryFunc(){return this.#me||null}set retryFunc(t){this.#me=t}get getUrlFunc(){return this.#we||l}set getUrlFunc(t){this.#we=t}constructor(t){this.#tt=String(t),this.#se=!1,this.#oe=!0,this.#ae={},this.#ce="",this.#le=3e5,this.#ye={slotInterval:250,maxAttempts:12},this.#we=null}toString(){return``}setThrottleParams(t){null!=t.slotInterval&&(this.#ye.slotInterval=t.slotInterval),null!=t.maxAttempts&&(this.#ye.maxAttempts=t.maxAttempts)}async#be(t,e,r,n,i){if(t>=this.#ye.maxAttempts)return i.makeServerError("exceeded maximum retry limit");(0,s.assert)(E()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await function(t){return new Promise((e=>setTimeout(e,t)))}(r);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in m){const t=await m[a](o.url,w(n.#ge));if(t instanceof v){let e=t;if(this.processFunc){w(n.#ge);try{e=await this.processFunc(o,e)}catch(t){null!=t.throttle&&"number"==typeof t.stall||e.makeServerError("error in post-processing function",t).assertOk()}}return e}o=t}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,w(n.#ge));let l=new v(c.statusCode,c.statusMessage,c.headers,c.body,n);if(301===l.statusCode||302===l.statusCode){try{const r=l.headers.location||"";return o.redirect(r).#be(t+1,e,0,n,l)}catch(t){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(o,l,t))){const r=l.headers["retry-after"];let i=this.#ye.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(i=parseInt(r)),o.clone().#be(t+1,e,i,n,l)}if(this.processFunc){w(n.#ge);try{l=await this.processFunc(o,l)}catch(r){null!=r.throttle&&"number"==typeof r.stall||l.makeServerError("error in post-processing function",r).assertOk();let i=this.#ye.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return r.stall>=0&&(i=r.stall),o.clone().#be(t+1,e,i,n,l)}}return l}send(){return(0,s.assert)(null==this.#ge,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#ge=new y(this),this.#be(0,E()+this.timeout,0,this,new v(0,"",{},null,this))}cancel(){(0,s.assert)(null!=this.#ge,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const t=g.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){const e=this.url.split(":")[0].toLowerCase(),r=t.split(":")[0].toLowerCase();(0,s.assert)("GET"===this.method&&("https"!==e||"http"!==r)&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});const n=new b(t);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#ae=Object.assign({},this.#ae),this.#ue&&(n.#ue=new Uint8Array(this.#ue)),n.#he=this.#he,n}clone(){const t=new b(this.url);return t.#ce=this.#ce,this.#ue&&(t.#ue=this.#ue),t.#he=this.#he,t.#ae=Object.assign({},this.#ae),t.#de=this.#de,this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),t.#pe=this.#pe,t.#fe=this.#fe,t.#me=this.#me,t.#we=this.#we,t}static lockConfig(){d=!0}static getGateway(t){return m[t.toLowerCase()]||null}static registerGateway(t,e){if("http"===(t=t.toLowerCase())||"https"===t)throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(d)throw new Error("gateways locked");m[t]=e}static registerGetUrl(t){if(d)throw new Error("gateways locked");l=t}static createGetUrlFunc(t){return(0,c.createGetUrl)(t)}static createDataGateway(){return p}static createIpfsGatewayFunc(t){return f(t)}}e.FetchRequest=b;class v{#ve;#Ee;#ae;#ue;#rt;#xe;toString(){return``}get statusCode(){return this.#ve}get statusMessage(){return this.#Ee}get headers(){return Object.assign({},this.#ae)}get body(){return null==this.#ue?null:new Uint8Array(this.#ue)}get bodyText(){try{return null==this.#ue?"":(0,a.toUtf8String)(this.#ue)}catch(t){(0,s.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(t){(0,s.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r(t[e.toLowerCase()]=String(r[e]),t)),{}),this.#ue=null==n?null:new Uint8Array(n),this.#rt=i||null,this.#xe={message:""}}makeServerError(t,e){let r;r=t?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${t})`:`CLIENT ESCALATED SERVER ERROR (${t=`${this.statusCode} ${this.statusMessage}`})`;const n=new v(599,r,this.headers,this.body,this.#rt||void 0);return n.#xe={message:t,error:e},n}throwThrottleError(t,e){null==e?e=-1:(0,s.assertArgument)(Number.isInteger(e)&&e>=0,"invalid stall timeout","stall",e);const r=new Error(t||"throttling requests");throw(0,o.defineProperties)(r,{stall:e,throttle:!0}),r}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return null!=this.#ue}get request(){return this.#rt}ok(){return""===this.#xe.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:e}=this.#xe;""===t&&(t=`server response ${this.statusCode} ${this.statusMessage}`),(0,s.assert)(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:e})}}function E(){return(new Date).getTime()}e.FetchResponse=v},6539:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FixedNumber=void 0;const n=r(6239),i=r(1766),s=r(358),o=r(9290),a=BigInt(-1),c=BigInt(0),l=BigInt(1),u=BigInt(5),h={};let d="0000";for(;d.length<80;)d+=d;function p(t){let e=d;for(;e.length=-e&&tc?(0,s.fromTwos)((0,s.mask)(t,n),n):-(0,s.fromTwos)((0,s.mask)(-t,n),n)}else{const e=l<=0&&tnull==s[t]?r:((0,i.assertArgument)(typeof s[t]===e,"invalid fixed format ("+t+" not "+e+")","format."+t,s[t]),s[t]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}return(0,i.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,i.assertArgument)(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n),{signed:e,width:r,decimals:n,name:(e?"":"u")+"fixed"+String(r)+"x"+String(n)}}class g{format;#_e;#Ae;#ke;_value;constructor(t,e,r){(0,i.assertPrivate)(t,h,"FixedNumber"),this.#Ae=e,this.#_e=r;const n=function(t,e){let r="";t0?r*=p(n):n<0&&(e*=p(-n)),er?1:0}eq(t){return 0===this.cmp(t)}lt(t){return this.cmp(t)<0}lte(t){return this.cmp(t)<=0}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#Ae;return this.#Aec&&(t+=this.#ke-l),t=this.#Ae/this.#ke*this.#ke,this.#Ce(t,"ceiling")}round(t){if(null==t&&(t=0),t>=this.decimals)return this;const e=this.decimals-t,r=u*p(e-1);let n=this.value+r;const i=p(e);return n=n/i*i,f(n,this.#_e,"round"),new g(h,n,this.#_e)}isZero(){return this.#Ae===c}isNegative(){return this.#Ae0){const e=p(l);(0,i.assert)(a%e===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),a/=e}else l<0&&(a*=p(-l));return f(a,o,"fromValue"),new g(h,a,o)}static fromString(t,e){const r=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,i.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",t);const n=m(e);let s=r[2]||"0",o=r[3]||"";for(;o.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUrl=e.createGetUrl=void 0;const n=r(1766);function i(t){return async function(t,e){const r=t.url.split(":")[0].toLowerCase();let i;if((0,n.assert)("http"===r||"https"===r,`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),(0,n.assert)("https"===r||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"}),e){const t=new AbortController;i=t.signal,e.addListener((()=>{t.abort()}))}const s={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,s),a={};o.headers.forEach(((t,e)=>{a[e.toLowerCase()]=t}));const c=await o.arrayBuffer(),l=null==c?null:new Uint8Array(c);return{statusCode:o.status,statusMessage:o.statusText,headers:a,body:l}}}e.createGetUrl=i;const s=i();e.getUrl=async function(t,e){return s(t,e)}},2120:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.encodeRlp=e.decodeRlp=e.defineProperties=e.resolveProperties=e.toQuantity=e.toBeArray=e.toBeHex=e.toNumber=e.toBigInt=e.getUint=e.getNumber=e.getBigInt=e.mask=e.toTwos=e.fromTwos=e.FixedNumber=e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.makeError=e.assertNormalize=e.assertPrivate=e.assertArgumentCount=e.assertArgument=e.assert=e.isError=e.isCallException=e.zeroPadBytes=e.zeroPadValue=e.stripZerosLeft=e.dataSlice=e.dataLength=e.concat=e.hexlify=e.isBytesLike=e.isHexString=e.getBytesCopy=e.getBytes=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=void 0,e.uuidV4=e.Utf8ErrorFuncs=void 0;var n=r(349);Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return n.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return n.encodeBase58}});var i=r(6446);Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return i.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return i.encodeBase64}});var s=r(6239);Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return s.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return s.getBytesCopy}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return s.isBytesLike}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return s.hexlify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return s.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return s.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return s.dataSlice}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return s.stripZerosLeft}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return s.zeroPadValue}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return s.zeroPadBytes}});var o=r(1766);Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return o.makeError}});var a=r(2203);Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return a.EventPayload}});var c=r(3654);Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var l=r(6539);Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var u=r(358);Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var h=r(9290);Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return h.resolveProperties}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return h.defineProperties}});var d=r(4978);Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var p=r(9122);Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var f=r(8680);Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return f.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return f.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return f.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return f.parseUnits}});var m=r(2119);Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return m.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return m.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return m.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return m.Utf8ErrorFuncs}});var g=r(4824);Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return g.uuidV4}})},358:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toQuantity=e.toBeArray=e.toBeHex=e.toNumber=e.getNumber=e.toBigInt=e.getUint=e.getBigInt=e.mask=e.toTwos=e.fromTwos=void 0;const n=r(6239),i=r(1766),s=BigInt(0),o=BigInt(1),a=9007199254740991;function c(t,e){switch(typeof t){case"bigint":return t;case"number":return(0,i.assertArgument)(Number.isInteger(t),"underflow",e||"value",t),(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),BigInt(t);case"string":try{if(""===t)throw new Error("empty string");return"-"===t[0]&&"-"!==t[1]?-BigInt(t.substring(1)):BigInt(t)}catch(r){(0,i.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}(0,i.assertArgument)(!1,"invalid BigNumberish value",e||"value",t)}function l(t,e){const r=c(t,e);return(0,i.assert)(r>=s,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}e.fromTwos=function(t,e){const r=l(t,"value"),n=BigInt(d(e,"width"));return(0,i.assert)(r>>n===s,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-o?-((~r&(o<>4],e+=u[15&r];return BigInt(e)}return c(t)}function d(t,e){switch(typeof t){case"bigint":return(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),Number(t);case"number":return(0,i.assertArgument)(Number.isInteger(t),"underflow",e||"value",t),(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),t;case"string":try{if(""===t)throw new Error("empty string");return d(BigInt(t),e)}catch(r){(0,i.assertArgument)(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}(0,i.assertArgument)(!1,"invalid numeric value",e||"value",t)}function p(t){const e=l(t,"value");if(e===s)return new Uint8Array([]);let r=e.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let t=0;t=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length<2*n;)r="0"+r}return"0x"+r},e.toBeArray=p,e.toQuantity=function(t){let e=(0,n.hexlify)((0,n.isBytesLike)(t)?t:p(t)).substring(2);for(;e.startsWith("0");)e=e.substring(1);return""===e&&(e="0"),"0x"+e}},9290:(t,e)=>{"use strict";function r(t,e,r){const n=e.split("|").map((t=>t.trim()));for(let r=0;rPromise.resolve(t[e]))))).reduce(((t,r,n)=>(t[e[n]]=r,t)),{})},e.defineProperties=function(t,e,n){for(let i in e){let s=e[i];const o=n?n[i]:null;o&&r(s,o,i),Object.defineProperty(t,i,{enumerable:!0,value:s,writable:!1})}}},4978:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeRlp=void 0;const n=r(6239),i=r(1766),s=r(6239);function o(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function a(t,e,r){let n=0;for(let i=0;i{(0,i.assert)(e<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:e})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const i=a(t,e+1,n);return r(e+1+n+i),c(t,e,e+1+n,n+i)}if(t[e]>=192){const n=t[e]-192;return r(e+1+n),c(t,e,e+1,n)}if(t[e]>=184){const i=t[e]-183;r(e+1+i);const s=a(t,e+1,i);return r(e+1+i+s),{consumed:1+i+s,result:(0,n.hexlify)(t.slice(e+1+i,e+1+i+s))}}if(t[e]>=128){const i=t[e]-128;return r(e+1+i),{consumed:1+i,result:(0,n.hexlify)(t.slice(e+1,e+1+i))}}return{consumed:1,result:o(t[e])}}e.decodeRlp=function(t){const e=(0,s.getBytes)(t,"data"),r=l(e,0);return(0,i.assertArgument)(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}},9122:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeRlp=void 0;const n=r(6239);function i(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function s(t){if(Array.isArray(t)){let e=[];if(t.forEach((function(t){e=e.concat(s(t))})),e.length<=55)return e.unshift(192+e.length),e;const r=i(e.length);return r.unshift(247+r.length),r.concat(e)}const e=Array.prototype.slice.call((0,n.getBytes)(t,"object"));if(1===e.length&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=i(e.length);return r.unshift(183+r.length),r.concat(e)}const o="0123456789abcdef";e.encodeRlp=function(t){let e="0x";for(const r of s(t))e+=o[r>>4],e+=o[15&r];return e}},8680:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEther=e.formatEther=e.parseUnits=e.formatUnits=void 0;const n=r(1766),i=r(6539),s=r(358),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(t,e){let r=18;if("string"==typeof e){const t=o.indexOf(e);(0,n.assertArgument)(t>=0,"invalid unit","unit",e),r=3*t}else null!=e&&(r=(0,s.getNumber)(e,"unit"));return i.FixedNumber.fromValue(t,r,{decimals:r,width:512}).toString()}function c(t,e){(0,n.assertArgument)("string"==typeof t,"value must be a string","value",t);let r=18;if("string"==typeof e){const t=o.indexOf(e);(0,n.assertArgument)(t>=0,"invalid unit","unit",e),r=3*t}else null!=e&&(r=(0,s.getNumber)(e,"unit"));return i.FixedNumber.fromString(t,{decimals:r,width:512}).value}e.formatUnits=a,e.parseUnits=c,e.formatEther=function(t){return a(t,18)},e.parseEther=function(t){return c(t,18)}},2119:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8CodePoints=e.toUtf8String=e.toUtf8Bytes=e.Utf8ErrorFuncs=void 0;const n=r(6239),i=r(1766);function s(t,e,r,n,i){if("BAD_PREFIX"===t||"UNEXPECTED_CONTINUE"===t){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return"OVERRUN"===t?r.length-e-1:0}function o(t,r){null==r&&(r=e.Utf8ErrorFuncs.error);const i=(0,n.getBytes)(t,"bytes"),s=[];let o=0;for(;o>7==0){s.push(t);continue}let e=null,n=null;if(192==(224&t))e=1,n=127;else if(224==(240&t))e=2,n=2047;else{if(240!=(248&t)){o+=r(128==(192&t)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,i,s);continue}e=3,n=65535}if(o-1+e>=i.length){o+=r("OVERRUN",o-1,i,s);continue}let a=t&(1<<8-e-1)-1;for(let t=0;t1114111?o+=r("OUT_OF_RANGE",o-1-e,i,s,a):a>=55296&&a<=57343?o+=r("UTF16_SURROGATE",o-1-e,i,s,a):a<=n?o+=r("OVERLONG",o-1-e,i,s,a):s.push(a))}return s}function a(t,e){null!=e&&((0,i.assertNormalize)(e),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const s=t.charCodeAt(e);(0,i.assertArgument)(e>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}e.Utf8ErrorFuncs=Object.freeze({error:function(t,e,r,n,s){(0,i.assertArgument)(!1,`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:s,replace:function(t,e,r,n,o){return"OVERLONG"===t?((0,i.assertArgument)("number"==typeof o,"invalid bad code point for replacement","badCodepoint",o),n.push(o),0):(n.push(65533),s(t,e,r))}}),e.toUtf8Bytes=a,e.toUtf8String=function(t,e){return o(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")},e.toUtf8CodePoints=function(t,e){return o(a(t,e))}},4824:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uuidV4=void 0;const n=r(6239);e.uuidV4=function(t){const e=(0,n.getBytes)(t,"randomBytes");e[6]=15&e[6]|64,e[8]=63&e[8]|128;const r=(0,n.hexlify)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},5662:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseWallet=void 0;const n=r(5475),i=r(8336),s=r(4878),o=r(2290),a=r(2120);class c extends s.AbstractSigner{address;#Te;constructor(t,e){super(e),(0,a.assertArgument)(t&&"function"==typeof t.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#Te=t;const r=(0,o.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:r})}get signingKey(){return this.#Te}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(t){return new c(this.#Te,t)}async signTransaction(t){const{to:e,from:r}=await(0,a.resolveProperties)({to:t.to?(0,n.resolveAddress)(t.to,this.provider):void 0,from:t.from?(0,n.resolveAddress)(t.from,this.provider):void 0});null!=e&&(t.to=e),null!=r&&(t.from=r),null!=t.from&&((0,a.assertArgument)((0,n.getAddress)(t.from)===this.address,"transaction from address mismatch","tx.from",t.from),delete t.from);const i=o.Transaction.from(t);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(t){return this.signMessageSync(t)}signMessageSync(t){return this.signingKey.sign((0,i.hashMessage)(t)).serialized}async signTypedData(t,e,r){const n=await i.TypedDataEncoder.resolveNames(t,e,r,(async t=>{(0,a.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:t}});const e=await this.provider.resolveName(t);return(0,a.assert)(null!=e,"unconfigured ENS name","UNCONFIGURED_NAME",{value:t}),e}));return this.signingKey.sign(i.TypedDataEncoder.hash(n.domain,e,n.value)).serialized}}e.BaseWallet=c},483:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexedAccountPath=e.getAccountPath=e.HDNodeVoidWallet=e.HDNodeWallet=e.defaultPath=void 0;const n=r(6965),i=r(4878),s=r(2290),o=r(2120),a=r(847),c=r(5662),l=r(75),u=r(630);e.defaultPath="m/44'/60'/0'/0/0";const h=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function f(t,e){let r="";for(;t;)r="0123456789abcdef"[t%16]+r,t=Math.trunc(t/16);for(;r.length<2*e;)r="0"+r;return"0x"+r}function m(t){const e=(0,o.getBytes)(t),r=(0,o.dataSlice)((0,n.sha256)((0,n.sha256)(e)),0,4),i=(0,o.concat)([e,r]);return(0,o.encodeBase58)(i)}const g={};function y(t,e,r,i){const s=new Uint8Array(37);t&d?((0,o.assert)(null!=i,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),s.set((0,o.getBytes)(i),1)):s.set((0,o.getBytes)(r));for(let e=24;e>=0;e-=8)s[33+(e>>3)]=t>>24-e&255;const a=(0,o.getBytes)((0,n.computeHmac)("sha512",e,s));return{IL:a.slice(0,32),IR:a.slice(32)}}function w(t,e){const r=e.split("/");(0,o.assertArgument)(r.length>0&&("m"===r[0]||t.depth>0),"invalid path","path",e),"m"===r[0]&&r.shift();let n=t;for(let t=0;t=16&&r.length<=64,"invalid seed","seed","[REDACTED]");const i=(0,o.getBytes)((0,n.computeHmac)("sha512",h,r)),s=new n.SigningKey((0,o.hexlify)(i.slice(0,32)));return new b(g,s,"0x00000000",(0,o.hexlify)(i.slice(32)),"m",0,0,e,null)}static fromExtendedKey(t){const e=(0,o.toBeArray)((0,o.decodeBase58)(t));(0,o.assertArgument)(82===e.length||m(e.slice(0,78))===t,"invalid extended key","extendedKey","[ REDACTED ]");const r=e[4],i=(0,o.hexlify)(e.slice(5,9)),a=parseInt((0,o.hexlify)(e.slice(9,13)).substring(2),16),c=(0,o.hexlify)(e.slice(13,45)),l=e.slice(45,78);switch((0,o.hexlify)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const t=(0,o.hexlify)(l);return new v(g,(0,s.computeAddress)(t),t,i,c,null,a,r,null)}case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new b(g,new n.SigningKey(l.slice(1)),i,c,null,a,r,null,null)}(0,o.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(t,r,i){null==t&&(t=""),null==r&&(r=e.defaultPath),null==i&&(i=a.LangEn.wordlist());const s=l.Mnemonic.fromEntropy((0,n.randomBytes)(16),t,i);return b.#Re(s.computeSeed(),s).derivePath(r)}static fromMnemonic(t,r){return r||(r=e.defaultPath),b.#Re(t.computeSeed(),t).derivePath(r)}static fromPhrase(t,r,n,i){null==r&&(r=""),null==n&&(n=e.defaultPath),null==i&&(i=a.LangEn.wordlist());const s=l.Mnemonic.fromPhrase(t,r,i);return b.#Re(s.computeSeed(),s).derivePath(n)}static fromSeed(t){return b.#Re(t,null)}}e.HDNodeWallet=b;class v extends i.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(t,e,r,i,s,a,c,l,u){super(e,u),(0,o.assertPrivate)(t,g,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:r});const h=(0,o.dataSlice)((0,n.ripemd160)((0,n.sha256)(r)),0,4);(0,o.defineProperties)(this,{publicKey:r,fingerprint:h,parentFingerprint:i,chainCode:s,path:a,index:c,depth:l})}connect(t){return new v(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,t)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),m((0,o.concat)(["0x0488B21E",f(this.depth,1),this.parentFingerprint,f(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(t){const e=(0,o.getNumber)(t,"index");(0,o.assertArgument)(e<=4294967295,"invalid index","index",e);let r=this.path;r&&(r+="/"+(2147483647&e),e&d&&(r+="'"));const{IR:i,IL:a}=y(e,this.chainCode,this.publicKey,null),c=n.SigningKey.addPoints(a,this.publicKey,!0),l=(0,s.computeAddress)(c);return new v(g,l,c,this.fingerprint,(0,o.hexlify)(i),r,e,this.depth+1,this.provider)}derivePath(t){return w(this,t)}}e.HDNodeVoidWallet=v,e.getAccountPath=function(t){const e=(0,o.getNumber)(t,"index");return(0,o.assertArgument)(e>=0&&e=0&&e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=e.Mnemonic=e.encryptKeystoreJsonSync=e.encryptKeystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.isKeystoreJson=e.decryptCrowdsaleJson=e.isCrowdsaleJson=e.HDNodeVoidWallet=e.HDNodeWallet=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.BaseWallet=void 0;var n=r(5662);Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return n.BaseWallet}});var i=r(483);Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return i.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return i.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return i.getIndexedAccountPath}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return i.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return i.HDNodeVoidWallet}});var s=r(8668);Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return s.isCrowdsaleJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return s.decryptCrowdsaleJson}});var o=r(630);Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var a=r(75);Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return a.Mnemonic}});var c=r(6389);Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return c.Wallet}})},8668:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decryptCrowdsaleJson=e.isCrowdsaleJson=void 0;const n=r(4102),i=r(5475),s=r(6965),o=r(8336),a=r(2120),c=r(7668);e.isCrowdsaleJson=function(t){try{if(JSON.parse(t).encseed)return!0}catch(t){}return!1},e.decryptCrowdsaleJson=function(t,e){const r=JSON.parse(t),l=(0,c.getPassword)(e),u=(0,i.getAddress)((0,c.spelunk)(r,"ethaddr:string!")),h=(0,c.looseArrayify)((0,c.spelunk)(r,"encseed:string!"));(0,a.assertArgument)(h&&h.length%16==0,"invalid encseed","json",t);const d=(0,a.getBytes)((0,s.pbkdf2)(l,l,2e3,32,"sha256")).slice(0,16),p=h.slice(0,16),f=h.slice(16),m=new n.CBC(d,p),g=(0,n.pkcs7Strip)((0,a.getBytes)(m.decrypt(f)));let y="";for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encryptKeystoreJson=e.encryptKeystoreJsonSync=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.isKeystoreJson=void 0;const n=r(4102),i=r(5475),s=r(6965),o=r(2290),a=r(2120),c=r(7668),l=r(9406),u="m/44'/60'/0'/0/0";function h(t,e){const r=(0,a.getBytes)(e),l=(0,c.spelunk)(t,"crypto.ciphertext:data!"),h=(0,a.hexlify)((0,s.keccak256)((0,a.concat)([r.slice(16,32),l]))).substring(2);(0,a.assertArgument)(h===(0,c.spelunk)(t,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(t,e,r){if("aes-128-ctr"===(0,c.spelunk)(t,"crypto.cipher:string")){const i=(0,c.spelunk)(t,"crypto.cipherparams.iv:data!"),s=new n.CTR(e,i);return(0,a.hexlify)(s.decrypt(r))}(0,a.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(t,r.slice(0,16),l),p=(0,o.computeAddress)(d);if(t.address){let e=t.address.toLowerCase();e.startsWith("0x")||(e="0x"+e),(0,a.assertArgument)((0,i.getAddress)(e)===p,"keystore address/privateKey mismatch","address",t.address)}const f={address:p,privateKey:d};if("0.1"===(0,c.spelunk)(t,"x-ethers.version:string")){const e=r.slice(32,64),i=(0,c.spelunk)(t,"x-ethers.mnemonicCiphertext:data!"),s=(0,c.spelunk)(t,"x-ethers.mnemonicCounter:data!"),o=new n.CTR(e,s);f.mnemonic={path:(0,c.spelunk)(t,"x-ethers.path:string")||u,locale:(0,c.spelunk)(t,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(o.decrypt(i)))}}return f}function d(t){const e=(0,c.spelunk)(t,"crypto.kdf:string");if(e&&"string"==typeof e){if("scrypt"===e.toLowerCase()){const r=(0,c.spelunk)(t,"crypto.kdfparams.salt:data!"),n=(0,c.spelunk)(t,"crypto.kdfparams.n:int!"),i=(0,c.spelunk)(t,"crypto.kdfparams.r:int!"),s=(0,c.spelunk)(t,"crypto.kdfparams.p:int!");(0,a.assertArgument)(n>0&&0==(n&n-1),"invalid kdf.N","kdf.N",n),(0,a.assertArgument)(i>0&&s>0,"invalid kdf","kdf",e);const o=(0,c.spelunk)(t,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:i,p:s,dkLen:64}}if("pbkdf2"===e.toLowerCase()){const e=(0,c.spelunk)(t,"crypto.kdfparams.salt:data!"),r=(0,c.spelunk)(t,"crypto.kdfparams.prf:string!"),n=r.split("-").pop();(0,a.assertArgument)("sha256"===n||"sha512"===n,"invalid kdf.pdf","kdf.pdf",r);const i=(0,c.spelunk)(t,"crypto.kdfparams.c:int!"),s=(0,c.spelunk)(t,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===s,"invalid kdf.dklen","kdf.dklen",s),{name:"pbkdf2",salt:e,count:i,dkLen:s,algorithm:n}}}(0,a.assertArgument)(!1,"unsupported key-derivation function","kdf",e)}function p(t){return new Promise((e=>{setTimeout((()=>{e()}),t)}))}function f(t){const e=null!=t.salt?(0,a.getBytes)(t.salt,"options.salt"):(0,s.randomBytes)(32);let r=1<<17,n=8,i=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(i=t.scrypt.p)),(0,a.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),(0,a.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),(0,a.assertArgument)("number"==typeof i&&i>0&&Number.isSafeInteger(i),"invalid scrypt p parameter","options.p",i),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:i}}function m(t,e,r,i){const o=(0,a.getBytes)(r.privateKey,"privateKey"),h=null!=i.iv?(0,a.getBytes)(i.iv,"options.iv"):(0,s.randomBytes)(16);(0,a.assertArgument)(16===h.length,"invalid options.iv length","options.iv",i.iv);const d=null!=i.uuid?(0,a.getBytes)(i.uuid,"options.uuid"):(0,s.randomBytes)(16);(0,a.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",i.iv);const p=t.slice(0,16),f=t.slice(16,32),m=new n.CTR(p,h),g=(0,a.getBytes)(m.encrypt(o)),y=(0,s.keccak256)((0,a.concat)([f,g])),w={address:r.address.substring(2).toLowerCase(),id:(0,a.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(h).substring(2)},ciphertext:(0,a.hexlify)(g).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:y.substring(2)}};if(r.mnemonic){const e=null!=i.client?i.client:`ethers/${l.version}`,o=r.mnemonic.path||u,h=r.mnemonic.locale||"en",d=t.slice(32,64),p=(0,a.getBytes)(r.mnemonic.entropy,"account.mnemonic.entropy"),f=(0,s.randomBytes)(16),m=new n.CTR(d,f),g=(0,a.getBytes)(m.encrypt(p)),y=new Date,b="UTC--"+y.getUTCFullYear()+"-"+(0,c.zpad)(y.getUTCMonth()+1,2)+"-"+(0,c.zpad)(y.getUTCDate(),2)+"T"+(0,c.zpad)(y.getUTCHours(),2)+"-"+(0,c.zpad)(y.getUTCMinutes(),2)+"-"+(0,c.zpad)(y.getUTCSeconds(),2)+".0Z--"+w.address;w["x-ethers"]={client:e,gethFilename:b,path:o,locale:h,mnemonicCounter:(0,a.hexlify)(f).substring(2),mnemonicCiphertext:(0,a.hexlify)(g).substring(2),version:"0.1"}}return JSON.stringify(w)}e.isKeystoreJson=function(t){try{const e=JSON.parse(t);if(3===(null!=e.version?parseInt(e.version):0))return!0}catch(t){}return!1},e.decryptKeystoreJsonSync=function(t,e){const r=JSON.parse(t),n=(0,c.getPassword)(e),i=d(r);if("pbkdf2"===i.name){const{salt:t,count:e,dkLen:o,algorithm:a}=i;return h(r,(0,s.pbkdf2)(n,t,e,o,a))}(0,a.assert)("scrypt"===i.name,"cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:l,r:u,p,dkLen:f}=i;return h(r,(0,s.scryptSync)(n,o,l,u,p,f))},e.decryptKeystoreJson=async function(t,e,r){const n=JSON.parse(t),i=(0,c.getPassword)(e),o=d(n);if("pbkdf2"===o.name){r&&(r(0),await p(0));const{salt:t,count:e,dkLen:a,algorithm:c}=o,l=(0,s.pbkdf2)(i,t,e,a,c);return r&&(r(1),await p(0)),h(n,l)}(0,a.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:l,N:u,r:f,p:m,dkLen:g}=o;return h(n,await(0,s.scrypt)(i,l,u,f,m,g,r))},e.encryptKeystoreJsonSync=function(t,e,r){null==r&&(r={});const n=(0,c.getPassword)(e),i=f(r),o=(0,s.scryptSync)(n,i.salt,i.N,i.r,i.p,64);return m((0,a.getBytes)(o),i,t,r)},e.encryptKeystoreJson=async function(t,e,r){null==r&&(r={});const n=(0,c.getPassword)(e),i=f(r),o=await(0,s.scrypt)(n,i.salt,i.N,i.r,i.p,64,r.progressCallback);return m((0,a.getBytes)(o),i,t,r)}},75:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mnemonic=void 0;const n=r(6965),i=r(2120),s=r(847);function o(t){return(1<=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const a=new Uint8Array(Math.ceil(11*r.length/8));let c=0;for(let t=0;t=0,`invalid mnemonic word at index ${t}`,"mnemonic","[ REDACTED ]");for(let t=0;t<11;t++)n&1<<10-t&&(a[c>>3]|=1<<7-c%8),c++}const l=32*r.length/3,u=o(r.length/3),h=(0,i.getBytes)((0,n.sha256)(a.slice(0,l/8)))[0]&u;return(0,i.assertArgument)(h===(a[a.length-1]&u),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,i.hexlify)(a.slice(0,l/8))}function c(t,e){(0,i.assertArgument)(t.length%4==0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==e&&(e=s.LangEn.wordlist());const r=[0];let a=11;for(let e=0;e8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],a-=8):(r[r.length-1]<<=a,r[r.length-1]|=t[e]>>8-a,r.push(t[e]&(1<<8-a)-1&255),a+=3);const c=t.length/4,l=parseInt((0,n.sha256)(t).substring(2,4),16)&o(c);return r[r.length-1]<<=c,r[r.length-1]|=l>>8-c,e.join(r.map((t=>e.getWord(t))))}const l={};class u{phrase;password;wordlist;entropy;constructor(t,e,r,n,o){null==n&&(n=""),null==o&&(o=s.LangEn.wordlist()),(0,i.assertPrivate)(t,l,"Mnemonic"),(0,i.defineProperties)(this,{phrase:r,password:n,wordlist:o,entropy:e})}computeSeed(){const t=(0,i.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,n.pbkdf2)((0,i.toUtf8Bytes)(this.phrase,"NFKD"),t,2048,64,"sha512")}static fromPhrase(t,e,r){const n=a(t,r);return t=c((0,i.getBytes)(n),r),new u(l,n,t,e,r)}static fromEntropy(t,e,r){const n=(0,i.getBytes)(t,"entropy"),s=c(n,r);return new u(l,(0,i.hexlify)(n),s,e,r)}static entropyToPhrase(t,e){return c((0,i.getBytes)(t,"entropy"),e)}static phraseToEntropy(t,e){return a(t,e)}static isValidMnemonic(t,e){try{return a(t,e),!0}catch(t){}return!1}}e.Mnemonic=u},7668:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spelunk=e.getPassword=e.zpad=e.looseArrayify=void 0;const n=r(2120);function i(t){return"string"!=typeof t||t.startsWith("0x")||(t="0x"+t),(0,n.getBytesCopy)(t)}e.looseArrayify=i,e.zpad=function(t,e){for(t=String(t);t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=void 0;const n=r(6965),i=r(2120),s=r(5662),o=r(483),a=r(8668),c=r(630),l=r(75);function u(t){return new Promise((e=>{setTimeout((()=>{e()}),t)}))}class h extends s.BaseWallet{constructor(t,e){"string"!=typeof t||t.startsWith("0x")||(t="0x"+t),super("string"==typeof t?new n.SigningKey(t):t,e)}connect(t){return new h(this.signingKey,t)}async encrypt(t,e){const r={address:this.address,privateKey:this.privateKey};return await(0,c.encryptKeystoreJson)(r,t,{progressCallback:e})}encryptSync(t){const e={address:this.address,privateKey:this.privateKey};return(0,c.encryptKeystoreJsonSync)(e,t)}static#Be(t){if((0,i.assertArgument)(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&"en"===t.mnemonic.locale){const e=l.Mnemonic.fromEntropy(t.mnemonic.entropy),r=o.HDNodeWallet.fromMnemonic(e,t.mnemonic.path);if(r.address===t.address&&r.privateKey===t.privateKey)return r;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new h(t.privateKey);return(0,i.assertArgument)(e.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),e}static async fromEncryptedJson(t,e,r){let n=null;return(0,c.isKeystoreJson)(t)?n=await(0,c.decryptKeystoreJson)(t,e,r):(0,a.isCrowdsaleJson)(t)&&(r&&(r(0),await u(0)),n=(0,a.decryptCrowdsaleJson)(t,e),r&&(r(1),await u(0))),h.#Be(n)}static fromEncryptedJsonSync(t,e){let r=null;return(0,c.isKeystoreJson)(t)?r=(0,c.decryptKeystoreJsonSync)(t,e):(0,a.isCrowdsaleJson)(t)?r=(0,a.decryptCrowdsaleJson)(t,e):(0,i.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),h.#Be(r)}static createRandom(t){const e=o.HDNodeWallet.createRandom();return t?e.connect(t):e}static fromPhrase(t,e){const r=o.HDNodeWallet.fromPhrase(t);return e?r.connect(e):r}}e.Wallet=h},5033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBits=void 0,e.decodeBits=function(t,e){const r=(1<=t;){const e=i>>s-t;i&=(1<{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeOwl=e.decode=void 0;const n=r(2120),i=" !#$%&'()*+,-./<=>?@[]^_`{|}~",s=/^[a-z]*$/i;function o(t,e){let r=97;return t.reduce(((t,n)=>(n===e?r++:n.match(s)?t.push(String.fromCharCode(r)+n):(r=97,t.push(n)),t)),[])}function a(t,e){for(let r=i.length-1;r>=0;r--)t=t.split(i[r]).join(e.substring(2*r,2*r+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((t,e,n,i)=>{if(n)for(let t=parseInt(n);t>=0;t--)r.push(";");else r.push(e.toLowerCase());return""}));if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return o(o(r,";"),":")}e.decode=a,e.decodeOwl=function(t){return(0,n.assertArgument)("0"===t[0],"unsupported auwl data","data",t),a(t.substring(1+2*i.length),t.substring(1,1+2*i.length))}},4603:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeOwlA=void 0;const n=r(2120),i=r(5033),s=r(2629);e.decodeOwlA=function(t,e){let r=(0,s.decodeOwl)(t).join(",");return e.split(/,/g).forEach((t=>{const s=t.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,n.assertArgument)(null!==s,"internal error parsing accents","accents",e);let o=0;const a=(0,i.decodeBits)(parseInt(s[3]),s[4]),c=parseInt(s[2]),l=new RegExp(`([${s[1]}])`,"g");r=r.replace(l,((t,e)=>(0==--a[o]&&(e=String.fromCharCode(e.charCodeAt(0),c),o++),e)))})),r.split(",")}},659:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=void 0;var n=r(1208);Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var i=r(847);Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return i.LangEn}});var s=r(1978);Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return s.WordlistOwl}});var o=r(9766);Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var a=r(9669);Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return a.wordlists}})},847:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LangEn=void 0;const n=r(1978);let i=null;class s extends n.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==i&&(i=new s),i}}e.LangEn=s},1978:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordlistOwl=void 0;const n=r(8336),i=r(2120),s=r(2629),o=r(1208);class a extends o.Wordlist{#r;#je;constructor(t,e,r){super(t),this.#r=e,this.#je=r,this.#Le=null}get _data(){return this.#r}_decodeWords(){return(0,s.decodeOwl)(this.#r)}#Le;#Ue(){if(null==this.#Le){const t=this._decodeWords();if((0,n.id)(t.join("\n")+"\n")!==this.#je)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#Le=t}return this.#Le}getWord(t){const e=this.#Ue();return(0,i.assertArgument)(t>=0&&t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordlistOwlA=void 0;const n=r(1978),i=r(4603);class s extends n.WordlistOwl{#De;constructor(t,e,r,n){super(t,e,n),this.#De=r}get _accent(){return this.#De}_decodeWords(){return(0,i.decodeOwlA)(this._data,this._accent)}}e.WordlistOwlA=s},1208:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wordlist=void 0;const n=r(2120);e.Wordlist=class{locale;constructor(t){(0,n.defineProperties)(this,{locale:t})}split(t){return t.toLowerCase().split(/\s+/g)}join(t){return t.join(" ")}}},9669:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wordlists=void 0;const n=r(847);e.wordlists={en:n.LangEn.wordlist()}},9320:function(t,e){"use strict";var r,n,i,s=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},o=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r};Object.defineProperty(e,"__esModule",{value:!0}),e.AES=void 0;const a={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],p=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],f=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],b=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],v=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function _(t){const e=[];for(let r=0;r>2,s(this,i,"f")[p][t%4]=d[t],s(this,n,"f")[e-p][t%4]=d[t];let f,m=0,g=h;for(;g>16&255]<<24^l[f>>8&255]<<16^l[255&f]<<8^l[f>>24&255]^c[m]<<24,m+=1,8!=h)for(let t=1;t>8&255]<<8^l[f>>16&255]<<16^l[f>>24&255]<<24;for(let t=h/2+1;t>2,r=g%4,s(this,i,"f")[t][r]=d[o],s(this,n,"f")[e-t][r]=d[o++],g++}for(let t=1;t>24&255]^v[f>>16&255]^E[f>>8&255]^x[255&f]}encrypt(t){if(16!=t.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const e=s(this,i,"f").length-1,r=[0,0,0,0];let n=_(t);for(let t=0;t<4;t++)n[t]^=s(this,i,"f")[0][t];for(let t=1;t>24&255]^d[n[(e+1)%4]>>16&255]^p[n[(e+2)%4]>>8&255]^f[255&n[(e+3)%4]]^s(this,i,"f")[t][e];n=r.slice()}const o=new Uint8Array(16);let a=0;for(let t=0;t<4;t++)a=s(this,i,"f")[e][t],o[4*t]=255&(l[n[t]>>24&255]^a>>24),o[4*t+1]=255&(l[n[(t+1)%4]>>16&255]^a>>16),o[4*t+2]=255&(l[n[(t+2)%4]>>8&255]^a>>8),o[4*t+3]=255&(l[255&n[(t+3)%4]]^a);return o}decrypt(t){if(16!=t.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const e=s(this,n,"f").length-1,r=[0,0,0,0];let i=_(t);for(let t=0;t<4;t++)i[t]^=s(this,n,"f")[0][t];for(let t=1;t>24&255]^g[i[(e+3)%4]>>16&255]^y[i[(e+2)%4]>>8&255]^w[255&i[(e+1)%4]]^s(this,n,"f")[t][e];i=r.slice()}const o=new Uint8Array(16);let a=0;for(let t=0;t<4;t++)a=s(this,n,"f")[e][t],o[4*t]=255&(u[i[t]>>24&255]^a>>24),o[4*t+1]=255&(u[i[(t+3)%4]>>16&255]^a>>16),o[4*t+2]=255&(u[i[(t+2)%4]>>8&255]^a>>8),o[4*t+3]=255&(u[255&i[(t+1)%4]]^a);return o}}e.AES=A,r=new WeakMap,n=new WeakMap,i=new WeakMap},4102:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkcs7Strip=e.pkcs7Pad=e.OFB=e.ECB=e.CTR=e.CFB=e.CBC=e.ModeOfOperation=e.AES=void 0;var n=r(9320);Object.defineProperty(e,"AES",{enumerable:!0,get:function(){return n.AES}});var i=r(8122);Object.defineProperty(e,"ModeOfOperation",{enumerable:!0,get:function(){return i.ModeOfOperation}});var s=r(6504);Object.defineProperty(e,"CBC",{enumerable:!0,get:function(){return s.CBC}});var o=r(9104);Object.defineProperty(e,"CFB",{enumerable:!0,get:function(){return o.CFB}});var a=r(2814);Object.defineProperty(e,"CTR",{enumerable:!0,get:function(){return a.CTR}});var c=r(2810);Object.defineProperty(e,"ECB",{enumerable:!0,get:function(){return c.ECB}});var l=r(5505);Object.defineProperty(e,"OFB",{enumerable:!0,get:function(){return l.OFB}});var u=r(1682);Object.defineProperty(e,"pkcs7Pad",{enumerable:!0,get:function(){return u.pkcs7Pad}}),Object.defineProperty(e,"pkcs7Strip",{enumerable:!0,get:function(){return u.pkcs7Strip}})},6504:function(t,e,r){"use strict";var n,i,s=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},o=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};Object.defineProperty(e,"__esModule",{value:!0}),e.CBC=void 0;const a=r(8122);class c extends a.ModeOfOperation{constructor(t,e){if(super("ECC",t,c),n.set(this,void 0),i.set(this,void 0),e){if(e.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");s(this,n,new Uint8Array(e),"f")}else s(this,n,new Uint8Array(16),"f");s(this,i,this.iv,"f")}get iv(){return new Uint8Array(o(this,n,"f"))}encrypt(t){if(t.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(t.length);for(let r=0;rNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let e=15;e>=0;--e)a(this,s,"f")[e]=t%256,t=Math.floor(t/256)}setCounterBytes(t){if(16!==t.length)throw new TypeError("invalid counter initial Uint8Array value length");a(this,s,"f").set(t)}increment(){for(let t=15;t>=0;t--){if(255!==a(this,s,"f")[t]){a(this,s,"f")[t]++;break}a(this,s,"f")[t]=0}}encrypt(t){var e,r;const c=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ECB=void 0;const n=r(8122);class i extends n.ModeOfOperation{constructor(t){super("ECB",t,i)}encrypt(t){if(t.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(t.length);for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModeOfOperation=void 0;const n=r(9320);e.ModeOfOperation=class{constructor(t,e,r){if(r&&!(this instanceof r))throw new Error(`${t} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new n.AES(e)},name:{enumerable:!0,value:t}})}}},1682:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkcs7Strip=e.pkcs7Pad=void 0,e.pkcs7Pad=function(t){const e=16-t.length%16,r=new Uint8Array(t.length+e);r.set(t);for(let n=t.length;n16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n{"use strict";const n=r(5346);t.exports=o;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},s={mapHttpRequest:f,mapHttpResponse:f,wrapRequestSerializer:m,wrapResponseSerializer:m,wrapErrorSerializer:m,req:f,res:f,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const r in t)void 0===e[r]&&(e[r]=t[r]);return e}};function o(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const r=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const n=t.serializers||{},s=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,n);let c=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1),"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===t.enabled&&(t.level="silent");const h=t.level||"info",f=Object.create(r);f.log||(f.log=g),Object.defineProperty(f,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(f,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,a(m,f,"error","log"),a(m,f,"fatal","error"),a(m,f,"warn","error"),a(m,f,"info","log"),a(m,f,"debug","log"),a(m,f,"trace","log")}});const m={transmit:e,serialize:s,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:p(t)};return f.levels=o.levels,f.level=h,f.setMaxListeners=f.getMaxListeners=f.emit=f.addListener=f.on=f.prependListener=f.once=f.prependOnceListener=f.removeListener=f.removeAllListeners=f.listeners=f.listenerCount=f.eventNames=f.write=f.flush=g,f.serializers=n,f._serialize=s,f._stdErrSerialize=c,f.child=function(r,i){if(!r)throw new Error("missing bindings for child Pino");i=i||{},s&&r.serializers&&(i.serializers=r.serializers);const o=i.serializers;if(s&&o){var a=Object.assign({},n,o),c=!0===t.browser.serialize?Object.keys(a):s;delete r.serializers,l([r],c,a,this._stdErrSerialize)}function h(t){this._childLevel=1+(0|t._childLevel),this.error=u(t,r,"error"),this.fatal=u(t,r,"fatal"),this.warn=u(t,r,"warn"),this.info=u(t,r,"info"),this.debug=u(t,r,"debug"),this.trace=u(t,r,"trace"),a&&(this.serializers=a,this._serialize=c),e&&(this._logEvent=d([].concat(t._logEvent.bindings,r)))}return h.prototype=this,new h(this)},e&&(f._logEvent=d()),f}function a(t,e,r,n){const s=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?g:s[r]?s[r]:i[r]||i[n]||g,function(t,e,r){var n;(t.transmit||e[r]!==g)&&(e[r]=(n=e[r],function(){const s=t.timestamp(),a=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&n in r&&(t[i][n]=r[n](t[i][n]))}function u(t,e,r){return function(){const n=new Array(1+arguments.length);n[0]=e;for(var i=1;i{"use strict";r.r(e),r.d(e,{arbitrum:()=>n,arbitrumGoerli:()=>i,arbitrumNova:()=>s,aurora:()=>o,auroraTestnet:()=>a,avalanche:()=>c,avalancheFuji:()=>l,base:()=>u,baseGoerli:()=>h,bearNetworkChainMainnet:()=>d,bearNetworkChainTestnet:()=>p,boba:()=>f,bronos:()=>m,bronosTestnet:()=>g,bsc:()=>y,bscTestnet:()=>w,bxn:()=>b,bxnTestnet:()=>v,canto:()=>E,celo:()=>x,celoAlfajores:()=>_,celoCannoli:()=>A,classic:()=>k,confluxESpace:()=>S,cronos:()=>C,cronosTestnet:()=>M,crossbell:()=>I,dfk:()=>P,dogechain:()=>O,edgeware:()=>T,edgewareTestnet:()=>N,ekta:()=>D,ektaTestnet:()=>$,emerald:()=>R,eos:()=>B,eosTestnet:()=>j,evmos:()=>L,evmosTestnet:()=>U,ewc:()=>F,fantom:()=>z,fantomTestnet:()=>H,fibo:()=>W,filecoin:()=>q,filecoinCalibration:()=>V,filecoinHyperspace:()=>G,flare:()=>K,flareTestnet:()=>Z,foundry:()=>J,fuse:()=>Q,fuseSparknet:()=>Y,gnosis:()=>nt,gnosisChiado:()=>it,gobi:()=>et,goerli:()=>rt,haqqMainnet:()=>at,haqqTestedge2:()=>ct,hardhat:()=>st,harmonyOne:()=>ot,iotex:()=>X,iotexTestnet:()=>tt,klaytn:()=>lt,linea:()=>ut,lineaTestnet:()=>ht,localhost:()=>dt,mainnet:()=>pt,mantle:()=>ft,mantleTestnet:()=>mt,metis:()=>gt,metisGoerli:()=>yt,mev:()=>wt,mevTestnet:()=>bt,modeTestnet:()=>vt,moonbaseAlpha:()=>Et,moonbeam:()=>xt,moonriver:()=>_t,neonDevnet:()=>At,nexi:()=>kt,nexilix:()=>St,oasys:()=>Ct,okc:()=>Mt,optimism:()=>It,optimismGoerli:()=>Pt,polygon:()=>Ot,polygonMumbai:()=>Tt,polygonZkEvm:()=>Rt,polygonZkEvmTestnet:()=>Nt,pulsechain:()=>Bt,pulsechainV4:()=>jt,qMainnet:()=>Lt,qTestnet:()=>Ut,rollux:()=>Dt,rolluxTestnet:()=>$t,ronin:()=>Ft,saigon:()=>zt,sapphire:()=>qt,sapphireTestnet:()=>Vt,scrollSepolia:()=>Ht,scrollTestnet:()=>Wt,sepolia:()=>Gt,shardeumSphinx:()=>he,skaleBlockBrawlers:()=>Kt,skaleCalypso:()=>Zt,skaleCalypsoTestnet:()=>Jt,skaleChaosTestnet:()=>Qt,skaleCryptoBlades:()=>Yt,skaleCryptoColosseum:()=>Xt,skaleEuropa:()=>te,skaleEuropaTestnet:()=>ee,skaleExorde:()=>re,skaleHumanProtocol:()=>ne,skaleNebula:()=>ie,skaleNebulaTestnet:()=>se,skaleRazor:()=>oe,skaleTitan:()=>ae,skaleTitanTestnet:()=>ce,songbird:()=>le,songbirdTestnet:()=>ue,syscoin:()=>de,syscoinTestnet:()=>pe,taikoTestnetSepolia:()=>me,taraxa:()=>fe,taraxaTestnet:()=>ge,telos:()=>ye,telosTestnet:()=>we,thunderTestnet:()=>be,volta:()=>ve,wanchain:()=>Ee,wanchainTestnet:()=>xe,xdc:()=>_e,xdcTestnet:()=>Ae,zetachainAthensTestnet:()=>Me,zhejiang:()=>ke,zkSync:()=>Se,zkSyncTestnet:()=>Ce,zora:()=>Ie,zoraTestnet:()=>Pe});var n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},i={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0},s={id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}},o={id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}}},a={id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0},c={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},l={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0},u={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Base",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},h={id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Base Goerli",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0},d={id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}},p={id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0},f={id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}},m={id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}},g={id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0},y={id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},w={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},b={id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}},v={id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}},E={id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}},x={id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},_={id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},A={id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},k={id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}},S={id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"]},public:{http:["https://evm.confluxrpc.org"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}},C={id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}},M={id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0},I={id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xBB9759009cDaC82774EfC84D94cD9F7440f75Fcf",blockCreated:23499787}}},P={id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}},O={id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}},T={id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}},N={id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}},R={id:42262,name:"Oasis Emerald",network:"emerald",nativeCurrency:{decimals:18,name:"Oasis ROSE",symbol:"ROSE"},rpcUrls:{default:{http:["https://emerald.oasis.dev"],webSocket:["wss://emerald.oasis.dev/ws"]},public:{http:["https://emerald.oasis.dev"],webSocket:["wss://emerald.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.emerald.oasis.dev"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1481392}}},B={id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}},j={id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0},L={id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}},U={id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}},D={id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}},$={id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0},F={id:246,name:"Energy Web Chain",network:"ewc",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]},public:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"Energy Web Chain Explorer",url:"https://explorer.energyweb.org"}},contracts:{ensRegistry:{address:"0x0A6d64413c07E10E890220BBE1c49170080C6Ca0"}}},z={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},H={id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}},W={id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}},q={id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}},V={id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}},G={id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}},K={id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}},Z={id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0},J={id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}},Q={id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://fuse-mainnet.chainstacklabs.com"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}}},Y={id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}},X={id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}},tt={id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}},et={id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0},rt={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},nt={id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"]},public:{http:["https://rpc.gnosischain.com"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}},it={id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"]},public:{http:["https://rpc.chiadochain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}}},st={id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},ot={id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}},at={id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}},ct={id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}},lt={id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://cypress.fautor.app/archive"]},public:{http:["https://cypress.fautor.app/archive"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}}},ut={id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1},ht={id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0},dt={id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},pt={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},ft={id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}},mt={id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0},gt={id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}},yt={id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}},wt={id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}},bt={id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0},vt={id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},testnet:!0},Et={id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0},xt={id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1},_t={id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1},At={id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0},kt={id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}},St={id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}},Ct={id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}},Mt={id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}},It={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},Pt={id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},Ot={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},Tt={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},Nt={id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}},Rt={id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}},Bt={id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},jt={id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},Lt={id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}},Ut={id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0},Dt={id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}},$t={id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}},Ft={id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}},zt={id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0},Ht={id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"],webSocket:["wss://sepolia-rpc.scroll.io/ws"]},public:{http:["https://sepolia-rpc.scroll.io"],webSocket:["wss://sepolia-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},testnet:!0},Wt={id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0},qt={id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{decimals:18,name:"Oasis ROSE",symbol:"ROSE"},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}},Vt={id:23295,name:"Oasis Sapphire Testnet",network:"sapphireTestnet",nativeCurrency:{decimals:18,name:"Oasis TEST",symbol:"TEST"},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}}},Gt={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},Kt={id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}},Zt={id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}},Jt={id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0},Qt={id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0},Yt={id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}},Xt={id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}},te={id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}},ee={id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0},re={id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}},ne={id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}},ie={id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}},se={id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0},oe={id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}},ae={id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}},ce={id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0},le={id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}},ue={id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0},he={id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0},de={id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}},pe={id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}},fe={id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}},me={id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}},ge={id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0},ye={id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}},we={id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0},be={id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0},ve={id:73799,name:"Volta Chain",network:"volta",nativeCurrency:{name:"VT",symbol:"VT",decimals:18},rpcUrls:{default:{http:["https://volta-rpc.energyweb.org"]},public:{http:["https://volta-rpc.energyweb.org"]}},blockExplorers:{default:{name:"Volta Explorer",url:"https://volta-explorer.energyweb.org"}},contracts:{ensRegistry:{address:"0xd7CeF70Ba7efc2035256d828d5287e2D285CD1ac"}}},Ee={id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}},xe={id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0},_e={id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}},Ae={id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}},ke={id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0},Se={id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},Ce={id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},Me={id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0},Ie={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},Pe={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0}},9174:(t,e,r)=>{"use strict";r.d(e,{t0:()=>E,zv:()=>m,uA:()=>y,uc:()=>H,jb:()=>q,zb:()=>b,AV:()=>f,Ic:()=>Y,Vs:()=>tt}),Symbol();const n=Symbol(),i=Object.getPrototypeOf,s=new WeakMap,o=(t,e=!0)=>{s.set(t,e)},a=t=>"object"==typeof t&&null!==t,c=new WeakMap,l=new WeakSet,[u]=((t=Object.is,e=((t,e)=>new Proxy(t,e)),r=(t=>a(t)&&!l.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)),u=(t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),h=new WeakMap,d=((t,e,r=u)=>{const n=h.get(t);if((null==n?void 0:n[0])===e)return n[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return o(i,!0),h.set(t,[e,i]),Reflect.ownKeys(t).forEach((e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const n=Reflect.get(t,e),s={value:n,enumerable:!0,configurable:!0};if(l.has(n))o(n,!1);else if(n instanceof Promise)delete s.value,s.get=()=>r(n);else if(c.has(n)){const[t,e]=c.get(n);s.value=d(t,e(),r)}Object.defineProperty(i,e,s)})),Object.preventExtensions(i)}),p=new WeakMap,f=[1,1],m=(o=>{if(!a(o))throw new Error("object required");const u=p.get(o);if(u)return u;let h=f[0];const g=new Set,y=(t,e=++f[0])=>{h!==e&&(h=e,g.forEach((r=>r(t,e))))};let w=f[1];const b=t=>(e,r)=>{const n=[...e];n[1]=[t,...n[1]],y(n,r)},v=new Map,E=t=>{var e;const r=v.get(t);r&&(v.delete(t),null==(e=r[1])||e.call(r))},x=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),_=e(x,{deleteProperty(t,e){const r=Reflect.get(t,e);E(e);const n=Reflect.deleteProperty(t,e);return n&&y(["delete",[e],r]),n},set(e,o,u,h){const d=Reflect.has(e,o),f=Reflect.get(e,o,h);if(d&&(t(f,u)||p.has(u)&&t(f,p.get(u))))return!0;var w;E(o),a(u)&&(u=(t=>t&&(s.has(t)?s.get(t):i(t)===Object.prototype||i(t)===Array.prototype))(w=u)&&w[n]||null||u);let x=u;if(u instanceof Promise)u.then((t=>{u.status="fulfilled",u.value=t,y(["resolve",[o],t])})).catch((t=>{u.status="rejected",u.reason=t,y(["reject",[o],t])}));else{!c.has(u)&&r(u)&&(x=m(u));const t=!l.has(x)&&c.get(x);t&&((t,e)=>{if(v.has(t))throw new Error("prop listener already exists");if(g.size){const r=e[3](b(t));v.set(t,[e,r])}else v.set(t,[e])})(o,t)}return Reflect.set(e,o,x,h),y(["set",[o],u,f]),!0}});p.set(o,_);const A=[x,(t=++f[1])=>(w===t||g.size||(w=t,v.forEach((([e])=>{const r=e[1](t);r>h&&(h=r)}))),h),d,t=>(g.add(t),1===g.size&&v.forEach((([t,e],r)=>{if(e)throw new Error("remove already exists");const n=t[3](b(r));v.set(r,[t,n])})),()=>{g.delete(t),0===g.size&&v.forEach((([t,e],r)=>{e&&(e(),v.set(r,[t]))}))})];return c.set(_,A),Reflect.ownKeys(o).forEach((t=>{const e=Object.getOwnPropertyDescriptor(o,t);"value"in e&&(_[t]=o[t],delete e.value,delete e.writable),Object.defineProperty(x,t,e)})),_}))=>[m,c,l,t,e,r,u,h,d,p,f])();function h(t={}){return u(t)}function d(t,e,r){const n=c.get(t);let i;n||console.warn("Please use proxy object");const s=[],o=n[3];let a=!1;const l=o((t=>{s.push(t),r?e(s.splice(0)):i||(i=Promise.resolve().then((()=>{i=void 0,a&&e(s.splice(0))})))}));return a=!0,()=>{a=!1,l()}}const p=h({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),f={state:p,subscribe:t=>d(p,(()=>t(p))),push(t,e){t!==p.view&&(p.view=t,e&&(p.data=e),p.history.push(t))},reset(t){p.view=t,p.history=[t]},replace(t){p.history.length>1&&(p.history[p.history.length-1]=t,p.view=t)},goBack(){if(p.history.length>1){p.history.pop();const[t]=p.history.slice(-1);p.view=t}},setData(t){p.data=t}},m={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>m.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const t=navigator.userAgent.toLowerCase();return m.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),isArray:t=>Array.isArray(t)&&t.length>0,formatNativeUrl(t,e,r){if(m.isHttpUrl(t))return this.formatUniversalUrl(t,e,r);let n=t;return n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},formatUniversalUrl(t,e,r){if(!m.isHttpUrl(t))return this.formatNativeUrl(t,e,r);let n=t;return n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},wait:async t=>new Promise((e=>{setTimeout(e,t)})),openHref(t,e){window.open(t,e,"noreferrer noopener")},setWalletConnectDeepLink(t,e){try{localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(t){try{const[e]=t.split("?");localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(m.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var t;const e=null==(t=f.state.data)?void 0:t.Wallet;if(!e)throw new Error('Missing "Wallet" view data');return e}},g=h({enabled:typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),y={state:g,subscribe:t=>d(g.events,(()=>t(function(t,e){const r=c.get(t);r||console.warn("Please use proxy object");const[n,i,s]=r;return s(n,i(),void 0)}(g.events[g.events.length-1])))),initialize(){g.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(g.userSessionId=crypto.randomUUID())},setConnectedWalletId(t){g.connectedWalletId=t},click(t){if(g.enabled){const e={type:"CLICK",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}},track(t){if(g.enabled){const e={type:"TRACK",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}},view(t){if(g.enabled){const e={type:"VIEW",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}}},w=h({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),b={state:w,subscribe:t=>d(w,(()=>t(w))),setChains(t){w.chains=t},setWalletConnectUri(t){w.walletConnectUri=t},setIsCustomDesktop(t){w.isCustomDesktop=t},setIsCustomMobile(t){w.isCustomMobile=t},setIsDataLoaded(t){w.isDataLoaded=t},setIsUiLoaded(t){w.isUiLoaded=t},setIsAuth(t){w.isAuth=t}},v=h({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),E={state:v,subscribe:t=>d(v,(()=>t(v))),setConfig(t){var e,r;y.initialize(),b.setChains(t.chains),b.setIsAuth(Boolean(t.enableAuthMode)),b.setIsCustomMobile(Boolean(null==(e=t.mobileWallets)?void 0:e.length)),b.setIsCustomDesktop(Boolean(null==(r=t.desktopWallets)?void 0:r.length)),m.setModalVersionInStorage(),Object.assign(v,t)}};var x=Object.defineProperty,_=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,S=(t,e,r)=>e in t?x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const C="https://explorer-api.walletconnect.com",M="wcm",I="js-2.6.2";async function P(t,e){const r=((t,e)=>{for(var r in e||(e={}))A.call(e,r)&&S(t,r,e[r]);if(_)for(var r of _(e))k.call(e,r)&&S(t,r,e[r]);return t})({sdkType:M,sdkVersion:I},e),n=new URL(t,C);return n.searchParams.append("projectId",E.state.projectId),Object.entries(r).forEach((([t,e])=>{e&&n.searchParams.append(t,String(e))})),(await fetch(n)).json()}const O=async t=>P("/w3m/v1/getDesktopListings",t),T=async t=>P("/w3m/v1/getMobileListings",t),N=async t=>P("/w3m/v1/getAllListings",t),R=t=>`${C}/w3m/v1/getWalletImage/${t}?projectId=${E.state.projectId}&sdkType=${M}&sdkVersion=${I}`,B=t=>`${C}/w3m/v1/getAssetImage/${t}?projectId=${E.state.projectId}&sdkType=${M}&sdkVersion=${I}`;var j=Object.defineProperty,L=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,$=(t,e,r)=>e in t?j(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const F=m.isMobile(),z=h({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),H={state:z,async getRecomendedWallets(){const{explorerRecommendedWalletIds:t,explorerExcludedWalletIds:e}=E.state;if("NONE"===t||"ALL"===e&&!t)return z.recomendedWallets;if(m.isArray(t)){const e={recommendedIds:t.join(",")},{listings:r}=await N(e),n=Object.values(r);n.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id))),z.recomendedWallets=n}else{const{chains:t,isAuth:r}=b.state,n=t?.join(","),i=m.isArray(e),s={page:1,sdks:r?"auth_v1":void 0,entries:m.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:i?e.join(","):void 0},{listings:o}=F?await T(s):await O(s);z.recomendedWallets=Object.values(o)}return z.recomendedWallets},async getWallets(t){const e=((t,e)=>{for(var r in e||(e={}))U.call(e,r)&&$(t,r,e[r]);if(L)for(var r of L(e))D.call(e,r)&&$(t,r,e[r]);return t})({},t),{explorerRecommendedWalletIds:r,explorerExcludedWalletIds:n}=E.state,{recomendedWallets:i}=z;if("ALL"===n)return z.wallets;i.length?e.excludedIds=i.map((t=>t.id)).join(","):m.isArray(r)&&(e.excludedIds=r.join(",")),m.isArray(n)&&(e.excludedIds=[e.excludedIds,n].filter(Boolean).join(",")),b.state.isAuth&&(e.sdks="auth_v1");const{page:s,search:o}=t,{listings:a,total:c}=F?await T(e):await O(e),l=Object.values(a),u=o?"search":"wallets";return z[u]={listings:[...z[u].listings,...l],total:c,page:s??1},{listings:l,total:c}},getWalletImageUrl:t=>R(t),getAssetImageUrl:t=>B(t),resetSearch(){z.search={listings:[],total:0,page:1}}},W=h({open:!1}),q={state:W,subscribe:t=>d(W,(()=>t(W))),open:async t=>new Promise((e=>{const{isUiLoaded:r,isDataLoaded:n}=b.state;if(m.removeWalletConnectDeepLink(),b.setWalletConnectUri(t?.uri),b.setChains(t?.chains),f.reset("ConnectWallet"),r&&n)W.open=!0,e();else{const t=setInterval((()=>{const r=b.state;r.isUiLoaded&&r.isDataLoaded&&(clearInterval(t),W.open=!0,e())}),200)}})),close(){W.open=!1}};var V=Object.defineProperty,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,J=(t,e,r)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const Q=h({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),Y={state:Q,subscribe:t=>d(Q,(()=>t(Q))),setThemeConfig(t){const{themeMode:e,themeVariables:r}=t;e&&(Q.themeMode=e),r&&(Q.themeVariables=((t,e)=>{for(var r in e||(e={}))K.call(e,r)&&J(t,r,e[r]);if(G)for(var r of G(e))Z.call(e,r)&&J(t,r,e[r]);return t})({},r))}},X=h({open:!1,message:"",variant:"success"}),tt={state:X,subscribe:t=>d(X,(()=>t(X))),openToast(t,e){X.open=!0,X.message=t,X.variant=e},closeToast(){X.open=!1}}},663:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WcmModal:()=>un,WcmQrCode:()=>gr});const n=window,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t;var u;const h=window,d=h.trustedTypes,p=d?d.emptyScript:"",f=h.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:g},w="finalized";class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const n=this._$Ep(r,e);void 0!==n&&(this._$Ev.set(n,r),t.push(n))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,r,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty(w))return!1;this[w]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),i=n.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var n;const i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){const s=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:m).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,e){var r;const n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=n.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:m;this._$El=i,this[i]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let n=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var v;b[w]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:b}),(null!==(u=h.reactiveElementVersions)&&void 0!==u?u:h.reactiveElementVersions=[]).push("1.6.3");const E=window,x=E.trustedTypes,_=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,M=document,I=()=>M.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,T="[ \t\n\f\r]",N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,B=/>/g,j=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),L=/'/g,U=/"/g,D=/^(?:script|style|textarea|title)$/i,$=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),F=$(1),z=$(2),H=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),q=new WeakMap,V=M.createTreeWalker(M,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}const K=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=N;for(let e=0;e"===c[0]?(o=null!=i?i:N,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?j:'"'===c[3]?U:L):o===U||o===L?o=j:o===R||o===B?o=N:(o=j,i=void 0);const h=o===j&&t[e+1].startsWith("/>")?" ":"";s+=o===N?r+C:l>=0?(n.push(a),r.slice(0,l)+A+r.slice(l)+k+h):r+k+(-2===l?(n.push(void 0),e):h)}return[G(t,s+(t[r]||"")+(2===e?"":"")),n]};class Z{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=K(t,e);if(this.el=Z.createElement(c,r),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=V.nextNode())&&a.length0){n.textContent=x?x.emptyScript:"";for(let r=0;rO(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==W&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Z.createElement(G(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(r);else{const t=new Q(i,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new Z(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new Y(this.k(I()),this.k(I()),this,this.options)):r=e[n],r._$AI(i),n++;n2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=J(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{var n,i;const s=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:e;let o=s._$litPart$;if(void 0===o){const t=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;s._$litPart$=o=new Y(e.insertBefore(I(),t),t,void 0,null!=r?r:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}ct.finalized=!0,ct._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ct});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:ct}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.3.3");const ut=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.define(t,e)}}})(t,e),ht=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function dt(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):ht(t,e)}function pt(t){return dt({...t,state:!0})}var ft;null===(ft=window.HTMLSlotElement)||void 0===ft||ft.prototype.assignedElements;class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const gt=(yt=class extends mt{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const i=t.element.classList;this.it.forEach((t=>{t in e||(i.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(r?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return H}},(...t)=>({_$litDirective$:yt,values:t}));var yt,wt=r(9174);const bt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},vt=t=>1e3*t,Et=()=>{},xt=t=>t;function _t(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}const At=t=>t(),kt=(t,e,r=bt.duration)=>new Proxy({animations:t.map(At).filter(Boolean),duration:r,options:e},St),St={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return((null==r?void 0:r[e])||0)/1e3;case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Ct)).catch(Et)),t.finished;case"stop":return()=>{t.animations.forEach((t=>_t(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=vt(r);case"playbackRate":for(let n=0;nt.finished,Mt=t=>"object"==typeof t&&Boolean(t.createAnimation),It=t=>"number"==typeof t,Pt=t=>Array.isArray(t)&&!It(t[0]),Ot=(t,e,r)=>-r*t+r*e+t,Tt=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Nt(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Tt(0,e,n);t.push(Ot(r,1,i))}}const Rt=(t,e,r)=>Math.min(Math.max(r,t),e);const Bt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function jt(t,e,r,n){if(t===e&&r===n)return xt;return i=>0===i||1===i?i:Bt(function(t,e,r,n,i){let s,o,a=0;do{o=e+(r-e)/2,s=Bt(o,n,i)-t,s>0?r=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,t,r),e,n)}const Lt=t=>"function"==typeof t,Ut=t=>Array.isArray(t)&&It(t[0]),Dt={ease:jt(.25,.1,.25,1),"ease-in":jt(.42,0,1,1),"ease-in-out":jt(.42,0,.58,1),"ease-out":jt(0,0,.58,1)},$t=/\((.*?)\)/;function Ft(t){if(Lt(t))return t;if(Ut(t))return jt(...t);if(Dt[t])return Dt[t];if(t.startsWith("steps")){const e=$t.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const n=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,i="end"===e?Math.floor(n):Math.ceil(n);return Rt(0,1,i/t)})(parseFloat(t[0]),t[1].trim())}}return xt}class zt{constructor(t,e=[0,1],{easing:r,duration:n=bt.duration,delay:i=bt.delay,endDelay:s=bt.endDelay,repeat:o=bt.repeat,offset:a,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=xt,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||bt.easing,Mt(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,n=t.duration||n}this.repeat=o,this.easing=Pt(r)?xt:Ft(r),this.updateDuration(n);const l=function(t,e=function(t){const e=[0];return Nt(e,t-1),e}(t.length),r=xt){const n=t.length,i=n-e.length;return i>0&&Nt(e,i),i=>{let s=0;for(;s{const n=e-0;return((r-0)%n+n)%n+0})(0,t.length,e)]:t}(r,s);return o=a(o),Ot(t[s],t[s+1],o)}}(e,a,Pt(r)?r.map(Ft):xt);this.tick=e=>{var r;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);const o=n/this.duration;let a=Math.floor(o),u=o%1;!u&&o>=1&&(u=1),1===u&&a--;const h=a%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(u=1-u);const d=n>=this.totalDuration?1:Math.min(u,1),p=l(this.easing(d));t(p),void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+s)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,p)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Ht{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const Wt=new WeakMap;function qt(t){return Wt.has(t)||Wt.set(t,{transforms:[],values:new Map}),Wt.get(t)}const Vt=["","X","Y","Z"],Gt={x:"translateX",y:"translateY",z:"translateZ"},Kt={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Zt={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Kt,scale:{syntax:"",initialValue:1,toDefaultUnit:xt},skew:Kt},Jt=new Map,Qt=t=>`--motion-${t}`,Yt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Vt.forEach((e=>{Yt.push(t+e),Jt.set(Qt(t+e),Zt[t])}))}));const Xt=(t,e)=>Yt.indexOf(t)-Yt.indexOf(e),te=new Set(Yt),ee=t=>te.has(t),re=(t,e)=>`${t} ${e}(var(${Qt(e)}))`,ne=t=>t.startsWith("--"),ie=new Set,se=(t,e)=>document.createElement("div").animate(t,e),oe={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{se({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(se({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{se({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},ae={},ce={};for(const t in oe)ce[t]=()=>(void 0===ae[t]&&(ae[t]=oe[t]()),ae[t]);const le=(t,e)=>Lt(t)?ce.linearEasing()?`linear(${((t,e)=>{let r="";const n=Math.round(e/.015);for(let e=0;e`cubic-bezier(${t}, ${e}, ${r}, ${n})`;function he(t){return Gt[t]&&(t=Gt[t]),ee(t)?Qt(t):t}const de=(t,e,r)=>{e=he(e),ne(e)?t.style.setProperty(e,r):t.style[e]=r};function pe(t,e,r,n={},i){const s=window.__MOTION_DEV_TOOLS_RECORD,o=!1!==n.record&&s;let a,{duration:c=bt.duration,delay:l=bt.delay,endDelay:u=bt.endDelay,repeat:h=bt.repeat,easing:d=bt.easing,persist:p=!1,direction:f,offset:m,allowWebkitAcceleration:g=!1}=n;const y=qt(t),w=ee(e);let b=ce.waapi();w&&((t,e)=>{Gt[e]&&(e=Gt[e]);const{transforms:r}=qt(t);var n,i;i=e,-1===(n=r).indexOf(i)&&n.push(i),t.style.transform=(t=>t.sort(Xt).reduce(re,"").trim())(r)})(t,e);const v=he(e),E=function(t,e){return t.has(e)||t.set(e,new Ht),t.get(e)}(y.values,v),x=Jt.get(v);return _t(E.animation,!(Mt(d)&&E.generator)&&!1!==n.record),()=>{const y=()=>{var e,r;return null!==(r=null!==(e=((t,e)=>{e=he(e);let r=ne(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Jt.get(e);t&&(r=t.initialValue)}return r})(t,v))&&void 0!==e?e:null==x?void 0:x.initialValue)&&void 0!==r?r:0};let _=function(t,e){for(let r=0;rArray.isArray(t)?t:[t])(r),y);const A=function(t,e){var r;let n=(null==e?void 0:e.toDefaultUnit)||xt;const i=t[t.length-1];if("string"==typeof i){const t=(null===(r=i.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(n=e=>e+t)}return n}(_,x);if(Mt(d)){const t=d.createAnimation(_,"opacity"!==e,y,v,E);d=t.easing,_=t.keyframes||_,c=t.duration||c}if(ne(v)&&(ce.cssRegisterProperty()?function(t){if(!ie.has(t)){ie.add(t);try{const{syntax:e,initialValue:r}=Jt.has(t)?Jt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(v):b=!1),w&&!ce.linearEasing()&&(Lt(d)||Pt(d)&&d.some(Lt))&&(b=!1),b){x&&(_=_.map((t=>It(t)?x.toDefaultUnit(t):t))),1!==_.length||ce.partialKeyframes()&&!o||_.unshift(y());const e={delay:vt(l),duration:vt(c),endDelay:vt(u),easing:Pt(d)?void 0:le(d,c),direction:f,iterations:h+1,fill:"both"};a=t.animate({[v]:_,offset:m,easing:Pt(d)?d.map((t=>le(t,c))):void 0},e),a.finished||(a.finished=new Promise(((t,e)=>{a.onfinish=t,a.oncancel=e})));const r=_[_.length-1];a.finished.then((()=>{p||(de(t,v,r),a.cancel())})).catch(Et),g||(a.playbackRate=1.000001)}else if(i&&w)_=_.map((t=>"string"==typeof t?parseFloat(t):t)),1===_.length&&_.unshift(parseFloat(y())),a=new i((e=>{de(t,v,A?A(e):e)}),_,Object.assign(Object.assign({},n),{duration:c,easing:d}));else{const e=_[_.length-1];de(t,v,x&&It(e)?x.toDefaultUnit(e):e)}return o&&s(t,e,_,{duration:c,delay:l,easing:d,repeat:h,offset:m},"motion-one"),E.setAnimation(a),a}}const fe=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function me(t,e,r){return Lt(t)?t(e,r):t}const ge=(ye=zt,function(t,e,r={}){const n=(t=function(t,e){return"string"==typeof t?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Boolean(n),Boolean(e);const i=[];for(let s=0;s{const r=new zt(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function be(t,e,r){return(Lt(t)?we:ge)(t,e,r)}const ve=t=>null!=t?t:W;var Ee=r(2592),xe=Object.defineProperty,_e=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Se=(t,e,r)=>e in t?xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ce=(t,e)=>{for(var r in e||(e={}))Ae.call(e,r)&&Se(t,r,e[r]);if(_e)for(var r of _e(e))ke.call(e,r)&&Se(t,r,e[r]);return t};const Me={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=wt.Ic.state;if(t){const r=Ce(Ce(Ce({},function(){var t;const e={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(t=wt.Ic.state.themeMode)?t:"dark"];return{"--wcm-color-fg-1":e.foreground[1],"--wcm-color-fg-2":e.foreground[2],"--wcm-color-fg-3":e.foreground[3],"--wcm-color-bg-1":e.background[1],"--wcm-color-bg-2":e.background[2],"--wcm-color-bg-3":e.background[3],"--wcm-color-overlay":e.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),e);Object.entries(r).forEach((([e,r])=>t.style.setProperty(e,r)))}},globalCss:c`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Ie=c`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Te=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Oe(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Pe(e,r,s),s};let Ne=class extends ct{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),F``}};Ne.styles=[Me.globalCss,Ie],Te([dt({type:Boolean})],Ne.prototype,"disabled",2),Te([dt()],Ne.prototype,"iconLeft",2),Te([dt()],Ne.prototype,"iconRight",2),Te([dt()],Ne.prototype,"onClick",2),Te([dt()],Ne.prototype,"variant",2),Ne=Te([ut("wcm-button")],Ne);const Re=c`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var Be=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Le=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?je(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Be(e,r,s),s};let Ue=class extends ct{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return F``}};Ue.styles=[Me.globalCss,Re],Le([dt({type:Boolean})],Ue.prototype,"disabled",2),Le([dt()],Ue.prototype,"variant",2),Ue=Le([ut("wcm-button-big")],Ue);const De=c`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let $e=class extends ct{render(){return F`
    `}};$e.styles=[Me.globalCss,De],$e=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-info-footer")],$e);const Fe={CROSS_ICON:z``,WALLET_CONNECT_LOGO:z``,WALLET_CONNECT_ICON:z``,WALLET_CONNECT_ICON_COLORED:z``,BACK_ICON:z``,COPY_ICON:z``,RETRY_ICON:z``,DESKTOP_ICON:z``,MOBILE_ICON:z``,ARROW_DOWN_ICON:z``,ARROW_UP_RIGHT_ICON:z``,ARROW_RIGHT_ICON:z``,QRCODE_ICON:z``,SCAN_ICON:z``,CHECKMARK_ICON:z``,SEARCH_ICON:z``,WALLET_PLACEHOLDER:z``,GLOBE_ICON:z``},ze=c`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let He=class extends ct{render(){return F`
    ${Fe.WALLET_CONNECT_LOGO}
    `}};He.styles=[Me.globalCss,ze],He=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-backcard")],He);const We=c`main{padding:20px;padding-top:0;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let qe=class extends ct{render(){return F`
    `}};qe.styles=[Me.globalCss,We],qe=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-content")],qe);const Ve=c`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ge=class extends ct{render(){return F`
    `}};Ge.styles=[Me.globalCss,Ve],Ge=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-footer")],Ge);const Ke=c`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var Ze=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Qe=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Je(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ze(e,r,s),s};let Ye=class extends ct{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return F``}actionBtnTemplate(){return F``}render(){const t={"wcm-border":this.border},e=wt.AV.state.history.length>1,r=this.title?F`${this.title}`:F``;return F`
    ${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
    `}};Ye.styles=[Me.globalCss,Ke],Qe([dt()],Ye.prototype,"title",2),Qe([dt()],Ye.prototype,"onAction",2),Qe([dt()],Ye.prototype,"actionIcon",2),Qe([dt({type:Boolean})],Ye.prototype,"border",2),Ye=Qe([ut("wcm-modal-header")],Ye);const Xe={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=wt.t0.state;return null!=r&&r[t]?r[t]:e?wt.uc.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Xe.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,wt.zv.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=wt.zb.state,{mobile:r,name:n}=t,i=r?.native,s=r?.universal;Xe.setRecentWallet(t),e&&function(t){let e="";i?e=wt.zv.formatUniversalUrl(i,t,n):s&&(e=wt.zv.formatNativeUrl(s,t,n)),wt.zv.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=wt.zb.state;t&&(wt.zv.setWalletConnectAndroidDeepLink(t),wt.zv.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=wt.zb.state;if(t)try{await navigator.clipboard.writeText(t),wt.Vs.openToast("Link copied","success")}catch{wt.Vs.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=wt.t0.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Xe.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Xe.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){wt.zv.openHref(Xe.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=wt.zv.getWalletRouterData(),r=Boolean(t?.native),n=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:n}},goToConnectingView(t){wt.AV.setData({Wallet:t});const e=wt.zv.isMobile(),{isDesktop:r,isWeb:n,isMobile:i}=Xe.getCachedRouterWalletPlatforms();e?i?wt.AV.push("MobileConnecting"):n?wt.AV.push("WebConnecting"):wt.AV.push("InstallWallet"):r?wt.AV.push("DesktopConnecting"):n?wt.AV.push("WebConnecting"):i?wt.AV.push("MobileQrcodeConnecting"):wt.AV.push("InstallWallet")}},tr=c`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var er=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,nr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?rr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&er(e,r,s),s};let ir=class extends ct{constructor(){super(),this.view=wt.AV.state.view,this.prevView=wt.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=wt.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&be(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Xe.getShadowRootElement(this,".wcm-router")}get contentEl(){return Xe.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return F``;case"DesktopConnecting":return F``;case"MobileConnecting":return F``;case"WebConnecting":return F``;case"MobileQrcodeConnecting":return F``;case"WalletExplorer":return F``;case"Qrcode":return F``;case"InstallWallet":return F``;default:return F`
    Not Found
    `}}async onChangeRoute(){await be(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=wt.AV.state.view,be(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return F`
    ${this.viewTemplate()}
    `}};ir.styles=[Me.globalCss,tr],nr([pt()],ir.prototype,"view",2),nr([pt()],ir.prototype,"prevView",2),ir=nr([ut("wcm-modal-router")],ir);const sr=c`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,cr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?ar(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&or(e,r,s),s};let lr=class extends ct{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=wt.Vs.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>wt.Vs.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),wt.Vs.closeToast()}render(){const{message:t,variant:e}=wt.Vs.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?F`
    ${"success"===e?Fe.CHECKMARK_ICON:null} ${"error"===e?Fe.CROSS_ICON:null}${t}
    `:null}};function ur(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}lr.styles=[Me.globalCss,sr],cr([pt()],lr.prototype,"open",2),lr=cr([ut("wcm-modal-toast")],lr);const hr={generate(t,e,r){const n="#141414",i=[],s=function(t,e){const r=Array.prototype.slice.call(Ee.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e;for(let t=0;t`)}}));const c=Math.floor((r+25)/o),l=s.length/2-c/2,u=s.length/2+c/2-1,h=[];s.forEach(((t,e)=>{t.forEach(((t,r)=>{if(s[e][r]&&!(e<7&&r<7||e>s.length-8&&r<7||e<7&&r>s.length-8)&&!(e>l&&el&&r{d[t]?d[t].push(e):d[t]=[e]})),Object.entries(d).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!ur(t,e,o)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{i.push(z``)}))})),Object.entries(d).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>ur(t,e,o)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>te.some((e=>ur(t,e,o)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{i.push(z``)}))})),i}},dr=c`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var pr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,mr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?fr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&pr(e,r,s),s};let gr=class extends ct{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t="light"===wt.Ic.state.themeMode?this.size:this.size-36;return z`${hr.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":"dark"===wt.Ic.state.themeMode};return F`
    ${this.walletId||this.imageUrl?F``:Fe.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
    `}};gr.styles=[Me.globalCss,dr],mr([dt()],gr.prototype,"uri",2),mr([dt({type:Number})],gr.prototype,"size",2),mr([dt()],gr.prototype,"imageId",2),mr([dt()],gr.prototype,"walletId",2),mr([dt()],gr.prototype,"imageUrl",2),gr=mr([ut("wcm-qrcode")],gr);const yr=c`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var wr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?br(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&wr(e,r,s),s};let Er=class extends ct{constructor(){super(...arguments),this.onChange=()=>null}render(){return F` ${Fe.SEARCH_ICON}`}};Er.styles=[Me.globalCss,yr],vr([dt()],Er.prototype,"onChange",2),Er=vr([ut("wcm-search-input")],Er);const xr=c`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let _r=class extends ct{render(){return F``}};_r.styles=[Me.globalCss,xr],_r=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-spinner")],_r);const Ar=c`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var kr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,Cr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Sr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&kr(e,r,s),s};let Mr=class extends ct{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return F``}};Mr.styles=[Me.globalCss,Ar],Cr([dt()],Mr.prototype,"variant",2),Cr([dt()],Mr.prototype,"color",2),Mr=Cr([ut("wcm-text")],Mr);const Ir=c`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Pr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,Tr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Or(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Pr(e,r,s),s};let Nr=class extends ct{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?F`RECENT`:this.installed?F`INSTALLED`:null}handleClick(){wt.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return F``}};Nr.styles=[Me.globalCss,Ir],Tr([dt()],Nr.prototype,"onClick",2),Tr([dt()],Nr.prototype,"name",2),Tr([dt()],Nr.prototype,"walletId",2),Tr([dt()],Nr.prototype,"label",2),Tr([dt()],Nr.prototype,"imageId",2),Tr([dt({type:Boolean})],Nr.prototype,"installed",2),Tr([dt({type:Boolean})],Nr.prototype,"recent",2),Nr=Tr([ut("wcm-wallet-button")],Nr);const Rr=c`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Br=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Lr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?jr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Br(e,r,s),s};let Ur=class extends ct{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Xe.getWalletIcon({id:this.walletId,image_id:this.imageId});return F`${e.length?F`
    ${this.id}
    `:Fe.WALLET_PLACEHOLDER}`}};Ur.styles=[Me.globalCss,Rr],Lr([dt()],Ur.prototype,"walletId",2),Lr([dt()],Ur.prototype,"imageId",2),Lr([dt()],Ur.prototype,"imageUrl",2),Ur=Lr([ut("wcm-wallet-image")],Ur);var Dr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Fr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?$r(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Dr(e,r,s),s};let zr=class extends ct{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Xe.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(wt.t0.state.enableExplorer){await wt.uc.getRecomendedWallets(),wt.zb.setIsDataLoaded(!0);const{recomendedWallets:t}=wt.uc.state,e=t.map((t=>Xe.getWalletIcon(t)));await this.loadImages(e)}else wt.zb.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Xe.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),wt.Vs.openToast("Failed preloading","error")}}};Fr([pt()],zr.prototype,"preload",2),zr=Fr([ut("wcm-explorer-context")],zr);Object.defineProperty,Object.getOwnPropertyDescriptor;let Hr=class extends ct{constructor(){super(),this.unsubscribeTheme=void 0,Me.setTheme(),this.unsubscribeTheme=wt.Ic.subscribe(Me.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};Hr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-theme-context")],Hr);const Wr=c`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let qr=class extends ct{onGoToQrcode(){wt.AV.push("Qrcode")}render(){const{recomendedWallets:t}=wt.uc.state,e=[...t,...t],r=2*wt.zv.RECOMMENDED_WALLET_AMOUNT;return F`
    ${Fe.MOBILE_ICON}WalletConnect
    ${[...Array(r)].map(((t,r)=>{const n=e[r%e.length];return n?F``:Fe.WALLET_PLACEHOLDER}))}
    Select Wallet
    Choose WalletConnect to see supported apps on your device`}};qr.styles=[Me.globalCss,Wr],qr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-android-wallet-selection")],qr);const Vr=c`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Gr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Zr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Kr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Gr(e,r,s),s};let Jr=class extends ct{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=null!=(e=null==(t=wt.Ic.state.themeVariables)?void 0:t["--wcm-wallet-icon-large-border-radius"])?e:Me.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;return n=r.includes("%")?.88*parseInt(r,10):parseInt(r,10),n*=1.17,F``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return F`
    ${this.svgLoaderTemplate()}
    ${this.isError?"Connection declined":this.label}`}};Jr.styles=[Me.globalCss,Vr],Zr([dt()],Jr.prototype,"walletId",2),Zr([dt()],Jr.prototype,"imageId",2),Zr([dt({type:Boolean})],Jr.prototype,"isError",2),Zr([dt({type:Boolean})],Jr.prototype,"isStale",2),Zr([dt()],Jr.prototype,"label",2),Jr=Zr([ut("wcm-connector-waiting")],Jr);const Qr={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:n}=wt.t0.state,i=null==(t=Qr.recentWallet())?void 0:t.id,s=(wt.zv.isMobile()?r:n)?.filter((t=>i!==t.id));return null!=(e=wt.zv.isMobile()?s?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):s?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Xe.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Qr.recentWallet())?void 0:e.id,{recomendedWallets:n}=wt.uc.state;return n.filter((t=>r!==t.id))}},Yr={onConnecting(t){Xe.goToConnectingView(t)},manualWalletsTemplate(){return Qr.manualWallets().map((t=>F``))},recomendedWalletsTemplate(t=!1){return Qr.recomendedWallets(t).map((t=>F``))},recentWalletTemplate(){const t=Qr.recentWallet();if(t)return F``}},Xr=c`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let tn=class extends ct{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=wt.t0.state,r="ALL"!==t&&e,n=Yr.manualWalletsTemplate(),i=Yr.recomendedWalletsTemplate();let s=[Yr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>4||r;let a=[];a=o?s.slice(0,3):s;const c=Boolean(a.length);return F`
    ${Fe.MOBILE_ICON}Mobile
    ${Fe.SCAN_ICON}Scan with your wallet
    ${c?F`
    ${Fe.DESKTOP_ICON}Desktop
    ${a} ${o?F``:null}
    `:null}`}};tn.styles=[Me.globalCss,Xr],tn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-desktop-wallet-selection")],tn);const en=c`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let rn=class extends ct{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=wt.t0.state;return t??e?F`
    By connecting your wallet to this app, you agree to the app's ${t?F`Terms of Service`:null} ${t&&e?"and":null} ${e?F`Privacy Policy`:null}
    `:null}};rn.styles=[Me.globalCss,en],rn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-legal-notice")],rn);const nn=c`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let sn=class extends ct{onQrcode(){wt.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=wt.t0.state,r="ALL"!==t&&e,n=Yr.manualWalletsTemplate(),i=Yr.recomendedWalletsTemplate();let s=[Yr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>8||r;let a=[];a=o?s.slice(0,7):s;const c=Boolean(a.length);return F`${c?F`
    ${a} ${o?F``:null}
    `:null}`}};sn.styles=[Me.globalCss,nn],sn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-mobile-wallet-selection")],sn);const on=c`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var an=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,ln=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?cn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&an(e,r,s),s};let un=class extends ct{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=wt.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Xe.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Xe.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){document.querySelector("body")&&(t?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(t){t.target===t.currentTarget&&wt.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Xe.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([be(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,be(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Xe.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([be(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,be(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var e;"Escape"===t.key?wt.jb.close():"Tab"===t.key&&(null!=(e=t.target)&&e.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return F`
    ${this.open?F`
    `:null}
    `}};un.styles=[Me.globalCss,on],ln([pt()],un.prototype,"open",2),ln([pt()],un.prototype,"active",2),un=ln([ut("wcm-modal")],un);const hn=c`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var dn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,fn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?pn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&dn(e,r,s),s};let mn=class extends ct{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){wt.zv.isMobile()?wt.AV.replace("MobileConnecting"):wt.AV.replace("MobileQrcodeConnecting")}onDesktop(){wt.AV.replace("DesktopConnecting")}onWeb(){wt.AV.replace("WebConnecting")}render(){return F`
    ${this.isRetry?F``:null} ${this.isMobile?F`Mobile`:null} ${this.isDesktop?F`Desktop`:null} ${this.isWeb?F`Web`:null}
    `}};mn.styles=[Me.globalCss,hn],fn([dt({type:Boolean})],mn.prototype,"isMobile",2),fn([dt({type:Boolean})],mn.prototype,"isDesktop",2),fn([dt({type:Boolean})],mn.prototype,"isWeb",2),fn([dt({type:Boolean})],mn.prototype,"isRetry",2),mn=fn([ut("wcm-platform-selection")],mn);const gn=c`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let yn=class extends ct{onClick(){wt.AV.push("WalletExplorer")}render(){const{recomendedWallets:t}=wt.uc.state,e=[...t,...Qr.manualWallets()].reverse().slice(0,4);return F``}};yn.styles=[Me.globalCss,gn],yn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-view-all-wallets-button")],yn);const wn=c`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,En=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?vn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&bn(e,r,s),s};let xn=class extends ct{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=wt.zb.state;this.uri=t}),0)}get overlayEl(){return Xe.getShadowRootElement(this,".wcm-qr-container")}render(){return F`
    ${this.uri?F``:F``}
    `}};xn.styles=[Me.globalCss,wn],En([dt()],xn.prototype,"walletId",2),En([dt()],xn.prototype,"imageId",2),En([pt()],xn.prototype,"uri",2),xn=En([ut("wcm-walletconnect-qr")],xn);Object.defineProperty,Object.getOwnPropertyDescriptor;let _n=class extends ct{viewTemplate(){return wt.zv.isAndroid()?F``:wt.zv.isMobile()?F``:F``}render(){return F`${this.viewTemplate()}`}};_n.styles=[Me.globalCss],_n=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-connect-wallet-view")],_n);const An=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var kn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Cn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Sn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&kn(e,r,s),s};let Mn=class extends ct{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=wt.zv.getWalletRouterData(),n=e?.native;if(n){const e=wt.zv.formatNativeUrl(n,t,r);wt.zv.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=wt.zb.state,e=wt.zv.getWalletRouterData();Xe.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isMobile:n,isWeb:i}=Xe.getCachedRouterWalletPlatforms();return F`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};Mn.styles=[Me.globalCss,An],Cn([pt()],Mn.prototype,"isError",2),Mn=Cn([ut("wcm-desktop-connecting-view")],Mn);const In=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Pn=class extends ct{onInstall(t){t&&wt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:n}=wt.zv.getWalletRouterData();return F`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};Pn.styles=[Me.globalCss,In],Pn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-install-wallet-view")],Pn);const On=c`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Tn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,Rn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Nn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Tn(e,r,s),s};let Bn=class extends ct{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:n}=wt.zv.getWalletRouterData(),i=r?.native,s=r?.universal;if(i&&!e){const e=wt.zv.formatNativeUrl(i,t,n);wt.zv.openHref(e,"_self")}else if(s){const e=wt.zv.formatUniversalUrl(s,t,n);wt.zv.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=wt.zb.state,r=wt.zv.getWalletRouterData();Xe.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&wt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:n,mobile:i}=wt.zv.getWalletRouterData(),{isWeb:s}=Xe.getCachedRouterWalletPlatforms(),o=n?.ios,a=i?.universal;return F`Retry${a?F`Still doesn't work? Try this alternate link`:null}
    ${`Get ${t}`}
    App Store
    `}};Bn.styles=[Me.globalCss,On],Rn([pt()],Bn.prototype,"isError",2),Bn=Rn([ut("wcm-mobile-connecting-view")],Bn);const jn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ln=class extends ct{render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isDesktop:n,isWeb:i}=Xe.getCachedRouterWalletPlatforms();return F`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Ln.styles=[Me.globalCss,jn],Ln=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-mobile-qr-connecting-view")],Ln);Object.defineProperty,Object.getOwnPropertyDescriptor;let Un=class extends ct{render(){return F``}};Un.styles=[Me.globalCss],Un=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-qrcode-view")],Un);const Dn=c`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var $n=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,zn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Fn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&$n(e,r,s),s};let Hn=class extends ct{constructor(){super(...arguments),this.loading=!wt.uc.state.wallets.listings.length,this.firstFetch=!wt.uc.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Xe.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,wt.uc.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),wt.uc.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Xe.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=wt.uc.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=wt.uc.state,{listings:n,total:i,page:s}=this.search?r:e;if(!this.endReached&&(this.firstFetch||i>40&&n.lengthXe.getWalletIcon(t)));await Promise.all([...n.map((async t=>Xe.preloadImage(t))),wt.zv.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),wt.Vs.openToast(Xe.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){wt.zv.isAndroid()?Xe.handleMobileLinking(t):Xe.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=wt.uc.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let s=Yr.manualWalletsTemplate(),o=Yr.recomendedWalletsTemplate(!0);i&&(s=s.filter((({values:t})=>Xe.caseSafeIncludes(t[0],this.search))),o=o.filter((({values:t})=>Xe.caseSafeIncludes(t[0],this.search))));const a=!this.loading&&!r.length&&!o.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":a};return F`
    ${n?null:s} ${n?null:o} ${n?null:r.map((t=>F`${t?F``:null}`))}
    ${a?F`No results found`:null} ${!a&&this.loading?F``:null}
    `}};Hn.styles=[Me.globalCss,Dn],zn([pt()],Hn.prototype,"loading",2),zn([pt()],Hn.prototype,"firstFetch",2),zn([pt()],Hn.prototype,"search",2),zn([pt()],Hn.prototype,"endReached",2),Hn=zn([ut("wcm-wallet-explorer-view")],Hn);const Wn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var qn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Gn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Vn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&qn(e,r,s),s};let Kn=class extends ct{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=wt.zv.getWalletRouterData(),n=e?.universal;if(n){const e=wt.zv.formatUniversalUrl(n,t,r);wt.zv.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=wt.zb.state,e=wt.zv.getWalletRouterData();Xe.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isMobile:n,isDesktop:i}=Xe.getCachedRouterWalletPlatforms(),s=wt.zv.isMobile();return F`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};Kn.styles=[Me.globalCss,Wn],Gn([pt()],Kn.prototype,"isError",2),Kn=Gn([ut("wcm-web-connecting-view")],Kn)},9343:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WalletConnectModal:()=>i});var n=r(9174);class i{constructor(t){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.Ic.setThemeConfig,n.Ic.setThemeConfig(t),n.t0.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(r.bind(r,663));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),n.zb.setIsUiLoaded(!0)}}}},661:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')},1646:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.amdO={},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(7405)})())); \ No newline at end of file + `:null}onEmailInputChange(t){this.email=t.detail,this.error=""}async onSubmitEmail(t){try{if(this.loading)return;this.loading=!0,t.preventDefault();const e=s.ConnectorController.getEmailConnector();if(!e)throw new Error("w3m-email-login-widget: Email connector not found");const{action:r}=await e.provider.connectEmail({email:this.email});"VERIFY_OTP"===r?s.RouterController.push("EmailVerifyOtp",{email:this.email}):"VERIFY_DEVICE"===r&&s.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){s.j1.parseError(t)?.includes("Invalid email")?this.error="Invalid email. Try again.":s.SnackController.showError(t)}finally{this.loading=!1}}};Qn.styles=Kn,Zn([(0,c.SB)()],Qn.prototype,"connectors",void 0),Zn([(0,c.SB)()],Qn.prototype,"email",void 0),Zn([(0,c.SB)()],Qn.prototype,"loading",void 0),Zn([(0,c.SB)()],Qn.prototype,"error",void 0),Qn=Zn([(0,o.customElement)("w3m-email-login-widget")],Qn);let Jn=!1;class Yn{constructor(t){this.initPromise=void 0,this.setIsConnected=t=>{s.AccountController.setIsConnected(t)},this.setCaipAddress=t=>{s.AccountController.setCaipAddress(t)},this.setBalance=(t,e)=>{s.AccountController.setBalance(t,e)},this.setProfileName=t=>{s.AccountController.setProfileName(t)},this.setProfileImage=t=>{s.AccountController.setProfileImage(t)},this.resetAccount=()=>{s.AccountController.resetAccount()},this.setCaipNetwork=t=>{s.NetworkController.setCaipNetwork(t)},this.getCaipNetwork=()=>s.NetworkController.state.caipNetwork,this.setRequestedCaipNetworks=t=>{s.NetworkController.setRequestedCaipNetworks(t)},this.getApprovedCaipNetworksData=()=>s.NetworkController.getApprovedCaipNetworksData(),this.resetNetwork=()=>{s.NetworkController.resetNetwork()},this.setConnectors=t=>{s.ConnectorController.setConnectors(t)},this.addConnector=t=>{s.ConnectorController.addConnector(t)},this.getConnectors=()=>s.ConnectorController.getConnectors(),this.resetWcConnection=()=>{s.ConnectionController.resetWcConnection()},this.fetchIdentity=t=>s.Lr.fetchIdentity(t),this.setAddressExplorerUrl=t=>{s.AccountController.setAddressExplorerUrl(t)},this.setSIWENonce=t=>{s.yD.setNonce(t)},this.setSIWESession=t=>{s.yD.setSession(t)},this.setSIWEStatus=t=>{s.yD.setStatus(t)},this.setSIWEMessage=t=>{s.yD.setMessage(t)},this.initControllers(t),this.initOrContinue()}async open(t){await this.initOrContinue(),s.IN.open(t)}async close(){await this.initOrContinue(),s.IN.close()}setLoading(t){s.IN.setLoading(t)}getThemeMode(){return s.ThemeController.state.themeMode}getThemeVariables(){return s.ThemeController.state.themeVariables}setThemeMode(t){s.ThemeController.setThemeMode(t),(0,o.setColorTheme)(s.ThemeController.state.themeMode);try{const t=s.ConnectorController.getEmailConnector();t&&t.provider.syncTheme({themeMode:s.ThemeController.getSnapshot().themeMode})}catch{console.info("Unable to sync theme to email connector")}}setThemeVariables(t){s.ThemeController.setThemeVariables(t),(0,o.setThemeVariables)(s.ThemeController.state.themeVariables);try{const t=s.ConnectorController.getEmailConnector();t&&t.provider.syncTheme({themeVariables:s.ThemeController.getSnapshot().themeVariables})}catch{console.info("Unable to sync theme to email connector")}}subscribeTheme(t){return s.ThemeController.subscribe(t)}getState(){return{...s.Ie.state}}subscribeState(t){return s.Ie.subscribe(t)}getEvent(){return{...s.Xs.state}}subscribeEvents(t){return s.Xs.subscribe(t)}subscribeSIWEState(t){return s.yD.subscribe(t)}initControllers(t){if(s.NetworkController.setClient(t.networkControllerClient),s.NetworkController.setDefaultCaipNetwork(t.defaultChain),s.OptionsController.setProjectId(t.projectId),s.OptionsController.setIncludeWalletIds(t.includeWalletIds),s.OptionsController.setExcludeWalletIds(t.excludeWalletIds),s.OptionsController.setFeaturedWalletIds(t.featuredWalletIds),s.OptionsController.setTokens(t.tokens),s.OptionsController.setTermsConditionsUrl(t.termsConditionsUrl),s.OptionsController.setPrivacyPolicyUrl(t.privacyPolicyUrl),s.OptionsController.setCustomWallets(t.customWallets),s.OptionsController.setEnableAnalytics(t.enableAnalytics),s.OptionsController.setSdkVersion(t._sdkVersion),s.ConnectionController.setClient(t.connectionControllerClient),t.siweControllerClient){const e=t.siweControllerClient;s.yD.setSIWEClient(e)}t.metadata&&s.OptionsController.setMetadata(t.metadata),t.themeMode&&s.ThemeController.setThemeMode(t.themeMode),t.themeVariables&&s.ThemeController.setThemeVariables(t.themeVariables)}async initOrContinue(){return this.initPromise||Jn||!s.j1.isClient()||(Jn=!0,this.initPromise=new Promise((async t=>{await Promise.all([Promise.resolve().then(r.bind(r,31123)),Promise.resolve().then(r.bind(r,96541))]);const e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),t()}))),this.initPromise}}const Xn={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",COINBASE_CONNECTOR_ID:"coinbaseWallet",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",EMAIL_CONNECTOR_ID:"w3mEmail",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",VERSION:"3.5.5"},ti={ConnectorExplorerIds:{[Xn.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[Xn.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[Xn.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100"},ConnectorImageIds:{[Xn.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[Xn.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[Xn.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[Xn.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[Xn.INJECTED_CONNECTOR_ID]:"Browser Wallet",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[Xn.COINBASE_CONNECTOR_ID]:"Coinbase",[Xn.LEDGER_CONNECTOR_ID]:"Ledger",[Xn.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[Xn.INJECTED_CONNECTOR_ID]:"INJECTED",[Xn.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[Xn.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[Xn.EMAIL_CONNECTOR_ID]:"EMAIL"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},ei={caipNetworkIdToNumber:t=>t?Number(t.split(":")[1]):void 0,getCaipTokens(t){if(!t)return;const e={};return Object.entries(t).forEach((([t,r])=>{e[`${Xn.EIP155}:${t}`]=r})),e}};function ri(t){if(t)return{id:`${Xn.EIP155}:${t.id}`,name:t.name,imageId:ti.EIP155NetworkImageIds[t.id]}}class ni extends Yn{constructor(t){const{wagmiConfig:e,siweConfig:r,chains:i,defaultChain:s,tokens:o,_sdkVersion:a,...c}=t;if(!e)throw new Error("web3modal:constructor - wagmiConfig is undefined");if(!c.projectId)throw new Error("web3modal:constructor - projectId is undefined");super({networkControllerClient:{switchCaipNetwork:async t=>{const e=ei.caipNetworkIdToNumber(t?.id);e&&await(0,n.If)({chainId:e})},async getApprovedCaipNetworksData(){const t=localStorage.getItem("wagmi.wallet");if(t?.includes(Xn.EMAIL_CONNECTOR_ID))return{supportsAllNetworks:!1,approvedCaipNetworkIds:ti.WalletConnectRpcChainIds.map((t=>`${Xn.EIP155}:${t}`))};if(t?.includes(Xn.WALLET_CONNECT_CONNECTOR_ID)){const t=e.connectors.find((t=>t.id===Xn.WALLET_CONNECT_CONNECTOR_ID));if(!t)throw new Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");const r=(await t.getProvider()).signer?.session?.namespaces,n=r?.[Xn.EIP155]?.methods,i=r?.[Xn.EIP155]?.chains;return{supportsAllNetworks:n?.includes(Xn.ADD_CHAIN_METHOD),approvedCaipNetworkIds:i}}return{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0}}},connectionControllerClient:{connectWalletConnect:async t=>{const r=e.connectors.find((t=>t.id===Xn.WALLET_CONNECT_CONNECTOR_ID));if(!r)throw new Error("connectionControllerClient:getWalletConnectUri - connector is undefined");r.on("message",(e=>{"display_uri"===e.type&&(t(e.data),r.removeAllListeners())}));const i=ei.caipNetworkIdToNumber(this.getCaipNetwork()?.id);await(0,n.$j)({connector:r,chainId:i})},connectExternal:async({id:t,provider:r,info:i})=>{const s=e.connectors.find((e=>e.id===t));if(!s)throw new Error("connectionControllerClient:connectExternal - connector is undefined");r&&i&&s.id===Xn.EIP6963_CONNECTOR_ID&&s.setEip6963Wallet?.({provider:r,info:i});const o=ei.caipNetworkIdToNumber(this.getCaipNetwork()?.id);await(0,n.$j)({connector:s,chainId:o})},checkInstalled:t=>{const e=this.getConnectors().filter((t=>"ANNOUNCED"===t.type)),r=this.getConnectors().find((t=>"INJECTED"===t.type));return t?!(!e.length||!t.some((t=>e.some((e=>e.info?.rdns===t)))))||!!r&&!!window?.ethereum&&t.some((t=>Boolean(window.ethereum?.[String(t)]))):Boolean(window.ethereum)},disconnect:async()=>{await(0,n.zP)(),r?.options?.signOutOnDisconnect&&await r.signOut()},signMessage:async t=>(0,n.l)({message:t})},siweControllerClient:r,defaultChain:ri(s),tokens:ei.getCaipTokens(o),_sdkVersion:a??`html-wagmi-${Xn.VERSION}`,...c}),this.hasSyncedConnectedAccount=!1,this.options=void 0,this.options=t,this.syncRequestedNetworks(i),this.syncConnectors(e),this.syncEmailConnector(e),this.listenEIP6963Connector(e),this.listenEmailConnector(e),(0,n.uH)((()=>this.syncAccount())),(0,n.QC)((()=>this.syncNetwork()))}getState(){const t=super.getState();return{...t,selectedNetworkId:ei.caipNetworkIdToNumber(t.selectedNetworkId)}}subscribeState(t){return super.subscribeState((e=>t({...e,selectedNetworkId:ei.caipNetworkIdToNumber(e.selectedNetworkId)})))}syncRequestedNetworks(t){const e=t?.map((t=>({id:`${Xn.EIP155}:${t.id}`,name:t.name,imageId:ti.EIP155NetworkImageIds[t.id],imageUrl:this.options?.chainImages?.[t.id]})));this.setRequestedCaipNetworks(e??[])}async syncAccount(){const{address:t,isConnected:e}=(0,n.D0)(),{chain:r}=(0,n.Hy)();if(this.resetAccount(),e&&t&&r){const n=`${Xn.EIP155}:${r.id}:${t}`;this.setIsConnected(e),this.setCaipAddress(n),await Promise.all([this.syncProfile(t,r),this.syncBalance(t,r),this.getApprovedCaipNetworksData()]),this.hasSyncedConnectedAccount=!0}else!e&&this.hasSyncedConnectedAccount&&(this.resetWcConnection(),this.resetNetwork())}async syncNetwork(){const{address:t,isConnected:e}=(0,n.D0)(),{chain:r}=(0,n.Hy)();if(r){const n=String(r.id),i=`${Xn.EIP155}:${n}`;if(this.setCaipNetwork({id:i,name:r.name,imageId:ti.EIP155NetworkImageIds[r.id],imageUrl:this.options?.chainImages?.[r.id]}),e&&t){const e=`${Xn.EIP155}:${r.id}:${t}`;if(this.setCaipAddress(e),r.blockExplorers?.default?.url){const e=`${r.blockExplorers.default.url}/address/${t}`;this.setAddressExplorerUrl(e)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&(await this.syncProfile(t,r),await this.syncBalance(t,r))}}}async syncProfile(t,e){if(e.id!==i.R.id)return this.setProfileName(null),void this.setProfileImage(null);try{const{name:r,avatar:n}=await this.fetchIdentity({caipChainId:`${Xn.EIP155}:${e.id}`,address:t});this.setProfileName(r),this.setProfileImage(n)}catch{const r=await(0,n.Lk)({address:t,chainId:e.id});if(r){this.setProfileName(r);const t=await(0,n.w6)({name:r,chainId:e.id});t&&this.setProfileImage(t)}}}async syncBalance(t,e){const r=await(0,n.EG)({address:t,chainId:e.id,token:this.options?.tokens?.[e.id]?.address});this.setBalance(r.formatted,r.symbol)}syncConnectors(t){const e=[];t.connectors.forEach((({id:t,name:r})=>{[Xn.EIP6963_CONNECTOR_ID,Xn.EMAIL_CONNECTOR_ID].includes(t)||e.push({id:t,explorerId:ti.ConnectorExplorerIds[t],imageId:ti.ConnectorImageIds[t],imageUrl:this.options?.connectorImages?.[t],name:ti.ConnectorNamesMap[t]??r,type:ti.ConnectorTypesMap[t]??"EXTERNAL"})})),this.setConnectors(e)}async syncEmailConnector(t){const e=t.connectors.find((({id:t})=>"w3mEmail"===t));if(e){const t=await e.getProvider();this.addConnector({id:Xn.EMAIL_CONNECTOR_ID,type:"EMAIL",name:"Email",provider:t})}}eip6963EventHandler(t,e){if(e.detail){const{info:r,provider:n}=e.detail;this.getConnectors().find((t=>t.name===r.name))||(this.addConnector({id:Xn.EIP6963_CONNECTOR_ID,type:"ANNOUNCED",imageUrl:r.icon??this.options?.connectorImages?.[Xn.EIP6963_CONNECTOR_ID],name:r.name,provider:n,info:r}),t.isAuthorized({info:r,provider:n}))}}listenEIP6963Connector(t){const e=t.connectors.find((t=>t.id===Xn.EIP6963_CONNECTOR_ID));if("undefined"!=typeof window&&e){const t=this.eip6963EventHandler.bind(this,e);window.addEventListener(Xn.EIP6963_ANNOUNCE_EVENT,t),window.dispatchEvent(new Event(Xn.EIP6963_REQUEST_EVENT))}}async listenEmailConnector(t){const e=t.connectors.find((t=>t.id===Xn.EMAIL_CONNECTOR_ID));if("undefined"!=typeof window&&e){super.setLoading(!0);const t=await e.getProvider(),r=t.getLoginEmailUsed();super.setLoading(r),t.onRpcRequest((()=>{super.open({view:"ApproveTransaction"})})),t.onRpcResponse((()=>{super.close()})),t.onIsConnected((()=>{super.setLoading(!1)}))}}}var ii,si,oi=r(92219),ai=r(45775),ci=function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},li=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};const ui="connectedRdns";class hi extends oi._{constructor(t){super({chains:t.chains,options:{shimDisconnect:!0}}),this.id="eip6963",this.name="EIP6963",ii.set(this,void 0),si.set(this,void 0),this.onAccountsChanged=t=>{0===t.length?(this.storage?.removeItem(ui),this.emit("disconnect")):t[0]&&this.emit("change",{account:(0,ai.K)(t[0])})},ci(this,ii,this.options.getProvider(),"f")}async connect(t){const e=await super.connect(t);return li(this,si,"f")&&this.storage?.setItem(ui,li(this,si,"f").info.rdns),e}async disconnect(){await super.disconnect(),this.storage?.removeItem(ui),ci(this,si,void 0,"f")}async isAuthorized(t){const e=this.storage?.getItem(ui);if(e){if(li(this,si,"f")&&e===li(this,si,"f").info.rdns){const t=li(this,si,"f").provider;if((await t.request({method:"eth_accounts"})).length)return!0}t&&ci(this,si,t,"f")}return super.isAuthorized()}async getProvider(){return Promise.resolve(li(this,si,"f")?.provider??li(this,ii,"f"))}setEip6963Wallet(t){ci(this,si,t,"f")}}ii=new WeakMap,si=new WeakMap;var di=r(53324),fi=r(39028),pi=r(91677),mi=r(3980);class gi extends di.wR{constructor(t){super(t),this.id="w3mEmail",this.name="Web3Modal Email",this.ready=!0,this.provider={},"undefined"!=typeof window&&(this.provider=new jr(t.options.projectId))}async getProvider(){return Promise.resolve(this.provider)}async connect(t={}){const{address:e,chainId:r}=await this.provider.connect({chainId:t.chainId});return{account:e,chain:{id:r,unsupported:this.isChainUnsupported(1)}}}async switchChain(t){try{const e=this.chains.find((e=>e.id===t));if(!e)throw new fi.x3(new Error("chain not found on connector."));await this.provider.switchNetwork(t);const r=this.isChainUnsupported(t);return this.emit("change",{chain:{id:t,unsupported:r}}),e}catch(t){if(t instanceof Error)throw new fi.x3(t);throw t}}async disconnect(){await this.provider.disconnect()}async getAccount(){const{address:t}=await this.provider.connect();return t}async getChainId(){const{chainId:t}=await this.provider.getChainId();return t}async getWalletClient(){const{address:t,chainId:e}=await this.provider.connect();return Promise.resolve((0,pi.K)({account:t,chain:{id:e},transport:(0,mi.P)(this.provider)}))}async isAuthorized(){const{isConnected:t}=await this.provider.isConnected();return t}onAccountsChanged(){}onChainChanged(){}onDisconnect(){}}var yi=r(48764);"undefined"!=typeof window&&(window.Buffer||(window.Buffer=yi.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}));var wi,bi,vi=r(57858),Ai=r(53516),Ei=r(92106),xi=class extends di.wR{constructor({chains:t,options:e}){super({chains:t,options:{reloadOnDisconnect:!1,...e}}),this.id="coinbaseWallet",this.name="Coinbase Wallet",this.ready=!0,(0,di.Ko)(this,wi,void 0),(0,di.Ko)(this,bi,void 0),this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,ai.K)(t[0])})},this.onChainChanged=t=>{const e=(0,Ai.J)(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=()=>{this.emit("disconnect")}}async connect({chainId:t}={}){try{const e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect),this.emit("message",{type:"connecting"});const r=await e.enable(),n=(0,ai.K)(r[0]);let i=await this.getChainId(),s=this.isChainUnsupported(i);return t&&i!==t&&(i=(await this.switchChain(t)).id,s=this.isChainUnsupported(i)),{account:n,chain:{id:i,unsupported:s}}}catch(t){if(/(user closed modal|accounts received is empty)/i.test(t.message))throw new fi.ab(t);throw t}}async disconnect(){if(!(0,di.ac)(this,bi))return;const t=await this.getProvider();t.removeListener("accountsChanged",this.onAccountsChanged),t.removeListener("chainChanged",this.onChainChanged),t.removeListener("disconnect",this.onDisconnect),t.disconnect(),t.close()}async getAccount(){const t=await this.getProvider(),e=await t.request({method:"eth_accounts"});return(0,ai.K)(e[0])}async getChainId(){const t=await this.getProvider();return(0,Ai.J)(t.chainId)}async getProvider(){if(!(0,di.ac)(this,bi)){let t=(await Promise.resolve().then(r.t.bind(r,45811,19))).default;"function"!=typeof t&&"function"==typeof t.default&&(t=t.default),(0,di.qx)(this,wi,new t(this.options));const e=(0,di.ac)(this,wi).walletExtension?.getChainId(),n=this.chains.find((t=>this.options.chainId?t.id===this.options.chainId:t.id===e))||this.chains[0],i=this.options.chainId||n?.id,s=this.options.jsonRpcUrl||n?.rpcUrls.default.http[0];(0,di.qx)(this,bi,(0,di.ac)(this,wi).makeWeb3Provider(s,i))}return(0,di.ac)(this,bi)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider(),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,pi.K)({account:r,chain:n,transport:(0,mi.P)(e)})}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(t){const e=await this.getProvider(),r=(0,Ei.eC)(t);try{return await e.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]}),this.chains.find((e=>e.id===t))??{id:t,name:`Chain ${r}`,network:`${r}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpcUrls:{default:{http:[""]},public:{http:[""]}}}}catch(n){const i=this.chains.find((e=>e.id===t));if(!i)throw new vi.B({chainId:t,connectorId:this.id});if(4902===n.code)try{return await e.request({method:"wallet_addEthereumChain",params:[{chainId:r,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:[i.rpcUrls.public?.http[0]??""],blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(t){throw new fi.ab(t)}throw new fi.x3(n)}}async watchAsset({address:t,decimals:e=18,image:r,symbol:n}){return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:e,image:r,symbol:n}}})}};wi=new WeakMap,bi=new WeakMap;var _i,Si,Mi,Ci,ki,Ii,Pi,Oi,Ni,Ti,Ri,Bi,Li,Ui,ji,Di,Fi,zi,Hi,$i,qi=r(49795),Wi="eip155",Vi="requestedChains",Gi="wallet_addEthereumChain",Ki=class extends di.wR{constructor(t){super({...t,options:{isNewChainsStale:!0,...t.options}}),(0,di.Ko)(this,Mi),(0,di.Ko)(this,ki),(0,di.Ko)(this,Pi),(0,di.Ko)(this,Ni),(0,di.Ko)(this,Ri),(0,di.Ko)(this,Li),(0,di.Ko)(this,ji),(0,di.Ko)(this,Fi),(0,di.Ko)(this,Hi),this.id="walletConnect",this.name="WalletConnect",this.ready=!0,(0,di.Ko)(this,_i,void 0),(0,di.Ko)(this,Si,void 0),this.onAccountsChanged=t=>{0===t.length?this.emit("disconnect"):this.emit("change",{account:(0,ai.K)(t[0])})},this.onChainChanged=t=>{const e=Number(t),r=this.isChainUnsupported(e);this.emit("change",{chain:{id:e,unsupported:r}})},this.onDisconnect=()=>{(0,di.U9)(this,Li,Ui).call(this,[]),this.emit("disconnect")},this.onDisplayUri=t=>{this.emit("message",{type:"display_uri",data:t})},this.onConnect=()=>{this.emit("connect",{})},(0,di.U9)(this,Mi,Ci).call(this)}async connect({chainId:t,pairingTopic:e}={}){try{let r=t;if(!r){const t=this.storage?.getItem("store"),e=t?.state?.data?.chain?.id;r=e&&!this.isChainUnsupported(e)?e:this.chains[0]?.id}if(!r)throw new Error("No chains found on connector.");const n=await this.getProvider();(0,di.U9)(this,Ni,Ti).call(this);const i=(0,di.U9)(this,Pi,Oi).call(this);if(n.session&&i&&await n.disconnect(),!n.session||i){const t=this.chains.filter((t=>t.id!==r)).map((t=>t.id));this.emit("message",{type:"connecting"}),await n.connect({pairingTopic:e,optionalChains:[r,...t]}),(0,di.U9)(this,Li,Ui).call(this,this.chains.map((({id:t})=>t)))}const s=await n.enable(),o=(0,ai.K)(s[0]),a=await this.getChainId();return{account:o,chain:{id:a,unsupported:this.isChainUnsupported(a)}}}catch(t){if(/user rejected/i.test(t?.message))throw new fi.ab(t);throw t}}async disconnect(){const t=await this.getProvider();try{await t.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{(0,di.U9)(this,Ri,Bi).call(this),(0,di.U9)(this,Li,Ui).call(this,[])}}async getAccount(){const{accounts:t}=await this.getProvider();return(0,ai.K)(t[0])}async getChainId(){const{chainId:t}=await this.getProvider();return t}async getProvider({chainId:t}={}){return(0,di.ac)(this,_i)||await(0,di.U9)(this,Mi,Ci).call(this),t&&await this.switchChain(t),(0,di.ac)(this,_i)}async getWalletClient({chainId:t}={}){const[e,r]=await Promise.all([this.getProvider({chainId:t}),this.getAccount()]),n=this.chains.find((e=>e.id===t));if(!e)throw new Error("provider is required.");return(0,pi.K)({account:r,chain:n,transport:(0,mi.P)(e)})}async isAuthorized(){try{const[t,e]=await Promise.all([this.getAccount(),this.getProvider()]),r=(0,di.U9)(this,Pi,Oi).call(this);if(!t)return!1;if(r&&e.session){try{await e.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(t){const e=this.chains.find((e=>e.id===t));if(!e)throw new fi.x3(new Error("chain not found on connector."));try{const r=await this.getProvider(),n=(0,di.U9)(this,Fi,zi).call(this),i=(0,di.U9)(this,Hi,$i).call(this);if(!n.includes(t)&&i.includes(Gi)){await r.request({method:Gi,params:[{chainId:(0,Ei.eC)(e.id),blockExplorerUrls:[e.blockExplorers?.default?.url],chainName:e.name,nativeCurrency:e.nativeCurrency,rpcUrls:[...e.rpcUrls.default.http]}]});const n=(0,di.U9)(this,ji,Di).call(this);n.push(t),(0,di.U9)(this,Li,Ui).call(this,n)}return await r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,Ei.eC)(t)}]}),e}catch(t){if(/user rejected request/i.test("string"==typeof t?t:t?.message))throw new fi.ab(t);throw new fi.x3(t)}}};_i=new WeakMap,Si=new WeakMap,Mi=new WeakSet,Ci=async function(){return(0,di.ac)(this,Si)||"undefined"==typeof window||(0,di.qx)(this,Si,(0,di.U9)(this,ki,Ii).call(this)),(0,di.ac)(this,Si)},ki=new WeakSet,Ii=async function(){const{EthereumProvider:t}=await Promise.resolve().then(r.bind(r,33098)),e=this.chains.map((({id:t})=>t));if(e.length){const{projectId:r,showQrModal:n=!0,qrModalOptions:i,metadata:s,relayUrl:o}=this.options;(0,di.qx)(this,_i,await t.init({showQrModal:n,qrModalOptions:i,projectId:r,optionalChains:e,rpcMap:Object.fromEntries(this.chains.map((t=>[t.id,t.rpcUrls.default.http[0]]))),metadata:s,relayUrl:o}))}},Pi=new WeakSet,Oi=function(){if((0,di.U9)(this,Hi,$i).call(this).includes(Gi))return!1;if(!this.options.isNewChainsStale)return!1;const t=(0,di.U9)(this,ji,Di).call(this),e=this.chains.map((({id:t})=>t)),r=(0,di.U9)(this,Fi,zi).call(this);return!(r.length&&!r.some((t=>e.includes(t)))||e.every((e=>t.includes(e))))},Ni=new WeakSet,Ti=function(){(0,di.ac)(this,_i)&&((0,di.U9)(this,Ri,Bi).call(this),(0,di.ac)(this,_i).on("accountsChanged",this.onAccountsChanged),(0,di.ac)(this,_i).on("chainChanged",this.onChainChanged),(0,di.ac)(this,_i).on("disconnect",this.onDisconnect),(0,di.ac)(this,_i).on("session_delete",this.onDisconnect),(0,di.ac)(this,_i).on("display_uri",this.onDisplayUri),(0,di.ac)(this,_i).on("connect",this.onConnect))},Ri=new WeakSet,Bi=function(){(0,di.ac)(this,_i)&&((0,di.ac)(this,_i).removeListener("accountsChanged",this.onAccountsChanged),(0,di.ac)(this,_i).removeListener("chainChanged",this.onChainChanged),(0,di.ac)(this,_i).removeListener("disconnect",this.onDisconnect),(0,di.ac)(this,_i).removeListener("session_delete",this.onDisconnect),(0,di.ac)(this,_i).removeListener("display_uri",this.onDisplayUri),(0,di.ac)(this,_i).removeListener("connect",this.onConnect))},Li=new WeakSet,Ui=function(t){this.storage?.setItem(Vi,t)},ji=new WeakSet,Di=function(){return this.storage?.getItem(Vi)??[]},Fi=new WeakSet,zi=function(){if(!(0,di.ac)(this,_i))return[];const t=(0,di.ac)(this,_i).session?.namespaces;if(!t)return[];const e=(0,qi.fK)(t)[Wi]?.chains?.map((t=>parseInt(t.split(":")[1]||"")));return e??[]},Hi=new WeakSet,$i=function(){if(!(0,di.ac)(this,_i))return[];const t=(0,di.ac)(this,_i).session?.namespaces;if(!t)return[];const e=(0,qi.fK)(t)[Wi]?.methods;return e??[]};const Zi=s.j1.getBlockchainApiUrl();function Qi({projectId:t}){return function(e){if(!ti.WalletConnectRpcChainIds.includes(e.id))return null;const r=`${Zi}/v1/?chainId=${Xn.EIP155}:${e.id}&projectId=${t}`;return{chain:{...e,rpcUrls:{...e.rpcUrls,default:{http:[r]}}},rpcUrls:{http:[r]}}}}function Ji({projectId:t,chains:e,metadata:r,enableInjected:i,enableCoinbase:s,enableEIP6963:o,enableEmail:a,enableWalletConnect:c}){const{publicClient:l}=(0,n.QB)(e,[Qi({projectId:t}),function(t){return t.rpcUrls.public.http[0]?{chain:t,rpcUrls:t.rpcUrls.public}:null}]),u=[];return!1!==c&&u.push(new Ki({chains:e,options:{projectId:t,showQrModal:!1,metadata:r}})),!1!==i&&u.push(new oi._({chains:e,options:{shimDisconnect:!0}})),!1!==o&&u.push(new hi({chains:e})),!1!==s&&u.push(new xi({chains:e,options:{appName:r?.name??"Unknown"}})),!0===a&&u.push(new gi({chains:e,options:{projectId:t}})),(0,n._g)({autoConnect:!0,connectors:u,publicClient:l})}function Yi(t){return new ni({...t,_sdkVersion:`html-wagmi-${Xn.VERSION}`})}},33649:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__addDisposableResource:()=>R,__assign:()=>s,__asyncDelegator:()=>S,__asyncGenerator:()=>_,__asyncValues:()=>M,__await:()=>x,__awaiter:()=>p,__classPrivateFieldGet:()=>O,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>N,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>L,__esDecorate:()=>l,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>P,__importStar:()=>I,__makeTemplateObject:()=>C,__metadata:()=>f,__param:()=>c,__propKey:()=>h,__read:()=>b,__rest:()=>o,__runInitializers:()=>u,__setFunctionName:()=>d,__spread:()=>v,__spreadArray:()=>E,__spreadArrays:()=>A,__values:()=>w,default:()=>U});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e,r,n,i,s){function o(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!e&&t?n.static?t:t.prototype:null,h=e||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),d=!1,f=r.length-1;f>=0;f--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(t||null))};var g=(0,r[f])("accessor"===c?{get:h.get,set:h.set}:h[l],p);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(h.get=a),(a=o(g.set))&&(h.set=a),(a=o(g.init))&&i.unshift(a)}else(a=o(g))&&("field"===c?i.unshift(a):h[l]=a)}u&&Object.defineProperty(u,n.name,h),d=!0}function u(t,e,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function v(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof x?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function S(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:x(t[n](e)),done:!1}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=w(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var k=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&g(e,t,r);return k(e,t),e}function P(t){return t&&t.__esModule?t:{default:t}}function O(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function N(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r}function T(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function R(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var B="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function L(t){function e(e){t.error=t.hasError?new B(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function r(){for(;t.stack.length;){var n=t.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(t){return e(t),r()}))}catch(t){e(t)}}if(t.hasError)throw t.error}()}const U={__extends:i,__assign:s,__rest:o,__decorate:a,__param:c,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:y,__values:w,__read:b,__spread:v,__spreadArrays:A,__spreadArray:E,__await:x,__asyncGenerator:_,__asyncDelegator:S,__asyncValues:M,__makeTemplateObject:C,__importStar:I,__importDefault:P,__classPrivateFieldGet:O,__classPrivateFieldSet:N,__classPrivateFieldIn:T,__addDisposableResource:R,__disposeResources:L}},53160:(t,e,r)=>{"use strict";r.d(e,{E:()=>i});var n=r(16867);function i(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}},20605:(t,e,r)=>{"use strict";r.d(e,{z:()=>s});var n=r(53160),i=r(16867);function s(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const r=(0,n.E)(e);let s=0;for(const e of t)r.set(e,s),s+=e.length;return(0,i.P)(r)}},52217:(t,e,r)=>{"use strict";r.d(e,{m:()=>s});var n=r(95114),i=r(16867);function s(t,e="utf8"){const r=n.Z[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):(0,i.P)(globalThis.Buffer.from(t,"utf-8"))}},37466:(t,e,r)=>{"use strict";r.d(e,{BB:()=>s.B,mL:()=>i.m,zo:()=>n.z});var n=r(20605),i=r(52217),s=r(92263)},92263:(t,e,r)=>{"use strict";r.d(e,{B:()=>i});var n=r(95114);function i(t,e="utf8"){const r=n.Z[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(t).substring(1):globalThis.Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("utf8")}},16867:(t,e,r)=>{"use strict";function n(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}r.d(e,{P:()=>n})},95114:(t,e,r)=>{"use strict";r.d(e,{Z:()=>Lt});var n={};r.r(n),r.d(n,{identity:()=>M});var i={};r.r(i),r.d(i,{base2:()=>C});var s={};r.r(s),r.d(s,{base8:()=>k});var o={};r.r(o),r.d(o,{base10:()=>I});var a={};r.r(a),r.d(a,{base16:()=>P,base16upper:()=>O});var c={};r.r(c),r.d(c,{base32:()=>N,base32hex:()=>L,base32hexpad:()=>j,base32hexpadupper:()=>D,base32hexupper:()=>U,base32pad:()=>R,base32padupper:()=>B,base32upper:()=>T,base32z:()=>F});var l={};r.r(l),r.d(l,{base36:()=>z,base36upper:()=>H});var u={};r.r(u),r.d(u,{base58btc:()=>$,base58flickr:()=>q});var h={};r.r(h),r.d(h,{base64:()=>W,base64pad:()=>V,base64url:()=>G,base64urlpad:()=>K});var d={};r.r(d),r.d(d,{base256emoji:()=>Y});var f={};r.r(f),r.d(f,{sha256:()=>yt,sha512:()=>wt});var p={};r.r(p),r.d(p,{identity:()=>vt});var m={};r.r(m),r.d(m,{code:()=>Et,decode:()=>_t,encode:()=>xt,name:()=>At});var g={};r.r(g),r.d(g,{code:()=>kt,decode:()=>Pt,encode:()=>It,name:()=>Ct});const y=(new Uint8Array(0),t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")});class w{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class b{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return A(this,t)}}class v{constructor(t){this.decoders=t}or(t){return A(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const A=(t,e)=>new v({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class E{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new w(t,e,r),this.decoder=new b(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const x=({name:t,prefix:e,encode:r,decode:n})=>new E(t,e,r,n),_=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),m=n;f!==s;)p[m++]=o[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,f=o-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var p=o-n;p!==o&&0===l[p];)p++;for(var m=c.repeat(r);py(i(t))})},S=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>x({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),M=x({prefix:"\0",name:"identity",encode:t=>{return e=t,(new TextDecoder).decode(e);var e},decode:t=>(t=>(new TextEncoder).encode(t))(t)}),C=S({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),k=S({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),I=_({prefix:"9",name:"base10",alphabet:"0123456789"}),P=S({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),O=S({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),N=S({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),T=S({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),R=S({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),B=S({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),L=S({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),U=S({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),j=S({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),D=S({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),F=S({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),z=_({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),H=_({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),$=_({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),q=_({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),W=S({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),V=S({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),G=S({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),K=S({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Z=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Q=Z.reduce(((t,e,r)=>(t[r]=e,t)),[]),J=Z.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Y=x({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+Q[e]),"")},decode:function(t){const e=[];for(const r of t){const t=J[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var X=Math.pow(2,31),tt=Math.pow(2,7),et=Math.pow(2,14),rt=Math.pow(2,21),nt=Math.pow(2,28),it=Math.pow(2,35),st=Math.pow(2,42),ot=Math.pow(2,49),at=Math.pow(2,56),ct=Math.pow(2,63);const lt=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=X;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},ut=(t,e,r=0)=>(lt(t,e,r),e),ht=t=>function(t){return t{const r=e.byteLength,n=ht(t),i=n+ht(r),s=new Uint8Array(i+r);return ut(t,s,0),ut(r,s,n),s.set(e,i),new ft(t,r,e,s)};class ft{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const pt=({name:t,code:e,encode:r})=>new mt(t,e,r);class mt{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?dt(this.code,e):e.then((t=>dt(this.code,t)))}throw Error("Unknown type, must be binary type")}}const gt=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),yt=pt({name:"sha2-256",code:18,encode:gt("SHA-256")}),wt=pt({name:"sha2-512",code:19,encode:gt("SHA-512")}),bt=y,vt={code:0,name:"identity",encode:bt,digest:t=>dt(0,bt(t))},At="raw",Et=85,xt=t=>y(t),_t=t=>y(t),St=new TextEncoder,Mt=new TextDecoder,Ct="json",kt=512,It=t=>St.encode(JSON.stringify(t)),Pt=t=>JSON.parse(Mt.decode(t));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom"),Symbol.for("@ipld/js-cid/CID");const Ot={...n,...i,...s,...o,...a,...c,...l,...u,...h,...d};var Nt=r(53160);function Tt(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const Rt=Tt("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),Bt=Tt("ascii","a",(t=>{let e="a";for(let r=0;r{t=t.substring(1);const e=(0,Nt.E)(t.length);for(let r=0;r{"use strict";r.d(e,{sj:()=>h,iH:()=>p,CO:()=>f,Ld:()=>d}),Symbol();const n=Symbol(),i=Object.getPrototypeOf,s=new WeakMap,o=(t,e=!0)=>{s.set(t,e)},a=t=>"object"==typeof t&&null!==t,c=new WeakMap,l=new WeakSet,[u]=((t=Object.is,e=((t,e)=>new Proxy(t,e)),r=(t=>a(t)&&!l.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)),u=(t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),h=new WeakMap,d=((t,e,r=u)=>{const n=h.get(t);if((null==n?void 0:n[0])===e)return n[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return o(i,!0),h.set(t,[e,i]),Reflect.ownKeys(t).forEach((e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const n=Reflect.get(t,e),s={value:n,enumerable:!0,configurable:!0};if(l.has(n))o(n,!1);else if(n instanceof Promise)delete s.value,s.get=()=>r(n);else if(c.has(n)){const[t,e]=c.get(n);s.value=d(t,e(),r)}Object.defineProperty(i,e,s)})),Object.preventExtensions(i)}),f=new WeakMap,p=[1,1],m=(o=>{if(!a(o))throw new Error("object required");const u=f.get(o);if(u)return u;let h=p[0];const g=new Set,y=(t,e=++p[0])=>{h!==e&&(h=e,g.forEach((r=>r(t,e))))};let w=p[1];const b=t=>(e,r)=>{const n=[...e];n[1]=[t,...n[1]],y(n,r)},v=new Map,A=t=>{var e;const r=v.get(t);r&&(v.delete(t),null==(e=r[1])||e.call(r))},E=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),x=e(E,{deleteProperty(t,e){const r=Reflect.get(t,e);A(e);const n=Reflect.deleteProperty(t,e);return n&&y(["delete",[e],r]),n},set(e,o,u,h){const d=Reflect.has(e,o),p=Reflect.get(e,o,h);if(d&&(t(p,u)||f.has(u)&&t(p,f.get(u))))return!0;var w;A(o),a(u)&&(u=(t=>t&&(s.has(t)?s.get(t):i(t)===Object.prototype||i(t)===Array.prototype))(w=u)&&w[n]||u);let E=u;if(u instanceof Promise)u.then((t=>{u.status="fulfilled",u.value=t,y(["resolve",[o],t])})).catch((t=>{u.status="rejected",u.reason=t,y(["reject",[o],t])}));else{!c.has(u)&&r(u)&&(E=m(u));const t=!l.has(E)&&c.get(E);t&&((t,e)=>{if(v.has(t))throw new Error("prop listener already exists");if(g.size){const r=e[3](b(t));v.set(t,[e,r])}else v.set(t,[e])})(o,t)}return Reflect.set(e,o,E,h),y(["set",[o],u,p]),!0}});f.set(o,x);const _=[E,(t=++p[1])=>(w===t||g.size||(w=t,v.forEach((([e])=>{const r=e[1](t);r>h&&(h=r)}))),h),d,t=>(g.add(t),1===g.size&&v.forEach((([t,e],r)=>{if(e)throw new Error("remove already exists");const n=t[3](b(r));v.set(r,[t,n])})),()=>{g.delete(t),0===g.size&&v.forEach((([t,e],r)=>{e&&(e(),v.set(r,[t]))}))})];return c.set(x,_),Reflect.ownKeys(o).forEach((t=>{const e=Object.getOwnPropertyDescriptor(o,t);"value"in e&&(x[t]=o[t],delete e.value,delete e.writable),Object.defineProperty(E,t,e)})),x}))=>[m,c,l,t,e,r,u,h,d,f,p])();function h(t={}){return u(t)}function d(t,e,r){const n=c.get(t);let i;n||console.warn("Please use proxy object");const s=[],o=n[3];let a=!1;const l=o((t=>{s.push(t),r?e(s.splice(0)):i||(i=Promise.resolve().then((()=>{i=void 0,a&&e(s.splice(0))})))}));return a=!0,()=>{a=!1,l()}}function f(t,e){const r=c.get(t);r||console.warn("Please use proxy object");const[n,i,s]=r;return s(n,i(),e)}function p(t){return l.add(t),t}},14503:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}r.d(e,{T:()=>n})},76143:(t,e,r)=>{"use strict";r.d(e,{R:()=>w});var n=r(14503),i=r(16693),s=r(62027),o=r(80377),a=r(15980),c=r(7210),l=r(77799),u=r(47864),h=r(92106),d=r(26445),f=r(87469),p=r(61163),m=r(74688),g=r(32357),y=r(47531);async function w(t,e){const{account:w=t.account,batch:b=Boolean(t.batch?.multicall),blockNumber:v,blockTag:A="latest",accessList:E,data:x,gas:_,gasPrice:S,maxFeePerGas:M,maxPriorityFeePerGas:C,nonce:k,to:I,value:P,...O}=e,N=w?(0,n.T)(w):void 0;try{(0,y.F)(e);const r=(v?(0,h.eC)(v):void 0)||A,n=t.chain?.formatters?.transactionRequest?.format,s=(n||m.tG)({...(0,p.K)(O,{format:n}),from:N?.address,accessList:E,data:x,gas:_,gasPrice:S,maxFeePerGas:M,maxPriorityFeePerGas:C,nonce:k,to:I,value:P});if(b&&function({request:t}){const{data:e,to:r,...n}=t;return!(!e||e.startsWith("0x82ad56cb")||!r||Object.values(n).filter((t=>void 0!==t)).length>0)}({request:s}))try{return await async function(t,e){const{batchSize:r=1024,wait:n=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:s,blockTag:d="latest",data:f,multicallAddress:p,to:m}=e;let y=p;if(!y){if(!t.chain)throw new o.pZ;y=(0,u.L)({blockNumber:s,chain:t.chain,contract:"multicall3"})}const w=(s?(0,h.eC)(s):void 0)||d,{schedule:b}=(0,g.S)({id:`${t.uid}.${w}`,wait:n,shouldSplitBatch:t=>t.reduce(((t,{data:e})=>t+(e.length-2)),0)>2*r,fn:async e=>{const r=e.map((t=>({allowFailure:!0,callData:t.data,target:t.to}))),n=(0,l.R)({abi:i.F8,args:[r],functionName:"aggregate3"}),s=await t.request({method:"eth_call",params:[{data:n,to:y},w]});return(0,c.k)({abi:i.F8,args:[r],functionName:"aggregate3",data:s||"0x"})}}),[{returnData:v,success:A}]=await b({data:f,to:m});if(!A)throw new a.VQ({data:v});return"0x"===v?{data:void 0}:{data:v}}(t,{...s,blockNumber:v,blockTag:A})}catch(t){if(!(t instanceof o.pZ||t instanceof o.mm))throw t}const d=await t.request({method:"eth_call",params:r?[s,r]:[s]});return"0x"===d?{data:void 0}:{data:d}}catch(n){const i=function(t){if(!(t instanceof s.G))return;const e=t.walk();return"object"==typeof e.data?e.data.data:e.data}(n),{offchainLookup:o,offchainLookupSignature:c}=await Promise.resolve().then(r.bind(r,99770));if(i?.slice(0,10)===c&&I)return{data:await o(t,{data:i,to:I})};throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,f.k)(t,r);return e instanceof d.cj?t:e})();return new a.cg(n,{docsPath:e,...r})}(n,{...e,account:N,chain:t.chain})}}},43861:(t,e,r)=>{"use strict";r.d(e,{C:()=>l,X:()=>c});var n=r(15371),i=r(93714),s=r(79379),o=r(75016),a=r(24453);async function c(t,e){return l(t,e)}async function l(t,e){const{block:r,chain:c=t.chain,request:l,type:u="eip1559"}=e||{},h=await(async()=>"function"==typeof c?.fees?.baseFeeMultiplier?c.fees.baseFeeMultiplier({block:r,client:t,request:l}):c?.fees?.baseFeeMultiplier??1.2)();if(h<1)throw new n.Fz;const d=10**(h.toString().split(".")[1]?.length??0),f=t=>t*BigInt(Math.ceil(h*d))/BigInt(d),p=r||await(0,i.s)(t,o.Q,"getBlock")({});if("function"==typeof c?.fees?.estimateFeesPerGas)return c.fees.estimateFeesPerGas({block:r,client:t,multiply:f,request:l,type:u});if("eip1559"===u){if("bigint"!=typeof p.baseFeePerGas)throw new n.e5;const e=l?.maxPriorityFeePerGas?l.maxPriorityFeePerGas:await(0,s.h)(t,{block:p,chain:c,request:l}),r=f(p.baseFeePerGas);return{maxFeePerGas:l?.maxFeePerGas??r+e,maxPriorityFeePerGas:e}}return{gasPrice:l?.gasPrice??f(await(0,i.s)(t,a.o,"getGasPrice")({}))}}},84241:(t,e,r)=>{"use strict";r.d(e,{Q:()=>y});var n=r(14503),i=r(8998),s=r(92106),o=r(39625),a=r(67795),c=r(62027),l=r(33639);class u extends c.G{constructor(t,{account:e,docsPath:r,chain:n,data:i,gas:s,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:f,value:p}){const m=(0,l.xr)({from:e?.address,to:f,value:void 0!==p&&`${(0,o.d)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:void 0!==c&&`${(0,a.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,a.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,a.o)(h)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=t}}var h=r(26445),d=r(87469),f=r(61163),p=r(74688),m=r(47531),g=r(37397);async function y(t,e){const r=e.account??t.account;if(!r)throw new i.o({docsPath:"/docs/actions/public/estimateGas"});const o=(0,n.T)(r);try{const{accessList:r,blockNumber:n,blockTag:i,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:y,value:w,...b}="local"===o.type?await(0,g.Z)(t,e):e,v=(n?(0,s.eC)(n):void 0)||i;(0,m.F)(e);const A=t.chain?.formatters?.transactionRequest?.format,E=(A||p.tG)({...(0,f.K)(b,{format:A}),from:o.address,accessList:r,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:y,value:w}),x=await t.request({method:"eth_estimateGas",params:v?[E,v]:[E]});return BigInt(x)}catch(r){throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,d.k)(t,r);return e instanceof h.cj?t:e})();return new u(n,{docsPath:e,...r})}(r,{...e,account:o,chain:t.chain})}}},79379:(t,e,r)=>{"use strict";r.d(e,{_:()=>c,h:()=>l});var n=r(15371),i=r(95946),s=r(93714),o=r(75016),a=r(24453);async function c(t,e){return l(t,e)}async function l(t,e){const{block:r,chain:c=t.chain,request:l}=e||{};if("function"==typeof c?.fees?.defaultPriorityFee){const e=r||await(0,s.s)(t,o.Q,"getBlock")({});return c.fees.defaultPriorityFee({block:e,client:t,request:l})}if(void 0!==c?.fees?.defaultPriorityFee)return c?.fees?.defaultPriorityFee;try{const e=await t.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(e)}catch{const[e,i]=await Promise.all([r?Promise.resolve(r):(0,s.s)(t,o.Q,"getBlock")({}),(0,s.s)(t,a.o,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new n.e5;const c=i-e.baseFeePerGas;return c<0n?0n:c}}},75016:(t,e,r)=>{"use strict";r.d(e,{Q:()=>o});var n=r(79814),i=r(92106),s=r(43310);async function o(t,{blockHash:e,blockNumber:r,blockTag:o,includeTransactions:a}={}){const c=o??"latest",l=a??!1,u=void 0!==r?(0,i.eC)(r):void 0;let h=null;if(h=e?await t.request({method:"eth_getBlockByHash",params:[e,l]}):await t.request({method:"eth_getBlockByNumber",params:[u||c,l]}),!h)throw new n.f({blockHash:e,blockNumber:r});return(t.chain?.formatters?.block?.format||s.Z)(h)}},79524:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(95946);async function i(t){const e=await t.request({method:"eth_chainId"});return(0,n.ly)(e)}},24453:(t,e,r)=>{"use strict";async function n(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}r.d(e,{o:()=>n})},86162:(t,e,r)=>{"use strict";r.d(e,{K:()=>s});var n=r(95946),i=r(92106);async function s(t,{address:e,blockTag:r="latest",blockNumber:s}){const o=await t.request({method:"eth_getTransactionCount",params:[e,s?(0,i.eC)(s):r]});return(0,n.ly)(o)}},37397:(t,e,r)=>{"use strict";r.d(e,{Z:()=>f});var n=r(14503),i=r(43861),s=r(84241),o=r(75016),a=r(86162),c=r(8998),l=r(15371),u=r(93714),h=r(47531),d=r(82994);async function f(t,e){const{account:r=t.account,chain:f,gas:p,nonce:m,type:g}=e;if(!r)throw new c.o;const y=(0,n.T)(r),w=await(0,u.s)(t,o.Q,"getBlock")({blockTag:"latest"}),b={...e,from:y.address};if(void 0===m&&(b.nonce=await(0,u.s)(t,a.K,"getTransactionCount")({address:y.address,blockTag:"pending"})),void 0===g)try{b.type=(0,d.l)(b)}catch{b.type="bigint"==typeof w.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===b.type){const{maxFeePerGas:r,maxPriorityFeePerGas:n}=await(0,i.C)(t,{block:w,chain:f,request:b});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas{"use strict";async function n(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]})}r.d(e,{p:()=>n})},52736:(t,e,r)=>{"use strict";r.d(e,{T:()=>g});var n=r(14503),i=r(8998),s=r(33840),o=r(26445),a=r(33639),c=r(87469),l=r(61163),u=r(74688),h=r(93714),d=r(47531),f=r(79524),p=r(37397),m=r(99238);async function g(t,e){const{account:r=t.account,chain:g=t.chain,accessList:y,data:w,gas:b,gasPrice:v,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:x,to:_,value:S,...M}=e;if(!r)throw new i.o({docsPath:"/docs/actions/wallet/sendTransaction"});const C=(0,n.T)(r);try{let r;if((0,d.F)(e),null!==g&&(r=await(0,h.s)(t,f.L,"getChainId")({}),(0,s.q)({currentChainId:r,chain:g})),"local"===C.type){const e=await(0,h.s)(t,p.Z,"prepareTransactionRequest")({account:C,accessList:y,chain:g,data:w,gas:b,gasPrice:v,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:x,to:_,value:S,...M});r||(r=await(0,h.s)(t,f.L,"getChainId")({}));const n=g?.serializers?.transaction,i=await C.signTransaction({...e,chainId:r},{serializer:n});return await(0,h.s)(t,m.p,"sendRawTransaction")({serializedTransaction:i})}const n=t.chain?.formatters?.transactionRequest?.format,i=(n||u.tG)({...(0,l.K)(M,{format:n}),accessList:y,data:w,from:C.address,gas:b,gasPrice:v,maxFeePerGas:A,maxPriorityFeePerGas:E,nonce:x,to:_,value:S});return await t.request({method:"eth_sendTransaction",params:[i]})}catch(t){throw function(t,{docsPath:e,...r}){const n=(()=>{const e=(0,c.k)(t,r);return e instanceof o.cj?t:e})();return new a.mk(n,{docsPath:e,...r})}(t,{...e,account:C,chain:e.chain||void 0})}}},61877:(t,e,r)=>{"use strict";r.d(e,{n:()=>o});var n=r(77799),i=r(93714),s=r(52736);async function o(t,{abi:e,address:r,args:o,dataSuffix:a,functionName:c,...l}){const u=(0,n.R)({abi:e,args:o,functionName:c});return await(0,i.s)(t,s.T,"sendTransaction")({data:`${u}${a?a.replace("0x",""):""}`,to:r,...l})}},6891:(t,e,r)=>{"use strict";r.d(e,{w:()=>n});const n=(0,r(86164).a)({id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0})},66403:(t,e,r)=>{"use strict";r.d(e,{R:()=>n});const n=(0,r(86164).a)({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},35194:(t,e,r)=>{"use strict";r.d(e,{F:()=>n});const n=(0,r(86164).a)({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0})},9914:(t,e,r)=>{"use strict";r.d(e,{e:()=>a});var n=r(14503);let i,s=256;function o(t=11){if(!i||s+t>512){i="",s=0;for(let t=0;t<256;t++)i+=(256+256*Math.random()|0).toString(16).substring(1)}return i.substring(s,s+++t)}function a(t){const{batch:e,cacheTime:r=t.pollingInterval??4e3,key:i="base",name:s="Base Client",pollingInterval:a=4e3,type:c="base"}=t,l=t.chain,u=t.account?(0,n.T)(t.account):void 0,{config:h,request:d,value:f}=t.transport({chain:l,pollingInterval:a}),p={account:u,batch:e,cacheTime:r,chain:l,key:i,name:s,pollingInterval:a,request:d,transport:{...h,...f},type:c,uid:o()};return Object.assign(p,{extend:function t(e){return r=>{const n=r(e);for(const t in p)delete n[t];const i={...e,...n};return Object.assign(i,{extend:t(i)})}}(p)})}},91677:(t,e,r)=>{"use strict";r.d(e,{K:()=>E});var n=r(9914),i=r(79524),s=r(92106),o=r(30286),a=r(52736),c=r(45775),l=r(37397),u=r(99238),h=r(14503),d=r(8998),f=r(33840),p=r(74688),m=r(93714),g=r(47531),y=r(15102),w=r(96070),b=r(67829),v=r(61877);function A(t){return{addChain:e=>async function(t,{chain:e}){const{id:r,name:n,nativeCurrency:i,rpcUrls:o,blockExplorers:a}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:(0,s.eC)(r),chainName:n,nativeCurrency:i,rpcUrls:o.default.http,blockExplorerUrls:a?Object.values(a).map((({url:t})=>t)):void 0}]})}(t,e),deployContract:e=>function(t,{abi:e,args:r,bytecode:n,...i}){const s=(0,o.w)({abi:e,args:r,bytecode:n});return(0,a.T)(t,{...i,data:s})}(t,e),getAddresses:()=>async function(t){return"local"===t.account?.type?[t.account.address]:(await t.request({method:"eth_accounts"})).map((t=>(0,c.x)(t)))}(t),getChainId:()=>(0,i.L)(t),getPermissions:()=>async function(t){return await t.request({method:"wallet_getPermissions"})}(t),prepareTransactionRequest:e=>(0,l.Z)(t,e),requestAddresses:()=>async function(t){return(await t.request({method:"eth_requestAccounts"})).map((t=>(0,c.K)(t)))}(t),requestPermissions:e=>async function(t,e){return t.request({method:"wallet_requestPermissions",params:[e]})}(t,e),sendRawTransaction:e=>(0,u.p)(t,e),sendTransaction:e=>(0,a.T)(t,e),signMessage:e=>async function(t,{account:e=t.account,message:r}){if(!e)throw new d.o({docsPath:"/docs/actions/wallet/signMessage"});const n=(0,h.T)(e);if("local"===n.type)return n.signMessage({message:r});const i="string"==typeof r?(0,s.$G)(r):r.raw instanceof Uint8Array?(0,s.NC)(r.raw):r.raw;return t.request({method:"personal_sign",params:[i,n.address]})}(t,e),signTransaction:e=>async function(t,e){const{account:r=t.account,chain:n=t.chain,...o}=e;if(!r)throw new d.o({docsPath:"/docs/actions/wallet/signTransaction"});const a=(0,h.T)(r);(0,g.F)({account:a,...e});const c=await(0,m.s)(t,i.L,"getChainId")({});null!==n&&(0,f.q)({currentChainId:c,chain:n});const l=(n?.formatters||t.chain?.formatters)?.transactionRequest?.format||p.tG;return"local"===a.type?a.signTransaction({...o,chainId:c},{serializer:t.chain?.serializers?.transaction}):await t.request({method:"eth_signTransaction",params:[{...l(o),chainId:(0,s.eC)(c),from:a.address}]})}(t,e),signTypedData:e=>async function(t,{account:e=t.account,domain:r,message:n,primaryType:i,types:s}){if(!e)throw new d.o({docsPath:"/docs/actions/wallet/signTypedData"});const o=(0,h.T)(e),a={EIP712Domain:(0,b.cj)({domain:r}),...s};if((0,b.iC)({domain:r,message:n,primaryType:i,types:a}),"local"===o.type)return o.signTypedData({domain:r,primaryType:i,types:a,message:n});const c=(0,w.P)({domain:r??{},primaryType:i,types:a,message:n},((t,e)=>(0,y.v)(e)?e.toLowerCase():e));return t.request({method:"eth_signTypedData_v4",params:[o.address,c]})}(t,e),switchChain:e=>async function(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(e)}]})}(t,e),watchAsset:e=>async function(t,e){return await t.request({method:"wallet_watchAsset",params:e})}(t,e),writeContract:e=>(0,v.n)(t,e)}}function E(t){const{key:e="wallet",name:r="Wallet Client",transport:i}=t;return(0,n.e)({...t,key:e,name:r,transport:t=>i({...t,retryCount:0}),type:"walletClient"}).extend(A)}},31031:(t,e,r)=>{"use strict";r.d(e,{q:()=>i});var n=r(37029);function i({key:t,name:e,request:r,retryCount:i=3,retryDelay:s=150,timeout:o,type:a},c){return{config:{key:t,name:e,request:r,retryCount:i,retryDelay:s,timeout:o,type:a},request:(0,n.n)(r,{retryCount:i,retryDelay:s}),value:c}}},3980:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});var n=r(31031);function i(t,e={}){const{key:r="custom",name:i="Custom Provider",retryDelay:s}=e;return({retryCount:o})=>(0,n.q)({key:r,name:i,request:t.request.bind(t),retryCount:e.retryCount??o,retryDelay:s,type:"custom"})}},16693:(t,e,r)=>{"use strict";r.d(e,{$o:()=>l,F8:()=>n,X$:()=>c,du:()=>o,k3:()=>s,nZ:()=>a});const n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"}],s=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],a=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],l=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},21746:(t,e,r)=>{"use strict";r.d(e,{$:()=>n,Up:()=>i,hZ:()=>s});const n={1:"An `assert` condition failed.",17:"Arithmic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},84192:(t,e,r)=>{"use strict";r.d(e,{Bd:()=>s,Zn:()=>i,ez:()=>n});const n={gwei:9,wei:18},i={ether:-9,wei:9},s={ether:-18,gwei:-9}},34849:(t,e,r)=>{"use strict";r.d(e,{normalize:()=>nt});const n=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function i(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=2**31,d=h>>>1,f=h-1;let p=0;for(let t=0;t<31;t++)p=p<<1|u();let m=[],g=0,y=h;for(;;){let t=Math.floor(((p-g+1)*i-1)/y),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;g=o,y=1+a-o}let w=n-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return w+256+(t[a++]<<8|t[a++]);case 1:return w+t[a++];default:return e-1}}))}(function(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((t,r)=>e[t.charCodeAt(0)]=r));let r=t.length,n=new Uint8Array(6*r>>3);for(let i=0,s=0,o=0,a=0;i=8&&(n[s++]=a>>(o-=8));return n}(t)))}function s(t){return 1&t?~t>>1:t>>1}function o(t,e){let r=Array(t);for(let n=0,i=0;n{let e=a(t);if(e.length)return e}))}function l(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(d(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(f(r,t))}return e.flat()}function u(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function h(t,e,r){let n=Array(t).fill().map((()=>[]));for(let i=0;in[e].push(t)));return n}function d(t,e){let r=1+e(),n=e(),i=u(e);return h(i.length,1+t,e).flatMap(((t,e)=>{let[s,...o]=t;return Array(i[e]).fill().map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))}))}function f(t,e){return h(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}function p(t){return`{${function(t){return t.toString(16).toUpperCase().padStart(2,"0")}(t)}}`}function m(t){let e=t.length;if(e<4096)return String.fromCodePoint(...t);let r=[];for(let n=0;n>24&255}function E(t){return 16777215&t}let x,_,S,M;function C(t){return t>=y&&t<55204}function k(t,e){if(t>=w&&t<4371&&e>=b&&e<4470)return y+588*(t-w)+28*(e-b);if(C(t)&&e>v&&e<4547&&(t-y)%28==0)return t+(e-v);{let r=M.get(t);return r&&(r=r.get(e),r)?r:-1}}function I(t){x||function(){let t=i("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");x=new Map(c(t).flatMap(((t,e)=>t.map((t=>[t,e+1<<24]))))),_=new Set(a(t)),S=new Map,M=new Map;for(let[e,r]of l(t)){if(!_.has(e)&&2==r.length){let[t,n]=r,i=M.get(t);i||(i=new Map,M.set(t,i)),i.set(n,e)}S.set(e,r.reverse())}}();let e=[],r=[],n=!1;function s(t){let r=x.get(t);r&&(n=!0,t|=r),e.push(t)}for(let n of t)for(;;){if(n<128)e.push(n);else if(C(n)){let t=n-y,e=t%588/28|0,r=t%28;s(w+(t/588|0)),s(b+e),r>0&&s(v+r)}else{let t=S.get(n);t?r.push(...t):s(n)}if(!r.length)break;n=r.pop()}if(n&&e.length>1){let t=A(e[0]);for(let r=1;r0&&i>=t)0==t?(e.push(n,...r),r.length=0,n=o):r.push(o),i=t;else{let s=k(n,o);s>=0?n=s:0==i&&0==t?(e.push(n),n=o):(r.push(o),i=t)}}return n>=0&&e.push(n,...r),e}(I(t))}const N=t=>Array.from(t);function T(t,e){return t.P.has(e)||t.Q.has(e)}class R extends Array{get is_emoji(){return!0}}let B,L,U,j,D,F,z,H,$,q,W,V;function G(){if(B)return;let t=i("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI");const e=()=>a(t),r=()=>new Set(e());B=new Map(l(t)),L=r(),U=e(),j=new Set(e().map((t=>U[t]))),U=new Set(U),D=r(),F=r();let n=c(t),s=t();const o=()=>new Set(e().flatMap((t=>n[t])).concat(e()));z=u((e=>{let r=u(t).map((t=>t+96));if(r.length){let n=e>=s;return r[0]-=32,r=m(r),n&&(r=`Restricted[${r}]`),{N:r,P:o(),Q:o(),M:!t(),R:n}}})),H=r(),$=new Map;let h=e().concat(N(H)).sort(((t,e)=>t-e));h.forEach(((e,r)=>{let n=t(),i=h[r]=n?h[r-n]:{V:[],M:new Map};i.V.push(e),H.has(e)||$.set(e,i)}));for(let{V:t,M:e}of new Set($.values())){let r=[];for(let e of t){let t=z.filter((t=>T(t,e))),n=r.find((({G:e})=>t.some((t=>e.has(t)))));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(e),t.forEach((t=>n.G.add(t)))}let n=r.flatMap((t=>N(t.G)));for(let{G:t,V:i}of r){let r=new Set(n.filter((e=>!t.has(e))));for(let t of i)e.set(t,r)}}let d=new Set,f=new Set;const p=t=>d.has(t)?f.add(t):d.add(t);for(let t of z){for(let e of t.P)p(e);for(let e of t.Q)p(e)}for(let t of d)$.has(t)||f.has(t)||$.set(t,1);q=new Set(N(d).concat(N(P(d)))),W=function(t){let e=[],r=a(t);return function t({S:r,B:n},i,s){if(!(4&r&&s===i[i.length-1])){2&r&&(s=i[i.length-1]),1&r&&e.push(i);for(let e of n)for(let r of e.Q)t(e,[...i,r],s)}}(function e(n){return{S:t(),B:u((()=>{let n=a(t).map((t=>r[t]));if(n.length)return e(n)})),Q:n}}([]),[]),e}(t).map((t=>R.from(t))).sort(g),V=new Map;for(let t of W){let e=[V];for(let r of t){let t=e.map((t=>{let e=t.get(r);return e||(e=new Map,t.set(r,e)),e}));65039===r?e.push(...t):e=t}for(let r of e)r.V=t}}function K(t){return(J(t)?"":`${Z(Q([t]))} `)+p(t)}function Z(t){return`"${t}"‎`}function Q(t,e=p){let r=[];var n;n=t[0],G(),U.has(n)&&r.push("◌");let i=0,s=t.length;for(let n=0;nt.P.has(e)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function tt(t){return new Error(`illegal placement: ${t}`)}function et(t){return t.filter((t=>65039!=t))}function rt(t,e){let r,n=V,i=t.length;for(;i&&(n=n.get(t[--i]),n);){let{V:s}=n;s&&(r=s,e&&e.push(...t.slice(i).reverse()),t.length=i)}return r}function nt(t){return function(t){return function(t){return t.map((({input:e,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==t.length?n:`Invalid label ${Z(Q(e))}: ${n}`)}return m(n)})).join(".")}(function(t,e,r){if(!t)return[];G();let i=0;return t.split(".").map((t=>{let s=function(t){let e=[];for(let r=0,n=t.length;r0;)if(95!==t[--e])throw new Error("underscore allowed only at start")}(c),!(o.emoji=a>1||i[0].is_emoji)&&c.every((t=>t<128)))!function(t){if(t.length>=4&&45==t[2]&&45==t[3])throw new Error(`invalid label extension: "${m(t.slice(0,4))}"`)}(c),t="ASCII";else{let e=i.flatMap((t=>t.is_emoji?[]:t));if(e.length){if(U.has(c[0]))throw tt("leading combining mark");for(let t=1;tT(t,r)));if(!t.length)throw z.some((t=>T(t,r)))?X(e[0],r):Y(r);if(e=t,1==t.length)break}return e}(r);!function(t,e){for(let r of e)if(!T(t,r))throw X(t,r);if(t.M){let t=P(e);for(let e=1,r=t.length;e4)throw new Error(`excessive non-spacing marks: ${Z(Q(t.slice(e-1,i)))} (${i-e}/4)`);e=i}}}(s,e),function(t,e){let r,n=[];for(let t of e){let e=$.get(t);if(1===e)return;if(e){let n=e.M.get(t);if(r=r?r.filter((t=>n.has(t))):N(n),!r.length)return}else n.push(t)}if(r)for(let e of r)if(n.every((t=>T(e,t))))throw new Error(`whole-script confusable: ${t.N}/${e.N}`)}(s,r),t=s.N}else t="Emoji"}o.type=t}catch(t){o.error=t}return o}))}(t,O,et))}(t)}},57412:(t,e,r)=>{"use strict";r.d(e,{CI:()=>_,FM:()=>p,Gy:()=>E,KY:()=>v,M4:()=>h,MX:()=>w,S4:()=>b,SM:()=>A,cO:()=>a,dh:()=>x,fM:()=>o,fs:()=>d,gr:()=>u,hn:()=>S,lC:()=>m,mv:()=>g,wM:()=>M,wb:()=>l,xB:()=>c,xL:()=>y,yP:()=>f});var n=r(80522),i=r(39135),s=r(62027);class o extends s.G{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class a extends s.G{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class c extends s.G{constructor({data:t,params:e,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.h)(e,{includeName:!0})})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=r}}class l extends s.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class u extends s.G{constructor({expectedLength:t,givenLength:e,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class h extends s.G{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${(0,i.d)(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class d extends s.G{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class f extends s.G{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class p extends s.G{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class m extends s.G{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class g extends s.G{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class y extends s.G{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class w extends s.G{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class b extends s.G{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\`, and`,`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItemAmbiguityError"})}}class v extends s.G{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class A extends s.G{constructor({abiItem:t,data:e,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data: ${e} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=r,this.size=i}}class E extends s.G{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${(0,n.t)(t,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class x extends s.G{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class _ extends s.G{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class S extends s.G{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class M extends s.G{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},8998:(t,e,r)=>{"use strict";r.d(e,{o:()=>i});var n=r(62027);class i extends n.G{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:t,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},26087:(t,e,r)=>{"use strict";r.d(e,{b:()=>i});var n=r(62027);class i extends n.G{constructor({address:t}){super(`Address "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},62027:(t,e,r)=>{"use strict";r.d(e,{G:()=>i});var n=r(38673);class i extends Error{constructor(t,e={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,n.bo)()});const r=e.cause instanceof i?e.cause.details:e.cause?.message?e.cause.message:e.details,s=e.cause instanceof i&&e.cause.docsPath||e.docsPath;this.message=[t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...s?[`Docs: https://viem.sh${s}.html${e.docsSlug?`#${e.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),e.cause&&(this.cause=e.cause),this.details=r,this.docsPath=s,this.metaMessages=e.metaMessages,this.shortMessage=t}walk(t){return s(this,t)}}function s(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t?s(t.cause,e):e?null:t}},79814:(t,e,r)=>{"use strict";r.d(e,{f:()=>i});var n=r(62027);class i extends n.G{constructor({blockHash:t,blockNumber:e}){let r="Block";t&&(r=`Block at hash "${t}"`),e&&(r=`Block at number "${e}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},80377:(t,e,r)=>{"use strict";r.d(e,{Bk:()=>o,Yl:()=>s,hJ:()=>c,mm:()=>i,pZ:()=>a});var n=r(62027);class i extends n.G{constructor({blockNumber:t,chain:e,contract:r}){super(`Chain "${e.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class s extends n.G{constructor({chain:t,currentChainId:e}){super(`The current chain of the wallet (id: ${e}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${e}`,`Expected Chain ID: ${t.id} – ${t.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class o extends n.G{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class a extends n.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class c extends n.G{constructor({chainId:t}){super(`Chain ID "${t}" is invalid.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}},15980:(t,e,r)=>{"use strict";r.d(e,{cg:()=>g,uq:()=>y,Lu:()=>w,Dk:()=>b,VQ:()=>v});var n=r(14503),i=r(21746),s=r(86899),o=r(80522),a=r(96070);function c({abiItem:t,args:e,includeFunctionName:r=!0,includeName:n=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${r?t.name:""}(${t.inputs.map(((t,r)=>`${n&&t.name?`${t.name}: `:""}${"object"==typeof e[r]?(0,a.P)(e[r]):e[r]}`)).join(", ")})`}var l=r(40840),u=r(39625),h=r(67795),d=r(57412),f=r(62027),p=r(33639),m=r(38673);class g extends f.G{constructor(t,{account:e,docsPath:r,chain:i,data:s,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:d,to:f,value:m}){const g=e?(0,n.T)(e):void 0,y=(0,p.xr)({from:g?.address,to:f,value:void 0!==m&&`${(0,u.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:o,gasPrice:void 0!==a&&`${(0,h.o)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,h.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,h.o)(l)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=t}}class y extends f.G{constructor(t,{abi:e,args:r,contractAddress:n,docsPath:i,functionName:s,sender:a}){const u=(0,l.mE)({abi:e,args:r,name:s}),h=u?c({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,d=u?(0,o.t)(u,{includeName:!0}):void 0,f=(0,p.xr)({address:n&&(0,m.CR)(n),function:d,args:h&&"()"!==h&&`${[...Array(s?.length??0).keys()].map((()=>" ")).join("")}${h}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:t,docsPath:i,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Contract Call:",f].filter(Boolean)}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=e,this.args=r,this.cause=t,this.contractAddress=n,this.functionName=s,this.sender=a}}class w extends f.G{constructor({abi:t,data:e,functionName:r,message:n}){let a,l,u,h,f;if(e&&"0x"!==e)try{l=(0,s.p)({abi:t,data:e});const{abiItem:r,errorName:n,args:a}=l;if("Error"===n)h=a[0];else if("Panic"===n){const[t]=a;h=i.$[t]}else{const t=r?(0,o.t)(r,{includeName:!0}):void 0,e=r&&a?c({abiItem:r,args:a,includeFunctionName:!1,includeName:!1}):void 0;u=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(n?.length??0).keys()].map((()=>" ")).join("")}${e}`:""]}}catch(t){a=t}else n&&(h=n);a instanceof d.yP&&(f=a.signature,u=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(h&&"execution reverted"!==h||f?[`The contract function "${r}" reverted with the following ${f?"signature":"reason"}:`,h||f].join("\n"):`The contract function "${r}" reverted.`,{cause:a,metaMessages:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.reason=h,this.signature=f}}class b extends f.G{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class v extends f.G{constructor({data:t,message:e}){super(e||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},69760:(t,e,r)=>{"use strict";r.d(e,{$:()=>s,m:()=>i});var n=r(62027);class i extends n.G{constructor({offset:t,position:e,size:r}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class s extends n.G{constructor({size:t,targetSize:e,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}},87788:(t,e,r)=>{"use strict";r.d(e,{Cd:()=>s,J5:()=>i,M6:()=>o});var n=r(62027);class i extends n.G{constructor({max:t,min:e,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class s extends n.G{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class o extends n.G{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},15371:(t,e,r)=>{"use strict";r.d(e,{Fz:()=>s,e5:()=>o,ld:()=>a});var n=r(67795),i=r(62027);class s extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class o extends i.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class a extends i.G{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.o)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},26445:(t,e,r)=>{"use strict";r.d(e,{C_:()=>h,G$:()=>a,Hh:()=>o,M_:()=>s,WF:()=>d,ZI:()=>c,cj:()=>g,cs:()=>m,dR:()=>f,pZ:()=>p,se:()=>u,vU:()=>l});var n=r(67795),i=r(62027);class s extends i.G{constructor({cause:t,message:e}={}){const r=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${(0,n.o)(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${(0,n.o)(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends i.G{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class l extends i.G{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class d extends i.G{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${(0,n.o)(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`].join("\n"),{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},78863:(t,e,r)=>{"use strict";r.d(e,{Gg:()=>o,W5:()=>l,bs:()=>c,c9:()=>a});var n=r(96070),i=r(62027),s=r(38673);class o extends i.G{constructor({body:t,details:e,headers:r,status:i,url:o}){super("HTTP request failed.",{details:e,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,s.Gr)(o)}`,t&&`Request body: ${(0,n.P)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=i,this.url=o}}class a extends i.G{constructor({body:t,details:e,url:r}){super("WebSocket request failed.",{details:e,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WebSocketRequestError"})}}class c extends i.G{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${(0,s.Gr)(r)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code}}class l extends i.G{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,s.Gr)(e)}`,`Request body: ${(0,n.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},39028:(t,e,r)=>{"use strict";r.d(e,{B:()=>c,GD:()=>w,I0:()=>x,KB:()=>m,LX:()=>l,Og:()=>f,PE:()=>v,Pv:()=>y,Ts:()=>A,XS:()=>h,ab:()=>b,gS:()=>g,ir:()=>S,nY:()=>u,pT:()=>p,s7:()=>a,u5:()=>E,x3:()=>_,yR:()=>d});var n=r(62027),i=r(78863);class s extends n.G{constructor(t,{code:e,docsPath:r,metaMessages:n,shortMessage:s}){super(s,{cause:t,docsPath:r,metaMessages:n||t?.metaMessages}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t.name,this.code=t instanceof i.bs?t.code:e??-1}}class o extends s{constructor(t,e){super(t,e),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class a extends s{constructor(t){super(t,{code:a.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class c extends s{constructor(t){super(t,{code:c.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class l extends s{constructor(t){super(t,{code:l.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends s{constructor(t){super(t,{code:u.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class h extends s{constructor(t){super(t,{code:h.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends s{constructor(t){super(t,{code:d.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends s{constructor(t){super(t,{code:f.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{constructor(t){super(t,{code:p.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends s{constructor(t){super(t,{code:m.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends s{constructor(t){super(t,{code:g.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends s{constructor(t){super(t,{code:y.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class w extends s{constructor(t){super(t,{code:w.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class b extends o{constructor(t){super(t,{code:b.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends o{constructor(t){super(t,{code:v.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class A extends o{constructor(t){super(t,{code:A.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends o{constructor(t){super(t,{code:E.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class x extends o{constructor(t){super(t,{code:x.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class _ extends o{constructor(t){super(t,{code:_.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class S extends s{constructor(t){super(t,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},33639:(t,e,r)=>{"use strict";r.d(e,{Bh:()=>d,JC:()=>u,Yb:()=>f,j3:()=>l,mc:()=>p,mk:()=>h,vl:()=>c,xY:()=>a,xr:()=>o});var n=r(39625),i=r(67795),s=r(62027);function o(t){const e=Object.entries(t).map((([t,e])=>void 0===e||!1===e?null:[t,e])).filter(Boolean),r=e.reduce(((t,[e])=>Math.max(t,e.length)),0);return e.map((([t,e])=>` ${`${t}:`.padEnd(r+1)} ${e}`)).join("\n")}class a extends s.G{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class c extends s.G{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class l extends s.G{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class u extends s.G{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class h extends s.G{constructor(t,{account:e,docsPath:r,chain:s,data:a,gas:c,gasPrice:l,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:f,value:p}){const m=o({chain:s&&`${s?.name} (id: ${s?.id})`,from:e?.address,to:f,value:void 0!==p&&`${(0,n.d)(p)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:c,gasPrice:void 0!==l&&`${(0,i.o)(l)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:d});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=t}}class d extends s.G{constructor({blockHash:t,blockNumber:e,blockTag:r,hash:n,index:i}){let s="Transaction";r&&void 0!==i&&(s=`Transaction at block time "${r}" at index "${i}"`),t&&void 0!==i&&(s=`Transaction at block hash "${t}" at index "${i}"`),e&&void 0!==i&&(s=`Transaction at block number "${e}" at index "${i}"`),n&&(s=`Transaction with hash "${n}"`),super(`${s} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class f extends s.G{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class p extends s.G{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},38673:(t,e,r)=>{"use strict";r.d(e,{CR:()=>n,Gr:()=>i,bo:()=>s});const n=t=>t,i=t=>t,s=()=>"viem@1.21.3"},34450:(t,e,r)=>{"use strict";r.d(e,{r:()=>u});var n=r(57412),i=r(45775),s=r(39135),o=r(3972),a=r(61836),c=r(95946),l=r(45444);function u(t,e){if("0x"===e&&t.length>0)throw new n.wb;if((0,s.d)(e)&&(0,s.d)(e)<32)throw new n.xB({data:e,params:t,size:(0,s.d)(e)});return function({data:t,params:e}){const r=[];let i=0;for(let o=0;o=(0,s.d)(t))throw new n.xB({data:t,params:e,size:(0,s.d)(t)});const a=e[o],{consumed:c,value:l}=h({data:t,param:a,position:i});r.push(l),i+=c}return r}({data:e,params:t})}function h({data:t,param:e,position:r}){const s=(0,l.S)(e.type);if(s){const[n,i]=s;return function(t,{param:e,length:r,position:n}){if(!r){const r=(0,c.ly)((0,o.tP)(t,n,n+32,{strict:!0})),i=(0,c.ly)((0,o.tP)(t,r,r+32,{strict:!0}));let s=0;const a=[];for(let n=0;n!t)),i=n?[]:{};let s=0;if(d(e)){const a=(0,c.ly)((0,o.tP)(t,r,r+32,{strict:!0}));for(let r=0;r48?(0,c.y_)(t,{signed:r}):(0,c.ly)(t,{signed:r})}}(u,{param:e});if("address"===e.type)return function(t){return{consumed:32,value:(0,i.x)((0,o.tP)(t,-20))}}(u);if("bool"===e.type)return function(t){return{consumed:32,value:(0,c.XA)(t)}}(u);throw new n.CI(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}function d(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(d);const r=(0,l.S)(t.type);return!(!r||!d({...t,type:r[1]}))}},86899:(t,e,r)=>{"use strict";r.d(e,{p:()=>l});var n=r(21746),i=r(57412),s=r(3972),o=r(40552),a=r(34450),c=r(80522);function l({abi:t,data:e}){const r=(0,s.tP)(e,0,4);if("0x"===r)throw new i.wb;const l=[...t||[],n.Up,n.hZ].find((t=>"error"===t.type&&r===(0,o.o)((0,c.t)(t))));if(!l)throw new i.yP(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,a.r)(l.inputs,(0,s.tP)(e,4)):void 0,errorName:l.name}}},7210:(t,e,r)=>{"use strict";r.d(e,{k:()=>a});var n=r(57412),i=r(34450),s=r(40840);const o="/docs/contract/decodeFunctionResult";function a({abi:t,args:e,functionName:r,data:a}){let c=t[0];if(r&&(c=(0,s.mE)({abi:t,args:e,name:r}),!c))throw new n.xL(r,{docsPath:o});if("function"!==c.type)throw new n.xL(void 0,{docsPath:o});if(!c.outputs)throw new n.MX(c.name,{docsPath:o});const l=(0,i.r)(c.outputs,a);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},45444:(t,e,r)=>{"use strict";r.d(e,{E:()=>h,S:()=>p});var n=r(57412),i=r(26087),s=r(49321),o=r(57040),a=r(61769),c=r(39135),l=r(3972),u=r(92106);function h(t,e){if(t.length!==e.length)throw new n.fs({expectedLength:t.length,givenLength:e.length});const r=function({params:t,values:e}){const r=[];for(let n=0;n0?(0,o.zo)([e,t]):e}}if(s)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:(0,o.zo)(a.map((({encoded:t})=>t)))}}(e,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:e}){let r=!1;const n=[];for(let i=0;it)))}}(e,{param:t});if("address"===t.type)return function(t){if(!(0,s.U)(t))throw new i.b({address:t});return{dynamic:!1,encoded:(0,a.gc)(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){return{dynamic:!1,encoded:(0,a.gc)((0,u.C4)(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(t,{signed:e}){return{dynamic:!1,encoded:(0,u.eC)(t,{size:32,signed:e})}}(e,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,r]=e.type.split("bytes"),i=(0,c.d)(t);if(!r){let e=t;return i%32!=0&&(e=(0,a.gc)(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:(0,o.zo)([(0,a.gc)((0,u.eC)(i,{size:32})),e])}}if(i!==parseInt(r))throw new n.M4({expectedSize:parseInt(r),value:t});return{dynamic:!1,encoded:(0,a.gc)(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=(0,u.$G)(t),r=Math.ceil((0,c.d)(e)/32),n=[];for(let t=0;t{"use strict";r.d(e,{w:()=>a});var n=r(57412),i=r(57040),s=r(45444);const o="/docs/contract/encodeDeployData";function a({abi:t,args:e,bytecode:r}){if(!e||0===e.length)return r;const a=t.find((t=>"type"in t&&"constructor"===t.type));if(!a)throw new n.fM({docsPath:o});if(!("inputs"in a))throw new n.cO({docsPath:o});if(!a.inputs||0===a.inputs.length)throw new n.cO({docsPath:o});const c=(0,s.E)(a.inputs,e);return(0,i.SM)([r,c])}},77799:(t,e,r)=>{"use strict";r.d(e,{R:()=>l});var n=r(57412),i=r(57040),s=r(40552),o=r(45444),a=r(80522),c=r(40840);function l({abi:t,args:e,functionName:r}){let l=t[0];if(r&&(l=(0,c.mE)({abi:t,args:e,name:r}),!l))throw new n.xL(r,{docsPath:"/docs/contract/encodeFunctionData"});if("function"!==l.type)throw new n.xL(void 0,{docsPath:"/docs/contract/encodeFunctionData"});const u=(0,a.t)(l),h=(0,s.o)(u),d="inputs"in l&&l.inputs?(0,o.E)(l.inputs,e??[]):void 0;return(0,i.SM)([h,d??"0x"])}},80522:(t,e,r)=>{"use strict";r.d(e,{h:()=>s,t:()=>i});var n=r(57412);function i(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new n.wM(t.type);return`${t.name}(${s(t.inputs,{includeName:e})})`}function s(t,{includeName:e=!1}={}){return t?t.map((t=>function(t,{includeName:e}){return t.type.startsWith("tuple")?`(${s(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e}))).join(e?", ":","):""}},40840:(t,e,r)=>{"use strict";r.d(e,{mE:()=>c});var n=r(57412),i=r(15102),s=r(54092),o=r(40552),a=r(49321);function c({abi:t,args:e=[],name:r}){const a=(0,i.v)(r,{strict:!1}),c=t.filter((t=>a?"function"===t.type?(0,o.o)(t)===r:"event"===t.type&&(0,s.e)(t)===r:"name"in t&&t.name===r));if(0===c.length)return;if(1===c.length)return c[0];let h;for(const t of c)if("inputs"in t)if(e&&0!==e.length){if(t.inputs&&0!==t.inputs.length&&t.inputs.length===e.length&&e.every(((e,r)=>{const n="inputs"in t&&t.inputs[r];return!!n&&l(e,n)}))){if(h&&"inputs"in h&&h.inputs){const r=u(t.inputs,h.inputs,e);if(r)throw new n.S4({abiItem:t,type:r[0]},{abiItem:h,type:r[1]})}h=t}}else if(!t.inputs||0===t.inputs.length)return t;return h||c[0]}function l(t,e){const r=typeof t,n=e.type;switch(n){case"address":return(0,a.U)(t);case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:return"tuple"===n&&"components"in e?Object.values(e.components).every(((e,r)=>l(Object.values(t)[r],e))):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(n)?"number"===r||"bigint"===r:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===r||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&Array.isArray(t)&&t.every((t=>l(t,{...e,type:n.replace(/(\[[0-9]{0,}\])$/,"")})))}}function u(t,e,r){for(const n in t){const i=t[n],s=e[n];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return u(i.components,s.components,r[n]);const o=[i.type,s.type];if(o.includes("address")&&o.includes("bytes20")||(o.includes("address")&&o.includes("string")||o.includes("address")&&o.includes("bytes"))&&(0,a.U)(r[n]))return o}}},45775:(t,e,r)=>{"use strict";r.d(e,{K:()=>c,x:()=>a});var n=r(26087),i=r(11187),s=r(43199),o=r(49321);function a(t,e){const r=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),n=(0,s.w)((0,i.qX)(r),"bytes"),o=(e?r.substring(`${e}0x`.length):r).split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&o[t]&&(o[t]=o[t].toUpperCase()),(15&n[t>>1])>=8&&o[t+1]&&(o[t+1]=o[t+1].toUpperCase());return`0x${o.join("")}`}function c(t,e){if(!(0,o.U)(t))throw new n.b({address:t});return a(t,e)}},49321:(t,e,r)=>{"use strict";r.d(e,{U:()=>i});const n=/^0x[a-fA-F0-9]{40}$/;function i(t){return n.test(t)}},37029:(t,e,r)=>{"use strict";r.d(e,{n:()=>c,y:()=>a});var n=r(62027),i=r(78863),s=r(39028),o=r(7760);const a=t=>"code"in t?-1!==t.code&&-32004!==t.code&&-32005!==t.code&&-32042!==t.code&&-32603!==t.code:!!(t instanceof i.Gg&&t.status)&&403!==t.status&&408!==t.status&&413!==t.status&&429!==t.status&&500!==t.status&&502!==t.status&&503!==t.status&&504!==t.status;function c(t,{retryDelay:e=150,retryCount:r=3}={}){return async c=>(0,o.J)((async()=>{try{return await t(c)}catch(t){const e=t;switch(e.code){case s.s7.code:throw new s.s7(e);case s.B.code:throw new s.B(e);case s.LX.code:throw new s.LX(e);case s.nY.code:throw new s.nY(e);case s.XS.code:throw new s.XS(e);case s.yR.code:throw new s.yR(e);case s.Og.code:throw new s.Og(e);case s.pT.code:throw new s.pT(e);case s.KB.code:throw new s.KB(e);case s.gS.code:throw new s.gS(e);case s.Pv.code:throw new s.Pv(e);case s.GD.code:throw new s.GD(e);case s.ab.code:throw new s.ab(e);case s.PE.code:throw new s.PE(e);case s.Ts.code:throw new s.Ts(e);case s.u5.code:throw new s.u5(e);case s.I0.code:throw new s.I0(e);case s.x3.code:throw new s.x3(e);case 5e3:throw new s.ab(e);default:if(t instanceof n.G)throw t;throw new s.ir(e)}}}),{delay:({count:t,error:r})=>{if(r&&r instanceof i.Gg){const t=r?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*parseInt(t)}return~~(1<!a(t)})}},99770:(t,e,r)=>{"use strict";r.d(e,{offchainLookup:()=>b,offchainLookupSignature:()=>y});var n=r(76143),i=r(96070),s=r(62027),o=r(38673);class a extends s.G{constructor({callbackSelector:t,cause:e,data:r,extraData:n,sender:i,urls:s}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&[" Gateway URL(s):",...s.map((t=>` ${(0,o.Gr)(t)}`))],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${n}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class c extends s.G{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(e)}`,`Response: ${(0,i.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class l extends s.G{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}var u=r(78863),h=r(86899),d=r(45444),f=r(26087),p=r(49321),m=r(57040),g=r(15102);const y="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function b(t,{blockNumber:e,blockTag:r,data:s,to:o}){const{args:y}=(0,h.p)({data:s,abi:[w]}),[b,v,A,E,x]=y;try{if(!function(t,e){if(!(0,p.U)(t))throw new f.b({address:t});if(!(0,p.U)(e))throw new f.b({address:e});return t.toLowerCase()===e.toLowerCase()}(o,b))throw new l({sender:b,to:o});const s=await async function({data:t,sender:e,urls:r}){let n=new Error("An unknown error occurred.");for(let s=0;s{"use strict";r.d(e,{q:()=>i});var n=r(80377);function i({chain:t,currentChainId:e}){if(!t)throw new n.Bk;if(e!==t.id)throw new n.Yl({chain:t,currentChainId:e})}},86164:(t,e,r)=>{"use strict";function n(t,e={}){const{fees:r=t.fees,formatters:n=t.formatters,serializers:i=t.serializers}=e;return{...t,fees:r,formatters:n,serializers:i}}r.d(e,{a:()=>n})},47864:(t,e,r)=>{"use strict";r.d(e,{L:()=>i});var n=r(80377);function i({blockNumber:t,chain:e,contract:r}){const i=e?.contracts?.[r];if(!i)throw new n.mm({chain:e,contract:{name:r}});if(t&&i.blockCreated&&i.blockCreated>t)throw new n.mm({blockNumber:t,chain:e,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},57040:(t,e,r)=>{"use strict";function n(t){return"string"==typeof t[0]?i(t):function(t){let e=0;for(const r of t)e+=r.length;const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(t)}function i(t){return`0x${t.reduce(((t,e)=>t+e.replace("0x","")),"")}`}r.d(e,{SM:()=>i,zo:()=>n})},15102:(t,e,r)=>{"use strict";function n(t,{strict:e=!0}={}){return!!t&&"string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x"))}r.d(e,{v:()=>n})},61769:(t,e,r)=>{"use strict";r.d(e,{gc:()=>s,vk:()=>i});var n=r(69760);function i(t,{dir:e,size:r=32}={}){return"string"==typeof t?s(t,{dir:e,size:r}):function(t,{dir:e,size:r=32}={}){if(null===r)return t;if(t.length>r)throw new n.$({size:t.length,targetSize:r,type:"bytes"});const i=new Uint8Array(r);for(let n=0;n2*r)throw new n.$({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===e?"padEnd":"padStart"](2*r,"0")}`}},39135:(t,e,r)=>{"use strict";r.d(e,{d:()=>i});var n=r(15102);function i(t){return(0,n.v)(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}},3972:(t,e,r)=>{"use strict";r.d(e,{tP:()=>o});var n=r(69760),i=r(15102),s=r(39135);function o(t,e,r,{strict:n}={}){return(0,i.v)(t,{strict:!1})?function(t,e,r,{strict:n}={}){a(t,e);const i=`0x${t.replace("0x","").slice(2*(e??0),2*(r??t.length))}`;return n&&c(i,e,r),i}(t,e,r,{strict:n}):function(t,e,r,{strict:n}={}){a(t,e);const i=t.slice(e,r);return n&&c(i,e,r),i}(t,e,r,{strict:n})}function a(t,e){if("number"==typeof e&&e>0&&e>(0,s.d)(t)-1)throw new n.m({offset:e,position:"start",size:(0,s.d)(t)})}function c(t,e,r){if("number"==typeof e&&"number"==typeof r&&(0,s.d)(t)!==r-e)throw new n.m({offset:r,position:"end",size:(0,s.d)(t)})}},61836:(t,e,r)=>{"use strict";function n(t,{dir:e="left"}={}){let r="string"==typeof t?t.replace("0x",""):t,n=0;for(let t=0;tn})},95946:(t,e,r)=>{"use strict";r.d(e,{XA:()=>l,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>c});var n=r(87788),i=r(39135),s=r(61836),o=r(11187);function a(t,{size:e}){if((0,i.d)(t)>e)throw new n.M6({givenSize:(0,i.d)(t),maxSize:e})}function c(t,e={}){const{signed:r}=e;e.size&&a(t,{size:e.size});const n=BigInt(t);if(!r)return n;const i=(t.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function l(t,e={}){let r=t;if(e.size&&(a(r,{size:e.size}),r=(0,s.f)(r)),"0x00"===(0,s.f)(r))return!1;if("0x01"===(0,s.f)(r))return!0;throw new n.Cd(r)}function u(t,e={}){return Number(c(t,e))}function h(t,e={}){let r=(0,o.nr)(t);return e.size&&(a(r,{size:e.size}),r=(0,s.f)(r,{dir:"right"})),(new TextDecoder).decode(r)}},11187:(t,e,r)=>{"use strict";r.d(e,{O0:()=>l,nr:()=>h,qX:()=>d});var n=r(62027),i=r(15102),s=r(61769),o=r(95946),a=r(92106);const c=new TextEncoder;function l(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){return h((0,a.eC)(t,e))}(t,e):"boolean"==typeof t?function(t,e={}){const r=new Uint8Array(1);return r[0]=Number(t),"number"==typeof e.size?((0,o.Yf)(r,{size:e.size}),(0,s.vk)(r,{size:e.size})):r}(t,e):(0,i.v)(t)?h(t,e):d(t,e)}function u(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:void 0}function h(t,e={}){let r=t;e.size&&((0,o.Yf)(r,{size:e.size}),r=(0,s.vk)(r,{dir:"right",size:e.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);const a=i.length/2,c=new Uint8Array(a);for(let t=0,e=0;t{"use strict";r.d(e,{$G:()=>d,C4:()=>c,NC:()=>a,ci:()=>l,eC:()=>u});var n=r(87788),i=r(61769),s=r(95946);const o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t,e={}){return"number"==typeof t||"bigint"==typeof t?u(t,e):"string"==typeof t?d(t,e):"boolean"==typeof t?c(t,e):l(t,e)}function c(t,e={}){const r=`0x${Number(t)}`;return"number"==typeof e.size?((0,s.Yf)(r,{size:e.size}),(0,i.vk)(r,{size:e.size})):r}function l(t,e={}){let r="";for(let e=0;ea||o{"use strict";r.d(e,{k:()=>s});var n=r(62027),i=r(26445);function s(t,e){const r=(t.details||"").toLowerCase(),s=t.walk((t=>t.code===i.M_.code));return s instanceof n.G?new i.M_({cause:t,message:s.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:t,message:t.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:t,maxFeePerGas:e?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:t,maxFeePerGas:e?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:t,nonce:e?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:t,nonce:e?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:t,nonce:e?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:t}):i.WF.nodeMessage.test(r)?new i.WF({cause:t,gas:e?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:t,gas:e?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:t}):i.cs.nodeMessage.test(r)?new i.cs({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new i.cj({cause:t})}},43310:(t,e,r)=>{"use strict";r.d(e,{G:()=>o,Z:()=>s});var n=r(21366),i=r(6073);function s(t){const e=t.transactions?.map((t=>"string"==typeof t?t:(0,i.Tr)(t)));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,difficulty:t.difficulty?BigInt(t.difficulty):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const o=(0,n.$)("block",s)},61163:(t,e,r)=>{"use strict";function n(t,{format:e}){if(!e)return{};const r={};return function e(n){const i=Object.keys(n);for(const s of i)s in t&&(r[s]=t[s]),n[s]&&"object"==typeof n[s]&&!Array.isArray(n[s])&&e(n[s])}(e(t||{})),r}r.d(e,{K:()=>n})},21366:(t,e,r)=>{"use strict";function n(t,e){return({exclude:r,format:n})=>({exclude:r,format:t=>{const i=e(t);if(r)for(const t of r)delete i[t];return{...i,...n(t)}},type:t})}r.d(e,{$:()=>n})},53992:(t,e,r)=>{"use strict";function n(t,{args:e,eventName:r}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...r?{args:e,eventName:r}:{}}}r.d(e,{U:()=>n})},6073:(t,e,r)=>{"use strict";r.d(e,{Tr:()=>o,c8:()=>s,y_:()=>a});var n=r(95946),i=r(21366);const s={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function o(t){const e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?(0,n.ly)(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?(0,n.ly)(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?s[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof e.v){if(0n===e.v||27n===e.v)return 0;if(1n===e.v||28n===e.v)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),"legacy"===e.type&&(delete e.accessList,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),"eip2930"===e.type&&(delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e}const a=(0,i.$)("transaction",o)},30866:(t,e,r)=>{"use strict";r.d(e,{d:()=>l,f:()=>c});var n=r(95946),i=r(21366),s=r(53992),o=r(6073);const a={"0x0":"reverted","0x1":"success"};function c(t){return{...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map((t=>(0,s.U)(t))):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?(0,n.ly)(t.transactionIndex):null,status:t.status?a[t.status]:null,type:t.type?o.c8[t.type]||t.type:null}}const l=(0,i.$)("transactionReceipt",c)},74688:(t,e,r)=>{"use strict";r.d(e,{iy:()=>a,tG:()=>o});var n=r(92106),i=r(21366);const s={legacy:"0x0",eip2930:"0x1",eip1559:"0x2"};function o(t){return{...t,gas:void 0!==t.gas?(0,n.eC)(t.gas):void 0,gasPrice:void 0!==t.gasPrice?(0,n.eC)(t.gasPrice):void 0,maxFeePerGas:void 0!==t.maxFeePerGas?(0,n.eC)(t.maxFeePerGas):void 0,maxPriorityFeePerGas:void 0!==t.maxPriorityFeePerGas?(0,n.eC)(t.maxPriorityFeePerGas):void 0,nonce:void 0!==t.nonce?(0,n.eC)(t.nonce):void 0,type:void 0!==t.type?s[t.type]:void 0,value:void 0!==t.value?(0,n.eC)(t.value):void 0}}const a=(0,i.$)("transactionRequest",o)},93714:(t,e,r)=>{"use strict";function n(t,e,r){return n=>t[e.name||r]?.(n)??e(t,n)}r.d(e,{s:()=>n})},54092:(t,e,r)=>{"use strict";r.d(e,{e:()=>o});var n=r(11187),i=r(49574),s=r(43199);const o=t=>{return e=(t=>(0,i.r)(t))(t),(0,s.w)((0,n.O0)(e));var e}},40552:(t,e,r)=>{"use strict";r.d(e,{o:()=>a});var n=r(3972),i=r(11187),s=r(49574),o=r(43199);const a=t=>{return(0,n.tP)((e=(0,s.r)(t),(0,o.w)((0,i.O0)(e))),0,4);var e}},49574:(t,e,r)=>{"use strict";r.d(e,{r:()=>a});const n=/^tuple(?(\[(\d*)\])*)$/;function i(t){let e=t.type;if(n.test(t.type)&&"components"in t){e="(";const r=t.components.length;for(let n=0;n{var e;return function(t){let e=!0,r="",n=0,i="",s=!1;for(let o=0;o{"use strict";function n(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}r.d(e,{w:()=>I});const o=BigInt(2**32-1),a=BigInt(32);function c(t,e=!1){return e?{h:Number(t&o),l:Number(t>>a&o)}:{h:0|Number(t>>a&o),l:0|Number(t&o)}}if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function l(t){if("string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),!(t instanceof Uint8Array))throw new Error("expected Uint8Array, got "+typeof t);return t}class u{clone(){return this._cloneInto()}}const[h,d,f]=[[],[],[]],p=BigInt(0),m=BigInt(1),g=BigInt(2),y=BigInt(7),w=BigInt(256),b=BigInt(113);for(let t=0,e=m,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],h.push(2*(5*n+r)),d.push((t+1)*(t+2)/2%64);let i=p;for(let t=0;t<7;t++)e=(e<>y)*b)%w,e&g&&(i^=m<<(m<r>32?((t,e,r)=>e<>>64-r)(t,e,r):((t,e,r)=>t<>>32-r)(t,e,r),x=(t,e,r)=>r>32?((t,e,r)=>t<>>64-r)(t,e,r):((t,e,r)=>e<>>32-r)(t,e,r);class _ extends u{constructor(t,e,r,i=!1,s=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}keccak(){!function(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=E(s,o,1)^r[n],c=x(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=d[r],s=E(e,i,n),o=x(e,i,n),a=h[r];e=t[a],i=t[a+1],t[a]=s,t[a+1]=o}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=v[n],t[1]^=A[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){s(this);const{blockLen:e,state:r}=this,n=(t=l(t)).length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(function(t,e){i(t);const r=e.outputLen;if(t.lengtht().update(l(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}((()=>new _(136,1,32)));var M=r(15102),C=r(11187),k=r(92106);function I(t,e){const r=e||"hex",n=S((0,M.v)(t,{strict:!1})?(0,C.O0)(t):t);return"bytes"===r?n:(0,k.NC)(n)}},32357:(t,e,r)=>{"use strict";r.d(e,{S:()=>i});const n=new Map;function i({fn:t,id:e,shouldSplitBatch:r,wait:i=0,sort:s}){const o=async()=>{const e=c();a();const r=e.map((({args:t})=>t));0!==r.length&&t(r).then((t=>{s&&Array.isArray(t)&&t.sort(s);for(let r=0;r{for(let r=0;rn.delete(e),c=()=>n.get(e)||[],l=t=>n.set(e,[...c(),t]);return{flush:a,async schedule(t){const e={},n=new Promise(((t,r)=>{e.resolve=t,e.reject=r})),s=r?.([...c().map((({args:t})=>t)),t]);return s&&o(),c().length>0?(l({args:t,pendingPromise:e}),n):(l({args:t,pendingPromise:e}),setTimeout(o,i),n)}}}},7760:(t,e,r)=>{"use strict";r.d(e,{J:()=>i});var n=r(62914);function i(t,{delay:e=100,retryCount:r=2,shouldRetry:i=(()=>!0)}={}){return new Promise(((s,o)=>{const a=async({count:c=0}={})=>{try{const e=await t();s(e)}catch(t){if(c{const r="function"==typeof e?e({count:c,error:t}):e;r&&await(0,n.D)(r),a({count:c+1})})({error:t});o(t)}};a()}))}},96070:(t,e,r)=>{"use strict";r.d(e,{P:()=>n});const n=(t,e,r)=>JSON.stringify(t,((t,r)=>{const n="bigint"==typeof r?r.toString():r;return"function"==typeof e?e(t,n):n}),r)},47531:(t,e,r)=>{"use strict";r.d(e,{F:()=>c});var n=r(14503),i=r(26087),s=r(26445),o=r(33639),a=r(49321);function c(t){const{account:e,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:l,to:u}=t,h=e?(0,n.T)(e):void 0;if(h&&!(0,a.U)(h.address))throw new i.b({address:h.address});if(u&&!(0,a.U)(u))throw new i.b({address:u});if(void 0!==r&&(void 0!==c||void 0!==l))throw new o.xY;if(c&&c>2n**256n-1n)throw new s.Hh({maxFeePerGas:c});if(l&&c&&l>c)throw new s.cs({maxFeePerGas:c,maxPriorityFeePerGas:l})}},82994:(t,e,r)=>{"use strict";r.d(e,{l:()=>i});var n=r(33639);function i(t){if(t.type)return t.type;if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new n.j3({transaction:t})}},67829:(t,e,r)=>{"use strict";r.d(e,{cj:()=>h,iC:()=>u});var n=r(57412),i=r(26087),s=r(49321),o=r(39135),a=r(92106);const c=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,l=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function u({domain:t,message:e,primaryType:r,types:u}){const h=u,d=(t,e)=>{for(const r of t){const{name:t,type:u}=r,f=u,p=e[t],m=f.match(l);if(m&&("number"==typeof p||"bigint"==typeof p)){const[t,e,r]=m;(0,a.eC)(p,{signed:"int"===e,size:parseInt(r)/8})}if("address"===f&&"string"==typeof p&&!(0,s.U)(p))throw new i.b({address:p});const g=f.match(c);if(g){const[t,e]=g;if(e&&(0,o.d)(p)!==parseInt(e))throw new n.KY({expectedSize:parseInt(e),givenSize:(0,o.d)(p)})}const y=h[f];y&&d(y,p)}};if(h.EIP712Domain&&t&&d(h.EIP712Domain,t),"EIP712Domain"!==r){const t=h[r];d(t,e)}}function h({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},"number"==typeof t?.chainId&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}},39625:(t,e,r)=>{"use strict";r.d(e,{d:()=>s});var n=r(84192),i=r(15229);function s(t,e="wei"){return(0,i.b)(t,n.ez[e])}},67795:(t,e,r)=>{"use strict";r.d(e,{o:()=>s});var n=r(84192),i=r(15229);function s(t,e="wei"){return(0,i.b)(t,n.Zn[e])}},15229:(t,e,r)=>{"use strict";function n(t,e){let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");let[i,s]=[r.slice(0,r.length-e),r.slice(r.length-e)];return s=s.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${s?`.${s}`:""}`}r.d(e,{b:()=>n})},62914:(t,e,r)=>{"use strict";async function n(t){return new Promise((e=>setTimeout(e,t)))}r.d(e,{D:()=>n})},80661:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')}},i={};function s(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}return s.amdO={},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);s.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&r;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>o[t]=()=>r[t]));return o.default=()=>r,s.d(i,o),i},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s(68138)})(),t.exports=n()},9082:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(9569),i=r(8089),s=r(6551);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},1525:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(4632),i=r(219),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=f,n>c&&(n-=d,s+=o);const a=e,p=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[p]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},5134:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(4632),i=r(219),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),f=o(0,u),p=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(f,t,p,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"string",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:f,expand:p,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===p)v=u(t,g,b,f);else if("xof"===p)v=h(t,g,b,a,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=t}const A=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},4632:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(219),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function f(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function p(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=f,e.tonelliShanks=p,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?f(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*f(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>f(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s}},219:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),p=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=f(t),i=f(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=f())=>{i=a(p([0]),t),n=a(),0!==t.length&&(i=a(p([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},6551:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(4632),i=r(219),s=r(219),o=r(1525),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),f=BigInt(4);function p(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function f(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),f=r.mul(o,o),p=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),p=r.mul(t,p),m=r.sub(h,p),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,p),h=r.mul(h,m),l=r.add(l,h),p=r.mul(o,a),p=r.add(p,p),h=r.mul(p,m),c=r.sub(c,h),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const f=e.a,p=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),A=r.add(o,a);v=r.mul(v,A),A=r.add(m,g),v=r.sub(v,A),A=r.add(n,s);let E=r.add(o,c);return A=r.mul(A,E),E=r.add(m,b),A=r.sub(A,E),E=r.add(i,s),l=r.add(a,c),E=r.mul(E,l),l=r.add(g,b),E=r.sub(E,l),h=r.mul(f,A),l=r.mul(p,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(f,b),A=r.mul(p,A),g=r.add(g,b),b=r.sub(m,b),b=r.mul(f,b),A=r.add(A,b),m=r.mul(g,A),u=r.add(u,m),m=r.mul(E,A),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(E,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(p(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,f=this;for(;o>l||c>l;)o&u&&(h=h.add(f)),c&u&&(d=d.add(f)),f=f.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){p(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:f}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,p),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=p,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function f(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=p({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function A(t){return t>c>>u}const E=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class x{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new x(E(t,0,e),E(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new x(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new x(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=f(-o*h),p=f(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const _={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=r.randomBytes(a.BYTES+8),e=n.hashToPrivateScalar(t,c);return i.numberToBytesBE(e,r.nByteLength)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function S(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const M=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return f(M(t))},k=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:p}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),E=[I(v),I(w)];if(null!=p){const t=!0===p?c(a.BYTES):p;E.push((0,s.ensureBytes)("extraEntropy",t,a.BYTES))}const _=i.concatBytes(...E),S=w;return{seed:_,k2sig:function(t){const e=M(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=f(n.x);if(i===l)return;const s=f(r*f(S+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&A(s)&&(a=function(t){return A(t)?f(-t):t}(s),o^=1),new x(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=x.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=x.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new x(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:p}=u,y=C(n),w=m(p),b=f(y*w),v=f(d*w),A=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!A&&f(A.x)===d},ProjectivePoint:g,Signature:x,utils:_}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:f}=r(s,l);h=t.mul(i,n),h=t.mul(h,f),u=t.cmov(u,o,d),h=t.cmov(h,f,d);const p=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,p),u=t.div(u,a),{x:u,y:h}}}},3497:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(3061),i=r(8089),s=r(4632),o=r(6551),a=r(219),c=r(5134),l=r(9082),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),f=BigInt(2),p=(t,e)=>(t+e/f)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,p=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(p,r,e)*d%e,y=(0,s.pow2)(m,f,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,A=(0,s.pow2)(v,l,e)*v%e,E=(0,s.pow2)(A,c,e)*b%e,x=(0,s.pow2)(E,r,e)*d%e,_=(0,s.pow2)(x,a,e)*w%e,S=(0,s.pow2)(_,n,e)*h%e,M=(0,s.pow2)(S,f,e);if(!g.eql(g.sqr(M),t))throw new Error("Cannot find square root");return M}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*t,e),l=p(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),f=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=f>a;if(m&&(u=e-u),g&&(f=e-f),u>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:f}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const A=t=>t.toRawBytes(!0).slice(1),E=t=>(0,a.numberToBytesBE)(t,32),x=t=>(0,s.mod)(t,u),_=t=>(0,s.mod)(t,h),S=e.secp256k1.ProjectivePoint;function M(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:_(-r),bytes:A(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=x(t*t);let r=m(x(e*t+BigInt(7)));r%f!==y&&(r=x(-r));const n=new S(t,r,d);return n.assertValidity(),n}function k(...t){return _((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(u=r)&&y(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),O=(()=>(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),N=(()=>(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();e.hashToCurve=N.hashToCurve,e.encodeToCurve=N.encodeToCurve},7320:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(7320),i=r(8089);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){n.default.exists(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;s>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.fromBig=i,e.split=s,e.toBig=(t,e)=>BigInt(t>>>0)<>>0),e.add=o;const a={fromBig:i,split:s,toBig:e.toBig,shrSH:(t,e,r)=>t>>>r,shrSL:(t,e,r)=>t<<32-r|e>>>r,rotrSH:(t,e,r)=>t>>>r|e<<32-r,rotrSL:(t,e,r)=>t<<32-r|e>>>r,rotrBH:(t,e,r)=>t<<64-r|e>>>r-32,rotrBL:(t,e,r)=>t>>>r-32|e<<64-r,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:(t,e,r)=>t<>>32-r,rotlSL:(t,e,r)=>e<>>32-r,rotlBH:(t,e,r)=>e<>>64-r,rotlBL:(t,e,r)=>t<>>64-r,add:o,add3L:(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),add3H:(t,e,r,n)=>e+r+n+(t/2**32|0)|0,add4L:(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),add4H:(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,add5H:(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0,add5L:(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};e.default=a},1945:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},9569:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(7320),i=r(8089);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,n.default.hash(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},3061:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(7505),i=r(8089),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&h^~p&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;f=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var p;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,n,a,l,u,h,d,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},5426:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(7320),i=r(6873),s=r(8089),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),f=BigInt(256),p=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*p)%f,e&h&&(i^=u<<(u<r>32?i.default.rotlBH(t,e,r):i.default.rotlSH(t,e,r),w=(t,e,r)=>r>32?i.default.rotlBL(t,e,r):i.default.rotlSL(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,n.default.number(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){n.default.exists(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return n.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(n.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const A=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=A(6,144,28),e.sha3_256=A(6,136,32),e.sha3_384=A(6,104,48),e.sha3_512=A(6,72,64),e.keccak_224=A(1,144,28),e.keccak_256=A(1,136,32),e.keccak_384=A(1,104,48),e.keccak_512=A(1,72,64);const E=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=E(31,168,16),e.shake256=E(31,136,32)},8089:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(1945),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}},e.checkOpts=function(t,e){if(void 0!==e&&("object"!=typeof e||(r=e,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new Error("Options should be object or undefined");var r;return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},8099:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7117);function i(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>8,e[r+1]=t>>>0,e}function s(t,e,r){return void 0===e&&(e=new Uint8Array(2)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e}function o(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function a(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function c(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function l(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function u(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>24,e[r+1]=t>>>16,e[r+2]=t>>>8,e[r+3]=t>>>0,e}function h(t,e,r){return void 0===e&&(e=new Uint8Array(4)),void 0===r&&(r=0),e[r+0]=t>>>0,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24,e}function d(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),u(t/4294967296>>>0,e,r),u(t>>>0,e,r+4),e}function f(t,e,r){return void 0===e&&(e=new Uint8Array(8)),void 0===r&&(r=0),h(t>>>0,e,r),h(t/4294967296>>>0,e,r+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=s,e.writeInt16LE=s,e.readInt32BE=o,e.readUint32BE=a,e.readInt32LE=c,e.readUint32LE=l,e.writeUint32BE=u,e.writeInt32BE=u,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var r=o(t,e),n=o(t,e+4);return 4294967296*r+n-4294967296*(n>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*a(t,e)+a(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var r=c(t,e);return 4294967296*c(t,e+4)+r-4294967296*(r>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var r=l(t,e);return 4294967296*l(t,e+4)+r},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=f,e.writeInt64LE=f,e.readUintBE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,s=t/8+r-1;s>=r;s--)n+=e[s]*i,i*=256;return n},e.readUintLE=function(t,e,r){if(void 0===r&&(r=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-r)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,s=r;s=i;o--)r[o]=e/s&255,s*=256;return r},e.writeUintLE=function(t,e,r,i){if(void 0===r&&(r=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var s=1,o=i;o{"use strict";var n=r(5439),i=r(3027),s=r(7309),o=r(8099),a=r(4153);e.Cv=32,e.WH=12,e.pg=16;var c=new Uint8Array(16),l=function(){function t(t){if(this.nonceLength=e.WH,this.tagLength=e.pg,t.length!==e.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(t,o.length-t.length);var a=new Uint8Array(32);n.stream(this._key,o,a,4);var c,l=e.length+this.tagLength;if(i){if(i.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");c=i}else c=new Uint8Array(l);return n.streamXOR(this._key,o,e,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),a,c.subarray(0,c.length-this.tagLength),r),s.wipe(o),c},t.prototype.open=function(t,e,r,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&a.update(c.subarray(n.length%16))),a.update(r),r.length%16>0&&a.update(c.subarray(r.length%16));var l=new Uint8Array(8);n&&o.writeUint64LE(n.length,l),a.update(l),o.writeUint64LE(r.length,l),a.update(l);for(var u=a.digest(),h=0;h{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8099),i=r(7309);function s(t,e,r){for(var i=1634760805,s=857760878,o=2036477234,a=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],l=r[7]<<24|r[6]<<16|r[5]<<8|r[4],u=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],d=r[19]<<24|r[18]<<16|r[17]<<8|r[16],f=r[23]<<24|r[22]<<16|r[21]<<8|r[20],p=r[27]<<24|r[26]<<16|r[25]<<8|r[24],m=r[31]<<24|r[30]<<16|r[29]<<8|r[28],g=e[3]<<24|e[2]<<16|e[1]<<8|e[0],y=e[7]<<24|e[6]<<16|e[5]<<8|e[4],w=e[11]<<24|e[10]<<16|e[9]<<8|e[8],b=e[15]<<24|e[14]<<16|e[13]<<8|e[12],v=i,A=s,E=o,x=a,_=c,S=l,M=u,C=h,k=d,I=f,P=p,O=m,N=g,T=y,R=w,B=b,L=0;L<20;L+=2)_=(_^=k=k+(N=(N^=v=v+_|0)>>>16|N<<16)|0)>>>20|_<<12,S=(S^=I=I+(T=(T^=A=A+S|0)>>>16|T<<16)|0)>>>20|S<<12,M=(M^=P=P+(R=(R^=E=E+M|0)>>>16|R<<16)|0)>>>20|M<<12,C=(C^=O=O+(B=(B^=x=x+C|0)>>>16|B<<16)|0)>>>20|C<<12,M=(M^=P=P+(R=(R^=E=E+M|0)>>>24|R<<8)|0)>>>25|M<<7,C=(C^=O=O+(B=(B^=x=x+C|0)>>>24|B<<8)|0)>>>25|C<<7,S=(S^=I=I+(T=(T^=A=A+S|0)>>>24|T<<8)|0)>>>25|S<<7,_=(_^=k=k+(N=(N^=v=v+_|0)>>>24|N<<8)|0)>>>25|_<<7,S=(S^=P=P+(B=(B^=v=v+S|0)>>>16|B<<16)|0)>>>20|S<<12,M=(M^=O=O+(N=(N^=A=A+M|0)>>>16|N<<16)|0)>>>20|M<<12,C=(C^=k=k+(T=(T^=E=E+C|0)>>>16|T<<16)|0)>>>20|C<<12,_=(_^=I=I+(R=(R^=x=x+_|0)>>>16|R<<16)|0)>>>20|_<<12,C=(C^=k=k+(T=(T^=E=E+C|0)>>>24|T<<8)|0)>>>25|C<<7,_=(_^=I=I+(R=(R^=x=x+_|0)>>>24|R<<8)|0)>>>25|_<<7,M=(M^=O=O+(N=(N^=A=A+M|0)>>>24|N<<8)|0)>>>25|M<<7,S=(S^=P=P+(B=(B^=v=v+S|0)>>>24|B<<8)|0)>>>25|S<<7;n.writeUint32LE(v+i|0,t,0),n.writeUint32LE(A+s|0,t,4),n.writeUint32LE(E+o|0,t,8),n.writeUint32LE(x+a|0,t,12),n.writeUint32LE(_+c|0,t,16),n.writeUint32LE(S+l|0,t,20),n.writeUint32LE(M+u|0,t,24),n.writeUint32LE(C+h|0,t,28),n.writeUint32LE(k+d|0,t,32),n.writeUint32LE(I+f|0,t,36),n.writeUint32LE(P+p|0,t,40),n.writeUint32LE(O+m|0,t,44),n.writeUint32LE(N+g|0,t,48),n.writeUint32LE(T+y|0,t,52),n.writeUint32LE(R+w|0,t,56),n.writeUint32LE(B+b|0,t,60)}function o(t,e,r,n,o){if(void 0===o&&(o=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=o,e.stream=function(t,e,r,n){return void 0===n&&(n=0),i.wipe(r),o(t,e,r,r,n)}},4153:(t,e)=>{"use strict";function r(t,e){if(t.length!==e.length)return 0;for(var r=0,n=0;n>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,r){return~(t-1)&e|t-1&r},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},1050:(t,e,r)=>{"use strict";e.Xx=e._w=e.aP=e.KS=e.jQ=void 0;r(1416);const n=r(3350);r(7309);function i(t){const e=new Float64Array(16);if(t)for(let r=0;r>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,d(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}function p(t){const e=new Uint8Array(32);return f(e,t),1&e[0]}function m(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]+r[n]}function g(t,e,r){for(let n=0;n<16;n++)t[n]=e[n]-r[n]}function y(t,e,r){let n,i,s=0,o=0,a=0,c=0,l=0,u=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,w=0,b=0,v=0,A=0,E=0,x=0,_=0,S=0,M=0,C=0,k=0,I=0,P=0,O=0,N=0,T=0,R=0,B=0,L=r[0],U=r[1],j=r[2],D=r[3],F=r[4],z=r[5],H=r[6],$=r[7],q=r[8],W=r[9],V=r[10],G=r[11],K=r[12],Z=r[13],Q=r[14],J=r[15];n=e[0],s+=n*L,o+=n*U,a+=n*j,c+=n*D,l+=n*F,u+=n*z,h+=n*H,d+=n*$,f+=n*q,p+=n*W,m+=n*V,g+=n*G,y+=n*K,w+=n*Z,b+=n*Q,v+=n*J,n=e[1],o+=n*L,a+=n*U,c+=n*j,l+=n*D,u+=n*F,h+=n*z,d+=n*H,f+=n*$,p+=n*q,m+=n*W,g+=n*V,y+=n*G,w+=n*K,b+=n*Z,v+=n*Q,A+=n*J,n=e[2],a+=n*L,c+=n*U,l+=n*j,u+=n*D,h+=n*F,d+=n*z,f+=n*H,p+=n*$,m+=n*q,g+=n*W,y+=n*V,w+=n*G,b+=n*K,v+=n*Z,A+=n*Q,E+=n*J,n=e[3],c+=n*L,l+=n*U,u+=n*j,h+=n*D,d+=n*F,f+=n*z,p+=n*H,m+=n*$,g+=n*q,y+=n*W,w+=n*V,b+=n*G,v+=n*K,A+=n*Z,E+=n*Q,x+=n*J,n=e[4],l+=n*L,u+=n*U,h+=n*j,d+=n*D,f+=n*F,p+=n*z,m+=n*H,g+=n*$,y+=n*q,w+=n*W,b+=n*V,v+=n*G,A+=n*K,E+=n*Z,x+=n*Q,_+=n*J,n=e[5],u+=n*L,h+=n*U,d+=n*j,f+=n*D,p+=n*F,m+=n*z,g+=n*H,y+=n*$,w+=n*q,b+=n*W,v+=n*V,A+=n*G,E+=n*K,x+=n*Z,_+=n*Q,S+=n*J,n=e[6],h+=n*L,d+=n*U,f+=n*j,p+=n*D,m+=n*F,g+=n*z,y+=n*H,w+=n*$,b+=n*q,v+=n*W,A+=n*V,E+=n*G,x+=n*K,_+=n*Z,S+=n*Q,M+=n*J,n=e[7],d+=n*L,f+=n*U,p+=n*j,m+=n*D,g+=n*F,y+=n*z,w+=n*H,b+=n*$,v+=n*q,A+=n*W,E+=n*V,x+=n*G,_+=n*K,S+=n*Z,M+=n*Q,C+=n*J,n=e[8],f+=n*L,p+=n*U,m+=n*j,g+=n*D,y+=n*F,w+=n*z,b+=n*H,v+=n*$,A+=n*q,E+=n*W,x+=n*V,_+=n*G,S+=n*K,M+=n*Z,C+=n*Q,k+=n*J,n=e[9],p+=n*L,m+=n*U,g+=n*j,y+=n*D,w+=n*F,b+=n*z,v+=n*H,A+=n*$,E+=n*q,x+=n*W,_+=n*V,S+=n*G,M+=n*K,C+=n*Z,k+=n*Q,I+=n*J,n=e[10],m+=n*L,g+=n*U,y+=n*j,w+=n*D,b+=n*F,v+=n*z,A+=n*H,E+=n*$,x+=n*q,_+=n*W,S+=n*V,M+=n*G,C+=n*K,k+=n*Z,I+=n*Q,P+=n*J,n=e[11],g+=n*L,y+=n*U,w+=n*j,b+=n*D,v+=n*F,A+=n*z,E+=n*H,x+=n*$,_+=n*q,S+=n*W,M+=n*V,C+=n*G,k+=n*K,I+=n*Z,P+=n*Q,O+=n*J,n=e[12],y+=n*L,w+=n*U,b+=n*j,v+=n*D,A+=n*F,E+=n*z,x+=n*H,_+=n*$,S+=n*q,M+=n*W,C+=n*V,k+=n*G,I+=n*K,P+=n*Z,O+=n*Q,N+=n*J,n=e[13],w+=n*L,b+=n*U,v+=n*j,A+=n*D,E+=n*F,x+=n*z,_+=n*H,S+=n*$,M+=n*q,C+=n*W,k+=n*V,I+=n*G,P+=n*K,O+=n*Z,N+=n*Q,T+=n*J,n=e[14],b+=n*L,v+=n*U,A+=n*j,E+=n*D,x+=n*F,_+=n*z,S+=n*H,M+=n*$,C+=n*q,k+=n*W,I+=n*V,P+=n*G,O+=n*K,N+=n*Z,T+=n*Q,R+=n*J,n=e[15],v+=n*L,A+=n*U,E+=n*j,x+=n*D,_+=n*F,S+=n*z,M+=n*H,C+=n*$,k+=n*q,I+=n*W,P+=n*V,O+=n*G,N+=n*K,T+=n*Z,R+=n*Q,B+=n*J,s+=38*A,o+=38*E,a+=38*x,c+=38*_,l+=38*S,u+=38*M,h+=38*C,d+=38*k,f+=38*I,p+=38*P,m+=38*O,g+=38*N,y+=38*T,w+=38*R,b+=38*B,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-65536*i,n=o+i+65535,i=Math.floor(n/65536),o=n-65536*i,n=a+i+65535,i=Math.floor(n/65536),a=n-65536*i,n=c+i+65535,i=Math.floor(n/65536),c=n-65536*i,n=l+i+65535,i=Math.floor(n/65536),l=n-65536*i,n=u+i+65535,i=Math.floor(n/65536),u=n-65536*i,n=h+i+65535,i=Math.floor(n/65536),h=n-65536*i,n=d+i+65535,i=Math.floor(n/65536),d=n-65536*i,n=f+i+65535,i=Math.floor(n/65536),f=n-65536*i,n=p+i+65535,i=Math.floor(n/65536),p=n-65536*i,n=m+i+65535,i=Math.floor(n/65536),m=n-65536*i,n=g+i+65535,i=Math.floor(n/65536),g=n-65536*i,n=y+i+65535,i=Math.floor(n/65536),y=n-65536*i,n=w+i+65535,i=Math.floor(n/65536),w=n-65536*i,n=b+i+65535,i=Math.floor(n/65536),b=n-65536*i,n=v+i+65535,i=Math.floor(n/65536),v=n-65536*i,s+=i-1+37*(i-1),t[0]=s,t[1]=o,t[2]=a,t[3]=c,t[4]=l,t[5]=u,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=g,t[12]=y,t[13]=w,t[14]=b,t[15]=v}function w(t,e){y(t,e,e)}function b(t,e){const r=i(),n=i(),s=i(),o=i(),c=i(),l=i(),u=i(),h=i(),d=i();g(r,t[1],t[0]),g(d,e[1],e[0]),y(r,r,d),m(n,t[0],t[1]),m(d,e[0],e[1]),y(n,n,d),y(s,t[3],e[3]),y(s,s,a),y(o,t[2],e[2]),m(o,o,o),g(c,n,r),g(l,o,s),m(u,o,s),m(h,n,r),y(t[0],c,l),y(t[1],h,u),y(t[2],u,l),y(t[3],c,h)}function v(t,e,r){for(let n=0;n<4;n++)d(t[n],e[n],r)}function A(t,e){const r=i(),n=i(),s=i();(function(t,e){const r=i();let n;for(n=0;n<16;n++)r[n]=e[n];for(n=253;n>=0;n--)w(r,r),2!==n&&4!==n&&y(r,r,e);for(n=0;n<16;n++)t[n]=r[n]})(s,e[2]),y(r,e[0],s),y(n,e[1],s),f(t,n),t[31]^=p(r)<<7}function E(t,e){const r=[i(),i(),i(),i()];u(r[0],c),u(r[1],l),u(r[2],o),y(r[3],c,l),function(t,e,r){u(t[0],s),u(t[1],o),u(t[2],o),u(t[3],s);for(let n=255;n>=0;--n){const i=r[n/8|0]>>(7&n)&1;v(t,e,i),b(e,t),b(t,t),v(t,e,i)}}(t,r,e)}e._w=function(t){if(t.length!==e.aP)throw new Error(`ed25519: seed must be ${e.aP} bytes`);const r=(0,n.hash)(t);r[0]&=248,r[31]&=127,r[31]|=64;const s=new Uint8Array(32),o=[i(),i(),i(),i()];E(o,r),A(s,o);const a=new Uint8Array(64);return a.set(t),a.set(s,32),{publicKey:s,secretKey:a}};const x=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 _(t,e){let r,n,i,s;for(n=63;n>=32;--n){for(r=0,i=n-32,s=n-12;i>4)*x[i],r=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=r*x[i];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function S(t){const e=new Float64Array(64);for(let r=0;r<64;r++)e[r]=t[r];for(let e=0;e<64;e++)t[e]=0;_(t,e)}e.Xx=function(t,e){const r=new Float64Array(64),s=[i(),i(),i(),i()],o=(0,n.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const a=new Uint8Array(64);a.set(o.subarray(32),32);const c=new n.SHA512;c.update(a.subarray(32)),c.update(e);const l=c.digest();c.clean(),S(l),E(s,l),A(a,s),c.reset(),c.update(a.subarray(0,32)),c.update(t.subarray(32)),c.update(e);const u=c.digest();S(u);for(let t=0;t<32;t++)r[t]=l[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)r[t+e]+=u[t]*o[e];return _(a.subarray(32),r),a}},9984:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSerializableHash=function(t){return void 0!==t.saveState&&void 0!==t.restoreState&&void 0!==t.cleanSavedState}},512:(t,e,r)=>{"use strict";var n=r(5629),i=r(7309),s=function(){function t(t,e,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var s=n.hmac(this._hash,r,e);this._hmac=new n.HMAC(t,s),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9984),i=r(4153),s=r(7309),o=function(){function t(t,e){this._finished=!1,this._inner=new t,this._outer=new t,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);e.length>this.blockSize?this._inner.update(e).finish(r).clean():r.set(e);for(var i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(t,e){var r=65535&t,n=65535&e;return r*n+((t>>>16&65535)*n+r*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},3027:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4153),i=r(7309);e.DIGEST_LENGTH=16;var s=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=t[0]|t[1]<<8;this._r[0]=8191&r;var n=t[2]|t[3]<<8;this._r[1]=8191&(r>>>13|n<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(n>>>10|i<<6);var s=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|s<<9);var o=t[8]|t[9]<<8;this._r[4]=255&(s>>>4|o<<12),this._r[5]=o>>>1&8190;var a=t[10]|t[11]<<8;this._r[6]=8191&(o>>>14|a<<2);var c=t[12]|t[13]<<8;this._r[7]=8065&(a>>>11|c<<5);var l=t[14]|t[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,r){for(var n=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],a=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],h=this._h[7],d=this._h[8],f=this._h[9],p=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],w=this._r[4],b=this._r[5],v=this._r[6],A=this._r[7],E=this._r[8],x=this._r[9];r>=16;){var _=t[e+0]|t[e+1]<<8;i+=8191&_;var S=t[e+2]|t[e+3]<<8;s+=8191&(_>>>13|S<<3);var M=t[e+4]|t[e+5]<<8;o+=8191&(S>>>10|M<<6);var C=t[e+6]|t[e+7]<<8;a+=8191&(M>>>7|C<<9);var k=t[e+8]|t[e+9]<<8;c+=8191&(C>>>4|k<<12),l+=k>>>1&8191;var I=t[e+10]|t[e+11]<<8;u+=8191&(k>>>14|I<<2);var P=t[e+12]|t[e+13]<<8;h+=8191&(I>>>11|P<<5);var O=t[e+14]|t[e+15]<<8,N=0,T=N;T+=i*p,T+=s*(5*x),T+=o*(5*E),T+=a*(5*A),N=(T+=c*(5*v))>>>13,T&=8191,T+=l*(5*b),T+=u*(5*w),T+=h*(5*y),T+=(d+=8191&(P>>>8|O<<8))*(5*g);var R=N+=(T+=(f+=O>>>5|n)*(5*m))>>>13;R+=i*m,R+=s*p,R+=o*(5*x),R+=a*(5*E),N=(R+=c*(5*A))>>>13,R&=8191,R+=l*(5*v),R+=u*(5*b),R+=h*(5*w),R+=d*(5*y),N+=(R+=f*(5*g))>>>13,R&=8191;var B=N;B+=i*g,B+=s*m,B+=o*p,B+=a*(5*x),N=(B+=c*(5*E))>>>13,B&=8191,B+=l*(5*A),B+=u*(5*v),B+=h*(5*b),B+=d*(5*w);var L=N+=(B+=f*(5*y))>>>13;L+=i*y,L+=s*g,L+=o*m,L+=a*p,N=(L+=c*(5*x))>>>13,L&=8191,L+=l*(5*E),L+=u*(5*A),L+=h*(5*v),L+=d*(5*b);var U=N+=(L+=f*(5*w))>>>13;U+=i*w,U+=s*y,U+=o*g,U+=a*m,N=(U+=c*p)>>>13,U&=8191,U+=l*(5*x),U+=u*(5*E),U+=h*(5*A),U+=d*(5*v);var j=N+=(U+=f*(5*b))>>>13;j+=i*b,j+=s*w,j+=o*y,j+=a*g,N=(j+=c*m)>>>13,j&=8191,j+=l*p,j+=u*(5*x),j+=h*(5*E),j+=d*(5*A);var D=N+=(j+=f*(5*v))>>>13;D+=i*v,D+=s*b,D+=o*w,D+=a*y,N=(D+=c*g)>>>13,D&=8191,D+=l*m,D+=u*p,D+=h*(5*x),D+=d*(5*E);var F=N+=(D+=f*(5*A))>>>13;F+=i*A,F+=s*v,F+=o*b,F+=a*w,N=(F+=c*y)>>>13,F&=8191,F+=l*g,F+=u*m,F+=h*p,F+=d*(5*x);var z=N+=(F+=f*(5*E))>>>13;z+=i*E,z+=s*A,z+=o*v,z+=a*b,N=(z+=c*w)>>>13,z&=8191,z+=l*y,z+=u*g,z+=h*m,z+=d*p;var H=N+=(z+=f*(5*x))>>>13;H+=i*x,H+=s*E,H+=o*A,H+=a*v,N=(H+=c*b)>>>13,H&=8191,H+=l*w,H+=u*y,H+=h*g,H+=d*m,i=T=8191&(N=(N=((N+=(H+=f*p)>>>13)<<2)+N|0)+(T&=8191)|0),s=R+=N>>>=13,o=B&=8191,a=L&=8191,c=U&=8191,l=j&=8191,u=D&=8191,h=F&=8191,d=z&=8191,f=H&=8191,e+=16,r-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=a,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=h,this._h[8]=d,this._h[9]=f},t.prototype.finish=function(t,e){void 0===e&&(e=0);var r,n,i,s,o=new Uint16Array(10);if(this._leftover){for(s=this._leftover,this._buffer[s++]=1;s<16;s++)this._buffer[s]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,s=2;s<10;s++)this._h[s]+=r,r=this._h[s]>>>13,this._h[s]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,o[0]=this._h[0]+5,r=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this._h[s]+r,r=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,n=(1^r)-1,s=0;s<10;s++)o[s]&=n;for(n=~n,s=0;s<10;s++)this._h[s]=this._h[s]&n|o[s];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),i=this._h[0]+this._pad[0],this._h[0]=65535&i,s=1;s<8;s++)i=(this._h[s]+this._pad[s]|0)+(i>>>16)|0,this._h[s]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,r=0,n=t.length;if(this._leftover){(e=16-this._leftover)>n&&(e=n);for(var i=0;i=16&&(e=n-n%16,this._blocks(t,r,e),r+=e,n-=e),n){for(i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const n=r(6008),i=r(8099),s=r(7309);function o(t,r=e.defaultRandomSource){return r.randomBytes(t)}e.defaultRandomSource=new n.SystemRandomSource,e.randomBytes=o,e.randomUint32=function(t=e.defaultRandomSource){const r=o(4,t),n=(0,i.readUint32LE)(r);return(0,s.wipe)(r),n};const a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(t,r=a,n=e.defaultRandomSource){if(r.length<2)throw new Error("randomString charset is too short");if(r.length>256)throw new Error("randomString charset is too long");let i="";const c=r.length,l=256-256%c;for(;t>0;){const e=o(Math.ceil(256*t/l),n);for(let n=0;n0;n++){const s=e[n];s{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRandomSource=void 0,e.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&void 0!==t.getRandomValues&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const e=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeRandomSource=void 0;const n=r(7309);e.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const t=r(5883);t&&t.randomBytes&&(this._crypto=t,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(t){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let e=this._crypto.randomBytes(t);if(e.length!==t)throw new Error("NodeRandomSource: got fewer bytes than requested");const r=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SystemRandomSource=void 0;const n=r(5455),i=r(8871);e.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new i.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(t){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(t)}}},3294:(t,e,r)=>{"use strict";var n=r(8099),i=r(7309);e.k=32,e.cn=64;var s=function(){function t(){this.digestLength=e.k,this.blockSize=e.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],e--;this._bufferLength===this.blockSize&&(a(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(r=a(this._temp,this._state,t,r,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[r++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%64<56?64:128;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.mE=s;var o=new Int32Array([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 a(t,e,r,i,s){for(;s>=64;){for(var a=e[0],c=e[1],l=e[2],u=e[3],h=e[4],d=e[5],f=e[6],p=e[7],m=0;m<16;m++){var g=i+4*m;t[m]=n.readUint32BE(r,g)}for(m=16;m<64;m++){var y=t[m-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,b=((y=t[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;t[m]=(w+t[m-7]|0)+(b+t[m-16]|0)}for(m=0;m<64;m++)w=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)|0)+(p+(o[m]+t[m]|0)|0)|0,b=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&c^a&l^c&l)|0,p=f,f=d,d=h,h=u+w|0,u=l,l=c,c=a,a=w+b|0;e[0]+=a,e[1]+=c,e[2]+=l,e[3]+=u,e[4]+=h,e[5]+=d,e[6]+=f,e[7]+=p,i+=64,s-=64}return i}e.vp=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},3350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(8099),i=r(7309);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var s=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,r){if(void 0===r&&(r=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=t[n++],r--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,r=this._bufferLength,i=e/536870912|0,s=e<<3,o=e%128<112?128:256;this._buffer[r]=128;for(var c=r+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=s;var o=new Int32Array([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 a(t,e,r,i,s,a,c){for(var l,u,h,d,f,p,m,g,y=r[0],w=r[1],b=r[2],v=r[3],A=r[4],E=r[5],x=r[6],_=r[7],S=i[0],M=i[1],C=i[2],k=i[3],I=i[4],P=i[5],O=i[6],N=i[7];c>=128;){for(var T=0;T<16;T++){var R=8*T+a;t[T]=n.readUint32BE(s,R),e[T]=n.readUint32BE(s,R+4)}for(T=0;T<80;T++){var B,L,U=y,j=w,D=b,F=v,z=A,H=E,$=x,q=S,W=M,V=C,G=k,K=I,Z=P,Q=O;if(f=65535&(u=N),p=u>>>16,m=65535&(l=_),g=l>>>16,f+=65535&(u=(I>>>14|A<<18)^(I>>>18|A<<14)^(A>>>9|I<<23)),p+=u>>>16,m+=65535&(l=(A>>>14|I<<18)^(A>>>18|I<<14)^(I>>>9|A<<23)),g+=l>>>16,f+=65535&(u=I&P^~I&O),p+=u>>>16,m+=65535&(l=A&E^~A&x),g+=l>>>16,l=o[2*T],f+=65535&(u=o[2*T+1]),p+=u>>>16,m+=65535&l,g+=l>>>16,l=t[T%16],p+=(u=e[T%16])>>>16,m+=65535&l,g+=l>>>16,m+=(p+=(f+=65535&u)>>>16)>>>16,f=65535&(u=d=65535&f|p<<16),p=u>>>16,m=65535&(l=h=65535&m|(g+=m>>>16)<<16),g=l>>>16,f+=65535&(u=(S>>>28|y<<4)^(y>>>2|S<<30)^(y>>>7|S<<25)),p+=u>>>16,m+=65535&(l=(y>>>28|S<<4)^(S>>>2|y<<30)^(S>>>7|y<<25)),g+=l>>>16,p+=(u=S&M^S&C^M&C)>>>16,m+=65535&(l=y&w^y&b^w&b),g+=l>>>16,B=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,L=65535&f|p<<16,f=65535&(u=G),p=u>>>16,m=65535&(l=F),g=l>>>16,p+=(u=d)>>>16,m+=65535&(l=h),g+=l>>>16,w=U,b=j,v=D,A=F=65535&(m+=(p+=(f+=65535&u)>>>16)>>>16)|(g+=m>>>16)<<16,E=z,x=H,_=$,y=B,M=q,C=W,k=V,I=G=65535&f|p<<16,P=K,O=Z,N=Q,S=L,T%16==15)for(R=0;R<16;R++)l=t[R],f=65535&(u=e[R]),p=u>>>16,m=65535&l,g=l>>>16,l=t[(R+9)%16],f+=65535&(u=e[(R+9)%16]),p+=u>>>16,m+=65535&l,g+=l>>>16,h=t[(R+1)%16],f+=65535&(u=((d=e[(R+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),p+=u>>>16,m+=65535&(l=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),g+=l>>>16,h=t[(R+14)%16],p+=(u=((d=e[(R+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,m+=65535&(l=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,t[R]=65535&m|g<<16,e[R]=65535&f|p<<16}f=65535&(u=S),p=u>>>16,m=65535&(l=y),g=l>>>16,l=r[0],p+=(u=i[0])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[0]=y=65535&m|g<<16,i[0]=S=65535&f|p<<16,f=65535&(u=M),p=u>>>16,m=65535&(l=w),g=l>>>16,l=r[1],p+=(u=i[1])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[1]=w=65535&m|g<<16,i[1]=M=65535&f|p<<16,f=65535&(u=C),p=u>>>16,m=65535&(l=b),g=l>>>16,l=r[2],p+=(u=i[2])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[2]=b=65535&m|g<<16,i[2]=C=65535&f|p<<16,f=65535&(u=k),p=u>>>16,m=65535&(l=v),g=l>>>16,l=r[3],p+=(u=i[3])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[3]=v=65535&m|g<<16,i[3]=k=65535&f|p<<16,f=65535&(u=I),p=u>>>16,m=65535&(l=A),g=l>>>16,l=r[4],p+=(u=i[4])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[4]=A=65535&m|g<<16,i[4]=I=65535&f|p<<16,f=65535&(u=P),p=u>>>16,m=65535&(l=E),g=l>>>16,l=r[5],p+=(u=i[5])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[5]=E=65535&m|g<<16,i[5]=P=65535&f|p<<16,f=65535&(u=O),p=u>>>16,m=65535&(l=x),g=l>>>16,l=r[6],p+=(u=i[6])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[6]=x=65535&m|g<<16,i[6]=O=65535&f|p<<16,f=65535&(u=N),p=u>>>16,m=65535&(l=_),g=l>>>16,l=r[7],p+=(u=i[7])>>>16,m+=65535&l,g+=l>>>16,g+=(m+=(p+=(f+=65535&u)>>>16)>>>16)>>>16,r[7]=_=65535&m|g<<16,i[7]=N=65535&f|p<<16,a+=128,c-=128}return a}e.hash=function(t){var e=new s;e.update(t);var r=e.digest();return e.clean(),r}},7309:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(t){for(var e=0;e{"use strict";e.gi=e.Au=e.KS=e.kz=void 0;const n=r(1416),i=r(7309);function s(t){const e=new Float64Array(16);if(t)for(let r=0;r=0;--t){const e=r[t>>>3]>>>(7&t)&1;l(i,o,e),l(p,m,e),u(g,i,p),h(i,i,p),u(p,o,m),h(o,o,m),f(m,g),f(y,i),d(i,p,i),d(p,o,g),u(g,i,p),h(i,i,p),f(o,i),h(p,m,y),d(i,p,a),u(i,i,m),d(p,p,i),d(i,m,y),d(m,o,n),f(o,g),l(i,o,e),l(p,m,e)}for(let t=0;t<16;t++)n[t+16]=i[t],n[t+32]=p[t],n[t+48]=o[t],n[t+64]=m[t];const w=n.subarray(32),b=n.subarray(16);!function(t,e){const r=s();for(let t=0;t<16;t++)r[t]=e[t];for(let t=253;t>=0;t--)f(r,r),2!==t&&4!==t&&d(r,r,e);for(let e=0;e<16;e++)t[e]=r[e]}(w,w),d(b,b,w);const v=new Uint8Array(32);return function(t,e){const r=s(),n=s();for(let t=0;t<16;t++)n[t]=e[t];c(n),c(n),c(n);for(let t=0;t<2;t++){r[0]=n[0]-65517;for(let t=1;t<15;t++)r[t]=n[t]-65535-(r[t-1]>>16&1),r[t-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);const t=r[15]>>16&1;r[14]&=65535,l(n,r,1-t)}for(let e=0;e<16;e++)t[2*e]=255&n[e],t[2*e+1]=n[e]>>8}(v,b),v}e.Au=function(t){const r=(0,n.randomBytes)(32,t),s=function(t){if(t.length!==e.KS)throw new Error(`x25519: seed must be ${e.KS} bytes`);const r=new Uint8Array(t);return{publicKey:(n=r,p(n,o)),secretKey:r};var n}(r);return(0,i.wipe)(r),s},e.gi=function(t,r,n=!1){if(t.length!==e.kz)throw new Error("X25519: incorrect secret key length");if(r.length!==e.kz)throw new Error("X25519: incorrect public key length");const i=p(t,r);if(n){let t=0;for(let e=0;e{"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){const t=n();return t.subtle||t.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=n,e.getSubtleCrypto=i,e.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},8618:(t,e,r)=>{"use strict";var n=r(4155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function s(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=i,e.isNode=s,e.isBrowser=function(){return!i()&&!s()}},1468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(926),e),n.__exportStar(r(8618),e)},964:(t,e,r)=>{"use strict";r.r(e),r.d(e,{EthereumProvider:()=>tM,OPTIONAL_EVENTS:()=>zS,OPTIONAL_METHODS:()=>DS,REQUIRED_EVENTS:()=>FS,REQUIRED_METHODS:()=>jS,default:()=>XS});var n={};r.r(n),r.d(n,{identity:()=>z});var i={};r.r(i),r.d(i,{base2:()=>H});var s={};r.r(s),r.d(s,{base8:()=>$});var o={};r.r(o),r.d(o,{base10:()=>q});var a={};r.r(a),r.d(a,{base16:()=>W,base16upper:()=>V});var c={};r.r(c),r.d(c,{base32:()=>G,base32hex:()=>J,base32hexpad:()=>X,base32hexpadupper:()=>tt,base32hexupper:()=>Y,base32pad:()=>Z,base32padupper:()=>Q,base32upper:()=>K,base32z:()=>et});var l={};r.r(l),r.d(l,{base36:()=>rt,base36upper:()=>nt});var u={};r.r(u),r.d(u,{base58btc:()=>it,base58flickr:()=>st});var h={};r.r(h),r.d(h,{base64:()=>ot,base64pad:()=>at,base64url:()=>ct,base64urlpad:()=>lt});var d={};r.r(d),r.d(d,{base256emoji:()=>ft});var f={};r.r(f),r.d(f,{sha256:()=>Tt,sha512:()=>Rt});var p={};r.r(p),r.d(p,{identity:()=>Lt});var m={};r.r(m),r.d(m,{code:()=>jt,decode:()=>Ft,encode:()=>Dt,name:()=>Ut});var g={};r.r(g),r.d(g,{code:()=>qt,decode:()=>Vt,encode:()=>Wt,name:()=>$t});var y=r(7187),w=r.n(y),b=r(6736),v=r(2873),A=r(5755),E=r(7563),x=r(5501),_=r(512),S=r(1416),M=r(3294),C=r(7664);function k(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function I(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?k(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}function P(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const r=I(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return k(r)}const O=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),m=n;f!==s;)p[m++]=o[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,f=o-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var p=o-n;p!==o&&0===l[p];)p++;for(var m=c.repeat(r);p{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")});class T{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class R{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return L(this,t)}}class B{constructor(t){this.decoders=t}or(t){return L(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const L=(t,e)=>new B({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class U{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new T(t,e,r),this.decoder=new R(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const j=({name:t,prefix:e,encode:r,decode:n})=>new U(t,e,r,n),D=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=O(r,e);return j({prefix:t,name:e,encode:n,decode:t=>N(i(t))})},F=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>j({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),z=j({prefix:"\0",name:"identity",encode:t=>{return e=t,(new TextDecoder).decode(e);var e},decode:t=>(t=>(new TextEncoder).encode(t))(t)}),H=F({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),$=F({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),q=D({prefix:"9",name:"base10",alphabet:"0123456789"}),W=F({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),V=F({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),G=F({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),K=F({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Z=F({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Q=F({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),J=F({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Y=F({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),X=F({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),tt=F({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),et=F({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),rt=D({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),nt=D({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),it=D({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),st=D({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),ot=F({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),at=F({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),ct=F({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),lt=F({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ut=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),ht=ut.reduce(((t,e,r)=>(t[r]=e,t)),[]),dt=ut.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),ft=j({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+ht[e]),"")},decode:function(t){const e=[];for(const r of t){const t=dt[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var pt=Math.pow(2,31),mt=Math.pow(2,7),gt=Math.pow(2,14),yt=Math.pow(2,21),wt=Math.pow(2,28),bt=Math.pow(2,35),vt=Math.pow(2,42),At=Math.pow(2,49),Et=Math.pow(2,56),xt=Math.pow(2,63);const _t=function t(e,r,n){r=r||[];for(var i=n=n||0;e>=pt;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},St=function(t){return t(_t(t,e,r),e),Ct=t=>St(t),kt=(t,e)=>{const r=e.byteLength,n=Ct(t),i=n+Ct(r),s=new Uint8Array(i+r);return Mt(t,s,0),Mt(r,s,n),s.set(e,i),new It(t,r,e,s)};class It{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const Pt=({name:t,code:e,encode:r})=>new Ot(t,e,r);class Ot{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?kt(this.code,e):e.then((t=>kt(this.code,t)))}throw Error("Unknown type, must be binary type")}}const Nt=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),Tt=Pt({name:"sha2-256",code:18,encode:Nt("SHA-256")}),Rt=Pt({name:"sha2-512",code:19,encode:Nt("SHA-512")}),Bt=N,Lt={code:0,name:"identity",encode:Bt,digest:t=>kt(0,Bt(t))},Ut="raw",jt=85,Dt=t=>N(t),Ft=t=>N(t),zt=new TextEncoder,Ht=new TextDecoder,$t="json",qt=512,Wt=t=>zt.encode(JSON.stringify(t)),Vt=t=>JSON.parse(Ht.decode(t));class Gt{constructor(t,e,r,n){this.code=e,this.version=t,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:cid_hidden,byteLength:cid_hidden,code:readonly,version:readonly,multihash:readonly,bytes:readonly,_baseCache:cid_hidden,asCID:cid_hidden})}toV0(){if(0===this.version)return this;{const{code:t,multihash:e}=this;if(t!==DAG_PB_CODE)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==SHA_256_CODE)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Gt.createV0(e)}}toV1(){switch(this.version){case 0:{const{code:t,digest:e}=this.multihash,r=Digest.create(t,e);return Gt.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&Digest.equals(this.multihash,t.multihash)}toString(t){const{bytes:e,version:r,_baseCache:n}=this;return 0===r?toStringV0(e,n,t||base58btc.encoder):toStringV1(e,n,t||base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return deprecate(/^0\.0/,IS_CID_DEPRECATION),!(!t||!t[cidSymbol]&&t.asCID!==t)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof Gt)return t;if(null!=t&&t.asCID===t){const{version:e,code:r,multihash:n,bytes:i}=t;return new Gt(e,r,n,i||encodeCID(e,r,n.bytes))}if(null!=t&&!0===t[cidSymbol]){const{version:e,multihash:r,code:n}=t,i=Digest.decode(r);return Gt.create(e,n,i)}return null}static create(t,e,r){if("number"!=typeof e)throw new Error("String codecs are no longer supported");switch(t){case 0:if(e!==DAG_PB_CODE)throw new Error(`Version 0 CID must use dag-pb (code: ${DAG_PB_CODE}) block encoding`);return new Gt(t,e,r,r.bytes);case 1:{const n=encodeCID(t,e,r.bytes);return new Gt(t,e,r,n)}default:throw new Error("Invalid version")}}static createV0(t){return Gt.create(0,DAG_PB_CODE,t)}static createV1(t,e){return Gt.create(1,t,e)}static decode(t){const[e,r]=Gt.decodeFirst(t);if(r.length)throw new Error("Incorrect length");return e}static decodeFirst(t){const e=Gt.inspectBytes(t),r=e.size-e.multihashSize,n=coerce(t.subarray(r,r+e.multihashSize));if(n.byteLength!==e.multihashSize)throw new Error("Incorrect length");const i=n.subarray(e.multihashSize-e.digestSize),s=new Digest.Digest(e.multihashCode,e.digestSize,i,n);return[0===e.version?Gt.createV0(s):Gt.createV1(e.codec,s),t.subarray(e.size)]}static inspectBytes(t){const e=()=>{const[e,r]=varint.decode(t.subarray(0));return e};let r=e(),n=DAG_PB_CODE;if(18===r||1===r&&e(),0!==r&&1!==r)throw new RangeError(`Invalid CID version ${r}`);const i=e(),s=e(),o=0+s;return{version:r,codec:n,multihashCode:i,digestSize:s,multihashSize:o-0,size:o}}static parse(t,e){const[r,n]=parseCIDtoBytes(t,e),i=Gt.decode(n);return i._baseCache.set(r,t),i}}Symbol.for("@ipld/js-cid/CID");const Kt={...n,...i,...s,...o,...a,...c,...l,...u,...h,...d};function Zt(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const Qt=Zt("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),Jt=Zt("ascii","a",(t=>{let e="a";for(let r=0;r{const e=I((t=t.substring(1)).length);for(let r=0;r{if(e.length&&!e.includes(n))return;const i=t[n];r.push(...i.accounts)})),r}r(8764).Buffer,Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var ie,se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{};ie={exports:{}},function(){var t="input is invalid type",e="object"==typeof window,r=e?window:{};r.JS_SHA3_NO_WINDOW&&(e=!1);var n=!e&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof re&&re.versions&&re.versions.node?r=se:n&&(r=self);var i=!r.JS_SHA3_NO_COMMON_JS&&ie.exports,s=!r.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",o="0123456789abcdef".split(""),a=[4,1024,262144,67108864],c=[0,8,16,24],l=[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],u=[224,256,384,512],h=[128,256],d=["hex","buffer","arrayBuffer","array","digest"],f={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),s&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var p=function(t,e,r){return function(n){return new I(t,e,t).update(n)[r]()}},m=function(t,e,r){return function(n,i){return new I(t,e,i).update(n)[r]()}},g=function(t,e,r){return function(e,n,i,s){return A["cshake"+t].update(e,n,i,s)[r]()}},y=function(t,e,r){return function(e,n,i,s){return A["kmac"+t].update(e,n,i,s)[r]()}},w=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function P(t,e,r){I.call(this,t,e,r)}I.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var r,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);r=!0}for(var i,o,a=this.blocks,l=this.byteCount,u=e.length,h=this.blockCount,d=0,f=this.s;d>2]|=e[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=l){for(this.start=i-l,this.block=a[h],i=0;i>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},I.prototype.encodeString=function(e){var r,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(t);if(null===e)throw new Error(t);if(s&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||s&&ArrayBuffer.isView(e)))throw new Error(t);r=!0}var i=0,o=e.length;if(r)i=o;else for(var a=0;a=57344?i+=3:(c=65536+((1023&c)<<10|1023&e.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(e),i},I.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+o[15&t]+o[t>>12&15]+o[t>>8&15]+o[t>>20&15]+o[t>>16&15]+o[t>>28&15]+o[t>>24&15];a%e==0&&(O(r),s=0)}return i&&(t=r[s],c+=o[t>>4&15]+o[15&t],i>1&&(c+=o[t>>12&15]+o[t>>8&15]),i>2&&(c+=o[t>>20&15]+o[t>>16&15])),c},I.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&O(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},P.prototype=new I,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var O=function(t){var e,r,n,i,s,o,a,c,u,h,d,f,p,m,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|u>>>31),r=s^(u<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(h<<1|d>>>31),r=a^(d<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(f<<1|p>>>31),r=u^(p<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|s>>>31),r=d^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=m^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&m,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~m&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=l[n],t[1]^=l[n+1]};if(i)ie.exports=A;else for(x=0;x{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var de,fe;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(de||(de={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(fe||(fe={}));const pe="0123456789abcdef";class me{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==ce[r]&&this.throwArgumentError("invalid log level name","logLevel",t),!(le>ce[r])&&console.log.apply(console,e)}debug(...t){this._log(me.levels.DEBUG,t)}info(...t){this._log(me.levels.INFO,t)}warn(...t){this._log(me.levels.WARNING,t)}makeError(t,e,r){if(ae)return this.makeError("censored error",e,{});e||(e=me.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=pe[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch{n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let s="";switch(e){case fe.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case fe.CALL_EXCEPTION:case fe.INSUFFICIENT_FUNDS:case fe.MISSING_NEW:case fe.NONCE_EXPIRED:case fe.REPLACEMENT_UNDERPRICED:case fe.TRANSACTION_REPLACED:case fe.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const o=new Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach((function(t){o[t]=r[t]})),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,me.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){he&&this.throwError("platform missing String.prototype.normalize",me.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:he})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,me.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,me.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",me.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",me.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",me.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return ue||(ue=new me("logger/5.7.0")),ue}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),oe){if(!t)return;this.globalLogger().throwError("error censorship permanent",me.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ae=!!t,oe=!!e}static setLogLevel(t){const e=ce[t.toLowerCase()];null!=e?le=e:me.globalLogger().warn("invalid log level - "+t)}static from(t){return new me(t)}}me.errors=fe,me.levels=de;const ge=new me("bytes/5.7.0");function ye(t){return!!t.toHexString}function we(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return we(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function be(t){return"number"==typeof t&&t==t&&t%1==0}function ve(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!be(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function Ae(t,e){if(e||(e={}),"number"==typeof t){ge.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),we(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ye(t)&&(t=t.toHexString()),Ee(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":ge.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t>4]+xe[15&n]}return e}return ge.throwArgumentError("invalid hexlify value","value",t)}function Se(t,e){for("string"!=typeof t?t=_e(t):Ee(t)||ge.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&ge.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}var Me={exports:{}},Ce=function(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{s=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:Ce.Buffer}catch{}function o(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function c(t,e,n,i){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=a(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],f=[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 p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==s||o!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],u=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(t);n=(p=p.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n=0);var e,n=t%26,i=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=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},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),s=t,o=0|s.words[s.length-1];0!=(r=26-this._countBits(o))&&(s=s.ushln(r),n.iushln(r),o=0|s.words[s.length-1]);var a,c=n.length-s.length;if("mod"!==e){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[s.length+h])+(0|n.words[s.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(s,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(s,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(s=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:s,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(s=a.div.neg()),{div:s,mod:a.mod}):this.negative&t.negative?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var s,o,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new i(1),o=new i(0),a=new i(0),c=new i(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(s.isOdd()||o.isOdd())&&(s.iadd(u),o.isub(h)),s.iushrn(1),o.iushrn(1);for(var p=0,m=1;!(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a),o.isub(c)):(n.isub(e),a.isub(s),c.isub(o))}return{a,b:c,gcd:n.iushln(l)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,s=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var o=new i(1),a=new i(0),c=s.clone();n.cmpn(1)>0&&s.cmpn(1)>0;){for(var l=0,u=1;!(n.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;!(s.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(s.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);n.cmp(s)>=0?(n.isub(s),o.isub(a)):(s.isub(n),a.isub(o))}return(e=0===n.cmpn(1)?o:a).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new _(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return w[t]=e,e},_.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var s=this.m.subn(1),o=0;!s.isZero()&&0===s.andln(1);)o++,s.iushrn(1);r(!s.isZero());var a=new i(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,s),d=this.pow(t,s.addn(1).iushrn(1)),f=this.pow(t,s),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;s!==r[0]&&(s=this.sqr(s)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(s=this.mul(s,r[o]),a=0,o=0)):a=0}c=26}return s},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},n(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(n).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):s.cmpn(0)<0&&(o=s.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,se)}(Me);var ke=Me.exports;const Ie="bignumber/5.7.0";var Pe=ke.BN;const Oe=new me(Ie),Ne={},Te=9007199254740991;let Re=!1;class Be{constructor(t,e){t!==Ne&&Oe.throwError("cannot call constructor directly; use BigNumber.from",me.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Ue(je(this).fromTwos(t))}toTwos(t){return Ue(je(this).toTwos(t))}abs(){return"-"===this._hex[0]?Be.from(this._hex.substring(1)):this}add(t){return Ue(je(this).add(je(t)))}sub(t){return Ue(je(this).sub(je(t)))}div(t){return Be.from(t).isZero()&&De("division-by-zero","div"),Ue(je(this).div(je(t)))}mul(t){return Ue(je(this).mul(je(t)))}mod(t){const e=je(t);return e.isNeg()&&De("division-by-zero","mod"),Ue(je(this).umod(e))}pow(t){const e=je(t);return e.isNeg()&&De("negative-power","pow"),Ue(je(this).pow(e))}and(t){const e=je(t);return(this.isNegative()||e.isNeg())&&De("unbound-bitwise-result","and"),Ue(je(this).and(e))}or(t){const e=je(t);return(this.isNegative()||e.isNeg())&&De("unbound-bitwise-result","or"),Ue(je(this).or(e))}xor(t){const e=je(t);return(this.isNegative()||e.isNeg())&&De("unbound-bitwise-result","xor"),Ue(je(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&De("negative-width","mask"),Ue(je(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&De("negative-width","shl"),Ue(je(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&De("negative-width","shr"),Ue(je(this).shrn(t))}eq(t){return je(this).eq(je(t))}lt(t){return je(this).lt(je(t))}lte(t){return je(this).lte(je(t))}gt(t){return je(this).gt(je(t))}gte(t){return je(this).gte(je(t))}isNegative(){return"-"===this._hex[0]}isZero(){return je(this).isZero()}toNumber(){try{return je(this).toNumber()}catch{De("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Oe.throwError("this platform does not support BigInt",me.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Re||(Re=!0,Oe.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Oe.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",me.errors.UNEXPECTED_ARGUMENT,{}):Oe.throwError("BigNumber.toString does not accept parameters",me.errors.UNEXPECTED_ARGUMENT,{})),je(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Be)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Be(Ne,Le(t)):t.match(/^-?[0-9]+$/)?new Be(Ne,Le(new Pe(t))):Oe.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&De("underflow","BigNumber.from",t),(t>=Te||t<=-Te)&&De("overflow","BigNumber.from",t),Be.from(String(t));const e=t;if("bigint"==typeof e)return Be.from(e.toString());if(ve(e))return Be.from(_e(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Be.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Ee(t)||"-"===t[0]&&Ee(t.substring(1))))return Be.from(t)}return Oe.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Le(t){if("string"!=typeof t)return Le(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Oe.throwArgumentError("invalid hex","value",t),"0x00"===(t=Le(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Ue(t){return Be.from(Le(t))}function je(t){const e=Be.from(t).toHexString();return"-"===e[0]?new Pe("-"+e.substring(3),16):new Pe(e.substring(2),16)}function De(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),Oe.throwError(t,me.errors.NUMERIC_FAULT,n)}const Fe=new me(Ie),ze={},He=Be.from(0),$e=Be.from(-1);function qe(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),Fe.throwError(t,me.errors.NUMERIC_FAULT,i)}let We="0";for(;We.length<256;)We+=We;function Ve(t){if("number"!=typeof t)try{t=Be.from(t).toNumber()}catch{}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+We.substring(0,t):Fe.throwArgumentError("invalid decimal size","decimals",t)}function Ge(t,e){null==e&&(e=0);const r=Ve(e),n=(t=Be.from(t)).lt(He);n&&(t=t.mul($e));let i=t.mod(r).toString();for(;i.length2&&Fe.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&qe("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.lengthnull==t[e]?n:(typeof t[e]!==r&&Fe.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&Fe.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&Fe.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new Ze(ze,e,r,n)}}class Qe{constructor(t,e,r,n){t!==ze&&Fe.throwError("cannot use FixedNumber constructor; use FixedNumber.from",me.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&Fe.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=Ke(this._value,this.format.decimals),r=Ke(t._value,t.format.decimals);return Qe.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=Ke(this._value,this.format.decimals),r=Ke(t._value,t.format.decimals);return Qe.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=Ke(this._value,this.format.decimals),r=Ke(t._value,t.format.decimals);return Qe.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=Ke(this._value,this.format.decimals),r=Ke(t._value,t.format.decimals);return Qe.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=Qe.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(Je.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=Qe.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(Je.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&Fe.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=Qe.from("1"+We.substring(0,t),this.format),n=Ye.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&Fe.throwArgumentError("invalid byte width","width",t),Se(Be.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return Qe.fromString(this._value,t)}static fromValue(t,e,r){return null==r&&null!=e&&!function(t){return null!=t&&(Be.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Ee(t)||"bigint"==typeof t||ve(t))}(e)&&(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),Qe.fromString(Ge(t,e),Ze.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=Ze.from(e),n=Ke(t,r.decimals);!r.signed&&n.lt(He)&&qe("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=Se(i,r.width/8));const s=Ge(n,r.decimals);return new Qe(ze,i,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=Ze.from(e);if(Ae(t).length>r.width/8)throw new Error("overflow");let n=Be.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=Ge(n,r.decimals);return new Qe(ze,i,s,r)}static from(t,e){if("string"==typeof t)return Qe.fromString(t,e);if(ve(t))return Qe.fromBytes(t,e);try{return Qe.fromValue(t,0,e)}catch(t){if(t.code!==me.errors.INVALID_ARGUMENT)throw t}return Fe.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const Je=Qe.from(1),Ye=Qe.from("0.5"),Xe=new me("strings/5.7.0");var tr,er;function rr(t,e,r,n,i){if(t===er.BAD_PREFIX||t===er.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return t===er.OVERRUN?r.length-e-1:0}function nr(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function ir(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(tr||(tr={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(er||(er={})),Object.freeze({error:function(t,e,r,n,i){return Xe.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:rr,replace:function(t,e,r,n,i){return t===er.OVERLONG?(n.push(i),0):(n.push(65533),rr(t,e,r))}}),ir("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),nr("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),nr("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),nr("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r0&&Array.isArray(t)?i(t,e-1):r.push(t)}))};return i(t,e),r}function ar(t){return 1&t?~t>>1:t>>1}function cr(t,e){let r=Array(t);for(let n=0,i=-1;ne[t])):r}function hr(t,e,r){let n=Array(t).fill(void 0).map((()=>[]));for(let i=0;in[e].push(t)));return n}function dr(t,e){let r=1+e(),n=e(),i=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return or(hr(i.length,1+t,e).map(((t,e)=>{const s=t[0],o=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))})))}function fr(t,e){return hr(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const pr=function(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let t=0;t<31;t++)m=m<<1|u();let g=[],y=0,w=h;for(;;){let t=Math.floor(((m-y+1)*i-1)/w),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;y=o,w=1+a-o}let b=n-4;return g.map((e=>{switch(e-b){case 3:return b+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return b+256+(t[a++]<<8|t[a++]);case 1:return b+t[a++];default:return e-1}}))}(t))}(function(t){t=atob(t);const e=[];for(let r=0;rt-e));!function r(){let n=[];for(;;){let i=ur(t,e);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((t,e)=>e.set.size-t.set.size));let i=t(),s=i%3;i=i/3|0;let o=!!(1&i);return i>>=1,{branches:n,valid:s,fe0f:o,save:1==i,check:2==i}}()}(pr),new me(sr),new Uint8Array(32).fill(0),new me("rlp/5.7.0"),new me("address/5.7.0");const mr={};for(let t=0;t<10;t++)mr[String(t)]=String(t);for(let t=0;t<26;t++)mr[String.fromCharCode(65+t)]=String(10+t);Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991)),new me("properties/5.7.0"),new me(sr),new Uint8Array(32).fill(0),Be.from(-1);const gr=Be.from(0),yr=Be.from(1);Be.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Se(yr.toHexString(),32),Se(gr.toHexString(),32);var wr={},br={},vr=Ar;function Ar(t,e){if(!t)throw new Error(e||"Assertion failed")}Ar.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var Er={exports:{}};"function"==typeof Object.create?Er.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Er.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var xr=vr,_r=Er.exports;function Sr(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function Mr(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Cr(t){return 1===t.length?"0"+t:t}function kr(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}br.inherits=_r,br.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&s|128):Sr(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i>>0}return s},br.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},br.rotr32=function(t,e){return t>>>e|t<<32-e},br.rotl32=function(t,e){return t<>>32-e},br.sum32=function(t,e){return t+e>>>0},br.sum32_3=function(t,e,r){return t+e+r>>>0},br.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},br.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},br.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,o=(s>>0,t[e+1]=s},br.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},br.sum64_lo=function(t,e,r,n){return e+n>>>0},br.sum64_4_hi=function(t,e,r,n,i,s,o,a){var c=0,l=e;return c+=(l=l+n>>>0)>>0)>>0)>>0},br.sum64_4_lo=function(t,e,r,n,i,s,o,a){return e+n+s+a>>>0},br.sum64_5_hi=function(t,e,r,n,i,s,o,a,c,l){var u=0,h=e;return u+=(h=h+n>>>0)>>0)>>0)>>0)>>0},br.sum64_5_lo=function(t,e,r,n,i,s,o,a,c,l){return e+n+s+a+l>>>0},br.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},br.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},br.shr64_hi=function(t,e,r){return t>>>r},br.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var Ir={},Pr=br,Or=vr;function Nr(){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}Ir.BlockHash=Nr,Nr.prototype.update=function(t,e){if(t=Pr.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=Pr.join32(t,0,t.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,s=8;s>>3},Rr.g1_256=function(t){return Br(t,17)^Br(t,19)^t>>>10};var Dr=br,Fr=Ir,zr=Rr,Hr=Dr.rotl32,$r=Dr.sum32,qr=Dr.sum32_5,Wr=zr.ft_1,Vr=Fr.BlockHash,Gr=[1518500249,1859775393,2400959708,3395469782];function Kr(){if(!(this instanceof Kr))return new Kr;Vr.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Dr.inherits(Kr,Vr);var Zr=Kr;Kr.blockSize=512,Kr.outSize=160,Kr.hmacStrength=80,Kr.padLength=64,Kr.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;nthis.blockSize&&(t=(new this.Hash).update(t).digest()),mi(t.length<=this.blockSize);for(var e=t.length;e>8,o=255&i;s?r.push(s,o):r.push(o)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),Ei=wi((function(t,e){var r=e;r.assert=bi,r.toArray=Ai.toArray,r.zero2=Ai.zero2,r.toHex=Ai.toHex,r.encode=Ai.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var o,a,c=t.andln(3)+i&3,l=e.andln(3)+s&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c:0,r[0].push(o),a=1&l?3!=(n=e.andln(7)+s&7)&&5!==n||2!==c?l:-l:0,r[1].push(a),2*i===o+1&&(i=1-i),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new ke(t,"hex","le")}})),xi=Ei.getNAF,_i=Ei.getJSF,Si=Ei.assert;function Mi(t,e){this.type=t,this.p=new ke(e.p,16),this.red=e.prime?ke.red(e.prime):ke.mont(this.p),this.zero=new ke(0).toRed(this.red),this.one=new ke(1).toRed(this.red),this.two=new ke(2).toRed(this.red),this.n=e.n&&new ke(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Ci=Mi;function ki(t,e){this.curve=t,this.type=e,this.precomputed=null}Mi.prototype.point=function(){throw new Error("Not implemented")},Mi.prototype.validate=function(){throw new Error("Not implemented")},Mi.prototype._fixedNafMul=function(t,e){Si(t.precomputed);var r=t._getDoubles(),n=xi(e,1,this._bitLength),i=(1<=s;c--)o=(o<<1)+n[c];a.push(o)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;a--){for(var c=0;a>=0&&0===s[a];a--)c++;if(a>=0&&c++,o=o.dblp(c),a<0)break;var l=s[a];Si(0!==l),o="affine"===t.type?l>0?o.mixedAdd(i[l-1>>1]):o.mixedAdd(i[-l-1>>1].neg()):l>0?o.add(i[l-1>>1]):o.add(i[-l-1>>1].neg())}return"affine"===t.type?o.toP():o},Mi.prototype._wnafMulAdd=function(t,e,r,n,i){var s,o,a,c=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(s=0;s=1;s-=2){var f=s-1,p=s;if(1===c[f]&&1===c[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=_i(r[f],r[p]);for(h=Math.max(y[0].length,h),u[f]=new Array(h),u[p]=new Array(h),o=0;o=0;s--){for(var E=0;s>=0;){var x=!0;for(o=0;o=0&&E++,v=v.dblp(E),s<0)break;for(o=0;o0?a=l[o][_-1>>1]:_<0&&(a=l[o][-_-1>>1].neg()),v="affine"===a.type?v.mixedAdd(a):v.add(a))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},ki.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(s=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},Oi.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),c=i.mul(r.b),l=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},Oi.prototype.pointFromX=function(t,e){(t=new ke(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},Oi.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Oi.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""},Ti.prototype.isInfinity=function(){return this.inf},Ti.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Ti.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},Ti.prototype.getX=function(){return this.x.fromRed()},Ti.prototype.getY=function(){return this.y.fromRed()},Ti.prototype.mul=function(t){return t=new ke(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Ti.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Ti.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Ti.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Ti.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Ti.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ii(Ri,Ci.BasePoint),Oi.prototype.jpoint=function(t,e,r){return new Ri(this,t,e,r)},Ri.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Ri.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ri.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),h=n.redMul(l),d=c.redSqr().redIAdd(u).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(s.redMul(u)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},Ri.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=r.redMul(c),h=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(h,d,f)},Ri.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Ri.prototype.inspect=function(){return this.isInfinity()?"":""},Ri.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Bi=wi((function(t,e){var r=e;r.base=Ci,r.short=Ni,r.mont=null,r.edwards=null})),Li=wi((function(t,e){var r,n=e,i=Ei.assert;function s(t){"short"===t.type?this.curve=new Bi.short(t):"edwards"===t.type?this.curve=new Bi.edwards(t):this.curve=new Bi.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new s(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=s,o("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:wr.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("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:wr.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("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:wr.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("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:wr.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"]}),o("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:wr.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"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:wr.sha256,gRed:!1,g:["9"]}),o("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:wr.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("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:wr.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Ui(t){if(!(this instanceof Ui))return new Ui(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ai.toArray(t.entropy,t.entropyEnc||"hex"),r=Ai.toArray(t.nonce,t.nonceEnc||"hex"),n=Ai.toArray(t.pers,t.persEnc||"hex");bi(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var ji=Ui;Ui.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(t.concat(r||[])),this._reseed=1},Ui.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=Ai.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var Hi=Ei.assert;function $i(t,e){if(t instanceof $i)return t;this._importDER(t,e)||(Hi(t.r&&t.s,"Signature without r or s"),this.r=new ke(t.r,16),this.s=new ke(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var qi=$i;function Wi(){this.place=0}function Vi(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return!(i<=127)&&(e.place=o,i)}function Gi(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}$i.prototype._importDER=function(t,e){t=Ei.toArray(t,e);var r=new Wi;if(48!==t[r.place++])return!1;var n=Vi(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=Vi(t,r);if(!1===i)return!1;var s=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=Vi(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new ke(s),this.s=new ke(a),this.recoveryParam=null,!0},$i.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=Gi(e),r=Gi(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];Ki(n,e.length),(n=n.concat(e)).push(2),Ki(n,r.length);var i=n.concat(r),s=[48];return Ki(s,i.length),s=s.concat(i),Ei.encode(s,t)};var Zi=function(){throw new Error("unsupported")},Qi=Ei.assert;function Ji(t){if(!(this instanceof Ji))return new Ji(t);"string"==typeof t&&(Qi(Object.prototype.hasOwnProperty.call(Li,t),"Unknown curve "+t),t=Li[t]),t instanceof Li.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var Yi,Xi=Ji;Ji.prototype.keyPair=function(t){return new zi(this,t)},Ji.prototype.keyFromPrivate=function(t,e){return zi.fromPrivate(this,t,e)},Ji.prototype.keyFromPublic=function(t,e){return zi.fromPublic(this,t,e)},Ji.prototype.genKeyPair=function(t){t||(t={});for(var e=new ji({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||Zi(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new ke(2));;){var i=new ke(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Ji.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},Ji.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new ke(t,16));for(var i=this.n.byteLength(),s=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new ji({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new ke(1)),l=0;;l++){var u=n.k?n.k(l):new ke(a.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(c)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=u.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new qi({r:f,s:p,recoveryParam:m})}}}}}},Ji.prototype.verify=function(t,e,r,n){t=this._truncateToN(new ke(t,16)),r=this.keyFromPublic(r,n);var i=(e=new qi(e,"hex")).r,s=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,a=s.invm(this.n),c=a.mul(t).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},Ji.prototype.recoverPubKey=function(t,e,r,n){Qi((3&r)===r,"The recovery param is more than two bits"),e=new qi(e,n);var i=this.n,s=new ke(t),o=e.r,a=e.s,c=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=e.r.invm(i),h=i.sub(s).mul(u).umod(i),d=a.mul(u).umod(i);return this.g.mulAdd(h,o,d)},Ji.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new qi(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")},wi((function(t,e){var r=e;r.version="6.5.4",r.utils=Ei,r.rand=function(){throw new Error("unsupported")},r.curve=Bi,r.curves=Li,r.ec=Xi,r.eddsa=null})).ec,new me("signing-key/5.7.0"),new me("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(Yi||(Yi={})),Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const ts={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function es(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}const rs=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ns=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,is=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ss(t,e){if(!("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e))return e;!function(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}(t)}function os(t,e={}){if("string"!=typeof t)return t;const r=t.trim();if('"'===t[0]&&'"'===t.at(-1)&&!t.includes("\\"))return r.slice(1,-1);if(r.length<=9){const t=r.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!is.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(rs.test(t)||ns.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,ss)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}var as=r(8764).Buffer;function cs(t,...e){try{return(r=t(...e))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(t){return Promise.reject(t)}var r}function ls(t){if(function(t){const e=typeof t;return null===t||"object"!==e&&"function"!==e}(t))return String(t);if(function(t){const e=Object.getPrototypeOf(t);return!e||e.isPrototypeOf(Object)}(t)||Array.isArray(t))return JSON.stringify(t);if("function"==typeof t.toJSON)return ls(t.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function us(){if(void 0===typeof as)throw new TypeError("[unstorage] Buffer is not supported!")}const hs="base64:";function ds(t){return t?t.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function fs(...t){return ds(t.join(":"))}function ps(t){return(t=ds(t))?t+":":""}const ms=()=>{const t=new Map;return{name:"memory",options:{},hasItem:e=>t.has(e),getItem:e=>t.get(e)??null,getItemRaw:e=>t.get(e)??null,setItem(e,r){t.set(e,r)},setItemRaw(e,r){t.set(e,r)},removeItem(e){t.delete(e)},getKeys:()=>Array.from(t.keys()),clear(){t.clear()},dispose(){t.clear()}}};function gs(t,e,r){return t.watch?t.watch(((t,n)=>e(t,r+n))):()=>{}}async function ys(t){"function"==typeof t.dispose&&await cs(t.dispose)}function ws(t){return new Promise(((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)}))}function bs(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=ws(r);return(t,r)=>n.then((n=>r(n.transaction(e,t).objectStore(e))))}let vs;function As(){return vs||(vs=bs("keyval-store","keyval")),vs}function Es(t,e=As()){return e("readonly",(e=>ws(e.get(t))))}function xs(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return(t=>{const e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,((t,e)=>"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e))})(t)}catch(e){return t}}function _s(t){return"string"==typeof t?t:(e=t,JSON.stringify(e,((t,e)=>"bigint"==typeof e?e.toString()+"n":e))||"");var e}var Ss=(t={})=>{const e=t.base&&t.base.length>0?`${t.base}:`:"",r=t=>e+t;let n;return t.dbName&&t.storeName&&(n=bs(t.dbName,t.storeName)),{name:"idb-keyval",options:t,hasItem:async t=>!(typeof await Es(r(t),n)>"u"),getItem:async t=>await Es(r(t),n)??null,setItem:(t,e)=>function(t,e,r=As()){return r("readwrite",(r=>(r.put(e,t),ws(r.transaction))))}(r(t),e,n),removeItem:t=>function(t,e=As()){return e("readwrite",(e=>(e.delete(t),ws(e.transaction))))}(r(t),n),getKeys:()=>function(t=As()){return t("readonly",(t=>{if(t.getAllKeys)return ws(t.getAllKeys());const e=[];return function(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},ws(t.transaction)}(t,(t=>e.push(t.key))).then((()=>e))}))}(n),clear:()=>function(t=As()){return t("readwrite",(t=>(t.clear(),ws(t.transaction))))}(n)}};class Ms{constructor(){this.indexedDb=function(t={}){const e={mounts:{"":t.driver||ms()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=t=>{for(const r of e.mountpoints)if(t.startsWith(r))return{base:r,relativeKey:t.slice(r.length),driver:e.mounts[r]};return{base:"",relativeKey:t,driver:e.mounts[""]}},n=(t,r)=>e.mountpoints.filter((e=>e.startsWith(t)||r&&t.startsWith(e))).map((r=>({relativeBase:t.length>r.length?t.slice(r.length):void 0,mountpoint:r,driver:e.mounts[r]}))),i=(t,r)=>{if(e.watching){r=ds(r);for(const n of e.watchListeners)n(t,r)}},s=async()=>{if(e.watching){for(const t in e.unwatch)await e.unwatch[t]();e.unwatch={},e.watching=!1}},o=(t,e,n)=>{const i=new Map,s=t=>{let e=i.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},i.set(t.base,e)),e};for(const n of t){const t="string"==typeof n,i=ds(t?n:n.key),o=t?void 0:n.value,a=t||!n.options?e:{...e,...n.options},c=r(i);s(c).items.push({key:i,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...i.values()].map((t=>n(t)))).then((t=>t.flat()))},a={hasItem(t,e={}){t=ds(t);const{relativeKey:n,driver:i}=r(t);return cs(i.hasItem,n,e)},getItem(t,e={}){t=ds(t);const{relativeKey:n,driver:i}=r(t);return cs(i.getItem,n,e).then((t=>os(t)))},getItems:(t,e)=>o(t,e,(t=>t.driver.getItems?cs(t.driver.getItems,t.items.map((t=>({key:t.relativeKey,options:t.options}))),e).then((e=>e.map((e=>({key:fs(t.base,e.key),value:os(e.value)}))))):Promise.all(t.items.map((e=>cs(t.driver.getItem,e.relativeKey,e.options).then((t=>({key:e.key,value:os(t)})))))))),getItemRaw(t,e={}){t=ds(t);const{relativeKey:n,driver:i}=r(t);return i.getItemRaw?cs(i.getItemRaw,n,e):cs(i.getItem,n,e).then((t=>function(t){return"string"!=typeof t?t:t.startsWith(hs)?(us(),as.from(t.slice(hs.length),"base64")):t}(t)))},async setItem(t,e,n={}){if(void 0===e)return a.removeItem(t);t=ds(t);const{relativeKey:s,driver:o}=r(t);o.setItem&&(await cs(o.setItem,s,ls(e),n),o.watch||i("update",t))},async setItems(t,e){await o(t,e,(async t=>{t.driver.setItems&&await cs(t.driver.setItems,t.items.map((t=>({key:t.relativeKey,value:ls(t.value),options:t.options}))),e),t.driver.setItem&&await Promise.all(t.items.map((e=>cs(t.driver.setItem,e.relativeKey,ls(e.value),e.options))))}))},async setItemRaw(t,e,n={}){if(void 0===e)return a.removeItem(t,n);t=ds(t);const{relativeKey:s,driver:o}=r(t);if(o.setItemRaw)await cs(o.setItemRaw,s,e,n);else{if(!o.setItem)return;await cs(o.setItem,s,function(t){if("string"==typeof t)return t;us();const e=as.from(t).toString("base64");return hs+e}(e),n)}o.watch||i("update",t)},async removeItem(t,e={}){"boolean"==typeof e&&(e={removeMeta:e}),t=ds(t);const{relativeKey:n,driver:s}=r(t);s.removeItem&&(await cs(s.removeItem,n,e),(e.removeMeta||e.removeMata)&&await cs(s.removeItem,n+"$",e),s.watch||i("remove",t))},async getMeta(t,e={}){"boolean"==typeof e&&(e={nativeOnly:e}),t=ds(t);const{relativeKey:n,driver:i}=r(t),s=Object.create(null);if(i.getMeta&&Object.assign(s,await cs(i.getMeta,n,e)),!e.nativeOnly){const t=await cs(i.getItem,n+"$",e).then((t=>os(t)));t&&"object"==typeof t&&("string"==typeof t.atime&&(t.atime=new Date(t.atime)),"string"==typeof t.mtime&&(t.mtime=new Date(t.mtime)),Object.assign(s,t))}return s},setMeta(t,e,r={}){return this.setItem(t+"$",e,r)},removeMeta(t,e={}){return this.removeItem(t+"$",e)},async getKeys(t,e={}){t=ps(t);const r=n(t,!0);let i=[];const s=[];for(const t of r){const r=(await cs(t.driver.getKeys,t.relativeBase,e)).map((e=>t.mountpoint+ds(e))).filter((t=>!i.some((e=>t.startsWith(e)))));s.push(...r),i=[t.mountpoint,...i.filter((e=>!e.startsWith(t.mountpoint)))]}return t?s.filter((e=>e.startsWith(t)&&!e.endsWith("$"))):s.filter((t=>!t.endsWith("$")))},async clear(t,e={}){t=ps(t),await Promise.all(n(t,!1).map((async t=>{if(t.driver.clear)return cs(t.driver.clear,t.relativeBase,e);if(t.driver.removeItem){const r=await t.driver.getKeys(t.relativeBase||"",e);return Promise.all(r.map((r=>t.driver.removeItem(r,e))))}})))},async dispose(){await Promise.all(Object.values(e.mounts).map((t=>ys(t))))},watch:async t=>(await(async()=>{if(!e.watching){e.watching=!0;for(const t in e.mounts)e.unwatch[t]=await gs(e.mounts[t],i,t)}})(),e.watchListeners.push(t),async()=>{e.watchListeners=e.watchListeners.filter((e=>e!==t)),0===e.watchListeners.length&&await s()}),async unwatch(){e.watchListeners=[],await s()},mount(t,r){if((t=ps(t))&&e.mounts[t])throw new Error(`already mounted at ${t}`);return t&&(e.mountpoints.push(t),e.mountpoints.sort(((t,e)=>e.length-t.length))),e.mounts[t]=r,e.watching&&Promise.resolve(gs(r,i,t)).then((r=>{e.unwatch[t]=r})).catch(console.error),a},async unmount(t,r=!0){(t=ps(t))&&e.mounts[t]&&(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),r&&await ys(e.mounts[t]),e.mountpoints=e.mountpoints.filter((e=>e!==t)),delete e.mounts[t])},getMount(t=""){t=ds(t)+":";const e=r(t);return{driver:e.driver,base:e.base}},getMounts:(t="",e={})=>(t=ds(t),n(t,e.parents).map((t=>({driver:t.driver,base:t.mountpoint}))))};return a}({driver:Ss({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map((t=>[t.key,t.value]))}async getItem(t){const e=await this.indexedDb.getItem(t);if(null!==e)return e}async setItem(t,e){await this.indexedDb.setItem(t,_s(e))}async removeItem(t){await this.indexedDb.removeItem(t)}}var Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},ks={exports:{}};function Is(t){var e;return[t[0],xs(null!=(e=t[1])?e:"")]}!function(){let t;function e(){}t=e,t.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){const t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),typeof Cs<"u"&&Cs.localStorage?ks.exports=Cs.localStorage:typeof window<"u"&&window.localStorage?ks.exports=window.localStorage:ks.exports=new e}();class Ps{constructor(){this.localStorage=ks.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(Is)}async getItem(t){const e=this.localStorage.getItem(t);if(null!==e)return xs(e)}async setItem(t,e){this.localStorage.setItem(t,_s(e))}async removeItem(t){this.localStorage.removeItem(t)}}class Os{constructor(){this.initialized=!1,this.setInitialized=t=>{this.storage=t,this.initialized=!0};const t=new Ps;this.storage=t;try{(async(t,e,r)=>{const n="wc_storage_version",i=await e.getItem(n);if(i&&i>=1)return void r(e);const s=await t.getKeys();if(!s.length)return void r(e);const o=[];for(;s.length;){const r=s.shift();if(!r)continue;const n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){const n=await t.getItem(r);await e.setItem(r,n),o.push(r)}}await e.setItem(n,1),r(e),(async(t,e)=>{e.length&&e.forEach((async e=>{await t.removeItem(e)}))})(t,o)})(t,new Ms,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(t){return await this.initialize(),this.storage.getItem(t)}async setItem(t,e){return await this.initialize(),this.storage.setItem(t,e)}async removeItem(t){return await this.initialize(),this.storage.removeItem(t)}async initialize(){this.initialized||await new Promise((t=>{const e=setInterval((()=>{this.initialized&&(clearInterval(e),t())}),20)}))}}var Ns=r(772),Ts=r(6559),Rs=r.n(Ts);const Bs="custom_context";class Ls{constructor(t){this.nodeValue=t,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class Us{constructor(t){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=t,this.sizeInBytes=0}append(t){const e=new Ls(t);if(e.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${t} with size ${e.size}`);for(;this.size+e.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=e),this.tail=e):(this.head=e,this.tail=e),this.lengthInNodes++,this.sizeInBytes+=e.size}shift(){if(!this.head)return;const t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}toArray(){const t=[];let e=this.head;for(;null!==e;)t.push(e.value),e=e.next;return t}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let t=this.head;return{next:()=>{if(!t)return{done:!0,value:null};const e=t.value;return t=t.next,{done:!1,value:e}}}}}class js{constructor(t,e=1024e3){this.level=t??"error",this.levelValue=Ts.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=e,this.logs=new Us(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(t,e){e===Ts.levels.values.error?console.error(t):e===Ts.levels.values.warn?console.warn(t):e===Ts.levels.values.debug?console.debug(t):e===Ts.levels.values.trace?console.trace(t):console.log(t)}appendToLogs(t){this.logs.append(_s({timestamp:(new Date).toISOString(),log:t}));const e="string"==typeof t?JSON.parse(t).level:t.level;e>=this.levelValue&&this.forwardToConsole(t,e)}getLogs(){return this.logs}clearLogs(){this.logs=new Us(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(t){const e=this.getLogArray();return e.push(_s({extraMetadata:t})),new Blob(e,{type:"application/json"})}}class Ds{constructor(t,e=1024e3){this.baseChunkLogger=new js(t,e)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}downloadLogsBlobInBrowser(t){const e=URL.createObjectURL(this.logsToBlob(t)),r=document.createElement("a");r.href=e,r.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(e)}}class Fs{constructor(t,e=1024e3){this.baseChunkLogger=new js(t,e)}write(t){this.baseChunkLogger.appendToLogs(t)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(t){return this.baseChunkLogger.logsToBlob(t)}}var zs=Object.defineProperty,Hs=Object.defineProperties,$s=Object.getOwnPropertyDescriptors,qs=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Gs=(t,e,r)=>e in t?zs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ks=(t,e)=>{for(var r in e||(e={}))Ws.call(e,r)&&Gs(t,r,e[r]);if(qs)for(var r of qs(e))Vs.call(e,r)&&Gs(t,r,e[r]);return t},Zs=(t,e)=>Hs(t,$s(e));function Qs(t){return Zs(Ks({},t),{level:t?.level||"info"})}function Js(t,e=Bs){let r="";return r=typeof t.bindings>"u"?function(t,e=Bs){return t[e]||""}(t,e):t.bindings().context||"",r}function Ys(t,e,r=Bs){const n=function(t,e,r=Bs){const n=Js(t,r);return n.trim()?`${n}/${e}`:e}(t,e,r);return function(t,e,r=Bs){return t[r]=e,t}(t.child({context:n}),n,r)}var Xs=r(8200);class to extends Xs.q{constructor(t){super(),this.opts=t,this.protocol="wc",this.version=2}}class eo extends Xs.q{constructor(t,e){super(),this.core=t,this.logger=e,this.records=new Map}}class ro{constructor(t,e){this.logger=t,this.core=e}}class no extends Xs.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class io extends Xs.q{constructor(t){super()}}class so{constructor(t,e,r,n){this.core=t,this.logger=e,this.name=r}}class oo extends Xs.q{constructor(t,e){super(),this.relayer=t,this.logger=e}}class ao extends Xs.q{constructor(t,e){super(),this.core=t,this.logger=e}}class co{constructor(t,e){this.projectId=t,this.logger=e}}class lo{constructor(t,e){this.projectId=t,this.logger=e}}var uo=r(1050);const ho="base64url",fo="did",po="key",mo="base58btc";function go(t){return te(Xt(_s(t),"utf8"),ho)}function yo(t){const e="z"+te(P([Xt("K36",mo),t]),mo);return[fo,po,e].join(":")}function wo(t=(0,S.randomBytes)(32)){return uo._w(t)}r(3014);var bo=r(4155),vo=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,s=e.length;ie in t?Oo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Lo=(t,e)=>{for(var r in e||(e={}))To.call(e,r)&&Bo(t,r,e[r]);if(No)for(var r of No(e))Ro.call(e,r)&&Bo(t,r,e[r]);return t};const Uo="react-native",jo="browser",Do="js";function Fo(){return typeof Po<"u"&&typeof Po.versions<"u"&&typeof Po.versions.node<"u"}function zo(){return!(0,v.getDocument)()&&!!(0,v.getNavigator)()&&"ReactNative"===navigator.product}function Ho(){return!Fo()&&!!(0,v.getNavigator)()&&!!(0,v.getDocument)()}function $o(){return zo()?Uo:Fo()?"node":Ho()?jo:"unknown"}function qo(t,e,n){const i=function(){if($o()===Uo&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Platform)<"u"){const{OS:t,Version:e}=r.g.Platform;return[t,e].join("-")}const t=e?Io(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new So:"undefined"!=typeof navigator?Io(navigator.userAgent):void 0!==bo&&bo.version?new Eo(bo.version.slice(1)):null;var e;if(null===t)return"unknown";const n=t.os?t.os.replace(" ","").toLowerCase():"unknown";return"browser"===t.type?[n,t.name,t.version].join("-"):[n,t.version].join("-")}(),s=function(){var t;const e=$o();return e===jo?[e,(null==(t=(0,v.getLocation)())?void 0:t.host)||"unknown"].join(":"):e}();return[[t,e].join("-"),[Do,n].join("-"),i,s].join("/")}function Wo(t){return Object.fromEntries(t.entries())}function Vo(t){return new Map(Object.entries(t))}function Go(t,e,r){return new Promise((async(n,i)=>{const s=setTimeout((()=>i(new Error(r))),e);try{n(await t)}catch(t){i(t)}clearTimeout(s)}))}function Ko(t,e){if("string"==typeof e&&e.startsWith(`${t}:`))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${t}`)}function Zo(t,e){return(0,b.fromMiliseconds)((e||Date.now())+(0,b.toMiliseconds)(t))}function Qo(t){return Date.now()>=(0,b.toMiliseconds)(t)}function Jo(t,e){return`${t}${e?`:${e}`:""}`}var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{};!function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof Po&&Po.versions&&Po.versions.node?n=Yo:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&t.exports,o=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",a="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],u=[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],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),o&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var m=function(t,e,r){return function(n){return new P(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,i){return new P(t,e,i).update(n)[r]()}},y=function(t,e,r){return function(e,n,i,s){return E["cshake"+t].update(e,n,i,s)[r]()}},w=function(t,e,r){return function(e,n,i,s){return E["kmac"+t].update(e,n,i,s)[r]()}},b=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function O(t,e,r){P.call(this,t,e,r)}P.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,s,a=this.blocks,c=this.byteCount,u=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(a[i>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=c){for(this.start=i-c,this.block=a[h],i=0;i>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},P.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,s=t.length;if(r)i=s;else for(var a=0;a=57344?i+=3:(c=65536+((1023&c)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},P.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];o%e==0&&(N(r),s=0)}return i&&(t=r[s],c+=a[t>>4&15]+a[15&t],i>1&&(c+=a[t>>12&15]+a[t>>8&15]),i>2&&(c+=a[t>>20&15]+a[t>>16&15])),c},P.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&N(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},O.prototype=new P,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var N=function(t){var e,r,n,i,s,o,a,c,l,h,d,f,p,m,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(h<<1|d>>>31),r=a^(d<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(f<<1|p>>>31),r=l^(p<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|s>>>31),r=d^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=m^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&m,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~m&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=u[n],t[1]^=u[n+1]};if(s)t.exports=E;else for(_=0;_{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var sa,oa;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(sa||(sa={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(oa||(oa={}));const aa="0123456789abcdef";class ca{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==ea[r]&&this.throwArgumentError("invalid log level name","logLevel",t),!(ra>ea[r])&&console.log.apply(console,e)}debug(...t){this._log(ca.levels.DEBUG,t)}info(...t){this._log(ca.levels.INFO,t)}warn(...t){this._log(ca.levels.WARNING,t)}makeError(t,e,r){if(ta)return this.makeError("censored error",e,{});e||(e=ca.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=aa[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch{n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let s="";switch(e){case oa.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case oa.CALL_EXCEPTION:case oa.INSUFFICIENT_FUNDS:case oa.MISSING_NEW:case oa.NONCE_EXPIRED:case oa.REPLACEMENT_UNDERPRICED:case oa.TRANSACTION_REPLACED:case oa.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const o=new Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach((function(t){o[t]=r[t]})),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,ca.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){ia&&this.throwError("platform missing String.prototype.normalize",ca.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ia})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,ca.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,ca.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,ca.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",ca.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",ca.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",ca.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return na||(na=new ca("logger/5.7.0")),na}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",ca.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Xo){if(!t)return;this.globalLogger().throwError("error censorship permanent",ca.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ta=!!t,Xo=!!e}static setLogLevel(t){const e=ea[t.toLowerCase()];null!=e?ra=e:ca.globalLogger().warn("invalid log level - "+t)}static from(t){return new ca(t)}}ca.errors=oa,ca.levels=sa;const la=new ca("bytes/5.7.0");function ua(t){return!!t.toHexString}function ha(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return ha(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function da(t){return"number"==typeof t&&t==t&&t%1==0}function fa(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!da(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function pa(t,e){if(e||(e={}),"number"==typeof t){la.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),ha(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),ua(t)&&(t=t.toHexString()),ma(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":la.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t>4]+ga[15&n]}return e}return la.throwArgumentError("invalid hexlify value","value",t)}function wa(t,e){for("string"!=typeof t?t=ya(t):ma(t)||la.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&la.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}var ba={exports:{}},va=function(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{s=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:va.Buffer}catch{}function o(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function c(t,e,n,i){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=a(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],f=[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 p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==s||o!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],u=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(t);n=(p=p.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n=0);var e,n=t%26,i=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=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},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),s=t,o=0|s.words[s.length-1];0!=(r=26-this._countBits(o))&&(s=s.ushln(r),n.iushln(r),o=0|s.words[s.length-1]);var a,c=n.length-s.length;if("mod"!==e){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[s.length+h])+(0|n.words[s.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(s,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(s,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(s=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:s,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(s=a.div.neg()),{div:s,mod:a.mod}):this.negative&t.negative?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var s,o,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new i(1),o=new i(0),a=new i(0),c=new i(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(s.isOdd()||o.isOdd())&&(s.iadd(u),o.isub(h)),s.iushrn(1),o.iushrn(1);for(var p=0,m=1;!(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a),o.isub(c)):(n.isub(e),a.isub(s),c.isub(o))}return{a,b:c,gcd:n.iushln(l)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,s=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var o=new i(1),a=new i(0),c=s.clone();n.cmpn(1)>0&&s.cmpn(1)>0;){for(var l=0,u=1;!(n.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;!(s.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(s.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);n.cmp(s)>=0?(n.isub(s),o.isub(a)):(s.isub(n),a.isub(o))}return(e=0===n.cmpn(1)?o:a).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new _(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return w[t]=e,e},_.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var s=this.m.subn(1),o=0;!s.isZero()&&0===s.andln(1);)o++,s.iushrn(1);r(!s.isZero());var a=new i(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,s),d=this.pow(t,s.addn(1).iushrn(1)),f=this.pow(t,s),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;s!==r[0]&&(s=this.sqr(s)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(s=this.mul(s,r[o]),a=0,o=0)):a=0}c=26}return s},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},n(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(n).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):s.cmpn(0)<0&&(o=s.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Yo)}(ba);var Aa=ba.exports;const Ea="bignumber/5.7.0";var xa=Aa.BN;const _a=new ca(Ea),Sa={},Ma=9007199254740991;let Ca=!1;class ka{constructor(t,e){t!==Sa&&_a.throwError("cannot call constructor directly; use BigNumber.from",ca.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Pa(Oa(this).fromTwos(t))}toTwos(t){return Pa(Oa(this).toTwos(t))}abs(){return"-"===this._hex[0]?ka.from(this._hex.substring(1)):this}add(t){return Pa(Oa(this).add(Oa(t)))}sub(t){return Pa(Oa(this).sub(Oa(t)))}div(t){return ka.from(t).isZero()&&Na("division-by-zero","div"),Pa(Oa(this).div(Oa(t)))}mul(t){return Pa(Oa(this).mul(Oa(t)))}mod(t){const e=Oa(t);return e.isNeg()&&Na("division-by-zero","mod"),Pa(Oa(this).umod(e))}pow(t){const e=Oa(t);return e.isNeg()&&Na("negative-power","pow"),Pa(Oa(this).pow(e))}and(t){const e=Oa(t);return(this.isNegative()||e.isNeg())&&Na("unbound-bitwise-result","and"),Pa(Oa(this).and(e))}or(t){const e=Oa(t);return(this.isNegative()||e.isNeg())&&Na("unbound-bitwise-result","or"),Pa(Oa(this).or(e))}xor(t){const e=Oa(t);return(this.isNegative()||e.isNeg())&&Na("unbound-bitwise-result","xor"),Pa(Oa(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Na("negative-width","mask"),Pa(Oa(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Na("negative-width","shl"),Pa(Oa(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Na("negative-width","shr"),Pa(Oa(this).shrn(t))}eq(t){return Oa(this).eq(Oa(t))}lt(t){return Oa(this).lt(Oa(t))}lte(t){return Oa(this).lte(Oa(t))}gt(t){return Oa(this).gt(Oa(t))}gte(t){return Oa(this).gte(Oa(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Oa(this).isZero()}toNumber(){try{return Oa(this).toNumber()}catch{Na("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return _a.throwError("this platform does not support BigInt",ca.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Ca||(Ca=!0,_a.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?_a.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",ca.errors.UNEXPECTED_ARGUMENT,{}):_a.throwError("BigNumber.toString does not accept parameters",ca.errors.UNEXPECTED_ARGUMENT,{})),Oa(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof ka)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new ka(Sa,Ia(t)):t.match(/^-?[0-9]+$/)?new ka(Sa,Ia(new xa(t))):_a.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Na("underflow","BigNumber.from",t),(t>=Ma||t<=-Ma)&&Na("overflow","BigNumber.from",t),ka.from(String(t));const e=t;if("bigint"==typeof e)return ka.from(e.toString());if(fa(e))return ka.from(ya(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return ka.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(ma(t)||"-"===t[0]&&ma(t.substring(1))))return ka.from(t)}return _a.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Ia(t){if("string"!=typeof t)return Ia(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&_a.throwArgumentError("invalid hex","value",t),"0x00"===(t=Ia(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Pa(t){return ka.from(Ia(t))}function Oa(t){const e=ka.from(t).toHexString();return"-"===e[0]?new xa("-"+e.substring(3),16):new xa(e.substring(2),16)}function Na(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),_a.throwError(t,ca.errors.NUMERIC_FAULT,n)}const Ta=new ca(Ea),Ra={},Ba=ka.from(0),La=ka.from(-1);function Ua(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),Ta.throwError(t,ca.errors.NUMERIC_FAULT,i)}let ja="0";for(;ja.length<256;)ja+=ja;function Da(t){if("number"!=typeof t)try{t=ka.from(t).toNumber()}catch{}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ja.substring(0,t):Ta.throwArgumentError("invalid decimal size","decimals",t)}function Fa(t,e){null==e&&(e=0);const r=Da(e),n=(t=ka.from(t)).lt(Ba);n&&(t=t.mul(La));let i=t.mod(r).toString();for(;i.length2&&Ta.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&Ua("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.lengthnull==t[e]?n:(typeof t[e]!==r&&Ta.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&Ta.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&Ta.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new Ha(Ra,e,r,n)}}class $a{constructor(t,e,r,n){t!==Ra&&Ta.throwError("cannot use FixedNumber constructor; use FixedNumber.from",ca.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&Ta.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=za(this._value,this.format.decimals),r=za(t._value,t.format.decimals);return $a.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=za(this._value,this.format.decimals),r=za(t._value,t.format.decimals);return $a.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=za(this._value,this.format.decimals),r=za(t._value,t.format.decimals);return $a.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=za(this._value,this.format.decimals),r=za(t._value,t.format.decimals);return $a.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=$a.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(qa.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=$a.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(qa.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&Ta.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=$a.from("1"+ja.substring(0,t),this.format),n=Wa.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&Ta.throwArgumentError("invalid byte width","width",t),wa(ka.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return $a.fromString(this._value,t)}static fromValue(t,e,r){return null==r&&null!=e&&!function(t){return null!=t&&(ka.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||ma(t)||"bigint"==typeof t||fa(t))}(e)&&(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),$a.fromString(Fa(t,e),Ha.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=Ha.from(e),n=za(t,r.decimals);!r.signed&&n.lt(Ba)&&Ua("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=wa(i,r.width/8));const s=Fa(n,r.decimals);return new $a(Ra,i,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=Ha.from(e);if(pa(t).length>r.width/8)throw new Error("overflow");let n=ka.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=Fa(n,r.decimals);return new $a(Ra,i,s,r)}static from(t,e){if("string"==typeof t)return $a.fromString(t,e);if(fa(t))return $a.fromBytes(t,e);try{return $a.fromValue(t,0,e)}catch(t){if(t.code!==ca.errors.INVALID_ARGUMENT)throw t}return Ta.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const qa=$a.from(1),Wa=$a.from("0.5"),Va=new ca("strings/5.7.0");var Ga,Ka;function Za(t,e,r,n,i){if(t===Ka.BAD_PREFIX||t===Ka.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return t===Ka.OVERRUN?r.length-e-1:0}function Qa(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function Ja(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Ga||(Ga={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(Ka||(Ka={})),Object.freeze({error:function(t,e,r,n,i){return Va.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:Za,replace:function(t,e,r,n,i){return t===Ka.OVERLONG?(n.push(i),0):(n.push(65533),Za(t,e,r))}}),Ja("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),Qa("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Qa("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Qa("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r0&&Array.isArray(t)?i(t,e-1):r.push(t)}))};return i(t,e),r}function tc(t){return 1&t?~t>>1:t>>1}function ec(t,e){let r=Array(t);for(let n=0,i=-1;ne[t])):r}function ic(t,e,r){let n=Array(t).fill(void 0).map((()=>[]));for(let i=0;in[e].push(t)));return n}function sc(t,e){let r=1+e(),n=e(),i=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return Xa(ic(i.length,1+t,e).map(((t,e)=>{const s=t[0],o=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))})))}function oc(t,e){return ic(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const ac=function(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let t=0;t<31;t++)m=m<<1|u();let g=[],y=0,w=h;for(;;){let t=Math.floor(((m-y+1)*i-1)/w),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;y=o,w=1+a-o}let b=n-4;return g.map((e=>{switch(e-b){case 3:return b+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return b+256+(t[a++]<<8|t[a++]);case 1:return b+t[a++];default:return e-1}}))}(t))}(function(t){t=atob(t);const e=[];for(let r=0;rt-e));!function r(){let n=[];for(;;){let i=nc(t,e);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((t,e)=>e.set.size-t.set.size));let i=t(),s=i%3;i=i/3|0;let o=!!(1&i);return i>>=1,{branches:n,valid:s,fe0f:o,save:1==i,check:2==i}}()}(ac),new ca(Ya),new Uint8Array(32).fill(0),new ca("rlp/5.7.0"),new ca("address/5.7.0");const cc={};for(let t=0;t<10;t++)cc[String(t)]=String(t);for(let t=0;t<26;t++)cc[String.fromCharCode(65+t)]=String(10+t);Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991)),new ca("properties/5.7.0"),new ca(Ya),new Uint8Array(32).fill(0),ka.from(-1);const lc=ka.from(0),uc=ka.from(1);ka.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),wa(uc.toHexString(),32),wa(lc.toHexString(),32);var hc={},dc={},fc=pc;function pc(t,e){if(!t)throw new Error(e||"Assertion failed")}pc.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var mc={exports:{}};"function"==typeof Object.create?mc.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:mc.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var gc=fc,yc=mc.exports;function wc(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function bc(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function vc(t){return 1===t.length?"0"+t:t}function Ac(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}dc.inherits=yc,dc.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&s|128):wc(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i>>0}return s},dc.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},dc.rotr32=function(t,e){return t>>>e|t<<32-e},dc.rotl32=function(t,e){return t<>>32-e},dc.sum32=function(t,e){return t+e>>>0},dc.sum32_3=function(t,e,r){return t+e+r>>>0},dc.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},dc.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},dc.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,o=(s>>0,t[e+1]=s},dc.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},dc.sum64_lo=function(t,e,r,n){return e+n>>>0},dc.sum64_4_hi=function(t,e,r,n,i,s,o,a){var c=0,l=e;return c+=(l=l+n>>>0)>>0)>>0)>>0},dc.sum64_4_lo=function(t,e,r,n,i,s,o,a){return e+n+s+a>>>0},dc.sum64_5_hi=function(t,e,r,n,i,s,o,a,c,l){var u=0,h=e;return u+=(h=h+n>>>0)>>0)>>0)>>0)>>0},dc.sum64_5_lo=function(t,e,r,n,i,s,o,a,c,l){return e+n+s+a+l>>>0},dc.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},dc.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},dc.shr64_hi=function(t,e,r){return t>>>r},dc.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var Ec={},xc=dc,_c=fc;function Sc(){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}Ec.BlockHash=Sc,Sc.prototype.update=function(t,e){if(t=xc.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=xc.join32(t,0,t.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,s=8;s>>3},Cc.g1_256=function(t){return kc(t,17)^kc(t,19)^t>>>10};var Nc=dc,Tc=Ec,Rc=Cc,Bc=Nc.rotl32,Lc=Nc.sum32,Uc=Nc.sum32_5,jc=Rc.ft_1,Dc=Tc.BlockHash,Fc=[1518500249,1859775393,2400959708,3395469782];function zc(){if(!(this instanceof zc))return new zc;Dc.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Nc.inherits(zc,Dc);var Hc=zc;zc.blockSize=512,zc.outSize=160,zc.hmacStrength=80,zc.padLength=64,zc.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;nthis.blockSize&&(t=(new this.Hash).update(t).digest()),au(t.length<=this.blockSize);for(var e=t.length;e>8,o=255&i;s?r.push(s,o):r.push(o)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),pu=uu((function(t,e){var r=e;r.assert=hu,r.toArray=fu.toArray,r.zero2=fu.zero2,r.toHex=fu.toHex,r.encode=fu.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var o,a,c=t.andln(3)+i&3,l=e.andln(3)+s&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c:0,r[0].push(o),a=1&l?3!=(n=e.andln(7)+s&7)&&5!==n||2!==c?l:-l:0,r[1].push(a),2*i===o+1&&(i=1-i),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new Aa(t,"hex","le")}})),mu=pu.getNAF,gu=pu.getJSF,yu=pu.assert;function wu(t,e){this.type=t,this.p=new Aa(e.p,16),this.red=e.prime?Aa.red(e.prime):Aa.mont(this.p),this.zero=new Aa(0).toRed(this.red),this.one=new Aa(1).toRed(this.red),this.two=new Aa(2).toRed(this.red),this.n=e.n&&new Aa(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var bu=wu;function vu(t,e){this.curve=t,this.type=e,this.precomputed=null}wu.prototype.point=function(){throw new Error("Not implemented")},wu.prototype.validate=function(){throw new Error("Not implemented")},wu.prototype._fixedNafMul=function(t,e){yu(t.precomputed);var r=t._getDoubles(),n=mu(e,1,this._bitLength),i=(1<=s;c--)o=(o<<1)+n[c];a.push(o)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;a--){for(var c=0;a>=0&&0===s[a];a--)c++;if(a>=0&&c++,o=o.dblp(c),a<0)break;var l=s[a];yu(0!==l),o="affine"===t.type?l>0?o.mixedAdd(i[l-1>>1]):o.mixedAdd(i[-l-1>>1].neg()):l>0?o.add(i[l-1>>1]):o.add(i[-l-1>>1].neg())}return"affine"===t.type?o.toP():o},wu.prototype._wnafMulAdd=function(t,e,r,n,i){var s,o,a,c=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(s=0;s=1;s-=2){var f=s-1,p=s;if(1===c[f]&&1===c[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=gu(r[f],r[p]);for(h=Math.max(y[0].length,h),u[f]=new Array(h),u[p]=new Array(h),o=0;o=0;s--){for(var E=0;s>=0;){var x=!0;for(o=0;o=0&&E++,v=v.dblp(E),s<0)break;for(o=0;o0?a=l[o][_-1>>1]:_<0&&(a=l[o][-_-1>>1].neg()),v="affine"===a.type?v.mixedAdd(a):v.add(a))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},vu.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(s=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},xu.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),c=i.mul(r.b),l=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},xu.prototype.pointFromX=function(t,e){(t=new Aa(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},xu.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},xu.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""},Su.prototype.isInfinity=function(){return this.inf},Su.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Su.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},Su.prototype.getX=function(){return this.x.fromRed()},Su.prototype.getY=function(){return this.y.fromRed()},Su.prototype.mul=function(t){return t=new Aa(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Su.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Su.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Su.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Su.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Su.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Au(Mu,bu.BasePoint),xu.prototype.jpoint=function(t,e,r){return new Mu(this,t,e,r)},Mu.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Mu.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Mu.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),h=n.redMul(l),d=c.redSqr().redIAdd(u).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(s.redMul(u)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},Mu.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=r.redMul(c),h=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(h,d,f)},Mu.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Mu.prototype.inspect=function(){return this.isInfinity()?"":""},Mu.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Cu=uu((function(t,e){var r=e;r.base=bu,r.short=_u,r.mont=null,r.edwards=null})),ku=uu((function(t,e){var r,n=e,i=pu.assert;function s(t){"short"===t.type?this.curve=new Cu.short(t):"edwards"===t.type?this.curve=new Cu.edwards(t):this.curve=new Cu.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new s(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=s,o("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:hc.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("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:hc.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("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:hc.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("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:hc.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"]}),o("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:hc.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"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:hc.sha256,gRed:!1,g:["9"]}),o("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:hc.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("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:hc.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Iu(t){if(!(this instanceof Iu))return new Iu(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=fu.toArray(t.entropy,t.entropyEnc||"hex"),r=fu.toArray(t.nonce,t.nonceEnc||"hex"),n=fu.toArray(t.pers,t.persEnc||"hex");hu(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Pu=Iu;Iu.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(t.concat(r||[])),this._reseed=1},Iu.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=fu.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var Ru=pu.assert;function Bu(t,e){if(t instanceof Bu)return t;this._importDER(t,e)||(Ru(t.r&&t.s,"Signature without r or s"),this.r=new Aa(t.r,16),this.s=new Aa(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Lu=Bu;function Uu(){this.place=0}function ju(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return!(i<=127)&&(e.place=o,i)}function Du(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}Bu.prototype._importDER=function(t,e){t=pu.toArray(t,e);var r=new Uu;if(48!==t[r.place++])return!1;var n=ju(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=ju(t,r);if(!1===i)return!1;var s=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=ju(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new Aa(s),this.s=new Aa(a),this.recoveryParam=null,!0},Bu.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=Du(e),r=Du(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];Fu(n,e.length),(n=n.concat(e)).push(2),Fu(n,r.length);var i=n.concat(r),s=[48];return Fu(s,i.length),s=s.concat(i),pu.encode(s,t)};var zu=function(){throw new Error("unsupported")},Hu=pu.assert;function $u(t){if(!(this instanceof $u))return new $u(t);"string"==typeof t&&(Hu(Object.prototype.hasOwnProperty.call(ku,t),"Unknown curve "+t),t=ku[t]),t instanceof ku.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var qu,Wu=$u;$u.prototype.keyPair=function(t){return new Tu(this,t)},$u.prototype.keyFromPrivate=function(t,e){return Tu.fromPrivate(this,t,e)},$u.prototype.keyFromPublic=function(t,e){return Tu.fromPublic(this,t,e)},$u.prototype.genKeyPair=function(t){t||(t={});for(var e=new Pu({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||zu(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new Aa(2));;){var i=new Aa(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},$u.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},$u.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new Aa(t,16));for(var i=this.n.byteLength(),s=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new Pu({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new Aa(1)),l=0;;l++){var u=n.k?n.k(l):new Aa(a.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(c)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=u.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new Lu({r:f,s:p,recoveryParam:m})}}}}}},$u.prototype.verify=function(t,e,r,n){t=this._truncateToN(new Aa(t,16)),r=this.keyFromPublic(r,n);var i=(e=new Lu(e,"hex")).r,s=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,a=s.invm(this.n),c=a.mul(t).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},$u.prototype.recoverPubKey=function(t,e,r,n){Hu((3&r)===r,"The recovery param is more than two bits"),e=new Lu(e,n);var i=this.n,s=new Aa(t),o=e.r,a=e.s,c=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=e.r.invm(i),h=i.sub(s).mul(u).umod(i),d=a.mul(u).umod(i);return this.g.mulAdd(h,o,d)},$u.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new Lu(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")},uu((function(t,e){var r=e;r.version="6.5.4",r.utils=pu,r.rand=function(){throw new Error("unsupported")},r.curve=Cu,r.curves=ku,r.ec=Wu,r.eddsa=null})).ec,new ca("signing-key/5.7.0"),new ca("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(qu||(qu={})),Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Vu="base10",Gu="base16",Ku="base64pad",Zu="utf8";function Qu(){return te((0,S.randomBytes)(32),Gu)}function Ju(t){return te((0,M.vp)(Xt(t,Zu)),Gu)}function Yu(t){return Number(te(t,Vu))}function Xu(t){const e=Xt(t,Ku),r=e.slice(0,1);if(1===Yu(r)){const t=33,n=t+12,i=e.slice(1,t),s=e.slice(t,n);return{type:r,sealed:e.slice(n),iv:s,senderPublicKey:i}}const n=e.slice(1,13);return{type:r,sealed:e.slice(13),iv:n}}function th(t){const e=t?.type||0;if(1===e){if(typeof t?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof t?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:t?.senderPublicKey,receiverPublicKey:t?.receiverPublicKey}}function eh(t){return 1===t.type&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}function rh(t){return t?.relay||{protocol:"irn"}}function nh(t){const e=ee[t];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${t}`);return e}var ih=Object.defineProperty,sh=Object.defineProperties,oh=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,ch=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable,uh=(t,e,r)=>e in t?ih(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hh=(t,e)=>{for(var r in e||(e={}))ch.call(e,r)&&uh(t,r,e[r]);if(ah)for(var r of ah(e))lh.call(e,r)&&uh(t,r,e[r]);return t};function dh(t,e="-"){const r={},n="relay"+e;return Object.keys(t).forEach((e=>{if(e.startsWith(n)){const i=e.replace(n,""),s=t[e];r[i]=s}})),r}function fh(t){const e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),r=-1!==t.indexOf("?")?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r).split("@"),s=typeof r<"u"?t.substring(r):"",o=E.parse(s),a="string"==typeof o.methods?o.methods.split(","):void 0;return{protocol:n,topic:ph(i[0]),version:parseInt(i[1],10),symKey:o.symKey,relay:dh(o),methods:a,expiryTimestamp:o.expiryTimestamp?parseInt(o.expiryTimestamp,10):void 0}}function ph(t){return t.startsWith("//")?t.substring(2):t}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const mh={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},gh={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function yh(t,e){const{message:r,code:n}=gh[t];return{message:e?`${r} ${e}`:r,code:n}}function wh(t,e){const{message:r,code:n}=mh[t];return{message:e?`${r} ${e}`:r,code:n}}function bh(t){return typeof t>"u"}function vh(t,e){return!(!e||!bh(t))||"string"==typeof t&&!!t.trim().length}function Ah(t){return typeof t<"u"&&null!==typeof t}function Eh(){const t=$o();return new Promise((e=>{switch(t){case jo:e(Ho()&&navigator?.onLine);break;case Uo:e(async function(){return!(zo()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo)||(await(null==r.g?void 0:r.g.NetInfo.fetch()))?.isConnected}());break;default:e(!0)}}))}const xh="INTERNAL_ERROR",_h="SERVER_ERROR",Sh=[-32700,-32600,-32601,-32602,-32603],Mh={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[xh]:{code:-32603,message:"Internal error"},[_h]:{code:-32e3,message:"Server error"}},Ch=_h;function kh(t){return Object.keys(Mh).includes(t)?Mh[t]:Mh[Ch]}function Ih(t,e,r){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${e}`):t}var Ph=r(1468);function Oh(t=3){return Date.now()*Math.pow(10,t)+Math.floor(Math.random()*Math.pow(10,t))}function Nh(t=6){return BigInt(Oh(t))}function Th(t,e,r){return{id:r||Oh(),jsonrpc:"2.0",method:t,params:e}}function Rh(t,e){return{id:t,jsonrpc:"2.0",result:e}}function Bh(t,e,r){return{id:t,jsonrpc:"2.0",error:Lh(e,r)}}function Lh(t,e){return void 0===t?kh(xh):("string"==typeof t&&(t=Object.assign(Object.assign({},kh(_h)),{message:t})),void 0!==e&&(t.data=e),r=t.code,Sh.includes(r)&&(t=function(t){const e=Object.values(Mh).find((e=>e.code===t));return e||Mh[Ch]}(t.code)),t);var r}class Uh{}class jh extends Uh{constructor(){super()}}class Dh extends jh{constructor(t){super()}}function Fh(t,e){const r=function(t){const e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==r&&new RegExp(e).test(r)}function zh(t){return Fh(t,"^https?:")}function Hh(t){return Fh(t,"^wss?:")}function $h(t){return"object"==typeof t&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function qh(t){return $h(t)&&"method"in t}function Wh(t){return $h(t)&&(Vh(t)||Gh(t))}function Vh(t){return"result"in t}function Gh(t){return"error"in t}class Kh extends Dh{constructor(t){super(t),this.events=new y.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async request(t,e){return this.requestStrict(Th(t.method,t.params||[],t.id||Nh().toString()),e)}async requestStrict(t,e){return new Promise((async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(t){n(t)}this.events.on(`${t.id}`,(t=>{Gh(t)?n(t.error):r(t.result)}));try{await this.connection.send(t,e)}catch(t){n(t)}}))}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),Wh(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&3e3===t.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof t&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",(t=>this.onPayload(t))),this.connection.on("close",(t=>this.onClose(t))),this.connection.on("error",(t=>this.events.emit("error",t))),this.connection.on("register_error",(t=>this.onClose())),this.hasRegisteredEventListeners=!0)}}const Zh=t=>t.split("?")[0],Qh=typeof WebSocket<"u"?WebSocket:typeof r.g<"u"&&typeof r.g.WebSocket<"u"?r.g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:r(7026);class Jh{constructor(t){if(this.url=t,this.events=new y.EventEmitter,this.registering=!1,!Hh(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){return new Promise(((t,e)=>{typeof this.socket>"u"?e(new Error("Connection already closed")):(this.socket.onclose=e=>{this.onClose(e),t()},this.socket.close())}))}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(_s(t))}catch(e){this.onError(t.id,e)}}register(t=this.url){if(!Hh(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return e(new Error("WebSocket connection is missing or invalid"));t(this.socket)}))}))}return this.url=t,this.registering=!0,new Promise(((e,n)=>{const i=new URLSearchParams(t).get("origin"),s=(0,Ph.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:(a=t,!new RegExp("wss?://localhost(:d{2,5})?").test(a))},o=new Qh(t,[],s);var a;typeof WebSocket<"u"||typeof r.g<"u"&&typeof r.g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?o.onerror=t=>{const e=t;n(this.emitError(e.error))}:o.on("error",(t=>{n(this.emitError(t))})),o.onopen=()=>{this.onOpen(o),e(o)}}))}onOpen(t){t.onmessage=t=>this.onPayload(t),t.onclose=t=>this.onClose(t),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const e="string"==typeof t.data?xs(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=Bh(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return Ih(t,Zh(e),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(t){const e=this.parseError(new Error(t?.message||`WebSocket connection failed for host: ${Zh(this.url)}`));return this.events.emit("register_error",e),e}}var Yh=r(2307),Xh=r.n(Yh),td=r(204),ed=r.n(td),rd=r(4155),nd=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,o=new Uint8Array(s);t[e];){var u=r[t.charCodeAt(e)];if(255===u)return;for(var h=0,d=s-1;(0!==u||h>>0,o[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=s-i;f!==s&&0===o[f];)f++;for(var p=new Uint8Array(n+(s-f)),m=n;f!==s;)p[m++]=o[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var r=0,n=0,i=0,s=e.length;i!==s&&0===e[i];)i++,r++;for(var o=(s-i)*u+1>>>0,l=new Uint8Array(o);i!==s;){for(var h=e[i],d=0,f=o-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=d,i++}for(var p=o-n;p!==o&&0===l[p];)p++;for(var m=c.repeat(r);p{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")};class sd{constructor(t,e,r){this.name=t,this.prefix=e,this.baseEncode=r}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class od{constructor(t,e,r){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=r}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return cd(this,t)}}class ad{constructor(t){this.decoders=t}or(t){return cd(this,t)}decode(t){const e=t[0],r=this.decoders[e];if(r)return r.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const cd=(t,e)=>new ad({...t.decoders||{[t.prefix]:t},...e.decoders||{[e.prefix]:e}});class ld{constructor(t,e,r,n){this.name=t,this.prefix=e,this.baseEncode=r,this.baseDecode=n,this.encoder=new sd(t,e,r),this.decoder=new od(t,e,n)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const ud=({name:t,prefix:e,encode:r,decode:n})=>new ld(t,e,r,n),hd=({prefix:t,name:e,alphabet:r})=>{const{encode:n,decode:i}=nd(r,e);return ud({prefix:t,name:e,encode:n,decode:t=>id(i(t))})},dd=({name:t,prefix:e,bitsPerChar:r,alphabet:n})=>ud({prefix:e,name:t,encode:t=>((t,e,r)=>{const n="="===e[e.length-1],i=(1<r;)o-=r,s+=e[i&a>>o];if(o&&(s+=e[i&a<((t,e,r,n)=>{const i={};for(let t=0;t=8&&(a-=8,o[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return o})(e,n,r,t)}),fd=ud({prefix:"\0",name:"identity",encode:t=>(t=>(new TextDecoder).decode(t))(t),decode:t=>(t=>(new TextEncoder).encode(t))(t)});var pd=Object.freeze({__proto__:null,identity:fd});const md=dd({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var gd=Object.freeze({__proto__:null,base2:md});const yd=dd({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var wd=Object.freeze({__proto__:null,base8:yd});const bd=hd({prefix:"9",name:"base10",alphabet:"0123456789"});var vd=Object.freeze({__proto__:null,base10:bd});const Ad=dd({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ed=dd({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var xd=Object.freeze({__proto__:null,base16:Ad,base16upper:Ed});const _d=dd({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Sd=dd({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Md=dd({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Cd=dd({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),kd=dd({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Id=dd({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Pd=dd({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Od=dd({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Nd=dd({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Td=Object.freeze({__proto__:null,base32:_d,base32upper:Sd,base32pad:Md,base32padupper:Cd,base32hex:kd,base32hexupper:Id,base32hexpad:Pd,base32hexpadupper:Od,base32z:Nd});const Rd=hd({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Bd=hd({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var Ld=Object.freeze({__proto__:null,base36:Rd,base36upper:Bd});const Ud=hd({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),jd=hd({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Dd=Object.freeze({__proto__:null,base58btc:Ud,base58flickr:jd});const Fd=dd({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),zd=dd({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Hd=dd({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),$d=dd({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var qd=Object.freeze({__proto__:null,base64:Fd,base64pad:zd,base64url:Hd,base64urlpad:$d});const Wd=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Vd=Wd.reduce(((t,e,r)=>(t[r]=e,t)),[]),Gd=Wd.reduce(((t,e,r)=>(t[e.codePointAt(0)]=r,t)),[]),Kd=ud({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+Vd[e]),"")},decode:function(t){const e=[];for(const r of t){const t=Gd[r.codePointAt(0)];if(void 0===t)throw new Error(`Non-base256emoji character: ${r}`);e.push(t)}return new Uint8Array(e)}});var Zd=Object.freeze({__proto__:null,base256emoji:Kd}),Qd=Math.pow(2,31),Jd=Math.pow(2,7),Yd=Math.pow(2,14),Xd=Math.pow(2,21),tf=Math.pow(2,28),ef=Math.pow(2,35),rf=Math.pow(2,42),nf=Math.pow(2,49),sf=Math.pow(2,56),of=Math.pow(2,63),af={encode:function t(e,r,n){r=r||[];for(var i=n=n||0;e>=Qd;)r[n++]=255&e|128,e/=128;for(;-128&e;)r[n++]=255&e|128,e>>>=7;return r[n]=0|e,t.bytes=n-i+1,r},decode:function t(e,r){var n,i=0,s=0,o=r=r||0,a=e.length;do{if(o>=a)throw t.bytes=0,new RangeError("Could not decode varint");n=e[o++],i+=s<28?(127&n)<=128);return t.bytes=o-r,i},encodingLength:function(t){return t(cf.encode(t,e,r),e),uf=t=>cf.encodingLength(t),hf=(t,e)=>{const r=e.byteLength,n=uf(t),i=n+uf(r),s=new Uint8Array(i+r);return lf(t,s,0),lf(r,s,n),s.set(e,i),new df(t,r,e,s)};class df{constructor(t,e,r,n){this.code=t,this.size=e,this.digest=r,this.bytes=n}}const ff=({name:t,code:e,encode:r})=>new pf(t,e,r);class pf{constructor(t,e,r){this.name=t,this.code=e,this.encode=r}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?hf(this.code,e):e.then((t=>hf(this.code,t)))}throw Error("Unknown type, must be binary type")}}const mf=t=>async e=>new Uint8Array(await crypto.subtle.digest(t,e)),gf=ff({name:"sha2-256",code:18,encode:mf("SHA-256")}),yf=ff({name:"sha2-512",code:19,encode:mf("SHA-512")});Object.freeze({__proto__:null,sha256:gf,sha512:yf});const wf=id,bf={code:0,name:"identity",encode:wf,digest:t=>hf(0,wf(t))};Object.freeze({__proto__:null,identity:bf}),new TextEncoder,new TextDecoder;const vf={...pd,...gd,...wd,...vd,...xd,...Td,...Ld,...Dd,...qd,...Zd};function Af(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function Ef(t,e,r,n){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:r},decoder:{decode:n}}}const xf=Ef("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),_f=Ef("ascii","a",(t=>{let e="a";for(let r=0;r{const e=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Af(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length);for(let r=0;r{if(!this.initialized){const t=await this.getKeyChain();typeof t<"u"&&(this.keychain=t),this.initialized=!0}},this.has=t=>(this.isInitialized(),this.keychain.has(t)),this.set=async(t,e)=>{this.isInitialized(),this.keychain.set(t,e),await this.persist()},this.get=t=>{this.isInitialized();const e=this.keychain.get(t);if(typeof e>"u"){const{message:e}=yh("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e},this.del=async t=>{this.isInitialized(),this.keychain.delete(t),await this.persist()},this.core=t,this.logger=Ys(e,this.name)}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(t){await this.core.storage.setItem(this.storageKey,Wo(t))}async getKeyChain(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Vo(t):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class op{constructor(t,e,r){this.core=t,this.logger=e,this.name="crypto",this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=t=>(this.isInitialized(),this.keychain.has(t)),this.getClientId=async()=>(this.isInitialized(),yo(wo(await this.getClientSeed()).publicKey)),this.generateKeyPair=()=>{this.isInitialized();const t=function(){const t=C.Au();return{privateKey:te(t.secretKey,Gu),publicKey:te(t.publicKey,Gu)}}();return this.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=async t=>{this.isInitialized();const e=wo(await this.getClientSeed()),r=Qu(),n=Pf;return await async function(t,e,r,n,i=(0,b.fromMiliseconds)(Date.now())){const s={alg:"EdDSA",typ:"JWT"},o={iss:yo(n.publicKey),sub:t,aud:e,iat:i,exp:i+r},a=Xt([go((c={header:s,payload:o}).header),go(c.payload)].join("."),"utf8");var c;return function(t){return[go(t.header),go(t.payload),(e=t.signature,te(e,ho))].join(".");var e}({header:s,payload:o,signature:uo.Xx(n.secretKey,a)})}(r,t,n,e)},this.generateSharedKey=(t,e,r)=>{this.isInitialized();const n=function(t,e){const r=C.gi(Xt(t,Gu),Xt(e,Gu),!0);return te(new _.t(M.mE,r).expand(32),Gu)}(this.getPrivateKey(t),e);return this.setSymKey(n,r)},this.setSymKey=async(t,e)=>{this.isInitialized();const r=e||function(t){return te((0,M.vp)(Xt(t,Gu)),Gu)}(t);return await this.keychain.set(r,t),r},this.deleteKeyPair=async t=>{this.isInitialized(),await this.keychain.del(t)},this.deleteSymKey=async t=>{this.isInitialized(),await this.keychain.del(t)},this.encode=async(t,e,r)=>{this.isInitialized();const n=th(r),i=_s(e);if(eh(n)){const e=n.senderPublicKey,r=n.receiverPublicKey;t=await this.generateSharedKey(e,r)}const s=this.getSymKey(t),{type:o,senderPublicKey:a}=n;return function(t){const e=function(t){return Xt(`${t}`,Vu)}(typeof t.type<"u"?t.type:0);if(1===Yu(e)&&typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const r=typeof t.senderPublicKey<"u"?Xt(t.senderPublicKey,Gu):void 0,n=typeof t.iv<"u"?Xt(t.iv,Gu):(0,S.randomBytes)(12);return function(t){if(1===Yu(t.type)){if(typeof t.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return te(P([t.type,t.senderPublicKey,t.iv,t.sealed]),Ku)}return te(P([t.type,t.iv,t.sealed]),Ku)}({type:e,sealed:new x.OK(Xt(t.symKey,Gu)).seal(n,Xt(t.message,Zu)),iv:n,senderPublicKey:r})}({type:o,symKey:s,message:i,senderPublicKey:a})},this.decode=async(t,e,r)=>{this.isInitialized();const n=function(t,e){const r=Xu(t);return th({type:Yu(r.type),senderPublicKey:typeof r.senderPublicKey<"u"?te(r.senderPublicKey,Gu):void 0,receiverPublicKey:e?.receiverPublicKey})}(e,r);if(eh(n)){const e=n.receiverPublicKey,r=n.senderPublicKey;t=await this.generateSharedKey(e,r)}try{const r=function(t){const e=new x.OK(Xt(t.symKey,Gu)),{sealed:r,iv:n}=Xu(t.encoded),i=e.open(n,r);if(null===i)throw new Error("Failed to decrypt");return te(i,Zu)}({symKey:this.getSymKey(t),encoded:e});return xs(r)}catch(e){this.logger.error(`Failed to decode message from topic: '${t}', clientId: '${await this.getClientId()}'`),this.logger.error(e)}},this.getPayloadType=t=>Yu(Xu(t).type),this.getPayloadSenderPublicKey=t=>{const e=Xu(t);return e.senderPublicKey?te(e.senderPublicKey,Gu):void 0},this.core=t,this.logger=Ys(e,this.name),this.keychain=r||new sp(this.core,this.logger)}get context(){return Js(this.logger)}async setPrivateKey(t,e){return await this.keychain.set(t,e),t}getPrivateKey(t){return this.keychain.get(t)}async getClientSeed(){let t="";try{t=this.keychain.get(If)}catch{t=Qu(),await this.keychain.set(If,t)}return function(t,e="utf8"){const r=Sf[e];if(!r)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${t}`):Af(globalThis.Buffer.from(t,"utf-8"))}(t,"base16")}getSymKey(t){return this.keychain.get(t)}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class ap extends ro{constructor(t,e){super(t,e),this.logger=t,this.core=e,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=Cf,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{const t=await this.getRelayerMessages();typeof t<"u"&&(this.messages=t),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}finally{this.initialized=!0}}},this.set=async(t,e)=>{this.isInitialized();const r=Ju(e);let n=this.messages.get(t);return typeof n>"u"&&(n={}),typeof n[r]<"u"||(n[r]=e,this.messages.set(t,n),await this.persist()),r},this.get=t=>{this.isInitialized();let e=this.messages.get(t);return typeof e>"u"&&(e={}),e},this.has=(t,e)=>(this.isInitialized(),typeof this.get(t)[Ju(e)]<"u"),this.del=async t=>{this.isInitialized(),this.messages.delete(t),await this.persist()},this.logger=Ys(t,this.name),this.core=e}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(t){await this.core.storage.setItem(this.storageKey,Wo(t))}async getRelayerMessages(){const t=await this.core.storage.getItem(this.storageKey);return typeof t<"u"?Vo(t):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class cp extends no{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.events=new y.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,b.toMiliseconds)(b.ONE_MINUTE),this.failedPublishTimeout=(0,b.toMiliseconds)(b.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(t,e,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:r}});const i=r?.ttl||Of,s=rh(r),o=r?.prompt||!1,a=r?.tag||0,c=r?.id||Nh().toString(),l={topic:t,message:e,opts:{ttl:i,relay:s,prompt:o,tag:a,id:c}},u=`Failed to publish payload, please try again. id:${c} tag:${a}`,h=Date.now();let d,f=1;try{for(;void 0===d;){if(Date.now()-h>this.publishTimeout)throw new Error(u);this.logger.trace({id:c,attempts:f},`publisher.publish - attempt ${f}`),d=await await Go(this.rpcPublish(t,e,i,s,o,a,c).catch((t=>this.logger.warn(t))),this.publishTimeout,u),f++,d||await new Promise((t=>setTimeout(t,this.failedPublishTimeout)))}this.relayer.events.emit(Uf,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:t,message:e,opts:r}})}catch(t){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(t),null!=(n=r?.internal)&&n.throwOnFailedPublish)throw t;this.queue.set(c,l)}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.relayer=t,this.logger=Ys(e,this.name),this.registerEventListeners()}get context(){return Js(this.logger)}rpcPublish(t,e,r,n,i,s,o){var a,c,l,u;const h={method:nh(n.protocol).publish,params:{topic:t,message:e,ttl:r,prompt:i,tag:s},id:o};return bh(null==(a=h.params)?void 0:a.prompt)&&(null==(c=h.params)||delete c.prompt),bh(null==(l=h.params)?void 0:l.tag)&&(null==(u=h.params)||delete u.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.request(h)}removeRequestFromQueue(t){this.queue.delete(t)}checkQueue(){this.queue.forEach((async t=>{const{topic:e,message:r,opts:n}=t;await this.publish(e,r,n)}))}registerEventListeners(){this.relayer.core.heartbeat.on(Ns.HEARTBEAT_EVENTS.pulse,(()=>{if(this.needsTransportRestart)return this.needsTransportRestart=!1,void this.relayer.events.emit(Lf);this.checkQueue()})),this.relayer.on(Bf,(t=>{this.removeRequestFromQueue(t.id.toString())}))}}class lp{constructor(){this.map=new Map,this.set=(t,e)=>{const r=this.get(t);this.exists(t,e)||this.map.set(t,[...r,e])},this.get=t=>this.map.get(t)||[],this.exists=(t,e)=>this.get(t).includes(e),this.delete=(t,e)=>{if(typeof e>"u")return void this.map.delete(t);if(!this.map.has(t))return;const r=this.get(t);if(!this.exists(t,e))return;const n=r.filter((t=>t!==e));n.length?this.map.set(t,n):this.map.delete(t)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var up=Object.defineProperty,hp=Object.defineProperties,dp=Object.getOwnPropertyDescriptors,fp=Object.getOwnPropertySymbols,pp=Object.prototype.hasOwnProperty,mp=Object.prototype.propertyIsEnumerable,gp=(t,e,r)=>e in t?up(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yp=(t,e)=>{for(var r in e||(e={}))pp.call(e,r)&&gp(t,r,e[r]);if(fp)for(var r of fp(e))mp.call(e,r)&&gp(t,r,e[r]);return t},wp=(t,e)=>hp(t,dp(e));class bp extends oo{constructor(t,e){super(t,e),this.relayer=t,this.logger=e,this.subscriptions=new Map,this.topicMap=new lp,this.events=new y.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=Cf,this.subscribeTimeout=(0,b.toMiliseconds)(b.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}});try{const r=rh(e),n={topic:t,relay:r};this.pending.set(t,n);const i=await this.rpcSubscribe(t,r);return"string"==typeof i&&(this.onSubscribe(i,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}})),i}catch(t){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(t),t}},this.unsubscribe=async(t,e)=>{await this.restartToComplete(),this.isInitialized(),typeof e?.id<"u"?await this.unsubscribeById(t,e.id,e):await this.unsubscribeByTopic(t,e)},this.isSubscribed=async t=>{if(this.topics.includes(t))return!0;const e=`${this.pendingSubscriptionWatchLabel}_${t}`;return await new Promise(((r,n)=>{const i=new b.Watch;i.start(e);const s=setInterval((()=>{!this.pending.has(t)&&this.topics.includes(t)&&(clearInterval(s),i.stop(e),r(!0)),i.elapsed(e)>=Wf&&(clearInterval(s),i.stop(e),n(new Error("Subscription resolution timeout")))}),this.pollingInterval)})).catch((()=>!1))},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=t,this.logger=Ys(e,this.name),this.clientId=""}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(t,e){let r=!1;try{r=this.getSubscription(t).topic===e}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(t,e){const r=this.topicMap.get(t);await Promise.all(r.map((async r=>await this.unsubscribeById(t,r,e))))}async unsubscribeById(t,e,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}});try{const n=rh(r);await this.rpcUnsubscribe(t,e,n);const i=wh("USER_DISCONNECTED",`${this.name}, ${t}`);await this.onUnsubscribe(t,e,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:r}})}catch(t){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(t),t}}async rpcSubscribe(t,e){const r={method:nh(e.protocol).subscribe,params:{topic:t}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await Go(this.relayer.request(r).catch((t=>this.logger.warn(t))),this.subscribeTimeout)?Ju(t+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Lf)}return null}async rpcBatchSubscribe(t){if(!t.length)return;const e={method:nh(t[0].relay.protocol).batchSubscribe,params:{topics:t.map((t=>t.topic))}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:e});try{return await await Go(this.relayer.request(e).catch((t=>this.logger.warn(t))),this.subscribeTimeout)}catch{this.relayer.events.emit(Lf)}}rpcUnsubscribe(t,e,r){const n={method:nh(r.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),this.relayer.request(n)}onSubscribe(t,e){this.setSubscription(t,wp(yp({},e),{id:t})),this.pending.delete(e.topic)}onBatchSubscribe(t){t.length&&t.forEach((t=>{this.setSubscription(t.id,yp({},t)),this.pending.delete(t.topic)}))}async onUnsubscribe(t,e,r){this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,r),await this.relayer.messages.del(t)}async setRelayerSubscriptions(t){await this.relayer.core.storage.setItem(this.storageKey,t)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(t,e){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e)}addSubscription(t,e){this.subscriptions.set(t,yp({},e)),this.topicMap.set(e.topic,t),this.events.emit($f,e)}getSubscription(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});const e=this.subscriptions.get(t);if(!e){const{message:e}=yh("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}deleteSubscription(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});const r=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(r.topic,t),this.events.emit(qf,wp(yp({},r),{reason:e}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit("subscription_sync")}async reset(){if(this.cached.length){const t=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let e=0;e"u"||!t.length)return;if(this.subscriptions.size){const{message:t}=yh("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}async batchSubscribe(t){if(!t.length)return;const e=await this.rpcBatchSubscribe(t);(function(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))})(e)&&this.onBatchSubscribe(e.map(((e,r)=>wp(yp({},t[r]),{id:e}))))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;const t=[];this.pending.forEach((e=>{t.push(e)})),await this.batchSubscribe(t)}registerEventListeners(){this.relayer.core.heartbeat.on(Ns.HEARTBEAT_EVENTS.pulse,(async()=>{await this.checkPending()})),this.events.on($f,(async t=>{const e=$f;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()})),this.events.on(qf,(async t=>{const e=qf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),await this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}async restartToComplete(){this.restartInProgress&&await new Promise((t=>{const e=setInterval((()=>{this.restartInProgress||(clearInterval(e),t())}),this.pollingInterval)}))}}var vp=Object.defineProperty,Ap=Object.getOwnPropertySymbols,Ep=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,_p=(t,e,r)=>e in t?vp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;class Sp extends io{constructor(t){super(t),this.protocol="wc",this.version=2,this.events=new y.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","socket stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,b.toMiliseconds)(b.THIRTY_SECONDS+b.ONE_SECOND),this.request=async t=>{var e,r;this.logger.debug("Publishing Request Payload");const n=t.id||Nh().toString();await this.toEstablishConnection();try{const i=this.provider.request(t);this.requestsInFlight.set(n,{promise:i,request:t}),this.logger.trace({id:n,method:t.method,topic:null==(e=t.params)?void 0:e.topic},"relayer.request - attempt to publish...");const s=await new Promise((async(t,e)=>{const r=()=>{e(new Error(`relayer.request - publish interrupted, id: ${n}`))};this.provider.on(Ff,r);const s=await i;this.provider.off(Ff,r),t(s)}));return this.logger.trace({id:n,method:t.method,topic:null==(r=t.params)?void 0:r.topic},"relayer.request - published"),s}catch(t){throw this.logger.debug(`Failed to Publish Request: ${n}`),t}finally{this.requestsInFlight.delete(n)}},this.resetPingTimeout=()=>{if(Fo())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout((()=>{var t,e,r;null==(r=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)||r.terminate()}),this.heartBeatTimeout)}catch(t){this.logger.warn(t)}},this.onPayloadHandler=t=>{this.onProviderPayload(t),this.resetPingTimeout()},this.onConnectHandler=()=>{this.startPingTimeout(),this.events.emit("relayer_connect")},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=t=>{this.logger.error(t),this.events.emit("relayer_error",t),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(jf,this.onPayloadHandler),this.provider.on(Df,this.onConnectHandler),this.provider.on(Ff,this.onDisconnectHandler),this.provider.on(zf,this.onProviderErrorHandler)},this.core=t.core,this.logger=typeof t.logger<"u"&&"string"!=typeof t.logger?Ys(t.logger,this.name):Rs()(Qs({level:t.logger||"error"})),this.messages=new ap(this.logger,t.core),this.subscriber=new bp(this,this.logger),this.publisher=new cp(this,this.logger),this.relayUrl=t?.relayUrl||Nf,this.projectId=t.projectId,this.bundleId=function(){var t;try{return zo()&&typeof r.g<"u"&&typeof(null==r.g?void 0:r.g.Application)<"u"?null==(t=r.g.Application)?void 0:t.applicationId:void 0}catch{return}}(),this.provider={}}async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await this.createProvider(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${Tf}...`),await this.restartTransport(Tf)}this.initialized=!0,setTimeout((async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)}),1e4)}get context(){return Js(this.logger)}get connected(){var t,e,r;return 1===(null==(r=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:r.readyState)}get connecting(){var t,e,r;return 0===(null==(r=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:r.readyState)}async publish(t,e,r){this.isInitialized(),await this.publisher.publish(t,e,r),await this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()})}async subscribe(t,e){var r;this.isInitialized();let n,i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"";const s=e=>{e.topic===t&&(this.subscriber.off($f,s),n())};return await Promise.all([new Promise((t=>{n=t,this.subscriber.on($f,s)})),new Promise((async r=>{i=await this.subscriber.subscribe(t,e)||i,r()}))]),i}async unsubscribe(t,e){this.isInitialized(),await this.subscriber.unsubscribe(t,e)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map((t=>t.promise)))}catch(t){this.logger.warn(t)}this.hasExperiencedNetworkDisruption||this.connected?await Go(this.provider.disconnect(),2e3,"provider.disconnect()").catch((()=>this.onProviderDisconnect())):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(t){await this.confirmOnlineStateOrThrow(),t&&t!==this.relayUrl&&(this.relayUrl=t,await this.transportDisconnect(),await this.createProvider()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise((async(t,e)=>{const r=()=>{this.provider.off(Ff,r),e(new Error("Connection interrupted while trying to subscribe"))};this.provider.on(Ff,r),await Go(this.provider.connect(),(0,b.toMiliseconds)(b.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch((t=>{e(t)})),await this.subscriber.start(),this.hasExperiencedNetworkDisruption=!1,t()}))}catch(t){this.logger.error(t);const e=t;if(!this.isConnectionStalled(e.message))throw t}finally{this.connectionAttemptInProgress=!1}}async restartTransport(t){this.connectionAttemptInProgress||(this.relayUrl=t||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.createProvider(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await Eh())throw new Error("No internet connection detected. Please restart your network and try again.")}startPingTimeout(){var t,e,r,n,i;if(Fo())try{null!=(e=null==(t=this.provider)?void 0:t.connection)&&e.socket&&(null==(i=null==(n=null==(r=this.provider)?void 0:r.connection)?void 0:n.socket)||i.once("ping",(()=>{this.resetPingTimeout()}))),this.resetPingTimeout()}catch(t){this.logger.warn(t)}}isConnectionStalled(t){return this.staleConnectionErrors.some((e=>t.includes(e)))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();const t=await this.core.crypto.signJWT(this.relayUrl);this.provider=new Kh(new Jh(function({protocol:t,version:e,relayUrl:r,sdkVersion:n,auth:i,projectId:s,useOnCloseEvent:o,bundleId:a}){const c=r.split("?"),l={auth:i,ua:qo(t,e,n),projectId:s,useOnCloseEvent:o||void 0,origin:a||void 0},u=function(t,e){let r=E.parse(t);return r=Lo(Lo({},r),e),E.stringify(r)}(c[1]||"",l);return c[0]+"?"+u}({sdkVersion:"2.12.2",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:t,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(t){const{topic:e,message:r}=t;await this.messages.set(e,r)}async shouldIgnoreMessageEvent(t){const{topic:e,message:r}=t;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(e))return this.logger.debug(`Ignoring message for non-subscribed topic ${e}`),!0;const n=this.messages.has(e,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(t){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),qh(t)){if(!t.method.endsWith("_subscription"))return;const e=t.params,{topic:r,message:n,publishedAt:i}=e.data,s={topic:r,message:n,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(((t,e)=>{for(var r in e||(e={}))Ep.call(e,r)&&_p(t,r,e[r]);if(Ap)for(var r of Ap(e))xp.call(e,r)&&_p(t,r,e[r]);return t})({type:"event",event:e.id},s)),this.events.emit(e.id,s),await this.acknowledgePayload(t),await this.onMessageEvent(s)}else Wh(t)&&this.events.emit(Bf,t)}async onMessageEvent(t){await this.shouldIgnoreMessageEvent(t)||(this.events.emit(Rf,t),await this.recordMessageEvent(t))}async acknowledgePayload(t){const e=Rh(t.id,!0);await this.provider.connection.send(e)}unregisterProviderListeners(){this.provider.off(jf,this.onPayloadHandler),this.provider.off(Df,this.onConnectHandler),this.provider.off(Ff,this.onDisconnectHandler),this.provider.off(zf,this.onProviderErrorHandler)}async registerEventListeners(){let t=await Eh();!function(t){switch($o()){case jo:!function(t){!zo()&&Ho()&&(window.addEventListener("online",(()=>t(!0))),window.addEventListener("offline",(()=>t(!1))))}(t);break;case Uo:!function(t){zo()&&typeof r.g<"u"&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener((e=>t(e?.isConnected)))}(t)}}((async e=>{t!==e&&(t=e,e?await this.restartTransport().catch((t=>this.logger.error(t))):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))}))}async onProviderDisconnect(){await this.subscriber.stop(),this.events.emit("relayer_disconnect"),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&setTimeout((async()=>{await this.transportOpen().catch((t=>this.logger.error(t)))}),(0,b.toMiliseconds)(Hf))}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),!this.connected&&(this.connectionAttemptInProgress&&await new Promise((t=>{const e=setInterval((()=>{this.connected&&(clearInterval(e),t())}),this.connectionStatusPollingInterval)})),await this.transportOpen())}}var Mp=Object.defineProperty,Cp=Object.getOwnPropertySymbols,kp=Object.prototype.hasOwnProperty,Ip=Object.prototype.propertyIsEnumerable,Pp=(t,e,r)=>e in t?Mp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Op=(t,e)=>{for(var r in e||(e={}))kp.call(e,r)&&Pp(t,r,e[r]);if(Cp)for(var r of Cp(e))Ip.call(e,r)&&Pp(t,r,e[r]);return t};class Np extends so{constructor(t,e,r,n=Cf,i){super(t,e,r,n),this.core=t,this.logger=e,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Cf,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>{this.getKey&&null!==t&&!bh(t)?this.map.set(this.getKey(t),t):function(t){var e;return null==(e=t?.proposer)?void 0:e.publicKey}(t)?this.map.set(t.id,t):function(t){return t?.topic}(t)&&this.map.set(t.topic,t)})),this.cached=[],this.initialized=!0)},this.set=async(t,e)=>{this.isInitialized(),this.map.has(t)?await this.update(t,e):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),await this.persist())},this.get=t=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:t}),this.getData(t)),this.getAll=t=>(this.isInitialized(),t?this.values.filter((e=>Object.keys(t).every((r=>Xh()(e[r],t[r]))))):this.values),this.update=async(t,e)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e});const r=Op(Op({},this.getData(t)),e);this.map.set(t,r),await this.persist()},this.delete=async(t,e)=>{this.isInitialized(),this.map.has(t)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),this.addToRecentlyDeleted(t),await this.persist())},this.logger=Ys(e,this.name),this.storagePrefix=n,this.getKey=i}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(t){this.recentlyDeleted.push(t),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(t){await this.core.storage.setItem(this.storageKey,t)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(t){const e=this.map.get(t);if(!e){if(this.recentlyDeleted.includes(t)){const{message:e}=yh("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}const{message:e}=yh("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.error(e),new Error(e)}return e}async persist(){await this.setDataStore(this.values)}async restore(){try{const t=await this.getDataStore();if(typeof t>"u"||!t.length)return;if(this.map.size){const{message:t}=yh("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(t){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(t)}}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Tp{constructor(t,e){this.core=t,this.logger=e,this.name="pairing",this.version="0.3",this.events=new(w()),this.initialized=!1,this.storagePrefix=Cf,this.ignoredPayloadTypes=[1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:t})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...t])]},this.create=async t=>{this.isInitialized();const e=Qu(),r=await this.core.crypto.setSymKey(e),n=Zo(b.FIVE_MINUTES),i={protocol:"irn"},s={topic:r,expiry:n,relay:i,active:!1},o=function(t){return`${t.protocol}:${t.topic}@${t.version}?`+E.stringify(hh(((t,e)=>sh(t,oh(e)))(hh({symKey:t.symKey},function(t,e="-"){const r={};return Object.keys(t).forEach((n=>{const i="relay"+e+n;t[n]&&(r[i]=t[n])})),r}(t.relay)),{expiryTimestamp:t.expiryTimestamp}),t.methods?{methods:t.methods.join(",")}:{}))}({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:e,relay:i,expiryTimestamp:n,methods:t?.methods});return await this.pairings.set(r,s),await this.core.relayer.subscribe(r),this.core.expirer.set(r,n),{topic:r,uri:o}},this.pair=async t=>{this.isInitialized(),this.isValidPair(t);const{topic:e,symKey:r,relay:n,expiryTimestamp:i,methods:s}=fh(t.uri);let o;if(this.pairings.keys.includes(e)&&(o=this.pairings.get(e),o.active))throw new Error(`Pairing already exists: ${e}. Please try again with a new connection URI.`);const a=i||Zo(b.FIVE_MINUTES),c={topic:e,relay:n,expiry:a,active:!1,methods:s};return await this.pairings.set(e,c),this.core.expirer.set(e,a),t.activatePairing&&await this.activate({topic:e}),this.events.emit(Gf,c),this.core.crypto.keychain.has(e)||await this.core.crypto.setSymKey(r,e),await this.core.relayer.subscribe(e,{relay:n}),c},this.activate=async({topic:t})=>{this.isInitialized();const e=Zo(b.THIRTY_DAYS);await this.pairings.update(t,{active:!0,expiry:e}),this.core.expirer.set(t,e)},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);const{topic:e}=t;if(this.pairings.keys.includes(e)){const t=await this.sendRequest(e,"wc_pairingPing",{}),{done:r,resolve:n,reject:i}=function(t=b.FIVE_MINUTES,e){const r=(0,b.toMiliseconds)(t||b.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}();this.events.once(Jo("pairing_ping",t),(({error:t})=>{t?i(t):n()})),await r()}},this.updateExpiry=async({topic:t,expiry:e})=>{this.isInitialized(),await this.pairings.update(t,{expiry:e})},this.updateMetadata=async({topic:t,metadata:e})=>{this.isInitialized(),await this.pairings.update(t,{peerMetadata:e})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;this.pairings.keys.includes(e)&&(await this.sendRequest(e,"wc_pairingDelete",wh("USER_DISCONNECTED")),await this.deletePairing(e))},this.sendRequest=async(t,e,r)=>{const n=Th(e,r),i=await this.core.crypto.encode(t,n),s=Vf[e].req;return this.core.history.set(t,n),this.core.relayer.publish(t,i,s),n.id},this.sendResult=async(t,e,r)=>{const n=Rh(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Vf[s.request.method].res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.sendError=async(t,e,r)=>{const n=Bh(t,r),i=await this.core.crypto.encode(e,n),s=await this.core.history.get(e,t),o=Vf[s.request.method]?Vf[s.request.method].res:Vf.unregistered_method.res;await this.core.relayer.publish(e,i,o),await this.core.history.resolve(n)},this.deletePairing=async(t,e)=>{await this.core.relayer.unsubscribe(t),await Promise.all([this.pairings.delete(t,wh("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)])},this.cleanup=async()=>{const t=this.pairings.getAll().filter((t=>Qo(t.expiry)));await Promise.all(t.map((t=>this.deletePairing(t.topic))))},this.onRelayEventRequest=t=>{const{topic:e,payload:r}=t;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(e,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(e,r);default:return this.onUnknownRpcMethodRequest(e,r)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.core.history.get(e,r.id)).request.method;return"wc_pairingPing"===n?this.onPairingPingResponse(e,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult(r,t,!0),this.events.emit("pairing_ping",{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onPairingPingResponse=(t,e)=>{const{id:r}=e;setTimeout((()=>{Vh(e)?this.events.emit(Jo("pairing_ping",r),{}):Gh(e)&&this.events.emit(Jo("pairing_ping",r),{error:e.error})}),500)},this.onPairingDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t}),await this.deletePairing(t),this.events.emit(Kf,{id:r,topic:t})}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodRequest=async(t,e)=>{const{id:r,method:n}=e;try{if(this.registeredMethods.includes(n))return;const e=wh("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,t,e),this.logger.error(e)}catch(e){await this.sendError(r,t,e),this.logger.error(e)}},this.onUnknownRpcMethodResponse=t=>{this.registeredMethods.includes(t)||this.logger.error(wh("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=t=>{var e;if(!Ah(t)){const{message:e}=yh("MISSING_OR_INVALID",`pair() params: ${t}`);throw new Error(e)}if(!function(t){if(vh(t,!1))try{return typeof new URL(t)<"u"}catch{return!1}return!1}(t.uri)){const{message:e}=yh("MISSING_OR_INVALID",`pair() uri: ${t.uri}`);throw new Error(e)}const r=fh(t.uri);if(null==(e=r?.relay)||!e.protocol){const{message:t}=yh("MISSING_OR_INVALID","pair() uri#relay-protocol");throw new Error(t)}if(null==r||!r.symKey){const{message:t}=yh("MISSING_OR_INVALID","pair() uri#symKey");throw new Error(t)}if(null!=r&&r.expiryTimestamp&&(0,b.toMiliseconds)(r?.expiryTimestamp){if(!Ah(t)){const{message:e}=yh("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidDisconnect=async t=>{if(!Ah(t)){const{message:e}=yh("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidPairingTopic(e)},this.isValidPairingTopic=async t=>{if(!vh(t,!1)){const{message:e}=yh("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.pairings.keys.includes(t)){const{message:e}=yh("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if(Qo(this.pairings.get(t).expiry)){await this.deletePairing(t);const{message:e}=yh("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}},this.core=t,this.logger=Ys(e,this.name),this.pairings=new Np(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Js(this.logger)}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}registerRelayerEvents(){this.core.relayer.on(Rf,(async t=>{const{topic:e,message:r}=t;if(!this.pairings.keys.includes(e)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;const n=await this.core.crypto.decode(e,r);try{qh(n)?(this.core.history.set(e,n),this.onRelayEventRequest({topic:e,payload:n})):Wh(n)&&(await this.core.history.resolve(n),await this.onRelayEventResponse({topic:e,payload:n}),this.core.history.delete(e,n.id))}catch(t){this.logger.error(t)}}))}registerExpirerEvents(){this.core.expirer.on(tp,(async t=>{const{topic:e}=function(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}(t.target);e&&this.pairings.keys.includes(e)&&(await this.deletePairing(e,!0),this.events.emit("pairing_expire",{topic:e}))}))}}class Rp extends eo{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.records=new Map,this.events=new y.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Cf,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.records.set(t.id,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(t,e,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:t,request:e,chainId:r}),this.records.has(e.id))return;const n={id:e.id,topic:t,request:{method:e.method,params:e.params||null},chainId:r,expiry:Zo(b.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(Zf,n)},this.resolve=async t=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:t}),!this.records.has(t.id))return;const e=await this.getRecord(t.id);typeof e.response>"u"&&(e.response=Gh(t)?{error:t.error}:{result:t.result},this.records.set(e.id,e),this.persist(),this.events.emit(Qf,e))},this.get=async(t,e)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),await this.getRecord(e)),this.delete=(t,e)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:e}),this.values.forEach((r=>{if(r.topic===t){if(typeof e<"u"&&r.id!==e)return;this.records.delete(r.id),this.events.emit(Jf,r)}})),this.persist()},this.exists=async(t,e)=>(this.isInitialized(),!!this.records.has(e)&&(await this.getRecord(e)).topic===t),this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=Ys(e,this.name)}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){const t=[];return this.values.forEach((e=>{if(typeof e.response<"u")return;const r={topic:e.topic,request:Th(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(r)})),t}async setJsonRpcRecords(t){await this.core.storage.setItem(this.storageKey,t)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(t){this.isInitialized();const e=this.records.get(t);if(!e){const{message:e}=yh("NO_MATCHING_KEY",`${this.name}: ${t}`);throw new Error(e)}return e}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit("history_sync")}async restore(){try{const t=await this.getJsonRpcRecords();if(typeof t>"u"||!t.length)return;if(this.records.size){const{message:t}=yh("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(t){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(t)}}registerEventListeners(){this.events.on(Zf,(t=>{const e=Zf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t})})),this.events.on(Qf,(t=>{const e=Qf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t})})),this.events.on(Jf,(t=>{const e=Jf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,record:t})})),this.core.heartbeat.on(Ns.HEARTBEAT_EVENTS.pulse,(()=>{this.cleanup()}))}cleanup(){try{this.isInitialized();let t=!1;this.records.forEach((e=>{(0,b.toMiliseconds)(e.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${e.id}`),this.records.delete(e.id),this.events.emit(Jf,e,!1),t=!0)})),t&&this.persist()}catch(t){this.logger.warn(t)}}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Bp extends ao{constructor(t,e){super(t,e),this.core=t,this.logger=e,this.expirations=new Map,this.events=new y.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=Cf,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach((t=>this.expirations.set(t.target,t))),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=t=>{try{const e=this.formatTarget(t);return typeof this.getExpiration(e)<"u"}catch{return!1}},this.set=(t,e)=>{this.isInitialized();const r=this.formatTarget(t),n={target:r,expiry:e};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(Yf,{target:r,expiration:n})},this.get=t=>{this.isInitialized();const e=this.formatTarget(t);return this.getExpiration(e)},this.del=t=>{if(this.isInitialized(),this.has(t)){const e=this.formatTarget(t),r=this.getExpiration(e);this.expirations.delete(e),this.events.emit(Xf,{target:e,expiration:r})}},this.on=(t,e)=>{this.events.on(t,e)},this.once=(t,e)=>{this.events.once(t,e)},this.off=(t,e)=>{this.events.off(t,e)},this.removeListener=(t,e)=>{this.events.removeListener(t,e)},this.logger=Ys(e,this.name)}get context(){return Js(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(t){if("string"==typeof t)return function(t){return Ko("topic",t)}(t);if("number"==typeof t)return function(t){return Ko("id",t)}(t);const{message:e}=yh("UNKNOWN_TYPE","Target type: "+typeof t);throw new Error(e)}async setExpirations(t){await this.core.storage.setItem(this.storageKey,t)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit("expirer_sync")}async restore(){try{const t=await this.getExpirations();if(typeof t>"u"||!t.length)return;if(this.expirations.size){const{message:t}=yh("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=t,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(t){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(t)}}getExpiration(t){const e=this.expirations.get(t);if(!e){const{message:e}=yh("NO_MATCHING_KEY",`${this.name}: ${t}`);throw this.logger.warn(e),new Error(e)}return e}checkExpiry(t,e){const{expiry:r}=e;(0,b.toMiliseconds)(r)-Date.now()<=0&&this.expire(t,e)}expire(t,e){this.expirations.delete(t),this.events.emit(tp,{target:t,expiration:e})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach(((t,e)=>this.checkExpiry(e,t)))}registerEventListeners(){this.core.heartbeat.on(Ns.HEARTBEAT_EVENTS.pulse,(()=>this.checkExpirations())),this.events.on(Yf,(t=>{const e=Yf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(tp,(t=>{const e=tp;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()})),this.events.on(Xf,(t=>{const e=Xf;this.logger.info(`Emitting ${e}`),this.logger.debug({type:"event",event:e,data:t}),this.persist()}))}isInitialized(){if(!this.initialized){const{message:t}=yh("NOT_INITIALIZED",this.name);throw new Error(t)}}}class Lp extends co{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.name=ep,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async t=>{if(this.verifyDisabled||zo()||!Ho())return;const e=this.getVerifyUrl(t?.verifyUrl);this.verifyUrl!==e&&this.removeIframe(),this.verifyUrl=e;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t)}if(!this.initialized){this.removeIframe(),this.verifyUrl=np;try{await this.createIframe()}catch(t){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(t),this.verifyDisabled=!0}}},this.register=async t=>{this.initialized?this.sendPost(t.attestationId):(this.addToQueue(t.attestationId),await this.init())},this.resolve=async t=>{if(this.isDevEnv)return"";const e=this.getVerifyUrl(t?.verifyUrl);let r;try{r=await this.fetchAttestation(t.attestationId,e)}catch(n){this.logger.info(`failed to resolve attestation: ${t.attestationId} from url: ${e}`),this.logger.info(n),r=await this.fetchAttestation(t.attestationId,np)}return r},this.fetchAttestation=async(t,e)=>{this.logger.info(`resolving attestation: ${t} from url: ${e}`);const r=this.startAbortTimer(2*b.ONE_SECOND),n=await fetch(`${e}/attestation/${t}`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.addToQueue=t=>{this.queue.push(t)},this.processQueue=()=>{0!==this.queue.length&&(this.queue.forEach((t=>this.sendPost(t))),this.queue=[])},this.sendPost=t=>{var e;try{if(!this.iframe)return;null==(e=this.iframe.contentWindow)||e.postMessage(t,"*"),this.logger.info(`postMessage sent: ${t} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let t;const e=r=>{"verify_ready"===r.data&&(this.onInit(),window.removeEventListener("message",e),t())};await Promise.race([new Promise((r=>{const n=document.getElementById(ep);if(n)return this.iframe=n,this.onInit(),r();window.addEventListener("message",e);const i=document.createElement("iframe");i.id=ep,i.src=`${this.verifyUrl}/${this.projectId}`,i.style.display="none",document.body.append(i),this.iframe=i,t=r})),new Promise(((t,r)=>setTimeout((()=>{window.removeEventListener("message",e),r("verify iframe load timeout")}),(0,b.toMiliseconds)(b.FIVE_SECONDS))))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=t=>{let e=t||rp;return ip.includes(e)||(this.logger.info(`verify url: ${e}, not included in trusted list, assigning default: ${rp}`),e=rp),e},this.logger=Ys(e,this.name),this.verifyUrl=rp,this.abortController=new AbortController,this.isDevEnv=Fo()&&rd.env.IS_VITEST}get context(){return Js(this.logger)}startAbortTimer(t){return this.abortController=new AbortController,setTimeout((()=>this.abortController.abort()),(0,b.toMiliseconds)(t))}}class Up extends lo{constructor(t,e){super(t,e),this.projectId=t,this.logger=e,this.context="echo",this.registerDeviceToken=async t=>{const{clientId:e,token:r,notificationType:n,enableEncrypted:i=!1}=t,s=`https://echo.walletconnect.com/${this.projectId}/clients`;await ed()(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:e,type:n,token:r,always_raw:i})})},this.logger=Ys(e,this.context)}}var jp=Object.defineProperty,Dp=Object.getOwnPropertySymbols,Fp=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable,Hp=(t,e,r)=>e in t?jp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$p=(t,e)=>{for(var r in e||(e={}))Fp.call(e,r)&&Hp(t,r,e[r]);if(Dp)for(var r of Dp(e))zp.call(e,r)&&Hp(t,r,e[r]);return t};class qp extends to{constructor(t){var e;super(t),this.protocol="wc",this.version=2,this.name=Mf,this.events=new y.EventEmitter,this.initialized=!1,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.projectId=t?.projectId,this.relayUrl=t?.relayUrl||Nf,this.customStoragePrefix=null!=t&&t.customStoragePrefix?`:${t.customStoragePrefix}`:"";const r=Qs({level:"string"==typeof t?.logger&&t.logger?t.logger:"error"}),{logger:n,chunkLoggerController:i}=function(t){return typeof t.loggerOverride<"u"&&"string"!=typeof t.loggerOverride?{logger:t.loggerOverride,chunkLoggerController:null}:typeof window<"u"?function(t){var e,r;const n=new Ds(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:Rs()(Zs(Ks({},t.opts),{level:"trace",browser:Zs(Ks({},null==(r=t.opts)?void 0:r.browser),{write:t=>n.write(t)})})),chunkLoggerController:n}}(t):function(t){var e;const r=new Fs(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:Rs()(Zs(Ks({},t.opts),{level:"trace"}),r),chunkLoggerController:r}}(t)}({opts:r,maxSizeInBytes:t?.maxLogBlobSizeInBytes,loggerOverride:t?.logger});this.logChunkController=i,null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var t,e;null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(null==(e=this.logChunkController)||e.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=Ys(n,this.name),this.heartbeat=new Ns.HeartBeat,this.crypto=new op(this,this.logger,t?.keychain),this.history=new Rp(this,this.logger),this.expirer=new Bp(this,this.logger),this.storage=null!=t&&t.storage?t.storage:new Os($p($p({},kf),t?.storageOptions)),this.relayer=new Sp({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Tp(this,this.logger),this.verify=new Lp(this.projectId||"",this.logger),this.echoClient=new Up(this.projectId||"",this.logger)}static async init(t){const e=new qp(t);await e.initialize();const r=await e.crypto.getClientId();return await e.storage.setItem("WALLETCONNECT_CLIENT_ID",r),e}get context(){return Js(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var t;return null==(t=this.logChunkController)?void 0:t.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(t){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,t),this.logger.error(t.message),t}}}const Wp=qp;class Vp{constructor(t){this.opts=t,this.protocol="wc",this.version=2}}class Gp{constructor(t){this.client=t}}var Kp=r(4155),Zp=r(8764).Buffer;function Qp(t){const[e,r]=t.split(":");return{namespace:e,reference:r}}function Jp(t,e){return t.includes(":")?[t]:e.chains||[]}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Yp="react-native",Xp="browser";function tm(){return typeof Kp<"u"&&typeof Kp.versions<"u"&&typeof Kp.versions.node<"u"}function em(){return!tm()&&!!(0,v.getNavigator)()&&!!(0,v.getDocument)()}function rm(){return!(0,v.getDocument)()&&(0,v.getNavigator)()&&"ReactNative"===navigator.product?Yp:tm()?"node":em()?Xp:"unknown"}function nm(t,e){return t.filter((t=>e.includes(t))).length===t.length}function im(t=b.FIVE_MINUTES,e){const r=(0,b.toMiliseconds)(t||b.FIVE_MINUTES);let n,i,s;return{resolve:t=>{s&&n&&(clearTimeout(s),n(t))},reject:t=>{s&&i&&(clearTimeout(s),i(t))},done:()=>new Promise(((t,o)=>{s=setTimeout((()=>{o(new Error(e))}),r),n=t,i=o}))}}function sm(t,e){return(0,b.fromMiliseconds)((e||Date.now())+(0,b.toMiliseconds)(t))}function om(t){return Date.now()>=(0,b.toMiliseconds)(t)}function am(t,e){return`${t}${e?`:${e}`:""}`}function cm(t=[],e=[]){return[...new Set([...t,...e])]}var lm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},um={exports:{}};!function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof Kp&&Kp.versions&&Kp.versions.node?n=lm:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&t.exports,o=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",a="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],u=[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],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),o&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var m=function(t,e,r){return function(n){return new P(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,i){return new P(t,e,i).update(n)[r]()}},y=function(t,e,r){return function(e,n,i,s){return E["cshake"+t].update(e,n,i,s)[r]()}},w=function(t,e,r){return function(e,n,i,s){return E["kmac"+t].update(e,n,i,s)[r]()}},b=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function O(t,e,r){P.call(this,t,e,r)}P.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,s,a=this.blocks,c=this.byteCount,u=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(a[i>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=c){for(this.start=i-c,this.block=a[h],i=0;i>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},P.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,s=t.length;if(r)i=s;else for(var a=0;a=57344?i+=3:(c=65536+((1023&c)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},P.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];o%e==0&&(N(r),s=0)}return i&&(t=r[s],c+=a[t>>4&15]+a[15&t],i>1&&(c+=a[t>>12&15]+a[t>>8&15]),i>2&&(c+=a[t>>20&15]+a[t>>16&15])),c},P.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&N(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},O.prototype=new P,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var N=function(t){var e,r,n,i,s,o,a,c,l,h,d,f,p,m,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(h<<1|d>>>31),r=a^(d<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(f<<1|p>>>31),r=l^(p<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|s>>>31),r=d^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=m^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&m,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~m&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=u[n],t[1]^=u[n+1]};if(s)t.exports=E;else for(_=0;_{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var wm,bm;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(wm||(wm={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(bm||(bm={}));const vm="0123456789abcdef";class Am{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==pm[r]&&this.throwArgumentError("invalid log level name","logLevel",t),!(mm>pm[r])&&console.log.apply(console,e)}debug(...t){this._log(Am.levels.DEBUG,t)}info(...t){this._log(Am.levels.INFO,t)}warn(...t){this._log(Am.levels.WARNING,t)}makeError(t,e,r){if(fm)return this.makeError("censored error",e,{});e||(e=Am.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=vm[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch{n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let s="";switch(e){case bm.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case bm.CALL_EXCEPTION:case bm.INSUFFICIENT_FUNDS:case bm.MISSING_NEW:case bm.NONCE_EXPIRED:case bm.REPLACEMENT_UNDERPRICED:case bm.TRANSACTION_REPLACED:case bm.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const o=new Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach((function(t){o[t]=r[t]})),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,Am.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){ym&&this.throwError("platform missing String.prototype.normalize",Am.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ym})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Am.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Am.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,Am.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",Am.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Am.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",Am.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return gm||(gm=new Am("logger/5.7.0")),gm}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Am.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),dm){if(!t)return;this.globalLogger().throwError("error censorship permanent",Am.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}fm=!!t,dm=!!e}static setLogLevel(t){const e=pm[t.toLowerCase()];null!=e?mm=e:Am.globalLogger().warn("invalid log level - "+t)}static from(t){return new Am(t)}}Am.errors=bm,Am.levels=wm;const Em=new Am("bytes/5.7.0");function xm(t){return!!t.toHexString}function _m(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return _m(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Sm(t){return"number"==typeof t&&t==t&&t%1==0}function Mm(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!Sm(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function Cm(t,e){if(e||(e={}),"number"==typeof t){Em.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),_m(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),xm(t)&&(t=t.toHexString()),km(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":Em.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t>4]+Im[15&n]}return e}return Em.throwArgumentError("invalid hexlify value","value",t)}function Om(t,e,r){return"string"!=typeof t?t=Pm(t):(!km(t)||t.length%2)&&Em.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function Nm(t,e){for("string"!=typeof t?t=Pm(t):km(t)||Em.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Em.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Tm(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(function(t){return km(t)&&!(t.length%2)||Mm(t)}(t)){let r=Cm(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=Pm(r.slice(0,32)),e.s=Pm(r.slice(32,64))):65===r.length?(e.r=Pm(r.slice(0,32)),e.s=Pm(r.slice(32,64)),e.v=r[64]):Em.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Em.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Pm(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=function(t,e){(t=Cm(t)).length>e&&Em.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),_m(r)}(Cm(e._vs),32);e._vs=Pm(r);const n=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=n:e.recoveryParam!==n&&Em.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const i=Pm(r);null==e.s?e.s=i:e.s!==i&&Em.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Em.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&Em.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&km(e.r)?e.r=Nm(e.r,32):Em.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&km(e.s)?e.s=Nm(e.s,32):Em.throwArgumentError("signature missing or invalid s","signature",t);const r=Cm(e.s);r[0]>=128&&Em.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=Pm(r);e._vs&&(km(e._vs)||Em.throwArgumentError("signature invalid _vs","signature",t),e._vs=Nm(e._vs,32)),null==e._vs?e._vs=n:e._vs!==n&&Em.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Rm(t){return"0x"+hm.keccak_256(Cm(t))}var Bm={exports:{}},Lm=function(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{s=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:Lm.Buffer}catch{}function o(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function c(t,e,n,i){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=a(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],f=[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 p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==s||o!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],u=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(t);n=(p=p.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n=0);var e,n=t%26,i=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=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},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),s=t,o=0|s.words[s.length-1];0!=(r=26-this._countBits(o))&&(s=s.ushln(r),n.iushln(r),o=0|s.words[s.length-1]);var a,c=n.length-s.length;if("mod"!==e){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[s.length+h])+(0|n.words[s.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(s,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(s,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(s=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:s,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(s=a.div.neg()),{div:s,mod:a.mod}):this.negative&t.negative?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var s,o,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new i(1),o=new i(0),a=new i(0),c=new i(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(s.isOdd()||o.isOdd())&&(s.iadd(u),o.isub(h)),s.iushrn(1),o.iushrn(1);for(var p=0,m=1;!(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a),o.isub(c)):(n.isub(e),a.isub(s),c.isub(o))}return{a,b:c,gcd:n.iushln(l)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,s=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var o=new i(1),a=new i(0),c=s.clone();n.cmpn(1)>0&&s.cmpn(1)>0;){for(var l=0,u=1;!(n.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;!(s.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(s.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);n.cmp(s)>=0?(n.isub(s),o.isub(a)):(s.isub(n),a.isub(o))}return(e=0===n.cmpn(1)?o:a).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new _(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return w[t]=e,e},_.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var s=this.m.subn(1),o=0;!s.isZero()&&0===s.andln(1);)o++,s.iushrn(1);r(!s.isZero());var a=new i(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,s),d=this.pow(t,s.addn(1).iushrn(1)),f=this.pow(t,s),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;s!==r[0]&&(s=this.sqr(s)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(s=this.mul(s,r[o]),a=0,o=0)):a=0}c=26}return s},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},n(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(n).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):s.cmpn(0)<0&&(o=s.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,lm)}(Bm);var Um=Bm.exports;const jm="bignumber/5.7.0";var Dm=Um.BN;const Fm=new Am(jm),zm={};let Hm=!1;class $m{constructor(t,e){t!==zm&&Fm.throwError("cannot call constructor directly; use BigNumber.from",Am.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Wm(Vm(this).fromTwos(t))}toTwos(t){return Wm(Vm(this).toTwos(t))}abs(){return"-"===this._hex[0]?$m.from(this._hex.substring(1)):this}add(t){return Wm(Vm(this).add(Vm(t)))}sub(t){return Wm(Vm(this).sub(Vm(t)))}div(t){return $m.from(t).isZero()&&Gm("division-by-zero","div"),Wm(Vm(this).div(Vm(t)))}mul(t){return Wm(Vm(this).mul(Vm(t)))}mod(t){const e=Vm(t);return e.isNeg()&&Gm("division-by-zero","mod"),Wm(Vm(this).umod(e))}pow(t){const e=Vm(t);return e.isNeg()&&Gm("negative-power","pow"),Wm(Vm(this).pow(e))}and(t){const e=Vm(t);return(this.isNegative()||e.isNeg())&&Gm("unbound-bitwise-result","and"),Wm(Vm(this).and(e))}or(t){const e=Vm(t);return(this.isNegative()||e.isNeg())&&Gm("unbound-bitwise-result","or"),Wm(Vm(this).or(e))}xor(t){const e=Vm(t);return(this.isNegative()||e.isNeg())&&Gm("unbound-bitwise-result","xor"),Wm(Vm(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&Gm("negative-width","mask"),Wm(Vm(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&Gm("negative-width","shl"),Wm(Vm(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&Gm("negative-width","shr"),Wm(Vm(this).shrn(t))}eq(t){return Vm(this).eq(Vm(t))}lt(t){return Vm(this).lt(Vm(t))}lte(t){return Vm(this).lte(Vm(t))}gt(t){return Vm(this).gt(Vm(t))}gte(t){return Vm(this).gte(Vm(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Vm(this).isZero()}toNumber(){try{return Vm(this).toNumber()}catch{Gm("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Fm.throwError("this platform does not support BigInt",Am.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Hm||(Hm=!0,Fm.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Fm.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Am.errors.UNEXPECTED_ARGUMENT,{}):Fm.throwError("BigNumber.toString does not accept parameters",Am.errors.UNEXPECTED_ARGUMENT,{})),Vm(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof $m)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new $m(zm,qm(t)):t.match(/^-?[0-9]+$/)?new $m(zm,qm(new Dm(t))):Fm.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&Gm("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&Gm("overflow","BigNumber.from",t),$m.from(String(t));const e=t;if("bigint"==typeof e)return $m.from(e.toString());if(Mm(e))return $m.from(Pm(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return $m.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(km(t)||"-"===t[0]&&km(t.substring(1))))return $m.from(t)}return Fm.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function qm(t){if("string"!=typeof t)return qm(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Fm.throwArgumentError("invalid hex","value",t),"0x00"===(t=qm(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Wm(t){return $m.from(qm(t))}function Vm(t){const e=$m.from(t).toHexString();return"-"===e[0]?new Dm("-"+e.substring(3),16):new Dm(e.substring(2),16)}function Gm(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),Fm.throwError(t,Am.errors.NUMERIC_FAULT,n)}const Km=new Am(jm),Zm={},Qm=$m.from(0),Jm=$m.from(-1);function Ym(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),Km.throwError(t,Am.errors.NUMERIC_FAULT,i)}let Xm="0";for(;Xm.length<256;)Xm+=Xm;function tg(t){if("number"!=typeof t)try{t=$m.from(t).toNumber()}catch{}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+Xm.substring(0,t):Km.throwArgumentError("invalid decimal size","decimals",t)}function eg(t,e){null==e&&(e=0);const r=tg(e),n=(t=$m.from(t)).lt(Qm);n&&(t=t.mul(Jm));let i=t.mod(r).toString();for(;i.length2&&Km.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&Ym("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.lengthnull==t[e]?n:(typeof t[e]!==r&&Km.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&Km.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&Km.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new ng(Zm,e,r,n)}}class ig{constructor(t,e,r,n){t!==Zm&&Km.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Am.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&Km.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=rg(this._value,this.format.decimals),r=rg(t._value,t.format.decimals);return ig.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=rg(this._value,this.format.decimals),r=rg(t._value,t.format.decimals);return ig.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=rg(this._value,this.format.decimals),r=rg(t._value,t.format.decimals);return ig.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=rg(this._value,this.format.decimals),r=rg(t._value,t.format.decimals);return ig.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=ig.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(sg.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=ig.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(sg.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&Km.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=ig.from("1"+Xm.substring(0,t),this.format),n=og.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&Km.throwArgumentError("invalid byte width","width",t),Nm($m.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return ig.fromString(this._value,t)}static fromValue(t,e,r){return null==r&&null!=e&&!function(t){return null!=t&&($m.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||km(t)||"bigint"==typeof t||Mm(t))}(e)&&(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),ig.fromString(eg(t,e),ng.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=ng.from(e),n=rg(t,r.decimals);!r.signed&&n.lt(Qm)&&Ym("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=Nm(i,r.width/8));const s=eg(n,r.decimals);return new ig(Zm,i,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=ng.from(e);if(Cm(t).length>r.width/8)throw new Error("overflow");let n=$m.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=eg(n,r.decimals);return new ig(Zm,i,s,r)}static from(t,e){if("string"==typeof t)return ig.fromString(t,e);if(Mm(t))return ig.fromBytes(t,e);try{return ig.fromValue(t,0,e)}catch(t){if(t.code!==Am.errors.INVALID_ARGUMENT)throw t}return Km.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const sg=ig.from(1),og=ig.from("0.5"),ag=new Am("strings/5.7.0");var cg,lg;function ug(t,e,r,n,i){if(t===lg.BAD_PREFIX||t===lg.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return t===lg.OVERRUN?r.length-e-1:0}function hg(t,e=cg.current){e!=cg.current&&(ag.checkNormalize(),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return Cm(r)}function dg(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function fg(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(cg||(cg={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(lg||(lg={})),Object.freeze({error:function(t,e,r,n,i){return ag.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:ug,replace:function(t,e,r,n,i){return t===lg.OVERLONG?(n.push(i),0):(n.push(65533),ug(t,e,r))}}),fg("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),dg("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),dg("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),dg("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r0&&Array.isArray(t)?i(t,e-1):r.push(t)}))};return i(t,e),r}function gg(t){return 1&t?~t>>1:t>>1}function yg(t,e){let r=Array(t);for(let n=0,i=-1;ne[t])):r}function vg(t,e,r){let n=Array(t).fill(void 0).map((()=>[]));for(let i=0;in[e].push(t)));return n}function Ag(t,e){let r=1+e(),n=e(),i=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return mg(vg(i.length,1+t,e).map(((t,e)=>{const s=t[0],o=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))})))}function Eg(t,e){return vg(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const xg=function(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let t=0;t<31;t++)m=m<<1|u();let g=[],y=0,w=h;for(;;){let t=Math.floor(((m-y+1)*i-1)/w),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;y=o,w=1+a-o}let b=n-4;return g.map((e=>{switch(e-b){case 3:return b+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return b+256+(t[a++]<<8|t[a++]);case 1:return b+t[a++];default:return e-1}}))}(t))}(function(t){t=atob(t);const e=[];for(let r=0;rCm(t))),r=e.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(r);return e.reduce(((t,e)=>(n.set(e,t),t+e.length)),0),_m(n)}([hg("Ethereum Signed Message:\n"),hg(String(t.length)),t]))}new Set(bg(xg)),new Set(bg(xg)),function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(Ag(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(Eg(r,t))}!function(t){const e={};for(let r=0;rt-e));!function r(){let n=[];for(;;){let i=bg(t,e);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((t,e)=>e.set.size-t.set.size));let i=t(),s=i%3;i=i/3|0;let o=!!(1&i);return i>>=1,{branches:n,valid:s,fe0f:o,save:1==i,check:2==i}}()}(xg),new Am(pg),new Uint8Array(32).fill(0),new Am("rlp/5.7.0");const Sg=new Am("address/5.7.0");function Mg(t){km(t,20)||Sg.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const n=Cm(Rm(r));for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&n[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const Cg={};for(let t=0;t<10;t++)Cg[String(t)]=String(t);for(let t=0;t<26;t++)Cg[String.fromCharCode(65+t)]=String(10+t);const kg=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function Ig(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}new Am("properties/5.7.0"),new Am(pg),new Uint8Array(32).fill(0),$m.from(-1);const Pg=$m.from(0),Og=$m.from(1);$m.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Nm(Og.toHexString(),32),Nm(Pg.toHexString(),32);var Ng={},Tg={},Rg=Bg;function Bg(t,e){if(!t)throw new Error(e||"Assertion failed")}Bg.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var Lg={exports:{}};"function"==typeof Object.create?Lg.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Lg.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var Ug=Rg,jg=Lg.exports;function Dg(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function Fg(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function zg(t){return 1===t.length?"0"+t:t}function Hg(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}Tg.inherits=jg,Tg.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&s|128):Dg(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i>>0}return s},Tg.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},Tg.rotr32=function(t,e){return t>>>e|t<<32-e},Tg.rotl32=function(t,e){return t<>>32-e},Tg.sum32=function(t,e){return t+e>>>0},Tg.sum32_3=function(t,e,r){return t+e+r>>>0},Tg.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},Tg.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},Tg.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,o=(s>>0,t[e+1]=s},Tg.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},Tg.sum64_lo=function(t,e,r,n){return e+n>>>0},Tg.sum64_4_hi=function(t,e,r,n,i,s,o,a){var c=0,l=e;return c+=(l=l+n>>>0)>>0)>>0)>>0},Tg.sum64_4_lo=function(t,e,r,n,i,s,o,a){return e+n+s+a>>>0},Tg.sum64_5_hi=function(t,e,r,n,i,s,o,a,c,l){var u=0,h=e;return u+=(h=h+n>>>0)>>0)>>0)>>0)>>0},Tg.sum64_5_lo=function(t,e,r,n,i,s,o,a,c,l){return e+n+s+a+l>>>0},Tg.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},Tg.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},Tg.shr64_hi=function(t,e,r){return t>>>r},Tg.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var $g={},qg=Tg,Wg=Rg;function Vg(){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}$g.BlockHash=Vg,Vg.prototype.update=function(t,e){if(t=qg.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=qg.join32(t,0,t.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,s=8;s>>3},Kg.g1_256=function(t){return Zg(t,17)^Zg(t,19)^t>>>10};var Xg=Tg,ty=$g,ey=Kg,ry=Xg.rotl32,ny=Xg.sum32,iy=Xg.sum32_5,sy=ey.ft_1,oy=ty.BlockHash,ay=[1518500249,1859775393,2400959708,3395469782];function cy(){if(!(this instanceof cy))return new cy;oy.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Xg.inherits(cy,oy);var ly=cy;cy.blockSize=512,cy.outSize=160,cy.hmacStrength=80,cy.padLength=64,cy.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;nthis.blockSize&&(t=(new this.Hash).update(t).digest()),kw(t.length<=this.blockSize);for(var e=t.length;e>8,o=255&i;s?r.push(s,o):r.push(o)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),Bw=Ow((function(t,e){var r=e;r.assert=Nw,r.toArray=Rw.toArray,r.zero2=Rw.zero2,r.toHex=Rw.toHex,r.encode=Rw.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var o,a,c=t.andln(3)+i&3,l=e.andln(3)+s&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c:0,r[0].push(o),a=1&l?3!=(n=e.andln(7)+s&7)&&5!==n||2!==c?l:-l:0,r[1].push(a),2*i===o+1&&(i=1-i),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new Um(t,"hex","le")}})),Lw=Bw.getNAF,Uw=Bw.getJSF,jw=Bw.assert;function Dw(t,e){this.type=t,this.p=new Um(e.p,16),this.red=e.prime?Um.red(e.prime):Um.mont(this.p),this.zero=new Um(0).toRed(this.red),this.one=new Um(1).toRed(this.red),this.two=new Um(2).toRed(this.red),this.n=e.n&&new Um(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Fw=Dw;function zw(t,e){this.curve=t,this.type=e,this.precomputed=null}Dw.prototype.point=function(){throw new Error("Not implemented")},Dw.prototype.validate=function(){throw new Error("Not implemented")},Dw.prototype._fixedNafMul=function(t,e){jw(t.precomputed);var r=t._getDoubles(),n=Lw(e,1,this._bitLength),i=(1<=s;c--)o=(o<<1)+n[c];a.push(o)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;a--){for(var c=0;a>=0&&0===s[a];a--)c++;if(a>=0&&c++,o=o.dblp(c),a<0)break;var l=s[a];jw(0!==l),o="affine"===t.type?l>0?o.mixedAdd(i[l-1>>1]):o.mixedAdd(i[-l-1>>1].neg()):l>0?o.add(i[l-1>>1]):o.add(i[-l-1>>1].neg())}return"affine"===t.type?o.toP():o},Dw.prototype._wnafMulAdd=function(t,e,r,n,i){var s,o,a,c=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(s=0;s=1;s-=2){var f=s-1,p=s;if(1===c[f]&&1===c[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=Uw(r[f],r[p]);for(h=Math.max(y[0].length,h),u[f]=new Array(h),u[p]=new Array(h),o=0;o=0;s--){for(var E=0;s>=0;){var x=!0;for(o=0;o=0&&E++,v=v.dblp(E),s<0)break;for(o=0;o0?a=l[o][_-1>>1]:_<0&&(a=l[o][-_-1>>1].neg()),v="affine"===a.type?v.mixedAdd(a):v.add(a))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},zw.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(s=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},qw.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),c=i.mul(r.b),l=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},qw.prototype.pointFromX=function(t,e){(t=new Um(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},qw.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},qw.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""},Vw.prototype.isInfinity=function(){return this.inf},Vw.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Vw.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},Vw.prototype.getX=function(){return this.x.fromRed()},Vw.prototype.getY=function(){return this.y.fromRed()},Vw.prototype.mul=function(t){return t=new Um(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Vw.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Vw.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Vw.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Vw.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},Vw.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Hw(Gw,Fw.BasePoint),qw.prototype.jpoint=function(t,e,r){return new Gw(this,t,e,r)},Gw.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},Gw.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Gw.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),h=n.redMul(l),d=c.redSqr().redIAdd(u).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(s.redMul(u)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},Gw.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=r.redMul(c),h=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(h,d,f)},Gw.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Gw.prototype.inspect=function(){return this.isInfinity()?"":""},Gw.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Kw=Ow((function(t,e){var r=e;r.base=Fw,r.short=Ww,r.mont=null,r.edwards=null})),Zw=Ow((function(t,e){var r,n=e,i=Bw.assert;function s(t){"short"===t.type?this.curve=new Kw.short(t):"edwards"===t.type?this.curve=new Kw.edwards(t):this.curve=new Kw.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new s(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=s,o("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:Ng.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("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:Ng.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("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:Ng.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("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:Ng.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"]}),o("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:Ng.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"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Ng.sha256,gRed:!1,g:["9"]}),o("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:Ng.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("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:Ng.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Qw(t){if(!(this instanceof Qw))return new Qw(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Rw.toArray(t.entropy,t.entropyEnc||"hex"),r=Rw.toArray(t.nonce,t.nonceEnc||"hex"),n=Rw.toArray(t.pers,t.persEnc||"hex");Nw(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Jw=Qw;Qw.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(t.concat(r||[])),this._reseed=1},Qw.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=Rw.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var eb=Bw.assert;function rb(t,e){if(t instanceof rb)return t;this._importDER(t,e)||(eb(t.r&&t.s,"Signature without r or s"),this.r=new Um(t.r,16),this.s=new Um(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var nb=rb;function ib(){this.place=0}function sb(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return!(i<=127)&&(e.place=o,i)}function ob(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}rb.prototype._importDER=function(t,e){t=Bw.toArray(t,e);var r=new ib;if(48!==t[r.place++])return!1;var n=sb(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=sb(t,r);if(!1===i)return!1;var s=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=sb(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new Um(s),this.s=new Um(a),this.recoveryParam=null,!0},rb.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=ob(e),r=ob(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];ab(n,e.length),(n=n.concat(e)).push(2),ab(n,r.length);var i=n.concat(r),s=[48];return ab(s,i.length),s=s.concat(i),Bw.encode(s,t)};var cb=function(){throw new Error("unsupported")},lb=Bw.assert;function ub(t){if(!(this instanceof ub))return new ub(t);"string"==typeof t&&(lb(Object.prototype.hasOwnProperty.call(Zw,t),"Unknown curve "+t),t=Zw[t]),t instanceof Zw.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var hb=ub;ub.prototype.keyPair=function(t){return new tb(this,t)},ub.prototype.keyFromPrivate=function(t,e){return tb.fromPrivate(this,t,e)},ub.prototype.keyFromPublic=function(t,e){return tb.fromPublic(this,t,e)},ub.prototype.genKeyPair=function(t){t||(t={});for(var e=new Jw({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||cb(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new Um(2));;){var i=new Um(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},ub.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},ub.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new Um(t,16));for(var i=this.n.byteLength(),s=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new Jw({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new Um(1)),l=0;;l++){var u=n.k?n.k(l):new Um(a.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(c)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=u.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new nb({r:f,s:p,recoveryParam:m})}}}}}},ub.prototype.verify=function(t,e,r,n){t=this._truncateToN(new Um(t,16)),r=this.keyFromPublic(r,n);var i=(e=new nb(e,"hex")).r,s=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,a=s.invm(this.n),c=a.mul(t).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},ub.prototype.recoverPubKey=function(t,e,r,n){lb((3&r)===r,"The recovery param is more than two bits"),e=new nb(e,n);var i=this.n,s=new Um(t),o=e.r,a=e.s,c=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=e.r.invm(i),h=i.sub(s).mul(u).umod(i),d=a.mul(u).umod(i);return this.g.mulAdd(h,o,d)},ub.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new nb(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var db=Ow((function(t,e){var r=e;r.version="6.5.4",r.utils=Bw,r.rand=function(){throw new Error("unsupported")},r.curve=Kw,r.curves=Zw,r.ec=hb,r.eddsa=null})).ec;const fb=new Am("signing-key/5.7.0");let pb=null;function mb(){return pb||(pb=new db("secp256k1")),pb}class gb{constructor(t){Ig(this,"curve","secp256k1"),Ig(this,"privateKey",Pm(t)),32!==function(t){if("string"!=typeof t)t=Pm(t);else if(!km(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&fb.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=mb().keyFromPrivate(Cm(this.privateKey));Ig(this,"publicKey","0x"+e.getPublic(!1,"hex")),Ig(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),Ig(this,"_isSigningKey",!0)}_addPoint(t){const e=mb().keyFromPublic(Cm(this.publicKey)),r=mb().keyFromPublic(Cm(t));return"0x"+e.pub.add(r.pub).encodeCompressed("hex")}signDigest(t){const e=mb().keyFromPrivate(Cm(this.privateKey)),r=Cm(t);32!==r.length&&fb.throwArgumentError("bad digest length","digest",t);const n=e.sign(r,{canonical:!0});return Tm({recoveryParam:n.recoveryParam,r:Nm("0x"+n.r.toString(16),32),s:Nm("0x"+n.s.toString(16),32)})}computeSharedSecret(t){const e=mb().keyFromPrivate(Cm(this.privateKey)),r=mb().keyFromPublic(Cm(yb(t)));return Nm("0x"+e.derive(r.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function yb(t,e){const r=Cm(t);if(32===r.length){const t=new gb(r);return e?"0x"+mb().keyFromPrivate(r).getPublic(!0,"hex"):t.publicKey}return 33===r.length?e?Pm(r):"0x"+mb().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?e?"0x"+mb().keyFromPublic(r).getPublic(!0,"hex"):Pm(r):fb.throwArgumentError("invalid public or private key","key","[REDACTED]")}var wb;function bb(t,e){return function(t){return function(t){let e=null;if("string"!=typeof t&&Sg.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Mg(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Sg.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>Cg[t])).join("");for(;e.length>=kg;){let t=e.substring(0,kg);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}(t)&&Sg.throwArgumentError("bad icap checksum","address",t),e=function(t){return new Dm(t,36).toString(16)}(t.substring(4));e.length<40;)e="0"+e;e=Mg("0x"+e)}else Sg.throwArgumentError("invalid address","address",t);return e}(Om(Rm(Om(yb(t),1)),12))}(function(t,e){const r=Tm(e),n={r:Cm(r.r),s:Cm(r.s)};return"0x"+mb().recoverPubKey(Cm(t),n,r.recoveryParam).encode("hex",!1)}(Cm(t),e))}new Am("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(wb||(wb={}));var vb=Object.defineProperty,Ab=Object.defineProperties,Eb=Object.getOwnPropertyDescriptors,xb=Object.getOwnPropertySymbols,_b=Object.prototype.hasOwnProperty,Sb=Object.prototype.propertyIsEnumerable,Mb=(t,e,r)=>e in t?vb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const Cb=t=>t?.split(":"),kb=t=>{const e=t&&Cb(t);if(e)return t.includes("did:pkh:")?e[3]:e[1]},Ib=t=>{const e=t&&Cb(t);if(e)return e[2]+":"+e[3]},Pb=t=>{const e=t&&Cb(t);if(e)return e.pop()};async function Ob(t){const{cacao:e,projectId:r}=t,{s:n,p:i}=e,s=Nb(i,i.iss),o=Pb(i.iss);return await async function(t,e,r,n,i,s){switch(r.t){case"eip191":return function(t,e,r){return bb(_g(e),r).toLowerCase()===t.toLowerCase()}(t,e,r.s);case"eip1271":return await async function(t,e,r,n,i,s){try{const o="0x1626ba7e",a="0000000000000000000000000000000000000000000000000000000000000040",c="0000000000000000000000000000000000000000000000000000000000000041",l=r.substring(2),u=o+_g(e).substring(2)+a+c+l,h=await fetch(`${s||"https://rpc.walletconnect.com/v1"}/?chainId=${n}&projectId=${i}`,{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:t,data:u},"latest"]})}),{result:d}=await h.json();return!!d&&d.slice(0,o.length).toLowerCase()===o.toLowerCase()}catch(t){return console.error("isValidEip1271Signature: ",t),!1}}(t,e,r.s,n,i,s);default:throw new Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}(o,s,n,kb(i.iss),r)}const Nb=(t,e)=>{const r=`${t.domain} wants you to sign in with your Ethereum account:`,n=Pb(e);if(!t.aud&&!t.uri)throw new Error("Either `aud` or `uri` is required to construct the message");let i=t.statement||void 0;const s=`URI: ${t.aud||t.uri}`,o=`Version: ${t.version}`,a=`Chain ID: ${kb(e)}`,c=`Nonce: ${t.nonce}`,l=`Issued At: ${t.iat}`,u=t.resources?`Resources:${t.resources.map((t=>`\n- ${t}`)).join("")}`:void 0,h=Fb(t.resources);return h&&(i=function(t="",e){Tb(e);const r="I further authorize the stated URI to perform the following actions on my behalf: ";if(t.includes(r))return t;const n=[];let i=0;return Object.keys(e.att).forEach((t=>{const r=Object.keys(e.att[t]).map((t=>({ability:t.split("/")[0],action:t.split("/")[1]})));r.sort(((t,e)=>t.action.localeCompare(e.action)));const s={};r.forEach((t=>{s[t.ability]||(s[t.ability]=[]),s[t.ability].push(t.action)}));const o=Object.keys(s).map((e=>(i++,`(${i}) '${e}': '${s[e].join("', '")}' for '${t}'.`)));n.push(o.join(", ").replace(".,","."))})),`${t?t+" ":""}${r}${n.join(" ")}`}(i,Lb(h))),[r,n,"",i,"",s,o,a,c,l,u].filter((t=>null!=t)).join("\n")};function Tb(t){if(!t)throw new Error("No recap provided, value is undefined");if(!t.att)throw new Error("No `att` property found");const e=Object.keys(t.att);if(null==e||!e.length)throw new Error("No resources found in `att` property");e.forEach((e=>{const r=t.att[e];if(Array.isArray(r))throw new Error(`Resource must be an object: ${e}`);if("object"!=typeof r)throw new Error(`Resource must be an object: ${e}`);if(!Object.keys(r).length)throw new Error(`Resource object is empty: ${e}`);Object.keys(r).forEach((t=>{const e=r[t];if(!Array.isArray(e))throw new Error(`Ability limits ${t} must be an array of objects, found: ${e}`);if(!e.length)throw new Error(`Value of ${t} is empty array, must be an array with objects`);e.forEach((e=>{if("object"!=typeof e)throw new Error(`Ability limits (${t}) must be an array of objects, found: ${e}`)}))}))}))}function Rb(t,e,r={}){e=e?.sort(((t,e)=>t.localeCompare(e)));const n=e.map((e=>({[`${t}/${e}`]:[r]})));return Object.assign({},...n)}function Bb(t){return Tb(t),`urn:recap:${function(t){return Zp.from(JSON.stringify(t)).toString("base64")}(t).replace(/=/g,"")}`}function Lb(t){const e=function(t){return JSON.parse(Zp.from(t,"base64").toString("utf-8"))}(t.replace("urn:recap:",""));return Tb(e),e}function Ub(t,e){const r=function(t,e){Tb(t),Tb(e);const r=Object.keys(t.att).concat(Object.keys(e.att)).sort(((t,e)=>t.localeCompare(e))),n={att:{}};return r.forEach((r=>{var i,s;Object.keys((null==(i=t.att)?void 0:i[r])||{}).concat(Object.keys((null==(s=e.att)?void 0:s[r])||{})).sort(((t,e)=>t.localeCompare(e))).forEach((i=>{var s,o;n.att[r]=((t,e)=>Ab(t,Eb(e)))(((t,e)=>{for(var r in e||(e={}))_b.call(e,r)&&Mb(t,r,e[r]);if(xb)for(var r of xb(e))Sb.call(e,r)&&Mb(t,r,e[r]);return t})({},n.att[r]),{[i]:(null==(s=t.att[r])?void 0:s[i])||(null==(o=e.att[r])?void 0:o[i])})}))})),n}(Lb(t),Lb(e));return Bb(r)}function jb(t){var e;const r=Lb(t);Tb(r);const n=null==(e=r.att)?void 0:e.eip155;return n?Object.keys(n).map((t=>t.split("/")[1])):[]}function Db(t){const e=Lb(t);Tb(e);const r=[];return Object.values(e.att).forEach((t=>{Object.values(t).forEach((t=>{var e;null!=(e=t?.[0])&&e.chains&&r.push(t[0].chains)}))})),[...new Set(r.flat())]}function Fb(t){if(!t)return;const e=t?.[t.length-1];return function(t){return t&&t.includes("urn:recap:")}(e)?e:void 0}const zb="base16";function Hb(t){return te((0,M.vp)(Xt(t,zb)),zb)}function $b(t){return te((0,M.vp)(Xt(t,"utf8")),zb)}function qb(t){const e=[];return t.forEach((t=>{const[r,n]=t.split(":");e.push(`${r}:${n}`)})),e}function Wb(t,e){const r=function(t){const e={};return t?.forEach((t=>{const[r,n]=t.split(":");e[r]||(e[r]={accounts:[],chains:[],events:[]}),e[r].accounts.push(t),e[r].chains.push(`${r}:${n}`)})),e}(e=e.map((t=>t.replace("did:pkh:",""))));for(const[e,n]of Object.entries(r))n.methods?n.methods=cm(n.methods,t):n.methods=t,n.events=["chainChanged","accountsChanged"];return r}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Vb={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Gb={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Kb(t,e){const{message:r,code:n}=Gb[t];return{message:e?`${r} ${e}`:r,code:n}}function Zb(t,e){const{message:r,code:n}=Vb[t];return{message:e?`${r} ${e}`:r,code:n}}function Qb(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}function Jb(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}function Yb(t){return typeof t>"u"}function Xb(t,e){return!(!e||!Yb(t))||"string"==typeof t&&!!t.trim().length}function tv(t,e){return!(!e||!Yb(t))||"number"==typeof t&&!isNaN(t)}function ev(t){return!(!Xb(t,!1)||!t.includes(":"))&&2===t.split(":").length}function rv(t){let e=!0;return Qb(t)?t.length&&(e=t.every((t=>Xb(t,!1)))):e=!1,e}function nv(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return rv(t?.methods)?rv(t?.events)||(r=Zb("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):r=Zb("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),r}(t,`${e}, namespace`);n&&(r=n)})),r}function iv(t,e){let r=null;if(t&&Jb(t)){const n=nv(t,e);n&&(r=n);const i=function(t,e){let r=null;return Object.values(t).forEach((t=>{if(r)return;const n=function(t,e){let r=null;return Qb(t)?t.forEach((t=>{r||function(t){if(Xb(t,!1)&&t.includes(":")){const e=t.split(":");if(3===e.length){const t=e[0]+":"+e[1];return!!e[2]&&ev(t)}}return!1}(t)||(r=Zb("UNSUPPORTED_ACCOUNTS",`${e}, account ${t} should be a string and conform to "namespace:chainId:address" format`))})):r=Zb("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),r}(t?.accounts,`${e} namespace`);n&&(r=n)})),r}(t,e);i&&(r=i)}else r=Kb("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return r}function sv(t){return Xb(t.protocol,!0)}function ov(t){return typeof t<"u"&&null!==typeof t}function av(t,e){return!(!ev(e)||!function(t){const e=[];return Object.values(t).forEach((t=>{e.push(...qb(t.accounts))})),e}(t).includes(e))}function cv(t,e,r){let n=null;const i=function(t){const e={};return Object.keys(t).forEach((r=>{var n;r.includes(":")?e[r]=t[r]:null==(n=t[r].chains)||n.forEach((n=>{e[n]={methods:t[r].methods,events:t[r].events}}))})),e}(t),s=function(t){const e={};return Object.keys(t).forEach((r=>{r.includes(":")?e[r]=t[r]:qb(t[r].accounts)?.forEach((n=>{e[n]={accounts:t[r].accounts.filter((t=>t.includes(`${n}:`))),methods:t[r].methods,events:t[r].events}}))})),e}(e),o=Object.keys(i),a=Object.keys(s),c=lv(Object.keys(t)),l=lv(Object.keys(e)),u=c.filter((t=>!l.includes(t)));return u.length&&(n=Kb("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.\n Required: ${u.toString()}\n Received: ${Object.keys(e).toString()}`)),nm(o,a)||(n=Kb("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.\n Required: ${o.toString()}\n Approved: ${a.toString()}`)),Object.keys(e).forEach((t=>{if(!t.includes(":")||n)return;const i=qb(e[t].accounts);i.includes(t)||(n=Kb("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${t}\n Required: ${t}\n Approved: ${i.toString()}`))})),o.forEach((t=>{n||(nm(i[t].methods,s[t].methods)?nm(i[t].events,s[t].events)||(n=Kb("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${t}`)):n=Kb("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${t}`))})),n}function lv(t){return[...new Set(t.map((t=>t.includes(":")?t.split(":")[0]:t)))]}const uv={};class hv{static get(t){return uv[t]}static set(t,e){uv[t]=e}static delete(t){delete uv[t]}}const dv="client",fv=`wc@2:${dv}:`,pv=dv,mv="WALLETCONNECT_DEEPLINK_CHOICE",gv="Proposal expired",yv=b.SEVEN_DAYS,wv={wc_sessionPropose:{req:{ttl:b.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:b.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:b.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:b.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:b.ONE_DAY,prompt:!1,tag:1104},res:{ttl:b.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:b.ONE_DAY,prompt:!1,tag:1106},res:{ttl:b.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:b.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:b.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:b.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:b.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:b.ONE_DAY,prompt:!1,tag:1112},res:{ttl:b.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:b.ONE_DAY,prompt:!1,tag:1114},res:{ttl:b.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:b.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:b.ONE_HOUR,prompt:!1,tag:1117}}},bv={min:b.FIVE_MINUTES,max:b.SEVEN_DAYS},vv="IDLE",Av="ACTIVE",Ev=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],xv="wc@1.5:auth:",_v=`${xv}:PUB_KEY`;var Sv=Object.defineProperty,Mv=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertySymbols,Iv=Object.prototype.hasOwnProperty,Pv=Object.prototype.propertyIsEnumerable,Ov=(t,e,r)=>e in t?Sv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Nv=(t,e)=>{for(var r in e||(e={}))Iv.call(e,r)&&Ov(t,r,e[r]);if(kv)for(var r of kv(e))Pv.call(e,r)&&Ov(t,r,e[r]);return t},Tv=(t,e)=>Mv(t,Cv(e));class Rv extends Gp{constructor(t){super(t),this.name="engine",this.events=new(w()),this.initialized=!1,this.requestQueue={state:vv,queue:[]},this.sessionRequestQueue={state:vv,queue:[]},this.requestQueueDelay=b.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(wv)}),this.initialized=!0,setTimeout((()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()}),(0,b.toMiliseconds)(this.requestQueueDelay)))},this.connect=async t=>{await this.isInitialized();const e=Tv(Nv({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(e);const{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:s,relays:o}=e;let a,c=r,l=!1;try{c&&(l=this.client.core.pairing.pairings.get(c).active)}catch(t){throw this.client.logger.error(`connect() -> pairing.get(${c}) failed`),t}if(!c||!l){const{topic:t,uri:e}=await this.client.core.pairing.create();c=t,a=e}if(!c){const{message:t}=Kb("NO_MATCHING_KEY",`connect() pairing topic: ${c}`);throw new Error(t)}const u=await this.client.core.crypto.generateKeyPair(),h=wv.wc_sessionPropose.req.ttl||b.FIVE_MINUTES,d=sm(h),f=Nv({requiredNamespaces:n,optionalNamespaces:i,relays:o??[{protocol:"irn"}],proposer:{publicKey:u,metadata:this.client.metadata},expiryTimestamp:d},s&&{sessionProperties:s}),{reject:p,resolve:m,done:g}=im(h,gv);this.events.once(am("session_connect"),(async({error:t,session:e})=>{if(t)p(t);else if(e){e.self.publicKey=u;const t=Tv(Nv({},e),{requiredNamespaces:f.requiredNamespaces,optionalNamespaces:f.optionalNamespaces});await this.client.session.set(e.topic,t),await this.setExpiry(e.topic,e.expiry),c&&await this.client.core.pairing.updateMetadata({topic:c,metadata:e.peer.metadata}),m(t)}}));const y=await this.sendRequest({topic:c,method:"wc_sessionPropose",params:f,throwOnFailedPublish:!0});return await this.setProposal(y,Nv({id:y},f)),{uri:a,approval:g}},this.pair=async t=>{await this.isInitialized();try{return await this.client.core.pairing.pair(t)}catch(t){throw this.client.logger.error("pair() failed"),t}},this.approve=async t=>{await this.isInitialized();try{await this.isValidApprove(t)}catch(t){throw this.client.logger.error("approve() -> isValidApprove() failed"),t}const{id:e,relayProtocol:r,namespaces:n,sessionProperties:i,sessionConfig:s}=t;let o;try{o=this.client.proposal.get(e)}catch(t){throw this.client.logger.error(`approve() -> proposal.get(${e}) failed`),t}let{pairingTopic:a,proposer:c,requiredNamespaces:l,optionalNamespaces:u}=o;a=a||"";const h=await this.client.core.crypto.generateKeyPair(),d=c.publicKey,f=await this.client.core.crypto.generateSharedKey(h,d),p=Nv(Nv({relay:{protocol:r??"irn"},namespaces:n,pairingTopic:a,controller:{publicKey:h,metadata:this.client.metadata},expiry:sm(yv)},i&&{sessionProperties:i}),s&&{sessionConfig:s});await this.client.core.relayer.subscribe(f);const m=Tv(Nv({},p),{topic:f,requiredNamespaces:l,optionalNamespaces:u,pairingTopic:a,acknowledged:!1,self:p.controller,peer:{publicKey:c.publicKey,metadata:c.metadata},controller:h});await this.client.session.set(f,m);try{await this.sendResult({id:e,topic:a,result:{relay:{protocol:r??"irn"},responderPublicKey:h},throwOnFailedPublish:!0}),await this.sendRequest({topic:f,method:"wc_sessionSettle",params:p,throwOnFailedPublish:!0})}catch(t){throw this.client.logger.error(t),this.client.session.delete(f,Zb("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(f),t}return await this.client.core.pairing.updateMetadata({topic:a,metadata:c.metadata}),await this.client.proposal.delete(e,Zb("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a}),await this.setExpiry(f,sm(yv)),{topic:f,acknowledged:()=>new Promise((t=>setTimeout((()=>t(this.client.session.get(f))),500)))}},this.reject=async t=>{await this.isInitialized();try{await this.isValidReject(t)}catch(t){throw this.client.logger.error("reject() -> isValidReject() failed"),t}const{id:e,reason:r}=t;let n;try{n=this.client.proposal.get(e).pairingTopic}catch(t){throw this.client.logger.error(`reject() -> proposal.get(${e}) failed`),t}n&&(await this.sendError({id:e,topic:n,error:r}),await this.client.proposal.delete(e,Zb("USER_DISCONNECTED")))},this.update=async t=>{await this.isInitialized();try{await this.isValidUpdate(t)}catch(t){throw this.client.logger.error("update() -> isValidUpdate() failed"),t}const{topic:e,namespaces:r}=t,{done:n,resolve:i,reject:s}=im(),o=Oh(),a=Nh().toString(),c=this.client.session.get(e).namespaces;return this.events.once(am("session_update",o),(({error:t})=>{t?s(t):i()})),await this.client.session.update(e,{namespaces:r}),this.sendRequest({topic:e,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:o,relayRpcId:a}).catch((t=>{this.client.logger.error(t),this.client.session.update(e,{namespaces:c}),s(t)})),{acknowledged:n}},this.extend=async t=>{await this.isInitialized();try{await this.isValidExtend(t)}catch(t){throw this.client.logger.error("extend() -> isValidExtend() failed"),t}const{topic:e}=t,r=Oh(),{done:n,resolve:i,reject:s}=im();return this.events.once(am("session_extend",r),(({error:t})=>{t?s(t):i()})),await this.setExpiry(e,sm(yv)),this.sendRequest({topic:e,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch((t=>{s(t)})),{acknowledged:n}},this.request=async t=>{await this.isInitialized();try{await this.isValidRequest(t)}catch(t){throw this.client.logger.error("request() -> isValidRequest() failed"),t}const{chainId:e,request:n,topic:i,expiry:s=wv.wc_sessionRequest.req.ttl}=t,o=this.client.session.get(i),a=Oh(),c=Nh().toString(),{done:l,resolve:u,reject:h}=im(s,"Request expired. Please try again.");return this.events.once(am("session_request",a),(({error:t,result:e})=>{t?h(t):u(e)})),await Promise.all([new Promise((async t=>{await this.sendRequest({clientRpcId:a,relayRpcId:c,topic:i,method:"wc_sessionRequest",params:{request:Tv(Nv({},n),{expiryTimestamp:sm(s)}),chainId:e},expiry:s,throwOnFailedPublish:!0}).catch((t=>h(t))),this.client.events.emit("session_request_sent",{topic:i,request:n,chainId:e,id:a}),t()})),new Promise((async t=>{var e;if(null==(e=o.sessionConfig)||!e.disableDeepLink){const t=await async function(t,e){try{return await t.getItem(e)||(em()?localStorage.getItem(e):void 0)}catch(t){console.error(t)}}(this.client.core.storage,mv);!async function({id:t,topic:e,wcDeepLink:n}){try{if(!n)return;let i=("string"==typeof n?JSON.parse(n):n)?.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const s=`${i}/wc?requestId=${t}&sessionTopic=${e}`,o=rm();o===Xp?s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"):o===Yp&&typeof(null==r.g?void 0:r.g.Linking)<"u"&&await r.g.Linking.openURL(s)}catch(t){console.error(t)}}({id:a,topic:i,wcDeepLink:t})}t()})),l()]).then((t=>t[2]))},this.respond=async t=>{await this.isInitialized(),await this.isValidRespond(t);const{topic:e,response:r}=t,{id:n}=r;Vh(r)?await this.sendResult({id:n,topic:e,result:r.result,throwOnFailedPublish:!0}):Gh(r)&&await this.sendError({id:n,topic:e,error:r.error}),this.cleanupAfterResponse(t)},this.ping=async t=>{await this.isInitialized();try{await this.isValidPing(t)}catch(t){throw this.client.logger.error("ping() -> isValidPing() failed"),t}const{topic:e}=t;if(this.client.session.keys.includes(e)){const t=Oh(),r=Nh().toString(),{done:n,resolve:i,reject:s}=im();this.events.once(am("session_ping",t),(({error:t})=>{t?s(t):i()})),await Promise.all([this.sendRequest({topic:e,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:t,relayRpcId:r}),n()])}else this.client.core.pairing.pairings.keys.includes(e)&&await this.client.core.pairing.ping({topic:e})},this.emit=async t=>{await this.isInitialized(),await this.isValidEmit(t);const{topic:e,event:r,chainId:n}=t,i=Nh().toString();await this.sendRequest({topic:e,method:"wc_sessionEvent",params:{event:r,chainId:n},throwOnFailedPublish:!0,relayRpcId:i})},this.disconnect=async t=>{await this.isInitialized(),await this.isValidDisconnect(t);const{topic:e}=t;if(this.client.session.keys.includes(e))await this.sendRequest({topic:e,method:"wc_sessionDelete",params:Zb("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:e,emitEvent:!1});else{if(!this.client.core.pairing.pairings.keys.includes(e)){const{message:t}=Kb("MISMATCHED_TOPIC",`Session or pairing topic not found: ${e}`);throw new Error(t)}await this.client.core.pairing.disconnect({topic:e})}},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter((e=>function(t,e){const{requiredNamespaces:r}=e,n=Object.keys(t.namespaces),i=Object.keys(r);let s=!0;return!!nm(i,n)&&(n.forEach((e=>{const{accounts:n,methods:i,events:o}=t.namespaces[e],a=qb(n),c=r[e];nm(Jp(e,c),a)&&nm(c.methods,i)&&nm(c.events,o)||(s=!1)})),s)}(e,t)))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async t=>{this.isInitialized(),this.isValidAuthenticate(t);const{chains:e,statement:r="",uri:n,domain:i,nonce:s,type:o,exp:a,nbf:c,methods:l=[]}=t,u=[...t.resources||[]],{topic:h,uri:d}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:h,uri:d}});const f=await this.client.core.crypto.generateKeyPair(),p=Hb(f);if(await Promise.all([this.client.auth.authKeys.set(_v,{responseTopic:p,publicKey:f}),this.client.auth.pairingTopics.set(p,{topic:p,pairingTopic:h})]),await this.client.core.relayer.subscribe(p),this.client.logger.info(`sending request to new pairing topic: ${h}`),l.length>0){const{namespace:t}=Qp(e[0]);let r=function(t,e,r){const n=function(t,e,r,n={}){return r?.sort(((t,e)=>t.localeCompare(e))),{att:{[t]:Rb(e,r,n)}}}(t,e,r);return Bb(n)}(t,"request",l);Fb(u)&&(r=Ub(r,u.pop())),u.push(r)}const m=sm(wv.wc_sessionPropose.req.ttl),g={authPayload:{type:o??"caip122",chains:e,statement:r,aud:n,domain:i,version:"1",nonce:s,iat:(new Date).toISOString(),exp:a,nbf:c,resources:u},requester:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:m},y={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:e,methods:[...new Set(["personal_sign",...l])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],proposer:{publicKey:f,metadata:this.client.metadata},expiryTimestamp:m},{done:w,resolve:b,reject:v}=im(wv.wc_sessionAuthenticate.req.ttl,"Request expired"),A=async({error:t,session:e})=>{if(this.events.off(am("session_request",x),E),t)v(t);else if(e){e.self.publicKey=f,await this.client.session.set(e.topic,e),await this.setExpiry(e.topic,e.expiry),h&&await this.client.core.pairing.updateMetadata({topic:h,metadata:e.peer.metadata});const t=this.client.session.get(e.topic);b({session:t})}},E=async t=>{if(t.error){const e=Zb("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return t.error.code===e.code?void 0:(this.events.off(am("session_connect"),A),v(t.error.message))}this.events.off(am("session_connect"),A);const{cacaos:e,responder:r}=t.result,n=[],i=[];for(const t of e){await Ob({cacao:t,projectId:this.client.core.projectId})||(this.client.logger.error(t,"Signature verification failed"),v(Zb("SESSION_SETTLEMENT_FAILED","Signature verification failed")));const{p:e}=t,r=Fb(e.resources),s=[Ib(e.iss)],o=Pb(e.iss);if(r){const t=jb(r),e=Db(r);n.push(...t),s.push(...e)}for(const t of s)i.push(`${t}:${o}`)}const s=await this.client.core.crypto.generateSharedKey(f,r.publicKey);let o;n.length>0&&(o={topic:s,acknowledged:!0,self:{publicKey:f,metadata:this.client.metadata},peer:r,controller:r.publicKey,expiry:sm(yv),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:h,namespaces:Wb([...new Set(n)],[...new Set(i)])},await this.client.core.relayer.subscribe(s),await this.client.session.set(s,o),o=this.client.session.get(s)),b({auths:e,session:o})},x=Oh(),_=Oh();this.events.once(am("session_connect"),A),this.events.once(am("session_request",x),E);try{await Promise.all([this.sendRequest({topic:h,method:"wc_sessionAuthenticate",params:g,expiry:t.expiry,throwOnFailedPublish:!0,clientRpcId:x}),this.sendRequest({topic:h,method:"wc_sessionPropose",params:y,expiry:wv.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:_})])}catch(t){throw this.events.off(am("session_connect"),A),this.events.off(am("session_request",x),E),t}return await this.setProposal(_,Nv({id:_},y)),await this.client.auth.requests.set(x,{authPayload:g.authPayload,requester:g.requester,expiryTimestamp:m,id:x,pairingTopic:h,verifyContext:{}}),{uri:d,response:w}},this.approveSessionAuthenticate=async t=>{this.isInitialized();const{id:e,auths:r}=t,n=this.getPendingAuthRequest(e);if(!n)throw new Error(`Could not find pending auth request with id ${e}`);const i=n.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),o=Hb(i),a={type:1,receiverPublicKey:i,senderPublicKey:s},c=[],l=[];for(const t of r){if(!await Ob({cacao:t,projectId:this.client.core.projectId})){const t=Zb("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:e,topic:o,error:t,encodeOpts:a}),new Error(t.message)}const{p:r}=t,n=Fb(r.resources),i=[Ib(r.iss)],s=Pb(r.iss);if(n){const t=jb(n),e=Db(n);c.push(...t),i.push(...e)}for(const t of i)l.push(`${t}:${s}`)}const u=await this.client.core.crypto.generateSharedKey(s,i);let h;return c?.length>0&&(h={topic:u,acknowledged:!0,self:{publicKey:s,metadata:this.client.metadata},peer:{publicKey:i,metadata:n.requester.metadata},controller:i,expiry:sm(yv),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:Wb([...new Set(c)],[...new Set(l)])},await this.client.core.relayer.subscribe(u),await this.client.session.set(u,h)),await this.sendResult({topic:o,id:e,result:{cacaos:r,responder:{publicKey:s,metadata:this.client.metadata}},encodeOpts:a,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(e,{message:"fullfilled",code:0}),await this.client.core.pairing.activate({topic:n.pairingTopic}),{session:h}},this.rejectSessionAuthenticate=async t=>{await this.isInitialized();const{id:e,reason:r}=t,n=this.getPendingAuthRequest(e);if(!n)throw new Error(`Could not find pending auth request with id ${e}`);const i=n.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),o=Hb(i),a={type:1,receiverPublicKey:i,senderPublicKey:s};await this.sendError({id:e,topic:o,error:r,encodeOpts:a}),await this.client.auth.requests.delete(e,{message:"rejected",code:0}),await this.client.proposal.delete(e,Zb("USER_DISCONNECTED"))},this.formatAuthMessage=t=>{this.isInitialized();const{request:e,iss:r}=t;return Nb(e,r)},this.cleanupDuplicatePairings=async t=>{if(t.pairingTopic)try{const e=this.client.core.pairing.pairings.get(t.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter((r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&r.topic&&r.topic!==e.topic}));if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map((t=>this.client.core.pairing.disconnect({topic:t.topic})))),this.client.logger.info("Duplicate pairings clean up finished")}catch(t){this.client.logger.error(t)}},this.deleteSession=async t=>{const{topic:e,expirerHasDeleted:r=!1,emitEvent:n=!0,id:i=0}=t,{self:s}=this.client.session.get(e);await this.client.core.relayer.unsubscribe(e),await this.client.session.delete(e,Zb("USER_DISCONNECTED")),this.addToRecentlyDeleted(e,"session"),this.client.core.crypto.keychain.has(s.publicKey)&&await this.client.core.crypto.deleteKeyPair(s.publicKey),this.client.core.crypto.keychain.has(e)&&await this.client.core.crypto.deleteSymKey(e),r||this.client.core.expirer.del(e),this.client.core.storage.removeItem(mv).catch((t=>this.client.logger.warn(t))),this.getPendingSessionRequests().forEach((t=>{t.topic===e&&this.deletePendingSessionRequest(t.id,Zb("USER_DISCONNECTED"))})),n&&this.client.events.emit("session_delete",{id:i,topic:e})},this.deleteProposal=async(t,e)=>{await Promise.all([this.client.proposal.delete(t,Zb("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)]),this.addToRecentlyDeleted(t,"proposal")},this.deletePendingSessionRequest=async(t,e,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]),this.addToRecentlyDeleted(t,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((e=>e.id!==t)),r&&(this.sessionRequestQueue.state=vv,this.client.events.emit("session_request_expire",{id:t}))},this.setExpiry=async(t,e)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:e}),this.client.core.expirer.set(t,e)},this.setProposal=async(t,e)=>{await this.client.proposal.set(t,e),this.client.core.expirer.set(t,sm(wv.wc_sessionPropose.req.ttl))},this.setPendingSessionRequest=async t=>{const{id:e,topic:r,params:n,verifyContext:i}=t,s=n.request.expiryTimestamp||sm(wv.wc_sessionRequest.req.ttl);await this.client.pendingRequest.set(e,{id:e,topic:r,params:n,verifyContext:i}),s&&this.client.core.expirer.set(e,s)},this.sendRequest=async t=>{const{topic:e,method:r,params:n,expiry:i,relayRpcId:s,clientRpcId:o,throwOnFailedPublish:a}=t,c=Th(r,n,o);if(em()&&Ev.includes(r)){const t=$b(JSON.stringify(c));this.client.core.verify.register({attestationId:t})}let l;try{l=await this.client.core.crypto.encode(e,c)}catch(t){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${e} failed`),t}const u=wv[r].req;return i&&(u.ttl=i),s&&(u.id=s),this.client.core.history.set(e,c),a?(u.internal=Tv(Nv({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(e,l,u)):this.client.core.relayer.publish(e,l,u).catch((t=>this.client.logger.error(t))),c.id},this.sendResult=async t=>{const{id:e,topic:r,result:n,throwOnFailedPublish:i,encodeOpts:s}=t,o=Rh(e,n);let a,c;try{a=await this.client.core.crypto.encode(r,o,s)}catch(t){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${r} failed`),t}try{c=await this.client.core.history.get(r,e)}catch(t){throw this.client.logger.error(`sendResult() -> history.get(${r}, ${e}) failed`),t}const l=wv[c.request.method].res;i?(l.internal=Tv(Nv({},l.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,a,l)):this.client.core.relayer.publish(r,a,l).catch((t=>this.client.logger.error(t))),await this.client.core.history.resolve(o)},this.sendError=async t=>{const{id:e,topic:r,error:n,encodeOpts:i}=t,s=Bh(e,n);let o,a;try{o=await this.client.core.crypto.encode(r,s,i)}catch(t){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${r} failed`),t}try{a=await this.client.core.history.get(r,e)}catch(t){throw this.client.logger.error(`sendError() -> history.get(${r}, ${e}) failed`),t}const c=wv[a.request.method].res;this.client.core.relayer.publish(r,o,c),await this.client.core.history.resolve(s)},this.cleanup=async()=>{const t=[],e=[];this.client.session.getAll().forEach((e=>{let r=!1;om(e.expiry)&&(r=!0),this.client.core.crypto.keychain.has(e.topic)||(r=!0),r&&t.push(e.topic)})),this.client.proposal.getAll().forEach((t=>{om(t.expiryTimestamp)&&e.push(t.id)})),await Promise.all([...t.map((t=>this.deleteSession({topic:t}))),...e.map((t=>this.deleteProposal(t)))])},this.onRelayEventRequest=async t=>{this.requestQueue.queue.push(t),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state!==Av){for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=Av;const t=this.requestQueue.queue.shift();if(t)try{this.processRequest(t),await new Promise((t=>setTimeout(t,300)))}catch(t){this.client.logger.warn(t)}}this.requestQueue.state=vv}else this.client.logger.info("Request queue already active, skipping...")},this.processRequest=t=>{const{topic:e,payload:r}=t,n=r.method;if(!this.shouldIgnorePairingRequest({topic:e,requestMethod:n}))switch(n){case"wc_sessionPropose":return this.onSessionProposeRequest(e,r);case"wc_sessionSettle":return this.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return this.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return this.onSessionExtendRequest(e,r);case"wc_sessionPing":return this.onSessionPingRequest(e,r);case"wc_sessionDelete":return this.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return this.onSessionRequest(e,r);case"wc_sessionEvent":return this.onSessionEventRequest(e,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateRequest(e,r);default:return this.client.logger.info(`Unsupported request method ${n}`)}},this.onRelayEventResponse=async t=>{const{topic:e,payload:r}=t,n=(await this.client.core.history.get(e,r.id)).request.method;switch(n){case"wc_sessionPropose":return this.onSessionProposeResponse(e,r);case"wc_sessionSettle":return this.onSessionSettleResponse(e,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(e,r);case"wc_sessionExtend":return this.onSessionExtendResponse(e,r);case"wc_sessionPing":return this.onSessionPingResponse(e,r);case"wc_sessionRequest":return this.onSessionRequestResponse(e,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(e,r);default:return this.client.logger.info(`Unsupported response method ${n}`)}},this.onRelayEventUnknownPayload=t=>{const{topic:e}=t,{message:r}=Kb("MISSING_OR_INVALID",`Decoded payload on topic ${e} is not identifiable as a JSON-RPC request or a response.`);throw new Error(r)},this.shouldIgnorePairingRequest=t=>{const{topic:e,requestMethod:r}=t,n=this.expectedPairingMethodMap.get(e);return!(!n||n.includes(r)||!(n.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0))},this.onSessionProposeRequest=async(t,e)=>{const{params:r,id:n}=e;try{this.isValidConnect(Nv({},e.params));const i=r.expiryTimestamp||sm(wv.wc_sessionPropose.req.ttl),s=Nv({id:n,pairingTopic:t,expiryTimestamp:i},r);await this.setProposal(n,s);const o=$b(JSON.stringify(e)),a=await this.getVerifyContext(o,s.proposer.metadata);this.client.events.emit("session_proposal",{id:n,params:s,verifyContext:a})}catch(e){await this.sendError({id:n,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionProposeResponse=async(t,e)=>{const{id:r}=e;if(Vh(e)){const{result:n}=e;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:n});const i=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:i});const s=i.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s});const o=n.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:o});const a=await this.client.core.crypto.generateSharedKey(s,o);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:a});const c=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:t})}else if(Gh(e)){await this.client.proposal.delete(r,Zb("USER_DISCONNECTED"));const t=am("session_connect");if(0===this.events.listenerCount(t))throw new Error(`emitting ${t} without any listeners, 954`);this.events.emit(am("session_connect"),{error:e.error})}},this.onSessionSettleRequest=async(t,e)=>{const{id:r,params:n}=e;try{this.isValidSessionSettleRequest(n);const{relay:r,controller:i,expiry:s,namespaces:o,sessionProperties:a,pairingTopic:c,sessionConfig:l}=e.params,u=Nv(Nv({topic:t,relay:r,expiry:s,namespaces:o,acknowledged:!0,pairingTopic:c,requiredNamespaces:{},optionalNamespaces:{},controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},a&&{sessionProperties:a}),l&&{sessionConfig:l});await this.sendResult({id:e.id,topic:t,result:!0,throwOnFailedPublish:!0});const h=am("session_connect");if(0===this.events.listenerCount(h))throw new Error(`emitting ${h} without any listeners 997`);this.events.emit(am("session_connect"),{session:u}),this.cleanupDuplicatePairings(u)}catch(e){await this.sendError({id:r,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionSettleResponse=async(t,e)=>{const{id:r}=e;Vh(e)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(am("session_approve",r),{})):Gh(e)&&(await this.client.session.delete(t,Zb("USER_DISCONNECTED")),this.events.emit(am("session_approve",r),{error:e.error}))},this.onSessionUpdateRequest=async(t,e)=>{const{params:r,id:n}=e;try{const e=`${t}_session_update`,i=hv.get(e);if(i&&this.isRequestOutOfSync(i,n))return this.client.logger.info(`Discarding out of sync request - ${n}`),void this.sendError({id:n,topic:t,error:Zb("INVALID_UPDATE_REQUEST")});this.isValidUpdate(Nv({topic:t},r));try{hv.set(e,n),await this.client.session.update(t,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:t,result:!0,throwOnFailedPublish:!0})}catch(t){throw hv.delete(e),t}this.client.events.emit("session_update",{id:n,topic:t,params:r})}catch(e){await this.sendError({id:n,topic:t,error:e}),this.client.logger.error(e)}},this.isRequestOutOfSync=(t,e)=>parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3)),this.onSessionUpdateResponse=(t,e)=>{const{id:r}=e,n=am("session_update",r);if(0===this.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);Vh(e)?this.events.emit(am("session_update",r),{}):Gh(e)&&this.events.emit(am("session_update",r),{error:e.error})},this.onSessionExtendRequest=async(t,e)=>{const{id:r}=e;try{this.isValidExtend({topic:t}),await this.setExpiry(t,sm(yv)),await this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:t})}catch(e){await this.sendError({id:r,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionExtendResponse=(t,e)=>{const{id:r}=e,n=am("session_extend",r);if(0===this.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);Vh(e)?this.events.emit(am("session_extend",r),{}):Gh(e)&&this.events.emit(am("session_extend",r),{error:e.error})},this.onSessionPingRequest=async(t,e)=>{const{id:r}=e;try{this.isValidPing({topic:t}),await this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:t})}catch(e){await this.sendError({id:r,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionPingResponse=(t,e)=>{const{id:r}=e,n=am("session_ping",r);if(0===this.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);setTimeout((()=>{Vh(e)?this.events.emit(am("session_ping",r),{}):Gh(e)&&this.events.emit(am("session_ping",r),{error:e.error})}),500)},this.onSessionDeleteRequest=async(t,e)=>{const{id:r}=e;try{this.isValidDisconnect({topic:t,reason:e.params}),await Promise.all([new Promise((e=>{this.client.core.relayer.once(Uf,(async()=>{e(await this.deleteSession({topic:t,id:r}))}))})),this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:t,error:Zb("USER_DISCONNECTED")})])}catch(t){this.client.logger.error(t)}},this.onSessionRequest=async(t,e)=>{const{id:r,params:n}=e;try{await this.isValidRequest(Nv({topic:t},n));const e=$b(JSON.stringify(Th("wc_sessionRequest",n,r))),i=this.client.session.get(t),s={id:r,topic:t,params:n,verifyContext:await this.getVerifyContext(e,i.peer.metadata)};await this.setPendingSessionRequest(s),this.addSessionRequestToSessionRequestQueue(s),this.processSessionRequestQueue()}catch(e){await this.sendError({id:r,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionRequestResponse=(t,e)=>{const{id:r}=e,n=am("session_request",r);if(0===this.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);Vh(e)?this.events.emit(am("session_request",r),{result:e.result}):Gh(e)&&this.events.emit(am("session_request",r),{error:e.error})},this.onSessionEventRequest=async(t,e)=>{const{id:r,params:n}=e;try{const e=`${t}_session_event_${n.event.name}`,i=hv.get(e);if(i&&this.isRequestOutOfSync(i,r))return void this.client.logger.info(`Discarding out of sync request - ${r}`);this.isValidEmit(Nv({topic:t},n)),this.client.events.emit("session_event",{id:r,topic:t,params:n}),hv.set(e,r)}catch(e){await this.sendError({id:r,topic:t,error:e}),this.client.logger.error(e)}},this.onSessionAuthenticateResponse=(t,e)=>{const{id:r}=e;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:t,payload:e}),Vh(e)?this.events.emit(am("session_request",r),{result:e.result}):Gh(e)&&this.events.emit(am("session_request",r),{error:e.error})},this.onSessionAuthenticateRequest=async(t,e)=>{const{requester:r,authPayload:n,expiryTimestamp:i}=e.params,s=$b(JSON.stringify(e)),o=await this.getVerifyContext(s,this.client.metadata),a={requester:r,pairingTopic:t,id:e.id,authPayload:n,verifyContext:o,expiryTimestamp:i};await this.client.auth.requests.set(e.id,a),this.client.events.emit("session_authenticate",{topic:t,params:e.params,id:e.id})},this.addSessionRequestToSessionRequestQueue=t=>{this.sessionRequestQueue.queue.push(t)},this.cleanupAfterResponse=t=>{this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((()=>{this.sessionRequestQueue.state=vv,this.processSessionRequestQueue()}),(0,b.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:t,error:e})=>{const r=this.client.core.history.pending;r.length>0&&r.filter((e=>e.topic===t&&"wc_sessionRequest"===e.request.method)).forEach((t=>{const r=am("session_request",t.request.id);if(0===this.events.listenerCount(r))throw new Error(`emitting ${r} without any listeners`);this.events.emit(am("session_request",t.request.id),{error:e})}))},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===Av)return void this.client.logger.info("session request queue is already active.");const t=this.sessionRequestQueue.queue[0];if(t)try{this.sessionRequestQueue.state=Av,this.client.events.emit("session_request",t)}catch(t){this.client.logger.error(t)}else this.client.logger.info("session request queue is empty.")},this.onPairingCreated=t=>{if(t.methods&&this.expectedPairingMethodMap.set(t.topic,t.methods),t.active)return;const e=this.client.proposal.getAll().find((e=>e.pairingTopic===t.topic));e&&this.onSessionProposeRequest(t.topic,Th("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))},this.isValidConnect=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(e)}const{pairingTopic:e,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:s}=t;if(Yb(e)||await this.isValidPairingTopic(e),!function(t,e){let r=!1;return t?t&&Qb(t)&&t.length&&t.forEach((t=>{r=sv(t)})):r=!0,r}(s)){const{message:t}=Kb("MISSING_OR_INVALID",`connect() relays: ${s}`);throw new Error(t)}!Yb(r)&&0!==Jb(r)&&this.validateNamespaces(r,"requiredNamespaces"),!Yb(n)&&0!==Jb(n)&&this.validateNamespaces(n,"optionalNamespaces"),Yb(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(t,e)=>{const r=function(t,e,r){let n=null;if(t&&Jb(t)){const i=nv(t,e);i&&(n=i);const s=function(t,e,r){let n=null;return Object.entries(t).forEach((([t,i])=>{if(n)return;const s=function(t,e,r){let n=null;return Qb(e)&&e.length?e.forEach((t=>{n||ev(t)||(n=Zb("UNSUPPORTED_CHAINS",`${r}, chain ${t} should be a string and conform to "namespace:chainId" format`))})):ev(t)||(n=Zb("UNSUPPORTED_CHAINS",`${r}, chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }`)),n}(t,Jp(t,i),`${e} ${r}`);s&&(n=s)})),n}(t,e,r);s&&(n=s)}else n=Kb("MISSING_OR_INVALID",`${e}, ${r} should be an object with data`);return n}(t,"connect()",e);if(r)throw new Error(r.message)},this.isValidApprove=async t=>{if(!ov(t))throw new Error(Kb("MISSING_OR_INVALID",`approve() params: ${t}`).message);const{id:e,namespaces:r,relayProtocol:n,sessionProperties:i}=t;this.checkRecentlyDeleted(e),await this.isValidProposalId(e);const s=this.client.proposal.get(e),o=iv(r,"approve()");if(o)throw new Error(o.message);const a=cv(s.requiredNamespaces,r,"approve()");if(a)throw new Error(a.message);if(!Xb(n,!0)){const{message:t}=Kb("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw new Error(t)}Yb(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(e)}const{id:e,reason:r}=t;if(this.checkRecentlyDeleted(e),await this.isValidProposalId(e),!function(t){return!!(t&&"object"==typeof t&&t.code&&tv(t.code,!1)&&t.message&&Xb(t.message,!1))}(r)){const{message:t}=Kb("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidSessionSettleRequest=t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(e)}const{relay:e,controller:r,namespaces:n,expiry:i}=t;if(!sv(e)){const{message:t}=Kb("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(t)}const s=function(t,e){let r=null;return Xb(t?.publicKey,!1)||(r=Kb("MISSING_OR_INVALID","onSessionSettleRequest() controller public key should be a string")),r}(r);if(s)throw new Error(s.message);const o=iv(n,"onSessionSettleRequest()");if(o)throw new Error(o.message);if(om(i)){const{message:t}=Kb("EXPIRED","onSessionSettleRequest()");throw new Error(t)}},this.isValidUpdate=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(e)}const{topic:e,namespaces:r}=t;this.checkRecentlyDeleted(e),await this.isValidSessionTopic(e);const n=this.client.session.get(e),i=iv(r,"update()");if(i)throw new Error(i.message);const s=cv(n.requiredNamespaces,r,"update()");if(s)throw new Error(s.message)},this.isValidExtend=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(e)}const{topic:e}=t;this.checkRecentlyDeleted(e),await this.isValidSessionTopic(e)},this.isValidRequest=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(e)}const{topic:e,request:r,chainId:n,expiry:i}=t;this.checkRecentlyDeleted(e),await this.isValidSessionTopic(e);const{namespaces:s}=this.client.session.get(e);if(!av(s,n)){const{message:t}=Kb("MISSING_OR_INVALID",`request() chainId: ${n}`);throw new Error(t)}if(!function(t){return!(Yb(t)||!Xb(t.method,!1))}(r)){const{message:t}=Kb("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw new Error(t)}if(!function(t,e,r){return!!Xb(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{qb(t.accounts).includes(e)&&r.push(...t.methods)})),r}(t,e).includes(r)}(s,n,r.method)){const{message:t}=Kb("MISSING_OR_INVALID",`request() method: ${r.method}`);throw new Error(t)}if(i&&!function(t,e){return tv(t,!1)&&t<=e.max&&t>=e.min}(i,bv)){const{message:t}=Kb("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${bv.min} and ${bv.max}`);throw new Error(t)}},this.isValidRespond=async t=>{var e;if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(e)}const{topic:r,response:n}=t;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(e=t?.response)&&e.id&&this.cleanupAfterResponse(t),r}if(!function(t){return!(Yb(t)||Yb(t.result)&&Yb(t.error)||!tv(t.id,!1)||!Xb(t.jsonrpc,!1))}(n)){const{message:t}=Kb("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(n)}`);throw new Error(t)}},this.isValidPing=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.isValidEmit=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(e)}const{topic:e,event:r,chainId:n}=t;await this.isValidSessionTopic(e);const{namespaces:i}=this.client.session.get(e);if(!av(i,n)){const{message:t}=Kb("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw new Error(t)}if(!function(t){return!(Yb(t)||!Xb(t.name,!1))}(r)){const{message:t}=Kb("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}if(!function(t,e,r){return!!Xb(r,!1)&&function(t,e){const r=[];return Object.values(t).forEach((t=>{qb(t.accounts).includes(e)&&r.push(...t.events)})),r}(t,e).includes(r)}(i,n,r.name)){const{message:t}=Kb("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw new Error(t)}},this.isValidDisconnect=async t=>{if(!ov(t)){const{message:e}=Kb("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(e)}const{topic:e}=t;await this.isValidSessionOrPairingTopic(e)},this.isValidAuthenticate=t=>{const{chains:e,uri:r,domain:n,nonce:i}=t;if(!Array.isArray(e)||0===e.length)throw new Error("chains is required and must be a non-empty array");if(!Xb(r,!1))throw new Error("uri is required parameter");if(!Xb(n,!1))throw new Error("domain is required parameter");if(!Xb(i,!1))throw new Error("nonce is required parameter");if([...new Set(e.map((t=>Qp(t).namespace)))].length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");const{namespace:s}=Qp(e[0]);if("eip155"!==s)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(t,e)=>{const r={verified:{verifyUrl:e.verifyUrl||rp,validation:"UNKNOWN",origin:e.url||""}};try{const n=await this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});n&&(r.verified.origin=n.origin,r.verified.isScam=n.isScam,r.verified.validation=n.origin===new URL(e.url).origin?"VALID":"INVALID")}catch(t){this.client.logger.info(t)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(t,e)=>{Object.values(t).forEach((t=>{if(!Xb(t,!1)){const{message:r}=Kb("MISSING_OR_INVALID",`${e} must be in Record format. Received: ${JSON.stringify(t)}`);throw new Error(r)}}))},this.getPendingAuthRequest=t=>{const e=this.client.auth.requests.get(t);return"object"==typeof e?e:void 0},this.addToRecentlyDeleted=(t,e)=>{if(this.recentlyDeletedMap.set(t,e),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let t=0;const e=this.recentlyDeletedLimit/2;for(const r of this.recentlyDeletedMap.keys()){if(t++>=e)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=t=>{const e=this.recentlyDeletedMap.get(t);if(e){const{message:r}=Kb("MISSING_OR_INVALID",`Record was recently deleted - ${e}: ${t}`);throw new Error(r)}}}async isInitialized(){if(!this.initialized){const{message:t}=Kb("NOT_INITIALIZED",this.name);throw new Error(t)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(Rf,(async t=>{const{topic:e,message:r}=t,{publicKey:n}=this.client.auth.authKeys.keys.includes(_v)?this.client.auth.authKeys.get(_v):{responseTopic:void 0,publicKey:void 0},i=await this.client.core.crypto.decode(e,r,{receiverPublicKey:n});try{qh(i)?(this.client.core.history.set(e,i),this.onRelayEventRequest({topic:e,payload:i})):Wh(i)?(await this.client.core.history.resolve(i),await this.onRelayEventResponse({topic:e,payload:i}),this.client.core.history.delete(e,i.id)):this.onRelayEventUnknownPayload({topic:e,payload:i})}catch(t){this.client.logger.error(t)}}))}registerExpirerEvents(){this.client.core.expirer.on(tp,(async t=>{const{topic:e,id:r}=function(t){const[e,r]=t.split(":"),n={id:void 0,topic:void 0};if("topic"===e&&"string"==typeof r)n.topic=r;else{if("id"!==e||!Number.isInteger(Number(r)))throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${r}`);n.id=Number(r)}return n}(t.target);if(r&&this.client.pendingRequest.keys.includes(r))return await this.deletePendingSessionRequest(r,Kb("EXPIRED"),!0);e?this.client.session.keys.includes(e)&&(await this.deleteSession({topic:e,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:e})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r}))}))}registerPairingEvents(){this.client.core.pairing.events.on(Gf,(t=>this.onPairingCreated(t))),this.client.core.pairing.events.on(Kf,(t=>{this.addToRecentlyDeleted(t.topic,"pairing")}))}isValidPairingTopic(t){if(!Xb(t,!1)){const{message:e}=Kb("MISSING_OR_INVALID",`pairing topic should be a string: ${t}`);throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){const{message:e}=Kb("NO_MATCHING_KEY",`pairing topic doesn't exist: ${t}`);throw new Error(e)}if(om(this.client.core.pairing.pairings.get(t).expiry)){const{message:e}=Kb("EXPIRED",`pairing topic: ${t}`);throw new Error(e)}}async isValidSessionTopic(t){if(!Xb(t,!1)){const{message:e}=Kb("MISSING_OR_INVALID",`session topic should be a string: ${t}`);throw new Error(e)}if(this.checkRecentlyDeleted(t),!this.client.session.keys.includes(t)){const{message:e}=Kb("NO_MATCHING_KEY",`session topic doesn't exist: ${t}`);throw new Error(e)}if(om(this.client.session.get(t).expiry)){await this.deleteSession({topic:t});const{message:e}=Kb("EXPIRED",`session topic: ${t}`);throw new Error(e)}if(!this.client.core.crypto.keychain.has(t)){const{message:e}=Kb("MISSING_OR_INVALID",`session topic does not exist in keychain: ${t}`);throw await this.deleteSession({topic:t}),new Error(e)}}async isValidSessionOrPairingTopic(t){if(this.checkRecentlyDeleted(t),this.client.session.keys.includes(t))await this.isValidSessionTopic(t);else{if(!this.client.core.pairing.pairings.keys.includes(t)){if(Xb(t,!1)){const{message:e}=Kb("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${t}`);throw new Error(e)}{const{message:e}=Kb("MISSING_OR_INVALID",`session or pairing topic should be a string: ${t}`);throw new Error(e)}}this.isValidPairingTopic(t)}}async isValidProposalId(t){if(!function(t){return"number"==typeof t}(t)){const{message:e}=Kb("MISSING_OR_INVALID",`proposal id should be a number: ${t}`);throw new Error(e)}if(!this.client.proposal.keys.includes(t)){const{message:e}=Kb("NO_MATCHING_KEY",`proposal id doesn't exist: ${t}`);throw new Error(e)}if(om(this.client.proposal.get(t).expiryTimestamp)){await this.deleteProposal(t);const{message:e}=Kb("EXPIRED",`proposal id: ${t}`);throw new Error(e)}}}class Bv extends Np{constructor(t,e){super(t,e,"proposal",fv),this.core=t,this.logger=e}}class Lv extends Np{constructor(t,e){super(t,e,"session",fv),this.core=t,this.logger=e}}class Uv extends Np{constructor(t,e){super(t,e,"request",fv,(t=>t.id)),this.core=t,this.logger=e}}class jv extends Np{constructor(t,e){super(t,e,"authKeys",xv,(()=>_v)),this.core=t,this.logger=e}}class Dv extends Np{constructor(t,e){super(t,e,"pairingTopics",xv),this.core=t,this.logger=e}}class Fv extends Np{constructor(t,e){super(t,e,"requests",xv,(t=>t.id)),this.core=t,this.logger=e}}class zv{constructor(t,e){this.core=t,this.logger=e,this.authKeys=new jv(this.core,this.logger),this.pairingTopics=new Dv(this.core,this.logger),this.requests=new Fv(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class Hv extends Vp{constructor(t){super(t),this.protocol="wc",this.version=2,this.name=pv,this.events=new y.EventEmitter,this.on=(t,e)=>this.events.on(t,e),this.once=(t,e)=>this.events.once(t,e),this.off=(t,e)=>this.events.off(t,e),this.removeListener=(t,e)=>this.events.removeListener(t,e),this.removeAllListeners=t=>this.events.removeAllListeners(t),this.connect=async t=>{try{return await this.engine.connect(t)}catch(t){throw this.logger.error(t.message),t}},this.pair=async t=>{try{return await this.engine.pair(t)}catch(t){throw this.logger.error(t.message),t}},this.approve=async t=>{try{return await this.engine.approve(t)}catch(t){throw this.logger.error(t.message),t}},this.reject=async t=>{try{return await this.engine.reject(t)}catch(t){throw this.logger.error(t.message),t}},this.update=async t=>{try{return await this.engine.update(t)}catch(t){throw this.logger.error(t.message),t}},this.extend=async t=>{try{return await this.engine.extend(t)}catch(t){throw this.logger.error(t.message),t}},this.request=async t=>{try{return await this.engine.request(t)}catch(t){throw this.logger.error(t.message),t}},this.respond=async t=>{try{return await this.engine.respond(t)}catch(t){throw this.logger.error(t.message),t}},this.ping=async t=>{try{return await this.engine.ping(t)}catch(t){throw this.logger.error(t.message),t}},this.emit=async t=>{try{return await this.engine.emit(t)}catch(t){throw this.logger.error(t.message),t}},this.disconnect=async t=>{try{return await this.engine.disconnect(t)}catch(t){throw this.logger.error(t.message),t}},this.find=t=>{try{return this.engine.find(t)}catch(t){throw this.logger.error(t.message),t}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(t){throw this.logger.error(t.message),t}},this.authenticate=async t=>{try{return await this.engine.authenticate(t)}catch(t){throw this.logger.error(t.message),t}},this.formatAuthMessage=t=>{try{return this.engine.formatAuthMessage(t)}catch(t){throw this.logger.error(t.message),t}},this.approveSessionAuthenticate=async t=>{try{return await this.engine.approveSessionAuthenticate(t)}catch(t){throw this.logger.error(t.message),t}},this.rejectSessionAuthenticate=async t=>{try{return await this.engine.rejectSessionAuthenticate(t)}catch(t){throw this.logger.error(t.message),t}},this.name=t?.name||pv,this.metadata=t?.metadata||(0,A.D)()||{name:"",description:"",url:"",icons:[""]};const e=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:Rs()(Qs({level:t?.logger||"error"}));this.core=t?.core||new Wp(t),this.logger=Ys(e,this.name),this.session=new Lv(this.core,this.logger),this.proposal=new Bv(this.core,this.logger),this.pendingRequest=new Uv(this.core,this.logger),this.engine=new Rv(this),this.auth=new zv(this.core,this.logger)}static async init(t){const e=new Hv(t);return await e.initialize(),e}get context(){return Js(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(t){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(t.message),t}}}var $v=r(4155);r(8764).Buffer;function qv(t=[],e=[]){return[...new Set([...t,...e])]}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Wv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{};!function(t){!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA3_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self;!n.JS_SHA3_NO_NODE_JS&&"object"==typeof $v&&$v.versions&&$v.versions.node?n=Wv:i&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&t.exports,o=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",a="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],u=[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],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),o&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var m=function(t,e,r){return function(n){return new P(t,e,t).update(n)[r]()}},g=function(t,e,r){return function(n,i){return new P(t,e,i).update(n)[r]()}},y=function(t,e,r){return function(e,n,i,s){return E["cshake"+t].update(e,n,i,s)[r]()}},w=function(t,e,r){return function(e,n,i,s){return E["kmac"+t].update(e,n,i,s)[r]()}},b=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function O(t,e,r){P.call(this,t,e,r)}P.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,s,a=this.blocks,c=this.byteCount,u=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(a[i>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=c){for(this.start=i-c,this.block=a[h],i=0;i>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},P.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}var i=0,s=t.length;if(r)i=s;else for(var a=0;a=57344?i+=3:(c=65536+((1023&c)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},P.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];o%e==0&&(N(r),s=0)}return i&&(t=r[s],c+=a[t>>4&15]+a[15&t],i>1&&(c+=a[t>>12&15]+a[t>>8&15]),i>2&&(c+=a[t>>20&15]+a[t>>16&15])),c},P.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&N(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},O.prototype=new P,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var N=function(t){var e,r,n,i,s,o,a,c,l,h,d,f,p,m,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(h<<1|d>>>31),r=a^(d<<1|h>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(f<<1|p>>>31),r=l^(p<<1|f>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=h^(i<<1|s>>>31),r=d^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,m=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=m^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&m,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~m&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=u[n],t[1]^=u[n+1]};if(s)t.exports=E;else for(_=0;_{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch{t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var Yv,Xv;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(Yv||(Yv={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(Xv||(Xv={}));const tA="0123456789abcdef";class eA{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const r=t.toLowerCase();null==Kv[r]&&this.throwArgumentError("invalid log level name","logLevel",t),!(Zv>Kv[r])&&console.log.apply(console,e)}debug(...t){this._log(eA.levels.DEBUG,t)}info(...t){this._log(eA.levels.INFO,t)}warn(...t){this._log(eA.levels.WARNING,t)}makeError(t,e,r){if(Gv)return this.makeError("censored error",e,{});e||(e=eA.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((t=>{const e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t>4],r+=tA[15&e[t]];n.push(t+"=Uint8Array(0x"+r+")")}else n.push(t+"="+JSON.stringify(e))}catch{n.push(t+"="+JSON.stringify(r[t].toString()))}})),n.push(`code=${e}`),n.push(`version=${this.version}`);const i=t;let s="";switch(e){case Xv.NUMERIC_FAULT:{s="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case Xv.CALL_EXCEPTION:case Xv.INSUFFICIENT_FUNDS:case Xv.MISSING_NEW:case Xv.NONCE_EXPIRED:case Xv.REPLACEMENT_UNDERPRICED:case Xv.TRANSACTION_REPLACED:case Xv.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),n.length&&(t+=" ("+n.join(", ")+")");const o=new Error(t);return o.reason=i,o.code=e,Object.keys(r).forEach((function(t){o[t]=r[t]})),o}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,eA.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,n){t||this.throwError(e,r,n)}assertArgument(t,e,r,n){t||this.throwArgumentError(e,r,n)}checkNormalize(t){Jv&&this.throwError("platform missing String.prototype.normalize",eA.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Jv})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,eA.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,eA.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",te&&this.throwError("too many arguments"+r,eA.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",eA.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",eA.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",eA.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return Qv||(Qv=new eA("logger/5.7.0")),Qv}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",eA.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Vv){if(!t)return;this.globalLogger().throwError("error censorship permanent",eA.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Gv=!!t,Vv=!!e}static setLogLevel(t){const e=Kv[t.toLowerCase()];null!=e?Zv=e:eA.globalLogger().warn("invalid log level - "+t)}static from(t){return new eA(t)}}eA.errors=Xv,eA.levels=Yv;const rA=new eA("bytes/5.7.0");function nA(t){return!!t.toHexString}function iA(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return iA(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function sA(t){return"number"==typeof t&&t==t&&t%1==0}function oA(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!sA(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function aA(t,e){if(e||(e={}),"number"==typeof t){rA.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),iA(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),nA(t)&&(t=t.toHexString()),cA(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":rA.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let t=0;t>4]+lA[15&n]}return e}return rA.throwArgumentError("invalid hexlify value","value",t)}function hA(t,e){for("string"!=typeof t?t=uA(t):cA(t)||rA.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&rA.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}var dA={exports:{}},fA=function(t){var e=t.default;if("function"==typeof e){var r=function(){return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}var s;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{s=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:fA.Buffer}catch{}function o(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,r){var n=o(t,r);return r-1>=e&&(n|=o(t,r-1)<<4),n}function c(t,e,n,i){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=a(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],f=[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 p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}i.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),n=0!==s||o!==this.length-1?h[6-c.length]+c+n:c+n}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],u=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(t);n=(p=p.idivn(u)).isZero()?m+n:h[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 8191&e||(r+=13,e>>>=13),127&e||(r+=7,e>>>=7),15&e||(r+=4,e>>>=4),3&e||(r+=2,e>>>=2),1&e||r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function y(t,e,r){return g(t,e,r)}Math.imul||(m=p),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?g(this,t,e):y(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),y(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n=0);var e,n=t%26,i=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=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},i.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),s=t,o=0|s.words[s.length-1];0!=(r=26-this._countBits(o))&&(s=s.ushln(r),n.iushln(r),o=0|s.words[s.length-1]);var a,c=n.length-s.length;if("mod"!==e){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[s.length+h])+(0|n.words[s.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(s,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(s,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(s=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:s,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(s=a.div.neg()),{div:s,mod:a.mod}):this.negative&t.negative?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var s,o,a},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new i(1),o=new i(0),a=new i(0),c=new i(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(s.isOdd()||o.isOdd())&&(s.iadd(u),o.isub(h)),s.iushrn(1),o.iushrn(1);for(var p=0,m=1;!(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a),o.isub(c)):(n.isub(e),a.isub(s),c.isub(o))}return{a,b:c,gcd:n.iushln(l)}},i.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,s=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var o=new i(1),a=new i(0),c=s.clone();n.cmpn(1)>0&&s.cmpn(1)>0;){for(var l=0,u=1;!(n.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;!(s.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(s.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);n.cmp(s)>=0?(n.isub(s),o.isub(a)):(s.isub(n),a.isub(o))}return(e=0===n.cmpn(1)?o:a).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new _(t)},i.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},n(v,b),v.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new A;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return w[t]=e,e},_.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new i(1)).iushrn(2);return this.pow(t,n)}for(var s=this.m.subn(1),o=0;!s.isZero()&&0===s.andln(1);)o++,s.iushrn(1);r(!s.isZero());var a=new i(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,s),d=this.pow(t,s.addn(1).iushrn(1)),f=this.pow(t,s),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;s!==r[0]&&(s=this.sqr(s)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(s=this.mul(s,r[o]),a=0,o=0)):a=0}c=26}return s},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new S(t)},n(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=r.isub(n).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):s.cmpn(0)<0&&(o=s.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Wv)}(dA);var pA=dA.exports;const mA="bignumber/5.7.0";var gA=pA.BN;const yA=new eA(mA),wA={};let bA=!1;class vA{constructor(t,e){t!==wA&&yA.throwError("cannot call constructor directly; use BigNumber.from",eA.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return EA(xA(this).fromTwos(t))}toTwos(t){return EA(xA(this).toTwos(t))}abs(){return"-"===this._hex[0]?vA.from(this._hex.substring(1)):this}add(t){return EA(xA(this).add(xA(t)))}sub(t){return EA(xA(this).sub(xA(t)))}div(t){return vA.from(t).isZero()&&_A("division-by-zero","div"),EA(xA(this).div(xA(t)))}mul(t){return EA(xA(this).mul(xA(t)))}mod(t){const e=xA(t);return e.isNeg()&&_A("division-by-zero","mod"),EA(xA(this).umod(e))}pow(t){const e=xA(t);return e.isNeg()&&_A("negative-power","pow"),EA(xA(this).pow(e))}and(t){const e=xA(t);return(this.isNegative()||e.isNeg())&&_A("unbound-bitwise-result","and"),EA(xA(this).and(e))}or(t){const e=xA(t);return(this.isNegative()||e.isNeg())&&_A("unbound-bitwise-result","or"),EA(xA(this).or(e))}xor(t){const e=xA(t);return(this.isNegative()||e.isNeg())&&_A("unbound-bitwise-result","xor"),EA(xA(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&_A("negative-width","mask"),EA(xA(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&_A("negative-width","shl"),EA(xA(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&_A("negative-width","shr"),EA(xA(this).shrn(t))}eq(t){return xA(this).eq(xA(t))}lt(t){return xA(this).lt(xA(t))}lte(t){return xA(this).lte(xA(t))}gt(t){return xA(this).gt(xA(t))}gte(t){return xA(this).gte(xA(t))}isNegative(){return"-"===this._hex[0]}isZero(){return xA(this).isZero()}toNumber(){try{return xA(this).toNumber()}catch{_A("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return yA.throwError("this platform does not support BigInt",eA.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?bA||(bA=!0,yA.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?yA.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",eA.errors.UNEXPECTED_ARGUMENT,{}):yA.throwError("BigNumber.toString does not accept parameters",eA.errors.UNEXPECTED_ARGUMENT,{})),xA(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof vA)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new vA(wA,AA(t)):t.match(/^-?[0-9]+$/)?new vA(wA,AA(new gA(t))):yA.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&_A("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&_A("overflow","BigNumber.from",t),vA.from(String(t));const e=t;if("bigint"==typeof e)return vA.from(e.toString());if(oA(e))return vA.from(uA(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return vA.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(cA(t)||"-"===t[0]&&cA(t.substring(1))))return vA.from(t)}return yA.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function AA(t){if("string"!=typeof t)return AA(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&yA.throwArgumentError("invalid hex","value",t),"0x00"===(t=AA(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function EA(t){return vA.from(AA(t))}function xA(t){const e=vA.from(t).toHexString();return"-"===e[0]?new gA("-"+e.substring(3),16):new gA(e.substring(2),16)}function _A(t,e,r){const n={fault:t,operation:e};return null!=r&&(n.value=r),yA.throwError(t,eA.errors.NUMERIC_FAULT,n)}const SA=new eA(mA),MA={},CA=vA.from(0),kA=vA.from(-1);function IA(t,e,r,n){const i={fault:e,operation:r};return void 0!==n&&(i.value=n),SA.throwError(t,eA.errors.NUMERIC_FAULT,i)}let PA="0";for(;PA.length<256;)PA+=PA;function OA(t){if("number"!=typeof t)try{t=vA.from(t).toNumber()}catch{}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+PA.substring(0,t):SA.throwArgumentError("invalid decimal size","decimals",t)}function NA(t,e){null==e&&(e=0);const r=OA(e),n=(t=vA.from(t)).lt(CA);n&&(t=t.mul(kA));let i=t.mod(r).toString();for(;i.length2&&SA.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&IA("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.lengthnull==t[e]?n:(typeof t[e]!==r&&SA.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&SA.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&SA.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new RA(MA,e,r,n)}}class BA{constructor(t,e,r,n){t!==MA&&SA.throwError("cannot use FixedNumber constructor; use FixedNumber.from",eA.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&SA.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=TA(this._value,this.format.decimals),r=TA(t._value,t.format.decimals);return BA.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=TA(this._value,this.format.decimals),r=TA(t._value,t.format.decimals);return BA.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=TA(this._value,this.format.decimals),r=TA(t._value,t.format.decimals);return BA.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=TA(this._value,this.format.decimals),r=TA(t._value,t.format.decimals);return BA.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=BA.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(LA.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=BA.from(t[0],this.format);const r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(LA.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&SA.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const r=BA.from("1"+PA.substring(0,t),this.format),n=UA.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){return null==t?this._hex:(t%8&&SA.throwArgumentError("invalid byte width","width",t),hA(vA.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return BA.fromString(this._value,t)}static fromValue(t,e,r){return null==r&&null!=e&&!function(t){return null!=t&&(vA.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||cA(t)||"bigint"==typeof t||oA(t))}(e)&&(r=e,e=null),null==e&&(e=0),null==r&&(r="fixed"),BA.fromString(NA(t,e),RA.from(r))}static fromString(t,e){null==e&&(e="fixed");const r=RA.from(e),n=TA(t,r.decimals);!r.signed&&n.lt(CA)&&IA("unsigned value cannot be negative","overflow","value",t);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=hA(i,r.width/8));const s=NA(n,r.decimals);return new BA(MA,i,s,r)}static fromBytes(t,e){null==e&&(e="fixed");const r=RA.from(e);if(aA(t).length>r.width/8)throw new Error("overflow");let n=vA.from(t);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),s=NA(n,r.decimals);return new BA(MA,i,s,r)}static from(t,e){if("string"==typeof t)return BA.fromString(t,e);if(oA(t))return BA.fromBytes(t,e);try{return BA.fromValue(t,0,e)}catch(t){if(t.code!==eA.errors.INVALID_ARGUMENT)throw t}return SA.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const LA=BA.from(1),UA=BA.from("0.5"),jA=new eA("strings/5.7.0");var DA,FA;function zA(t,e,r,n,i){if(t===FA.BAD_PREFIX||t===FA.UNEXPECTED_CONTINUE){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return t===FA.OVERRUN?r.length-e-1:0}function HA(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach((t=>{let i=t.split(":");r+=parseInt(i[0],16),n[r]=e(i[1])})),n}function $A(t){let e=0;return t.split(",").map((t=>{let r=t.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=e+parseInt(r[0],16);return e=parseInt(r[1],16),{l:n,h:e}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(DA||(DA={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(FA||(FA={})),Object.freeze({error:function(t,e,r,n,i){return jA.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:zA,replace:function(t,e,r,n,i){return t===FA.OVERLONG?(n.push(i),0):(n.push(65533),zA(t,e,r))}}),$A("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((t=>parseInt(t,16))),HA("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),HA("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),HA("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");let e=[];for(let r=0;r0&&Array.isArray(t)?i(t,e-1):r.push(t)}))};return i(t,e),r}function VA(t){return 1&t?~t>>1:t>>1}function GA(t,e){let r=Array(t);for(let n=0,i=-1;ne[t])):r}function QA(t,e,r){let n=Array(t).fill(void 0).map((()=>[]));for(let i=0;in[e].push(t)));return n}function JA(t,e){let r=1+e(),n=e(),i=function(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(r)}return e}(e);return WA(QA(i.length,1+t,e).map(((t,e)=>{const s=t[0],o=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))})))}function YA(t,e){return QA(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const XA=function(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let t=0;t<31;t++)m=m<<1|u();let g=[],y=0,w=h;for(;;){let t=Math.floor(((m-y+1)*i-1)/w),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;y=o,w=1+a-o}let b=n-4;return g.map((e=>{switch(e-b){case 3:return b+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return b+256+(t[a++]<<8|t[a++]);case 1:return b+t[a++];default:return e-1}}))}(t))}(function(t){t=atob(t);const e=[];for(let r=0;rt-e));!function r(){let n=[];for(;;){let i=ZA(t,e);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((t,e)=>e.set.size-t.set.size));let i=t(),s=i%3;i=i/3|0;let o=!!(1&i);return i>>=1,{branches:n,valid:s,fe0f:o,save:1==i,check:2==i}}()}(XA),new eA(qA),new Uint8Array(32).fill(0),new eA("rlp/5.7.0"),new eA("address/5.7.0");const tE={};for(let t=0;t<10;t++)tE[String(t)]=String(t);for(let t=0;t<26;t++)tE[String.fromCharCode(65+t)]=String(10+t);Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991)),new eA("properties/5.7.0"),new eA(qA),new Uint8Array(32).fill(0),vA.from(-1);const eE=vA.from(0),rE=vA.from(1);vA.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),hA(rE.toHexString(),32),hA(eE.toHexString(),32);var nE={},iE={},sE=oE;function oE(t,e){if(!t)throw new Error(e||"Assertion failed")}oE.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)};var aE={exports:{}};"function"==typeof Object.create?aE.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:aE.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};var cE=sE,lE=aE.exports;function uE(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function hE(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function dE(t){return 1===t.length?"0"+t:t}function fE(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}iE.inherits=lE,iE.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&s|128):uE(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i>>0}return s},iE.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=255&s):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=255&s)}return r},iE.rotr32=function(t,e){return t>>>e|t<<32-e},iE.rotl32=function(t,e){return t<>>32-e},iE.sum32=function(t,e){return t+e>>>0},iE.sum32_3=function(t,e,r){return t+e+r>>>0},iE.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},iE.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},iE.sum64=function(t,e,r,n){var i=t[e],s=n+t[e+1]>>>0,o=(s>>0,t[e+1]=s},iE.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},iE.sum64_lo=function(t,e,r,n){return e+n>>>0},iE.sum64_4_hi=function(t,e,r,n,i,s,o,a){var c=0,l=e;return c+=(l=l+n>>>0)>>0)>>0)>>0},iE.sum64_4_lo=function(t,e,r,n,i,s,o,a){return e+n+s+a>>>0},iE.sum64_5_hi=function(t,e,r,n,i,s,o,a,c,l){var u=0,h=e;return u+=(h=h+n>>>0)>>0)>>0)>>0)>>0},iE.sum64_5_lo=function(t,e,r,n,i,s,o,a,c,l){return e+n+s+a+l>>>0},iE.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},iE.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},iE.shr64_hi=function(t,e,r){return t>>>r},iE.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0};var pE={},mE=iE,gE=sE;function yE(){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}pE.BlockHash=yE,yE.prototype.update=function(t,e){if(t=mE.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=mE.join32(t,0,t.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,s=8;s>>3},bE.g1_256=function(t){return vE(t,17)^vE(t,19)^t>>>10};var _E=iE,SE=pE,ME=bE,CE=_E.rotl32,kE=_E.sum32,IE=_E.sum32_5,PE=ME.ft_1,OE=SE.BlockHash,NE=[1518500249,1859775393,2400959708,3395469782];function TE(){if(!(this instanceof TE))return new TE;OE.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}_E.inherits(TE,OE);var RE=TE;TE.blockSize=512,TE.outSize=160,TE.hmacStrength=80,TE.padLength=64,TE.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;nthis.blockSize&&(t=(new this.Hash).update(t).digest()),Xx(t.length<=this.blockSize);for(var e=t.length;e>8,o=255&i;s?r.push(s,o):r.push(o)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}})),o_=r_((function(t,e){var r=e;r.assert=n_,r.toArray=s_.toArray,r.zero2=s_.zero2,r.toHex=s_.toHex,r.encode=s_.encode,r.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,s.isubn(a)):a=0,n[o]=a,s.iushrn(1)}return n},r.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var o,a,c=t.andln(3)+i&3,l=e.andln(3)+s&3;3===c&&(c=-1),3===l&&(l=-1),o=1&c?3!=(n=t.andln(7)+i&7)&&5!==n||2!==l?c:-c:0,r[0].push(o),a=1&l?3!=(n=e.andln(7)+s&7)&&5!==n||2!==c?l:-l:0,r[1].push(a),2*i===o+1&&(i=1-i),2*s===a+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return r},r.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new pA(t,"hex","le")}})),a_=o_.getNAF,c_=o_.getJSF,l_=o_.assert;function u_(t,e){this.type=t,this.p=new pA(e.p,16),this.red=e.prime?pA.red(e.prime):pA.mont(this.p),this.zero=new pA(0).toRed(this.red),this.one=new pA(1).toRed(this.red),this.two=new pA(2).toRed(this.red),this.n=e.n&&new pA(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var h_=u_;function d_(t,e){this.curve=t,this.type=e,this.precomputed=null}u_.prototype.point=function(){throw new Error("Not implemented")},u_.prototype.validate=function(){throw new Error("Not implemented")},u_.prototype._fixedNafMul=function(t,e){l_(t.precomputed);var r=t._getDoubles(),n=a_(e,1,this._bitLength),i=(1<=s;c--)o=(o<<1)+n[c];a.push(o)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=i;h>0;h--){for(s=0;s=0;a--){for(var c=0;a>=0&&0===s[a];a--)c++;if(a>=0&&c++,o=o.dblp(c),a<0)break;var l=s[a];l_(0!==l),o="affine"===t.type?l>0?o.mixedAdd(i[l-1>>1]):o.mixedAdd(i[-l-1>>1].neg()):l>0?o.add(i[l-1>>1]):o.add(i[-l-1>>1].neg())}return"affine"===t.type?o.toP():o},u_.prototype._wnafMulAdd=function(t,e,r,n,i){var s,o,a,c=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(s=0;s=1;s-=2){var f=s-1,p=s;if(1===c[f]&&1===c[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=c_(r[f],r[p]);for(h=Math.max(y[0].length,h),u[f]=new Array(h),u[p]=new Array(h),o=0;o=0;s--){for(var E=0;s>=0;){var x=!0;for(o=0;o=0&&E++,v=v.dblp(E),s<0)break;for(o=0;o0?a=l[o][_-1>>1]:_<0&&(a=l[o][-_-1>>1].neg()),v="affine"===a.type?v.mixedAdd(a):v.add(a))}}for(s=0;s=Math.ceil((t.bitLength()+1)/e.step)},d_.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(s=e,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},m_.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),s=r.b.neg().mul(t).divRound(this.n),o=i.mul(r.a),a=s.mul(n.a),c=i.mul(r.b),l=s.mul(n.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},m_.prototype.pointFromX=function(t,e){(t=new pA(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},m_.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},m_.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""},y_.prototype.isInfinity=function(){return this.inf},y_.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},y_.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},y_.prototype.getX=function(){return this.x.fromRed()},y_.prototype.getY=function(){return this.y.fromRed()},y_.prototype.mul=function(t){return t=new pA(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},y_.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},y_.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},y_.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},y_.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},y_.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f_(w_,h_.BasePoint),m_.prototype.jpoint=function(t,e,r){return new w_(this,t,e,r)},w_.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},w_.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},w_.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),h=n.redMul(l),d=c.redSqr().redIAdd(u).redISub(h).redISub(h),f=c.redMul(h.redISub(d)).redISub(s.redMul(u)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},w_.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,s=t.y.redMul(e).redMul(this.z),o=r.redSub(n),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=r.redMul(c),h=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(h,d,f)},w_.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},w_.prototype.inspect=function(){return this.isInfinity()?"":""},w_.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var b_=r_((function(t,e){var r=e;r.base=h_,r.short=g_,r.mont=null,r.edwards=null})),v_=r_((function(t,e){var r,n=e,i=o_.assert;function s(t){"short"===t.type?this.curve=new b_.short(t):"edwards"===t.type?this.curve=new b_.edwards(t):this.curve=new b_.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(t,e){Object.defineProperty(n,t,{configurable:!0,enumerable:!0,get:function(){var r=new s(e);return Object.defineProperty(n,t,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=s,o("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:nE.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("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:nE.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("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:nE.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("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:nE.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"]}),o("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:nE.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"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:nE.sha256,gRed:!1,g:["9"]}),o("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:nE.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("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:nE.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function A_(t){if(!(this instanceof A_))return new A_(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=s_.toArray(t.entropy,t.entropyEnc||"hex"),r=s_.toArray(t.nonce,t.nonceEnc||"hex"),n=s_.toArray(t.pers,t.persEnc||"hex");n_(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var E_=A_;A_.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);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(t.concat(r||[])),this._reseed=1},A_.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=s_.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var M_=o_.assert;function C_(t,e){if(t instanceof C_)return t;this._importDER(t,e)||(M_(t.r&&t.s,"Signature without r or s"),this.r=new pA(t.r,16),this.s=new pA(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var k_=C_;function I_(){this.place=0}function P_(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return!(i<=127)&&(e.place=o,i)}function O_(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}C_.prototype._importDER=function(t,e){t=o_.toArray(t,e);var r=new I_;if(48!==t[r.place++])return!1;var n=P_(t,r);if(!1===n||n+r.place!==t.length||2!==t[r.place++])return!1;var i=P_(t,r);if(!1===i)return!1;var s=t.slice(r.place,i+r.place);if(r.place+=i,2!==t[r.place++])return!1;var o=P_(t,r);if(!1===o||t.length!==o+r.place)return!1;var a=t.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new pA(s),this.s=new pA(a),this.recoveryParam=null,!0},C_.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=O_(e),r=O_(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];N_(n,e.length),(n=n.concat(e)).push(2),N_(n,r.length);var i=n.concat(r),s=[48];return N_(s,i.length),s=s.concat(i),o_.encode(s,t)};var T_=function(){throw new Error("unsupported")},R_=o_.assert;function B_(t){if(!(this instanceof B_))return new B_(t);"string"==typeof t&&(R_(Object.prototype.hasOwnProperty.call(v_,t),"Unknown curve "+t),t=v_[t]),t instanceof v_.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var L_,U_=B_;function j_(t){return t.includes(":")}function D_(t){return j_(t)?t.split(":")[0]:t}B_.prototype.keyPair=function(t){return new S_(this,t)},B_.prototype.keyFromPrivate=function(t,e){return S_.fromPrivate(this,t,e)},B_.prototype.keyFromPublic=function(t,e){return S_.fromPublic(this,t,e)},B_.prototype.genKeyPair=function(t){t||(t={});for(var e=new E_({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||T_(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new pA(2));;){var i=new pA(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},B_.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},B_.prototype.sign=function(t,e,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new pA(t,16));for(var i=this.n.byteLength(),s=e.getPrivate().toArray("be",i),o=t.toArray("be",i),a=new E_({hash:this.hash,entropy:s,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new pA(1)),l=0;;l++){var u=n.k?n.k(l):new pA(a.generate(this.n.byteLength()));if(!((u=this._truncateToN(u,!0)).cmpn(1)<=0||u.cmp(c)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=u.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new k_({r:f,s:p,recoveryParam:m})}}}}}},B_.prototype.verify=function(t,e,r,n){t=this._truncateToN(new pA(t,16)),r=this.keyFromPublic(r,n);var i=(e=new k_(e,"hex")).r,s=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o,a=s.invm(this.n),c=a.mul(t).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},B_.prototype.recoverPubKey=function(t,e,r,n){R_((3&r)===r,"The recovery param is more than two bits"),e=new k_(e,n);var i=this.n,s=new pA(t),o=e.r,a=e.s,c=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),c):this.curve.pointFromX(o,c);var u=e.r.invm(i),h=i.sub(s).mul(u).umod(i),d=a.mul(u).umod(i);return this.g.mulAdd(h,o,d)},B_.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new k_(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")},r_((function(t,e){var r=e;r.version="6.5.4",r.utils=o_,r.rand=function(){throw new Error("unsupported")},r.curve=b_,r.curves=v_,r.ec=U_,r.eddsa=null})).ec,new eA("signing-key/5.7.0"),new eA("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(L_||(L_={})),Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const F_={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}};function z_(t,e){const{message:r,code:n}=F_[t];return{message:e?`${r} ${e}`:r,code:n}}function H_(t,e){return!!Array.isArray(t)&&(!(typeof e<"u"&&t.length)||t.every(e))}var $_=r(4098),q_=r.n($_);const W_={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class V_{constructor(t,e=!1){if(this.url=t,this.disableProviderPing=e,this.events=new y.EventEmitter,this.isAvailable=!1,this.registering=!1,!zh(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}async open(t=this.url){await this.register(t)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(t,e){this.isAvailable||await this.register();try{const e=_s(t),r=await q_()(this.url,Object.assign(Object.assign({},W_),{body:e})),n=await r.json();this.onPayload({data:n})}catch(e){this.onError(t.id,e)}}async register(t=this.url){if(!zh(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){const t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise(((t,e)=>{this.events.once("register_error",(t=>{this.resetMaxListeners(),e(t)})),this.events.once("open",(()=>{if(this.resetMaxListeners(),void 0===this.isAvailable)return e(new Error("HTTP connection is missing or invalid"));t()}))}))}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){const e=_s({id:1,jsonrpc:"2.0",method:"test",params:[]});await q_()(t,Object.assign(Object.assign({},W_),{body:e}))}this.onOpen()}catch(t){const e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(t){if(void 0===t.data)return;const e="string"==typeof t.data?xs(t.data):t.data;this.events.emit("payload",e)}onError(t,e){const r=this.parseError(e),n=Bh(t,r.message||r.toString());this.events.emit("payload",n)}parseError(t,e=this.url){return Ih(t,e,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}const G_=V_,K_="error",Z_="wc@2:universal_provider:",Q_="default_chain_changed";var J_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof r.g<"u"?r.g:typeof self<"u"?self:{},Y_={exports:{}};!function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",s="__lodash_placeholder__",o=32,a=128,c=1/0,l=9007199254740991,u=NaN,h=4294967295,d=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],f="[object Arguments]",p="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",w="[object Function]",b="[object GeneratorFunction]",v="[object Map]",A="[object Number]",E="[object Object]",x="[object Promise]",_="[object RegExp]",S="[object Set]",M="[object String]",C="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",j="[object Uint16Array]",D="[object Uint32Array]",F=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,W=RegExp($.source),V=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/[\\^$.*+?()[\]{}|]/g,tt=RegExp(X.source),et=/^\s+/,rt=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ot=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ut=/\w*$/,ht=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ft=/^\[object .+?Constructor\]$/,pt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,bt="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",At="\\u2700-\\u27bf",Et="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",_t="\\ufe0e\\ufe0f",St="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mt="["+bt+"]",Ct="["+St+"]",kt="["+vt+"]",It="\\d+",Pt="["+At+"]",Ot="["+Et+"]",Nt="[^"+bt+St+It+At+Et+xt+"]",Tt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+bt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+xt+"]",jt="\\u200d",Dt="(?:"+Ot+"|"+Nt+")",Ft="(?:"+Ut+"|"+Nt+")",zt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",$t="(?:"+kt+"|"+Tt+")?",qt="["+_t+"]?",Wt=qt+$t+"(?:"+jt+"(?:"+[Rt,Bt,Lt].join("|")+")"+qt+$t+")*",Vt="(?:"+[Pt,Bt,Lt].join("|")+")"+Wt,Gt="(?:"+[Rt+kt+"?",kt,Bt,Lt,Mt].join("|")+")",Kt=RegExp("['’]","g"),Zt=RegExp(kt,"g"),Qt=RegExp(Tt+"(?="+Tt+")|"+Gt+Wt,"g"),Jt=RegExp([Ut+"?"+Ot+"+"+zt+"(?="+[Ct,Ut,"$"].join("|")+")",Ft+"+"+Ht+"(?="+[Ct,Ut+Dt,"$"].join("|")+")",Ut+"?"+Dt+"+"+zt,Ut+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Vt].join("|"),"g"),Yt=RegExp("["+jt+bt+vt+_t+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,re={};re[O]=re[N]=re[T]=re[R]=re[B]=re[L]=re[U]=re[j]=re[D]=!0,re[f]=re[p]=re[I]=re[m]=re[P]=re[g]=re[y]=re[w]=re[v]=re[A]=re[E]=re[_]=re[S]=re[M]=re[k]=!1;var ne={};ne[f]=ne[p]=ne[I]=ne[P]=ne[m]=ne[g]=ne[O]=ne[N]=ne[T]=ne[R]=ne[B]=ne[v]=ne[A]=ne[E]=ne[_]=ne[S]=ne[M]=ne[C]=ne[L]=ne[U]=ne[j]=ne[D]=!0,ne[y]=ne[w]=ne[k]=!1;var ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},se=parseFloat,oe=parseInt,ae="object"==typeof J_&&J_&&J_.Object===Object&&J_,ce="object"==typeof self&&self&&self.Object===Object&&self,le=ae||ce||Function("return this")(),ue=e&&!e.nodeType&&e,he=ue&&t&&!t.nodeType&&t,de=he&&he.exports===ue,fe=de&&ae.process,pe=function(){try{return he&&he.require&&he.require("util").types||fe&&fe.binding&&fe.binding("util")}catch{}}(),me=pe&&pe.isArrayBuffer,ge=pe&&pe.isDate,ye=pe&&pe.isMap,we=pe&&pe.isRegExp,be=pe&&pe.isSet,ve=pe&&pe.isTypedArray;function Ae(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ee(t,e,r,n){for(var i=-1,s=null==t?0:t.length;++i-1}function ke(t,e,r){for(var n=-1,i=null==t?0:t.length;++n-1;);return r}function Je(t,e){for(var r=t.length;r--&&Ue(e,t[r],0)>-1;);return r}function Ye(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var Xe=He({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=He({"&":"&","<":"<",">":">",'"':""","'":"'"});function er(t){return"\\"+ie[t]}function rr(t){return Yt.test(t)}function nr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function sr(t,e){for(var r=-1,n=t.length,i=0,o=[];++r",""":'"',"'":"'"}),hr=function t(e){var rt=(e=null==e?le:hr.defaults(le.Object(),e,hr.pick(le,te))).Array,bt=e.Date,vt=e.Error,At=e.Function,Et=e.Math,xt=e.Object,_t=e.RegExp,St=e.String,Mt=e.TypeError,Ct=rt.prototype,kt=At.prototype,It=xt.prototype,Pt=e["__core-js_shared__"],Ot=kt.toString,Nt=It.hasOwnProperty,Tt=0,Rt=function(){var t=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Bt=It.toString,Lt=Ot.call(xt),Ut=le._,jt=_t("^"+Ot.call(Nt).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=de?e.Buffer:r,Ft=e.Symbol,zt=e.Uint8Array,Ht=Dt?Dt.allocUnsafe:r,$t=ir(xt.getPrototypeOf,xt),qt=xt.create,Wt=It.propertyIsEnumerable,Vt=Ct.splice,Gt=Ft?Ft.isConcatSpreadable:r,Qt=Ft?Ft.iterator:r,Yt=Ft?Ft.toStringTag:r,ie=function(){try{var t=as(xt,"defineProperty");return t({},"",{}),t}catch{}}(),ae=e.clearTimeout!==le.clearTimeout&&e.clearTimeout,ce=bt&&bt.now!==le.Date.now&&bt.now,ue=e.setTimeout!==le.setTimeout&&e.setTimeout,he=Et.ceil,fe=Et.floor,pe=xt.getOwnPropertySymbols,Re=Dt?Dt.isBuffer:r,He=e.isFinite,dr=Ct.join,fr=ir(xt.keys,xt),pr=Et.max,mr=Et.min,gr=bt.now,yr=e.parseInt,wr=Et.random,br=Ct.reverse,vr=as(e,"DataView"),Ar=as(e,"Map"),Er=as(e,"Promise"),xr=as(e,"Set"),_r=as(e,"WeakMap"),Sr=as(xt,"create"),Mr=_r&&new _r,Cr={},kr=Rs(vr),Ir=Rs(Ar),Pr=Rs(Er),Or=Rs(xr),Nr=Rs(_r),Tr=Ft?Ft.prototype:r,Rr=Tr?Tr.valueOf:r,Br=Tr?Tr.toString:r;function Lr(t){if(Yo(t)&&!zo(t)&&!(t instanceof Fr)){if(t instanceof Dr)return t;if(Nt.call(t,"__wrapped__"))return Bs(t)}return new Dr(t)}var Ur=function(){function t(){}return function(e){if(!Jo(e))return{};if(qt)return qt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function jr(){}function Dr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function zr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function sn(t,e,n,i,s,o){var a,c=1&e,l=2&e,u=4&e;if(n&&(a=s?n(t,i,s,o):n(t)),a!==r)return a;if(!Jo(t))return t;var h=zo(t);if(h){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Si(t,a)}else{var d=us(t),p=d==w||d==b;if(Wo(t))return bi(t,c);if(d==E||d==f||p&&!s){if(a=l||p?{}:ds(t),!c)return l?function(t,e){return Mi(t,ls(t),e)}(t,function(t,e){return t&&Mi(e,Ia(e),t)}(a,t)):function(t,e){return Mi(t,cs(t),e)}(t,tn(a,t))}else{if(!ne[d])return s?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case I:return vi(t);case m:case g:return new n(+t);case P:return function(t,e){var r=e?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case O:case N:case T:case R:case B:case L:case U:case j:case D:return Ai(t,r);case v:return new n;case A:case M:return new n(t);case _:return function(t){var e=new t.constructor(t.source,ut.exec(t));return e.lastIndex=t.lastIndex,e}(t);case S:return new n;case C:return function(t){return Rr?xt(Rr.call(t)):{}}(t)}}(t,d,c)}}o||(o=new Wr);var y=o.get(t);if(y)return y;o.set(t,a),na(t)?t.forEach((function(r){a.add(sn(r,e,n,r,t,o))})):Xo(t)&&t.forEach((function(r,i){a.set(i,sn(r,e,n,i,t,o))}));var x=h?r:(u?l?ts:Xi:l?Ia:ka)(t);return xe(x||t,(function(r,i){x&&(r=t[i=r]),Jr(a,i,sn(r,e,n,i,t,o))})),a}function on(t,e,n){var i=n.length;if(null==t)return!i;for(t=xt(t);i--;){var s=n[i],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function an(t,e,i){if("function"!=typeof t)throw new Mt(n);return Cs((function(){t.apply(r,i)}),e)}function cn(t,e,r,n){var i=-1,s=Ce,o=!0,a=t.length,c=[],l=e.length;if(!a)return c;r&&(e=Ie(e,Ge(r))),n?(s=ke,o=!1):e.length>=200&&(s=Ze,o=!1,e=new qr(e));t:for(;++i-1},Hr.prototype.set=function(t,e){var r=this.__data__,n=Yr(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},$r.prototype.clear=function(){this.size=0,this.__data__={hash:new zr,map:new(Ar||Hr),string:new zr}},$r.prototype.delete=function(t){var e=ss(this,t).delete(t);return this.size-=e?1:0,e},$r.prototype.get=function(t){return ss(this,t).get(t)},$r.prototype.has=function(t){return ss(this,t).has(t)},$r.prototype.set=function(t,e){var r=ss(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(t){return this.__data__.set(t,i),this},qr.prototype.has=function(t){return this.__data__.has(t)},Wr.prototype.clear=function(){this.__data__=new Hr,this.size=0},Wr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Wr.prototype.get=function(t){return this.__data__.get(t)},Wr.prototype.has=function(t){return this.__data__.has(t)},Wr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Hr){var n=r.__data__;if(!Ar||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(t,e),this.size=r.size,this};var ln=Ii(yn),un=Ii(wn,!0);function hn(t,e){var r=!0;return ln(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function dn(t,e,n){for(var i=-1,s=t.length;++i0&&r(a)?e>1?pn(a,e-1,r,n,i):Pe(i,a):n||(i[i.length]=a)}return i}var mn=Pi(),gn=Pi(!0);function yn(t,e){return t&&mn(t,e,ka)}function wn(t,e){return t&&gn(t,e,ka)}function bn(t,e){return Me(e,(function(e){return Ko(t[e])}))}function vn(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&ne}function _n(t,e){return null!=t&&Nt.call(t,e)}function Sn(t,e){return null!=t&&e in xt(t)}function Mn(t,e,n){for(var i=n?ke:Ce,s=t[0].length,o=t.length,a=o,c=rt(o),l=1/0,u=[];a--;){var h=t[a];a&&e&&(h=Ie(h,Ge(e))),l=mr(h.length,l),c[a]=!n&&(e||s>=120&&h.length>=120)?new qr(a&&h):r}h=t[0];var d=-1,f=c[0];t:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}));n--;)t[n]=t[n].value;return t}(Bn(t,(function(t,r,i){return{criteria:Ie(e,(function(e){return e(t)})),index:++n,value:t}})))}function zn(t,e,r){for(var n=-1,i=e.length,s={};++n-1;)a!==t&&Vt.call(a,c,1),Vt.call(t,c,1);return t}function $n(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==s){var s=i;ps(i)?Vt.call(t,i,1):ai(t,i)}}return t}function qn(t,e){return t+fe(wr()*(e-t+1))}function Wn(t,e){var r="";if(!t||e<1||e>l)return r;do{e%2&&(r+=t),(e=fe(e/2))&&(t+=t)}while(e);return r}function Vn(t,e){return ks(Es(t,e,tc),t+"")}function Gn(t){return Gr(Ua(t))}function Kn(t,e){var r=Ua(t);return Os(r,nn(e,0,r.length))}function Zn(t,e,n,i){if(!Jo(t))return t;for(var s=-1,o=(e=mi(e,t)).length,a=o-1,c=t;null!=c&&++si?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=rt(i);++n>>1,o=t[s];null!==o&&!sa(o)&&(r?o<=e:o=200){var l=e?null:Wi(t);if(l)return or(l);o=!1,i=Ze,c=new qr}else c=e?[]:a;t:for(;++n=i?t:Xn(t,e,n)}var wi=ae||function(t){return le.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var r=t.length,n=Ht?Ht(r):new t.constructor(r);return t.copy(n),n}function vi(t){var e=new t.constructor(t.byteLength);return new zt(e).set(new zt(t)),e}function Ai(t,e){var r=e?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Ei(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,o=sa(t),a=e!==r,c=null===e,l=e==e,u=sa(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!u&&t1?n[s-1]:r,a=s>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(s--,o):r,a&&ms(n[0],n[1],a)&&(o=s<3?r:o,s=1),e=xt(e);++i-1?s[o?e[a]:a]:r}}function Bi(t){return Yi((function(e){var i=e.length,s=i,o=Dr.prototype.thru;for(t&&e.reverse();s--;){var a=e[s];if("function"!=typeof a)throw new Mt(n);if(o&&!c&&"wrapper"==rs(a))var c=new Dr([],!0)}for(s=c?s:i;++s1&&w.reverse(),d&&uc))return!1;var u=o.get(t),h=o.get(e);if(u&&h)return u==e&&h==t;var d=-1,f=!0,p=2&n?new qr:r;for(o.set(t,e),o.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(nt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return xe(d,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(st):[]}(n),r)))}function Ps(t){var e=0,n=0;return function(){var i=gr(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Os(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,eo(t,n)}));function co(t){var e=Lr(t);return e.__chain__=!0,e}function lo(t,e){return e(t)}var uo=Yi((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return rn(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Fr&&ps(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:lo,args:[s],thisArg:r}),new Dr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(s)})),ho=Ci((function(t,e,r){Nt.call(t,r)?++t[r]:en(t,r,1)})),fo=Ri(Ds),po=Ri(Fs);function mo(t,e){return(zo(t)?xe:ln)(t,is(e,3))}function go(t,e){return(zo(t)?_e:un)(t,is(e,3))}var yo=Ci((function(t,e,r){Nt.call(t,r)?t[r].push(e):en(t,r,[e])})),wo=Vn((function(t,e,r){var n=-1,i="function"==typeof e,s=$o(t)?rt(t.length):[];return ln(t,(function(t){s[++n]=i?Ae(e,t,r):Cn(t,e,r)})),s})),bo=Ci((function(t,e,r){en(t,r,e)}));function vo(t,e){return(zo(t)?Ie:Bn)(t,is(e,3))}var Ao=Ci((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Eo=Vn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&ms(t,e[0],e[1])?e=[]:r>2&&ms(e[0],e[1],e[2])&&(e=[e[0]]),Fn(t,pn(e,1),[])})),xo=ce||function(){return le.Date.now()};function _o(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Gi(t,a,r,r,r,r,e)}function So(t,e){var i;if("function"!=typeof e)throw new Mt(n);return t=ha(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Mo=Vn((function(t,e,r){var n=1;if(r.length){var i=sr(r,ns(Mo));n|=o}return Gi(t,n,e,r,i)})),Co=Vn((function(t,e,r){var n=3;if(r.length){var i=sr(r,ns(Co));n|=o}return Gi(e,n,t,r,i)}));function ko(t,e,i){var s,o,a,c,l,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Mt(n);function m(e){var n=s,i=o;return s=o=r,h=e,c=t.apply(i,n)}function g(t){return h=t,l=Cs(w,e),d?m(t):c}function y(t){var n=t-u;return u===r||n>=e||n<0||f&&t-h>=a}function w(){var t=xo();if(y(t))return b(t);l=Cs(w,function(t){var r=e-(t-u);return f?mr(r,a-(t-h)):r}(t))}function b(t){return l=r,p&&s?m(t):(s=o=r,c)}function v(){var t=xo(),n=y(t);if(s=arguments,o=this,u=t,n){if(l===r)return g(u);if(f)return wi(l),l=Cs(w,e),m(u)}return l===r&&(l=Cs(w,e)),c}return e=fa(e)||0,Jo(i)&&(d=!!i.leading,a=(f="maxWait"in i)?pr(fa(i.maxWait)||0,e):a,p="trailing"in i?!!i.trailing:p),v.cancel=function(){l!==r&&wi(l),h=0,s=u=o=l=r},v.flush=function(){return l===r?c:b(xo())},v}var Io=Vn((function(t,e){return an(t,1,e)})),Po=Vn((function(t,e,r){return an(t,fa(e)||0,r)}));function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=t.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Oo.Cache||$r),r}function No(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Oo.Cache=$r;var To=gi((function(t,e){var r=(e=1==e.length&&zo(e[0])?Ie(e[0],Ge(is())):Ie(pn(e,1),Ge(is()))).length;return Vn((function(n){for(var i=-1,s=mr(n.length,r);++i=e})),Fo=kn(function(){return arguments}())?kn:function(t){return Yo(t)&&Nt.call(t,"callee")&&!Wt.call(t,"callee")},zo=rt.isArray,Ho=me?Ge(me):function(t){return Yo(t)&&En(t)==I};function $o(t){return null!=t&&Qo(t.length)&&!Ko(t)}function qo(t){return Yo(t)&&$o(t)}var Wo=Re||fc,Vo=ge?Ge(ge):function(t){return Yo(t)&&En(t)==g};function Go(t){if(!Yo(t))return!1;var e=En(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ea(t)}function Ko(t){if(!Jo(t))return!1;var e=En(t);return e==w||e==b||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==ha(t)}function Qo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function Jo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Yo(t){return null!=t&&"object"==typeof t}var Xo=ye?Ge(ye):function(t){return Yo(t)&&us(t)==v};function ta(t){return"number"==typeof t||Yo(t)&&En(t)==A}function ea(t){if(!Yo(t)||En(t)!=E)return!1;var e=$t(t);if(null===e)return!0;var r=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ot.call(r)==Lt}var ra=we?Ge(we):function(t){return Yo(t)&&En(t)==_},na=be?Ge(be):function(t){return Yo(t)&&us(t)==S};function ia(t){return"string"==typeof t||!zo(t)&&Yo(t)&&En(t)==M}function sa(t){return"symbol"==typeof t||Yo(t)&&En(t)==C}var oa=ve?Ge(ve):function(t){return Yo(t)&&Qo(t.length)&&!!re[En(t)]},aa=Hi(Rn),ca=Hi((function(t,e){return t<=e}));function la(t){if(!t)return[];if($o(t))return ia(t)?cr(t):Si(t);if(Qt&&t[Qt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Qt]());var e=us(t);return(e==v?nr:e==S?or:Ua)(t)}function ua(t){return t?(t=fa(t))===c||t===-c?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var e=ua(t),r=e%1;return e==e?r?e-r:e:0}function da(t){return t?nn(ha(t),0,h):0}function fa(t){if("number"==typeof t)return t;if(sa(t))return u;if(Jo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Jo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ve(t);var r=dt.test(t);return r||pt.test(t)?oe(t.slice(2),r?2:8):ht.test(t)?u:+t}function pa(t){return Mi(t,Ia(t))}function ma(t){return null==t?"":si(t)}var ga=ki((function(t,e){if(bs(e)||$o(e))Mi(e,ka(e),t);else for(var r in e)Nt.call(e,r)&&Jr(t,r,e[r])})),ya=ki((function(t,e){Mi(e,Ia(e),t)})),wa=ki((function(t,e,r,n){Mi(e,Ia(e),t,n)})),ba=ki((function(t,e,r,n){Mi(e,ka(e),t,n)})),va=Yi(rn),Aa=Vn((function(t,e){t=xt(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&ms(e[0],e[1],s)&&(i=1);++n1),e})),Mi(t,ts(t),r),n&&(r=sn(r,7,Qi));for(var i=e.length;i--;)ai(r,e[i]);return r})),Ta=Yi((function(t,e){return null==t?{}:function(t,e){return zn(t,e,(function(e,r){return _a(t,r)}))}(t,e)}));function Ra(t,e){if(null==t)return{};var r=Ie(ts(t),(function(t){return[t]}));return e=is(e),zn(t,r,(function(t,r){return e(t,r[0])}))}var Ba=Vi(ka),La=Vi(Ia);function Ua(t){return null==t?[]:Ke(t,ka(t))}var ja=Ni((function(t,e,r){return e=e.toLowerCase(),t+(r?Da(e):e)}));function Da(t){return Ga(ma(t).toLowerCase())}function Fa(t){return(t=ma(t))&&t.replace(gt,Xe).replace(Zt,"")}var za=Ni((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Ha=Ni((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),$a=Oi("toLowerCase"),qa=Ni((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),Wa=Ni((function(t,e,r){return t+(r?" ":"")+Ga(e)})),Va=Ni((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Ga=Oi("toUpperCase");function Ka(t,e,n){return t=ma(t),(e=n?r:e)===r?function(t){return Xt.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(ot)||[]}(t):t.match(e)||[]}var Za=Vn((function(t,e){try{return Ae(t,r,e)}catch(t){return Go(t)?t:new vt(t)}})),Qa=Yi((function(t,e){return xe(e,(function(e){e=Ts(e),en(t,e,Mo(t[e],t))})),t}));function Ja(t){return function(){return t}}var Ya=Bi(),Xa=Bi(!0);function tc(t){return t}function ec(t){return Nn("function"==typeof t?t:sn(t,1))}var rc=Vn((function(t,e){return function(r){return Cn(r,t,e)}})),nc=Vn((function(t,e){return function(r){return Cn(t,r,e)}}));function ic(t,e,r){var n=ka(e),i=bn(e,n);null==r&&(!Jo(e)||!i.length&&n.length)&&(r=e,e=t,t=this,i=bn(e,ka(e)));var s=!(Jo(r)&&"chain"in r&&!r.chain),o=Ko(t);return xe(i,(function(r){var n=e[r];t[r]=n,o&&(t.prototype[r]=function(){var e=this.__chain__;if(s||e){var r=t(this.__wrapped__),i=r.__actions__=Si(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Pe([this.value()],arguments))})})),t}function sc(){}var oc=Di(Ie),ac=Di(Se),cc=Di(Te);function lc(t){return gs(t)?ze(Ts(t)):function(t){return function(e){return vn(e,t)}}(t)}var uc=zi(),hc=zi(!0);function dc(){return[]}function fc(){return!1}var pc=ji((function(t,e){return t+e}),0),mc=qi("ceil"),gc=ji((function(t,e){return t/e}),1),yc=qi("floor"),wc=ji((function(t,e){return t*e}),1),bc=qi("round"),vc=ji((function(t,e){return t-e}),0);return Lr.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=ha(t),function(){if(--t<1)return e.apply(this,arguments)}},Lr.ary=_o,Lr.assign=ga,Lr.assignIn=ya,Lr.assignInWith=wa,Lr.assignWith=ba,Lr.at=va,Lr.before=So,Lr.bind=Mo,Lr.bindAll=Qa,Lr.bindKey=Co,Lr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return zo(t)?t:[t]},Lr.chain=co,Lr.chunk=function(t,e,n){e=(n?ms(t,e,n):e===r)?1:pr(ha(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var s=0,o=0,a=rt(he(i/e));ss?0:s+n),(i=i===r||i>s?s:ha(i))<0&&(i+=s),i=n>i?0:da(i);n>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ra(e))&&!(e=si(e))&&rr(t)?yi(cr(t),0,n):t.split(e,n):[]},Lr.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:pr(ha(e),0),Vn((function(r){var n=r[e],i=yi(r,0,e);return n&&Pe(i,n),Ae(t,this,i)}))},Lr.tail=function(t){var e=null==t?0:t.length;return e?Xn(t,1,e):[]},Lr.take=function(t,e,n){return t&&t.length?Xn(t,0,(e=n||e===r?1:ha(e))<0?0:e):[]},Lr.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?Xn(t,(e=i-(e=n||e===r?1:ha(e)))<0?0:e,i):[]},Lr.takeRightWhile=function(t,e){return t&&t.length?li(t,is(e,3),!1,!0):[]},Lr.takeWhile=function(t,e){return t&&t.length?li(t,is(e,3)):[]},Lr.tap=function(t,e){return e(t),t},Lr.throttle=function(t,e,r){var i=!0,s=!0;if("function"!=typeof t)throw new Mt(n);return Jo(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),ko(t,e,{leading:i,maxWait:e,trailing:s})},Lr.thru=lo,Lr.toArray=la,Lr.toPairs=Ba,Lr.toPairsIn=La,Lr.toPath=function(t){return zo(t)?Ie(t,Ts):sa(t)?[t]:Si(Ns(ma(t)))},Lr.toPlainObject=pa,Lr.transform=function(t,e,r){var n=zo(t),i=n||Wo(t)||oa(t);if(e=is(e,4),null==r){var s=t&&t.constructor;r=i?n?new s:[]:Jo(t)&&Ko(s)?Ur($t(t)):{}}return(i?xe:yn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Lr.unary=function(t){return _o(t,1)},Lr.union=Js,Lr.unionBy=Ys,Lr.unionWith=Xs,Lr.uniq=function(t){return t&&t.length?oi(t):[]},Lr.uniqBy=function(t,e){return t&&t.length?oi(t,is(e,2)):[]},Lr.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?oi(t,r,e):[]},Lr.unset=function(t,e){return null==t||ai(t,e)},Lr.unzip=to,Lr.unzipWith=eo,Lr.update=function(t,e,r){return null==t?t:ci(t,e,pi(r))},Lr.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:ci(t,e,pi(n),i)},Lr.values=Ua,Lr.valuesIn=function(t){return null==t?[]:Ke(t,Ia(t))},Lr.without=ro,Lr.words=Ka,Lr.wrap=function(t,e){return Ro(pi(e),t)},Lr.xor=no,Lr.xorBy=io,Lr.xorWith=so,Lr.zip=oo,Lr.zipObject=function(t,e){return di(t||[],e||[],Jr)},Lr.zipObjectDeep=function(t,e){return di(t||[],e||[],Zn)},Lr.zipWith=ao,Lr.entries=Ba,Lr.entriesIn=La,Lr.extend=ya,Lr.extendWith=wa,ic(Lr,Lr),Lr.add=pc,Lr.attempt=Za,Lr.camelCase=ja,Lr.capitalize=Da,Lr.ceil=mc,Lr.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=fa(n))==n?n:0),e!==r&&(e=(e=fa(e))==e?e:0),nn(fa(t),e,n)},Lr.clone=function(t){return sn(t,4)},Lr.cloneDeep=function(t){return sn(t,5)},Lr.cloneDeepWith=function(t,e){return sn(t,5,e="function"==typeof e?e:r)},Lr.cloneWith=function(t,e){return sn(t,4,e="function"==typeof e?e:r)},Lr.conformsTo=function(t,e){return null==e||on(t,e,ka(e))},Lr.deburr=Fa,Lr.defaultTo=function(t,e){return null==t||t!=t?e:t},Lr.divide=gc,Lr.endsWith=function(t,e,n){t=ma(t),e=si(e);var i=t.length,s=n=n===r?i:nn(ha(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},Lr.eq=Uo,Lr.escape=function(t){return(t=ma(t))&&V.test(t)?t.replace(q,tr):t},Lr.escapeRegExp=function(t){return(t=ma(t))&&tt.test(t)?t.replace(X,"\\$&"):t},Lr.every=function(t,e,n){var i=zo(t)?Se:hn;return n&&ms(t,e,n)&&(e=r),i(t,is(e,3))},Lr.find=fo,Lr.findIndex=Ds,Lr.findKey=function(t,e){return Be(t,is(e,3),yn)},Lr.findLast=po,Lr.findLastIndex=Fs,Lr.findLastKey=function(t,e){return Be(t,is(e,3),wn)},Lr.floor=yc,Lr.forEach=mo,Lr.forEachRight=go,Lr.forIn=function(t,e){return null==t?t:mn(t,is(e,3),Ia)},Lr.forInRight=function(t,e){return null==t?t:gn(t,is(e,3),Ia)},Lr.forOwn=function(t,e){return t&&yn(t,is(e,3))},Lr.forOwnRight=function(t,e){return t&&wn(t,is(e,3))},Lr.get=xa,Lr.gt=jo,Lr.gte=Do,Lr.has=function(t,e){return null!=t&&hs(t,e,_n)},Lr.hasIn=_a,Lr.head=Hs,Lr.identity=tc,Lr.includes=function(t,e,r,n){t=$o(t)?t:Ua(t),r=r&&!n?ha(r):0;var i=t.length;return r<0&&(r=pr(i+r,0)),ia(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&Ue(t,e,r)>-1},Lr.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:ha(r);return i<0&&(i=pr(n+i,0)),Ue(t,e,i)},Lr.inRange=function(t,e,n){return e=ua(e),n===r?(n=e,e=0):n=ua(n),function(t,e,r){return t>=mr(e,r)&&t=-l&&t<=l},Lr.isSet=na,Lr.isString=ia,Lr.isSymbol=sa,Lr.isTypedArray=oa,Lr.isUndefined=function(t){return t===r},Lr.isWeakMap=function(t){return Yo(t)&&us(t)==k},Lr.isWeakSet=function(t){return Yo(t)&&"[object WeakSet]"==En(t)},Lr.join=function(t,e){return null==t?"":dr.call(t,e)},Lr.kebabCase=za,Lr.last=Vs,Lr.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=ha(n))<0?pr(i+s,0):mr(s,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,s):Le(t,De,s,!0)},Lr.lowerCase=Ha,Lr.lowerFirst=$a,Lr.lt=aa,Lr.lte=ca,Lr.max=function(t){return t&&t.length?dn(t,tc,xn):r},Lr.maxBy=function(t,e){return t&&t.length?dn(t,is(e,2),xn):r},Lr.mean=function(t){return Fe(t,tc)},Lr.meanBy=function(t,e){return Fe(t,is(e,2))},Lr.min=function(t){return t&&t.length?dn(t,tc,Rn):r},Lr.minBy=function(t,e){return t&&t.length?dn(t,is(e,2),Rn):r},Lr.stubArray=dc,Lr.stubFalse=fc,Lr.stubObject=function(){return{}},Lr.stubString=function(){return""},Lr.stubTrue=function(){return!0},Lr.multiply=wc,Lr.nth=function(t,e){return t&&t.length?Dn(t,ha(e)):r},Lr.noConflict=function(){return le._===this&&(le._=Ut),this},Lr.noop=sc,Lr.now=xo,Lr.pad=function(t,e,r){t=ma(t);var n=(e=ha(e))?ar(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Fi(fe(i),r)+t+Fi(he(i),r)},Lr.padEnd=function(t,e,r){t=ma(t);var n=(e=ha(e))?ar(t):0;return e&&ne){var i=t;t=e,e=i}if(n||t%1||e%1){var s=wr();return mr(t+s*(e-t+se("1e-"+((s+"").length-1))),e)}return qn(t,e)},Lr.reduce=function(t,e,r){var n=zo(t)?Oe:$e,i=arguments.length<3;return n(t,is(e,4),r,i,ln)},Lr.reduceRight=function(t,e,r){var n=zo(t)?Ne:$e,i=arguments.length<3;return n(t,is(e,4),r,i,un)},Lr.repeat=function(t,e,n){return e=(n?ms(t,e,n):e===r)?1:ha(e),Wn(ma(t),e)},Lr.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Lr.result=function(t,e,n){var i=-1,s=(e=mi(e,t)).length;for(s||(s=1,t=r);++il)return[];var r=h,n=mr(t,h);e=is(e),t-=h;for(var i=We(n,e);++r=o)return t;var c=n-ar(i);if(c<1)return i;var l=a?yi(a,0,c).join(""):t.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(t.slice(c).search(s)){var u,h=l;for(s.global||(s=_t(s.source,ma(ut.exec(s))+"g")),s.lastIndex=0;u=s.exec(h);)var d=u.index;l=l.slice(0,d===r?c:d)}}else if(t.indexOf(si(s),c)!=c){var f=l.lastIndexOf(s);f>-1&&(l=l.slice(0,f))}return l+i},Lr.unescape=function(t){return(t=ma(t))&&W.test(t)?t.replace($,ur):t},Lr.uniqueId=function(t){var e=++Tt;return ma(t)+e},Lr.upperCase=Va,Lr.upperFirst=Ga,Lr.each=mo,Lr.eachRight=go,Lr.first=Hs,ic(Lr,function(){var t={};return yn(Lr,(function(e,r){Nt.call(Lr.prototype,r)||(t[r]=e)})),t}(),{chain:!1}),Lr.VERSION="4.17.21",xe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Lr[t].placeholder=Lr})),xe(["drop","take"],(function(t,e){Fr.prototype[t]=function(n){n=n===r?1:pr(ha(n),0);var i=this.__filtered__&&!e?new Fr(this):this.clone();return i.__filtered__?i.__takeCount__=mr(n,i.__takeCount__):i.__views__.push({size:mr(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),xe(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:is(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),xe(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),xe(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(tc)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=Vn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return Cn(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(No(is(t)))},Fr.prototype.slice=function(t,e){t=ha(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=ha(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(h)},yn(Fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=Lr[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(Lr.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof Fr,l=a[0],u=c||zo(e),h=function(t){var e=s.apply(Lr,Pe([t],a));return i&&d?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,m=c&&!f;if(!o&&u){e=m?e:new Fr(this);var g=t.apply(e,a);return g.__actions__.push({func:lo,args:[h],thisArg:r}),new Dr(g,d)}return p&&m?t.apply(this,a):(g=this.thru(h),p?i?g.value()[0]:g.value():g)})})),xe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ct[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Lr.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(zo(i)?i:[],t)}return this[r]((function(r){return e.apply(zo(r)?r:[],t)}))}})),yn(Fr.prototype,(function(t,e){var r=Lr[e];if(r){var n=r.name+"";Nt.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:e,func:r})}})),Cr[Li(r,2).name]=[{name:"wrapper",func:r}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=zo(t),n=e<0,i=r?t.length:0,s=function(t,e,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Lr.prototype.plant=function(t){for(var e,n=this;n instanceof jr;){var i=Bs(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},Lr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:lo,args:[Qs],thisArg:r}),new Dr(e,this.__chain__)}return this.thru(Qs)},Lr.prototype.toJSON=Lr.prototype.valueOf=Lr.prototype.value=function(){return ui(this.__wrapped__,this.__actions__)},Lr.prototype.first=Lr.prototype.head,Qt&&(Lr.prototype[Qt]=function(){return this}),Lr}();he?((he.exports=hr)._=hr,ue._=hr):le._=hr}).call(J_)}(Y_,Y_.exports);var X_=Object.defineProperty,tS=Object.defineProperties,eS=Object.getOwnPropertyDescriptors,rS=Object.getOwnPropertySymbols,nS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,sS=(t,e,r)=>e in t?X_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,oS=(t,e)=>{for(var r in e||(e={}))nS.call(e,r)&&sS(t,r,e[r]);if(rS)for(var r of rS(e))iS.call(e,r)&&sS(t,r,e[r]);return t},aS=(t,e)=>tS(t,eS(e));function cS(t,e,r){var n;const i=function(t){const[e,r]=t.split(":");return{namespace:e,reference:r}}(t);return(null==(n=e.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function lS(t){return t.includes(":")?t.split(":")[1]:t}function uS(t){return t.map((t=>`${t.split(":")[0]}:${t.split(":")[1]}`))}function hS(t={},e={}){const r=dS(t),n=dS(e);return Y_.exports.merge(r,n)}function dS(t){var e,r,n,i;const s={};if(!function(t){return Object.getPrototypeOf(t)===Object.prototype&&Object.keys(t).length}(t))return s;for(const[o,a]of Object.entries(t)){const t=j_(o)?[o]:a.chains,c=a.methods||[],l=a.events||[],u=a.rpcMap||{},h=D_(o);s[h]=aS(oS(oS({},s[h]),a),{chains:qv(t,null==(e=s[h])?void 0:e.chains),methods:qv(c,null==(r=s[h])?void 0:r.methods),events:qv(l,null==(n=s[h])?void 0:n.events),rpcMap:oS(oS({},u),null==(i=s[h])?void 0:i.rpcMap)})}return s}function fS(t){return t.includes(":")?t.split(":")[2]:t}function pS(t){const e={};for(const[r,n]of Object.entries(t)){const t=n.methods||[],i=n.events||[],s=n.accounts||[],o=j_(r)?[r]:n.chains?n.chains:uS(n.accounts);e[r]={chains:o,methods:t,events:i,accounts:s}}return e}function mS(t){return"number"==typeof t?t:t.includes("0x")?parseInt(t,16):(t=t.includes(":")?t.split(":")[1]:t,isNaN(Number(t))?t:Number(t))}const gS={},yS=t=>gS[t],wS=(t,e)=>{gS[t]=e};class bS{constructor(t){this.name="polkadot",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${t}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lS(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class vS{constructor(t){this.name="eip155",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(t){switch(t.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(t);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(t.request.method)?await this.client.request(t):this.getHttpProvider().request(t.request)}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(parseInt(t),e),this.chainId=parseInt(t),this.events.emit(Q_,`${this.name}:${t}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}createHttpProvider(t,e){const r=e||cS(`${this.name}:${t}`,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new V_(r,yS("disableProviderPing")))}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=parseInt(lS(e));t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}getHttpProvider(){const t=this.chainId,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}async handleSwitchChain(t){var e,r;let n=t.request.params?null==(e=t.request.params[0])?void 0:e.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;const i=parseInt(n,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);await this.client.request({topic:t.topic,request:{method:t.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`)}return null}isChainApproved(t){return this.namespace.chains.includes(`${this.name}:${t}`)}}class AS{constructor(t){this.name="solana",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lS(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class ES{constructor(t){this.name="cosmos",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lS(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class xS{constructor(t){this.name="cip34",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{const r=this.getCardanoRPCUrl(e),n=lS(e);t[n]=this.createHttpProvider(n,r)})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}getCardanoRPCUrl(t){const e=this.namespace.rpcMap;if(e)return e[t]}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||this.getCardanoRPCUrl(t);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class _S{constructor(t){this.name="elrond",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lS(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class SS{constructor(t){this.name="multiversx",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){this.httpProviders[t]||this.setHttpProvider(t,e),this.chainId=t,this.events.emit(Q_,`${this.name}:${t}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}getAccounts(){const t=this.namespace.accounts;return t?[...new Set(t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2])))]:[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;const n=lS(e);t[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace,this.client.core.projectId);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);return new Kh(new G_(r,yS("disableProviderPing")))}}class MS{constructor(t){this.name="near",this.namespace=t.namespace,this.events=yS("events"),this.client=yS("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(t){this.namespace=Object.assign(this.namespace,t)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;const t=this.namespace.chains[0];if(!t)throw new Error("ChainId not found");return t.split(":")[1]}request(t){return this.namespace.methods.includes(t.request.method)?this.client.request(t):this.getHttpProvider().request(t.request)}setDefaultChain(t,e){if(this.chainId=t,!this.httpProviders[t]){const r=e||cS(`${this.name}:${t}`,this.namespace);if(!r)throw new Error(`No RPC url provided for chainId: ${t}`);this.setHttpProvider(t,r)}this.events.emit(Q_,`${this.name}:${this.chainId}`)}getAccounts(){const t=this.namespace.accounts;return t&&t.filter((t=>t.split(":")[1]===this.chainId.toString())).map((t=>t.split(":")[2]))||[]}createHttpProviders(){const t={};return this.namespace.chains.forEach((e=>{var r;t[e]=this.createHttpProvider(e,null==(r=this.namespace.rpcMap)?void 0:r[e])})),t}getHttpProvider(){const t=`${this.name}:${this.chainId}`,e=this.httpProviders[t];if(typeof e>"u")throw new Error(`JSON-RPC provider for ${t} not found`);return e}setHttpProvider(t,e){const r=this.createHttpProvider(t,e);r&&(this.httpProviders[t]=r)}createHttpProvider(t,e){const r=e||cS(t,this.namespace);return typeof r>"u"?void 0:new Kh(new G_(r,yS("disableProviderPing")))}}var CS=Object.defineProperty,kS=Object.defineProperties,IS=Object.getOwnPropertyDescriptors,PS=Object.getOwnPropertySymbols,OS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,TS=(t,e,r)=>e in t?CS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,RS=(t,e)=>{for(var r in e||(e={}))OS.call(e,r)&&TS(t,r,e[r]);if(PS)for(var r of PS(e))NS.call(e,r)&&TS(t,r,e[r]);return t},BS=(t,e)=>kS(t,IS(e));class LS{constructor(t){this.events=new(w()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=t,this.logger=typeof t?.logger<"u"&&"string"!=typeof t?.logger?t.logger:Rs()(Qs({level:t?.logger||K_})),this.disableProviderPing=t?.disableProviderPing||!1}static async init(t){const e=new LS(t);return await e.initialize(),e}async request(t,e,r){const[n,i]=this.validateChain(e);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:RS({},t),chainId:`${n}:${i}`,topic:this.session.topic,expiry:r})}sendAsync(t,e,r,n){const i=(new Date).getTime();this.request(t,r,n).then((t=>e(null,Rh(i,t)))).catch((t=>e(t,void 0)))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var t;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(t=this.session)?void 0:t.topic,reason:z_("USER_DISCONNECTED")}),await this.cleanup()}async connect(t){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(t),await this.cleanupPendingPairings(),!t.skipPairing)return await this.pair(t.pairingTopic)}async authenticate(t){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(t),await this.cleanupPendingPairings();const{uri:e,response:r}=await this.client.authenticate(t);e&&(this.uri=e,this.events.emit("display_uri",e));const n=await r();if(this.session=n.session,this.session){const t=pS(this.session.namespaces);this.namespaces=hS(this.namespaces,t),this.persist("namespaces",this.namespaces),this.onConnect()}return n}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}removeListener(t,e){this.events.removeListener(t,e)}off(t,e){this.events.off(t,e)}get isWalletConnect(){return!0}async pair(t){this.shouldAbortPairingAttempt=!1;let e=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(e>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");const{uri:r,approval:n}=await this.client.connect({pairingTopic:t,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await n().then((t=>{this.session=t;const e=pS(t.namespaces);this.namespaces=hS(this.namespaces,e),this.persist("namespaces",this.namespaces)})).catch((t=>{if(t.message!==gv)throw t;e++}))}while(!this.session);return this.onConnect(),this.session}setDefaultChain(t,e){try{if(!this.session)return;const[r,n]=this.validateChain(t);this.getProvider(r).setDefaultChain(n,e)}catch(t){if(!/Please call connect/.test(t.message))throw t}}async cleanupPendingPairings(t={}){this.logger.info("Cleaning up inactive pairings...");const e=this.client.pairing.getAll();if(H_(e)){for(const r of e)t.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${e.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){const t=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[t]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await Hv.init({logger:this.providerOpts.logger||K_,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");const t=[...new Set(Object.keys(this.session.namespaces).map((t=>D_(t))))];wS("client",this.client),wS("events",this.events),wS("disableProviderPing",this.disableProviderPing),t.forEach((t=>{if(!this.session)return;const e=function(t,e){const r=Object.keys(e.namespaces).filter((e=>e.includes(t)));if(!r.length)return[];const n=[];return r.forEach((t=>{const r=e.namespaces[t].accounts;n.push(...r)})),n}(t,this.session),r=uS(e),n=hS(this.namespaces,this.optionalNamespaces),i=BS(RS({},n[t]),{accounts:e,chains:r});switch(t){case"eip155":this.rpcProviders[t]=new vS({namespace:i});break;case"solana":this.rpcProviders[t]=new AS({namespace:i});break;case"cosmos":this.rpcProviders[t]=new ES({namespace:i});break;case"polkadot":this.rpcProviders[t]=new bS({namespace:i});break;case"cip34":this.rpcProviders[t]=new xS({namespace:i});break;case"elrond":this.rpcProviders[t]=new _S({namespace:i});break;case"multiversx":this.rpcProviders[t]=new SS({namespace:i});break;case"near":this.rpcProviders[t]=new MS({namespace:i})}}))}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",(t=>{this.events.emit("session_ping",t)})),this.client.on("session_event",(t=>{const{params:e}=t,{event:r}=e;if("accountsChanged"===r.name){const t=r.data;t&&H_(t)&&this.events.emit("accountsChanged",t.map(fS))}else if("chainChanged"===r.name){const t=e.chainId,r=e.event.data,n=D_(t),i=mS(t)!==mS(r)?`${n}:${mS(r)}`:t;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit("session_event",t)})),this.client.on("session_update",(({topic:t,params:e})=>{var r;const{namespaces:n}=e,i=null==(r=this.client)?void 0:r.session.get(t);this.session=BS(RS({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit("session_update",{topic:t,params:e})})),this.client.on("session_delete",(async t=>{await this.cleanup(),this.events.emit("session_delete",t),this.events.emit("disconnect",BS(RS({},z_("USER_DISCONNECTED")),{data:t.topic}))})),this.on(Q_,(t=>{this.onChainChanged(t,!0)}))}getProvider(t){if(!this.rpcProviders[t])throw new Error(`Provider not found: ${t}`);return this.rpcProviders[t]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach((t=>{var e;this.getProvider(t).updateNamespace(null==(e=this.session)?void 0:e.namespaces[t])}))}setNamespaces(t){const{namespaces:e,optionalNamespaces:r,sessionProperties:n}=t;e&&Object.keys(e).length&&(this.namespaces=e),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist("namespaces",e),this.persist("optionalNamespaces",r)}validateChain(t){const[e,r]=t?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[e,r];if(e&&!Object.keys(this.namespaces||{}).map((t=>D_(t))).includes(e))throw new Error(`Namespace '${e}' is not configured. Please call connect() first with namespace config.`);if(e&&r)return[e,r];const n=D_(Object.keys(this.namespaces)[0]);return[n,this.rpcProviders[n].getDefaultChain()]}async requestAccounts(){const[t]=this.validateChain();return await this.getProvider(t).requestAccounts()}onChainChanged(t,e=!1){if(!this.namespaces)return;const[r,n]=this.validateChain(t);n&&(e||this.getProvider(r).setDefaultChain(n),this.namespaces[r]?this.namespaces[r].defaultChain=n:this.namespaces[`${r}:${n}`]?this.namespaces[`${r}:${n}`].defaultChain=n:this.namespaces[`${r}:${n}`]={defaultChain:n},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",n))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(t,e){this.client.core.storage.setItem(`${Z_}/${t}`,e)}async getFromStore(t){return await this.client.core.storage.getItem(`${Z_}/${t}`)}}const US=LS,jS=["eth_sendTransaction","personal_sign"],DS=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],FS=["chainChanged","accountsChanged"],zS=["chainChanged","accountsChanged","message","disconnect","connect"];var HS=Object.defineProperty,$S=Object.defineProperties,qS=Object.getOwnPropertyDescriptors,WS=Object.getOwnPropertySymbols,VS=Object.prototype.hasOwnProperty,GS=Object.prototype.propertyIsEnumerable,KS=(t,e,r)=>e in t?HS(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ZS=(t,e)=>{for(var r in e||(e={}))VS.call(e,r)&&KS(t,r,e[r]);if(WS)for(var r of WS(e))GS.call(e,r)&&KS(t,r,e[r]);return t},QS=(t,e)=>$S(t,qS(e));function JS(t){return Number(t[0].split(":")[1])}function YS(t){return`0x${t.toString(16)}`}class XS{constructor(){this.events=new y.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(t,e)=>(this.events.on(t,e),this),this.once=(t,e)=>(this.events.once(t,e),this),this.removeListener=(t,e)=>(this.events.removeListener(t,e),this),this.off=(t,e)=>(this.events.off(t,e),this),this.parseAccount=t=>this.isCompatibleChainId(t)?this.parseAccountId(t).address:t,this.signer={},this.rpc={}}static async init(t){const e=new XS;return await e.initialize(t),e}async request(t,e){return await this.signer.request(t,this.formatChainId(this.chainId),e)}sendAsync(t,e,r){this.signer.sendAsync(t,e,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(t);const{required:e,optional:r}=function(t){const{chains:e,optionalChains:r,methods:n,optionalMethods:i,events:s,optionalEvents:o,rpcMap:a}=t;if(!es(e))throw new Error("Invalid chains");const c={chains:e,methods:n||jS,events:s||FS,rpcMap:ZS({},e.length?{[JS(e)]:a[JS(e)]}:{})},l=s?.filter((t=>!FS.includes(t))),u=n?.filter((t=>!jS.includes(t)));if(!(r||o||i||null!=l&&l.length||null!=u&&u.length))return{required:e.length?c:void 0};const h={chains:[...new Set(l?.length&&u?.length||!r?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(null!=i&&i.length?i:DS))],events:[...new Set(c.events.concat(null!=o&&o.length?o:zS))],rpcMap:a};return{required:e.length?c:void 0,optional:r.length?h:void 0}}(this.rpc);try{const n=await new Promise((async(n,i)=>{var s;this.rpc.showQrModal&&(null==(s=this.modal)||s.subscribeModal((t=>{!t.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),i(new Error("Connection request reset. Please try again.")))}))),await this.signer.connect(QS(ZS({namespaces:ZS({},e&&{[this.namespace]:e})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:t?.pairingTopic})).then((t=>{n(t)})).catch((t=>{i(new Error(t.message))}))}));if(!n)return;const i=ne(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit("connect",{chainId:YS(this.chainId)})}catch(t){throw this.signer.logger.error(t),t}finally{this.modal&&this.modal.closeModal()}}async authenticate(t){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:t?.chains});try{const e=await new Promise((async(e,r)=>{var n;this.rpc.showQrModal&&(null==(n=this.modal)||n.subscribeModal((t=>{!t.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),r(new Error("Connection request reset. Please try again.")))}))),await this.signer.authenticate(QS(ZS({},t),{chains:this.rpc.chains})).then((t=>{e(t)})).catch((t=>{r(new Error(t.message))}))})),r=e.session;if(r){const t=ne(r.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:t),this.setAccounts(t),this.events.emit("connect",{chainId:YS(this.chainId)})}return e}catch(t){throw this.signer.logger.error(t),t}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",(t=>{const{params:e}=t,{event:r}=e;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",t)})),this.signer.on("chainChanged",(t=>{const e=parseInt(t);this.chainId=e,this.events.emit("chainChanged",YS(this.chainId)),this.persist()})),this.signer.on("session_update",(t=>{this.events.emit("session_update",t)})),this.signer.on("session_delete",(t=>{this.reset(),this.events.emit("session_delete",t),this.events.emit("disconnect",QS(ZS({},function(t,e){const{message:r,code:n}=ts[t];return{message:e?`${r} ${e}`:r,code:n}}("USER_DISCONNECTED")),{data:t.topic,name:"USER_DISCONNECTED"}))})),this.signer.on("display_uri",(t=>{var e,r;this.rpc.showQrModal&&(null==(e=this.modal)||e.closeModal(),null==(r=this.modal)||r.openModal({uri:t})),this.events.emit("display_uri",t)}))}switchEthereumChain(t){this.request({method:"wallet_switchEthereumChain",params:[{chainId:t.toString(16)}]})}isCompatibleChainId(t){return"string"==typeof t&&t.startsWith(`${this.namespace}:`)}formatChainId(t){return`${this.namespace}:${t}`}parseChainId(t){return Number(t.split(":")[1])}setChainIds(t){const e=t.filter((t=>this.isCompatibleChainId(t))).map((t=>this.parseChainId(t)));e.length&&(this.chainId=e[0],this.events.emit("chainChanged",YS(this.chainId)),this.persist())}setChainId(t){if(this.isCompatibleChainId(t)){const e=this.parseChainId(t);this.chainId=e,this.switchEthereumChain(e)}}parseAccountId(t){const[e,r,n]=t.split(":");return{chainId:`${e}:${r}`,address:n}}setAccounts(t){this.accounts=t.filter((t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId)).map((t=>this.parseAccountId(t).address)),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(t){var e,r;const n=null!=(e=t?.chains)?e:[],i=null!=(r=t?.optionalChains)?r:[],s=n.concat(i);if(!s.length)throw new Error("No chains specified in either `chains` or `optionalChains`");const o=n.length?t?.methods||jS:[],a=n.length?t?.events||FS:[],c=t?.optionalMethods||[],l=t?.optionalEvents||[],u=t?.rpcMap||this.buildRpcMap(s,t.projectId),h=t?.qrModalOptions||void 0;return{chains:n?.map((t=>this.formatChainId(t))),optionalChains:i.map((t=>this.formatChainId(t))),methods:o,events:a,optionalMethods:c,optionalEvents:l,rpcMap:u,showQrModal:!(null==t||!t.showQrModal),qrModalOptions:h,projectId:t.projectId,metadata:t.metadata}}buildRpcMap(t,e){const r={};return t.forEach((t=>{r[t]=this.getRpcUrl(t,e)})),r}async initialize(t){if(this.rpc=this.getRpcConfig(t),this.chainId=this.rpc.chains.length?JS(this.rpc.chains):JS(this.rpc.optionalChains),this.signer=await US.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:t.disableProviderPing,relayUrl:t.relayUrl,storageOptions:t.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let t;try{const{WalletConnectModal:e}=await Promise.resolve().then(r.bind(r,9343));t=e}catch{throw new Error("To use QR modal, please install @walletconnect/modal package")}if(t)try{this.modal=new t(ZS({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(t){throw this.signer.logger.error(t),new Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(t){if(!t)return;const{chains:e,optionalChains:r,rpcMap:n}=t;e&&es(e)&&(this.rpc.chains=e.map((t=>this.formatChainId(t))),e.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)}))),r&&es(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map((t=>this.formatChainId(t))),r.forEach((t=>{this.rpc.rpcMap[t]=n?.[t]||this.getRpcUrl(t)})))}getRpcUrl(t,e){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[t])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${t}&projectId=${e||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{const t=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),e=this.session.namespaces[`${this.namespace}:${t}`]?this.session.namespaces[`${this.namespace}:${t}`]:this.session.namespaces[this.namespace];this.setChainIds(t?[this.formatChainId(t)]:e?.accounts),this.setAccounts(e?.accounts)}catch(t){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(t),await this.disconnect().catch((t=>this.signer.logger.warn(t)))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(t){return"string"==typeof t||t instanceof String?[this.parseAccount(t)]:t.map((t=>this.parseAccount(t)))}}const tM=XS},8200:(t,e,r)=>{"use strict";r.d(e,{q:()=>n});class n{}},997:(t,e,r)=>{"use strict";r.r(e),r.d(e,{IEvents:()=>n.q});var n=r(8200)},2568:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HEARTBEAT_EVENTS=e.HEARTBEAT_INTERVAL=void 0;const n=r(6736);e.HEARTBEAT_INTERVAL=n.FIVE_SECONDS,e.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}},3401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(2568),e)},8969:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeat=void 0;const n=r(655),i=r(7187),s=r(6736),o=r(1614),a=r(3401);class c extends o.IHeartBeat{constructor(t){super(t),this.events=new i.EventEmitter,this.interval=a.HEARTBEAT_INTERVAL,this.interval=(null==t?void 0:t.interval)||a.HEARTBEAT_INTERVAL}static init(t){return n.__awaiter(this,void 0,void 0,(function*(){const e=new c(t);return yield e.init(),e}))}init(){return n.__awaiter(this,void 0,void 0,(function*(){yield this.initialize()}))}stop(){clearInterval(this.intervalRef)}on(t,e){this.events.on(t,e)}once(t,e){this.events.once(t,e)}off(t,e){this.events.off(t,e)}removeListener(t,e){this.events.removeListener(t,e)}initialize(){return n.__awaiter(this,void 0,void 0,(function*(){this.intervalRef=setInterval((()=>this.pulse()),s.toMiliseconds(this.interval))}))}pulse(){this.events.emit(a.HEARTBEAT_EVENTS.pulse)}}e.HeartBeat=c},772:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(8969),e),n.__exportStar(r(1614),e),n.__exportStar(r(3401),e)},4174:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IHeartBeat=void 0;const n=r(997);class i extends n.IEvents{constructor(t){super()}}e.IHeartBeat=i},1614:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(4174),e)},1882:()=>{},3014:()=>{},6900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(6869),e),n.__exportStar(r(8033),e)},6869:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_THOUSAND=e.ONE_HUNDRED=void 0,e.ONE_HUNDRED=100,e.ONE_THOUSAND=1e3},8033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=5*e.ONE_MINUTE,e.TEN_MINUTES=10*e.ONE_MINUTE,e.THIRTY_MINUTES=30*e.ONE_MINUTE,e.SIXTY_MINUTES=60*e.ONE_MINUTE,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=3*e.ONE_HOUR,e.SIX_HOURS=6*e.ONE_HOUR,e.TWELVE_HOURS=12*e.ONE_HOUR,e.TWENTY_FOUR_HOURS=24*e.ONE_HOUR,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=3*e.ONE_DAY,e.FIVE_DAYS=5*e.ONE_DAY,e.SEVEN_DAYS=7*e.ONE_DAY,e.THIRTY_DAYS=30*e.ONE_DAY,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=2*e.ONE_WEEK,e.THREE_WEEKS=3*e.ONE_WEEK,e.FOUR_WEEKS=4*e.ONE_WEEK,e.ONE_YEAR=365*e.ONE_DAY},6736:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4273),e),n.__exportStar(r(7001),e),n.__exportStar(r(2939),e),n.__exportStar(r(6900),e)},2939:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(655).__exportStar(r(8766),e)},8766:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IWatch=void 0,e.IWatch=class{}},3207:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromMiliseconds=e.toMiliseconds=void 0;const n=r(6900);e.toMiliseconds=function(t){return t*n.ONE_THOUSAND},e.fromMiliseconds=function(t){return Math.floor(t/n.ONE_THOUSAND)}},3873:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delay=void 0,e.delay=function(t){return new Promise((e=>{setTimeout((()=>{e(!0)}),t)}))}},4273:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(3873),e),n.__exportStar(r(3207),e)},7001:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(t){if(this.timestamps.has(t))throw new Error(`Watch already started for label: ${t}`);this.timestamps.set(t,{started:Date.now()})}stop(t){const e=this.get(t);if(void 0!==e.elapsed)throw new Error(`Watch already stopped for label: ${t}`);const r=Date.now()-e.started;this.timestamps.set(t,{started:e.started,elapsed:r})}get(t){const e=this.timestamps.get(t);if(void 0===e)throw new Error(`No timestamp found for label: ${t}`);return e}elapsed(t){const e=this.get(t);return e.elapsed||Date.now()-e.started}}e.Watch=r,e.default=r},2873:(t,e)=>{"use strict";function r(t){let e;return"undefined"!=typeof window&&void 0!==window[t]&&(e=window[t]),e}function n(t){const e=r(t);if(!e)throw new Error(`${t} is not defined in Window`);return e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLocalStorage=e.getLocalStorageOrThrow=e.getCrypto=e.getCryptoOrThrow=e.getLocation=e.getLocationOrThrow=e.getNavigator=e.getNavigatorOrThrow=e.getDocument=e.getDocumentOrThrow=e.getFromWindowOrThrow=e.getFromWindow=void 0,e.getFromWindow=r,e.getFromWindowOrThrow=n,e.getDocumentOrThrow=function(){return n("document")},e.getDocument=function(){return r("document")},e.getNavigatorOrThrow=function(){return n("navigator")},e.getNavigator=function(){return r("navigator")},e.getLocationOrThrow=function(){return n("location")},e.getLocation=function(){return r("location")},e.getCryptoOrThrow=function(){return n("crypto")},e.getCrypto=function(){return r("crypto")},e.getLocalStorageOrThrow=function(){return n("localStorage")},e.getLocalStorage=function(){return r("localStorage")}},5755:(t,e,r)=>{"use strict";e.D=void 0;const n=r(2873);e.D=function(){let t,e;try{t=n.getDocumentOrThrow(),e=n.getLocationOrThrow()}catch(t){return null}function r(...e){const r=t.getElementsByTagName("meta");for(let t=0;tn.getAttribute(t))).filter((t=>!!t&&e.includes(t)));if(i.length&&i){const t=n.getAttribute("content");if(t)return t}}return""}const i=function(){let e=r("name","og:site_name","og:title","twitter:title");return e||(e=t.title),e}();return{description:r("description","og:description","twitter:description","keywords"),url:e.origin,icons:function(){const r=t.getElementsByTagName("link"),n=[];for(let t=0;t-1){const t=i.getAttribute("href");if(t)if(-1===t.toLowerCase().indexOf("https:")&&-1===t.toLowerCase().indexOf("http:")&&0!==t.indexOf("//")){let r=e.protocol+"//"+e.host;if(0===t.indexOf("/"))r+=t;else{const n=e.pathname.split("/");n.pop(),r+=n.join("/")+"/"+t}n.push(r)}else if(0===t.indexOf("//")){const r=e.protocol+t;n.push(r)}else n.push(t)}}return n}(),name:i}}},2295:(t,e,r)=>{const{sha3:n,BN:i}=r(8269),s=r(3338),o={savedABIs:[],methodIDs:{},keepNonDecodedLogs:!1};function a(t){return"tuple"===t.type?"("+t.components.map(a).join(",")+")":t.type}t.exports={getABIs:function(){return o.savedABIs},addABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map(a).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]=t:o.methodIDs[e.slice(2,10)]=t}})),o.savedABIs=o.savedABIs.concat(t)},getMethodIDs:function(){return o.methodIDs},decodeMethod:function(t){const e=t.slice(2,10),r=o.methodIDs[e];if(r){let e=s.decodeParameters(r.inputs,t.slice(10)),n={name:r.name,params:[]};for(let t=0;tnew i(t).toString())):new i(s).toString()),l&&(o=Array.isArray(s)?s.map((t=>t.toLowerCase())):s.toLowerCase()),n.params.push({name:r.inputs[t].name,value:o,type:r.inputs[t].type})}return n}},decodeLogs:function(t){return t.filter((t=>t.topics.length>0)).map((t=>{const e=t.topics[0].slice(2),r=o.methodIDs[e];if(r){const e=t.data;let n=[],o=0,a=1,c=[];r.inputs.map((function(t){t.indexed||c.push(t.type)}));const l=s.decodeParameters(c,e.slice(2));return r.inputs.map((function(e){let r={name:e.name,type:e.type};if(e.indexed?(r.value=t.topics[a],a++):(r.value=l[o],o++),"address"===e.type&&(r.value=r.value.toLowerCase(),r.value.length>42)){let t=r.value.length-42,e=r.value.split("");e.splice(2,t),r.value=e.join("")}"uint256"!==e.type&&"uint8"!==e.type&&"int"!==e.type||("string"==typeof r.value&&r.value.startsWith("0x")?r.value=new i(r.value.slice(2),16).toString(10):r.value=new i(r.value).toString(10)),n.push(r)})),{name:r.name,events:n,address:t.address}}})).filter((t=>o.keepNonDecodedLogs||t))},removeABI:function(t){if(!Array.isArray(t))throw new Error("Expected ABI array, got "+typeof t);t.map((function(t){if(t.name){const e=n(t.name+"("+t.inputs.map((function(t){return t.type})).join(",")+")");"event"===t.type?o.methodIDs[e.slice(2)]&&delete o.methodIDs[e.slice(2)]:o.methodIDs[e.slice(2,10)]&&delete o.methodIDs[e.slice(2,10)]}}))},keepNonDecodedLogs:function(){o.keepNonDecodedLogs=!0},discardNonDecodedLogs:function(){o.keepNonDecodedLogs=!1}}},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=c(t),o=s[0],a=s[1],l=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,a)),u=0,h=a>0?o-4:o;for(r=0;r>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,c=n-i;ac?c:a+o));return 1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),s.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function l(t,e,n){for(var i,s,o=[],a=e;a>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4431:function(t,e,r){var n;!function(i){"use strict";var s,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",h=1e14,d=14,f=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(t){var e=0|t;return t>0||t===e?e:e-1}function w(t){for(var e,r,n=1,i=t.length,s=t[0]+"";nl^r?1:-1;for(a=(c=i.length)<(l=s.length)?c:l,o=0;os[o]^r?1:-1;return c==l?0:c>l^r?1:-1}function v(t,e,r,n){if(tr||t!==c(t))throw Error(l+(n||"Argument")+("number"==typeof t?tr?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function A(t){var e=t.c.length-1;return y(t.e/d)==e&&t.c[e]%2!=0}function E(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function x(t,e,r){var n,i;if(e<0){for(i=r+".";++e;i+=r);t=i+t}else if(++e>(n=t.length)){for(i=r,e-=n;--e;i+=r);t+=i}else eU?y.c=y.e=null:t.e=10;h/=10,l++);return void(l>U?y.c=y.e=null:(y.e=l,y.c=[t]))}g=String(t)}else{if(!o.test(g=String(t)))return i(y,g,p);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>0?(l<0&&(l=h),l+=+g.slice(h+1),g=g.substring(0,h)):l<0&&(l=g.length)}else{if(v(e,2,H.length,"Base"),10==e&&$)return K(y=new q(t),N+y.e+1,T);if(g=String(t),p="number"==typeof t){if(0*t!=0)return i(y,g,p,e);if(y.s=1/t<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+t)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=H.slice(0,e),l=h=0,m=g.length;hl){l=m;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,h=-1,l=0;continue}return i(y,String(t),p,e)}p=!1,(l=(g=n(g,e,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(h=0;48===g.charCodeAt(h);h++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(h,++m)){if(m-=h,p&&q.DEBUG&&m>15&&(t>f||t!==c(t)))throw Error(u+y.s*t);if((l=l-h-1)>U)y.c=y.e=null;else if(l=B)?E(c,o):x(c,o,"0");else if(s=(t=K(new q(t),e,r)).e,a=(c=w(t.c)).length,1==n||2==n&&(e<=s||s<=R)){for(;aa){if(--e>0)for(c+=".";e--;c+="0");}else if((e+=s-a)>0)for(s+1==a&&(c+=".");e--;c+="0");return t.s<0&&i?"-"+c:c}function V(t,e){for(var r,n=1,i=new q(t[0]);n=10;i/=10,n++);return(r=n+r*d-1)>U?t.c=t.e=null:r=10;l/=10,i++);if((s=e-i)<0)s+=d,o=e,m=(u=g[f=0])/y[i-o-1]%10|0;else if((f=a((s+1)/d))>=g.length){if(!n)break t;for(;g.length<=f;g.push(0));u=m=0,i=1,o=(s%=d)-d+1}else{for(u=l=g[f],i=1;l>=10;l/=10,i++);m=(o=(s%=d)-d+i)<0?0:u/y[i-o-1]%10|0}if(n=n||e<0||null!=g[f+1]||(o<0?u:u%y[i-o-1]),n=r<4?(m||n)&&(0==r||r==(t.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(s>0?o>0?u/y[i-o]:0:g[f-1])%10&1||r==(t.s<0?8:7)),e<1||!g[0])return g.length=0,n?(e-=t.e+1,g[0]=y[(d-e%d)%d],t.e=-e||0):g[0]=t.e=0,t;if(0==s?(g.length=f,l=1,f--):(g.length=f+1,l=y[d-s],g[f]=o>0?c(u/y[i-o]%y[o])*l:0),n)for(;;){if(0==f){for(s=1,o=g[0];o>=10;o/=10,s++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);s!=l&&(t.e++,g[0]==h&&(g[0]=1));break}if(g[f]+=l,g[f]!=h)break;g[f--]=0,l=1}for(s=g.length;0===g[--s];g.pop());}t.e>U?t.c=t.e=null:t.e=B?E(e,r):x(e,r,"0"),t.s<0?"-"+e:e)}return q.clone=t,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(t){var e,r;if(null!=t){if("object"!=typeof t)throw Error(l+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(v(r=t[e],0,g,e),N=r),t.hasOwnProperty(e="ROUNDING_MODE")&&(v(r=t[e],0,8,e),T=r),t.hasOwnProperty(e="EXPONENTIAL_AT")&&((r=t[e])&&r.pop?(v(r[0],-g,0,e),v(r[1],0,g,e),R=r[0],B=r[1]):(v(r,-g,g,e),R=-(B=r<0?-r:r))),t.hasOwnProperty(e="RANGE"))if((r=t[e])&&r.pop)v(r[0],-g,-1,e),v(r[1],1,g,e),L=r[0],U=r[1];else{if(v(r,-g,g,e),!r)throw Error(l+e+" cannot be zero: "+r);L=-(U=r<0?-r:r)}if(t.hasOwnProperty(e="CRYPTO")){if((r=t[e])!==!!r)throw Error(l+e+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!r,Error(l+"crypto unavailable");j=r}else j=r}if(t.hasOwnProperty(e="MODULO_MODE")&&(v(r=t[e],0,9,e),D=r),t.hasOwnProperty(e="POW_PRECISION")&&(v(r=t[e],0,g,e),F=r),t.hasOwnProperty(e="FORMAT")){if("object"!=typeof(r=t[e]))throw Error(l+e+" not an object: "+r);z=r}if(t.hasOwnProperty(e="ALPHABET")){if("string"!=typeof(r=t[e])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(l+e+" invalid: "+r);$="0123456789"==r.slice(0,10),H=r}}return{DECIMAL_PLACES:N,ROUNDING_MODE:T,EXPONENTIAL_AT:[R,B],RANGE:[L,U],CRYPTO:j,MODULO_MODE:D,POW_PRECISION:F,FORMAT:z,ALPHABET:H}},q.isBigNumber=function(t){if(!t||!0!==t._isBigNumber)return!1;if(!q.DEBUG)return!0;var e,r,n=t.c,i=t.e,s=t.s;t:if("[object Array]"=={}.toString.call(n)){if((1===s||-1===s)&&i>=-g&&i<=g&&i===c(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break t}if((e=(i+1)%d)<1&&(e+=d),String(n[0]).length==e){for(e=0;e=h||r!==c(r))break t;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(l+"Invalid BigNumber: "+t)},q.maximum=q.max=function(){return V(arguments,P.lt)},q.minimum=q.min=function(){return V(arguments,P.gt)},q.random=(s=9007199254740992,_=Math.random()*s&2097151?function(){return c(Math.random()*s)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(t){var e,r,n,i,s,o=0,u=[],h=new q(O);if(null==t?t=N:v(t,0,g),i=a(t/d),j)if(crypto.getRandomValues){for(e=crypto.getRandomValues(new Uint32Array(i*=2));o>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),e[o]=r[0],e[o+1]=r[1]):(u.push(s%1e14),o+=2);o=i/2}else{if(!crypto.randomBytes)throw j=!1,Error(l+"crypto unavailable");for(e=crypto.randomBytes(i*=7);o=9e15?crypto.randomBytes(7).copy(e,o):(u.push(s%1e14),o+=7);o=i/7}if(!j)for(;o=10;s/=10,o++);or-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(n,i,s,o,a){var c,l,u,h,d,f,p,m,g=n.indexOf("."),y=N,b=T;for(g>=0&&(h=F,F=0,n=n.replace(".",""),f=(m=new q(i)).pow(n.length-g),F=h,m.c=e(x(w(f.c),f.e,"0"),10,s,t),m.e=m.c.length),u=h=(p=e(n,i,s,a?(c=H,t):(c=t,H))).length;0==p[--h];p.pop());if(!p[0])return c.charAt(0);if(g<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=r(f,m,y,b,s)).c,d=f.r,u=f.e),g=p[l=u+y+1],h=s/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=g||d)&&(0==b||b==(f.s<0?3:2)):g>h||g==h&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?x(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(p.length=l,d)for(--s;++p[--l]>s;)p[l]=0,l||(++u,p=[1].concat(p));for(h=p.length;!p[--h];);for(g=0,n="";g<=h;n+=c.charAt(p[g++]));n=x(n,u,c.charAt(0))}return n}}(),r=function(){function t(t,e,r){var n,i,s,o,a=0,c=t.length,l=e%m,u=e/m|0;for(t=t.slice();c--;)a=((i=l*(s=t[c]%m)+(n=u*s+(o=t[c]/m|0)*l)%m*m+a)/r|0)+(n/m|0)+u*o,t[c]=i%r;return a&&(t=[a].concat(t)),t}function e(t,e,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;ie[i]?1:-1;break}return s}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]1;t.splice(0,1));}return function(n,i,s,o,a){var l,u,f,p,m,g,w,b,v,A,E,x,_,S,M,C,k,I=n.s==i.s?1:-1,P=n.c,O=i.c;if(!(P&&P[0]&&O&&O[0]))return new q(n.s&&i.s&&(P?!O||P[0]!=O[0]:O)?P&&0==P[0]||!O?0*I:I/0:NaN);for(v=(b=new q(I)).c=[],I=s+(u=n.e-i.e)+1,a||(a=h,u=y(n.e/d)-y(i.e/d),I=I/d|0),f=0;O[f]==(P[f]||0);f++);if(O[f]>(P[f]||0)&&u--,I<0)v.push(1),p=!0;else{for(S=P.length,C=O.length,f=0,I+=2,(m=c(a/(O[0]+1)))>1&&(O=t(O,m,a),P=t(P,m,a),C=O.length,S=P.length),_=C,E=(A=P.slice(0,C)).length;E=a/2&&M++;do{if(m=0,(l=e(O,A,C,E))<0){if(x=A[0],C!=E&&(x=x*a+(A[1]||0)),(m=c(x/M))>1)for(m>=a&&(m=a-1),w=(g=t(O,m,a)).length,E=A.length;1==e(g,A,w,E);)m--,r(g,C=10;I/=10,f++);K(b,s+(b.e=f+u*d-1)+1,o,p)}else b.e=u,b.r=+p;return b}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,C=/^\.([^.]+)$/,k=/^-?(Infinity|NaN)$/,I=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(t,e,r,n){var i,s=r?e:e.replace(I,"");if(k.test(s))t.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(S,(function(t,e,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?t:e})),n&&(i=n,s=s.replace(M,"$1").replace(C,"0.$1")),e!=s))return new q(s,i);if(q.DEBUG)throw Error(l+"Not a"+(n?" base "+n:"")+" number: "+e);t.s=null}t.c=t.e=null},P.absoluteValue=P.abs=function(){var t=new q(this);return t.s<0&&(t.s=1),t},P.comparedTo=function(t,e){return b(this,new q(t,e))},P.decimalPlaces=P.dp=function(t,e){var r,n,i,s=this;if(null!=t)return v(t,0,g),null==e?e=T:v(e,0,8),K(new q(s),t+s.e+1,e);if(!(r=s.c))return null;if(n=((i=r.length-1)-y(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},P.dividedBy=P.div=function(t,e){return r(this,new q(t,e),N,T)},P.dividedToIntegerBy=P.idiv=function(t,e){return r(this,new q(t,e),0,1)},P.exponentiatedBy=P.pow=function(t,e){var r,n,i,s,o,u,h,f,p=this;if((t=new q(t)).c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+Z(t));if(null!=e&&(e=new q(e)),o=t.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!t.c||!t.c[0])return f=new q(Math.pow(+Z(p),o?t.s*(2-A(t)):+Z(t))),e?f.mod(e):f;if(u=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new q(NaN);(n=!u&&p.isInteger()&&e.isInteger())&&(p=p.mod(e))}else{if(t.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||o&&p.c[1]>=24e7:p.c[0]<8e13||o&&p.c[0]<=9999975e7)))return s=p.s<0&&A(t)?-0:0,p.e>-1&&(s=1/s),new q(u?1/s:s);F&&(s=a(F/d+2))}for(o?(r=new q(.5),u&&(t.s=1),h=A(t)):h=(i=Math.abs(+Z(t)))%2,f=new q(O);;){if(h){if(!(f=f.times(p)).c)break;s?f.c.length>s&&(f.c.length=s):n&&(f=f.mod(e))}if(i){if(0===(i=c(i/2)))break;h=i%2}else if(K(t=t.times(r),t.e+1,1),t.e>14)h=A(t);else{if(0==(i=+Z(t)))break;h=i%2}p=p.times(p),s?p.c&&p.c.length>s&&(p.c.length=s):n&&(p=p.mod(e))}return n?f:(u&&(f=O.div(f)),e?f.mod(e):s?K(f,F,T,void 0):f)},P.integerValue=function(t){var e=new q(this);return null==t?t=T:v(t,0,8),K(e,e.e+1,t)},P.isEqualTo=P.eq=function(t,e){return 0===b(this,new q(t,e))},P.isFinite=function(){return!!this.c},P.isGreaterThan=P.gt=function(t,e){return b(this,new q(t,e))>0},P.isGreaterThanOrEqualTo=P.gte=function(t,e){return 1===(e=b(this,new q(t,e)))||0===e},P.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},P.isLessThan=P.lt=function(t,e){return b(this,new q(t,e))<0},P.isLessThanOrEqualTo=P.lte=function(t,e){return-1===(e=b(this,new q(t,e)))||0===e},P.isNaN=function(){return!this.s},P.isNegative=function(){return this.s<0},P.isPositive=function(){return this.s>0},P.isZero=function(){return!!this.c&&0==this.c[0]},P.minus=function(t,e){var r,n,i,s,o=this,a=o.s;if(e=(t=new q(t,e)).s,!a||!e)return new q(NaN);if(a!=e)return t.s=-e,o.plus(t);var c=o.e/d,l=t.e/d,u=o.c,f=t.c;if(!c||!l){if(!u||!f)return u?(t.s=-e,t):new q(f?o:NaN);if(!u[0]||!f[0])return f[0]?(t.s=-e,t):new q(u[0]?o:3==T?-0:0)}if(c=y(c),l=y(l),u=u.slice(),a=c-l){for((s=a<0)?(a=-a,i=u):(l=c,i=f),i.reverse(),e=a;e--;i.push(0));i.reverse()}else for(n=(s=(a=u.length)<(e=f.length))?a:e,a=e=0;e0)for(;e--;u[r++]=0);for(e=h-1;n>a;){if(u[--n]=0;){for(r=0,p=x[i]%v,g=x[i]/v|0,s=i+(o=c);s>i;)r=((l=p*(l=E[--o]%v)+(a=g*l+(u=E[o]/v|0)*p)%v*v+w[s]+r)/b|0)+(a/v|0)+g*u,w[s--]=l%b;w[s]=r}return r?++n:w.splice(0,1),G(t,w,n)},P.negated=function(){var t=new q(this);return t.s=-t.s||null,t},P.plus=function(t,e){var r,n=this,i=n.s;if(e=(t=new q(t,e)).s,!i||!e)return new q(NaN);if(i!=e)return t.s=-e,n.minus(t);var s=n.e/d,o=t.e/d,a=n.c,c=t.c;if(!s||!o){if(!a||!c)return new q(i/0);if(!a[0]||!c[0])return c[0]?t:new q(a[0]?n:0*i)}if(s=y(s),o=y(o),a=a.slice(),i=s-o){for(i>0?(o=s,r=c):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(e=c.length)<0&&(r=c,c=a,a=r,e=i),i=0;e;)i=(a[--e]=a[e]+c[e]+i)/h|0,a[e]=h===a[e]?0:a[e]%h;return i&&(a=[i].concat(a),++o),G(t,a,o)},P.precision=P.sd=function(t,e){var r,n,i,s=this;if(null!=t&&t!==!!t)return v(t,1,g),null==e?e=T:v(e,0,8),K(new q(s),t,e);if(!(r=s.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return t&&s.e+1>n&&(n=s.e+1),n},P.shiftedBy=function(t){return v(t,-9007199254740991,f),this.times("1e"+t)},P.squareRoot=P.sqrt=function(){var t,e,n,i,s,o=this,a=o.c,c=o.s,l=o.e,u=N+4,h=new q("0.5");if(1!==c||!a||!a[0])return new q(!c||c<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(c=Math.sqrt(+Z(o)))||c==1/0?(((e=w(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(+e),l=y((l+1)/2)-(l<0||l%2),n=new q(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):n=new q(c+""),n.c[0])for((c=(l=n.e)+u)<3&&(c=0);;)if(s=n,n=h.times(s.plus(r(o,s,u,1))),w(s.c).slice(0,c)===(e=w(n.c)).slice(0,c)){if(n.e0&&m>0){for(s=m%a||a,h=p.substr(0,s);s0&&(h+=u+p.slice(s)),f&&(h="-"+h)}n=d?h+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):h}return(r.prefix||"")+n+(r.suffix||"")},P.toFraction=function(t){var e,n,i,s,o,a,c,u,h,f,m,g,y=this,b=y.c;if(null!=t&&(!(c=new q(t)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!b)return new q(y);for(e=new q(O),h=n=new q(O),i=u=new q(O),g=w(b),o=e.e=g.length-y.e-1,e.c[0]=p[(a=o%d)<0?d+a:a],t=!t||c.comparedTo(e)>0?o>0?e:h:c,a=U,U=1/0,c=new q(g),u.c[0]=0;f=r(c,e,0,1),1!=(s=n.plus(f.times(i))).comparedTo(t);)n=i,i=s,h=u.plus(f.times(s=h)),u=s,e=c.minus(f.times(s=e)),c=s;return s=r(t.minus(n),i,0,1),u=u.plus(s.times(h)),n=n.plus(s.times(i)),u.s=h.s=y.s,m=r(h,i,o*=2,T).minus(y).abs().comparedTo(r(u,n,o,T).minus(y).abs())<1?[h,i]:[u,n],U=a,m},P.toNumber=function(){return+Z(this)},P.toPrecision=function(t,e){return null!=t&&v(t,1,g),W(this,t,e,2)},P.toString=function(t){var e,r=this,i=r.s,s=r.e;return null===s?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=s<=R||s>=B?E(w(r.c),s):x(w(r.c),s,"0"):10===t&&$?e=x(w((r=K(new q(r),N+s+1,T)).c),r.e,"0"):(v(t,2,H.length,"Base"),e=n(x(w(r.c),s,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},P.valueOf=P.toJSON=function(){return Z(this)},P._isBigNumber=!0,null!=e&&q.set(e),q}(),s.default=s.BigNumber=s,void 0===(n=function(){return s}.call(e,r,e,t))||(t.exports=n)}()},8764:(t,e,r)=>{"use strict";var n=r(9742),i=r(645),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function a(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=a(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(z(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(z(t,ArrayBuffer)||t&&z(t.buffer,ArrayBuffer))return f(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(z(t,SharedArrayBuffer)||t&&z(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);var i=function(t){if(c.isBuffer(t)){var e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||H(t.length)?a(0):d(t):"Buffer"===t.type&&Array.isArray(t.data)?d(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),a(t<0?0:0|p(t))}function d(t){for(var e=t.length<0?0:0|p(t.length),r=a(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||z(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(t).length;default:if(i)return n?-1:j(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return M(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function w(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),H(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var s,o=1,a=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,r/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){for(var h=!0,d=0;di&&(n=i):n=i;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function M(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(s=t[i+1]))&&(c=(31&l)<<6|63&s)>127&&(u=c);break;case 3:s=t[i+1],o=t[i+2],128==(192&s)&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn.length?c.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else{if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i)}i+=s.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,i){if(z(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.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===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),a=Math.min(s,o),l=this.slice(n,i),u=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return A(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function k(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",s=e;sr)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function R(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(t,e,r,n,s){return e=+e,r>>>=0,s||R(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function L(t,e,r,n,s){return e=+e,r>>>=0,s||R(t,0,r,8),i.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var 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||N(t,e,this.length);for(var n=this[t],i=1,s=0;++s>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(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},c.prototype.writeFloatLE=function(t,e,r){return B(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return B(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(s=e;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function D(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function z(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function H(t){return t!=t}var $=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},1924:(t,e,r)=>{"use strict";var n=r(210),i=r(5559),s=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&s(t,".prototype.")>-1?i(r):r}},5559:(t,e,r)=>{"use strict";var n=r(8612),i=r(210),s=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(o,s),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=a(n,o,arguments);if(c&&l){var r=c(e,"length");r.configurable&&l(e,"length",{value:1+u(0,t.length-(arguments.length-1))})}return e};var h=function(){return a(n,s,arguments)};l?l(t.exports,"apply",{value:h}):t.exports.apply=h},4098:function(t,e){var r="undefined"!=typeof self?self:this,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var r="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in t,o="ArrayBuffer"in t;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function f(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&i&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=f(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t,e,r,n=f(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=p(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function A(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];A.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(t,r){return new Promise((function(n,s){var o=new b(t,r);if(o.signal&&o.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new A(i,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new e.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=d,t.Request=b,t.Response=A),e.Headers=d,e.Request=b,e.Response=A,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},4020:t=>{"use strict";var e="%[a-f0-9]{2}",r=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],i(r),i(n))}function s(t){try{return decodeURIComponent(t)}catch(s){for(var e=t.match(r)||[],n=1;n{"use strict";var e={single_source_shortest_paths:function(t,r,n){var i={},s={};s[r]=0;var o,a,c,l,u,h,d,f=e.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(c in a=(o=f.pop()).value,l=o.cost,u=t[a]||{})u.hasOwnProperty(c)&&(h=l+u[c],d=s[c],(void 0===s[c]||d>h)&&(s[c]=h,f.push(c,h),i[c]=a));if(void 0!==n&&void 0===s[n]){var p=["Could not find a path from ",r," to ",n,"."].join("");throw new Error(p)}return i},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,r,n){var i=e.single_source_shortest_paths(t,r,n);return e.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(t){var r,n=e.PriorityQueue,i={};for(r in t=t||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},2378:t=>{"use strict";t.exports=function(t){for(var e=[],r=t.length,n=0;n=55296&&i<=56319&&r>n+1){var s=t.charCodeAt(n+1);s>=56320&&s<=57343&&(i=1024*(i-55296)+s-56320+65536,n+=1)}i<128?e.push(i):i<2048?(e.push(i>>6|192),e.push(63&i|128)):i<55296||i>=57344&&i<65536?(e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)):i>=65536&&i<=1114111?(e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},6877:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(339);function i(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{512}$/i.test(t)||!/^(0x)?[0-9a-f]{512}$/.test(t)&&!/^(0x)?[0-9A-F]{512}$/.test(t))}function s(t,e){"object"==typeof e&&e.constructor===Uint8Array&&(e=n.bytesToHex(e));const r=n.keccak256(e).replace("0x","");for(let e=0;e<12;e+=4){const n=(parseInt(r.substr(e,2),16)<<8)+parseInt(r.substr(e+2,2),16)&2047,i=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function a(t){return!("string"!=typeof t||!/^(0x)?[0-9a-f]{64}$/i.test(t)||!/^(0x)?[0-9a-f]{64}$/.test(t)&&!/^(0x)?[0-9A-F]{64}$/.test(t))}function c(t){return!("string"!=typeof t||!t.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}e.isBloom=i,e.isInBloom=s,e.isUserEthereumAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid ethereum address given: "${e}"`);return s(t,n.padLeft(e,64))},e.isContractAddressInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!c(e))throw new Error(`Invalid contract address given: "${e}"`);return s(t,e)},e.isTopicInBloom=function(t,e){if(!i(t))throw new Error("Invalid bloom given");if(!a(e))throw new Error("Invalid topic");return s(t,e)},e.isTopic=a,e.isAddress=c},339:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(1094);function i(t){if(null==t)throw new Error("cannot convert null value to array");if("string"==typeof t){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if("0x"!==e[1])throw new Error("hex string must have 0x prefix");(t=t.substring(2)).length%2&&(t="0"+t);const r=[];for(let e=0;e=256||parseInt(String(r))!=r)return!1}return!0}(t))return s(new Uint8Array(t));throw new Error("invalid arrayify value")}function s(t){return void 0!==t.slice||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}e.keccak256=function(t){return"0x"+n.keccak_256(i(t))},e.padLeft=(t,e)=>{const r=/^0x/i.test(t)||"number"==typeof t,n=e-(t=t.toString().replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(n).join("0")+t},e.bytesToHex=function(t){const e=[];for(let r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return`0x${e.join("").replace(/^0+/,"")}`},e.toByteArray=i},2192:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak512=e.keccak384=e.keccak256=e.keccak224=void 0;const n=r(5426),i=r(8040);e.keccak224=(0,i.wrapHash)(n.keccak_224),e.keccak256=(()=>{const t=(0,i.wrapHash)(n.keccak_256);return t.create=n.keccak_256.create,t})(),e.keccak384=(0,i.wrapHash)(n.keccak_384),e.keccak512=(0,i.wrapHash)(n.keccak_512)},5053:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=void 0;var n=r(3497);Object.defineProperty(e,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},8040:function(t,e,r){"use strict";t=r.nmd(t);var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const i=n(r(7320)),s=r(8089),o=i.default.bool;e.assertBool=o;const a=i.default.bytes;e.assertBytes=a;var c=r(8089);Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),e.bytesToUtf8=function(t){if(!(t instanceof Uint8Array))throw new TypeError("bytesToUtf8 expected Uint8Array, got "+typeof t);return(new TextDecoder).decode(t)},e.hexToBytes=function(t){const e=t.startsWith("0x")?t.substring(2):t;return(0,s.hexToBytes)(e)},e.equalsBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;r(i.default.bytes(e),t(e))},e.crypto=(()=>{const e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},79:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCurve=e.getHash=void 0;const n=r(798),i=r(9681),s=r(2541);function o(t){return{hash:t,hmac:(e,...r)=>(0,n.hmac)(t,e,(0,i.concatBytes)(...r)),randomBytes:i.randomBytes}}e.getHash=o,e.createCurve=function(t,e){const r=e=>(0,s.weierstrass)({...t,...o(e)});return Object.freeze({...r(e),create:r})}},2781:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateBasic=e.wNAF=void 0;const n=r(3570),i=r(3912),s=BigInt(0),o=BigInt(1);e.wNAF=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>s;)r&o&&(n=n.add(i)),i=i.double(),r>>=o;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),s=[];let o=t,a=o;for(let t=0;t>=f,n>c&&(n-=d,s+=o);const a=e,p=e+Math.abs(n)-1,m=t%2!=0,g=n<0;0===n?u=u.add(r(m,i[a])):l=l.add(r(g,i[p]))}return{p:l,f:u}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let s=e.get(t);return s||(s=this.precomputeWindow(t,i),1!==i&&e.set(t,n(s))),this.wNAF(i,s,r)}}},e.validateBasic=function(t){return(0,n.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}},6791:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHasher=e.isogenyMap=e.hash_to_field=e.expand_message_xof=e.expand_message_xmd=void 0;const n=r(3570),i=r(3912),s=i.bytesToNumberBE;function o(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const r=Array.from({length:e}).fill(0);for(let n=e-1;n>=0;n--)r[n]=255&t,t>>>=8;return new Uint8Array(r)}function a(t,e){const r=new Uint8Array(t.length);for(let n=0;n255&&(e=n((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:s,blockLen:u}=n,h=Math.ceil(r/s);if(h>255)throw new Error("Invalid xmd length");const d=(0,i.concatBytes)(e,o(e.length,1)),f=o(0,u),p=o(r,2),m=new Array(h),g=n((0,i.concatBytes)(f,t,p,o(0,1),d));m[0]=n((0,i.concatBytes)(g,o(1,1),d));for(let t=1;t<=h;t++){const e=[a(g,m[t-1]),o(t+1,1),d];m[t]=n((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...m).slice(0,r)}function h(t,e,r,n,s){if(c(t),c(e),l(r),e.length>255){const t=Math.ceil(2*n/8);e=s.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(r>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return s.create({dkLen:r}).update(t).update(o(r,2)).update(e).update(o(e.length,1)).digest()}function d(t,e,r){(0,i.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:a,m:d,hash:f,expand:p,DST:m}=r;c(t),l(e);const g=function(t){if(t instanceof Uint8Array)return t;if("string"==typeof t)return(0,i.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,w=Math.ceil((y+a)/8),b=e*d*w;let v;if("xmd"===p)v=u(t,g,b,f);else if("xof"===p)v=h(t,g,b,a,f);else{if("_internal_pass"!==p)throw new Error('expand must be "xmd" or "xof"');v=t}const A=new Array(e);for(let t=0;tArray.from(t).reverse()));return(e,n)=>{const[i,s,o,a]=r.map((r=>r.reduce(((r,n)=>t.add(t.mul(r,e),n)))));return e=t.div(i,s),n=t.mul(n,t.div(o,a)),{x:e,y:n}}},e.createHasher=function(t,e,r){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");return{hashToCurve(n,i){const s=d(n,2,{...r,DST:r.DST,...i}),o=t.fromAffine(e(s[0])),a=t.fromAffine(e(s[1])),c=o.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,i){const s=d(n,1,{...r,DST:r.encodeDST,...i}),o=t.fromAffine(e(s[0])).clearCofactor();return o.assertValidity(),o}}}},3570:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapHashToField=e.getMinHashLength=e.getFieldBytesLength=e.hashToPrivateScalar=e.FpSqrtEven=e.FpSqrtOdd=e.Field=e.nLength=e.FpIsSquare=e.FpDiv=e.FpInvertBatch=e.FpPow=e.validateField=e.isNegativeLE=e.FpSqrt=e.tonelliShanks=e.invert=e.pow2=e.pow=e.mod=void 0;const n=r(3912),i=BigInt(0),s=BigInt(1),o=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function h(t,e){const r=t%e;return r>=i?r:e+r}function d(t,e,r){if(r<=i||e 0");if(r===s)return i;let n=s;for(;e>i;)e&s&&(n=n*t%r),t=t*t%r,e>>=s;return n}function f(t,e){if(t===i||e<=i)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=h(t,e),n=e,o=i,a=s,c=s,l=i;for(;r!==i;){const t=n/r,e=n%r,i=o-c*t,s=a-l*t;n=r,r=e,o=c,a=l,c=i,l=s}if(n!==s)throw new Error("invert: does not exist");return h(o,e)}function p(t){const e=(t-s)/o;let r,n,a;for(r=t-s,n=0;r%o===i;r/=o,n++);for(a=o;ai;)n*=n,n%=r;return n},e.invert=f,e.tonelliShanks=p,e.FpSqrt=m,e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(t,e,r){if(r 0");if(r===i)return t.ONE;if(r===s)return e;let n=t.ONE,o=e;for(;r>i;)r&s&&(n=t.mul(n,o)),o=t.sqr(o),r>>=s;return n}function w(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}function b(t,e){const r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function v(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function A(t){const e=v(t);return e+Math.ceil(e/2)}e.validateField=function(t){const e=g.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(t,e)},e.FpPow=y,e.FpInvertBatch=w,e.FpDiv=function(t,e,r){return t.mul(e,"bigint"==typeof r?f(r,t.ORDER):t.inv(r))},e.FpIsSquare=function(t){const e=(t.ORDER-s)/o;return r=>{const n=t.pow(r,e);return t.eql(n,t.ZERO)||t.eql(n,t.ONE)}},e.nLength=b,e.Field=function(t,e,r=!1,o={}){if(t<=i)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:c}=b(t,e);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(t),u=Object.freeze({ORDER:t,BITS:a,BYTES:c,MASK:(0,n.bitMask)(a),ZERO:i,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return i<=e&&et===i,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,r)=>h(e+r,t),sub:(e,r)=>h(e-r,t),mul:(e,r)=>h(e*r,t),pow:(t,e)=>y(u,t,e),div:(e,r)=>h(e*f(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>f(e,t),sqrt:o.sqrt||(t=>l(u,t)),invertBatch:t=>w(u,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.numberToBytesLE)(t,c):(0,n.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${t.length}`);return r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(u)},e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?r:t.neg(r)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const r=t.sqrt(e);return t.isOdd(r)?t.neg(r):r},e.hashToPrivateScalar=function(t,e,r=!1){const i=(t=(0,n.ensureBytes)("privateHash",t)).length,o=b(e).nByteLength+8;if(o<24||i1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${i}`);return h(r?(0,n.bytesToNumberLE)(t):(0,n.bytesToNumberBE)(t),e-s)+s},e.getFieldBytesLength=v,e.getMinHashLength=A,e.mapHashToField=function(t,e,r=!1){const i=t.length,o=v(e),a=A(e);if(i<16||i1024)throw new Error(`expected ${a}-1024 bytes of input, got ${i}`);const c=h(r?(0,n.bytesToNumberBE)(t):(0,n.bytesToNumberLE)(t),e-s)+s;return r?(0,n.numberToBytesLE)(c,o):(0,n.numberToBytesBE)(c,o)}},3912:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateObject=e.createHmacDrbg=e.bitMask=e.bitSet=e.bitGet=e.bitLen=e.utf8ToBytes=e.equalBytes=e.concatBytes=e.ensureBytes=e.numberToVarBytesBE=e.numberToBytesLE=e.numberToBytesBE=e.bytesToNumberLE=e.bytesToNumberBE=e.hexToBytes=e.hexToNumber=e.numberToHexUnpadded=e.bytesToHex=void 0;const r=BigInt(0),n=BigInt(1),i=BigInt(2),s=t=>t instanceof Uint8Array,o=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function a(t){if(!s(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!s(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}e.bytesToHex=a,e.numberToHexUnpadded=c,e.hexToNumber=l,e.hexToBytes=u,e.bytesToNumberBE=function(t){return l(a(t))},e.bytesToNumberLE=function(t){if(!s(t))throw new Error("Uint8Array expected");return l(a(Uint8Array.from(t).reverse()))},e.numberToBytesBE=h,e.numberToBytesLE=function(t,e){return h(t,e).reverse()},e.numberToVarBytesBE=function(t){return u(c(t))},e.ensureBytes=function(t,e,r){let n;if("string"==typeof e)try{n=u(e)}catch(r){throw new Error(`${t} must be valid hex string, got "${e}". Cause: ${r}`)}else{if(!s(e))throw new Error(`${t} must be hex string or Uint8Array`);n=Uint8Array.from(e)}const i=n.length;if("number"==typeof r&&i!==r)throw new Error(`${t} expected ${r} bytes, got ${i}`);return n},e.concatBytes=d,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;for(let r=0;rr;t>>=n,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&n},e.bitSet=(t,e,i)=>t|(i?n:r)<(i<new Uint8Array(t),p=t=>Uint8Array.from(t);e.createHmacDrbg=function(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=f(t),i=f(t),s=0;const o=()=>{n.fill(1),i.fill(0),s=0},a=(...t)=>r(i,n,...t),c=(t=f())=>{i=a(p([0]),t),n=a(),0!==t.length&&(i=a(p([1]),t),n=a())},l=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(o(),c(t);!(r=e(l()));)c();return o(),r}};const m={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.validateObject=function(t,e,r={}){const n=(e,r,n)=>{const i=m[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const s=t[e];if(!(n&&void 0===s||i(s,t)))throw new Error(`Invalid param ${String(e)}=${s} (${typeof s}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}},2541:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mapToCurveSimpleSWU=e.SWUFpSqrtRatio=e.weierstrass=e.weierstrassPoints=e.DER=void 0;const n=r(3570),i=r(3912),s=r(3912),o=r(2781),{bytesToNumberBE:a,hexToBytes:c}=i;e.DER={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:r}=e.DER;if(t.length<2||2!==t[0])throw new r("Invalid signature integer tag");const n=t[1],i=t.subarray(2,n+2);if(!n||i.length!==n)throw new r("Invalid signature integer: wrong length");if(128&i[0])throw new r("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new r("Invalid signature integer: unnecessary leading zero");return{d:a(i),l:t.subarray(n+2)}},toSig(t){const{Err:r}=e.DER,n="string"==typeof t?c(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new r("Invalid signature tag");if(n[1]!==i-2)throw new r("Invalid signature: incorrect length");const{d:s,l:o}=e.DER._parseInt(n.subarray(2)),{d:a,l}=e.DER._parseInt(o);if(l.length)throw new r("Invalid signature: left bytes after parsing");return{r:s,s:a}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),s=n.length/2,o=i.length/2,a=r(s),c=r(o);return`30${r(o+s+4)}02${c}${i}02${a}${n}`}};const l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(3),f=BigInt(4);function p(t){const e=function(t){const e=(0,o.validateBasic)(t);i.validateObject(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,a=e.toBytes||((t,e,n)=>{const s=e.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(s.x),r.toBytes(s.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function h(t){const{a:n,b:i}=e,s=r.sqr(t),o=r.mul(s,t);return r.add(r.add(o,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),h(e.Gx)))throw new Error("bad generator point: equation left != right");function f(t){return"bigint"==typeof t&&lr.eql(t,r.ZERO);return i(e)&&i(n)?w.ZERO:new w(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,s.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}_setWindowSize(t){this._WINDOW_SIZE=t,g.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=h(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){y(t);const{px:e,py:n,pz:i}=this,{px:s,py:o,pz:a}=t,c=r.eql(r.mul(e,a),r.mul(s,i)),l=r.eql(r.mul(n,a),r.mul(o,i));return c&&l}negate(){return new w(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,d),{px:s,py:o,pz:a}=this;let c=r.ZERO,l=r.ZERO,u=r.ZERO,h=r.mul(s,s),f=r.mul(o,o),p=r.mul(a,a),m=r.mul(s,o);return m=r.add(m,m),u=r.mul(s,a),u=r.add(u,u),c=r.mul(t,u),l=r.mul(i,p),l=r.add(c,l),c=r.sub(f,l),l=r.add(f,l),l=r.mul(c,l),c=r.mul(m,c),u=r.mul(i,u),p=r.mul(t,p),m=r.sub(h,p),m=r.mul(t,m),m=r.add(m,u),u=r.add(h,h),h=r.add(u,h),h=r.add(h,p),h=r.mul(h,m),l=r.add(l,h),p=r.mul(o,a),p=r.add(p,p),h=r.mul(p,m),c=r.sub(c,h),u=r.mul(p,f),u=r.add(u,u),u=r.add(u,u),new w(c,l,u)}add(t){y(t);const{px:n,py:i,pz:s}=this,{px:o,py:a,pz:c}=t;let l=r.ZERO,u=r.ZERO,h=r.ZERO;const f=e.a,p=r.mul(e.b,d);let m=r.mul(n,o),g=r.mul(i,a),b=r.mul(s,c),v=r.add(n,i),A=r.add(o,a);v=r.mul(v,A),A=r.add(m,g),v=r.sub(v,A),A=r.add(n,s);let E=r.add(o,c);return A=r.mul(A,E),E=r.add(m,b),A=r.sub(A,E),E=r.add(i,s),l=r.add(a,c),E=r.mul(E,l),l=r.add(g,b),E=r.sub(E,l),h=r.mul(f,A),l=r.mul(p,b),h=r.add(l,h),l=r.sub(g,h),h=r.add(g,h),u=r.mul(l,h),g=r.add(m,m),g=r.add(g,m),b=r.mul(f,b),A=r.mul(p,A),g=r.add(g,b),b=r.sub(m,b),b=r.mul(f,b),A=r.add(A,b),m=r.mul(g,A),u=r.add(u,m),m=r.mul(E,A),l=r.mul(v,l),l=r.sub(l,m),m=r.mul(v,g),h=r.mul(E,h),h=r.add(h,m),new w(l,u,h)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return v.wNAFCached(this,g,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(w.fromAffine)}))}multiplyUnsafe(t){const n=w.ZERO;if(t===l)return n;if(p(t),t===u)return this;const{endo:i}=e;if(!i)return v.unsafeLadder(this,t);let{k1neg:s,k1:o,k2neg:a,k2:c}=i.splitScalar(t),h=n,d=n,f=this;for(;o>l||c>l;)o&u&&(h=h.add(f)),c&u&&(d=d.add(f)),f=f.double(),o>>=u,c>>=u;return s&&(h=h.negate()),a&&(d=d.negate()),d=new w(r.mul(d.px,i.beta),d.py,d.pz),h.add(d)}multiply(t){p(t);let n,i,s=t;const{endo:o}=e;if(o){const{k1neg:t,k1:e,k2neg:a,k2:c}=o.splitScalar(s);let{p:l,f:u}=this.wNAF(e),{p:h,f:d}=this.wNAF(c);l=v.constTimeNegate(t,l),h=v.constTimeNegate(a,h),h=new w(r.mul(h.px,o.beta),h.py,h.pz),n=l.add(h),i=u.add(d)}else{const{p:t,f:e}=this.wNAF(s);n=t,i=e}return w.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),s=i(this,e).add(i(t,r));return s.is0()?void 0:s}toAffine(t){const{px:e,py:n,pz:i}=this,s=this.is0();null==t&&(t=s?r.ONE:r.inv(i));const o=r.mul(e,t),a=r.mul(n,t),c=r.mul(i,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw new Error("invZ was invalid");return{x:o,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===u)return!0;if(r)return r(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===u?this:r?r(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),a(w,this,t)}toHex(t=!0){return i.bytesToHex(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,r.ONE),w.ZERO=new w(r.ZERO,r.ONE,r.ZERO);const b=e.nBitLength,v=(0,o.wNAF)(w,e.endo?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:h,isWithinCurveOrder:f}}function m(t,e){const r=t.ORDER;let n=l;for(let t=r-u;t%h===l;t/=h)n+=u;const i=n,s=h<{let n=g,s=t.pow(r,p),o=t.sqr(s);o=t.mul(o,r);let a=t.mul(e,o);a=t.pow(a,c),a=t.mul(a,s),s=t.mul(a,r),o=t.mul(a,e);let l=t.mul(o,s);a=t.pow(l,m);let d=t.eql(a,t.ONE);s=t.mul(o,y),a=t.mul(l,n),o=t.cmov(s,o,d),l=t.cmov(a,l,d);for(let e=i;e>u;e--){let r=e-h;r=h<{let s=t.sqr(i);const o=t.mul(e,i);s=t.mul(s,o);let a=t.pow(s,r);a=t.mul(a,o);const c=t.mul(a,n),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return w}e.weierstrassPoints=p,e.weierstrass=function(t){const r=function(t){const e=(0,o.validateBasic)(t);return i.validateObject(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:c}=r,h=a.BYTES+1,d=2*a.BYTES+1;function f(t){return n.mod(t,c)}function m(t){return n.invert(t,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:w,isWithinCurveOrder:b}=p({...r,toBytes(t,e,r){const n=e.toAffine(),s=a.toBytes(n.x),o=i.concatBytes;return r?o(Uint8Array.from([e.hasEvenY()?2:3]),s):o(Uint8Array.from([4]),s,a.toBytes(n.y))},fromBytes(t){const e=t.length,r=t[0],n=t.subarray(1);if(e!==h||2!==r&&3!==r){if(e===d&&4===r)return{x:a.fromBytes(n.subarray(0,a.BYTES)),y:a.fromBytes(n.subarray(a.BYTES,2*a.BYTES))};throw new Error(`Point of length ${e} was invalid. Expected ${h} compressed bytes or ${d} uncompressed bytes`)}{const t=i.bytesToNumberBE(n);if(!(l<(s=t)&&si.bytesToHex(i.numberToBytesBE(t,r.nByteLength));function A(t){return t>c>>u}const E=(t,e,r)=>i.bytesToNumberBE(t.slice(e,r));class x{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const e=r.nByteLength;return t=(0,s.ensureBytes)("compactSignature",t,2*e),new x(E(t,0,e),E(t,e,2*e))}static fromDER(t){const{r,s:n}=e.DER.toSig((0,s.ensureBytes)("DER",t));return new x(r,n)}assertValidity(){if(!b(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!b(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new x(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:n,recovery:i}=this,o=C((0,s.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const c=2===i||3===i?e+r.n:e;if(c>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0==(1&i)?"02":"03",u=g.fromHex(l+v(c)),h=m(c),d=f(-o*h),p=f(n*h),y=g.BASE.multiplyAndAddUnsafe(u,d,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return A(this.s)}normalizeS(){return this.hasHighS()?new x(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return e.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const _={isValidPrivateKey(t){try{return y(t),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const t=n.getMinHashLength(r.n);return n.mapHashToField(r.randomBytes(t),r.n)},precompute:(t=8,e=g.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function S(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===h||n===d:r?n===2*h||n===2*d:t instanceof g}const M=r.bits2int||function(t){const e=i.bytesToNumberBE(t),n=8*t.length-r.nBitLength;return n>0?e>>BigInt(n):e},C=r.bits2int_modN||function(t){return f(M(t))},k=i.bitMask(r.nBitLength);function I(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(l<=t&&tt in n)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=r;let{lowS:h,prehash:d,extraEntropy:p}=n;null==h&&(h=!0),t=(0,s.ensureBytes)("msgHash",t),d&&(t=(0,s.ensureBytes)("prehashed msgHash",o(t)));const w=C(t),v=y(e),E=[I(v),I(w)];if(null!=p){const t=!0===p?c(a.BYTES):p;E.push((0,s.ensureBytes)("extraEntropy",t))}const _=i.concatBytes(...E),S=w;return{seed:_,k2sig:function(t){const e=M(t);if(!b(e))return;const r=m(e),n=g.BASE.multiply(e).toAffine(),i=f(n.x);if(i===l)return;const s=f(r*f(S+i*v));if(s===l)return;let o=(n.x===i?0:2)|Number(n.y&u),a=s;return h&&A(s)&&(a=function(t){return A(t)?f(-t):t}(s),o^=1),new x(i,a,o)}}}(t,e,n),h=r;return i.createHmacDrbg(h.hash.outputLen,h.nByteLength,h.hmac)(o,c)},verify:function(t,n,i,o=O){const a=t;if(n=(0,s.ensureBytes)("msgHash",n),i=(0,s.ensureBytes)("publicKey",i),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=o;let u,h;try{if("string"==typeof a||a instanceof Uint8Array)try{u=x.fromDER(a)}catch(t){if(!(t instanceof e.DER.Err))throw t;u=x.fromCompact(a)}else{if("object"!=typeof a||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");{const{r:t,s:e}=a;u=new x(t,e)}}h=g.fromHex(i)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(n=r.hash(n));const{r:d,s:p}=u,y=C(n),w=m(p),b=f(y*w),v=f(d*w),A=g.BASE.multiplyAndAddUnsafe(h,b,v)?.toAffine();return!!A&&f(A.x)===d},ProjectivePoint:g,Signature:x,utils:_}},e.SWUFpSqrtRatio=m,e.mapToCurveSimpleSWU=function(t,e){if(n.validateField(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const r=m(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return n=>{let i,s,o,a,c,l,u,h;i=t.sqr(n),i=t.mul(i,e.Z),s=t.sqr(i),s=t.add(s,i),o=t.add(s,t.ONE),o=t.mul(o,e.B),a=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),a=t.mul(a,e.A),s=t.sqr(o),l=t.sqr(a),c=t.mul(l,e.A),s=t.add(s,c),s=t.mul(s,o),l=t.mul(l,a),c=t.mul(l,e.B),s=t.add(s,c),u=t.mul(i,o);const{isValid:d,value:f}=r(s,l);h=t.mul(i,n),h=t.mul(h,f),u=t.cmov(u,o,d),h=t.cmov(h,f,d);const p=t.isOdd(n)===t.isOdd(h);return h=t.cmov(t.neg(h),h,p),u=t.div(u,a),{x:u,y:h}}}},2958:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.schnorr=e.secp256k1=void 0;const n=r(7366),i=r(9681),s=r(3570),o=r(2541),a=r(3912),c=r(6791),l=r(79),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),f=BigInt(2),p=(t,e)=>(t+e/f)/e;function m(t){const e=u,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),a=BigInt(23),c=BigInt(44),l=BigInt(88),h=t*t*t%e,d=h*h*t%e,p=(0,s.pow2)(d,r,e)*d%e,m=(0,s.pow2)(p,r,e)*d%e,y=(0,s.pow2)(m,f,e)*h%e,w=(0,s.pow2)(y,i,e)*y%e,b=(0,s.pow2)(w,o,e)*w%e,v=(0,s.pow2)(b,c,e)*b%e,A=(0,s.pow2)(v,l,e)*v%e,E=(0,s.pow2)(A,c,e)*b%e,x=(0,s.pow2)(E,r,e)*d%e,_=(0,s.pow2)(x,a,e)*w%e,S=(0,s.pow2)(_,n,e)*h%e,M=(0,s.pow2)(S,f,e);if(!g.eql(g.sqr(M),t))throw new Error("Cannot find square root");return M}const g=(0,s.Field)(u,void 0,void 0,{sqrt:m});e.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=h,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,a=BigInt("0x100000000000000000000000000000000"),c=p(o*t,e),l=p(-n*t,e);let u=(0,s.mod)(t-c*r-l*i,e),f=(0,s.mod)(-c*n-l*o,e);const m=u>a,g=f>a;if(m&&(u=e-u),g&&(f=e-f),u>a||f>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:m,k1:u,k2neg:g,k2:f}}}},n.sha256);const y=BigInt(0),w=t=>"bigint"==typeof t&&yt.charCodeAt(0))));r=(0,a.concatBytes)(e,e),b[t]=r}return(0,n.sha256)((0,a.concatBytes)(r,...e))}const A=t=>t.toRawBytes(!0).slice(1),E=t=>(0,a.numberToBytesBE)(t,32),x=t=>(0,s.mod)(t,u),_=t=>(0,s.mod)(t,h),S=e.secp256k1.ProjectivePoint;function M(t){let r=e.secp256k1.utils.normPrivateKeyToScalar(t),n=S.fromPrivateKey(r);return{scalar:n.hasEvenY()?r:_(-r),bytes:A(n)}}function C(t){if(!w(t))throw new Error("bad x: need 0 < x < p");const e=x(t*t);let r=m(x(e*t+BigInt(7)));r%f!==y&&(r=x(-r));const n=new S(t,r,d);return n.assertValidity(),n}function k(...t){return _((0,a.bytesToNumberBE)(v("BIP0340/challenge",...t)))}function I(t,e,r){const n=(0,a.ensureBytes)("signature",t,64),i=(0,a.ensureBytes)("message",e),s=(0,a.ensureBytes)("publicKey",r,32);try{const t=C((0,a.bytesToNumberBE)(s)),e=(0,a.bytesToNumberBE)(n.subarray(0,32));if(!w(e))return!1;const r=(0,a.bytesToNumberBE)(n.subarray(32,64));if(!("bigint"==typeof(u=r)&&y(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),O=(()=>(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),N=(()=>(0,c.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:r}=O(g.create(t[0]));return P(e,r)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256}))();e.hashToCurve=N.hashToCurve,e.encodeToCurve=N.encodeToCurve},6363:(t,e)=>{"use strict";function r(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function n(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function s(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(t.outputLen),r(t.blockLen)}function o(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const n=r(6363),i=r(9681);class s extends i.Hash{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.createView)(this.buffer)}update(t){(0,n.exists)(this);const{view:e,buffer:r,blockLen:s}=this,o=(t=(0,i.toBytes)(t)).length;for(let n=0;ns-a&&(this.process(r,0),a=0);for(let t=a;t>i&s),a=Number(r&s),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}(r,s-8,BigInt(8*this.length),o),this.process(r,0);const c=(0,i.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,h=this.get();if(u>h.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.add5L=e.add5H=e.add4H=e.add4L=e.add3H=e.add3L=e.add=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=e.split=e.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(t,e=!1){return e?{h:Number(t&r),l:Number(t>>n&r)}:{h:0|Number(t>>n&r),l:0|Number(t&r)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0);e.toBig=o;const a=(t,e,r)=>t>>>r;e.shrSH=a;const c=(t,e,r)=>t<<32-r|e>>>r;e.shrSL=c;const l=(t,e,r)=>t>>>r|e<<32-r;e.rotrSH=l;const u=(t,e,r)=>t<<32-r|e>>>r;e.rotrSL=u;const h=(t,e,r)=>t<<64-r|e>>>r-32;e.rotrBH=h;const d=(t,e,r)=>t>>>r-32|e<<64-r;e.rotrBL=d;const f=(t,e)=>e;e.rotr32H=f;const p=(t,e)=>t;e.rotr32L=p;const m=(t,e,r)=>t<>>32-r;e.rotlSH=m;const g=(t,e,r)=>e<>>32-r;e.rotlSL=g;const y=(t,e,r)=>e<>>64-r;e.rotlBH=y;const w=(t,e,r)=>t<>>64-r;function b(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}}e.rotlBL=w,e.add=b;const v=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0);e.add3L=v;const A=(t,e,r,n)=>e+r+n+(t/2**32|0)|0;e.add3H=A;const E=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0);e.add4L=E;const x=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0;e.add4H=x;const _=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0);e.add5L=_;const S=(t,e,r,n,i,s)=>e+r+n+i+s+(t/2**32|0)|0;e.add5H=S;const M={fromBig:i,split:s,toBig:o,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:h,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:m,rotlSL:g,rotlBH:y,rotlBL:w,add:b,add3L:v,add3H:A,add4L:E,add4H:x,add5H:S,add5L:_};e.default=M},754:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},798:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const n=r(6363),i=r(9681);class s extends i.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(t);const r=(0,i.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,o=new Uint8Array(s);o.set(r.length>s?t.create().update(r).digest():r);for(let t=0;tnew s(t,e).update(r).digest(),e.hmac.create=(t,e)=>new s(t,e)},4112:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pbkdf2Async=e.pbkdf2=void 0;const n=r(6363),i=r(798),s=r(9681);function o(t,e,r,o){(0,n.hash)(t);const a=(0,s.checkOpts)({dkLen:32,asyncTick:10},o),{c,dkLen:l,asyncTick:u}=a;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const h=(0,s.toBytes)(e),d=(0,s.toBytes)(r),f=new Uint8Array(l),p=i.hmac.create(t,h),m=p._cloneInto().update(d);return{c,dkLen:l,asyncTick:u,DK:f,PRF:p,PRFSalt:m}}function a(t,e,r,n,i){return t.destroy(),e.destroy(),n&&n.destroy(),i.fill(0),r}e.pbkdf2=function(t,e,r,n){const{c:i,dkLen:c,DK:l,PRF:u,PRFSalt:h}=o(t,e,r,n);let d;const f=new Uint8Array(4),p=(0,s.createView)(f),m=new Uint8Array(u.outputLen);for(let t=1,e=0;e{h._cloneInto(f).update(g).digestInto(g);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.RIPEMD160=void 0;const n=r(915),i=r(9681),s=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((t,e)=>e));let a=[o],c=[o.map((t=>(9*t+5)%16))];for(let t=0;t<4;t++)for(let e of[a,c])e.push(e[t].map((t=>s[t])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((t=>new Uint8Array(t))),u=a.map(((t,e)=>t.map((t=>l[e][t])))),h=c.map(((t,e)=>t.map((t=>l[e][t])))),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),p=(t,e)=>t<>>32-e;function m(t,e,r,n){return 0===t?e^r^n:1===t?e&r|~e&n:2===t?(e|~r)^n:3===t?e&n|r&~n:e^(r|~n)}const g=new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:t,h1:e,h2:r,h3:n,h4:i}=this;return[t,e,r,n,i]}set(t,e,r,n,i){this.h0=0|t,this.h1=0|e,this.h2=0|r,this.h3=0|n,this.h4=0|i}process(t,e){for(let r=0;r<16;r++,e+=4)g[r]=t.getUint32(e,!0);let r=0|this.h0,n=r,i=0|this.h1,s=i,o=0|this.h2,l=o,y=0|this.h3,w=y,b=0|this.h4,v=b;for(let t=0;t<5;t++){const e=4-t,A=d[t],E=f[t],x=a[t],_=c[t],S=u[t],M=h[t];for(let e=0;e<16;e++){const n=p(r+m(t,i,o,y)+g[x[e]]+A,S[e])+b|0;r=b,b=y,y=0|p(o,10),o=i,i=n}for(let t=0;t<16;t++){const r=p(n+m(e,s,l,w)+g[_[t]]+E,M[t])+v|0;n=v,v=w,w=0|p(l,10),l=s,s=r}}this.set(this.h1+o+w|0,this.h2+y+v|0,this.h3+b+n|0,this.h4+r+s|0,this.h0+i+l|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}e.RIPEMD160=y,e.ripemd160=(0,i.wrapConstructor)((()=>new y))},9468:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scryptAsync=e.scrypt=void 0;const n=r(6363),i=r(7366),s=r(4112),o=r(9681),a=(t,e)=>t<>>32-e;function c(t,e,r,n,i,s){let o=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],h=t[e++]^r[n++],d=t[e++]^r[n++],f=t[e++]^r[n++],p=t[e++]^r[n++],m=t[e++]^r[n++],g=t[e++]^r[n++],y=t[e++]^r[n++],w=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],A=t[e++]^r[n++],E=t[e++]^r[n++],x=o,_=c,S=l,M=u,C=h,k=d,I=f,P=p,O=m,N=g,T=y,R=w,B=b,L=v,U=A,j=E;for(let t=0;t<8;t+=2)C^=a(x+B|0,7),O^=a(C+x|0,9),B^=a(O+C|0,13),x^=a(B+O|0,18),N^=a(k+_|0,7),L^=a(N+k|0,9),_^=a(L+N|0,13),k^=a(_+L|0,18),U^=a(T+I|0,7),S^=a(U+T|0,9),I^=a(S+U|0,13),T^=a(I+S|0,18),M^=a(j+R|0,7),P^=a(M+j|0,9),R^=a(P+M|0,13),j^=a(R+P|0,18),_^=a(x+M|0,7),S^=a(_+x|0,9),M^=a(S+_|0,13),x^=a(M+S|0,18),I^=a(k+C|0,7),P^=a(I+k|0,9),C^=a(P+I|0,13),k^=a(C+P|0,18),R^=a(T+N|0,7),O^=a(R+T|0,9),N^=a(O+R|0,13),T^=a(N+O|0,18),B^=a(j+U|0,7),L^=a(B+j|0,9),U^=a(L+B|0,13),j^=a(U+L|0,18);i[s++]=o+x|0,i[s++]=c+_|0,i[s++]=l+S|0,i[s++]=u+M|0,i[s++]=h+C|0,i[s++]=d+k|0,i[s++]=f+I|0,i[s++]=p+P|0,i[s++]=m+O|0,i[s++]=g+N|0,i[s++]=y+T|0,i[s++]=w+R|0,i[s++]=b+B|0,i[s++]=v+L|0,i[s++]=A+U|0,i[s++]=E+j|0}function l(t,e,r,n,i){let s=n+0,o=n+16*i;for(let n=0;n<16;n++)r[o+n]=t[e+16*(2*i-1)+n];for(let n=0;n0&&(o+=16),c(r,s,t,e+=16,r,o)}function u(t,e,r){const a=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:c,r:l,p:u,dkLen:h,asyncTick:d,maxmem:f,onProgress:p}=a;if((0,n.number)(c),(0,n.number)(l),(0,n.number)(u),(0,n.number)(h),(0,n.number)(d),(0,n.number)(f),void 0!==p&&"function"!=typeof p)throw new Error("progressCb should be function");const m=128*l,g=m/4;if(c<=1||0!=(c&c-1)||c>=2**(m/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/m)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(h<0||h>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const y=m*(c+u);if(y>f)throw new Error(`Scrypt: parameters too large, ${y} (128 * r * (N + p)) > ${f} (maxmem)`);const w=(0,s.pbkdf2)(i.sha256,t,e,{c:1,dkLen:m*u}),b=(0,o.u32)(w),v=(0,o.u32)(new Uint8Array(m*c)),A=(0,o.u32)(new Uint8Array(m));let E=()=>{};if(p){const t=2*c*u,e=Math.max(Math.floor(t/1e4),1);let r=0;E=()=>{r++,!p||r%e&&r!==t||p(r/t)}}return{N:c,r:l,p:u,dkLen:h,blockSize32:g,V:v,B32:b,B:w,tmp:A,blockMixCb:E,asyncTick:d}}function h(t,e,r,n,o){const a=(0,s.pbkdf2)(i.sha256,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),o.fill(0),a}e.scrypt=function(t,e,r){const{N:n,r:i,p:s,dkLen:o,blockSize32:a,V:c,B32:d,B:f,tmp:p,blockMixCb:m}=u(t,e,r);for(let t=0;t{l(d,r,d,r+=c,i),g()})),l(d,(n-1)*c,f,e,i),g(),await(0,o.asyncLoop)(n,y,(()=>{const t=f[e+c-16]%n;for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha224=e.sha256=void 0;const n=r(915),i=r(9681),s=(t,e,r)=>t&e^t&r^e&r,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class l extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:s,G:o,H:a}=this;return[t,e,r,n,i,s,o,a]}set(t,e,r,n,i,s,o,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=c[t-15],r=c[t-2],n=(0,i.rotr)(e,7)^(0,i.rotr)(e,18)^e>>>3,s=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;c[t]=s+c[t-7]+n+c[t-16]|0}let{A:r,B:n,C:a,D:l,E:u,F:h,G:d,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+((p=u)&h^~p&d)+o[t]+c[t]|0,m=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+s(r,n,a)|0;f=d,d=h,h=u,u=l+e|0,l=a,a=n,n=r,r=e+m|0}var p;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,l=l+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,n,a,l,u,h,d,f)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends l{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}e.sha256=(0,i.wrapConstructor)((()=>new l)),e.sha224=(0,i.wrapConstructor)((()=>new u))},7910:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const n=r(6363),i=r(4881),s=r(9681),[o,a,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),h=BigInt(2),d=BigInt(7),f=BigInt(256),p=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=l;for(let t=0;t<7;t++)e=(e<>d)*p)%f,e&h&&(i^=u<<(u<r>32?(0,i.rotlBH)(t,e,r):(0,i.rotlSH)(t,e,r),w=(t,e,r)=>r>32?(0,i.rotlBL)(t,e,r):(0,i.rotlSL)(t,e,r);function b(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,s=r[i],o=r[i+1],a=y(s,o,1)^r[n],c=w(s,o,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=c}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],s=y(e,i,n),c=w(e,i,n),l=o[r];e=t[l],i=t[l+1],t[l]=s,t[l+1]=c}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=m[n],t[1]^=g[n]}r.fill(0)}e.keccakP=b;class v extends s.Hash{constructor(t,e,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,s.u32)(this.state)}keccak(){b(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,n.exists)(this);const{blockLen:e,state:r}=this,i=(t=(0,s.toBytes)(t)).length;for(let n=0;n=r&&this.keccak();const s=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+s),n),this.posOut+=s,n+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,n.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,n.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:s}=this;return t||(t=new v(e,r,n,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=s,t.destroyed=this.destroyed,t}}e.Keccak=v;const A=(t,e,r)=>(0,s.wrapConstructor)((()=>new v(e,t,r)));e.sha3_224=A(6,144,28),e.sha3_256=A(6,136,32),e.sha3_384=A(6,104,48),e.sha3_512=A(6,72,64),e.keccak_224=A(1,144,28),e.keccak_256=A(1,136,32),e.keccak_384=A(1,104,48),e.keccak_512=A(1,72,64);const E=(t,e,r)=>(0,s.wrapXOFConstructorWithOpts)(((n={})=>new v(e,t,void 0===n.dkLen?r:n.dkLen,!0)));e.shake128=E(31,168,16),e.shake256=E(31,136,32)},937:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha384=e.sha512_256=e.sha512_224=e.sha512=e.SHA512=void 0;const n=r(915),i=r(4881),s=r(9681),[o,a]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:r,Bl:n,Ch:i,Cl:s,Dh:o,Dl:a,Eh:c,El:l,Fh:u,Fl:h,Gh:d,Gl:f,Hh:p,Hl:m}=this;return[t,e,r,n,i,s,o,a,c,l,u,h,d,f,p,m]}set(t,e,r,n,i,s,o,a,c,l,u,h,d,f,p,m){this.Ah=0|t,this.Al=0|e,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|s,this.Dh=0|o,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|h,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|m}process(t,e){for(let r=0;r<16;r++,e+=4)c[r]=t.getUint32(e),l[r]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|c[t-15],r=0|l[t-15],n=i.default.rotrSH(e,r,1)^i.default.rotrSH(e,r,8)^i.default.shrSH(e,r,7),s=i.default.rotrSL(e,r,1)^i.default.rotrSL(e,r,8)^i.default.shrSL(e,r,7),o=0|c[t-2],a=0|l[t-2],u=i.default.rotrSH(o,a,19)^i.default.rotrBH(o,a,61)^i.default.shrSH(o,a,6),h=i.default.rotrSL(o,a,19)^i.default.rotrBL(o,a,61)^i.default.shrSL(o,a,6),d=i.default.add4L(s,h,l[t-7],l[t-16]),f=i.default.add4H(d,n,u,c[t-7],c[t-16]);c[t]=0|f,l[t]=0|d}let{Ah:r,Al:n,Bh:s,Bl:u,Ch:h,Cl:d,Dh:f,Dl:p,Eh:m,El:g,Fh:y,Fl:w,Gh:b,Gl:v,Hh:A,Hl:E}=this;for(let t=0;t<80;t++){const e=i.default.rotrSH(m,g,14)^i.default.rotrSH(m,g,18)^i.default.rotrBH(m,g,41),x=i.default.rotrSL(m,g,14)^i.default.rotrSL(m,g,18)^i.default.rotrBL(m,g,41),_=m&y^~m&b,S=g&w^~g&v,M=i.default.add5L(E,x,S,a[t],l[t]),C=i.default.add5H(M,A,e,_,o[t],c[t]),k=0|M,I=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),P=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),O=r&s^r&h^s&h,N=n&u^n&d^u&d;A=0|b,E=0|v,b=0|y,v=0|w,y=0|m,w=0|g,({h:m,l:g}=i.default.add(0|f,0|p,0|C,0|k)),f=0|h,p=0|d,h=0|s,d=0|u,s=0|r,u=0|n;const T=i.default.add3L(k,P,N);r=i.default.add3H(T,C,I,O),n=0|T}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:s,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|s,0|u)),({h,l:d}=i.default.add(0|this.Ch,0|this.Cl,0|h,0|d)),({h:f,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|f,0|p)),({h:m,l:g}=i.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:y,l:w}=i.default.add(0|this.Fh,0|this.Fl,0|y,0|w)),({h:b,l:v}=i.default.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:A,l:E}=i.default.add(0|this.Hh,0|this.Hl,0|A,0|E)),this.set(r,n,s,u,h,d,f,p,m,g,y,w,b,v,A,E)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=u;class h extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}e.sha512=(0,s.wrapConstructor)((()=>new u)),e.sha512_224=(0,s.wrapConstructor)((()=>new h)),e.sha512_256=(0,s.wrapConstructor)((()=>new d)),e.sha384=(0,s.wrapConstructor)((()=>new f))},9681:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const n=r(754),i=t=>t instanceof Uint8Array;if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,e)=>t<<32-e|t>>>e,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!e.isLE)throw new Error("Non little-endian hardware is not supported");const s=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function o(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function a(t){if("string"==typeof t&&(t=o(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}e.bytesToHex=function(t){if(!i(t))throw new Error("Uint8Array expected");let e="";for(let r=0;r{},e.asyncLoop=async function(t,r,n){let i=Date.now();for(let s=0;s=0&&tt+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e},e.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!==c.call(e))throw new Error("Options should be object or undefined");return Object.assign(t,e)},e.wrapConstructor=function(t){const e=e=>t().update(a(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e},e.wrapConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.wrapXOFConstructorWithOpts=function(t){const e=(e,r)=>t(r).update(a(e)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=e=>t(e),e},e.randomBytes=function(t=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},8415:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>A,__asyncGenerator:()=>v,__asyncValues:()=>E,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>k,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:()=>M,__importStar:()=>S,__makeTemplateObject:()=>x,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArray:()=>w,__spreadArrays:()=>y,__values:()=>p});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof b?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function A(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:b(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var _=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&d(e,t,r);return _(e,t),e}function M(t){return t&&t.__esModule?t:{default:t}}function C(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function k(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r}function I(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},4278:(t,e,r)=>{"use strict";var n=r(3614),i=r(3206),s=new n(0),o=new n(-1),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(t){var e=t?t.toLowerCase():"ether",r=a[e];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new n(r,10)}function l(t){if("string"==typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"==typeof t)return String(t);if("object"==typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}t.exports={unitMap:a,numberToString:l,getValueOfUnit:c,fromWei:function(t,e,r){var n=i(t),l=n.lt(s),u=c(e),h=a[e].length-1||1,d=r||{};l&&(n=n.mul(o));for(var f=n.mod(u).toString(10);f.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var d=h[0],f=h[1];if(d||(d="0"),f||(f="0"),f.length>s)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;f.length=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],f=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);r=(p=p.idivn(f)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function p(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},7187:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}m(t,e,s,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){var i,s,o,l;if(a(r),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),o=s[e]),void 0===o)o=s[e]=r,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=c(t))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=s[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var l=c.length,u=p(c,l);for(r=0;r=0;s--)if(r[s]===e||r[s].listener===e){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},2806:t=>{"use strict";t.exports=function(t,e){for(var r={},n=Object.keys(t),i=Array.isArray(e),s=0;s{"use strict";var n=r(5320),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=function(t,e,r){for(var n=0,i=t.length;n=3&&(s=r),"[object Array]"===i.call(t)?o(t,e,s):"string"==typeof t?a(t,e,s):c(t,e,s)}},7648:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var s=this;if("function"!=typeof s||n.call(s)!==i)throw new TypeError(e+s);for(var o,a=r.call(arguments,1),c=function(){if(this instanceof o){var e=s.apply(this,a.concat(r.call(arguments)));return Object(e)===e?e:this}return s.apply(t,a.concat(r.call(arguments)))},l=Math.max(0,s.length-a.length),u=[],h=0;h{"use strict";var n=r(7648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{"use strict";var n,i=SyntaxError,s=Function,o=TypeError,a=function(t){try{return s('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(t){try{return c(arguments,"callee").get}catch(t){return l}}}():l,h=r(1405)(),d=Object.getPrototypeOf||function(t){return t.__proto__},f={},p="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?d(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(t){var g=d(d(t));m["%Error.prototype%"]=g}var y=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=d(i.prototype))}return m[e]=r,r},w={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(8612),v=r(7642),A=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),x=b.call(Function.call,String.prototype.replace),_=b.call(Function.call,String.prototype.slice),S=b.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,k=function(t){var e=_(t,0,1),r=_(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(t,M,(function(t,e,r,i){n[n.length]=r?x(i,C,"$1"):e||t})),n},I=function(t,e){var r,n=t;if(v(w,n)&&(n="%"+(r=w[n])[0]+"%"),v(m,n)){var s=m[n];if(s===f&&(s=y(n)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",s=I("%"+n+"%",e),a=s.name,l=s.value,u=!1,h=s.alias;h&&(n=h[0],E(r,A([0,1],h)));for(var d=1,f=!0;d=r.length){var w=c(l,p);l=(f=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[p]}else f=v(l,p),l=l[p];f&&!u&&(m[a]=l)}}return l}},7296:(t,e,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},1405:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(t,e,r)=>{"use strict";var n=r(5419);t.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(t,e,r)=>{"use strict";var n=r(8612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},645:(t,e)=>{e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,c=(1<>1,u=-7,h=r?i-1:0,d=r?-1:1,f=t[e+h];for(h+=d,s=f&(1<<-u)-1,f>>=-u,u+=a;u>0;s=256*s+t[e+h],h+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+h],h+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),s-=l}return(f?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,c,l=8*s-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(o++,c/=2),o+h>=u?(a=0,o=u):o+h>=1?(a=(e*c-1)*Math.pow(2,i),o+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[r+f]=255&a,f+=p,a/=256,i-=8);for(o=o<0;t[r+f]=255&o,f+=p,o/=256,l-=8);t[r+f-p]|=128*m}},5717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2584:(t,e,r)=>{"use strict";var n=r(6410)(),i=r(1924)("Object.prototype.toString"),s=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},o=function(t){return!!s(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,t.exports=a?s:o},5320:t=>{"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var s=/^\s*class\b/,o=function(t){try{var e=n.call(t);return s.test(e)}catch(t){return!1}},a=function(t){try{return!o(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;c.call(d)===c.call(document.all)&&(h=function(t){if((u||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!o(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(l)return a(t);if(o(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},8662:(t,e,r)=>{"use strict";var n,i=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=r(6410)(),c=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(o.test(s.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!c)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&c(e)}return c(t)===n}},3944:t=>{t.exports=function(t){if("string"!=typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},5692:(t,e,r)=>{"use strict";var n=r(4029),i=r(3083),s=r(1924),o=s("Object.prototype.toString"),a=r(6410)(),c=r(7296),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),h=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1}return!!c&&function(t){var e=!1;return n(f,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},204:(t,e,r)=>{t.exports=self.fetch||(self.fetch=r(5869).default||r(5869))},1094:(t,e,r)=>{var n,i=r(4155);!function(){"use strict";var s="input is invalid type",o="object"==typeof window,a=o?window:{};a.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=r.g:c&&(a=self);var l=!a.JS_SHA3_NO_COMMON_JS&&t.exports,u=r.amdO,h=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),f=[4,1024,262144,67108864],p=[0,8,16,24],m=[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],y=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!a.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!h||!a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var v=function(t,e,r){return function(n){return new B(t,e,t).update(n)[r]()}},A=function(t,e,r){return function(n,i){return new B(t,e,i).update(n)[r]()}},E=function(t,e,r){return function(e,n,i,s){return C["cshake"+t].update(e,n,i,s)[r]()}},x=function(t,e,r){return function(e,n,i,s){return C["kmac"+t].update(e,n,i,s)[r]()}},_=function(t,e,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(t,e,r){B.call(this,t,e,r)}B.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}for(var n,i,o=this.blocks,a=this.byteCount,c=t.length,l=this.blockCount,u=0,d=this.s;u>2]|=t[u]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=a){for(this.start=n-a,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(t>>=8),++n;return e?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(t){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(s);if(null===t)throw new Error(s);if(h&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||h&&ArrayBuffer.isView(t)))throw new Error(s);e=!0}var n=0,i=t.length;if(e)n=i;else for(var o=0;o=57344?n+=3:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(t),n},B.prototype.bytepad=function(t,e){for(var r=this.encode(e),n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];o%e==0&&(U(r),s=0)}return i&&(t=r[s],a+=d[t>>4&15]+d[15&t],i>1&&(a+=d[t>>12&15]+d[t>>8&15]),i>2&&(a+=d[t>>20&15]+d[t>>16&15])),a},B.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,o=0,a=this.outputBits>>3;t=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(t);o>8&255,c[t+2]=e>>16&255,c[t+3]=e>>24&255;a%r==0&&U(n)}return s&&(t=a<<2,e=n[o],c[t]=255&e,s>1&&(c[t+1]=e>>8&255),s>2&&(c[t+2]=e>>16&255)),c},L.prototype=new B,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var U=function(t){var e,r,n,i,s,o,a,c,l,u,h,d,f,p,g,y,w,b,v,A,E,x,_,S,M,C,k,I,P,O,N,T,R,B,L,U,j,D,F,z,H,$,q,W,V,G,K,Z,Q,J,Y,X,tt,et,rt,nt,it,st,ot,at,ct,lt,ut;for(n=0;n<48;n+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],s=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],c=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],u=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(o<<1|a>>>31),r=(f=t[9]^t[19]^t[29]^t[39]^t[49])^(a<<1|o>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=i^(c<<1|l>>>31),r=s^(l<<1|c>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=o^(u<<1|h>>>31),r=a^(h<<1|u>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=c^(d<<1|f>>>31),r=l^(f<<1|d>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=u^(i<<1|s>>>31),r=h^(s<<1|i>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,p=t[0],g=t[1],G=t[11]<<4|t[10]>>>28,K=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,P=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,ct=t[30]<<9|t[31]>>>23,$=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,w=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,Q=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ut=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,rt=t[4]<<30|t[5]>>>2,U=t[14]<<6|t[15]>>>26,j=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,v=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,Y=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,M=t[7]<<28|t[6]>>>4,nt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,D=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,A=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,k=t[19]<<20|t[18]>>>12,st=t[29]<<7|t[28]>>>25,ot=t[28]<<7|t[29]>>>25,z=t[38]<<8|t[39]>>>24,H=t[39]<<8|t[38]>>>24,x=t[48]<<14|t[49]>>>18,_=t[49]<<14|t[48]>>>18,t[0]=p^~y&b,t[1]=g^~w&v,t[10]=S^~C&I,t[11]=M^~k&P,t[20]=B^~U&D,t[21]=L^~j&F,t[30]=W^~G&Z,t[31]=V^~K&Q,t[40]=et^~nt&st,t[41]=rt^~it&ot,t[2]=y^~b&A,t[3]=w^~v&E,t[12]=C^~I&O,t[13]=k^~P&N,t[22]=U^~D&z,t[23]=j^~F&H,t[32]=G^~Z&J,t[33]=K^~Q&Y,t[42]=nt^~st&at,t[43]=it^~ot&ct,t[4]=b^~A&x,t[5]=v^~E&_,t[14]=I^~O&T,t[15]=P^~N&R,t[24]=D^~z&$,t[25]=F^~H&q,t[34]=Z^~J&X,t[35]=Q^~Y&tt,t[44]=st^~at<,t[45]=ot^~ct&ut,t[6]=A^~x&p,t[7]=E^~_&g,t[16]=O^~T&S,t[17]=N^~R&M,t[26]=z^~$&B,t[27]=H^~q&L,t[36]=J^~X&W,t[37]=Y^~tt&V,t[46]=at^~lt&et,t[47]=ct^~ut&rt,t[8]=x^~p&y,t[9]=_^~g&w,t[18]=T^~S&C,t[19]=R^~M&k,t[28]=$^~B&U,t[29]=q^~L&j,t[38]=X^~W&G,t[39]=tt^~V&K,t[48]=lt^~et&nt,t[49]=ut^~rt&it,t[0]^=m[n],t[1]^=m[n+1]};if(l)t.exports=C;else{for(I=0;I{t=r.nmd(t);var n="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",h="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",y="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",v="[object DataView]",A=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[s]=x[o]=x[b]=x[a]=x[v]=x[c]=x[l]=x[u]=x[h]=x[d]=x[f]=x[m]=x[g]=x[y]=x[w]=!1;var _="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,M=_||S||Function("return this")(),C=e&&!e.nodeType&&e,k=C&&t&&!t.nodeType&&t,I=k&&k.exports===C,P=I&&_.process,O=function(){try{return P&&P.binding&&P.binding("util")}catch(t){}}(),N=O&&O.isTypedArray;function T(t,e){for(var r=-1,n=null==t?0:t.length;++ra))return!1;var l=s.get(t);if(l&&s.get(e))return l==e;var u=-1,h=!0,d=2&r?new bt:void 0;for(s.set(t,e),s.set(e,t);++u-1},yt.prototype.set=function(t,e){var r=this.__data__,n=At(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},wt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(it||yt),string:new gt}},wt.prototype.delete=function(t){var e=Ct(this,t).delete(t);return this.size-=e?1:0,e},wt.prototype.get=function(t){return Ct(this,t).get(t)},wt.prototype.has=function(t){return Ct(this,t).has(t)},wt.prototype.set=function(t,e){var r=Ct(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,n),this},bt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.clear=function(){this.__data__=new yt,this.size=0},vt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof yt){var n=r.__data__;if(!it||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new wt(n)}return r.set(t,e),this.size=r.size,this};var It=tt?function(t){return null==t?[]:(t=Object(t),function(e,r){for(var n=-1,i=null==e?0:e.length,s=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=i}function Dt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ft(t){return null!=t&&"object"==typeof t}var zt=N?function(t){return function(e){return t(e)}}(N):function(t){return Ft(t)&&jt(t.length)&&!!x[Et(t)]};function Ht(t){return null!=(e=t)&&jt(e.length)&&!Ut(e)?function(t,e){var r=Bt(t),n=!r&&Rt(t),i=!r&&!n&&Lt(t),s=!r&&!n&&!i&&zt(t),o=r||n||i||s,a=o?function(t,e){for(var r=-1,n=Array(t);++r{"use strict";var n=r(8764).Buffer,i=r(4155);Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidStatusCodeError=e.InvalidCertError=void 0;const s=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class o extends Error{constructor(t,e){super(t),this.fingerprint256=e}}e.InvalidCertError=o;class a extends Error{constructor(t){super(`Request Failed. Status Code: ${t}`),this.statusCode=t}}function c(t,e){if(!e||"text"===e||"json"===e)try{let r=new TextDecoder("utf8",{fatal:!0}).decode(t);if("text"===e)return r;try{return JSON.parse(r)}catch(t){if("json"===e)throw t;return r}}catch(t){if("text"===e||"json"===e)throw t}return t}e.InvalidStatusCodeError=a;let l={};function u(t,e){let i={...s,...e};const h=r(2260),d=r(2895),f=r(1865),{promisify:p}=r(9539),{resolve:m}=r(8575),g=!!/^https/.test(t);let y={method:i.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const w=t=>t.replace(/:| /g,"").toLowerCase();if(i.keepAlive){const t={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},e=[g,g&&i.sslPinnedCertificates?.map((t=>w(t))).sort()].join();y.agent=l[e]||(l[e]=new(g?d:h).Agent(t))}return"json"===i.type&&(y.headers["Content-Type"]="application/json"),i.data&&(i.method||(y.method="POST"),y.body="json"===i.type?JSON.stringify(i.data):i.data),y.headers={...y.headers,...i.headers},i.sslAllowSelfSigned&&(y.rejectUnauthorized=!1),new Promise(((e,r)=>{const s=async e=>{if(e&&"DEPTH_ZERO_SELF_SIGNED_CERT"===e.code)try{await u(t,{...i,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(t){t&&t.fingerprint256&&(e=new o(`Self-signed SSL certificate: ${t.fingerprint256}`,t.fingerprint256))}r(e)},l=(g?d:h).request(t,y,(o=>{o.on("error",s),(async()=>{try{e(await(async e=>{const r=e.statusCode;if(i.redirect&&300<=r&&r<400&&e.headers.location){if(10==i._redirectCount)throw new Error("Request failed. Too much redirects.");return i._redirectCount+=1,await u(m(t,e.headers.location),i)}if(i.expectStatusCode&&r!==i.expectStatusCode)throw e.resume(),new a(r);let s=[];for await(const t of e)s.push(t);let o=n.concat(s);const l=e.headers["content-encoding"];"br"===l&&(o=await p(f.brotliDecompress)(o)),"gzip"!==l&&"deflate"!==l||(o=await p(f.unzip)(o));const h=c(o,i.type);return i.full?{headers:e.headers,status:r,body:h}:h})(o))}catch(t){r(t)}})()}));l.on("error",s);const b=i.sslPinnedCertificates?.map((t=>w(t))),v=t=>{const e=w(t.getPeerCertificate()?.fingerprint256||"");if((e||!t.isSessionReused())&&!b.includes(e))return l.emit("error",new o(`Invalid SSL certificate: ${e} Expected: ${b}`,e)),l.abort()};i.sslPinnedCertificates&&l.on("socket",(t=>{t.listeners("secureConnect").map((t=>(t.name||"").replace("bound ",""))).includes("mfetchSecureConnect")||t.on("secureConnect",v.bind(null,t))})),i.keepAlive&&l.setNoDelay(!0),y.body&&l.write(y.body),l.end()}))}const h=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map((t=>t.toLowerCase()))),d=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((t=>t.toLowerCase())));async function f(t,e){let r={...s,...e};const n=new Headers;"json"===r.type&&n.set("Content-Type","application/json");let i=new URL(t);if(i.username){const t=btoa(`${i.username}:${i.password}`);n.set("Authorization",`Basic ${t}`),i.username="",i.password=""}t=""+i;for(let t in r.headers){const e=t.toLowerCase();(h.has(e)||r.cors&&!d.has(e))&&n.set(t,r.headers[t])}let o={headers:n,redirect:r.redirect?"follow":"manual"};r.referrer||(o.referrerPolicy="no-referrer"),r.cors&&(o.mode="cors"),r.data&&(r.method||(o.method="POST"),o.body="json"===r.type?JSON.stringify(r.data):r.data);const l=await fetch(t,o);if(r.expectStatusCode&&l.status!==r.expectStatusCode)throw new a(l.status);const u=c(new Uint8Array(await l.arrayBuffer()),r.type);return r.full?{headers:Object.fromEntries(l.headers.entries()),status:l.status,body:u}:u}const p=!!("object"==typeof i&&i.versions&&i.versions.node&&i.versions.v8);e.default=function(t,e){return(p?u:f)(t,e)}},3978:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=r(8764).Buffer}catch(t){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(t,e,r,n){for(var i=0,s=Math.min(t.length,r),o=e;o=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},s.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=a(t,r,r+6),this.words[n]|=i<>>26-s&4194303,(s+=24)>=26&&(s-=26,n++);r+6!==e&&(i=a(t,e,r+6),this.words[n]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,l=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],h=[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 d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r.strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215)||o!==this.length-1?l[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var d=u[t],f=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);r=(p=p.idivn(f)).isZero()?m+r:l[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function p(t,e,r){return(new m).mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r.strip()}(this,t,e):p(this,t,e),r},m.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},m.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=i/67108864|0,e+=s>>>26,this.words[r]=67108863&s}return 0!==e&&(this.words[r]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},s.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):r.strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(w,y),w.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new b;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},3206:(t,e,r)=>{var n=r(3978),i=r(9604);t.exports=function(t){if("string"==typeof t||"number"==typeof t){var e=new n(1),r=String(t).toLowerCase().trim(),s="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),o=i(r);if("-"===o.substr(0,1)&&(o=i(o.slice(1)),e=new n(-1,10)),!(o=""===o?"0":o).match(/^-?[0-9]+$/)&&o.match(/^[0-9A-Fa-f]+$/)||o.match(/^[a-fA-F]+$/)||!0===s&&o.match(/^[0-9A-Fa-f]+$/))return new n(o,16).mul(e);if((o.match(/^-?[0-9]+$/)||""===o)&&!1===s)return new n(o,10).mul(e)}else if("object"==typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new n(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},4155:t=>{var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&d())}function d(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u1)for(var r=1;r{const n=r(7138),i=r(5115),s=r(6907),o=r(3776);function a(t,e,r,s,o){const a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!n())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=e,e=s=void 0):2!==c||e.getContext||(s=r,r=e,e=void 0),new Promise((function(n,o){try{const o=i.create(r,s);n(t(o,e,s))}catch(t){o(t)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=r,r=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=e,e=void 0));try{const n=i.create(r,s);o(null,t(n,e,s))}catch(t){o(t)}}e.create=i.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,(function(t,e,r){return o.render(t,r)}))},7138:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},1845:(t,e,r)=>{const n=r(242).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=n(t),i=145===r?26:2*Math.ceil((r-13)/(2*e-2)),s=[r-7];for(let t=1;t{const n=r(6910),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=n.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*i.indexOf(this.data[e]);r+=i.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[e]),6)},t.exports=s},7245:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},3280:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,n){const i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},3424:(t,e,r)=>{const n=r(2378),i=r(6910);function s(t){this.mode=i.BYTE,"string"==typeof t&&(t=n(t)),this.data=new Uint8Array(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(let e=0,r=this.data.length;e{const n=r(4908),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return s[4*(t-1)+0];case n.M:return s[4*(t-1)+1];case n.Q:return s[4*(t-1)+2];case n.H:return s[4*(t-1)+3];default:return}}},4908:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return r}}},6526:(t,e,r)=>{const n=r(242).getSymbolSize;e.getPositions=function(t){const e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},1642:(t,e,r)=>{const n=r(242),i=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){const r=t.bit<<3|e;let s=r<<10;for(;n.getBCHDigit(s)-i>=0;)s^=1335<{const r=new Uint8Array(512),n=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)r[e]=t,n[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return n[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[n[t]+n[e]]}},5442:(t,e,r)=>{const n=r(6910),i=r(242);function s(t){this.mode=n.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=s},7126:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let r=0,n=0,i=0,s=null,o=null;for(let a=0;a=5&&(r+=n-5+3),s=e,n=1),e=t.get(c,a),e===o?i++:(i>=5&&(r+=i-5+3),o=e,i=1)}n>=5&&(r+=n-5+3),i>=5&&(r+=i-5+3)}return r},e.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(o,s),o>=10&&(1488===i||93===i)&&r++}return 40*r},e.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let n=0;n{const n=r(3114),i=r(7007);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!n.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return r}}},1085:(t,e,r)=>{const n=r(6910);function i(t){this.mode=n.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,r,n;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),n=parseInt(r,10),t.put(n,10);const i=this.data.length-e;i>0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*i+1))},t.exports=i},6143:(t,e,r)=>{const n=r(9729);e.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){const t=r[0];for(let i=0;i{const n=r(242),i=r(4908),s=r(7245),o=r(3280),a=r(1845),c=r(6526),l=r(7126),u=r(5393),h=r(2882),d=r(3103),f=r(1642),p=r(6910),m=r(6130);function g(t,e,r){const n=t.size,i=f.getEncodedBits(e,r);let s,o;for(s=0;s<15;s++)o=1==(i>>s&1),s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function y(t,e,r,i){let f;if(Array.isArray(t))f=m.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let n=e;if(!n){const e=m.rawSplit(t);n=d.getBestVersionForData(e,r)}f=m.fromString(t,n||40)}}const y=d.getBestVersionForData(f,r);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===e||6===e)||e>=2&&e<=4&&n>=2&&n<=4?t.set(i+e,s+n,!0,!0):t.set(i+e,s+n,!1,!0))}}(v,e),function(t){const e=t.size;for(let r=8;r=7&&function(t,e){const r=t.size,n=d.getEncodedBits(e);let i,s,o;for(let e=0;e<18;e++)i=Math.floor(e/3),s=e%3+r-8-3,o=1==(n>>e&1),t.set(i,s,o,!0),t.set(s,i,o,!0)}(v,e),function(t,e){const r=t.size;let n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!t.isReserved(i,a-r)){let n=!1;o>>s&1)),t.set(i,a-r,n),s--,-1===s&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}(v,w),isNaN(i)&&(i=l.getBestMask(v,g.bind(null,v,r))),l.applyMask(i,v),g(v,r,i),{modules:v,version:e,errorCorrectionLevel:r,maskPattern:i,segments:f}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,s,o=i.M;return void 0!==e&&(o=i.from(e.errorCorrectionLevel,i.M),r=d.from(e.version),s=l.from(e.maskPattern),e.toSJISFunc&&n.setToSJISFunction(e.toSJISFunc)),y(t,r,o,s)}},2882:(t,e,r)=>{const n=r(6143);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=n.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=n.mod(e,this.genPoly),i=this.degree-r.length;if(i>0){const t=new Uint8Array(this.degree);return t.set(r,i),t}return r},t.exports=i},7007:(t,e)=>{const r="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const s=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return s.test(t)},e.testNumeric=function(t){return o.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},6130:(t,e,r)=>{const n=r(6910),i=r(1085),s=r(8260),o=r(3424),a=r(5442),c=r(7007),l=r(242),u=r(5987);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const n=[];let i;for(;null!==(i=t.exec(r));)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function f(t){const e=d(c.NUMERIC,n.NUMERIC,t),r=d(c.ALPHANUMERIC,n.ALPHANUMERIC,t);let i,s;return l.isKanjiModeEnabled()?(i=d(c.BYTE,n.BYTE,t),s=d(c.KANJI,n.KANJI,t)):(i=d(c.BYTE_KANJI,n.BYTE,t),s=[]),e.concat(r,i,s).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case n.NUMERIC:return i.getBitsLength(t);case n.ALPHANUMERIC:return s.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return o.getBitsLength(t)}}function m(t,e){let r;const c=n.getBestModeForData(t);if(r=n.from(e,c),r!==n.BYTE&&r.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},e.rawSplit=function(t){return e.fromArray(f(t,l.isKanjiModeEnabled()))}},242:(t,e)=>{let r;const n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},3114:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},3103:(t,e,r)=>{const n=r(242),i=r(5393),s=r(4908),o=r(6910),a=r(3114),c=n.getBCHDigit(7973);function l(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let r=0;return t.forEach((function(t){const n=l(t.mode,e);r+=n+t.getBitsLength()})),r}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const s=8*(n.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e));if(r===o.MIXED)return s;const c=s-l(r,t);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,r){let n;const i=s.from(r,s.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let n=1;n<=40;n++)if(u(t,n)<=e.getCapacity(n,r,o.MIXED))return n}(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(let i=1;i<=40;i++)if(r<=e.getCapacity(i,n,t))return i}(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;n.getBCHDigit(e)-c>=0;)e^=7973<{const n=r(9653);e.render=function(t,e,r){let i=r,s=e;void 0!==i||e&&e.getContext||(i=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),i=n.getOptions(i);const o=n.getImageWidth(t.modules.size,i),a=s.getContext("2d"),c=a.createImageData(o,o);return n.qrToImageData(c.data,t,i),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});const s=e.render(t,r,i),o=i.type||"image/png",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}},3776:(t,e,r)=>{const n=r(9653);function i(t,e){const r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function s(t,e,r){let n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){const o=n.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,u=o.color.light.a?"':"",h="0&&l>0&&t[c-1]||(n+=o?s("M",l+r,.5+u+r):s("m",i,0),i=0,o=!1),l+1',d='viewBox="0 0 '+l+" "+l+'"',f=''+u+h+"\n";return"function"==typeof r&&r(null,f),f}},9653:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){const n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){const i=r.modules.size,s=r.modules.data,o=e.getScale(i,n),a=Math.floor((i+2*n.margin)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let e=0;e=c&&r>=c&&e{"use strict";const n=r(610),i=r(4020),s=r(500),o=r(2806),a=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function u(t,e){return e.decode?i(t):t}function h(t){return Array.isArray(t)?t.sort():"object"==typeof t?h(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function d(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function f(t){const e=(t=d(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function p(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function m(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"colon-list-separator":return(t,r,n)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};case"comma":case"separator":return(e,r,n)=>{const i="string"==typeof r&&r.includes(t.arrayFormatSeparator),s="string"==typeof r&&!i&&u(r,t).includes(t.arrayFormatSeparator);r=s?u(r,t):r;const o=i||s?r.split(t.arrayFormatSeparator).map((e=>u(e,t))):null===r?r:u(r,t);n[e]=o};case"bracket-separator":return(e,r,n)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(n[e]=r?u(r,t):r);const s=null===r?[]:r.split(t.arrayFormatSeparator).map((e=>u(e,t)));void 0!==n[e]?n[e]=[].concat(n[e],s):n[e]=s};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}(e),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const i of t.split("&")){if(""===i)continue;let[t,o]=s(e.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:u(o,e),r(u(t,e),o,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=p(r[t],e);else n[t]=p(r,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((t,e)=>{const r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=h(r):t[e]=r,t}),Object.create(null))}e.extract=f,e.parse=m,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const r=r=>e.skipNull&&null==t[r]||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{const i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[",i,"]"].join("")]:[...r,[l(e,t),"[",l(i,t),"]=",l(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),"[]"].join("")]:[...r,[l(e,t),"[]=",l(n,t)].join("")];case"colon-list-separator":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[l(e,t),":list="].join("")]:[...r,[l(e,t),":list=",l(n,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[l(r,t),e,l(i,t)].join("")]:[[n,l(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,l(e,t)]:[...r,[l(e,t),"=",l(n,t)].join("")]}}(e),i={};for(const e of Object.keys(t))r(e)||(i[e]=t[e]);const s=Object.keys(i);return!1!==e.sort&&s.sort(e.sort),s.map((r=>{const i=t[r];return void 0===i?"":null===i?l(r,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?l(r,e)+"[]":i.reduce(n(r),[]).join("&"):l(r,e)+"="+l(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[r,n]=s(t,"#");return Object.assign({url:r.split("?")[0]||"",query:m(f(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0,[a]:!0},r);const n=d(t.url).split("?")[0]||"",i=e.extract(t.url),s=e.parse(i,{sort:!1}),o=Object.assign(s,t.query);let c=e.stringify(o,r);c&&(c=`?${c}`);let u=function(t){let e="";const r=t.indexOf("#");return-1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(u=`#${r[a]?l(t.fragmentIdentifier,r):t.fragmentIdentifier}`),`${n}${c}${u}`},e.pick=(t,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[a]:!1},n);const{url:i,query:s,fragmentIdentifier:c}=e.parseUrl(t,n);return e.stringifyUrl({url:i,query:o(s,r),fragmentIdentifier:c},n)},e.exclude=(t,r,n)=>{const i=Array.isArray(r)?t=>!r.includes(t):(t,e)=>!r(t,e);return e.pick(t,i,n)}},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,i){r=r||"&",n=n||"=";var s={};if("string"!=typeof t||0===t.length)return s;var o=/\+/g;t=t.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var l=0;l=0?(u=p.substr(0,m),h=p.substr(m+1)):(u=p,h=""),d=decodeURIComponent(u),f=decodeURIComponent(h),e(s,d)?Array.isArray(s[d])?s[d].push(f):s[d]=[s[d],f]:s[d]=f}return s}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,i){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(i){var s=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map((function(t){return s+encodeURIComponent(e(t))})).join(r):s+encodeURIComponent(e(t[i]))})).join(r):i?encodeURIComponent(e(i))+n+encodeURIComponent(e(t)):""}},7673:(t,e,r)=>{"use strict";e.decode=e.parse=r(2587),e.encode=e.stringify=r(2361)},5346:t=>{"use strict";function e(t){try{return JSON.stringify(t)}catch(t){return'"[Circular]"'}}t.exports=function(t,r,n){var i=n&&n.stringify||e;if("object"==typeof t&&null!==t){var s=r.length+1;if(1===s)return t;var o=new Array(s);o[0]=i(t);for(var a=1;a-1?h:0,t.charCodeAt(f+1)){case 100:case 102:if(u>=c)break;if(null==r[u])break;h=c)break;if(null==r[u])break;h=c)break;if(void 0===r[u])break;h",h=f+2,f++;break}l+=i(r[u]),h=f+2,f++;break;case 115:if(u>=c)break;h{"use strict";var n=r(4155),i=65536,s=r(9509).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a{var n=r(8764),i=n.Buffer;function s(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},o.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},500:t=>{"use strict";t.exports=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const r=t.indexOf(e);return-1===r?[t]:[t.slice(0,r),t.slice(r+e.length)]}},610:t=>{"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},9604:(t,e,r)=>{var n=r(3944);t.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},655:(t,e,r)=>{"use strict";r.r(e),r.d(e,{__assign:()=>s,__asyncDelegator:()=>v,__asyncGenerator:()=>b,__asyncValues:()=>A,__await:()=>w,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>M,__createBinding:()=>d,__decorate:()=>a,__exportStar:()=>f,__extends:()=>i,__generator:()=>h,__importDefault:()=>_,__importStar:()=>x,__makeTemplateObject:()=>E,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>p});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function c(t,e){return function(r,n){e(r,n,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{c(n.next(t))}catch(t){s(t)}}function a(t){try{c(n.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((n=n.apply(t,e||[])).next())}))}function h(t,e){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,s=r.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function g(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(r=i[t](e)).value instanceof w?Promise.resolve(r.value.v).then(c,l):u(s[0][2],r)}catch(t){u(s[0][3],t)}var r}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}}function v(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,i){e[n]=t[n]?function(e){return(r=!r)?{value:w(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function A(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){!function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}(n,i,(e=t[r](e)).done,e.value)}))}}}function E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function _(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function M(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},5869:(t,e,r)=>{"use strict";function n(t,e){return e=e||{},new Promise((function(r,n){var i=new XMLHttpRequest,s=[],o=[],a={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return s},entries:function(){return o},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var l in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,r){s.push(e=e.toLowerCase()),o.push([e,r]),a[e]=a[e]?a[e]+","+r:r})),r(c())},i.onerror=n,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(l,e.headers[l]);i.send(e.body||null)}))}r.r(e),r.d(e,{default:()=>n})},2511:function(t,e,r){var n;t=r.nmd(t),function(i){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof r.g&&r.g;s.global!==s&&s.window!==s&&s.self;var o,a=2147483647,c=36,l=/^xn--/,u=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,p=String.fromCharCode;function m(t){throw RangeError(d[t])}function g(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function y(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+g((t=t.replace(h,".")).split("."),e).join(".")}function w(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+p(t)})).join("")}function v(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?f(t/700):t>>1,t+=f(t/e);t>455;n+=c)t=f(t/35);return f(n+36*t/(t+38))}function E(t){var e,r,n,i,s,o,l,u,h,d,p,g=[],y=t.length,w=0,v=128,E=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),g.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=y&&m("invalid-input"),((u=(p=t.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:c)>=c||u>f((a-w)/o))&&m("overflow"),w+=u*o,!(u<(h=l<=E?1:l>=E+26?26:l-E));l+=c)o>f(a/(d=c-h))&&m("overflow"),o*=d;E=A(w-s,e=g.length+1,0==s),f(w/e)>a-v&&m("overflow"),v+=f(w/e),w%=e,g.splice(w++,0,v)}return b(g)}function x(t){var e,r,n,i,s,o,l,u,h,d,g,y,b,E,x,_=[];for(y=(t=w(t)).length,e=128,r=0,s=72,o=0;o=e&&gf((a-r)/(b=n+1))&&m("overflow"),r+=(l-e)*b,e=l,o=0;oa&&m("overflow"),g==e){for(u=r,h=c;!(u<(d=h<=s?1:h>=s+26?26:h-s));h+=c)x=u-d,E=c-d,_.push(p(v(d+x%E,0))),u=f(x/E);_.push(p(v(u,0))),s=A(r,b,n==i),r=0,++n}++r,++e}return _.join("")}o={version:"1.3.2",ucs2:{decode:w,encode:b},decode:E,encode:x,toASCII:function(t){return y(t,(function(t){return u.test(t)?"xn--"+x(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?E(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)}()},8575:(t,e,r)=>{"use strict";var n=r(2511),i=r(2502);function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return i.isString(t)&&(t=b(t)),t instanceof s?t.format():s.prototype.format.call(t)},e.Url=s;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r(7673);function b(t,e,r){if(t&&i.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}s.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),a=-1!==s&&s127?T+="x":T+=N[R];if(!T.match(f)){var L=P.slice(0,C),U=P.slice(C+1),j=N.match(p);j&&(L.push(j[1]),U.unshift(j[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+D,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(C=0,O=u.length;C0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=x.slice(-1)[0],M=(r.host||t.host||x.length>1)&&("."===S||".."===S)||""===S,C=0,k=x.length;k>=0;k--)"."===(S=x[k])?x.splice(k,1):".."===S?(x.splice(k,1),C++):C&&(x.splice(k,1),C--);if(!A&&!E)for(;C--;C)x.unshift("..");!A||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),M&&"/"!==x.join("/").substr(-1)&&x.push("");var I,P=""===x[0]||x[0]&&"/"===x[0].charAt(0);return _&&(r.hostname=r.host=P?"":x.length?x.shift():"",(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.host=r.hostname=I.shift())),(A=A||r.host&&x.length)&&!P&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},2502:t=>{"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},384:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},5955:(t,e,r)=>{"use strict";var n=r(2584),i=r(8662),s=r(6430),o=r(5692);function a(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),h=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(c)var p=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function w(t){return"[object Set]"===u(t)}function b(t){return"[object WeakMap]"===u(t)}function v(t){return"[object WeakSet]"===u(t)}function A(t){return"[object ArrayBuffer]"===u(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function x(t){return"[object DataView]"===u(t)}function _(t){return"undefined"!=typeof DataView&&(x.working?x(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=o,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):o(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===s(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===s(t)},e.isUint16Array=function(t){return"Uint16Array"===s(t)},e.isUint32Array=function(t){return"Uint32Array"===s(t)},e.isInt8Array=function(t){return"Int8Array"===s(t)},e.isInt16Array=function(t){return"Int16Array"===s(t)},e.isInt32Array=function(t){return"Int32Array"===s(t)},e.isFloat32Array=function(t){return"Float32Array"===s(t)},e.isFloat64Array=function(t){return"Float64Array"===s(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===s(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===s(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},w.working="undefined"!=typeof Set&&w(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(w.working?w(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=E,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(t){return"[object SharedArrayBuffer]"===u(t)}function C(t){return void 0!==S&&(void 0===M.working&&(M.working=M(new S)),M.working?M(t):t instanceof S)}function k(t){return g(t,h)}function I(t){return g(t,d)}function P(t){return g(t,f)}function O(t){return c&&g(t,p)}function N(t){return l&&g(t,m)}e.isSharedArrayBuffer=C,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},e.isGeneratorObject=function(t){return"[object Generator]"===u(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},e.isNumberObject=k,e.isStringObject=I,e.isBooleanObject=P,e.isBigIntObject=O,e.isSymbolObject=N,e.isBoxedPrimitive=function(t){return k(t)||I(t)||P(t)||O(t)||N(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||C(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},9539:(t,e,r)=>{var n=r(4155),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),d(n,t,n.depth)}function u(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function d(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=d(t,i,n)),i}var s=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return w(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(r);if(0===o.length){if(S(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(A(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return f(r)}var l,u="",h=!1,E=["{","}"];return m(r)&&(h=!0,E=["[","]"]),S(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),A(r)&&(u=" "+RegExp.prototype.toString.call(r)),x(r)&&(u=" "+Date.prototype.toUTCString.call(r)),_(r)&&(u=" "+f(r)),0!==o.length||h&&0!=r.length?n<0?A(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),l=h?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(l,u,E)):E[0]+u+E[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,s){var o,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),P(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(r)?d(t,c.value,null):d(t,c.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function m(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function w(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function A(t){return E(t)&&"[object RegExp]"===M(t)}function E(t){return"object"==typeof t&&null!==t}function x(t){return E(t)&&"[object Date]"===M(t)}function _(t){return E(t)&&("[object Error]"===M(t)||t instanceof Error)}function S(t){return"function"==typeof t}function M(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!o[t])if(a.test(t)){var r=n.pid;o[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else o[t]=function(){};return o[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(5955),e.isArray=m,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=w,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=A,e.types.isRegExp=A,e.isObject=E,e.isDate=x,e.types.isDate=x,e.isError=_,e.types.isNativeError=_,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(384);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date,e=[C(t.getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=r(5717),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s{var n=r(8764).Buffer,i=r(8269),s=r(2816).RQ,o=r(2816)._R,a=new s((function(t,e){return!t.match(/^u?int/)||Array.isArray(e)||e&&"object"==typeof e&&"BN"===e.constructor.name?e:e.toString()}));function c(){}var l=function(){};l.prototype.encodeFunctionSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t).slice(0,10)},l.prototype.encodeEventSignature=function(t){return("function"==typeof t||"object"==typeof t&&t)&&(t=i._jsonInterfaceMethodToString(t)),i.sha3(t)},l.prototype.encodeParameter=function(t,e){return this.encodeParameters([t],[e])},l.prototype.encodeParameters=function(t,e){var r=this;return t=r.mapTypes(t),e=e.map((function(e,n){let i=t[n];if("object"==typeof i&&i.type&&(i=i.type),e=r.formatParam(i,e),"string"==typeof i&&i.includes("tuple")){const t=a._getCoder(o.from(i)),n=(t,e)=>{if("array"===t.name){if(!t.type.match(/\[(\d+)\]/))return e.map((e=>n(a._getCoder(o.from(t.type.replace("[]",""))),e)));const r=parseInt(t.type.match(/\[(\d+)\]/)[1]);if(e.length!==r)throw new Error("Array length does not matches with the given input");return e.map((e=>n(a._getCoder(o.from(t.type.replace(/\[\d+\]/,""))),e)))}t.coders.forEach(((t,i)=>{"tuple"===t.name?n(t,e[i]):e[i]=r.formatParam(t.name,e[i])}))};n(t,e)}return e})),a.encode(t,e)},l.prototype.mapTypes=function(t){var e=this,r=[];return t.forEach((function(t){if("object"==typeof t&&"function"===t.type&&(t=Object.assign({},t,{type:"bytes24"})),e.isSimplifiedStructFormat(t)){var n=Object.keys(t)[0];r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))}else r.push(t)})),r},l.prototype.isSimplifiedStructFormat=function(t){return"object"==typeof t&&void 0===t.components&&void 0===t.name},l.prototype.mapStructNameAndType=function(t){var e="tuple";return t.indexOf("[]")>-1&&(e="tuple[]",t=t.slice(0,-2)),{type:e,name:t}},l.prototype.mapStructToCoderFormat=function(t){var e=this,r=[];return Object.keys(t).forEach((function(n){"object"!=typeof t[n]?r.push({name:n,type:t[n]}):r.push(Object.assign(e.mapStructNameAndType(n),{components:e.mapStructToCoderFormat(t[n])}))})),r},l.prototype.formatParam=function(t,e){const r=new RegExp(/^bytes([0-9]*)$/),s=new RegExp(/^bytes([0-9]*)\[\]$/),o=new RegExp(/^(u?int)([0-9]*)$/),a=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(i.isBN(e)||i.isBigNumber(e))return e.toString(10);if(t.match(s)||t.match(a))return e.map((e=>this.formatParam(t.replace("[]",""),e)));let c=t.match(o);if(c){let t=parseInt(c[2]||"256");t/80&&(!e||"0x"===e||"0X"===e))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var n=a.decode(this.mapTypes(t),"0x"+e.replace(/0x/i,""),r),i=new c;return i.__length__=0,t.forEach((function(t,e){var r=n[i.__length__];const s="object"==typeof t&&t.type&&"string"===t.type;r="0x"!==r||s||"string"==typeof t&&"string"===t?r:null,i[e]=r,("function"==typeof t||t&&"object"==typeof t)&&t.name&&(i[t.name]=r),i.__length__++})),i},l.prototype.decodeLog=function(t,e,r){var n=this;r=Array.isArray(r)?r:[r],e=e||"";var i=[],s=[],o=0;t.forEach((function(t,e){t.indexed?(s[e]=["bool","int","uint","address","fixed","ufixed"].find((function(e){return-1!==t.type.indexOf(e)}))?n.decodeParameter(t.type,r[o]):r[o],o++):i[e]=t}));var a=e,l=a?this.decodeParametersWith(i,a,!0):[],u=new c;return u.__length__=0,t.forEach((function(t,e){u[e]="string"===t.type?"":null,void 0!==l[e]&&(u[e]=l[e]),void 0!==s[e]&&(u[e]=s[e]),t.name&&(u[t.name]=u[e]),u.__length__++})),u};var u=new l;t.exports=u},8269:(t,e,r)=>{var n=r(4278),i=r(329),s=r(6780),o=r(1798),a=r(6383),c=function(t,e){var r=[];return e.forEach((function(e){if("object"==typeof e.components){if("tuple"!==e.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var n="",i=e.type.indexOf("[");i>=0&&(n=e.type.substring(i));var s=c(t,e.components);Array.isArray(s)&&t?r.push("tuple("+s.join(",")+")"+n):t?r.push("("+s+")"):r.push("("+s.join(",")+")"+n)}else r.push(e.type)})),r},l=function(t){if(!i.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r7?r+=t[n].toUpperCase():r+=t[n];return r},toHex:i.toHex,toBN:i.toBN,bytesToHex:i.bytesToHex,hexToBytes:i.hexToBytes,hexToNumberString:i.hexToNumberString,hexToNumber:i.hexToNumber,toDecimal:i.hexToNumber,numberToHex:i.numberToHex,fromDecimal:i.numberToHex,hexToUtf8:i.hexToUtf8,hexToString:i.hexToUtf8,toUtf8:i.hexToUtf8,stripHexPrefix:i.stripHexPrefix,utf8ToHex:i.utf8ToHex,stringToHex:i.utf8ToHex,fromUtf8:i.utf8ToHex,hexToAscii:l,toAscii:l,asciiToHex:u,fromAscii:u,unitMap:n.unitMap,toWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.toWei(t,e):n.toWei(t,e).toString(10)},fromWei:function(t,e){if(e=h(e),!i.isBN(t)&&"string"!=typeof t)throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return i.isBN(t)?n.fromWei(t,e):n.fromWei(t,e).toString(10)},padLeft:i.leftPad,leftPad:i.leftPad,padRight:i.rightPad,rightPad:i.rightPad,toTwosComplement:i.toTwosComplement,isBloom:i.isBloom,isUserEthereumAddressInBloom:i.isUserEthereumAddressInBloom,isContractAddressInBloom:i.isContractAddressInBloom,isTopic:i.isTopic,isTopicInBloom:i.isTopicInBloom,isInBloom:i.isInBloom,compareBlockNumbers:function(t,e){if(t===e)return 0;if("genesis"!==t&&"earliest"!==t&&0!==t||"genesis"!==e&&"earliest"!==e&&0!==e){if("genesis"===t||"earliest"===t||0===t)return-1;if("genesis"===e||"earliest"===e||0===e)return 1;if("latest"===t||"finalized"===t)return"pending"===e?-1:1;if("latest"===e||"finalized"===e)return"pending"===t?1:-1;if("pending"===t)return 1;if("pending"===e)return-1;if("safe"===t||"safe"===e)return;{let r=new a(t),n=new a(e);return r.lt(n)?-1:r.eq(n)?0:1}}return 0},toNumber:i.toNumber}},6780:(t,e,r)=>{var n=r(6383),i=r(329),s=function(t){var e=typeof t;if("string"===e)return i.isHexStrict(t)?new n(t.replace(/0x/i,""),16):new n(t,10);if("number"===e)return new n(t);if(i.isBigNumber(t))return new n(t.toString(10));if(i.isBN(t))return t;throw new Error(t+" is not a number")},o=function(t,e,r){var o,a,c;if("bytes"===(t=(c=t).startsWith("int[")?"int256"+c.slice(3):"int"===c?"int256":c.startsWith("uint[")?"uint256"+c.slice(4):"uint"===c?"uint256":c.startsWith("fixed[")?"fixed128x128"+c.slice(5):"fixed"===c?"fixed128x128":c.startsWith("ufixed[")?"ufixed128x128"+c.slice(6):"ufixed"===c?"ufixed128x128":c)){if(e.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+e.length);return e}if("string"===t)return i.utf8ToHex(e);if("bool"===t)return e?"01":"00";if(t.startsWith("address")){if(o=r?64:40,!i.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return i.leftPad(e.toLowerCase(),o)}if(o=function(t){var e=/^\D+(\d+).*$/.exec(t);return e?parseInt(e[1],10):null}(t),t.startsWith("bytes")){if(!o)throw new Error("bytes[] not yet supported in solidity");if(r&&(o=32),o<1||o>32||o256)throw new Error("Invalid uint"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a.lt(new n(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return o?i.leftPad(a.toString("hex"),o/8*2):a}if(t.startsWith("int")){if(o%8||o<8||o>256)throw new Error("Invalid int"+o+" size");if((a=s(e)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.lt(new n(0))?a.toTwos(o).toString("hex"):o?i.leftPad(a.toString("hex"),o/8*2):a}throw new Error("Unsupported or invalid type: "+t)},a=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,r,s="";if(t&&"object"==typeof t&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,s=t.hasOwnProperty("v")?t.v:t.value):(e=i.toHex(t,!0),s=i.toHex(t),e.startsWith("int")||e.startsWith("uint")||(e="bytes")),!e.startsWith("int")&&!e.startsWith("uint")||"string"!=typeof s||/^(-)?0x/i.test(s)||(s=new n(s)),Array.isArray(s)){if(r=function(t){var e=/^\D+\d*\[(\d+)\]$/.exec(t);return e?parseInt(e[1],10):null}(e),r&&s.length!==r)throw new Error(e+" is not matching the given array "+JSON.stringify(s));r=s.length}return Array.isArray(s)?s.map((function(t){return o(e,t,r).toString("hex").replace("0x","")})).join(""):o(e,s,r).toString("hex").replace("0x","")};t.exports={soliditySha3:function(){var t=Array.prototype.slice.call(arguments),e=t.map(a);return i.sha3("0x"+e.join(""))},soliditySha3Raw:function(){return i.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(a).join(""))},encodePacked:function(){var t=Array.prototype.slice.call(arguments),e=t.map(a);return"0x"+e.join("").toLowerCase()}}},329:(t,e,r)=>{var n=r(8764).Buffer,i=r(6383),s=r(3206),o=r(24),a=r(2730),c=r(6877),{keccak256:l}=r(2192),u=function(t){return i.isBN(t)},h=function(t){return t&&t.constructor&&"BigNumber"===t.constructor.name},d=function(t){try{return s.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},f=function(t){return!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(t)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(t))||p(t))},p=function(t){t=t.replace(/^0x/i,"");for(var e=E(t.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(e[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(e[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},m=function(t){var e="";t=(t=(t=(t=(t=o.encode(t)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var r=0;rNumber.MAX_SAFE_INTEGER||r>>4).toString(16)),e.push((15&t[r]).toString(16));return"0x"+e.join("")},isHex:v,isHexStrict:b,stripHexPrefix:function(t){return 0!==t&&v(t)?t.replace(/^(-)?0x/i,"$1"):t},leftPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(i).join(r||"0")+t},rightPad:function(t,e,r){var n=/^0x/i.test(t)||"number"==typeof t,i=e-(t=t.toString(16).replace(/^0x/i,"")).length+1>=0?e-t.length+1:0;return(n?"0x":"")+t+new Array(i).join(r||"0")},toTwosComplement:function(t){return"0x"+d(t).toTwos(256).toString(16,64)},sha3:E,sha3Raw:function(t){return null===(t=E(t))?A:t},toNumber:function(t,e=!1){return"number"==typeof t?t:g(w(t),e)}}},6383:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function s(t,e,r){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(7500).Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function c(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function l(t,e,r,i){for(var s=0,o=0,a=Math.min(t.length,r),c=e;c=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[s]|=o<>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===r)for(i=0,s=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=2)i=c(t,e,n)<=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(n=(t.length-e)%2==0?e+1:e;n=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var s=t.length-r,o=s%n,a=Math.min(s,s-o)+r,c=0,u=r;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?""}var d=["","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"],f=[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],p=[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 m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],s=0|e.words[0],o=i*s,a=67108863&o,c=o/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),f=Math.max(0,l-t.length+1);f<=d;f++){var p=l-f|0;u+=(o=(i=0|t.words[p])*(s=0|e.words[f])+h)/67108864|0,h=67108863&o}r.words[l]=0|h,c=0|u}return 0!==c?r.words[l]=0|c:r.length--,r._strip()}s.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,s=0,o=0;o>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==s||o!==this.length-1?d[6-c.length]+c+r:c+r}for(0!==s&&(r=s.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var l=f[t],u=p[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);r=(h=h.idivn(u)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,s=0;i>8&255),r>16&255),6===s?(r>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===s?(r>=0&&(t[r--]=o>>24&255),n=0,s=0):(n=o>>>24,s+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?s.prototype._countBits=function(t){return 32-Math.clz32(t)}:s.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],y=8191&g,w=g>>>13,b=0|o[3],v=8191&b,A=b>>>13,E=0|o[4],x=8191&E,_=E>>>13,S=0|o[5],M=8191&S,C=S>>>13,k=0|o[6],I=8191&k,P=k>>>13,O=0|o[7],N=8191&O,T=O>>>13,R=0|o[8],B=8191&R,L=R>>>13,U=0|o[9],j=8191&U,D=U>>>13,F=0|a[0],z=8191&F,H=F>>>13,$=0|a[1],q=8191&$,W=$>>>13,V=0|a[2],G=8191&V,K=V>>>13,Z=0|a[3],Q=8191&Z,J=Z>>>13,Y=0|a[4],X=8191&Y,tt=Y>>>13,et=0|a[5],rt=8191&et,nt=et>>>13,it=0|a[6],st=8191&it,ot=it>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;r.negative=t.negative^e.negative,r.length=19;var gt=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((s=Math.imul(d,H))+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,s=Math.imul(m,H);var yt=(l+(n=n+Math.imul(h,q)|0)|0)+((8191&(i=(i=i+Math.imul(h,W)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(w,z)|0,s=Math.imul(w,H),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,W)|0;var wt=(l+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(A,z)|0,s=Math.imul(A,H),n=n+Math.imul(y,q)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,K)|0;var bt=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(_,z)|0,s=Math.imul(_,H),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,W)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,K)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,J)|0;var vt=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(M,z),i=(i=Math.imul(M,H))+Math.imul(C,z)|0,s=Math.imul(C,H),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(_,q)|0,s=s+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,K)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,tt)|0;var At=(l+(n=n+Math.imul(h,rt)|0)|0)+((8191&(i=(i=i+Math.imul(h,nt)|0)+Math.imul(d,rt)|0))<<13)|0;l=((s=s+Math.imul(d,nt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(P,z)|0,s=Math.imul(P,H),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,W)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,K)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(m,rt)|0,s=s+Math.imul(m,nt)|0;var Et=(l+(n=n+Math.imul(h,st)|0)|0)+((8191&(i=(i=i+Math.imul(h,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(T,z)|0,s=Math.imul(T,H),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,W)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,K)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(_,Q)|0,s=s+Math.imul(_,J)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(A,X)|0,s=s+Math.imul(A,tt)|0,n=n+Math.imul(y,rt)|0,i=(i=i+Math.imul(y,nt)|0)+Math.imul(w,rt)|0,s=s+Math.imul(w,nt)|0,n=n+Math.imul(p,st)|0,i=(i=i+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var xt=(l+(n=n+Math.imul(h,ct)|0)|0)+((8191&(i=(i=i+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(L,z)|0,s=Math.imul(L,H),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,W)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,K)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(_,X)|0,s=s+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(A,rt)|0,s=s+Math.imul(A,nt)|0,n=n+Math.imul(y,st)|0,i=(i=i+Math.imul(y,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,n=n+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var _t=(l+(n=n+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(D,z)|0,s=Math.imul(D,H),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(L,q)|0,s=s+Math.imul(L,W)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(T,G)|0,s=s+Math.imul(T,K)|0,n=n+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,J)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(_,rt)|0,s=s+Math.imul(_,nt)|0,n=n+Math.imul(v,st)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,n=n+Math.imul(y,ct)|0,i=(i=i+Math.imul(y,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,n=n+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ht)|0,s=s+Math.imul(m,dt)|0;var St=(l+(n=n+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,W))+Math.imul(D,q)|0,s=Math.imul(D,W),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(L,G)|0,s=s+Math.imul(L,K)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,J)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(C,rt)|0,s=s+Math.imul(C,nt)|0,n=n+Math.imul(x,st)|0,i=(i=i+Math.imul(x,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,n=n+Math.imul(v,ct)|0,i=(i=i+Math.imul(v,lt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,lt)|0,n=n+Math.imul(y,ht)|0,i=(i=i+Math.imul(y,dt)|0)+Math.imul(w,ht)|0,s=s+Math.imul(w,dt)|0;var Mt=(l+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,K))+Math.imul(D,G)|0,s=Math.imul(D,K),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(L,Q)|0,s=s+Math.imul(L,J)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(T,X)|0,s=s+Math.imul(T,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(P,rt)|0,s=s+Math.imul(P,nt)|0,n=n+Math.imul(M,st)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(C,st)|0,s=s+Math.imul(C,ot)|0,n=n+Math.imul(x,ct)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,n=n+Math.imul(v,ht)|0,i=(i=i+Math.imul(v,dt)|0)+Math.imul(A,ht)|0,s=s+Math.imul(A,dt)|0;var Ct=(l+(n=n+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,J))+Math.imul(D,Q)|0,s=Math.imul(D,J),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(L,X)|0,s=s+Math.imul(L,tt)|0,n=n+Math.imul(N,rt)|0,i=(i=i+Math.imul(N,nt)|0)+Math.imul(T,rt)|0,s=s+Math.imul(T,nt)|0,n=n+Math.imul(I,st)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(C,ct)|0,s=s+Math.imul(C,lt)|0,n=n+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(_,ht)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(n=n+Math.imul(v,pt)|0)|0)+((8191&(i=(i=i+Math.imul(v,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((s=s+Math.imul(A,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(j,X),i=(i=Math.imul(j,tt))+Math.imul(D,X)|0,s=Math.imul(D,tt),n=n+Math.imul(B,rt)|0,i=(i=i+Math.imul(B,nt)|0)+Math.imul(L,rt)|0,s=s+Math.imul(L,nt)|0,n=n+Math.imul(N,st)|0,i=(i=i+Math.imul(N,ot)|0)+Math.imul(T,st)|0,s=s+Math.imul(T,ot)|0,n=n+Math.imul(I,ct)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,n=n+Math.imul(M,ht)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(C,ht)|0,s=s+Math.imul(C,dt)|0;var It=(l+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(j,rt),i=(i=Math.imul(j,nt))+Math.imul(D,rt)|0,s=Math.imul(D,nt),n=n+Math.imul(B,st)|0,i=(i=i+Math.imul(B,ot)|0)+Math.imul(L,st)|0,s=s+Math.imul(L,ot)|0,n=n+Math.imul(N,ct)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(T,ct)|0,s=s+Math.imul(T,lt)|0,n=n+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(P,ht)|0,s=s+Math.imul(P,dt)|0;var Pt=(l+(n=n+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((s=s+Math.imul(C,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(j,st),i=(i=Math.imul(j,ot))+Math.imul(D,st)|0,s=Math.imul(D,ot),n=n+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(L,ct)|0,s=s+Math.imul(L,lt)|0,n=n+Math.imul(N,ht)|0,i=(i=i+Math.imul(N,dt)|0)+Math.imul(T,ht)|0,s=s+Math.imul(T,dt)|0;var Ot=(l+(n=n+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(j,ct),i=(i=Math.imul(j,lt))+Math.imul(D,ct)|0,s=Math.imul(D,lt),n=n+Math.imul(B,ht)|0,i=(i=i+Math.imul(B,dt)|0)+Math.imul(L,ht)|0,s=s+Math.imul(L,dt)|0;var Nt=(l+(n=n+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((s=s+Math.imul(T,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(j,ht),i=(i=Math.imul(j,dt))+Math.imul(D,ht)|0,s=Math.imul(D,dt);var Tt=(l+(n=n+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(L,pt)|0))<<13)|0;l=((s=s+Math.imul(L,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863;var Rt=(l+(n=Math.imul(j,pt))|0)+((8191&(i=(i=Math.imul(j,mt))+Math.imul(D,pt)|0))<<13)|0;return l=((s=Math.imul(D,mt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=gt,c[1]=yt,c[2]=wt,c[3]=bt,c[4]=vt,c[5]=At,c[6]=Et,c[7]=xt,c[8]=_t,c[9]=St,c[10]=Mt,c[11]=Ct,c[12]=kt,c[13]=It,c[14]=Pt,c[15]=Ot,c[16]=Nt,c[17]=Tt,c[18]=Rt,0!==l&&(c[19]=l,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,s=0;s>>26)|0)>>>26,o&=67108863}r.words[s]=a,n=o,o=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function w(t,e,r){return y(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=m),s.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?m(this,t,e):r<1024?y(this,t,e):w(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=s.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,e,r,n,i,s){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,r+=s/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new s(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,s=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<o)for(this.length-=o,l=0;l=0&&(0!==u||l>=i);l--){var h=0|this.words[l];this.words[l]=u<<26-s|h>>>s,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=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},s.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[i+r]=67108863&s}for(;i>26,this.words[i+r]=67108863&s;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,c=n.length-i.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/o|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},s.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%t;return e?-i:i},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*r;this.words[i]=s/t|0,r=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++l;for(var u=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(h)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),o.isub(c)):(r.isub(e),a.isub(i),c.isub(o))}return{a,b:c,gcd:r.iushln(l)}},s.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new s(1),a=new s(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(a)):(r.isub(e),a.isub(o))}return(i=0===e.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(t),i},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var s=e;e=r,r=s}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new M(t)},s.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(E,A),E.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),i=0;i>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new x;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return v[t]=e,e},M.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new s(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=o;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=e.words[n],u=c-1;u>=0;u--){var h=l>>u&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==o?(o<<=1,o|=h,(4==++a||0===n&&0===u)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}c=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},i(C,M),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},24:(t,e)=>{!function(t){var e,r,n,i=String.fromCharCode;function s(t){for(var e,r,n=[],i=0,s=t.length;i=55296&&e<=56319&&i=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function a(t,e){return i(t>>e&63|128)}function c(t){if(0==(4294967168&t))return i(t);var e="";return 0==(4294965248&t)?e=i(t>>6&31|192):0==(4294901760&t)?(o(t),e=i(t>>12&15|224),e+=a(t,6)):0==(4292870144&t)&&(e=i(t>>18&7|240),e+=a(t,12),e+=a(t,6)),e+i(63&t|128)}function l(){if(n>=r)throw Error("Invalid byte index");var t=255&e[n];if(n++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function u(){var t,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(t=255&e[n],n++,0==(128&t))return t;if(192==(224&t)){if((i=(31&t)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if((i=(15&t)<<12|l()<<6|l())>=2048)return o(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(i=(7&t)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}t.version="3.0.0",t.encode=function(t){for(var e=s(t),r=e.length,n=-1,i="";++n65535&&(s+=i((e-=65536)>>>10&1023|55296),e=56320|1023&e),s+=i(e);return s}(a)}}(e)},6430:(t,e,r)=>{"use strict";var n=r(4029),i=r(3083),s=r(1924),o=r(7296),a=s("Object.prototype.toString"),c=r(6410)(),l="undefined"==typeof globalThis?r.g:globalThis,u=i(),h=s("String.prototype.slice"),d={},f=Object.getPrototypeOf;c&&o&&f&&n(u,(function(t){if("function"==typeof l[t]){var e=new l[t];if(Symbol.toStringTag in e){var r=f(e),n=o(r,Symbol.toStringTag);if(!n){var i=f(r);n=o(i,Symbol.toStringTag)}d[t]=n.get}}}));var p=r(5692);t.exports=function(t){return!!p(t)&&(c&&Symbol.toStringTag in t?function(t){var e=!1;return n(d,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):h(a(t),8,-1))}},7026:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},3416:t=>{t.exports=()=>{const t=window.BinanceChain;return{key:"binancewallet",name:"Binance Wallet",supports:["browser"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),download:"https://chrome.google.com/webstore/detail/binance-wallet/fhbohimaelbohpjbbldcngcnapndodjp",isDetected:()=>Boolean(window?.BinanceChain?.bnbSign)}}},8983:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.bitkeep?.ethereum;return{key:"bitget",name:"Bitget Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"https://bkcode.vip?action=dapp&url={siteUrl}",download:"https://web3.bitget.com/en/wallet-download?type=3",isDetected:()=>Boolean(window.bitkeep&&window.bitkeep.ethereum)}}},5491:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window.ethereum;return{key:"metamask",name:"MetaMask",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"https://metamask.app.link/dapp/{siteUrl}",download:"https://metamask.io/download/",isDetected:()=>Boolean(window?.ethereum?.isMetaMask)}}},3260:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.okxwallet;return{key:"okx",name:"Okx Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),deepLink:"okx://wallet/dapp/details?dappUrl={siteUrl}",download:"https://www.okx.com/download",isDetected:()=>Boolean(window?.okxwallet?.isOkxWallet)}}},4396:t=>{t.exports=()=>{const t=window?.phantom?.ethereum;return{key:"phantom",name:"Phantom",supports:["browser","mobile"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((async()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),deepLink:"https://phantom.app/ul/browse/{siteUrl}?ref={siteUrl}",download:"https://phantom.app/",isDetected:()=>Boolean(window.phantom?.ethereum)}}},2789:(t,e,r)=>{t.exports=(t,e)=>{const n=e.network,i=e.networks;if(!n)return new Promise((async t=>{t(!0)}));const{hex:s}=r(3555),o=async e=>{let r=await t.request(e);if(r&&r.error){if(-32e3==r.error.code)throw new Error("rpc-timeout");throw new Error(r.error.message)}return r};return new Promise((async(t,e)=>{try{await(async()=>{const t=await o({method:"eth_chainId"});return"number"==typeof t?t:parseInt(t,16)})()!=n.id?(t=>(t=JSON.parse(JSON.stringify(t)),new Promise((async(e,r)=>{let n=t.hexId||s(t.id);o({method:"wallet_switchEthereumChain",params:[{chainId:n}]}).then((()=>{e(!0)})).catch((n=>{4902===n.code||String(n.message).indexOf("wallet_addEthereumChain")>-1?(t=>new Promise((async(e,r)=>{try{let n=(t=i.find((e=>e.id==t.id))).hexId||s(t.id);o({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:t.name,rpcUrls:[t.rpcUrl],nativeCurrency:t.nativeCurrency,blockExplorerUrls:[t.explorerUrl]}]}).then((()=>{e(!0)})).catch((t=>{r(t)}))}catch(t){r(t)}})))(t).then((()=>{e(!0)})).catch((t=>{r(t)})):r(n)}))}))))(n).then((()=>{setTimeout((()=>{t(!0)}),1e3)})).catch((t=>{e(t)})):t(!0)}catch(t){e(t)}}))}},8435:(t,e,r)=>{const n=r(2789);t.exports=t=>{const e=window?.ethereum?.isTrust?window.ethereum:window.trustwallet;return{key:"trustwallet",name:"Trust Wallet",supports:["browser","mobile"],connect:async()=>new Promise((async(r,i)=>{try{e.request({method:"eth_requestAccounts"}).then((async()=>{if(window?.ethereum?.isTrust&&t.testnet)return r(e);n(e,t).then((()=>{r(e)})).catch((t=>{i(t)}))})).catch((t=>{i(t)}))}catch(t){i(t)}})),download:"https://trustwallet.com/download",isDetected:()=>Boolean(window?.ethereum?.isTrust||window?.trustwallet)}}},9086:(t,e,r)=>{t.exports=t=>{const e=t.network,n=t.wcProjectId,{EthereumProvider:i}=r(964),s={};return e&&(s[e.id]=e.rpcUrl),{key:"walletconnect",name:"WalletConnect",supports:["browser","mobile"],connect:async()=>{let r=await i.init({projectId:n,relayUrl:"wss://relay.walletconnect.com",optionalChains:e?[e.id]:[],rpcMap:s,showQrModal:!0,qrModalOptions:{projectId:n,themeMode:t.wcThemeMode,themeVariables:{"--wcm-z-index":999999999999},explorerExcludedWalletIds:"ALL",explorerRecommendedWalletIds:["c57ca95b47569778a828d19178114f4db188b89b763c899ba0be274e97267d96","4622a2b2d6af1c9844944291e5e7351a6aa24cd7b23099efac1b2fd875da31a0","1ae92b26df02f0abca6304df07debccd18262fdf5fe82daa81593582dac9a369","0b415a746fb9ee99cce155c2ceca0c6f6061b1dbca2d722b3ba16381d0562150","971e689d0a5be527bac79629b4ee9b925e82208e5168b733496a09c0faed0709","c03dfee351b6fcc421b4494ea33b9d4b92a984f87aa76d1663bb28705e95034a","ecc4036f814562b41a5268adc86270fba1365471402006302e70169465b7ac18","ef333840daf915aafdc4a004525502d6d49d77bd9c65e0642dbaefb3c2893bef","bc949c5d968ae81310268bf9193f9c9fb7bb4e1283e1284af8f2bd4992535fd6","74f8092562bd79675e276d8b2062a83601a4106d30202f2d509195e30e19673d","afbd95522f4041c71dd4f1a065f971fd32372865b416f95a0b1db759ae33f2a7","20459438007b75f4f4acb98bf29aa3b800550309646d375da5fd4aac6c2a2c66","8837dd9413b1d9b585ee937d27a816590248386d9dbf59f5cd3422dbbb65683e","c286eebc742a537cd1d6818363e9dc53b21759a1e8e5d9b263d0c03ec7703576","38f5d18bd8522c244bdd70cb4a68e0e718865155811c043f052fb9f1c51de662","85db431492aa2e8672e93f4ea7acf10c88b97b867b0d373107af63dc4880f041"]}});return new Promise((async(t,e)=>{r.enable().then((()=>{t(r)})).catch((t=>{e(t)}))}))},removeOldConnection:()=>{Object.keys(localStorage).filter((t=>t.startsWith("wc@2"))).forEach((t=>localStorage.removeItem(t))),indexedDB.deleteDatabase("WALLET_CONNECT_V2_INDEXED_DB")}}}},1760:t=>{t.exports=()=>{const t=window?.xfi?.ethereum;return{key:"xdefi",name:"Xdefi Wallet",supports:["browser"],connect:async()=>new Promise((async(e,r)=>{try{t.request({method:"eth_requestAccounts"}).then((async()=>{e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}})),download:"https://www.xdefi.io/",isDetected:()=>Boolean(window.xfi?.ethereum)}}},7631:(t,e,r)=>{const n=r(3555);t.exports=class{symbol;decimals;provider;constructor(t){this.provider=t,this.decimals=t.network.nativeCurrency.decimals,this.symbol=t.network.nativeCurrency.symbol}getSymbol(){return this.symbol}getDecimals(){return this.decimals}async getBalance(t){try{let e=await this.provider.methods.getBalance(t);return parseFloat((parseInt(e)/10**this.decimals).toFixed(6))}catch(t){throw t}}transfer(t,e,r){return new Promise((async(i,s)=>{try{if(parseFloat(r)>await this.getBalance(t))return s("insufficient-balance");if(parseFloat(r)<0)return s("transfer-amount-error");r=n.toHex(r,this.decimals);let o=await this.provider.methods.getEstimateGas({to:e,from:t,value:r,data:"0x"});return i([{to:e,from:t,value:r,gas:o,data:"0x"}])}catch(t){s(t)}}))}}},5612:(t,e,r)=>{const n=r(3555);t.exports=class{provider;address;contract;defaultGas=5e4;constructor(t,e,r){this.address=t,this.provider=r,this.contract=r.methods.contract(t,e,r.web3)}getAddress(){return this.address}getData(t,e=[]){return this.contract.interface.encodeFunctionData(t,e)}async getEstimateGas(t,e=[],r={}){return n.hex(await this.contract[t].estimateGas(...e,r))}call(t,e=[]){return this.contract[t](...e)}}},5874:(t,e,r)=>{const n=r(3555),i=r(1646);t.exports=class{address;contract;provider;constructor(t,e=null,r){e=e||i,this.address=t,this.provider=r,this.contract=r.methods.contract(t,e,r.web3)}getAddress(){return this.address}getName(){return this.contract.name()}getSymbol(){return this.contract.symbol()}async getDecimals(){return parseInt(await this.contract.decimals())}async getTotalSupply(){let t=await this.getDecimals(),e=await this.contract.totalSupply();return n.toDec(e,t)}async getBalance(t){let e=await this.getDecimals(),r=await this.contract.balanceOf(t);return n.toDec(r,e)}transfer(t,e,r){return new Promise((async(i,s)=>{try{if(parseFloat(r)>await this.getBalance(t))return s("insufficient-balance");if(parseFloat(r)<0)return s("transfer-amount-error");r=n.toHex(r,await this.getDecimals());const o=await this.contract.interface.encodeFunctionData("transfer",[e,r]),a=n.hex(await this.contract.transfer.estimateGas(e,r,{from:t}));return i([{to:this.address,value:"0x0",from:t,gas:a,data:o}])}catch(t){s(t)}}))}approve(t,e,r){return new Promise((async(i,s)=>{try{r=n.toHex(r,await this.getDecimals());const s=await this.contract.interface.encodeFunctionData("approve",[e,r]),o=n.hex(await this.contract.approve.estimateGas(e,r,{from:t}));return i([{to:this.address,value:"0x0",from:t,gas:o,data:s}])}catch(t){s(t)}}))}async allowance(t,e){return parseFloat(n.toDec(await this.contract.allowance(t,e),await this.getDecimals()))}}},5782:(t,e,r)=>{const n=r(3555);t.exports=class{hash;data;provider;timer=0;constructor(t,e){this.hash=t,this.provider=e}getHash(){return this.hash}setTimer(t){this.timer=t}async getFee(){let t=this.data?this.data:await this.getData();return n.toDec(t.gasPrice*t.gasUsed,this.provider.network.nativeCurrency.decimals)}async getData(){try{this.data=await this.provider.methods.getTransaction(this.hash);let t=await this.provider.methods.getTransactionReceipt(this.hash);t&&(this.data.status=void 0!==t.status?t.status:null,this.data.gasUsed=void 0!==t.gasUsed?t.gasUsed:null)}catch(t){if(-32e3==t.code||String(t.message).includes("timeout"))throw new Error("rpc-timeout");throw new Error("data-request-failed")}return this.data}async decodeInput(){if(this.data||await this.getData(),"0x"!=this.data.input){let t=n.abiDecoder(this.data.data);return{receiver:t.params[0].value,amount:t.params[1].value}}return null}async getTransferAmount(t){let e=await this.getData(),r=t.tokenAddress;if(r){let t=await this.decodeInput();return n.toDec(t.amount,await this.provider.Token(r).getDecimals())}return n.toDec(e.value,await this.provider.Coin().getDecimals())}async getConfirmations(){try{let t=await this.getData(),e=await this.provider.methods.getBlockNumber();if(null===t.blockNumber)return 0;let r=e-n.toDec(t.blockNumber,0);return r<0?0:r}catch(t){}}confirmTransaction(t=10,e=1){return new Promise(((r,n)=>{try{this.intervalConfirm=setInterval((async()=>{const e=await this.getConfirmations(this.hash);if(e>=t)return clearInterval(this.intervalConfirm),r(e)}),1e3*e)}catch(t){n(t)}}))}async validate(t=1){t=this.timer||t;try{await this.getData();let e=null;return this.data&&null!==this.data.blockNumber&&(e="0x0"!=this.data.status),"boolean"==typeof e?e:(await new Promise((e=>setTimeout(e,1e3*t))),this.validate(t))}catch(e){if("data-request-failed"==e.message)return this.validate(t);throw e}}async verifyTokenTransfer(t){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-token-address");return!!await this.validate()&&"0x"!=this.data.input}async verifyCoinTransfer(){return!!await this.validate()&&"0x0"!=this.data.value}async verifyTokenTransferWithData(t,e,r){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-receiver-address");if(await this.verifyTokenTransfer(r)){let i=await this.decodeInput(),s=this.provider.Token(r),o={receiver:i.receiver.toLowerCase(),amount:n.toDec(i.amount,await s.getDecimals())};return o.receiver==t&&o.amount==e}return!1}async verifyCoinTransferWithData(t,e){if(!1===n.isAddress(t=t.toLowerCase()))throw new Error("invalid-receiver-address");if(await this.verifyCoinTransfer()){let r=this.provider.Coin(),i={receiver:this.data.to.toLowerCase(),amount:n.toDec(this.data.value,await r.getDecimals())};return i.receiver==t&&i.amount==e}return!1}verifyTransfer(t=null){return t?this.verifyTokenTransfer(t):this.verifyCoinTransfer()}verifyTransferWithData(t){return t.tokenAddress?this.verifyTokenTransferWithData(t.receiver,t.amount,t.tokenAddress):this.verifyCoinTransferWithData(t.receiver,t.amount)}getUrl(){if(!this.provider.network.explorerUrl)throw new Error("explorer-url-not-found");let t=this.provider.network.explorerUrl;return t+=t.endsWith("/")?"":"/",t+="tx/"+this.hash,t}}},4850:(t,e,r)=>{const n={metamask:r(5491),binancewallet:r(3416),trustwallet:r(8435),walletconnect:r(9086),phantom:r(4396),bitget:r(8983),okx:r(3260),xdefi:r(1760)};t.exports=getAdapter=(t,e)=>n[t](e)},573:(t,e,r)=>{const n=r(3555),i=r(9237);t.exports=class{provider;web3Provider;constructor(t,e){this.provider=t,this.web3Provider=e}contract(t,e,r=null){return new i.Contract(t,e,r)}contractFactory(t,e,r=null){return new i.ContractFactory(t,e,r)}async getEstimateGas(t){return n.hex((await this.web3Provider.estimateGas(t)).toString())}async getGasPrice(){return n.hex((await this.web3Provider.getGasPrice()).toString())}getBlock(...t){return this.web3Provider.getBlock(...t)}getBlockNumber(){return this.web3Provider.getBlockNumber()}getTransaction(t){return this.web3Provider.getTransaction(t)}getTransactionReceipt(t){return this.web3Provider.getTransactionReceipt(t)}getBalance(t){return this.web3Provider.getBalance(t)}}},7405:(t,e,r)=>{const n=r(9237),i=r(3555),s=r(573),o=r(7631),a=r(5874),c=r(5612),l=r(1407),u=r(5782);class h{web3=null;web3ws=null;qrPayments=!1;methods;testnet=!1;wcProjectId=null;wcThemeMode="light";web3Modal;network={};networks=[];supportedWallets;connectedWallet={};wcCustomWallets=[];constructor(t){this.testnet=t.testnet,this.wcProjectId=t.wcProjectId,this.wcThemeMode=t.wcThemeMode||"light",this.wcCustomWallets=t.wcCustomWallets||[],Object.keys(l).forEach((t=>{let e=l[t],r=e.blockExplorers?e.blockExplorers.default.url:null,n=e.rpcUrls.default.http[0];e.rpcUrls.infura?n=e.rpcUrls.infura.http[0]:e.rpcUrls.alchemy&&(n=e.rpcUrls.alchemy.http[0]),e=Object.assign(e,{explorerUrl:r,hexId:"0x"+e.id.toString(16),rpcUrl:n}),e.rpcUrls.default.webSocket&&e.rpcUrls.default.webSocket[0]?e.wsUrl=e.rpcUrls.default.webSocket[0]:e.rpcUrls.infura&&e.rpcUrls.infura.webSocket&&e.rpcUrls.infura.webSocket[0]?e.wsUrl=e.rpcUrls.infura.webSocket[0]:e.rpcUrls.alchemy&&e.rpcUrls.alchemy.webSocket&&e.rpcUrls.alchemy.webSocket[0]&&(e.wsUrl=e.rpcUrls.alchemy.webSocket[0]),this.networks.push(e)})),this.setNetwork(t.network)}setNetwork(t){if("object"==typeof t)this.network=t;else if(i.isNumeric(t))this.network=this.networks.find((e=>e.id==parseInt(t)));else{if("string"!=typeof t)throw new Error("Invalid network!");this.network=this.networks.find((e=>e.network==t))}this.setWeb3Provider(new n.JsonRpcProvider(t.rpcUrl)),t.wsUrl&&(this.qrPayments=!0,this.web3ws=new n.WebSocketProvider(t.wsUrl))}getNetworks(){return this.networks}async listenTransactions(t,e){const n=t.receiver,i=t.tokenAddress,s={unsubscribe:()=>{}};if(!this.web3ws)throw new Error("Websocket provider not found!");if(i){const t=this.methods.contract(i,r(1646),this.web3ws),o=(t,r,i,o)=>{r===n&&e(s,this.Transaction(o.log.transactionHash))},a=t.on("Transfer",o);s.unsubscribe=()=>{a.off("Transfer",o)}}else{let t=await this.methods.getBalance(n);const r=async r=>{const i=await this.methods.getBalance(n);if(t{const r=await this.methods.getTransaction(t);r.to&&r.to.toLowerCase()==n.toLowerCase()&&e(s,this.Transaction(r.hash))}))}};this.web3ws.on("block",r),s.unsubscribe=()=>{this.web3ws.off("block",r)}}}setWeb3Provider(t){this.methods=new s(this,this.web3=t)}setConnectedWallet(t){this.connectedWallet=t}connectWallet(t){return new Promise((async(e,r)=>{let n=this.getDetectedWallets();if(n[t]){let s=n[t];s.connect().then((()=>{e(s)})).catch((t=>{i.rejectMessage(t,r)}))}else r("wallet-not-found")}))}createWeb3Modal(){const t=r(4900);if(this.web3Modal)return this.web3Modal;this.web3Modal=new t({network:this.network,projectId:this.wcProjectId,themeMode:this.wcThemeMode,customWallets:this.wcCustomWallets});const e=this.web3Modal.coinTransfer.bind(this.web3Modal),n=this.web3Modal.tokenTransfer.bind(this.web3Modal);return this.web3Modal.coinTransfer=async(...t)=>new Promise(((r,n)=>{e(...t).then((t=>{r(this.Transaction(t))})).catch((t=>{i.rejectMessage(t,n)}))})),this.web3Modal.tokenTransfer=async(...t)=>new Promise(((e,r)=>{n(...t).then((t=>{e(this.Transaction(t))})).catch((t=>{i.rejectMessage(t,r)}))})),this.web3Modal.getName=()=>"Web3 Wallets",this.web3Modal}getSupportedWallets(t){if(!this.supportedWallets){const t=r(5123);this.supportedWallets={metamask:new t("metamask",this),trustwallet:new t("trustwallet",this),binancewallet:new t("binancewallet",this),phantom:new t("phantom",this),bitget:new t("bitget",this),okx:new t("okx",this),xdefi:new t("xdefi",this)},this.wcProjectId&&(this.supportedWallets.web3modal=this.createWeb3Modal(),this.supportedWallets.walletconnect=new t("walletconnect",this))}return Object.fromEntries(Object.entries(this.supportedWallets).filter((([e])=>!t||t.includes(e))))}getDetectedWallets(t){let e=this.getSupportedWallets(t);return Object.fromEntries(Object.entries(e).filter((([t,e])=>null==e.isDetected()||e.isDetected())))}Coin(){return new o(this)}Token(t,e=null){return new a(t,e,this)}Contract(t,e){return new c(t,e,this)}Transaction(t){return new u(t,this)}}h.utils=i,h.BigNumber=r(4431),t.exports=h},3555:(t,e,r)=>{const n=r(8269),i=r(5946);t.exports=Object.assign(i,{isAddress:t=>n.isAddress(t),rejectMessage:(t,e)=>"Not supported chainId"==t.message||String(t.message).indexOf("chain ID")>-1||String(t.message).indexOf("networkConfigurationId")>-1||String(t.message).indexOf("The Provider is not connected to the requested chain.")>-1?e("not-accepted-chain"):4001==t.code||"Rejected by user"==t.error||"cancelled"==t.message||"User canceled"==t.message||"user reject this request"==t.message||"User rejected the transaction"==t.message||"An unexpected error occurred"==t.message||"User disapproved requested chains"==t.message||String(t.message).indexOf("User")>-1||String(t.message).indexOf("Rejected")>-1||String(t.message).indexOf("cancelled")>-1||String(t.message).indexOf("canceled")>-1||String(t.message).indexOf("rejected")>-1||String(t.message).indexOf("disapproved requested chains")>-1?e("request-rejected"):String(t.message).indexOf("Invalid RPC URL")>-1?e("invalid-rpc-error"):String(t.message).includes("timeout")||String(t.message).includes("request timed out")||-32e3==t.code?e("rpc-timeout"):-32603==t.code||-32602==t.code?e("transaction-create-fail"):-32601==t.code?e("non-supported-method"):"Already processing eth_requestAccounts. Please wait."==t.message||-32002==t.code?e("already-processing"):"User closed modal"==t.message?e("closed-walletconnect-modal"):"transaction underpriced"==t.message?e("transaction-underpriced"):e(t)})},5123:(t,e,r)=>{const n=r(9237),i=r(3555),s=r(4850);t.exports=class{adapter;wallet;provider;connectedNetwork;connectedAccount;constructor(t,e){this.provider=e,this.setAdapter(t)}setAdapter(t){this.adapter=s(t,this.provider)}getKey(){return this.adapter.key}getName(){return this.adapter.name}getSupports(){return this.adapter.supports}getDeepLink(){return this.adapter.deepLink}getDownloadLink(){return this.adapter.download}isDetected(){return this.adapter.isDetected?this.adapter.isDetected():void 0}async request(t){let e=await this.wallet.request(t);if(e&&e.error){if(-32e3==e.error.code)throw new Error("rpc-timeout");throw new Error(e.error.message)}return e}getAccounts(){return this.request({method:"eth_accounts"})}async getChainId(){const t=await this.request({method:"eth_chainId"});return"number"==typeof t?t:parseInt(t,16)}async isConnected(){return 0!==(await this.getAccounts()).length}connect(){return new Promise(((t,e)=>{this.adapter.connect().then((async r=>{this.wallet=r;let n=await this.getChainId();if(this.provider.network){if(this.provider.network.id!=n)return e("not-accepted-chain")}else this.provider.setNetwork(n);this.provider.setConnectedWallet(this),this.connectedAccount=(await this.getAccounts())[0],this.connectedNetwork=this.provider.network,t(this.connectedAccount)})).catch((t=>{i.rejectMessage(t,e)}))}))}sendTransaction(t){return new Promise((async(e,r)=>{this.request({method:"eth_sendTransaction",params:t}).then((t=>{e(t)})).catch((t=>{i.rejectMessage(t,r)}))}))}tokenTransfer(t,e,r){return new Promise((async(n,s)=>{try{this.validate(t,e,r),this.provider.Token(r).transfer(this.connectedAccount,t,e).then((t=>{this.sendTransaction(t).then((t=>{n(this.provider.Transaction(t))})).catch((t=>{i.rejectMessage(t,s)}))})).catch((t=>{i.rejectMessage(t,s)}))}catch(t){i.rejectMessage(t,s)}}))}coinTransfer(t,e){return new Promise((async(r,n)=>{try{this.validate(t,e),this.provider.Coin().transfer(this.connectedAccount,t,e).then((t=>{this.sendTransaction(t).then((t=>{r(this.provider.Transaction(t))})).catch((t=>{i.rejectMessage(t,n)}))})).catch((t=>{i.rejectMessage(t,n)}))}catch(t){i.rejectMessage(t,n)}}))}transfer(t,e,r=null){return r?this.tokenTransfer(t,e,r):this.coinTransfer(t,e)}validate(t,e,r=null){if(!this.connectedAccount)throw new Error("no-linked-wallet");if(e<=0)throw new Error("transfer-amount-error");if(!1===i.isAddress(t))throw new Error("invalid-receiver-address");if(r&&!1===i.isAddress(r))throw new Error("invalid-token-address");return!0}deployContract(t,e,r=[],s=null){return new Promise((async(o,a)=>{try{let i=this.provider.methods.contractFactory(t,e,await this.provider.web3.getSigner());s&&r.push({value:n.utils.parseEther(s)}),o(await i.deploy(...r))}catch(t){i.rejectMessage(t,a)}}))}chainChanged(t){this.wallet.on("chainChanged",(e=>{t(e)}))}accountsChanged(t){this.wallet.on("accountsChanged",(e=>{t(e)}))}networkChanged(t){this.wallet.on("networkChanged",(e=>{t(e)}))}disconnectEvent(t){this.wallet.on("disconnect",((e,r)=>{t(e,r)}))}}},8677:()=>{},5883:()=>{},2260:()=>{},2895:()=>{},1865:()=>{},7500:()=>{},30:(t,e)=>{"use strict";const r=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function n(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),i=1,s=[0,1];for(let t=1;t>--c&1}const h=2**31,d=h>>>1,f=h-1;let p=0;for(let t=0;t<31;t++)p=p<<1|u();let m=[],g=0,y=h;for(;;){let t=Math.floor(((p-g+1)*i-1)/y),e=0,r=n;for(;r-e>1;){let n=e+r>>>1;t>>1|u(),o=o<<1^d,a=(a^d)<<1|d|1;g=o,y=1+a-o}let w=n-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return w+256+(t[a++]<<8|t[a++]);case 1:return w+t[a++];default:return e-1}}))}(function(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((t,r)=>e[t.charCodeAt(0)]=r));let r=t.length,n=new Uint8Array(6*r>>3);for(let i=0,s=0,o=0,a=0;i=8&&(n[s++]=a>>(o-=8));return n}(t)))}function i(t){return 1&t?~t>>1:t>>1}function s(t,e){let r=Array(t);for(let n=0,s=0;n{let e=o(t);if(e.length)return e}))}function c(t){let e=[];for(;;){let r=t();if(0==r)break;e.push(h(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(d(r,t))}return e.flat()}function l(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function u(t,e,r){let n=Array(t).fill().map((()=>[]));for(let i=0;in[e].push(t)));return n}function h(t,e){let r=1+e(),n=e(),i=l(e);return u(i.length,1+t,e).flatMap(((t,e)=>{let[s,...o]=t;return Array(i[e]).fill().map(((t,e)=>{let i=e*n;return[s+e*r,o.map((t=>t+i))]}))}))}function d(t,e){return u(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}function f(t){return`{${function(t){return t.toString(16).toUpperCase().padStart(2,"0")}(t)}}`}function p(t){let e=[];for(let r=0,n=t.length;r>24&255}function E(t){return 16777215&t}let x,_,S,M;function C(t){return t>=y&&t<55204}function k(t,e){if(t>=w&&t<4371&&e>=b&&e<4470)return y+588*(t-w)+28*(e-b);if(C(t)&&e>v&&e<4547&&(t-y)%28==0)return t+(e-v);{let r=M.get(t);return r&&(r=r.get(e),r)?r:-1}}function I(t){x||function(){let t=n("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");x=new Map(a(t).flatMap(((t,e)=>t.map((t=>[t,e+1<<24]))))),_=new Set(o(t)),S=new Map,M=new Map;for(let[e,r]of c(t)){if(!_.has(e)&&2==r.length){let[t,n]=r,i=M.get(t);i||(i=new Map,M.set(t,i)),i.set(n,e)}S.set(e,r.reverse())}}();let e=[],r=[],i=!1;function s(t){let r=x.get(t);r&&(i=!0,t|=r),e.push(t)}for(let n of t)for(;;){if(n<128)e.push(n);else if(C(n)){let t=n-y,e=t%588/28|0,r=t%28;s(w+(t/588|0)),s(b+e),r>0&&s(v+r)}else{let t=S.get(n);t?r.push(...t):s(n)}if(!r.length)break;n=r.pop()}if(i&&e.length>1){let t=A(e[0]);for(let r=1;r0&&i>=t)0==t?(e.push(n,...r),r.length=0,n=o):r.push(o),i=t;else{let s=k(n,o);s>=0?n=s:0==i&&0==t?(e.push(n),n=o):(r.push(o),i=t)}}return n>=0&&e.push(n,...r),e}(I(t))}const N=".",T=t=>Array.from(t);function R(t,e){return t.P.has(e)||t.Q.has(e)}class B extends Array{get is_emoji(){return!0}}let L,U,j,D,F,z,H,$,q,W,V,G;function K(){if(L)return;let t=n("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI");const e=()=>o(t),r=()=>new Set(e());L=new Map(c(t)),U=r(),j=e(),D=new Set(e().map((t=>j[t]))),j=new Set(j),F=r(),z=r();let i=a(t),s=t();const u=()=>new Set(e().flatMap((t=>i[t])).concat(e()));H=l((e=>{let r=l(t).map((t=>t+96));if(r.length){let n=e>=s;return r[0]-=32,r=m(r),n&&(r=`Restricted[${r}]`),{N:r,P:u(),Q:u(),M:!t(),R:n}}})),$=r(),q=new Map;let h=e().concat(T($)).sort(((t,e)=>t-e));h.forEach(((e,r)=>{let n=t(),i=h[r]=n?h[r-n]:{V:[],M:new Map};i.V.push(e),$.has(e)||q.set(e,i)}));for(let{V:t,M:e}of new Set(q.values())){let r=[];for(let e of t){let t=H.filter((t=>R(t,e))),n=r.find((({G:e})=>t.some((t=>e.has(t)))));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(e),t.forEach((t=>n.G.add(t)))}let n=r.flatMap((t=>T(t.G)));for(let{G:t,V:i}of r){let r=new Set(n.filter((e=>!t.has(e))));for(let t of i)e.set(t,r)}}let d=new Set,f=new Set;const p=t=>d.has(t)?f.add(t):d.add(t);for(let t of H){for(let e of t.P)p(e);for(let e of t.Q)p(e)}for(let t of d)q.has(t)||f.has(t)||q.set(t,1);W=new Set(T(d).concat(T(P(d)))),V=function(t){let e=[],r=o(t);return function t({S:r,B:n},i,s){if(!(4&r&&s===i[i.length-1])){2&r&&(s=i[i.length-1]),1&r&&e.push(i);for(let e of n)for(let r of e.Q)t(e,[...i,r],s)}}(function e(n){return{S:t(),B:l((()=>{let n=o(t).map((t=>r[t]));if(n.length)return e(n)})),Q:n}}([]),[]),e}(t).map((t=>B.from(t))).sort(g),G=new Map;for(let t of V){let e=[G];for(let r of t){let t=e.map((t=>{let e=t.get(r);return e||(e=new Map,t.set(r,e)),e}));65039===r?e.push(...t):e=t}for(let r of e)r.V=t}}function Z(t){return(X(t)?"":`${Q(J([t]))} `)+f(t)}function Q(t){return`"${t}"‎`}function J(t,e=f){let r=[];Y(t[0])&&r.push("◌");let n=0,i=t.length;for(let s=0;s{let s=p(t),o={input:s,offset:i};i+=s.length+1;try{let t,i=o.tokens=st(s,e,n),a=i.length;if(!a)throw new Error("empty label");let c=o.output=i.flat();if(function(t){for(let e=t.lastIndexOf(95);e>0;)if(95!==t[--e])throw new Error("underscore allowed only at start")}(c),!(o.emoji=a>1||i[0].is_emoji)&&c.every((t=>t<128)))!function(t){if(t.length>=4&&45==t[2]&&45==t[3])throw new Error(`invalid label extension: "${m(t.slice(0,4))}"`)}(c),t="ASCII";else{let e=i.flatMap((t=>t.is_emoji?[]:t));if(e.length){if(j.has(c[0]))throw it("leading combining mark");for(let t=1;tR(t,r)));if(!t.length)throw H.some((t=>R(t,r)))?nt(e[0],r):rt(r);if(e=t,1==t.length)break}return e}(n);!function(t,e){for(let r of e)if(!R(t,r))throw nt(t,r);if(t.M){let t=P(e);for(let e=1,r=t.length;e4)throw new Error(`excessive non-spacing marks: ${Q(J(t.slice(e-1,i)))} (${i-e}/4)`);e=i}}}(s,e),function(t,e){let r,n=[];for(let t of e){let e=q.get(t);if(1===e)return;if(e){let n=e.M.get(t);if(r=r?r.filter((t=>n.has(t))):T(n),!r.length)return}else n.push(t)}if(r)for(let e of r)if(n.every((t=>R(e,t))))throw new Error(`whole-script confusable: ${t.N}/${e.N}`)}(s,n),t=s.N}else t="Emoji"}o.type=t}catch(t){o.error=t}return o}))}function et(t){return t.map((({input:e,error:r,output:n})=>{if(r){let n=r.message;throw new Error(1==t.length?n:`Invalid label ${Q(J(e))}: ${n}`)}return m(n)})).join(N)}function rt(t){return new Error(`disallowed character: ${Z(t)}`)}function nt(t,e){let r=Z(e),n=H.find((t=>t.P.has(e)));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function it(t){return new Error(`illegal placement: ${t}`)}function st(t,e,r){let n=[],i=[];for(t=t.slice().reverse();t.length;){let s=at(t);if(s)i.length&&(n.push(e(i)),i=[]),n.push(r(s));else{let e=t.pop();if(W.has(e))i.push(e);else{let t=L.get(e);if(t)i.push(...t);else if(!U.has(e))throw rt(e)}}}return i.length&&n.push(e(i)),n}function ot(t){return t.filter((t=>65039!=t))}function at(t,e){let r,n=G,i=t.length;for(;i&&(n=n.get(t[--i]),n);){let{V:s}=n;s&&(r=s,e&&e.push(...t.slice(i).reverse()),t.length=i)}return r}const ct="valid",lt="mapped",ut="ignored";function ht(t){return t==ct||t==lt}function dt(t){return t.some((t=>z.has(t)))}function ft(t){for(let e=0;et.cps))})}return t}e.ens_beautify=function(t){let e=tt(t,O,(t=>t));for(let{type:t,output:r,error:n}of e){if(n)break;if("Greek"!==t){let t=0;for(;;){let e=r.indexOf(958,t);if(e<0)break;r[e]=926,t=e+1}}}return et(e)},e.ens_emoji=function(){return K(),V.map((t=>t.slice()))},e.ens_normalize=function(t){return et(tt(t,O,ot))},e.ens_normalize_fragment=function(t,e){K();let r=e?P:O;return t.split(N).map((t=>m(st(p(t),r,ot).flat()))).join(N)},e.ens_split=function(t,e){return tt(t,O,e?t=>t.slice():ot)},e.ens_tokenize=function t(e,{nf:r=!0}={}){K();let n=p(e).reverse(),i=[],s=[];for(;n.length;){let t=at(n,i);if(t)s.push({type:"emoji",emoji:t.slice(),input:i,cps:ot(t)}),i=[];else{let t=n.pop();if(46==t)s.push({type:"stop",cp:t});else if(W.has(t))s.push({type:ct,cps:[t]});else if(U.has(t))s.push({type:ut,cp:t});else{let e=L.get(t);e?s.push({type:lt,cp:t,cps:e.slice()}):s.push({type:"disallowed",cp:t})}}}if(r)for(let e=0,r=-1;eht(t.type)?t.cps:[])),a=O(o);g(a,o)?(s.splice(r,n-r,{type:"nfc",input:o,cps:a,tokens0:ft(i),tokens:t(m(a),{nf:!1})}),e=r):e=n-1,r=-1}else r=e;else n.type!==ut&&(r=-1)}return ft(s)},e.is_combining_mark=Y,e.nfc=O,e.nfd=P,e.safe_str_from_cps=J,e.should_escape=X},3083:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="6.9.1"},4760:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbiCoder=void 0;const n=r(2120),i=r(2900),s=r(2063),o=r(8151),a=r(8583),c=r(5949),l=r(4148),u=r(6341),h=r(6893),d=r(3524),f=r(6701),p=r(6711),m=r(5475),g=r(2120),y=new Map;y.set(0,"GENERIC_PANIC"),y.set(1,"ASSERT_FALSE"),y.set(17,"OVERFLOW"),y.set(18,"DIVIDE_BY_ZERO"),y.set(33,"ENUM_RANGE_ERROR"),y.set(34,"BAD_STORAGE_DATA"),y.set(49,"STACK_UNDERFLOW"),y.set(50,"ARRAY_RANGE_ERROR"),y.set(65,"OUT_OF_MEMORY"),y.set(81,"UNINITIALIZED_FUNCTION_CALL");const w=new RegExp(/^bytes([0-9]*)$/),b=new RegExp(/^(u?int)([0-9]*)$/);let v=null;class A{#t(t){if(t.isArray())return new o.ArrayCoder(this.#t(t.arrayChildren),t.arrayLength,t.name);if(t.isTuple())return new f.TupleCoder(t.components.map((t=>this.#t(t))),t.name);switch(t.baseType){case"address":return new s.AddressCoder(t.name);case"bool":return new a.BooleanCoder(t.name);case"string":return new d.StringCoder(t.name);case"bytes":return new c.BytesCoder(t.name);case"":return new u.NullCoder(t.name)}let e=t.type.match(b);if(e){let r=parseInt(e[2]||"256");return(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+e[1]+" bit length","param",t),new h.NumberCoder(r/8,"int"===e[1],t.name)}if(e=t.type.match(w),e){let r=parseInt(e[1]);return(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",t),new l.FixedBytesCoder(r,t.name)}(0,n.assertArgument)(!1,"invalid type","type",t.type)}getDefaultValue(t){const e=t.map((t=>this.#t(p.ParamType.from(t))));return new f.TupleCoder(e,"_").defaultValue()}encode(t,e){(0,n.assertArgumentCount)(e.length,t.length,"types/values length mismatch");const r=t.map((t=>this.#t(p.ParamType.from(t)))),s=new f.TupleCoder(r,"_"),o=new i.Writer;return s.encode(o,e),o.data}decode(t,e,r){const n=t.map((t=>this.#t(p.ParamType.from(t))));return new f.TupleCoder(n,"_").decode(new i.Reader(e,r))}static defaultAbiCoder(){return null==v&&(v=new A),v}static getBuiltinCallException(t,e,r){return function(t,e,r,n){let i="missing revert data",s=null,o=null;if(r){i="execution reverted";const t=(0,g.getBytes)(r);if(r=(0,g.hexlify)(r),0===t.length)i+=" (no data present; likely require(false) occurred",s="require(false)";else if(t.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,g.hexlify)(t.slice(0,4)))try{s=n.decode(["string"],t.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[s]},i+=`: ${JSON.stringify(s)}`}catch(t){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,g.hexlify)(t.slice(0,4)))try{const e=Number(n.decode(["uint256"],t.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[e]},s=`Panic due to ${y.get(e)||"UNKNOWN"}(${e})`,i+=`: ${s}`}catch(t){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}const a={to:e.to?(0,m.getAddress)(e.to):null,data:e.data||"0x"};return e.from&&(a.from=(0,m.getAddress)(e.from)),(0,g.makeError)(i,"CALL_EXCEPTION",{action:t,data:r,reason:s,transaction:a,invocation:null,revert:o})}(t,e,r,A.defaultAbiCoder())}}e.AbiCoder=A},2472:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBytes32String=e.encodeBytes32String=void 0;const n=r(2120);e.encodeBytes32String=function(t){const e=(0,n.toUtf8Bytes)(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,n.zeroPadBytes)(e,32)},e.decodeBytes32String=function(t){const e=(0,n.getBytes)(t,"bytes");if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===e[r-1];)r--;return(0,n.toUtf8String)(e.slice(0,r))}},2900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Reader=e.Writer=e.Coder=e.checkResultErrors=e.Result=e.WordSize=void 0;const n=r(2120);e.WordSize=32;const i=new Uint8Array(e.WordSize),s=["then"],o={};function a(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}class c extends Array{#e;constructor(...t){const e=t[0];let r=t[1],i=(t[2]||[]).slice(),c=!0;e!==o&&(r=t,i=[],c=!1),super(r.length),r.forEach(((t,e)=>{this[e]=t}));const l=i.reduce(((t,e)=>("string"==typeof e&&t.set(e,(t.get(e)||0)+1),t)),new Map);if(this.#e=Object.freeze(r.map(((t,e)=>{const r=i[e];return null!=r&&1===l.get(r)?r:null}))),c)return Object.freeze(this),new Proxy(this,{get:(t,e,r)=>{if("string"==typeof e){if(e.match(/^[0-9]+$/)){const r=(0,n.getNumber)(e,"%index");if(r<0||r>=this.length)throw new RangeError("out of result range");const i=t[r];return i instanceof Error&&a(`index ${r}`,i),i}if(s.indexOf(e)>=0)return Reflect.get(t,e,r);const i=t[e];if(i instanceof Function)return function(...e){return i.apply(this===r?t:this,e)};if(!(e in t))return t.getValue.apply(this===r?t:this,[e])}return Reflect.get(t,e,r)}})}toArray(){const t=[];return this.forEach(((e,r)=>{e instanceof Error&&a(`index ${r}`,e),t.push(e)})),t}toObject(){return this.#e.reduce(((t,e,r)=>((0,n.assert)(null!=e,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),e in t||(t[e]=this.getValue(e)),t)),{})}slice(t,e){null==t&&(t=0),t<0&&(t+=this.length)<0&&(t=0),null==e&&(e=this.length),e<0&&(e+=this.length)<0&&(e=0),e>this.length&&(e=this.length);const r=[],n=[];for(let i=t;i{this.#r[t]=l(e)}}};class u{allowLoose;#r;#s;constructor(t,e){(0,n.defineProperties)(this,{allowLoose:!!e}),this.#r=(0,n.getBytesCopy)(t),this.#s=0}get data(){return(0,n.hexlify)(this.#r)}get dataLength(){return this.#r.length}get consumed(){return this.#s}get bytes(){return new Uint8Array(this.#r)}#o(t,r,i){let s=Math.ceil(r/e.WordSize)*e.WordSize;return this.#s+s>this.#r.length&&(this.allowLoose&&i&&this.#s+r<=this.#r.length?s=r:(0,n.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,n.getBytesCopy)(this.#r),length:this.#r.length,offset:this.#s+s})),this.#r.slice(this.#s,this.#s+s)}subReader(t){return new u(this.#r.slice(this.#s+t),this.allowLoose)}readBytes(t,e){let r=this.#o(0,t,!!e);return this.#s+=r.length,r.slice(0,t)}readValue(){return(0,n.toBigInt)(this.readBytes(e.WordSize))}readIndex(){return(0,n.toNumber)(this.readBytes(e.WordSize))}}e.Reader=u},2063:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddressCoder=void 0;const n=r(5475),i=r(358),s=r(3762),o=r(2900);class a extends o.Coder{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){let r=s.Typed.dereference(e,"string");try{r=(0,n.getAddress)(r)}catch(t){return this._throwError(t.message,e)}return t.writeValue(r)}decode(t){return(0,n.getAddress)((0,i.toBeHex)(t.readValue(),20))}}e.AddressCoder=a},6347:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnonymousCoder=void 0;const n=r(2900);class i extends n.Coder{coder;constructor(t){super(t.name,t.type,"_",t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}e.AnonymousCoder=i},8151:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayCoder=e.unpack=e.pack=void 0;const n=r(2120),i=r(3762),s=r(2900),o=r(6347);function a(t,e,r){let i=[];if(Array.isArray(r))i=r;else if(r&&"object"==typeof r){let t={};i=e.map((e=>{const i=e.localName;return(0,n.assert)(i,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:e},value:r}),(0,n.assert)(!t[i],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:e},value:r}),t[i]=!0,r[i]}))}else(0,n.assertArgument)(!1,"invalid tuple value","tuple",r);(0,n.assertArgument)(e.length===i.length,"types/value length mismatch","tuple",r);let o=new s.Writer,a=new s.Writer,c=[];e.forEach(((t,e)=>{let r=i[e];if(t.dynamic){let e=a.length;t.encode(a,r);let n=o.writeUpdatableValue();c.push((t=>{n(t+e)}))}else t.encode(o,r)})),c.forEach((t=>{t(o.length)}));let l=t.appendWriter(o);return l+=t.appendWriter(a),l}function c(t,e){let r=[],i=[],o=t.subReader(0);return e.forEach((e=>{let s=null;if(e.dynamic){let r=t.readIndex(),i=o.subReader(r);try{s=e.decode(i)}catch(t){if((0,n.isError)(t,"BUFFER_OVERRUN"))throw t;s=t,s.baseType=e.name,s.name=e.localName,s.type=e.type}}else try{s=e.decode(t)}catch(t){if((0,n.isError)(t,"BUFFER_OVERRUN"))throw t;s=t,s.baseType=e.name,s.name=e.localName,s.type=e.type}if(null==s)throw new Error("investigate");r.push(s),i.push(e.localName||null)})),s.Result.fromItems(r,i)}e.pack=a,e.unpack=c;class l extends s.Coder{coder;length;constructor(t,e,r){super("array",t.type+"["+(e>=0?e:"")+"]",r,-1===e||t.dynamic),(0,n.defineProperties)(this,{coder:t,length:e})}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanCoder=void 0;const n=r(3762),i=r(2900);class s extends i.Coder{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){const r=n.Typed.dereference(e,"bool");return t.writeValue(r?1:0)}decode(t){return!!t.readValue()}}e.BooleanCoder=s},5949:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BytesCoder=e.DynamicBytesCoder=void 0;const n=r(2120),i=r(2900);class s extends i.Coder{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){e=(0,n.getBytesCopy)(e);let r=t.writeValue(e.length);return r+=t.writeBytes(e),r}decode(t){return t.readBytes(t.readIndex(),!0)}}e.DynamicBytesCoder=s,e.BytesCoder=class extends s{constructor(t){super("bytes",t)}decode(t){return(0,n.hexlify)(super.decode(t))}}},4148:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FixedBytesCoder=void 0;const n=r(2120),i=r(3762),s=r(2900);class o extends s.Coder{size;constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),(0,n.defineProperties)(this,{size:t},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=(0,n.getBytesCopy)(i.Typed.dereference(e,this.type));return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return(0,n.hexlify)(t.readBytes(this.size))}}e.FixedBytesCoder=o},6341:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullCoder=void 0;const n=r(2900),i=new Uint8Array([]);class s extends n.Coder{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes(i)}decode(t){return t.readBytes(0),null}}e.NullCoder=s},6893:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NumberCoder=void 0;const n=r(2120),i=r(3762),s=r(2900),o=BigInt(0),a=BigInt(1),c=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class l extends s.Coder{size;signed;constructor(t,e,r){const i=(e?"int":"uint")+8*t;super(i,i,r,!1),(0,n.defineProperties)(this,{size:t,signed:e},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(t,e){let r=(0,n.getBigInt)(i.Typed.dereference(e,this.type)),l=(0,n.mask)(c,8*s.WordSize);if(this.signed){let t=(0,n.mask)(l,8*this.size-1);(r>t||r<-(t+a))&&this._throwError("value out-of-bounds",e),r=(0,n.toTwos)(r,8*s.WordSize)}else(r(0,n.mask)(l,8*this.size))&&this._throwError("value out-of-bounds",e);return t.writeValue(r)}decode(t){let e=(0,n.mask)(t.readValue(),8*this.size);return this.signed&&(e=(0,n.fromTwos)(e,8*this.size)),e}}e.NumberCoder=l},3524:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringCoder=void 0;const n=r(2119),i=r(3762),s=r(5949);class o extends s.DynamicBytesCoder{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,(0,n.toUtf8Bytes)(i.Typed.dereference(e,"string")))}decode(t){return(0,n.toUtf8String)(super.decode(t))}}e.StringCoder=o},6701:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TupleCoder=void 0;const n=r(9290),i=r(3762),s=r(2900),o=r(8151);class a extends s.Coder{coders;constructor(t,e){let r=!1;const i=[];t.forEach((t=>{t.dynamic&&(r=!0),i.push(t.type)})),super("tuple","tuple("+i.join(",")+")",e,r),(0,n.defineProperties)(this,{coders:Object.freeze(t.slice())})}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))})),Object.freeze(t)}encode(t,e){const r=i.Typed.dereference(e,"tuple");return(0,o.pack)(t,this.coders,r)}decode(t){return(0,o.unpack)(t,this.coders)}}e.TupleCoder=a},6711:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StructFragment=e.FunctionFragment=e.FallbackFragment=e.ConstructorFragment=e.EventFragment=e.ErrorFragment=e.NamedFragment=e.Fragment=e.ParamType=void 0;const n=r(2120),i=r(8336);function s(t){const e=new Set;return t.forEach((t=>e.add(t))),Object.freeze(e)}const o=s("external public payable".split(" ")),a="constant external internal payable private public pure view",c=s(a.split(" ")),l="constructor error event fallback function receive struct",u=s(l.split(" ")),h="calldata memory storage payable indexed",d=s(h.split(" ")),f=s([l,h,"tuple returns",a].join(" ").split(" ")),p={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},m=new RegExp("^(\\s*)"),g=new RegExp("^([0-9]+)"),y=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),w=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),b=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class v{#s;#a;get offset(){return this.#s}get length(){return this.#a.length-this.#s}constructor(t){this.#s=0,this.#a=t.slice()}clone(){return new v(this.#a)}reset(){this.#s=0}#c(t=0,e=0){return new v(this.#a.slice(t,e).map((e=>Object.freeze(Object.assign({},e,{match:e.match-t,linkBack:e.linkBack-t,linkNext:e.linkNext-t})))))}popKeyword(t){const e=this.peek();if("KEYWORD"!==e.type||!t.has(e.text))throw new Error(`expected keyword ${e.text}`);return this.pop().text}popType(t){if(this.peek().type!==t)throw new Error(`expected ${t}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const t=this.peek();if("OPEN_PAREN"!==t.type)throw new Error("bad start");const e=this.#c(this.#s+1,t.match+1);return this.#s=t.match+1,e}popParams(){const t=this.peek();if("OPEN_PAREN"!==t.type)throw new Error("bad start");const e=[];for(;this.#s=this.#a.length)throw new Error("out-of-bounds");return this.#a[this.#s]}peekKeyword(t){const e=this.peekType("KEYWORD");return null!=e&&t.has(e)?e:null}peekType(t){if(0===this.length)return null;const e=this.peek();return e.type===t?e.text:null}pop(){const t=this.peek();return this.#s++,t}toString(){const t=[];for(let e=this.#s;e`}}function A(t){const e=[],r=e=>{const r=o0&&"NUMBER"===e[e.length-1].type){const r=e.pop().text;t=r+t,e[e.length-1].value=(0,n.getNumber)(r)}if(0===e.length||"BRACKET"!==e[e.length-1].type)throw new Error("missing opening bracket");e[e.length-1].text+=t}}else if(c=a.match(y),c){if(l.text=c[1],o+=l.text.length,f.has(l.text)){l.type="KEYWORD";continue}if(l.text.match(b)){l.type="TYPE";continue}l.type="ID"}else{if(c=a.match(g),!c)throw new Error(`unexpected token ${JSON.stringify(a[0])} at position ${o}`);l.text=c[1],l.type="NUMBER",o+=l.text.length}}return new v(e.map((t=>Object.freeze(t))))}function E(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function x(t,e){if(e.peekKeyword(u)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function _(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(null==n||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function S(t){let e=_(t,c);return E(e,s("constant payable nonpayable".split(" "))),E(e,s("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function M(t,e){return t.popParams().map((t=>F.from(t,e)))}function C(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return(0,n.getBigInt)(t.pop().text);throw new Error("invalid gas")}return null}function k(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const I=new RegExp(/^(.*)\[([0-9]*)\]$/);function P(t){const e=t.match(b);if((0,n.assertArgument)(e,"invalid type","type",t),"uint"===t)return"uint256";if("int"===t)return"int256";if(e[2]){const r=parseInt(e[2]);(0,n.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);(0,n.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",t)}return t}const O={},N=Symbol.for("_ethers_internal"),T="_ParamTypeInternal",R="_ErrorInternal",B="_EventInternal",L="_ConstructorInternal",U="_FallbackInternal",j="_FunctionInternal",D="_StructInternal";class F{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(t,e,r,i,s,o,a,c){if((0,n.assertPrivate)(t,O,"ParamType"),Object.defineProperty(this,N,{value:T}),o&&(o=Object.freeze(o.slice())),"array"===i){if(null==a||null==c)throw new Error("")}else if(null!=a||null!=c)throw new Error("");if("tuple"===i){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,n.defineProperties)(this,{name:e,type:r,baseType:i,indexed:s,components:o,arrayLength:a,arrayChildren:c})}format(t){if(null==t&&(t="sighash"),"json"===t){const e=this.name||"";if(this.isArray()){const t=JSON.parse(this.arrayChildren.format("json"));return t.name=e,t.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(t)}const r={type:"tuple"===this.baseType?"tuple":this.type,name:e};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(r)}let e="";return this.isArray()?(e+=this.arrayChildren.format(t),e+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?e+="("+this.components.map((e=>e.format(t))).join("full"===t?", ":",")+")":e+=this.type,"sighash"!==t&&(!0===this.indexed&&(e+=" indexed"),"full"===t&&this.name&&(e+=" "+this.name)),e}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(t,e){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return t.map((t=>r.arrayChildren.walk(t,e)))}if(this.isTuple()){if(!Array.isArray(t))throw new Error("invalid tuple value");if(t.length!==this.components.length)throw new Error("array is wrong length");const r=this;return t.map(((t,n)=>r.components[n].walk(t,e)))}return e(this.type,t)}#l(t,e,r,n){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const i=this.arrayChildren,s=e.slice();return s.forEach(((e,n)=>{i.#l(t,e,r,(t=>{s[n]=t}))})),void n(s)}if(this.isTuple()){const i=this.components;let s;if(Array.isArray(e))s=e.slice();else{if(null==e||"object"!=typeof e)throw new Error("invalid tuple value");s=i.map((t=>{if(!t.name)throw new Error("cannot use object value with unnamed components");if(!(t.name in e))throw new Error(`missing value for component ${t.name}`);return e[t.name]}))}if(s.length!==this.components.length)throw new Error("array is wrong length");return s.forEach(((e,n)=>{i[n].#l(t,e,r,(t=>{s[n]=t}))})),void n(s)}const i=r(this.type,e);i.then?t.push(async function(){n(await i)}()):n(i)}async walkAsync(t,e){const r=[],n=[t];return this.#l(r,t,e,(t=>{n[0]=t})),r.length&&await Promise.all(r),n[0]}static from(t,e){if(F.isParamType(t))return t;if("string"==typeof t)try{return F.from(A(t),e)}catch(e){(0,n.assertArgument)(!1,"invalid param type","obj",t)}else if(t instanceof v){let r="",n="",i=null;_(t,s(["tuple"])).has("tuple")||t.peekType("OPEN_PAREN")?(n="tuple",i=t.popParams().map((t=>F.from(t))),r=`tuple(${i.map((t=>t.format())).join(",")})`):(r=P(t.popType("TYPE")),n=r);let o=null,a=null;for(;t.length&&t.peekType("BRACKET");){const e=t.pop();o=new F(O,"",r,n,null,i,a,o),a=e.value,r+=e.text,n="array",i=null}let c=null;if(_(t,d).has("indexed")){if(!e)throw new Error("");c=!0}const l=t.peekType("ID")?t.pop().text:"";if(t.length)throw new Error("leftover tokens");return new F(O,l,r,n,c,i,a,o)}const r=t.name;(0,n.assertArgument)(!r||"string"==typeof r&&r.match(w),"invalid name","obj.name",r);let i=t.indexed;null!=i&&((0,n.assertArgument)(e,"parameter cannot be indexed","obj.indexed",t.indexed),i=!!i);let o=t.type,a=o.match(I);if(a){const e=parseInt(a[2]||"-1"),n=F.from({type:a[1],components:t.components});return new F(O,r||"",o,"array",i,null,e,n)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){const e=null!=t.components?t.components.map((t=>F.from(t))):null;return new F(O,r||"",o,"tuple",i,e,null,null)}return o=P(t.type),new F(O,r||"",o,o,i,null,null,null)}static isParamType(t){return t&&t[N]===T}}e.ParamType=F;class z{type;inputs;constructor(t,e,r){(0,n.assertPrivate)(t,O,"Fragment"),r=Object.freeze(r.slice()),(0,n.defineProperties)(this,{type:e,inputs:r})}static from(t){if("string"==typeof t){try{z.from(JSON.parse(t))}catch(t){}return z.from(A(t))}if(t instanceof v)switch(t.peekKeyword(u)){case"constructor":return V.from(t);case"error":return q.from(t);case"event":return W.from(t);case"fallback":case"receive":return G.from(t);case"function":return K.from(t);case"struct":return Z.from(t)}else if("object"==typeof t){switch(t.type){case"constructor":return V.from(t);case"error":return q.from(t);case"event":return W.from(t);case"fallback":case"receive":return G.from(t);case"function":return K.from(t);case"struct":return Z.from(t)}(0,n.assert)(!1,`unsupported type: ${t.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,n.assertArgument)(!1,"unsupported frgament object","obj",t)}static isConstructor(t){return V.isFragment(t)}static isError(t){return q.isFragment(t)}static isEvent(t){return W.isFragment(t)}static isFunction(t){return K.isFragment(t)}static isStruct(t){return Z.isFragment(t)}}e.Fragment=z;class H extends z{name;constructor(t,e,r,i){super(t,e,i),(0,n.assertArgument)("string"==typeof r&&r.match(w),"invalid identifier","name",r),i=Object.freeze(i.slice()),(0,n.defineProperties)(this,{name:r})}}function $(t,e){return"("+e.map((e=>e.format(t))).join("full"===t?", ":",")+")"}e.NamedFragment=H;class q extends H{constructor(t,e,r){super(t,"error",e,r),Object.defineProperty(this,N,{value:R})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("error"),e.push(this.name+$(t,this.inputs)),e.join(" ")}static from(t){if(q.isFragment(t))return t;if("string"==typeof t)return q.from(A(t));if(t instanceof v){const e=x("error",t),r=M(t);return k(t),new q(O,e,r)}return new q(O,t.name,t.inputs?t.inputs.map(F.from):[])}static isFragment(t){return t&&t[N]===R}}e.ErrorFragment=q;class W extends H{anonymous;constructor(t,e,r,i){super(t,"event",e,r),Object.defineProperty(this,N,{value:B}),(0,n.defineProperties)(this,{anonymous:i})}get topicHash(){return(0,i.id)(this.format("sighash"))}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("event"),e.push(this.name+$(t,this.inputs)),"sighash"!==t&&this.anonymous&&e.push("anonymous"),e.join(" ")}static getTopicHash(t,e){return e=(e||[]).map((t=>F.from(t))),new W(O,t,e,!1).topicHash}static from(t){if(W.isFragment(t))return t;if("string"==typeof t)try{return W.from(A(t))}catch(e){(0,n.assertArgument)(!1,"invalid event fragment","obj",t)}else if(t instanceof v){const e=x("event",t),r=M(t,!0),n=!!_(t,s(["anonymous"])).has("anonymous");return k(t),new W(O,e,r,n)}return new W(O,t.name,t.inputs?t.inputs.map((t=>F.from(t,!0))):[],!!t.anonymous)}static isFragment(t){return t&&t[N]===B}}e.EventFragment=W;class V extends z{payable;gas;constructor(t,e,r,i,s){super(t,e,r),Object.defineProperty(this,N,{value:L}),(0,n.defineProperties)(this,{payable:i,gas:s})}format(t){if((0,n.assert)(null!=t&&"sighash"!==t,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===t)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});const e=[`constructor${$(t,this.inputs)}`];return this.payable&&e.push("payable"),null!=this.gas&&e.push(`@${this.gas.toString()}`),e.join(" ")}static from(t){if(V.isFragment(t))return t;if("string"==typeof t)try{return V.from(A(t))}catch(e){(0,n.assertArgument)(!1,"invalid constuctor fragment","obj",t)}else if(t instanceof v){_(t,s(["constructor"]));const e=M(t),r=!!_(t,o).has("payable"),n=C(t);return k(t),new V(O,"constructor",e,r,n)}return new V(O,"constructor",t.inputs?t.inputs.map(F.from):[],!!t.payable,null!=t.gas?t.gas:null)}static isFragment(t){return t&&t[N]===L}}e.ConstructorFragment=V;class G extends z{payable;constructor(t,e,r){super(t,"fallback",e),Object.defineProperty(this,N,{value:U}),(0,n.defineProperties)(this,{payable:r})}format(t){const e=0===this.inputs.length?"receive":"fallback";if("json"===t){const t=this.payable?"payable":"nonpayable";return JSON.stringify({type:e,stateMutability:t})}return`${e}()${this.payable?" payable":""}`}static from(t){if(G.isFragment(t))return t;if("string"==typeof t)try{return G.from(A(t))}catch(e){(0,n.assertArgument)(!1,"invalid fallback fragment","obj",t)}else if(t instanceof v){const e=t.toString(),r=t.peekKeyword(s(["fallback","receive"]));if((0,n.assertArgument)(r,"type must be fallback or receive","obj",e),"receive"===t.popKeyword(s(["fallback","receive"]))){const e=M(t);return(0,n.assertArgument)(0===e.length,"receive cannot have arguments","obj.inputs",e),_(t,s(["payable"])),k(t),new G(O,[],!0)}let i=M(t);i.length?(0,n.assertArgument)(1===i.length&&"bytes"===i[0].type,"invalid fallback inputs","obj.inputs",i.map((t=>t.format("minimal"))).join(", ")):i=[F.from("bytes")];const o=S(t);if((0,n.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),_(t,s(["returns"])).has("returns")){const e=M(t);(0,n.assertArgument)(1===e.length&&"bytes"===e[0].type,"invalid fallback outputs","obj.outputs",e.map((t=>t.format("minimal"))).join(", "))}return k(t),new G(O,i,"payable"===o)}if("receive"===t.type)return new G(O,[],!0);if("fallback"===t.type){const e=[F.from("bytes")],r="payable"===t.stateMutability;return new G(O,e,r)}(0,n.assertArgument)(!1,"invalid fallback description","obj",t)}static isFragment(t){return t&&t[N]===U}}e.FallbackFragment=G;class K extends H{constant;outputs;stateMutability;payable;gas;constructor(t,e,r,i,s,o){super(t,"function",e,i),Object.defineProperty(this,N,{value:j}),s=Object.freeze(s.slice());const a="view"===r||"pure"===r,c="payable"===r;(0,n.defineProperties)(this,{constant:a,gas:o,outputs:s,payable:c,stateMutability:r})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(t){if(null==t&&(t="sighash"),"json"===t)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});const e=[];return"sighash"!==t&&e.push("function"),e.push(this.name+$(t,this.inputs)),"sighash"!==t&&("nonpayable"!==this.stateMutability&&e.push(this.stateMutability),this.outputs&&this.outputs.length&&(e.push("returns"),e.push($(t,this.outputs))),null!=this.gas&&e.push(`@${this.gas.toString()}`)),e.join(" ")}static getSelector(t,e){return e=(e||[]).map((t=>F.from(t))),new K(O,t,"view",e,[],null).selector}static from(t){if(K.isFragment(t))return t;if("string"==typeof t)try{return K.from(A(t))}catch(e){(0,n.assertArgument)(!1,"invalid function fragment","obj",t)}else if(t instanceof v){const e=x("function",t),r=M(t),n=S(t);let i=[];_(t,s(["returns"])).has("returns")&&(i=M(t));const o=C(t);return k(t),new K(O,e,n,r,i,o)}let e=t.stateMutability;return null==e&&(e="payable","boolean"==typeof t.constant?(e="view",t.constant||(e="payable","boolean"!=typeof t.payable||t.payable||(e="nonpayable"))):"boolean"!=typeof t.payable||t.payable||(e="nonpayable")),new K(O,t.name,e,t.inputs?t.inputs.map(F.from):[],t.outputs?t.outputs.map(F.from):[],null!=t.gas?t.gas:null)}static isFragment(t){return t&&t[N]===j}}e.FunctionFragment=K;class Z extends H{constructor(t,e,r){super(t,"struct",e,r),Object.defineProperty(this,N,{value:D})}format(){throw new Error("@TODO")}static from(t){if("string"==typeof t)try{return Z.from(A(t))}catch(e){(0,n.assertArgument)(!1,"invalid struct fragment","obj",t)}else if(t instanceof v){const e=x("struct",t),r=M(t);return k(t),new Z(O,e,r)}return new Z(O,t.name,t.inputs?t.inputs.map(F.from):[])}static isFragment(t){return t&&t[N]===D}}e.StructFragment=Z},3707:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Typed=e.Result=e.TransactionDescription=e.LogDescription=e.ErrorDescription=e.Interface=e.Indexed=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.Fragment=e.FallbackFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.encodeBytes32String=e.decodeBytes32String=e.AbiCoder=void 0;var n=r(4760);Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return n.AbiCoder}});var i=r(2472);Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}});var s=r(6711);Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return s.FallbackFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return s.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return s.StructFragment}});var o=r(6401);Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return o.Result}});var a=r(3762);Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return a.Typed}})},6401:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Interface=e.Indexed=e.ErrorDescription=e.TransactionDescription=e.LogDescription=e.Result=e.checkResultErrors=void 0;const n=r(6965),i=r(8336),s=r(2120),o=r(4760),a=r(2900);Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return a.Result}});const c=r(6711),l=r(3762);class u{fragment;name;signature;topic;args;constructor(t,e,r){const n=t.name,i=t.format();(0,s.defineProperties)(this,{fragment:t,name:n,signature:i,topic:e,args:r})}}e.LogDescription=u;class h{fragment;name;args;signature;selector;value;constructor(t,e,r,n){const i=t.name,o=t.format();(0,s.defineProperties)(this,{fragment:t,name:i,args:r,signature:o,selector:e,value:n})}}e.TransactionDescription=h;class d{fragment;name;args;signature;selector;constructor(t,e,r){const n=t.name,i=t.format();(0,s.defineProperties)(this,{fragment:t,name:n,args:r,signature:i,selector:e})}}e.ErrorDescription=d;class f{hash;_isIndexed;static isIndexed(t){return!(!t||!t._isIndexed)}constructor(t){(0,s.defineProperties)(this,{hash:t,_isIndexed:!0})}}e.Indexed=f;const p={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},m={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&p[t.toString()]&&(e=p[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};class g{fragments;deploy;fallback;receive;#u;#h;#d;#f;constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,this.#d=new Map,this.#u=new Map,this.#h=new Map;const r=[];for(const t of e)try{r.push(c.Fragment.from(t))}catch(t){console.log("EE",t)}(0,s.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,i=!1;this.#f=this.getAbiCoder(),this.fragments.forEach(((t,e)=>{let r;switch(t.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,s.defineProperties)(this,{deploy:t});case"fallback":return void(0===t.inputs.length?i=!0:((0,s.assertArgument)(!n||t.payable!==n.payable,"conflicting fallback fragments",`fragments[${e}]`,t),n=t,i=n.payable));case"function":r=this.#d;break;case"event":r=this.#h;break;case"error":r=this.#u;break;default:return}const o=t.format();r.has(o)||r.set(o,t)})),this.deploy||(0,s.defineProperties)(this,{deploy:c.ConstructorFragment.from("constructor()")}),(0,s.defineProperties)(this,{fallback:n,receive:i})}format(t){const e=t?"minimal":"full";return this.fragments.map((t=>t.format(e)))}formatJson(){const t=this.fragments.map((t=>t.format("json")));return JSON.stringify(t.map((t=>JSON.parse(t))))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#p(t,e,r){if((0,s.isHexString)(t)){const e=t.toLowerCase();for(const t of this.#d.values())if(e===t.selector)return t;return null}if(-1===t.indexOf("(")){const n=[];for(const[e,r]of this.#d)e.split("(")[0]===t&&n.push(r);if(e){const t=e.length>0?e[e.length-1]:null;let r=e.length,i=!0;l.Typed.isTyped(t)&&"overrides"===t.type&&(i=!1,r--);for(let t=n.length-1;t>=0;t--){const e=n[t].inputs.length;e===r||i&&e===r-1||n.splice(t,1)}for(let t=n.length-1;t>=0;t--){const r=n[t].inputs;for(let i=0;i=r.length){if("overrides"===e[i].type)continue;n.splice(t,1);break}if(e[i].type!==r[i].baseType){n.splice(t,1);break}}}}if(1===n.length&&e&&e.length!==n[0].inputs.length){const t=e[e.length-1];(null==t||Array.isArray(t)||"object"!=typeof t)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){const e=n.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous function description (i.e. matches ${e})`,"key",t)}return n[0]}return this.#d.get(c.FunctionFragment.from(t).format())||null}getFunctionName(t){const e=this.#p(t,null,!1);return(0,s.assertArgument)(e,"no matching function","key",t),e.name}hasFunction(t){return!!this.#p(t,null,!1)}getFunction(t,e){return this.#p(t,e||null,!0)}forEachFunction(t){const e=Array.from(this.#d.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r=0;t--)n[t].inputs.length=0;t--){const r=n[t].inputs;for(let i=0;i1&&r){const e=n.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous event description (i.e. matches ${e})`,"key",t)}return n[0]}return this.#h.get(c.EventFragment.from(t).format())||null}getEventName(t){const e=this.#m(t,null,!1);return(0,s.assertArgument)(e,"no matching event","key",t),e.name}hasEvent(t){return!!this.#m(t,null,!1)}getEvent(t,e){return this.#m(t,e||null,!0)}forEachEvent(t){const e=Array.from(this.#h.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r1){const r=e.map((t=>JSON.stringify(t.format()))).join(", ");(0,s.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",t)}return e[0]}if("Error(string)"===(t=c.ErrorFragment.from(t).format()))return c.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===t)return c.ErrorFragment.from("error Panic(uint256)");return this.#u.get(t)||null}forEachError(t){const e=Array.from(this.#u.keys());e.sort(((t,e)=>t.localeCompare(e)));for(let r=0;r"string"===t.type?(0,i.id)(e):"bytes"===t.type?(0,n.keccak256)((0,s.hexlify)(e)):("bool"===t.type&&"boolean"==typeof e?e=e?"0x01":"0x00":t.type.match(/^u?int/)?e=(0,s.toBeHex)(e):t.type.match(/^bytes/)?e=(0,s.zeroPadBytes)(e,32):"address"===t.type&&this.#f.encode(["address"],[e]),(0,s.zeroPadValue)((0,s.hexlify)(e),32));for(e.forEach(((e,n)=>{const i=t.inputs[n];i.indexed?null==e?r.push(null):"array"===i.baseType||"tuple"===i.baseType?(0,s.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+i.name,e):Array.isArray(e)?r.push(e.map((t=>o(i,t)))):r.push(o(i,e)):(0,s.assertArgument)(null==e,"cannot filter non-indexed parameters; must be null","contract."+i.name,e)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){if("string"==typeof t){const e=this.getEvent(t);(0,s.assertArgument)(e,"unknown event","eventFragment",t),t=e}const r=[],o=[],a=[];return t.anonymous||r.push(t.topicHash),(0,s.assertArgument)(e.length===t.inputs.length,"event arguments/values mismatch","values",e),t.inputs.forEach(((t,s)=>{const c=e[s];if(t.indexed)if("string"===t.type)r.push((0,i.id)(c));else if("bytes"===t.type)r.push((0,n.keccak256)(c));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");r.push(this.#f.encode([t.type],[c]))}else o.push(t),a.push(c)})),{data:this.#f.encode(o,a),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t){const e=this.getEvent(t);(0,s.assertArgument)(e,"unknown event","eventFragment",t),t=e}if(null!=r&&!t.anonymous){const e=t.topicHash;(0,s.assertArgument)((0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===e,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const n=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(n.push(c.ParamType.from({type:"bytes32",name:t.name})),o.push(!0)):(n.push(t),o.push(!1)):(i.push(t),o.push(!1))}));const l=null!=r?this.#f.decode(n,(0,s.concat)(r)):null,u=this.#f.decode(i,e,!0),h=[],d=[];let p=0,m=0;return t.inputs.forEach(((t,e)=>{let r=null;if(t.indexed)if(null==l)r=new f(null);else if(o[e])r=new f(l[m++]);else try{r=l[m++]}catch(t){r=t}else try{r=u[p++]}catch(t){r=t}h.push(r),d.push(t.name||null)})),a.Result.fromItems(h,d)}parseTransaction(t){const e=(0,s.getBytes)(t.data,"tx.data"),r=(0,s.getBigInt)(null!=t.value?t.value:0,"tx.value"),n=this.getFunction((0,s.hexlify)(e.slice(0,4)));if(!n)return null;const i=this.#f.decode(n.inputs,e.slice(4));return new h(n,n.selector,i,r)}parseCallResult(t){throw new Error("@TODO")}parseLog(t){const e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new u(e,e.topicHash,this.decodeEventLog(e,t.data,t.topics))}parseError(t){const e=(0,s.hexlify)(t),r=this.getError((0,s.dataSlice)(e,0,4));if(!r)return null;const n=this.#f.decode(r.inputs,(0,s.dataSlice)(e,4));return new d(r,r.selector,n)}static from(t){return t instanceof g?t:"string"==typeof t?new g(JSON.parse(t)):"function"==typeof t.format?new g(t.format("json")):new g(t)}}e.Interface=g},3762:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Typed=void 0;const n=r(2120),i={};function s(t,e){let r=!1;return e<0&&(r=!0,e*=-1),new c(i,`${r?"":"u"}int${e}`,t,{signed:r,width:e})}function o(t,e){return new c(i,`bytes${e||""}`,t,{size:e})}const a=Symbol.for("_ethers_typed");class c{type;value;#g;_typedSymbol;constructor(t,e,r,s){null==s&&(s=null),(0,n.assertPrivate)(i,t,"Typed"),(0,n.defineProperties)(this,{_typedSymbol:a,type:e,value:r}),this.#g=s,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((t=>t.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#g}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#g?-1:!1===this.#g?this.value.length:null}static from(t,e){return new c(i,t,e)}static uint8(t){return s(t,8)}static uint16(t){return s(t,16)}static uint24(t){return s(t,24)}static uint32(t){return s(t,32)}static uint40(t){return s(t,40)}static uint48(t){return s(t,48)}static uint56(t){return s(t,56)}static uint64(t){return s(t,64)}static uint72(t){return s(t,72)}static uint80(t){return s(t,80)}static uint88(t){return s(t,88)}static uint96(t){return s(t,96)}static uint104(t){return s(t,104)}static uint112(t){return s(t,112)}static uint120(t){return s(t,120)}static uint128(t){return s(t,128)}static uint136(t){return s(t,136)}static uint144(t){return s(t,144)}static uint152(t){return s(t,152)}static uint160(t){return s(t,160)}static uint168(t){return s(t,168)}static uint176(t){return s(t,176)}static uint184(t){return s(t,184)}static uint192(t){return s(t,192)}static uint200(t){return s(t,200)}static uint208(t){return s(t,208)}static uint216(t){return s(t,216)}static uint224(t){return s(t,224)}static uint232(t){return s(t,232)}static uint240(t){return s(t,240)}static uint248(t){return s(t,248)}static uint256(t){return s(t,256)}static uint(t){return s(t,256)}static int8(t){return s(t,-8)}static int16(t){return s(t,-16)}static int24(t){return s(t,-24)}static int32(t){return s(t,-32)}static int40(t){return s(t,-40)}static int48(t){return s(t,-48)}static int56(t){return s(t,-56)}static int64(t){return s(t,-64)}static int72(t){return s(t,-72)}static int80(t){return s(t,-80)}static int88(t){return s(t,-88)}static int96(t){return s(t,-96)}static int104(t){return s(t,-104)}static int112(t){return s(t,-112)}static int120(t){return s(t,-120)}static int128(t){return s(t,-128)}static int136(t){return s(t,-136)}static int144(t){return s(t,-144)}static int152(t){return s(t,-152)}static int160(t){return s(t,-160)}static int168(t){return s(t,-168)}static int176(t){return s(t,-176)}static int184(t){return s(t,-184)}static int192(t){return s(t,-192)}static int200(t){return s(t,-200)}static int208(t){return s(t,-208)}static int216(t){return s(t,-216)}static int224(t){return s(t,-224)}static int232(t){return s(t,-232)}static int240(t){return s(t,-240)}static int248(t){return s(t,-248)}static int256(t){return s(t,-256)}static int(t){return s(t,-256)}static bytes1(t){return o(t,1)}static bytes2(t){return o(t,2)}static bytes3(t){return o(t,3)}static bytes4(t){return o(t,4)}static bytes5(t){return o(t,5)}static bytes6(t){return o(t,6)}static bytes7(t){return o(t,7)}static bytes8(t){return o(t,8)}static bytes9(t){return o(t,9)}static bytes10(t){return o(t,10)}static bytes11(t){return o(t,11)}static bytes12(t){return o(t,12)}static bytes13(t){return o(t,13)}static bytes14(t){return o(t,14)}static bytes15(t){return o(t,15)}static bytes16(t){return o(t,16)}static bytes17(t){return o(t,17)}static bytes18(t){return o(t,18)}static bytes19(t){return o(t,19)}static bytes20(t){return o(t,20)}static bytes21(t){return o(t,21)}static bytes22(t){return o(t,22)}static bytes23(t){return o(t,23)}static bytes24(t){return o(t,24)}static bytes25(t){return o(t,25)}static bytes26(t){return o(t,26)}static bytes27(t){return o(t,27)}static bytes28(t){return o(t,28)}static bytes29(t){return o(t,29)}static bytes30(t){return o(t,30)}static bytes31(t){return o(t,31)}static bytes32(t){return o(t,32)}static address(t){return new c(i,"address",t)}static bool(t){return new c(i,"bool",!!t)}static bytes(t){return new c(i,"bytes",t)}static string(t){return new c(i,"string",t)}static array(t,e){throw new Error("not implemented yet")}static tuple(t,e){throw new Error("not implemented yet")}static overrides(t){return new c(i,"overrides",Object.assign({},t))}static isTyped(t){return t&&"object"==typeof t&&"_typedSymbol"in t&&t._typedSymbol===a}static dereference(t,e){if(c.isTyped(t)){if(t.type!==e)throw new Error(`invalid type: expecetd ${e}, got ${t.type}`);return t.value}return t}}e.Typed=c},805:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIcapAddress=e.getAddress=void 0;const n=r(6965),i=r(2120),s=BigInt(0),o=BigInt(36);function a(t){const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const s=(0,i.getBytes)((0,n.keccak256)(r));for(let t=0;t<40;t+=2)s[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&s[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const c={};for(let t=0;t<10;t++)c[String(t)]=String(t);for(let t=0;t<26;t++)c[String.fromCharCode(65+t)]=String(10+t);function l(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>c[t])).join("");for(;e.length>=15;){let t=e.substring(0,15);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const u=function(){const t={};for(let e=0;e<36;e++)t["0123456789abcdefghijklmnopqrstuvwxyz"[e]]=BigInt(e);return t}();function h(t){if((0,i.assertArgument)("string"==typeof t,"invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/)){t.startsWith("0x")||(t="0x"+t);const e=a(t);return(0,i.assertArgument)(!t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||e===t,"bad address checksum","address",t),e}if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.assertArgument)(t.substring(2,4)===l(t),"bad icap checksum","address",t);let e=function(t){t=t.toLowerCase();let e=s;for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAddress=e.isAddress=e.isAddressable=void 0;const n=r(2120),i=r(805);function s(t){return t&&"function"==typeof t.getAddress}async function o(t,e){const r=await e;return null!=r&&"0x0000000000000000000000000000000000000000"!==r||((0,n.assert)("string"!=typeof t,"unconfigured name","UNCONFIGURED_NAME",{value:t}),(0,n.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",t)),(0,i.getAddress)(r)}e.isAddressable=s,e.isAddress=function(t){try{return(0,i.getAddress)(t),!0}catch(t){}return!1},e.resolveAddress=function(t,e){return"string"==typeof t?t.match(/^0x[0-9a-f]{40}$/i)?(0,i.getAddress)(t):((0,n.assert)(null!=e,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(t,e.resolveName(t))):s(t)?o(t,t.getAddress()):t&&"function"==typeof t.then?o(t,t):void(0,n.assertArgument)(!1,"unsupported addressable value","target",t)}},6067:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCreate2Address=e.getCreateAddress=void 0;const n=r(6965),i=r(2120),s=r(805);e.getCreateAddress=function(t){const e=(0,s.getAddress)(t.from);let r=(0,i.getBigInt)(t.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,s.getAddress)((0,i.dataSlice)((0,n.keccak256)((0,i.encodeRlp)([e,r])),12))},e.getCreate2Address=function(t,e,r){const o=(0,s.getAddress)(t),a=(0,i.getBytes)(e,"salt"),c=(0,i.getBytes)(r,"initCodeHash");return(0,i.assertArgument)(32===a.length,"salt must be 32 bytes","salt",e),(0,i.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,s.getAddress)((0,i.dataSlice)((0,n.keccak256)((0,i.concat)(["0xff",o,a,c])),12))}},5475:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=void 0;var n=r(805);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return n.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return n.getIcapAddress}});var i=r(6067);Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}});var s=r(3442);Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return s.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return s.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return s.resolveAddress}})},3223:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZeroAddress=void 0,e.ZeroAddress="0x0000000000000000000000000000000000000000"},688:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ZeroHash=void 0,e.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},87:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePrefix=e.EtherSymbol=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.N=e.ZeroHash=e.ZeroAddress=void 0;var n=r(3223);Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return n.ZeroAddress}});var i=r(688);Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return i.ZeroHash}});var s=r(4456);Object.defineProperty(e,"N",{enumerable:!0,get:function(){return s.N}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return s.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return s.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return s.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return s.MaxInt256}});var o=r(2359);Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},4456:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.N=void 0,e.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),e.WeiPerEther=BigInt("1000000000000000000"),e.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),e.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),e.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},2359:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePrefix=e.EtherSymbol=void 0,e.EtherSymbol="Ξ",e.MessagePrefix="Ethereum Signed Message:\n"},4350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Contract=e.BaseContract=e.resolveArgs=e.copyOverrides=void 0;const n=r(3707),i=r(5475),s=r(7143),o=r(2120),a=r(7151),c=BigInt(0);function l(t){return t&&"function"==typeof t.call}function u(t){return t&&"function"==typeof t.estimateGas}function h(t){return t&&"function"==typeof t.resolveName}function d(t){return t&&"function"==typeof t.sendTransaction}function f(t){if(null!=t){if(h(t))return t;if(t.provider)return t.provider}}class p{#y;fragment;constructor(t,e,r){if((0,o.defineProperties)(this,{fragment:e}),e.inputs.lengthnull==r[e]?null:t.walkAsync(r[e],((t,e)=>"address"===t?Array.isArray(e)?Promise.all(e.map((t=>(0,i.resolveAddress)(t,s)))):(0,i.resolveAddress)(e,s):e)))));return t.interface.encodeFilterTopics(e,n)}()}getTopicFilter(){return this.#y}}function m(t,e){return null==t?null:"function"==typeof t[e]?t:t.provider&&"function"==typeof t.provider[e]?t.provider:null}function g(t){return null==t?null:t.provider||null}async function y(t,e){const r=n.Typed.dereference(t,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",t);const i=(0,s.copyRequest)(r);return(0,o.assertArgument)(null==i.to||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",i.to),(0,o.assertArgument)(null==i.data||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",i.data),i.from&&(i.from=i.from),i}async function w(t,e,r){const s=m(t,"resolveName"),o=h(s)?s:null;return await Promise.all(e.map(((t,e)=>t.walkAsync(r[e],((t,e)=>(e=n.Typed.dereference(e,t),"address"===t?(0,i.resolveAddress)(e,o):e))))))}function b(t){const e=async function(e){const r=await y(e,["data"]);r.to=await t.getAddress(),r.from&&(r.from=await(0,i.resolveAddress)(r.from,f(t.runner)));const n=t.interface,s=(0,o.getBigInt)(r.value||c,"overrides.value")===c,a="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||a||s||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",e),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data);const l=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(l||s,"cannot send value to non-payable fallback","overrides.value",r.value),(0,o.assertArgument)(n.fallback||a,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){const n=t.runner;(0,o.assert)(d(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await n.sendTransaction(await e(r)),s=g(t.runner);return new a.ContractTransactionResponse(t.interface,s,i)},n=async t=>await r(t);return(0,o.defineProperties)(n,{_contract:t,estimateGas:async function(r){const n=m(t.runner,"estimateGas");return(0,o.assert)(u(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await e(r))},populateTransaction:e,send:r,staticCall:async function(r){const n=m(t.runner,"call");(0,o.assert)(l(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const i=await e(r);try{return await n.call(i)}catch(e){if((0,o.isCallException)(e)&&e.data)throw t.interface.makeError(e.data,i);throw e}}}),n}e.copyOverrides=y,e.resolveArgs=w;const v=Symbol.for("_ethersInternal_contract"),A=new WeakMap;function E(t){return A.get(t[v])}async function x(t,e){let r,n=null;if(Array.isArray(e)){const n=function(e){if((0,o.isHexString)(e,32))return e;const r=t.interface.getEvent(e);return(0,o.assertArgument)(r,"unknown fragment","name",e),r.topicHash};r=e.map((t=>null==t?null:Array.isArray(t)?t.map(n):n(t)))}else"*"===e?r=[null]:"string"==typeof e?(0,o.isHexString)(e,32)?r=[e]:(n=t.interface.getEvent(e),(0,o.assertArgument)(n,"unknown fragment","event",e),r=[n.topicHash]):(i=e)&&"object"==typeof i&&"getTopicFilter"in i&&"function"==typeof i.getTopicFilter&&i.fragment?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):(0,o.assertArgument)(!1,"unknown event name","event",e);var i;return r=r.map((t=>{if(null==t)return null;if(Array.isArray(t)){const e=Array.from(new Set(t.map((t=>t.toLowerCase()))).values());return 1===e.length?e[0]:(e.sort(),e)}return t.toLowerCase()})),{fragment:n,tag:r.map((t=>null==t?"null":Array.isArray(t)?t.join("|"):t)).join("&"),topics:r}}async function _(t,e){const{subs:r}=E(t);return r.get((await x(t,e)).tag)||null}async function S(t,e,r){const n=g(t.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:i,tag:s,topics:c}=await x(t,r),{addr:l,subs:u}=E(t);let h=u.get(s);if(!h){const e={address:l||t,topics:c},o=e=>{let n=i;if(null==n)try{n=t.interface.getEvent(e.topics[0])}catch(t){}if(n){const s=n,o=i?t.interface.decodeEventLog(i,e.data,e.topics):[];C(t,r,o,(n=>new a.ContractEventPayload(t,n,r,s,e)))}else C(t,r,[],(n=>new a.ContractUnknownEventPayload(t,n,r,e)))};let d=[];h={tag:s,listeners:[],start:()=>{d.length||d.push(n.on(e,o))},stop:async()=>{if(0==d.length)return;let t=d;d=[],await Promise.all(t),n.off(e,o)}},u.set(s,h)}return h}let M=Promise.resolve();async function C(t,e,r,n){try{await M}catch(t){}const i=async function(t,e,r,n){await M;const i=await _(t,e);if(!i)return!1;const s=i.listeners.length;return i.listeners=i.listeners.filter((({listener:e,once:i})=>{const s=Array.from(r);n&&s.push(n(i?null:e));try{e.call(t,...s)}catch(t){}return!i})),0===i.listeners.length&&(i.stop(),E(t).subs.delete(i.tag)),s>0}(t,e,r,n);return M=i,await i}const k=["then"];class I{target;interface;runner;filters;[v];fallback;constructor(t,e,r,s){(0,o.assertArgument)("string"==typeof t||(0,i.isAddressable)(t),"invalid value for Contract target","target",t),null==r&&(r=null);const c=n.Interface.from(e);let l;(0,o.defineProperties)(this,{target:t,runner:r,interface:c}),Object.defineProperty(this,v,{value:{}});let u=null,d=null;if(s){const t=g(r);d=new a.ContractTransactionResponse(this.interface,t,s)}let f=new Map;if("string"==typeof t)if((0,o.isHexString)(t))u=t,l=Promise.resolve(t);else{const e=m(r,"resolveName");if(!h(e))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});l=e.resolveName(t).then((e=>{if(null==e)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:t});return E(this).addr=e,e}))}else l=t.getAddress().then((t=>{if(null==t)throw new Error("TODO");return E(this).addr=t,t}));var p;p={addrPromise:l,addr:u,deployTx:d,subs:f},A.set(this[v],p);const y=new Proxy({},{get:(t,e,r)=>{if("symbol"==typeof e||k.indexOf(e)>=0)return Reflect.get(t,e,r);try{return this.getEvent(e)}catch(t){if(!(0,o.isError)(t,"INVALID_ARGUMENT")||"key"!==t.argument)throw t}},has:(t,e)=>k.indexOf(e)>=0?Reflect.has(t,e):Reflect.has(t,e)||this.interface.hasEvent(String(e))});return(0,o.defineProperties)(this,{filters:y}),(0,o.defineProperties)(this,{fallback:c.receive||c.fallback?b(this):null}),new Proxy(this,{get:(t,e,r)=>{if("symbol"==typeof e||e in t||k.indexOf(e)>=0)return Reflect.get(t,e,r);try{return t.getFunction(e)}catch(t){if(!(0,o.isError)(t,"INVALID_ARGUMENT")||"key"!==t.argument)throw t}},has:(t,e)=>"symbol"==typeof e||e in t||k.indexOf(e)>=0?Reflect.has(t,e):t.interface.hasFunction(e)})}connect(t){return new I(this.target,this.interface,t)}attach(t){return new I(t,this.interface,this.runner)}async getAddress(){return await E(this).addrPromise}async getDeployedCode(){const t=g(this.runner);(0,o.assert)(t,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const e=await t.getCode(await this.getAddress());return"0x"===e?null:e}async waitForDeployment(){const t=this.deploymentTransaction();if(t)return await t.wait(),this;if(null!=await this.getDeployedCode())return this;const e=g(this.runner);return(0,o.assert)(null!=e,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((t,r)=>{const n=async()=>{try{if(null!=await this.getDeployedCode())return t(this);e.once("block",n)}catch(t){r(t)}};n()}))}deploymentTransaction(){return E(this).deployTx}getFunction(t){"string"!=typeof t&&(t=t.format());const e=function(t,e){const r=function(...r){const n=t.interface.getFunction(e,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),n},n=async function(...e){const n=r(...e);let s={};if(n.inputs.length+1===e.length&&(s=await y(e.pop()),s.from&&(s.from=await(0,i.resolveAddress)(s.from,f(t.runner)))),n.inputs.length!==e.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const a=await w(t.runner,n.inputs,e);return Object.assign({},s,await(0,o.resolveProperties)({to:t.getAddress(),data:t.interface.encodeFunctionData(n,a)}))},s=async function(...t){const e=await h(...t);return 1===e.length?e[0]:e},c=async function(...e){const r=t.runner;(0,o.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const i=await r.sendTransaction(await n(...e)),s=g(t.runner);return new a.ContractTransactionResponse(t.interface,s,i)},h=async function(...e){const i=m(t.runner,"call");(0,o.assert)(l(i),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const s=await n(...e);let a="0x";try{a=await i.call(s)}catch(e){if((0,o.isCallException)(e)&&e.data)throw t.interface.makeError(e.data,s);throw e}const c=r(...e);return t.interface.decodeFunctionResult(c,a)},p=async(...t)=>r(...t).constant?await s(...t):await c(...t);return(0,o.defineProperties)(p,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:async function(...e){const r=m(t.runner,"estimateGas");return(0,o.assert)(u(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...e))},populateTransaction:n,send:c,staticCall:s,staticCallResult:h}),Object.defineProperty(p,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=t.interface.getFunction(e);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),p}(this,t);return e}getEvent(t){return"string"!=typeof t&&(t=t.format()),function(t,e){const r=function(...r){const n=t.interface.getEvent(e,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:r}}),n},n=function(...e){return new p(t,r(...e),e)};return(0,o.defineProperties)(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const r=t.interface.getEvent(e);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),r}}),n}(this,t)}async queryTransaction(t){throw new Error("@TODO")}async queryFilter(t,e,r){null==e&&(e=0),null==r&&(r="latest");const{addr:n,addrPromise:i}=E(this),c=n||await i,{fragment:l,topics:u}=await x(this,t),h={address:c,topics:u,fromBlock:e,toBlock:r},d=g(this.runner);return(0,o.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(h)).map((t=>{let e=l;if(null==e)try{e=this.interface.getEvent(t.topics[0])}catch(t){}if(e)try{return new a.EventLog(t,this.interface,e)}catch(e){return new a.UndecodedEventLog(t,e)}return new s.Log(t,d)}))}async on(t,e){const r=await S(this,"on",t);return r.listeners.push({listener:e,once:!1}),r.start(),this}async once(t,e){const r=await S(this,"once",t);return r.listeners.push({listener:e,once:!0}),r.start(),this}async emit(t,...e){return await C(this,t,e,null)}async listenerCount(t){if(t){const e=await _(this,t);return e?e.listeners.length:0}const{subs:e}=E(this);let r=0;for(const{listeners:t}of e.values())r+=t.length;return r}async listeners(t){if(t){const e=await _(this,t);return e?e.listeners.map((({listener:t})=>t)):[]}const{subs:e}=E(this);let r=[];for(const{listeners:t}of e.values())r=r.concat(t.map((({listener:t})=>t)));return r}async off(t,e){const r=await _(this,t);if(!r)return this;if(e){const t=r.listeners.map((({listener:t})=>t)).indexOf(e);t>=0&&r.listeners.splice(t,1)}return null!=e&&0!==r.listeners.length||(r.stop(),E(this).subs.delete(r.tag)),this}async removeAllListeners(t){if(t){const e=await _(this,t);if(!e)return this;e.stop(),E(this).subs.delete(e.tag)}else{const{subs:t}=E(this);for(const{tag:e,stop:r}of t.values())r(),t.delete(e)}return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return await this.off(t,e)}static buildClass(t){return class extends I{constructor(e,r=null){super(e,t,r)}}}static from(t,e,r){return null==r&&(r=null),new this(t,e,r)}}e.BaseContract=I;class P extends(function(){return I}()){}e.Contract=P},1018:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContractFactory=void 0;const n=r(3707),i=r(5475),s=r(2120),o=r(4350);class a{interface;bytecode;runner;constructor(t,e,r){const i=n.Interface.from(t);e instanceof Uint8Array||("object"==typeof e&&(e=e.object),e.startsWith("0x")||(e="0x"+e)),e=(0,s.hexlify)((0,s.getBytes)(e)),(0,s.defineProperties)(this,{bytecode:e,interface:i,runner:r||null})}attach(t){return new o.BaseContract(t,this.interface,this.runner)}async getDeployTransaction(...t){let e={};const r=this.interface.deploy;if(r.inputs.length+1===t.length&&(e=await(0,o.copyOverrides)(t.pop())),r.inputs.length!==t.length)throw new Error("incorrect number of arguments to constructor");const n=await(0,o.resolveArgs)(this.runner,r.inputs,t),i=(0,s.concat)([this.bytecode,this.interface.encodeDeploy(n)]);return Object.assign({},e,{data:i})}async deploy(...t){const e=await this.getDeployTransaction(...t);(0,s.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(e),n=(0,i.getCreateAddress)(r);return new o.BaseContract(n,this.interface,this.runner,r)}connect(t){return new a(this.interface,this.bytecode,t)}static fromSolidity(t,e){(0,s.assertArgument)(null!=t,"bad compiler output","output",t),"string"==typeof t&&(t=JSON.parse(t));const r=t.abi;let n="";return t.bytecode?n=t.bytecode:t.evm&&t.evm.bytecode&&(n=t.evm.bytecode),new this(r,n,e)}}e.ContractFactory=a},7252:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UndecodedEventLog=e.EventLog=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractUnknownEventPayload=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=void 0;var n=r(4350);Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return n.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return n.Contract}});var i=r(1018);Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return i.ContractFactory}});var s=r(7151);Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}})},7151:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContractEventPayload=e.ContractUnknownEventPayload=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.UndecodedEventLog=e.EventLog=void 0;const n=r(7143),i=r(2120);class s extends n.Log{interface;fragment;args;constructor(t,e,r){super(t,t.provider);const n=e.decodeEventLog(r,t.data,t.topics);(0,i.defineProperties)(this,{args:n,fragment:r,interface:e})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}e.EventLog=s;class o extends n.Log{error;constructor(t,e){super(t,t.provider),(0,i.defineProperties)(this,{error:e})}}e.UndecodedEventLog=o;class a extends n.TransactionReceipt{#w;constructor(t,e,r){super(r,e),this.#w=t}get logs(){return super.logs.map((t=>{const e=t.topics.length?this.#w.getEvent(t.topics[0]):null;if(e)try{return new s(t,this.#w,e)}catch(e){return new o(t,e)}return t}))}}e.ContractTransactionReceipt=a;class c extends n.TransactionResponse{#w;constructor(t,e,r){super(r,e),this.#w=t}async wait(t){const e=await super.wait(t);return null==e?null:new a(this.#w,this.provider,e)}}e.ContractTransactionResponse=c;class l extends i.EventPayload{log;constructor(t,e,r,n){super(t,e,r),(0,i.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}e.ContractUnknownEventPayload=l,e.ContractEventPayload=class extends l{constructor(t,e,r,n,o){super(t,e,r,new s(o,t.interface,n));const a=t.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,i.defineProperties)(this,{args:a,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},3147:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.pbkdf2Sync=e.createHmac=e.createHash=void 0;const n=r(798),i=r(4112),s=r(7366),o=r(937),a=r(2120),c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}(),l=c.crypto||c.msCrypto;e.createHash=function(t){switch(t){case"sha256":return s.sha256.create();case"sha512":return o.sha512.create()}(0,a.assertArgument)(!1,"invalid hashing algorithm name","algorithm",t)},e.createHmac=function(t,e){const r={sha256:s.sha256,sha512:o.sha512}[t];return(0,a.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",t),n.hmac.create(r,e)},e.pbkdf2Sync=function(t,e,r,n,c){const l={sha256:s.sha256,sha512:o.sha512}[c];return(0,a.assertArgument)(null!=l,"invalid pbkdf2 algorithm","algorithm",c),(0,i.pbkdf2)(l,t,e,{c:r,dkLen:n})},e.randomBytes=function(t){(0,a.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,a.assertArgument)(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return l.getRandomValues(e),e}},6117:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeHmac=void 0;const n=r(3147),i=r(2120);let s=!1;const o=function(t,e,r){return(0,n.createHmac)(t,e).update(r).digest()};let a=o;function c(t,e,r){const n=(0,i.getBytes)(e,"key"),s=(0,i.getBytes)(r,"data");return(0,i.hexlify)(a(t,n,s))}e.computeHmac=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new Error("computeHmac is locked");a=t},Object.freeze(c)},6965:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lock=e.Signature=e.SigningKey=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=void 0;const n=r(6117);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}});const i=r(3037);Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return i.keccak256}});const s=r(7990);Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return s.ripemd160}});const o=r(4989);Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const a=r(2385);Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return a.randomBytes}});const c=r(6168);Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}});const l=r(9233);Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return l.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return l.sha512}});var u=r(3106);Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return u.SigningKey}});var h=r(3295);Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return h.Signature}}),e.lock=function(){n.computeHmac.lock(),i.keccak256.lock(),o.pbkdf2.lock(),a.randomBytes.lock(),s.ripemd160.lock(),c.scrypt.lock(),c.scryptSync.lock(),l.sha256.lock(),l.sha512.lock(),a.randomBytes.lock()}},3037:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keccak256=void 0;const n=r(7910),i=r(2120);let s=!1;const o=function(t){return(0,n.keccak_256)(t)};let a=o;function c(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}e.keccak256=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new TypeError("keccak256 is locked");a=t},Object.freeze(c)},4989:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pbkdf2=void 0;const n=r(3147),i=r(2120);let s=!1;const o=function(t,e,r,i,s){return(0,n.pbkdf2Sync)(t,e,r,i,s)};let a=o;function c(t,e,r,n,s){const o=(0,i.getBytes)(t,"password"),c=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(a(o,c,r,n,s))}e.pbkdf2=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new Error("pbkdf2 is locked");a=t},Object.freeze(c)},2385:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=void 0;const n=r(3147);let i=!1;const s=function(t){return new Uint8Array((0,n.randomBytes)(t))};let o=s;function a(t){return o(t)}e.randomBytes=a,a._=s,a.lock=function(){i=!0},a.register=function(t){if(i)throw new Error("randomBytes is locked");o=t},Object.freeze(a)},7990:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=void 0;const n=r(7746),i=r(2120);let s=!1;const o=function(t){return(0,n.ripemd160)(t)};let a=o;function c(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}e.ripemd160=c,c._=o,c.lock=function(){s=!0},c.register=function(t){if(s)throw new TypeError("ripemd160 is locked");a=t},Object.freeze(c)},6168:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scryptSync=e.scrypt=void 0;const n=r(9468),i=r(2120);let s=!1,o=!1;const a=async function(t,e,r,i,s,o,a){return await(0,n.scryptAsync)(t,e,{N:r,r:i,p:s,dkLen:o,onProgress:a})},c=function(t,e,r,i,s,o){return(0,n.scrypt)(t,e,{N:r,r:i,p:s,dkLen:o})};let l=a,u=c;async function h(t,e,r,n,s,o,a){const c=(0,i.getBytes)(t,"passwd"),u=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(await l(c,u,r,n,s,o,a))}function d(t,e,r,n,s,o){const a=(0,i.getBytes)(t,"passwd"),c=(0,i.getBytes)(e,"salt");return(0,i.hexlify)(u(a,c,r,n,s,o))}e.scrypt=h,h._=a,h.lock=function(){o=!0},h.register=function(t){if(o)throw new Error("scrypt is locked");l=t},Object.freeze(h),e.scryptSync=d,d._=c,d.lock=function(){s=!0},d.register=function(t){if(s)throw new Error("scryptSync is locked");u=t},Object.freeze(d)},9233:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sha512=e.sha256=void 0;const n=r(3147),i=r(2120),s=function(t){return(0,n.createHash)("sha256").update(t).digest()},o=function(t){return(0,n.createHash)("sha512").update(t).digest()};let a=s,c=o,l=!1,u=!1;function h(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(a(e))}function d(t){const e=(0,i.getBytes)(t,"data");return(0,i.hexlify)(c(e))}e.sha256=h,h._=s,h.lock=function(){l=!0},h.register=function(t){if(l)throw new Error("sha256 is locked");a=t},Object.freeze(h),e.sha512=d,d._=o,d.lock=function(){u=!0},d.register=function(t){if(u)throw new Error("sha512 is locked");c=t},Object.freeze(h)},3295:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Signature=void 0;const n=r(87),i=r(2120),s=BigInt(0),o=BigInt(1),a=BigInt(2),c=BigInt(27),l=BigInt(28),u=BigInt(35),h={};function d(t){return(0,i.zeroPadValue)((0,i.toBeArray)(t),32)}class f{#b;#v;#A;#E;get r(){return this.#b}set r(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid r","value",t),this.#b=(0,i.hexlify)(t)}get s(){return this.#v}set s(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid s","value",t);const e=(0,i.hexlify)(t);(0,i.assertArgument)(parseInt(e.substring(0,3))<8,"non-canonical s","value",e),this.#v=e}get v(){return this.#A}set v(t){const e=(0,i.getNumber)(t,"value");(0,i.assertArgument)(27===e||28===e,"invalid v","v",t),this.#A=e}get networkV(){return this.#E}get legacyChainId(){const t=this.networkV;return null==t?null:f.getChainId(t)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const t=(0,i.getBytes)(this.s);return this.yParity&&(t[0]|=128),(0,i.hexlify)(t)}get compactSerialized(){return(0,i.concat)([this.r,this.yParityAndS])}get serialized(){return(0,i.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(t,e,r,n){(0,i.assertPrivate)(t,h,"Signature"),this.#b=e,this.#v=r,this.#A=n,this.#E=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const t=new f(h,this.r,this.s,this.v);return this.networkV&&(t.#E=this.networkV),t}toJSON(){const t=this.networkV;return{_type:"signature",networkV:null!=t?t.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(t){const e=(0,i.getBigInt)(t,"v");return e==c||e==l?s:((0,i.assertArgument)(e>=u,"invalid EIP-155 v","v",t),(e-u)/a)}static getChainIdV(t,e){return(0,i.getBigInt)(t)*a+BigInt(35+e-27)}static getNormalizedV(t){const e=(0,i.getBigInt)(t);return e===s||e===c?27:e===o||e===l?28:((0,i.assertArgument)(e>=u,"invalid v","v",t),e&o?27:28)}static from(t){function e(e,r){(0,i.assertArgument)(e,r,"signature",t)}if(null==t)return new f(h,n.ZeroHash,n.ZeroHash,27);if("string"==typeof t){const r=(0,i.getBytes)(t,"signature");if(64===r.length){const t=(0,i.hexlify)(r.slice(0,32)),e=r.slice(32,64),n=128&e[0]?28:27;return e[0]&=127,new f(h,t,(0,i.hexlify)(e),n)}if(65===r.length){const t=(0,i.hexlify)(r.slice(0,32)),n=r.slice(32,64);e(0==(128&n[0]),"non-canonical s");const s=f.getNormalizedV(r[64]);return new f(h,t,(0,i.hexlify)(n),s)}e(!1,"invalid raw signature length")}if(t instanceof f)return t.clone();const r=t.r;e(null!=r,"missing r");const s=d(r),o=function(t,r){if(null!=t)return d(t);if(null!=r){e((0,i.isHexString)(r,32),"invalid yParityAndS");const t=(0,i.getBytes)(r);return t[0]&=127,(0,i.hexlify)(t)}e(!1,"missing s")}(t.s,t.yParityAndS);e(0==(128&(0,i.getBytes)(o)[0]),"non-canonical s");const{networkV:a,v:c}=function(t,r,n){if(null!=t){const e=(0,i.getBigInt)(t);return{networkV:e>=u?e:void 0,v:f.getNormalizedV(e)}}if(null!=r)return e((0,i.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,i.getBytes)(r)[0]?28:27};if(null!=n){switch((0,i.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}e(!1,"invalid yParity")}e(!1,"missing v")}(t.v,t.yParityAndS,t.yParity),l=new f(h,s,o,c);return a&&(l.#E=a),e(null==t.yParity||(0,i.getNumber)(t.yParity,"sig.yParity")===l.yParity,"yParity mismatch"),e(null==t.yParityAndS||t.yParityAndS===l.yParityAndS,"yParityAndS mismatch"),l}}e.Signature=f},3106:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigningKey=void 0;const n=r(2958),i=r(2120),s=r(3295);class o{#x;constructor(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid private key","privateKey","[REDACTED]"),this.#x=(0,i.hexlify)(t)}get privateKey(){return this.#x}get publicKey(){return o.computePublicKey(this.#x)}get compressedPublicKey(){return o.computePublicKey(this.#x,!0)}sign(t){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid digest length","digest",t);const e=n.secp256k1.sign((0,i.getBytesCopy)(t),(0,i.getBytesCopy)(this.#x),{lowS:!0});return s.Signature.from({r:(0,i.toBeHex)(e.r,32),s:(0,i.toBeHex)(e.s,32),v:e.recovery?28:27})}computeSharedSecret(t){const e=o.computePublicKey(t);return(0,i.hexlify)(n.secp256k1.getSharedSecret((0,i.getBytesCopy)(this.#x),(0,i.getBytes)(e),!1))}static computePublicKey(t,e){let r=(0,i.getBytes)(t,"key");if(32===r.length){const t=n.secp256k1.getPublicKey(r,!!e);return(0,i.hexlify)(t)}if(64===r.length){const t=new Uint8Array(65);t[0]=4,t.set(r,1),r=t}const s=n.secp256k1.ProjectivePoint.fromHex(r);return(0,i.hexlify)(s.toRawBytes(e))}static recoverPublicKey(t,e){(0,i.assertArgument)(32===(0,i.dataLength)(t),"invalid digest length","digest",t);const r=s.Signature.from(e);let o=n.secp256k1.Signature.fromCompact((0,i.getBytesCopy)((0,i.concat)([r.r,r.s])));o=o.addRecoveryBit(r.yParity);const a=o.recoverPublicKey((0,i.getBytesCopy)(t));return(0,i.assertArgument)(null!=a,"invalid signautre for digest","signature",e),"0x"+a.toHex(!1)}static addPoints(t,e,r){const i=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(t).substring(2)),s=n.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(e).substring(2));return"0x"+i.add(s).toHex(!!r)}}e.SigningKey=o},1097:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.keccak256=e.randomBytes=e.computeHmac=e.UndecodedEventLog=e.EventLog=e.ContractUnknownEventPayload=e.ContractTransactionResponse=e.ContractTransactionReceipt=e.ContractEventPayload=e.ContractFactory=e.Contract=e.BaseContract=e.MessagePrefix=e.EtherSymbol=e.ZeroHash=e.N=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.ZeroAddress=e.resolveAddress=e.isAddress=e.isAddressable=e.getCreate2Address=e.getCreateAddress=e.getIcapAddress=e.getAddress=e.Typed=e.TransactionDescription=e.Result=e.LogDescription=e.Interface=e.Indexed=e.ErrorDescription=e.checkResultErrors=e.StructFragment=e.ParamType=e.NamedFragment=e.FunctionFragment=e.FallbackFragment=e.Fragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.AbiCoder=e.encodeBytes32String=e.decodeBytes32String=e.version=void 0,e.EtherscanPlugin=e.EnsPlugin=e.Network=e.EnsResolver=e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanProvider=e.CloudflareProvider=e.AnkrProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.AbstractProvider=e.VoidSigner=e.NonceManager=e.AbstractSigner=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.getDefaultProvider=e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=e.SigningKey=e.Signature=e.lock=e.scryptSync=e.scrypt=e.pbkdf2=e.sha512=e.sha256=void 0,e.toBeArray=e.getUint=e.getNumber=e.getBigInt=e.FixedNumber=e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.isError=e.isCallException=e.makeError=e.assertPrivate=e.assertNormalize=e.assertArgumentCount=e.assertArgument=e.assert=e.resolveProperties=e.defineProperties=e.zeroPadValue=e.zeroPadBytes=e.stripZerosLeft=e.isBytesLike=e.isHexString=e.hexlify=e.getBytesCopy=e.getBytes=e.dataSlice=e.dataLength=e.concat=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=e.Transaction=e.recoverAddress=e.computeAddress=e.accessListify=e.showThrottleMessage=e.copyRequest=e.UnmanagedSubscriber=e.SocketSubscriber=e.SocketPendingSubscriber=e.SocketEventSubscriber=e.SocketBlockSubscriber=e.MulticoinProviderPlugin=e.NetworkPlugin=e.GasCostPlugin=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=void 0,e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=e.encryptKeystoreJsonSync=e.encryptKeystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.decryptCrowdsaleJson=e.isKeystoreJson=e.isCrowdsaleJson=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.Wallet=e.HDNodeVoidWallet=e.HDNodeWallet=e.BaseWallet=e.Mnemonic=e.uuidV4=e.encodeRlp=e.decodeRlp=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.mask=e.toTwos=e.fromTwos=e.toQuantity=e.toNumber=e.toBeHex=e.toBigInt=void 0;var n=r(9406);Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var i=r(3707);Object.defineProperty(e,"decodeBytes32String",{enumerable:!0,get:function(){return i.decodeBytes32String}}),Object.defineProperty(e,"encodeBytes32String",{enumerable:!0,get:function(){return i.encodeBytes32String}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return i.AbiCoder}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(e,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(e,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(e,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(e,"ErrorDescription",{enumerable:!0,get:function(){return i.ErrorDescription}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(e,"Result",{enumerable:!0,get:function(){return i.Result}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}}),Object.defineProperty(e,"Typed",{enumerable:!0,get:function(){return i.Typed}});var s=r(5475);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(e,"getCreateAddress",{enumerable:!0,get:function(){return s.getCreateAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(e,"isAddressable",{enumerable:!0,get:function(){return s.isAddressable}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return s.isAddress}}),Object.defineProperty(e,"resolveAddress",{enumerable:!0,get:function(){return s.resolveAddress}});var o=r(87);Object.defineProperty(e,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(e,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(e,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(e,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var a=r(7252);Object.defineProperty(e,"BaseContract",{enumerable:!0,get:function(){return a.BaseContract}}),Object.defineProperty(e,"Contract",{enumerable:!0,get:function(){return a.Contract}}),Object.defineProperty(e,"ContractFactory",{enumerable:!0,get:function(){return a.ContractFactory}}),Object.defineProperty(e,"ContractEventPayload",{enumerable:!0,get:function(){return a.ContractEventPayload}}),Object.defineProperty(e,"ContractTransactionReceipt",{enumerable:!0,get:function(){return a.ContractTransactionReceipt}}),Object.defineProperty(e,"ContractTransactionResponse",{enumerable:!0,get:function(){return a.ContractTransactionResponse}}),Object.defineProperty(e,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return a.ContractUnknownEventPayload}}),Object.defineProperty(e,"EventLog",{enumerable:!0,get:function(){return a.EventLog}}),Object.defineProperty(e,"UndecodedEventLog",{enumerable:!0,get:function(){return a.UndecodedEventLog}});var c=r(6965);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return c.computeHmac}}),Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return c.randomBytes}}),Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return c.keccak256}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return c.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return c.sha512}}),Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return c.pbkdf2}}),Object.defineProperty(e,"scrypt",{enumerable:!0,get:function(){return c.scrypt}}),Object.defineProperty(e,"scryptSync",{enumerable:!0,get:function(){return c.scryptSync}}),Object.defineProperty(e,"lock",{enumerable:!0,get:function(){return c.lock}}),Object.defineProperty(e,"Signature",{enumerable:!0,get:function(){return c.Signature}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return c.SigningKey}});var l=r(8336);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return l.id}}),Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return l.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return l.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return l.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return l.dnsEncode}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return l.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return l.verifyMessage}}),Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return l.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return l.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return l.solidityPackedSha256}}),Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return l.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return l.verifyTypedData}});var u=r(4878);Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return u.getDefaultProvider}}),Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return u.AbstractSigner}}),Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return u.NonceManager}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return u.VoidSigner}}),Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return u.AbstractProvider}}),Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return u.FallbackProvider}}),Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return u.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return u.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return u.JsonRpcSigner}}),Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return u.BrowserProvider}}),Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return u.AlchemyProvider}}),Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return u.AnkrProvider}}),Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}}),Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return u.EtherscanProvider}}),Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return u.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return u.InfuraWebSocketProvider}}),Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return u.PocketProvider}}),Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return u.QuickNodeProvider}}),Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return u.IpcSocketProvider}}),Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return u.SocketProvider}}),Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return u.WebSocketProvider}}),Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return u.EnsResolver}}),Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return u.Network}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return u.EtherscanPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return u.MulticoinProviderPlugin}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return u.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return u.SocketEventSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return u.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return u.SocketSubscriber}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return u.UnmanagedSubscriber}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}}),Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return u.showThrottleMessage}});var h=r(2290);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return h.accessListify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return h.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return h.recoverAddress}}),Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return h.Transaction}});var d=r(2120);Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var f=r(1602);Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return f.Mnemonic}}),Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return f.BaseWallet}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return f.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return f.HDNodeVoidWallet}}),Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return f.Wallet}}),Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return f.getIndexedAccountPath}}),Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return f.isCrowdsaleJson}}),Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return f.isKeystoreJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return f.decryptCrowdsaleJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return f.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return f.encryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return f.encryptKeystoreJsonSync}});var p=r(659);Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return p.Wordlist}}),Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return p.LangEn}}),Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return p.WordlistOwl}}),Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return p.WordlistOwlA}}),Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return p.wordlists}})},2625:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;const n=r(6965),i=r(2120);e.id=function(t){return(0,n.keccak256)((0,i.toUtf8Bytes)(t))}},8336:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTypedData=e.TypedDataEncoder=e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=e.verifyMessage=e.hashMessage=e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=e.id=void 0;var n=r(2625);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return n.id}});var i=r(5420);Object.defineProperty(e,"ensNormalize",{enumerable:!0,get:function(){return i.ensNormalize}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return i.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return i.namehash}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return i.dnsEncode}});var s=r(8043);Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return s.hashMessage}}),Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return s.verifyMessage}});var o=r(8191);Object.defineProperty(e,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(e,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(e,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var a=r(8993);Object.defineProperty(e,"TypedDataEncoder",{enumerable:!0,get:function(){return a.TypedDataEncoder}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return a.verifyTypedData}})},8043:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyMessage=e.hashMessage=void 0;const n=r(6965),i=r(87),s=r(2290),o=r(2120);function a(t){return"string"==typeof t&&(t=(0,o.toUtf8Bytes)(t)),(0,n.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(i.MessagePrefix),(0,o.toUtf8Bytes)(String(t.length)),t]))}e.hashMessage=a,e.verifyMessage=function(t,e){const r=a(t);return(0,s.recoverAddress)(r,e)}},5420:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dnsEncode=e.namehash=e.isValidName=e.ensNormalize=void 0;const n=r(6965),i=r(2120),s=r(30),o=new Uint8Array(32);function a(t){return(0,i.assertArgument)(0!==t.length,"invalid ENS name; empty component","comp",t),t}function c(t){const e=(0,i.toUtf8Bytes)(l(t)),r=[];if(0===t.length)return r;let n=0;for(let t=0;t{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e}))))+"00"}},8191:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.solidityPackedSha256=e.solidityPackedKeccak256=e.solidityPacked=void 0;const n=r(5475),i=r(6965),s=r(2120),o=new RegExp("^bytes([0-9]+)$"),a=new RegExp("^(u?int)([0-9]*)$"),c=new RegExp("^(.*)\\[([0-9]*)\\]$");function l(t,e,r){switch(t){case"address":return r?(0,s.getBytes)((0,s.zeroPadValue)(e,32)):(0,s.getBytes)((0,n.getAddress)(e));case"string":return(0,s.toUtf8Bytes)(e);case"bytes":return(0,s.getBytes)(e);case"bool":return e=e?"0x01":"0x00",r?(0,s.getBytes)((0,s.zeroPadValue)(e,32)):(0,s.getBytes)(e)}let i=t.match(a);if(i){let n="int"===i[1],o=parseInt(i[2]||"256");return(0,s.assertArgument)((!i[2]||i[2]===String(o))&&o%8==0&&0!==o&&o<=256,"invalid number type","type",t),r&&(o=256),n&&(e=(0,s.toTwos)(e,o)),(0,s.getBytes)((0,s.zeroPadValue)((0,s.toBeArray)(e),o/8))}if(i=t.match(o),i){const n=parseInt(i[1]);return(0,s.assertArgument)(String(n)===i[1]&&0!==n&&n<=32,"invalid bytes type","type",t),(0,s.assertArgument)((0,s.dataLength)(e)===n,`invalid value for ${t}`,"value",e),r?(0,s.getBytes)((0,s.zeroPadBytes)(e,32)):e}if(i=t.match(c),i&&Array.isArray(e)){const r=i[1],n=parseInt(i[2]||String(e.length));(0,s.assertArgument)(n===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach((function(t){o.push(l(r,t,!0))})),(0,s.getBytes)((0,s.concat)(o))}(0,s.assertArgument)(!1,"invalid type","type",t)}function u(t,e){(0,s.assertArgument)(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach((function(t,n){r.push(l(t,e[n]))})),(0,s.hexlify)((0,s.concat)(r))}e.solidityPacked=u,e.solidityPackedKeccak256=function(t,e){return(0,i.keccak256)(u(t,e))},e.solidityPackedSha256=function(t,e){return(0,i.sha256)(u(t,e))}},8993:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTypedData=e.TypedDataEncoder=void 0;const n=r(5475),i=r(6965),s=r(2290),o=r(2120),a=r(2625),c=new Uint8Array(32);c.fill(0);const l=BigInt(-1),u=BigInt(0),h=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=(0,o.toBeHex)(h,32),p=(0,o.toBeHex)(u,32),m={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},g=["name","version","chainId","verifyingContract","salt"];function y(t){return function(e){return(0,o.assertArgument)("string"==typeof e,`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const w={name:y("name"),version:y("version"),chainId:function(t){const e=(0,o.getBigInt)(t,"domain.chainId");return(0,o.assertArgument)(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):(0,o.toQuantity)(e)},verifyingContract:function(t){try{return(0,n.getAddress)(t).toLowerCase()}catch(t){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=(0,o.getBytes)(t,"domain.salt");return(0,o.assertArgument)(32===e.length,'invalid domain value "salt"',"domain.salt",t),(0,o.hexlify)(e)}};function b(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=""===e[1],n=parseInt(e[2]||"256");(0,o.assertArgument)(n%8==0&&0!==n&&n<=256&&(null==e[2]||e[2]===String(n)),"invalid numeric width","type",t);const i=(0,o.mask)(d,r?n-1:n),s=r?(i+h)*l:u;return function(e){const n=(0,o.getBigInt)(e,"value");return(0,o.assertArgument)(n>=s&&n<=i,`value out-of-bounds for ${t}`,"value",n),(0,o.toBeHex)(r?(0,o.toTwos)(n,256):n,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(0,o.assertArgument)(0!==r&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(e){const n=(0,o.getBytes)(e);return(0,o.assertArgument)(n.length===r,`invalid length for ${t}`,"value",e),function(t){const e=(0,o.getBytes)(t),r=e.length%32;return r?(0,o.concat)([e,c.slice(r)]):(0,o.hexlify)(e)}(e)}}}switch(t){case"address":return function(t){return(0,o.zeroPadValue)((0,n.getAddress)(t),32)};case"bool":return function(t){return t?f:p};case"bytes":return function(t){return(0,i.keccak256)(t)};case"string":return function(t){return(0,a.id)(t)}}return null}function v(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class A{primaryType;#_;get types(){return JSON.parse(this.#_)}#S;#M;constructor(t){this.#_=JSON.stringify(t),this.#S=new Map,this.#M=new Map;const e=new Map,r=new Map,n=new Map;Object.keys(t).forEach((t=>{e.set(t,new Set),r.set(t,[]),n.set(t,new Set)}));for(const n in t){const i=new Set;for(const s of t[n]){(0,o.assertArgument)(!i.has(s.name),`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(n)}`,"types",t),i.add(s.name);const a=s.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;(0,o.assertArgument)(a!==n,`circular type reference to ${JSON.stringify(a)}`,"types",t),b(a)||((0,o.assertArgument)(r.has(a),`unknown type ${JSON.stringify(a)}`,"types",t),r.get(a).push(n),e.get(n).add(a))}}const i=Array.from(r.keys()).filter((t=>0===r.get(t).length));(0,o.assertArgument)(0!==i.length,"missing primary type","types",t),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),(0,o.defineProperties)(this,{primaryType:i[0]}),function i(s,a){(0,o.assertArgument)(!a.has(s),`circular type reference to ${JSON.stringify(s)}`,"types",t),a.add(s);for(const t of e.get(s))if(r.has(t)){i(t,a);for(const e of a)n.get(e).add(t)}a.delete(s)}(this.primaryType,new Set);for(const[e,r]of n){const n=Array.from(r);n.sort(),this.#S.set(e,v(e,t[e])+n.map((e=>v(e,t[e]))).join(""))}}getEncoder(t){let e=this.#M.get(t);return e||(e=this.#C(t),this.#M.set(t,e)),e}#C(t){{const e=b(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],r=this.getEncoder(t);return n=>{(0,o.assertArgument)(!e[3]||parseInt(e[3])===n.length,`array length mismatch; expected length ${parseInt(e[3])}`,"value",n);let s=n.map(r);return this.#S.has(t)&&(s=s.map(i.keccak256)),(0,i.keccak256)((0,o.concat)(s))}}const r=this.types[t];if(r){const e=(0,a.id)(this.#S.get(t));return t=>{const n=r.map((({name:e,type:r})=>{const n=this.getEncoder(r)(t[e]);return this.#S.has(r)?(0,i.keccak256)(n):n}));return n.unshift(e),(0,o.concat)(n)}}(0,o.assertArgument)(!1,`unknown type: ${t}`,"type",t)}encodeType(t){const e=this.#S.get(t);return(0,o.assertArgument)(e,`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return(0,i.keccak256)(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,r){if(b(t))return r(t,e);const n=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n)return(0,o.assertArgument)(!n[3]||parseInt(n[3])===e.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",e),e.map((t=>this._visit(n[1],t,r)));const i=this.types[t];if(i)return i.reduce(((t,{name:n,type:i})=>(t[n]=this._visit(i,e[n],r),t)),{});(0,o.assertArgument)(!1,`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new A(t)}static getPrimaryType(t){return A.from(t).primaryType}static hashStruct(t,e,r){return A.from(e).hashStruct(t,r)}static hashDomain(t){const e=[];for(const r in t){if(null==t[r])continue;const n=m[r];(0,o.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",t),e.push({name:r,type:n})}return e.sort(((t,e)=>g.indexOf(t.name)-g.indexOf(e.name))),A.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,r){return(0,o.concat)(["0x1901",A.hashDomain(t),A.from(e).hash(r)])}static hash(t,e,r){return(0,i.keccak256)(A.encode(t,e,r))}static async resolveNames(t,e,r,n){t=Object.assign({},t);for(const e in t)null==t[e]&&delete t[e];const i={};t.verifyingContract&&!(0,o.isHexString)(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const s=A.from(e);s.visit(r,((t,e)=>("address"!==t||(0,o.isHexString)(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=await n(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),{domain:t,value:r=s.visit(r,((t,e)=>"address"===t&&i[e]?i[e]:e))}}static getPayload(t,e,r){A.hashDomain(t);const n={},i=[];g.forEach((e=>{const r=t[e];null!=r&&(n[e]=w[e](r),i.push({name:e,type:m[e]}))}));const s=A.from(e),a=Object.assign({},e);return(0,o.assertArgument)(null==a.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",e),a.EIP712Domain=i,s.encode(r),{types:a,domain:n,primaryType:s.primaryType,message:s.visit(r,((t,e)=>{if(t.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(e));if(t.match(/^u?int/))return(0,o.getBigInt)(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return(0,o.assertArgument)("string"==typeof e,"invalid string","value",e),e}(0,o.assertArgument)(!1,"unsupported type","type",t)}))}}}e.TypedDataEncoder=A,e.verifyTypedData=function(t,e,r,n){return(0,s.recoverAddress)(A.hash(t,e,r),n)}},9237:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethers=void 0;const n=r(8415),i=n.__importStar(r(1097));e.ethers=i,n.__exportStar(r(1097),e)},5142:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractProvider=e.UnmanagedSubscriber=void 0;const n=r(5475),i=r(87),s=r(7252),o=r(8336),a=r(2290),c=r(2120),l=r(4087),u=r(3080),h=r(4837),d=r(7143),f=r(3292),p=BigInt(2);function m(t){return t&&"function"==typeof t.then}function g(t,e){return t+":"+JSON.stringify(e,((t,e)=>{if(null==e)return"null";if("bigint"==typeof e)return`bigint:${e.toString()}`;if("string"==typeof e)return e.toLowerCase();if("object"==typeof e&&!Array.isArray(e)){const t=Object.keys(e);return t.sort(),t.reduce(((t,r)=>(t[r]=e[r],t)),{})}return e}))}class y{name;constructor(t){(0,c.defineProperties)(this,{name:t})}start(){}stop(){}pause(t){}resume(){}}function w(t){return(t=Array.from(new Set(t).values())).sort(),t}async function b(t,e){if(null==t)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),"string"==typeof t)switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if((0,c.isHexString)(t,32)){const e=t.toLowerCase();return{type:"transaction",tag:g("tx",{hash:e}),hash:e}}if(t.orphan){const e=t;return{type:"orphan",tag:g("orphan",e),filter:(r=e,JSON.parse(JSON.stringify(r)))}}var r;if(t.address||t.topics){const r=t,i={topics:(r.topics||[]).map((t=>null==t?null:Array.isArray(t)?w(t.map((t=>t.toLowerCase()))):t.toLowerCase()))};if(r.address){const t=[],s=[],o=r=>{(0,c.isHexString)(r)?t.push(r):s.push((async()=>{t.push(await(0,n.resolveAddress)(r,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),s.length&&await Promise.all(s),i.address=w(t.map((t=>t.toLowerCase())))}return{filter:i,tag:g("event",i),type:"event"}}(0,c.assertArgument)(!1,"unknown ProviderEvent","event",t)}function v(){return(new Date).getTime()}e.UnmanagedSubscriber=y;const A={cacheTimeout:250,pollingInterval:4e3};function E(t,e){try{const r=x(t,e);if(r)return(0,c.toUtf8String)(r)}catch(t){}return null}function x(t,e){if("0x"===t)return null;try{const r=(0,c.getNumber)((0,c.dataSlice)(t,e,e+32)),n=(0,c.getNumber)((0,c.dataSlice)(t,r,r+32));return(0,c.dataSlice)(t,r+32,r+32+n)}catch(t){}return null}function _(t){const e=(0,c.toBeArray)(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function S(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}e.AbstractProvider=class{#k;#I;#P;#O;#N;#T;#R;#B;#L;#U;#j;#g;constructor(t,e){if(this.#g=Object.assign({},A,e||{}),"any"===t)this.#T=!0,this.#N=null;else if(t){const e=h.Network.from(t);this.#T=!1,this.#N=Promise.resolve(e),setTimeout((()=>{this.emit("network",e,null)}),0)}else this.#T=!1,this.#N=null;this.#B=-1,this.#R=new Map,this.#k=new Map,this.#I=new Map,this.#P=null,this.#O=!1,this.#L=1,this.#U=new Map,this.#j=!1}get pollingInterval(){return this.#g.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#I.values())}attachPlugin(t){if(this.#I.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#I.set(t.name,t.connect(this)),this}getPlugin(t){return this.#I.get(t)||null}get disableCcipRead(){return this.#j}set disableCcipRead(t){this.#j=!!t}async#D(t){const e=this.#g.cacheTimeout;if(e<0)return await this._perform(t);const r=g(t.method,t);let n=this.#R.get(r);return n||(n=this._perform(t),this.#R.set(r,n),setTimeout((()=>{this.#R.get(r)===n&&this.#R.delete(r)}),e)),await n}async ccipReadFetch(t,e,r){if(this.disableCcipRead||0===r.length||null==t.to)return null;const n=t.to.toLowerCase(),i=e.toLowerCase(),s=[];for(let e=0;e=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:t,info:{url:o,errorMessage:u}}),s.push(u)}(0,c.assert)(!1,`error encountered during CCIP fetch: ${s.map((t=>JSON.stringify(t))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:t,info:{urls:r,errorMessages:s}})}_wrapBlock(t,e){return new d.Block((0,u.formatBlock)(t),this)}_wrapLog(t,e){return new d.Log((0,u.formatLog)(t),this)}_wrapTransactionReceipt(t,e){return new d.TransactionReceipt((0,u.formatTransactionReceipt)(t),this)}_wrapTransactionResponse(t,e){return new d.TransactionResponse((0,u.formatTransactionResponse)(t),this)}_detectNetwork(){(0,c.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(t){(0,c.assert)(!1,`unsupported method: ${t.method}`,"UNSUPPORTED_OPERATION",{operation:t.method,info:t})}async getBlockNumber(){const t=(0,c.getNumber)(await this.#D({method:"getBlockNumber"}),"%response");return this.#B>=0&&(this.#B=t),t}_getAddress(t){return(0,n.resolveAddress)(t,this)}_getBlockTag(t){if(null==t)return"latest";switch(t){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return t}return(0,c.isHexString)(t)?(0,c.isHexString)(t,32)?t:(0,c.toQuantity)(t):("bigint"==typeof t&&(t=(0,c.getNumber)(t,"blockTag")),"number"==typeof t?t>=0?(0,c.toQuantity)(t):this.#B>=0?(0,c.toQuantity)(this.#B+t):this.getBlockNumber().then((e=>(0,c.toQuantity)(e+t))):void(0,c.assertArgument)(!1,"invalid blockTag","blockTag",t))}_getFilter(t){const e=(t.topics||[]).map((t=>null==t?null:Array.isArray(t)?w(t.map((t=>t.toLowerCase()))):t.toLowerCase())),r="blockHash"in t?t.blockHash:void 0,n=(t,n,i)=>{let s;switch(t.length){case 0:break;case 1:s=t[0];break;default:t.sort(),s=t}if(r&&(null!=n||null!=i))throw new Error("invalid filter");const o={};return s&&(o.address=s),e.length&&(o.topics=e),n&&(o.fromBlock=n),i&&(o.toBlock=i),r&&(o.blockHash=r),o};let i,s,o=[];if(t.address)if(Array.isArray(t.address))for(const e of t.address)o.push(this._getAddress(e));else o.push(this._getAddress(t.address));return"fromBlock"in t&&(i=this._getBlockTag(t.fromBlock)),"toBlock"in t&&(s=this._getBlockTag(t.toBlock)),o.filter((t=>"string"!=typeof t)).length||null!=i&&"string"!=typeof i||null!=s&&"string"!=typeof s?Promise.all([Promise.all(o),i,s]).then((t=>n(t[0],t[1],t[2]))):n(o,i,s)}_getTransactionRequest(t){const e=(0,d.copyRequest)(t),r=[];if(["to","from"].forEach((t=>{if(null==e[t])return;const i=(0,n.resolveAddress)(e[t],this);m(i)?r.push(async function(){e[t]=await i}()):e[t]=i})),null!=e.blockTag){const t=this._getBlockTag(e.blockTag);m(t)?r.push(async function(){e.blockTag=await t}()):e.blockTag=t}return r.length?async function(){return await Promise.all(r),e}():e}async getNetwork(){if(null==this.#N){const t=(async()=>{try{const t=await this._detectNetwork();return this.emit("network",t,null),t}catch(e){throw this.#N===t&&(this.#N=null),e}})();return this.#N=t,(await t).clone()}const t=this.#N,[e,r]=await Promise.all([t,this._detectNetwork()]);return e.chainId!==r.chainId&&(this.#T?(this.emit("network",r,e),this.#N===t&&(this.#N=Promise.resolve(r))):(0,c.assert)(!1,`network changed: ${e.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),e.clone()}async getFeeData(){const t=await this.getNetwork(),e=async()=>{const{_block:e,gasPrice:r,priorityFee:n}=await(0,c.resolveProperties)({_block:this.#F("latest",!1),gasPrice:(async()=>{try{const t=await this.#D({method:"getGasPrice"});return(0,c.getBigInt)(t,"%response")}catch(t){}return null})(),priorityFee:(async()=>{try{const t=await this.#D({method:"getPriorityFee"});return(0,c.getBigInt)(t,"%response")}catch(t){}return null})()});let i=null,s=null;const o=this._wrapBlock(e,t);return o&&o.baseFeePerGas&&(s=null!=n?n:BigInt("1000000000"),i=o.baseFeePerGas*p+s),new d.FeeData(r,i,s)},r=t.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const t=new c.FetchRequest(r.url),n=await r.processFunc(e,this,t);return new d.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await e()}async estimateGas(t){let e=this._getTransactionRequest(t);return m(e)&&(e=await e),(0,c.getBigInt)(await this.#D({method:"estimateGas",transaction:e}),"%response")}async#z(t,e,r){(0,c.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},t,{blockTag:e,enableCcipRead:!0})});const i=(0,d.copyRequest)(t);try{return(0,c.hexlify)(await this._perform({method:"call",transaction:i,blockTag:e}))}catch(t){if(!this.disableCcipRead&&(0,c.isCallException)(t)&&t.data&&r>=0&&"latest"===e&&null!=i.to&&"0x556f1830"===(0,c.dataSlice)(t.data,0,4)){const s=t.data,o=await(0,n.resolveAddress)(i.to,this);let a;try{a=function(t){const e={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,c.assert)((0,c.dataLength)(t)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=(0,c.dataSlice)(t,0,32);(0,c.assert)((0,c.dataSlice)(r,0,12)===(0,c.dataSlice)(k,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=(0,c.dataSlice)(r,12);try{const r=[],n=(0,c.getNumber)((0,c.dataSlice)(t,32,64)),i=(0,c.getNumber)((0,c.dataSlice)(t,n,n+32)),s=(0,c.dataSlice)(t,n+32);for(let t=0;te[t])),e}((0,c.dataSlice)(t.data,4))}catch(t){(0,c.assert)(!1,t.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:i,info:{data:s}})}(0,c.assert)(a.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:i,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:a.errorArgs}});const l=await this.ccipReadFetch(i,a.calldata,a.urls);(0,c.assert)(null!=l,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:i,info:{data:t.data,errorArgs:a.errorArgs}});const u={to:o,data:(0,c.concat)([a.selector,C([l,a.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const t=await this.#z(u,e,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:t}),t}catch(t){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:t}),t}}throw t}}async#H(t){const{value:e}=await(0,c.resolveProperties)({network:this.getNetwork(),value:t});return e}async call(t){const{tx:e,blockTag:r}=await(0,c.resolveProperties)({tx:this._getTransactionRequest(t),blockTag:this._getBlockTag(t.blockTag)});return await this.#H(this.#z(e,r,t.enableCcipRead?0:-1))}async#$(t,e,r){let n=this._getAddress(e),i=this._getBlockTag(r);return"string"==typeof n&&"string"==typeof i||([n,i]=await Promise.all([n,i])),await this.#H(this.#D(Object.assign(t,{address:n,blockTag:i})))}async getBalance(t,e){return(0,c.getBigInt)(await this.#$({method:"getBalance"},t,e),"%response")}async getTransactionCount(t,e){return(0,c.getNumber)(await this.#$({method:"getTransactionCount"},t,e),"%response")}async getCode(t,e){return(0,c.hexlify)(await this.#$({method:"getCode"},t,e))}async getStorage(t,e,r){const n=(0,c.getBigInt)(e,"position");return(0,c.hexlify)(await this.#$({method:"getStorage",position:n},t,r))}async broadcastTransaction(t){const{blockNumber:e,hash:r,network:n}=await(0,c.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:t}),network:this.getNetwork()}),i=a.Transaction.from(t);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,n).replaceableTransaction(e)}async#F(t,e){if((0,c.isHexString)(t,32))return await this.#D({method:"getBlock",blockHash:t,includeTransactions:e});let r=this._getBlockTag(t);return"string"!=typeof r&&(r=await r),await this.#D({method:"getBlock",blockTag:r,includeTransactions:e})}async getBlock(t,e){const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#F(t,!!e)});return null==n?null:this._wrapBlock(n,r)}async getTransaction(t){const{network:e,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getTransaction",hash:t})});return null==r?null:this._wrapTransactionResponse(r,e)}async getTransactionReceipt(t){const{network:e,params:r}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getTransactionReceipt",hash:t})});if(null==r)return null;if(null==r.gasPrice&&null==r.effectiveGasPrice){const e=await this.#D({method:"getTransaction",hash:t});if(null==e)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=e.gasPrice}return this._wrapTransactionReceipt(r,e)}async getTransactionResult(t){const{result:e}=await(0,c.resolveProperties)({network:this.getNetwork(),result:this.#D({method:"getTransactionResult",hash:t})});return null==e?null:(0,c.hexlify)(e)}async getLogs(t){let e=this._getFilter(t);m(e)&&(e=await e);const{network:r,params:n}=await(0,c.resolveProperties)({network:this.getNetwork(),params:this.#D({method:"getLogs",filter:e})});return n.map((t=>this._wrapLog(t,r)))}_getProvider(t){(0,c.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(t){return await l.EnsResolver.fromName(this,t)}async getAvatar(t){const e=await this.getResolver(t);return e?await e.getAvatar():null}async resolveName(t){const e=await this.getResolver(t);return e?await e.getAddress():null}async lookupAddress(t){t=(0,n.getAddress)(t);const e=(0,o.namehash)(t.substring(2).toLowerCase()+".addr.reverse");try{const r=await l.EnsResolver.getEnsAddress(this),n=new s.Contract(r,["function resolver(bytes32) view returns (address)"],this),o=await n.resolver(e);if(null==o||o===i.ZeroAddress)return null;const a=new s.Contract(o,["function name(bytes32) view returns (string)"],this),c=await a.name(e);return await this.resolveName(c)!==t?null:c}catch(t){if((0,c.isError)(t,"BAD_DATA")&&"0x"===t.value)return null;if((0,c.isError)(t,"CALL_EXCEPTION"))return null;throw t}return null}async waitForTransaction(t,e,r){const n=null!=e?e:1;return 0===n?this.getTransactionReceipt(t):new Promise((async(e,i)=>{let s=null;const o=async r=>{try{const i=await this.getTransactionReceipt(t);if(null!=i&&r-i.blockNumber+1>=n)return e(i),void(s&&(clearTimeout(s),s=null))}catch(t){console.log("EEE",t)}this.once("block",o)};null!=r&&(s=setTimeout((()=>{null!=s&&(s=null,this.off("block",o),i((0,c.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),r)),o(await this.getBlockNumber())}))}async waitForBlock(t){(0,c.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(t){const e=this.#U.get(t);e&&(e.timer&&clearTimeout(e.timer),this.#U.delete(t))}_setTimeout(t,e){null==e&&(e=0);const r=this.#L++,n=()=>{this.#U.delete(r),t()};if(this.paused)this.#U.set(r,{timer:null,func:n,time:e});else{const t=setTimeout(n,e);this.#U.set(r,{timer:t,func:n,time:v()})}return r}_forEachSubscriber(t){for(const e of this.#k.values())t(e.subscriber)}_getSubscriber(t){switch(t.type){case"debug":case"error":case"network":return new y(t.type);case"block":{const t=new f.PollingBlockSubscriber(this);return t.pollingInterval=this.pollingInterval,t}case"safe":case"finalized":return new f.PollingBlockTagSubscriber(this,t.type);case"event":return new f.PollingEventSubscriber(this,t.filter);case"transaction":return new f.PollingTransactionSubscriber(this,t.hash);case"orphan":return new f.PollingOrphanSubscriber(this,t.filter)}throw new Error(`unsupported event: ${t.type}`)}_recoverSubscriber(t,e){for(const r of this.#k.values())if(r.subscriber===t){r.started&&r.subscriber.stop(),r.subscriber=e,r.started&&e.start(),null!=this.#P&&e.pause(this.#P);break}}async#q(t,e){let r=await b(t,this);return"event"===r.type&&e&&e.length>0&&!0===e[0].removed&&(r=await b({orphan:"drop-log",log:e[0]},this)),this.#k.get(r.tag)||null}async#W(t){const e=await b(t,this),r=e.tag;let n=this.#k.get(r);return n||(n={subscriber:this._getSubscriber(e),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#k.set(r,n)),n}async on(t,e){const r=await this.#W(t);return r.listeners.push({listener:e,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#P&&r.subscriber.pause(this.#P)),this}async once(t,e){const r=await this.#W(t);return r.listeners.push({listener:e,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#P&&r.subscriber.pause(this.#P)),this}async emit(t,...e){const r=await this.#q(t,e);if(!r||0===r.listeners.length)return!1;const n=r.listeners.length;return r.listeners=r.listeners.filter((({listener:r,once:n})=>{const i=new c.EventPayload(this,n?null:r,t);try{r.call(this,...e,i)}catch(t){}return!n})),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#k.delete(r.tag)),n>0}async listenerCount(t){if(t){const e=await this.#q(t);return e?e.listeners.length:0}let e=0;for(const{listeners:t}of this.#k.values())e+=t.length;return e}async listeners(t){if(t){const e=await this.#q(t);return e?e.listeners.map((({listener:t})=>t)):[]}let e=[];for(const{listeners:t}of this.#k.values())e=e.concat(t.map((({listener:t})=>t)));return e}async off(t,e){const r=await this.#q(t);if(!r)return this;if(e){const t=r.listeners.map((({listener:t})=>t)).indexOf(e);t>=0&&r.listeners.splice(t,1)}return e&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#k.delete(r.tag)),this}async removeAllListeners(t){if(t){const{tag:e,started:r,subscriber:n}=await this.#W(t);r&&n.stop(),this.#k.delete(e)}else for(const[t,{started:e,subscriber:r}]of this.#k)e&&r.stop(),this.#k.delete(t);return this}async addListener(t,e){return await this.on(t,e)}async removeListener(t,e){return this.off(t,e)}get destroyed(){return this.#O}destroy(){this.removeAllListeners();for(const t of this.#U.keys())this._clearTimeout(t);this.#O=!0}get paused(){return null!=this.#P}set paused(t){!!t!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(t){if(this.#B=-1,null!=this.#P){if(this.#P==!!t)return;(0,c.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((e=>e.pause(t))),this.#P=!!t;for(const t of this.#U.values())t.timer&&clearTimeout(t.timer),t.time=v()-t.time}resume(){if(null!=this.#P){this._forEachSubscriber((t=>t.resume())),this.#P=null;for(const t of this.#U.values()){let e=t.time;e<0&&(e=0),t.time=v(),setTimeout(t.func,e)}}}};const M=new Uint8Array([]);function C(t){const e=[];let r=0;for(let n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VoidSigner=e.AbstractSigner=void 0;const n=r(5475),i=r(2290),s=r(2120),o=r(7143);function a(t,e){if(t.provider)return t.provider;(0,s.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function c(t,e){let r=(0,o.copyRequest)(e);if(null!=r.to&&(r.to=(0,n.resolveAddress)(r.to,t)),null!=r.from){const e=r.from;r.from=Promise.all([t.getAddress(),(0,n.resolveAddress)(e,t)]).then((([t,e])=>((0,s.assertArgument)(t.toLowerCase()===e.toLowerCase(),"transaction from mismatch","tx.from",e),t)))}else r.from=t.getAddress();return await(0,s.resolveProperties)(r)}class l{provider;constructor(t){(0,s.defineProperties)(this,{provider:t||null})}async getNonce(t){return a(this,"getTransactionCount").getTransactionCount(await this.getAddress(),t)}async populateCall(t){return await c(this,t)}async populateTransaction(t){const e=a(this,"populateTransaction"),r=await c(this,t);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));const n=await this.provider.getNetwork();if(null!=r.chainId){const e=(0,s.getBigInt)(r.chainId);(0,s.assertArgument)(e===n.chainId,"transaction chainId mismatch","tx.chainId",t.chainId)}else r.chainId=n.chainId;const i=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null==r.gasPrice||2!==r.type&&!i?0!==r.type&&1!==r.type||!i||(0,s.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",t):(0,s.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",t),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas)if(0===r.type||1===r.type){const t=await e.getFeeData();(0,s.assert)(null!=t.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=t.gasPrice)}else{const t=await e.getFeeData();if(null==r.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(r.type=2,null!=r.gasPrice){const t=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=t,r.maxPriorityFeePerGas=t}else null==r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?((0,s.assert)(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=t.gasPrice),r.type=0):(0,s.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else r.type=2;return await(0,s.resolveProperties)(r)}async estimateGas(t){return a(this,"estimateGas").estimateGas(await this.populateCall(t))}async call(t){return a(this,"call").call(await this.populateCall(t))}async resolveName(t){const e=a(this,"resolveName");return await e.resolveName(t)}async sendTransaction(t){const e=a(this,"sendTransaction"),r=await this.populateTransaction(t);delete r.from;const n=i.Transaction.from(r);return await e.broadcastTransaction(await this.signTransaction(n))}}e.AbstractSigner=l;class u extends l{address;constructor(t,e){super(e),(0,s.defineProperties)(this,{address:t})}async getAddress(){return this.address}connect(t){return new u(this.address,t)}#V(t,e){(0,s.assert)(!1,`VoidSigner cannot sign ${t}`,"UNSUPPORTED_OPERATION",{operation:e})}async signTransaction(t){this.#V("transactions","signTransaction")}async signMessage(t){this.#V("messages","signMessage")}async signTypedData(t,e,r){this.#V("typed-data","signTypedData")}}e.VoidSigner=u},2813:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showThrottleMessage=void 0;const r=new Set;e.showThrottleMessage=function(t){r.has(t)||(r.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},7994:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultProvider=void 0;const n=r(2120),i=r(7949),s=r(3815),o=r(3377),a=r(2880),c=r(5012),l=r(1333),u=r(4129),h=r(2013),d=r(4837),f=r(2196),p="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");e.getDefaultProvider=function(t,e){null==e&&(e={});const r=t=>"-"!==e[t]&&("string"==typeof e.exclusive?t===e.exclusive:!Array.isArray(e.exclusive)||-1!==e.exclusive.indexOf(t));if("string"==typeof t&&t.match(/^https?:/))return new h.JsonRpcProvider(t);if("string"==typeof t&&t.match(/^wss?:/)||(m=t)&&"function"==typeof m.send&&"function"==typeof m.close)return new f.WebSocketProvider(t);var m;let g=null;try{g=d.Network.from(t)}catch(t){}const y=[];if(r("publicPolygon")&&g&&"matic"===g.name&&y.push(new h.JsonRpcProvider("https://polygon-rpc.com/",g,{staticNetwork:g})),r("alchemy"))try{y.push(new s.AlchemyProvider(t,e.alchemy))}catch(t){}if(r("ankr")&&null!=e.ankr)try{y.push(new i.AnkrProvider(t,e.ankr))}catch(t){}if(r("cloudflare"))try{y.push(new o.CloudflareProvider(t))}catch(t){}if(r("etherscan"))try{y.push(new a.EtherscanProvider(t,e.etherscan))}catch(t){}if(r("infura"))try{let r,n=e.infura;"object"==typeof n&&(r=n.projectSecret,n=n.projectId),y.push(new c.InfuraProvider(t,n,r))}catch(t){}if(r("quicknode"))try{let r=e.quicknode;y.push(new l.QuickNodeProvider(t,r))}catch(t){}if((0,n.assert)(y.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===y.length)return y[0];let w=Math.floor(y.length/2);return w>2&&(w=2),g&&-1!==p.indexOf(g.name)&&(w=1),e&&e.quorum&&(w=e.quorum),new u.FallbackProvider(y,void 0,{quorum:w})}},4087:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnsResolver=e.BasicMulticoinProviderPlugin=e.MulticoinProviderPlugin=void 0;const n=r(5475),i=r(87),s=r(7252),o=r(8336),a=r(2120);function c(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):(0,a.assertArgument)(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class l{name;constructor(t){(0,a.defineProperties)(this,{name:t})}connect(t){return this}supportsCoinType(t){return!1}async encodeAddress(t,e){throw new Error("unsupported coin")}async decodeAddress(t,e){throw new Error("unsupported coin")}}e.MulticoinProviderPlugin=l,e.BasicMulticoinProviderPlugin=class extends l{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const u=new RegExp("^(ipfs)://(.*)$","i"),h=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),u,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#G;#K;constructor(t,e,r){(0,a.defineProperties)(this,{provider:t,address:e,name:r}),this.#G=null,this.#K=new s.Contract(e,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],t)}async supportsWildcard(){return null==this.#G&&(this.#G=(async()=>{try{return await this.#K.supportsInterface("0x9061b923")}catch(t){if((0,a.isError)(t,"CALL_EXCEPTION"))return!1;throw this.#G=null,t}})()),await this.#G}async#Z(t,e){e=(e||[]).slice();const r=this.#K.interface;e.unshift((0,o.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(t),(0,a.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:t}}),e=[(0,o.dnsEncode)(this.name),r.encodeFunctionData(n,e)],t="resolve(bytes,bytes)"),e.push({enableCcipRead:!0});try{const i=await this.#K[t](...e);return n?r.decodeFunctionResult(n,i)[0]:i}catch(t){if(!(0,a.isError)(t,"CALL_EXCEPTION"))throw t}return null}async getAddress(t){if(null==t&&(t=60),60===t)try{const t=await this.#Z("addr(bytes32)");return null==t||t===i.ZeroAddress?null:t}catch(t){if((0,a.isError)(t,"CALL_EXCEPTION"))return null;throw t}if(t>=0&&t<2147483648){let e=t+2147483648;const r=await this.#Z("addr(bytes32,uint)",[e]);if((0,a.isHexString)(r,20))return(0,n.getAddress)(r)}let e=null;for(const r of this.provider.plugins)if(r instanceof l&&r.supportsCoinType(t)){e=r;break}if(null==e)return null;const r=await this.#Z("addr(bytes32,uint)",[t]);if(null==r||"0x"===r)return null;const s=await e.decodeAddress(t,r);if(null!=s)return s;(0,a.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${t})`,info:{coinType:t,data:r}})}async getText(t){const e=await this.#Z("text(bytes32,string)",[t]);return null==e||"0x"===e?null:e}async getContentHash(){const t=await this.#Z("contenthash(bytes32)");if(null==t||"0x"===t)return null;const e=t.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(e){const t="e3010170"===e[1]?"ipfs":"ipns",r=parseInt(e[4],16);if(e[5].length===2*r)return`${t}://${(0,a.encodeBase58)("0x"+e[2])}`}const r=t.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,a.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:t}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const t=[{type:"name",value:this.name}];try{const e=await this.getText("avatar");if(null==e)return t.push({type:"!avatar",value:""}),{url:null,linkage:t};t.push({type:"avatar",value:e});for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatTransactionResponse=e.formatTransactionReceipt=e.formatReceiptLog=e.formatBlock=e.formatLog=e.formatUint256=e.formatHash=e.formatData=e.formatBoolean=e.object=e.arrayOf=e.allowNull=void 0;const n=r(5475),i=r(6965),s=r(2290),o=r(2120),a=BigInt(0);function c(t,e){return function(r){return null==r?e:t(r)}}function l(t){return e=>{if(!Array.isArray(e))throw new Error("not an array");return e.map((e=>t(e)))}}function u(t,e){return r=>{const n={};for(const i in t){let s=i;if(e&&i in e&&!(s in r))for(const t of e[i])if(t in r){s=t;break}try{const e=t[i](r[s]);void 0!==e&&(n[i]=e)}catch(t){const e=t instanceof Error?t.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:r})}}return n}}function h(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function d(t){return(0,o.assertArgument)((0,o.isHexString)(t,!0),"invalid data","value",t),t}function f(t){return(0,o.assertArgument)((0,o.isHexString)(t,32),"invalid hash","value",t),t}e.allowNull=c,e.arrayOf=l,e.object=u,e.formatBoolean=h,e.formatData=d,e.formatHash=f,e.formatUint256=function(t){if(!(0,o.isHexString)(t))throw new Error("invalid uint256");return(0,o.zeroPadValue)(t,32)};const p=u({address:n.getAddress,blockHash:f,blockNumber:o.getNumber,data:d,index:o.getNumber,removed:c(h,!1),topics:l(f),transactionHash:f,transactionIndex:o.getNumber},{index:["logIndex"]});e.formatLog=function(t){return p(t)};const m=u({hash:c(f),parentHash:f,number:o.getNumber,timestamp:o.getNumber,nonce:c(d),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,miner:c(n.getAddress),extraData:d,baseFeePerGas:c(o.getBigInt)});e.formatBlock=function(t){const e=m(t);return e.transactions=t.transactions.map((t=>"string"==typeof t?t:b(t))),e};const g=u({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:f,address:n.getAddress,topics:l(f),data:d,index:o.getNumber,blockHash:f},{index:["logIndex"]});function y(t){return g(t)}e.formatReceiptLog=y;const w=u({to:c(n.getAddress,null),from:c(n.getAddress,null),contractAddress:c(n.getAddress,null),index:o.getNumber,root:c(o.hexlify),gasUsed:o.getBigInt,logsBloom:c(d),blockHash:f,hash:f,logs:l(y),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:c(o.getBigInt),status:c(o.getNumber),type:c(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function b(t){t.to&&(0,o.getBigInt)(t.to)===a&&(t.to="0x0000000000000000000000000000000000000000");const e=u({hash:f,type:t=>"0x"===t||null==t?0:(0,o.getNumber)(t),accessList:c(s.accessListify,null),blockHash:c(f,null),blockNumber:c(o.getNumber,null),transactionIndex:c(o.getNumber,null),from:n.getAddress,gasPrice:c(o.getBigInt),maxPriorityFeePerGas:c(o.getBigInt),maxFeePerGas:c(o.getBigInt),gasLimit:o.getBigInt,to:c(n.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:d,creates:c(n.getAddress,null),chainId:c(o.getBigInt,null)},{data:["input"],gasLimit:["gas"]})(t);if(null==e.to&&null==e.creates&&(e.creates=(0,n.getCreateAddress)(e)),1!==t.type&&2!==t.type||null!=t.accessList||(e.accessList=[]),t.signature?e.signature=i.Signature.from(t.signature):e.signature=i.Signature.from(t),null==e.chainId){const t=e.signature.legacyChainId;null!=t&&(e.chainId=t)}return e.blockHash&&(0,o.getBigInt)(e.blockHash)===a&&(e.blockHash=null),e}e.formatTransactionReceipt=function(t){return w(t)},e.formatTransactionResponse=b},4878:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SocketEventSubscriber=e.SocketPendingSubscriber=e.SocketBlockSubscriber=e.SocketSubscriber=e.WebSocketProvider=e.SocketProvider=e.IpcSocketProvider=e.QuickNodeProvider=e.PocketProvider=e.InfuraWebSocketProvider=e.InfuraProvider=e.EtherscanPlugin=e.EtherscanProvider=e.CloudflareProvider=e.AnkrProvider=e.AlchemyProvider=e.BrowserProvider=e.JsonRpcSigner=e.JsonRpcProvider=e.JsonRpcApiProvider=e.FallbackProvider=e.copyRequest=e.TransactionResponse=e.TransactionReceipt=e.Log=e.FeeData=e.Block=e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EnsPlugin=e.GasCostPlugin=e.NetworkPlugin=e.NonceManager=e.Network=e.MulticoinProviderPlugin=e.EnsResolver=e.getDefaultProvider=e.showThrottleMessage=e.VoidSigner=e.AbstractSigner=e.UnmanagedSubscriber=e.AbstractProvider=void 0;var n=r(5142);Object.defineProperty(e,"AbstractProvider",{enumerable:!0,get:function(){return n.AbstractProvider}}),Object.defineProperty(e,"UnmanagedSubscriber",{enumerable:!0,get:function(){return n.UnmanagedSubscriber}});var i=r(5649);Object.defineProperty(e,"AbstractSigner",{enumerable:!0,get:function(){return i.AbstractSigner}}),Object.defineProperty(e,"VoidSigner",{enumerable:!0,get:function(){return i.VoidSigner}});var s=r(2813);Object.defineProperty(e,"showThrottleMessage",{enumerable:!0,get:function(){return s.showThrottleMessage}});var o=r(7994);Object.defineProperty(e,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var a=r(4087);Object.defineProperty(e,"EnsResolver",{enumerable:!0,get:function(){return a.EnsResolver}}),Object.defineProperty(e,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return a.MulticoinProviderPlugin}});var c=r(4837);Object.defineProperty(e,"Network",{enumerable:!0,get:function(){return c.Network}});var l=r(2992);Object.defineProperty(e,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}});var u=r(7004);Object.defineProperty(e,"NetworkPlugin",{enumerable:!0,get:function(){return u.NetworkPlugin}}),Object.defineProperty(e,"GasCostPlugin",{enumerable:!0,get:function(){return u.GasCostPlugin}}),Object.defineProperty(e,"EnsPlugin",{enumerable:!0,get:function(){return u.EnsPlugin}}),Object.defineProperty(e,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FeeDataNetworkPlugin}}),Object.defineProperty(e,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return u.FetchUrlFeeDataNetworkPlugin}});var h=r(7143);Object.defineProperty(e,"Block",{enumerable:!0,get:function(){return h.Block}}),Object.defineProperty(e,"FeeData",{enumerable:!0,get:function(){return h.FeeData}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return h.Log}}),Object.defineProperty(e,"TransactionReceipt",{enumerable:!0,get:function(){return h.TransactionReceipt}}),Object.defineProperty(e,"TransactionResponse",{enumerable:!0,get:function(){return h.TransactionResponse}}),Object.defineProperty(e,"copyRequest",{enumerable:!0,get:function(){return h.copyRequest}});var d=r(4129);Object.defineProperty(e,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var f=r(2013);Object.defineProperty(e,"JsonRpcApiProvider",{enumerable:!0,get:function(){return f.JsonRpcApiProvider}}),Object.defineProperty(e,"JsonRpcProvider",{enumerable:!0,get:function(){return f.JsonRpcProvider}}),Object.defineProperty(e,"JsonRpcSigner",{enumerable:!0,get:function(){return f.JsonRpcSigner}});var p=r(292);Object.defineProperty(e,"BrowserProvider",{enumerable:!0,get:function(){return p.BrowserProvider}});var m=r(3815);Object.defineProperty(e,"AlchemyProvider",{enumerable:!0,get:function(){return m.AlchemyProvider}});var g=r(7949);Object.defineProperty(e,"AnkrProvider",{enumerable:!0,get:function(){return g.AnkrProvider}});var y=r(3377);Object.defineProperty(e,"CloudflareProvider",{enumerable:!0,get:function(){return y.CloudflareProvider}});var w=r(2880);Object.defineProperty(e,"EtherscanProvider",{enumerable:!0,get:function(){return w.EtherscanProvider}}),Object.defineProperty(e,"EtherscanPlugin",{enumerable:!0,get:function(){return w.EtherscanPlugin}});var b=r(5012);Object.defineProperty(e,"InfuraProvider",{enumerable:!0,get:function(){return b.InfuraProvider}}),Object.defineProperty(e,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return b.InfuraWebSocketProvider}});var v=r(2751);Object.defineProperty(e,"PocketProvider",{enumerable:!0,get:function(){return v.PocketProvider}});var A=r(1333);Object.defineProperty(e,"QuickNodeProvider",{enumerable:!0,get:function(){return A.QuickNodeProvider}});const E=r(8306);Object.defineProperty(e,"IpcSocketProvider",{enumerable:!0,get:function(){return E.IpcSocketProvider}});var x=r(2394);Object.defineProperty(e,"SocketProvider",{enumerable:!0,get:function(){return x.SocketProvider}});var _=r(2196);Object.defineProperty(e,"WebSocketProvider",{enumerable:!0,get:function(){return _.WebSocketProvider}});var S=r(2394);Object.defineProperty(e,"SocketSubscriber",{enumerable:!0,get:function(){return S.SocketSubscriber}}),Object.defineProperty(e,"SocketBlockSubscriber",{enumerable:!0,get:function(){return S.SocketBlockSubscriber}}),Object.defineProperty(e,"SocketPendingSubscriber",{enumerable:!0,get:function(){return S.SocketPendingSubscriber}}),Object.defineProperty(e,"SocketEventSubscriber",{enumerable:!0,get:function(){return S.SocketEventSubscriber}})},4837:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Network=void 0;const n=r(2290),i=r(2120),s=r(7004),o=new Map;class a{#J;#Y;#I;constructor(t,e){this.#J=t,this.#Y=(0,i.getBigInt)(e),this.#I=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#J}set name(t){this.#J=t}get chainId(){return this.#Y}set chainId(t){this.#Y=(0,i.getBigInt)(t,"chainId")}matches(t){if(null==t)return!1;if("string"==typeof t){try{return this.chainId===(0,i.getBigInt)(t)}catch(t){}return this.name===t}if("number"==typeof t||"bigint"==typeof t){try{return this.chainId===(0,i.getBigInt)(t)}catch(t){}return!1}if("object"==typeof t){if(null!=t.chainId){try{return this.chainId===(0,i.getBigInt)(t.chainId)}catch(t){}return!1}return null!=t.name&&this.name===t.name}return!1}get plugins(){return Array.from(this.#I.values())}attachPlugin(t){if(this.#I.get(t.name))throw new Error(`cannot replace existing plugin: ${t.name} `);return this.#I.set(t.name,t.clone()),this}getPlugin(t){return this.#I.get(t)||null}getPlugins(t){return this.plugins.filter((e=>e.name.split("#")[0]===t))}clone(){const t=new a(this.name,this.chainId);return this.plugins.forEach((e=>{t.attachPlugin(e.clone())})),t}computeIntrinsicGas(t){const e=this.getPlugin("org.ethers.plugins.network.GasCost")||new s.GasCostPlugin;let r=e.txBase;if(null==t.to&&(r+=e.txCreate),t.data)for(let n=2;n{n.attachPlugin(t)})),n};a.register(t,n),a.register(e,n),r.altNames&&r.altNames.forEach((t=>{a.register(t,n)}))}u||(u=!0,t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("matic",137,{ensNetwork:1,plugins:[l("https://gasstation.polygon.technology/v2")]}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[l("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("xdai",100,{ensNetwork:1}))}(),null==t)return a.from("mainnet");if("number"==typeof t&&(t=BigInt(t)),"string"==typeof t||"bigint"==typeof t){const e=o.get(t);if(e)return e();if("bigint"==typeof t)return new a("unknown",t);(0,i.assertArgument)(!1,"unknown network","network",t)}if("function"==typeof t.clone)return t.clone();if("object"==typeof t){(0,i.assertArgument)("string"==typeof t.name&&"number"==typeof t.chainId,"invalid network object name or chainId","network",t);const e=new a(t.name,t.chainId);return(t.ensAddress||null!=t.ensNetwork)&&e.attachPlugin(new s.EnsPlugin(t.ensAddress,t.ensNetwork)),e}(0,i.assertArgument)(!1,"invalid network","network",t)}static register(t,e){"number"==typeof t&&(t=BigInt(t));const r=o.get(t);r&&(0,i.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",t),o.set(t,e)}}function c(t,e){const r=String(t);if(!r.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${t}`);const n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw new Error(`invalid gwei value: ${t}`);for(;n[1].length9){let t=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||t++,n[1]=t.toString()}return BigInt(n[0]+n[1])}function l(t){return new s.FetchUrlFeeDataNetworkPlugin(t,(async(t,e,r)=>{let n;r.setHeader("User-Agent","ethers");try{const[e,i]=await Promise.all([r.send(),t()]);n=e;const s=n.bodyJson.standard;return{gasPrice:i.gasPrice,maxFeePerGas:c(s.maxFee,9),maxPriorityFeePerGas:c(s.maxPriorityFee,9)}}catch(t){(0,i.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:t})}}))}e.Network=a;let u=!1},7004:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchUrlFeeDataNetworkPlugin=e.FeeDataNetworkPlugin=e.EnsPlugin=e.GasCostPlugin=e.NetworkPlugin=void 0;const n=r(9290),i=r(2120);class s{name;constructor(t){(0,n.defineProperties)(this,{name:t})}clone(){return new s(this.name)}}e.NetworkPlugin=s;class o extends s{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(t,e){null==t&&(t=0),super(`org.ethers.network.plugins.GasCost#${t||0}`);const r={effectiveBlock:t};function s(t,n){let s=(e||{})[t];null==s&&(s=n),(0,i.assertArgument)("number"==typeof s,`invalud value for ${t}`,"costs",e),r[t]=s}s("txBase",21e3),s("txCreate",32e3),s("txDataZero",4),s("txDataNonzero",16),s("txAccessListStorageKey",1900),s("txAccessListAddress",2400),(0,n.defineProperties)(this,r)}clone(){return new o(this.effectiveBlock,this)}}e.GasCostPlugin=o;class a extends s{address;targetNetwork;constructor(t,e){super("org.ethers.plugins.network.Ens"),(0,n.defineProperties)(this,{address:t||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==e?1:e})}clone(){return new a(this.address,this.targetNetwork)}}e.EnsPlugin=a;class c extends s{#X;get feeDataFunc(){return this.#X}constructor(t){super("org.ethers.plugins.network.FeeData"),this.#X=t}async getFeeData(t){return await this.#X(t)}clone(){return new c(this.#X)}}e.FeeDataNetworkPlugin=c,e.FetchUrlFeeDataNetworkPlugin=class extends s{#tt;#et;get url(){return this.#tt}get processFunc(){return this.#et}constructor(t,e){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#tt=t,this.#et=e}clone(){return this}}},3815:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlchemyProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class c extends o.JsonRpcProvider{apiKey;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a),super(c.getRequest(r,e),r,{staticNetwork:r}),(0,n.defineProperties)(this,{apiKey:e})}_getProvider(t){try{return new c(t,this.apiKey)}catch(t){}return super._getProvider(t)}async _perform(t){if("getTransactionResult"===t.method){const{trace:e,tx:r}=await(0,n.resolveProperties)({trace:this.send("trace_transaction",[t.hash]),tx:this.getTransaction(t.hash)});if(null==e||null==r)return null;let i,s=!1;try{i=e[0].result.output,s="Reverted"===e[0].error}catch(t){}if(i)return(0,n.assert)(!s,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:r,invocation:null,revert:null}),i;(0,n.assert)(!1,"could not parse trace result","BAD_DATA",{value:e})}return await super._perform(t)}isCommunityResource(){return this.apiKey===a}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v2/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("alchemy"),!0)),r}}e.AlchemyProvider=c},7949:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnkrProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends o.JsonRpcProvider{apiKey;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a);const i={polling:!0,staticNetwork:r};super(c.getRequest(r,e),r,i),(0,n.defineProperties)(this,{apiKey:e})}_getProvider(t){try{return new c(t,this.apiKey)}catch(t){}return super._getProvider(t)}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"matic":return"rpc.ankr.com/polygon";case"arbitrum":return"rpc.ankr.com/arbitrum"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("AnkrProvider"),!0)),r}getRpcError(t,e){return"eth_sendRawTransaction"===t.method&&e&&e.error&&"INTERNAL_ERROR: could not replace existing tx"===e.error.message&&(e.error.message="replacement transaction underpriced"),super.getRpcError(t,e)}isCommunityResource(){return this.apiKey===a}}e.AnkrProvider=c},292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserProvider=void 0;const n=r(2120),i=r(2013);class s extends i.JsonRpcApiPollingProvider{#rt;constructor(t,e){super(e,{batchMaxCount:1}),this.#rt=async(e,r)=>{const n={method:e,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{const e=await t.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:e}),e}catch(t){const e=new Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(t,e){return await this._start(),await super.send(t,e)}async _send(t){(0,n.assertArgument)(!Array.isArray(t),"EIP-1193 does not support batch request","payload",t);try{const e=await this.#rt(t.method,t.params||[]);return[{id:t.id,result:e}]}catch(e){return[{id:t.id,error:{code:e.code,data:e.data,message:e.message}}]}}getRpcError(t,e){switch((e=JSON.parse(JSON.stringify(e))).error.code||-1){case 4001:e.error.message=`ethers-user-denied: ${e.error.message}`;break;case 4200:e.error.message=`ethers-unsupported: ${e.error.message}`}return super.getRpcError(t,e)}async hasSigner(t){null==t&&(t=0);const e=await this.send("eth_accounts",[]);return"number"==typeof t?e.length>t:(t=t.toLowerCase(),0!==e.filter((e=>e.toLowerCase()===t)).length)}async getSigner(t){if(null==t&&(t=0),!await this.hasSigner(t))try{await this.#rt("eth_requestAccounts",[])}catch(t){const e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(t)}}e.BrowserProvider=s},3377:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloudflareProvider=void 0;const n=r(2120),i=r(4837),s=r(2013);class o extends s.JsonRpcProvider{constructor(t){null==t&&(t="mainnet");const e=i.Network.from(t);(0,n.assertArgument)("mainnet"===e.name,"unsupported network","network",t),super("https://cloudflare-eth.com/",e,{staticNetwork:e})}}e.CloudflareProvider=o},2880:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EtherscanProvider=e.EtherscanPlugin=void 0;const n=r(3707),i=r(7252),s=r(2290),o=r(2120),a=r(5142),c=r(4837),l=r(7004),u=r(2813),h="org.ethers.plugins.provider.Etherscan";class d extends l.NetworkPlugin{baseUrl;constructor(t){super(h),(0,o.defineProperties)(this,{baseUrl:t})}clone(){return new d(this.baseUrl)}}e.EtherscanPlugin=d;const f=["enableCcipRead"];let p=1;class m extends a.AbstractProvider{network;apiKey;#nt;constructor(t,e){const r=null!=e?e:null;super();const n=c.Network.from(t);this.#nt=n.getPlugin(h),(0,o.defineProperties)(this,{apiKey:r,network:n}),this.getBaseUrl()}getBaseUrl(){if(this.#nt)return this.#nt.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";case"bnb":return"http://api.bscscan.com";case"bnbt":return"http://api-testnet.bscscan.com"}(0,o.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(t,e){const r=Object.keys(e).reduce(((t,r)=>{const n=e[r];return null!=n&&(t+=`&${r}=${n}`),t}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${t}${r}${n}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}async detectNetwork(){return this.network}async fetch(t,e,r){const n=p++,i=r?this.getPostUrl():this.getUrl(t,e),s=r?this.getPostData(t,e):null;this.emit("debug",{action:"sendRequest",id:n,url:i,payload:s});const a=new o.FetchRequest(i);a.setThrottleParams({slotInterval:1e3}),a.retryFunc=(t,e,r)=>(this.isCommunityResource()&&(0,u.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),a.processFunc=async(e,r)=>{const i=r.hasBody()?JSON.parse((0,o.toUtf8String)(r.body)):{},s=("string"==typeof i.result?i.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===t?i&&0==i.status&&"NOTOK"==i.message&&s&&(this.emit("debug",{action:"receiveError",id:n,reason:"proxy-NOTOK",error:i}),r.throwThrottleError(i.result,2e3)):s&&(this.emit("debug",{action:"receiveError",id:n,reason:"null result",error:i.result}),r.throwThrottleError(i.result,2e3)),r},s&&(a.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),a.body=Object.keys(s).map((t=>`${t}=${s[t]}`)).join("&"));const c=await a.send();try{c.assertOk()}catch(t){this.emit("debug",{action:"receiveError",id:n,error:t,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:a,response:c})}c.hasBody()||(this.emit("debug",{action:"receiveError",id:n,error:"missing body",reason:"null body"}),(0,o.assert)(!1,"missing response","SERVER_ERROR",{request:a,response:c}));const l=JSON.parse((0,o.toUtf8String)(c.body));return"proxy"===t?("2.0"!=l.jsonrpc&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:a,response:c,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:n,result:l,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result):0!=l.status||"No records found"!==l.message&&"No transactions found"!==l.message?((1!=l.status||"string"==typeof l.message&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:n,result:l}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:a,response:c,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result):(this.emit("debug",{action:"receiveRequest",id:n,result:l}),l.result)}_getTransactionPostData(t){const e={};for(let r in t){if(f.indexOf(r)>=0)continue;if(null==t[r])continue;let n=t[r];"type"===r&&0===n||"blockTag"===r&&"latest"===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,o.toQuantity)(n):"accessList"===r?"["+(0,s.accessListify)(n).map((t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`)).join(",")+"]":(0,o.hexlify)(n),e[r]=n)}return e}_checkError(t,e,r){let i="";if((0,o.isError)(e,"SERVER_ERROR")){try{i=e.info.result.error.message}catch(t){}if(!i)try{i=e.info.message}catch(t){}}if("estimateGas"===t.method&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&(0,o.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.transaction}),("call"===t.method||"estimateGas"===t.method)&&i.match(/execution reverted/i)){let r="";try{r=e.info.result.error.data}catch(e){}const i=n.AbiCoder.getBuiltinCallException(t.method,t.transaction,r);throw i.info={request:t,error:e},i}if(i&&"broadcastTransaction"===t.method){const e=s.Transaction.from(t.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&(0,o.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:e}),i.match(/insufficient funds/)&&(0,o.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:e}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,o.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:e})}throw e}async _detectNetwork(){return this.network}async _perform(t){switch(t.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>this._checkError(t,e,t.signedTransaction)));case"getBlock":if("blockTag"in t)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});(0,o.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.hash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=this._getTransactionPostData(t.transaction);e.module="proxy",e.action="eth_call";try{return await this.fetch("proxy",e,!0)}catch(e){return this._checkError(t,e,t.transaction)}}case"estimateGas":{const e=this._getTransactionPostData(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return await this.fetch("proxy",e,!0)}catch(e){return this._checkError(t,e,t.transaction)}}}return super._perform(t)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(t){let e=this._getAddress(t);var r;(r=e)&&"function"==typeof r.then&&(e=await e);try{const t=await this.fetch("contract",{action:"getabi",address:e}),r=JSON.parse(t);return new i.Contract(e,r,this)}catch(t){return null}}isCommunityResource(){return null==this.apiKey}}e.EtherscanProvider=m},4129:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FallbackProvider=void 0;const n=r(2120),i=r(5142),s=r(4837),o=BigInt("1"),a=BigInt("2");function c(){return(new Date).getTime()}function l(t){return JSON.stringify(t,((t,e)=>"bigint"==typeof e?{type:"bigint",value:e.toString()}:e))}const u={stallTimeout:400,priority:1,weight:1},h={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(t){if(null==t)return"null";if(Array.isArray(t))return"["+t.map(d).join(",")+"]";if("object"==typeof t&&"function"==typeof t.toJSON)return d(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map((e=>`${JSON.stringify(e)}:${d(t[e])}`)).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function f(t){if("error"in t){const e=t.error;return{tag:d(e),value:e}}const e=t.result;return{tag:d(e),value:e}}function p(t,e){const r=new Map;for(const{value:t,tag:n,weight:i}of e){const e=r.get(n)||{value:t,weight:0};e.weight+=i,r.set(n,e)}let n=null;for(const e of r.values())e.weight>=t&&(!n||e.weight>n.weight)&&(n=e);if(n)return n.value}function m(t,e){let r=0;const n=new Map;let i=null;const s=[];for(const{value:t,tag:o,weight:a}of e)if(t instanceof Error){const e=n.get(o)||{value:t,weight:0};e.weight+=a,n.set(o,e),(null==i||e.weight>i.weight)&&(i=e)}else s.push(BigInt(t)),r+=a;if(r=t?i.value:void 0;s.sort(((t,e)=>tt?1:0));const c=Math.floor(s.length/2);return s.length%2?s[c]:(s[c-1]+s[c]+o)/a}function g(t,e){const r=p(t,e);if(void 0!==r)return r;for(const t of e)if(t.value)return t.value}class y extends i.AbstractProvider{quorum;eventQuorum;eventWorkers;#it;#st;#ot;constructor(t,e,r){super(e,r),this.#it=t.map((t=>t instanceof i.AbstractProvider?Object.assign({provider:t},u,h):Object.assign({},u,t,h))),this.#st=-2,this.#ot=null,r&&null!=r.quorum?this.quorum=r.quorum:this.quorum=Math.ceil(this.#it.reduce(((t,e)=>t+e.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,n.assertArgument)(this.quorum<=this.#it.reduce(((t,e)=>t+e.weight),0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return this.#it.map((t=>{const e=Object.assign({},t);for(const t in e)"_"===t[0]&&delete e[t];return e}))}async _detectNetwork(){return s.Network.from((0,n.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(t,e){switch(e.method){case"broadcastTransaction":return await t.broadcastTransaction(e.signedTransaction);case"call":return await t.call(Object.assign({},e.transaction,{blockTag:e.blockTag}));case"chainId":return(await t.getNetwork()).chainId;case"estimateGas":return await t.estimateGas(e.transaction);case"getBalance":return await t.getBalance(e.address,e.blockTag);case"getBlock":{const r="blockHash"in e?e.blockHash:e.blockTag;return await t.getBlock(r,e.includeTransactions)}case"getBlockNumber":return await t.getBlockNumber();case"getCode":return await t.getCode(e.address,e.blockTag);case"getGasPrice":return(await t.getFeeData()).gasPrice;case"getPriorityFee":return(await t.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await t.getLogs(e.filter);case"getStorage":return await t.getStorage(e.address,e.position,e.blockTag);case"getTransaction":return await t.getTransaction(e.hash);case"getTransactionCount":return await t.getTransactionCount(e.address,e.blockTag);case"getTransactionReceipt":return await t.getTransactionReceipt(e.hash);case"getTransactionResult":return await t.getTransactionResult(e.hash)}}#at(t){const e=Array.from(t).map((t=>t.config)),r=this.#it.slice();!function(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}(r),r.sort(((t,e)=>t.priority-e.priority));for(const t of r)if(!t._lastFatalError&&-1===e.indexOf(t))return t;return null}#ct(t,e){const r=this.#at(t);if(null==r)return null;const n={config:r,result:null,didBump:!1,perform:null,staller:null},i=c();return n.perform=(async()=>{try{r.requests++;const t=await this._translatePerform(r.provider,e);n.result={result:t}}catch(t){r.errorResponses++,n.result={error:t}}const t=c()-i;r._totalTime+=t,r.rollingDuration=.95*r.rollingDuration+.05*t,n.perform=null})(),n.staller=(async()=>{var t;await(t=r.stallTimeout,new Promise((e=>{setTimeout(e,t)}))),n.staller=null})(),t.add(n),n}async#lt(){let t=this.#ot;if(!t){const e=[];this.#it.forEach((t=>{e.push((async()=>{await async function(t,e){for(;(t.blockNumber<0||t.blockNumber<0)&&(t._updateNumber||(t._updateNumber=(async()=>{try{const e=await t.provider.getBlockNumber();e>t.blockNumber&&(t.blockNumber=e)}catch(e){t.blockNumber=-2,t._lastFatalError=e,t._lastFatalErrorTimestamp=c()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}(t),t._lastFatalError||(t._network=await t.provider.getNetwork())})())})),this.#ot=t=(async()=>{await Promise.all(e);let t=null;for(const e of this.#it){if(e._lastFatalError)continue;const r=e._network;null==t?t=r.chainId:r.chainId!==t&&(0,n.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await t}async#ut(t,e){const r=[];for(const e of t)if(null!=e.result){const{tag:t,value:n}=f(e.result);r.push({tag:t,value:n,weight:e.config.weight})}if(!(r.reduce(((t,e)=>t+e.weight),0)!t._lastFatalError)).map((t=>({value:t.blockNumber,tag:(0,n.getNumber)(t.blockNumber).toString(),weight:t.weight})))))));const t=function(t,e){if(1===t)return(0,n.getNumber)(m(t,e),"%internal");const r=new Map,i=(t,e)=>{const n=r.get(t)||{result:t,weight:0};n.weight+=e,r.set(t,n)};for(const{weight:t,value:r}of e){const e=(0,n.getNumber)(r);i(e-1,t),i(e,t),i(e+1,t)}let s,o=0;for(const{weight:e,result:n}of r.values())e>=t&&(e>o||null!=s&&e===o&&n>s)&&(o=e,s=n);return s}(this.quorum,r);if(void 0===t)return;return t>this.#st&&(this.#st=t),this.#st}case"getGasPrice":case"getPriorityFee":case"estimateGas":return m(this.quorum,r);case"getBlock":return"blockTag"in e&&"pending"===e.blockTag?g(this.quorum,r):p(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return p(this.quorum,r);case"broadcastTransaction":return g(this.quorum,r)}(0,n.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${l(e.method)})`})}}async#ht(t,e){if(0===t.size)throw new Error("no runners?!");const r=[];let i=0;for(const e of t)e.perform&&r.push(e.perform),e.staller?r.push(e.staller):e.didBump||(e.didBump=!0,i++);const s=await this.#ut(t,e);if(void 0!==s){if(s instanceof Error)throw s;return s}for(let r=0;r0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:Array.from(t).map((t=>l(t.result)))}}),await Promise.race(r),await this.#ht(t,e)}async _perform(t){if("broadcastTransaction"===t.method){const e=this.#it.map((t=>null)),r=this.#it.map((async({provider:r,weight:n},i)=>{try{const s=await r._perform(t);e[i]=Object.assign(f({result:s}),{weight:n})}catch(t){e[i]=Object.assign(f({error:t}),{weight:n})}}));for(;;){const t=e.filter((t=>null!=t));for(const{value:e}of t)if(!(e instanceof Error))return e;const i=p(this.quorum,e.filter((t=>null!=t)));if((0,n.isError)(i,"INSUFFICIENT_FUNDS"))throw i;const s=r.filter(((t,r)=>null==e[r]));if(0===s.length)break;await Promise.race(s)}const i=g(this.quorum,e);if((0,n.assert)(void 0!==i,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:e.map(l)}}),i instanceof Error)throw i;return i}await this.#lt();const e=new Set;let r=0;for(;;){const n=this.#ct(e,t);if(null==n)break;if(r+=n.config.weight,r>=this.quorum)break}const i=await this.#ht(e,t);for(const t of e)t.perform&&null==t.result&&t.config.lateResponses++;return i}async destroy(){for(const{provider:t}of this.#it)t.destroy();super.destroy()}}e.FallbackProvider=y},5012:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InfuraProvider=e.InfuraWebSocketProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a=r(2196),c="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{projectId;projectSecret;constructor(t,e){const r=new u(t,e),i=r._getConnection();(0,n.assert)(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"}),super(i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),t),(0,n.defineProperties)(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===c}}e.InfuraWebSocketProvider=l;class u extends o.JsonRpcProvider{projectId;projectSecret;constructor(t,e,r){null==t&&(t="mainnet");const i=s.Network.from(t);null==e&&(e=c),null==r&&(r=null),super(u.getRequest(i,e,r),i,{staticNetwork:i}),(0,n.defineProperties)(this,{projectId:e,projectSecret:r})}_getProvider(t){try{return new u(t,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(t)}isCommunityResource(){return this.projectId===c}static getWebSocketProvider(t,e){return new l(t,e)}static getRequest(t,e,r){null==e&&(e=c),null==r&&(r=null);const s=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v3/${e}`);return s.allowGzip=!0,r&&s.setCredentials("",r),e===c&&(s.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("InfuraProvider"),!0)),s}}e.InfuraProvider=u},8306:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IpcSocketProvider=void 0,e.IpcSocketProvider=void 0},2013:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonRpcProvider=e.JsonRpcApiPollingProvider=e.JsonRpcApiProvider=e.JsonRpcSigner=void 0;const n=r(3707),i=r(5475),s=r(8336),o=r(2290),a=r(2120),c=r(5142),l=r(5649),u=r(4837),h=r(1570),d=r(3292),f="bigint,boolean,function,number,string,symbol".split(/,/g);function p(t){if(null==t||f.indexOf(typeof t)>=0)return t;if("function"==typeof t.getAddress)return t;if(Array.isArray(t))return t.map(p);if("object"==typeof t)return Object.keys(t).reduce(((e,r)=>(e[r]=t[r],e)),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function m(t){return new Promise((e=>{setTimeout(e,t)}))}function g(t){return t?t.toLowerCase():t}function y(t){return t&&"number"==typeof t.pollingInterval}const w={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class b extends l.AbstractSigner{address;constructor(t,e){super(t),e=(0,i.getAddress)(e),(0,a.defineProperties)(this,{address:e})}connect(t){(0,a.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(t){return await this.populateCall(t)}async sendUncheckedTransaction(t){const e=p(t),r=[];if(e.from){const n=e.from;r.push((async()=>{const r=await(0,i.resolveAddress)(n,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),e.from=r})())}else e.from=this.address;if(null==e.gasLimit&&r.push((async()=>{e.gasLimit=await this.provider.estimateGas({...e,from:this.address})})()),null!=e.to){const t=e.to;r.push((async()=>{e.to=await(0,i.resolveAddress)(t,this.provider)})())}r.length&&await Promise.all(r);const n=this.provider.getRpcTransaction(e);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(t){const e=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(t);return await new Promise(((t,n)=>{const i=[1e3,100];let s=0;const o=async()=>{try{const n=await this.provider.getTransaction(r);if(null!=n)return void t(n.replaceableTransaction(e))}catch(t){if((0,a.isError)(t,"CANCELLED")||(0,a.isError)(t,"BAD_DATA")||(0,a.isError)(t,"NETWORK_ERROR"))return null==t.info&&(t.info={}),t.info.sendTransactionHash=r,void n(t);if((0,a.isError)(t,"INVALID_ARGUMENT")&&(s++,null==t.info&&(t.info={}),t.info.sendTransactionHash=r,s>10))return void n(t);this.provider.emit("error",(0,a.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:t}))}this.provider._setTimeout((()=>{o()}),i.pop()||4e3)};o()}))}async signTransaction(t){const e=p(t);if(e.from){const r=await(0,i.resolveAddress)(e.from,this.provider);(0,a.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",t),e.from=r}else e.from=this.address;const r=this.provider.getRpcTransaction(e);return await this.provider.send("eth_signTransaction",[r])}async signMessage(t){const e="string"==typeof t?(0,a.toUtf8Bytes)(t):t;return await this.provider.send("personal_sign",[(0,a.hexlify)(e),this.address.toLowerCase()])}async signTypedData(t,e,r){const n=p(r),o=await s.TypedDataEncoder.resolveNames(t,e,n,(async t=>{const e=await(0,i.resolveAddress)(t);return(0,a.assertArgument)(null!=e,"TypedData does not support null address","value",t),e}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(s.TypedDataEncoder.getPayload(o.domain,e,o.value))])}async unlock(t){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),t,null])}async _legacySignMessage(t){const e="string"==typeof t?(0,a.toUtf8Bytes)(t):t;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,a.hexlify)(e)])}}e.JsonRpcSigner=b;class v extends c.AbstractProvider{#g;#dt;#ft;#pt;#mt;#gt;#yt;#wt(){if(this.#pt)return;const t=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#pt=setTimeout((()=>{this.#pt=null;const t=this.#ft;for(this.#ft=[];t.length;){const e=[t.shift()];for(;t.length&&e.length!==this.#g.batchMaxCount;)if(e.push(t.shift()),JSON.stringify(e.map((t=>t.payload))).length>this.#g.batchMaxSize){t.unshift(e.pop());break}(async()=>{const t=1===e.length?e[0].payload:e.map((t=>t.payload));this.emit("debug",{action:"sendRpcPayload",payload:t});try{const r=await this._send(t);this.emit("debug",{action:"receiveRpcResult",result:r});for(const{resolve:t,reject:n,payload:i}of e){if(this.destroyed){n((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:i.method}));continue}const e=r.filter((t=>t.id===i.id))[0];if(null!=e)"error"in e?n(this.getRpcError(i,e)):t(e.result);else{const t=(0,a.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:i}});this.emit("error",t),n(t)}}}catch(t){this.emit("debug",{action:"receiveRpcError",error:t});for(const{reject:r}of e)r(t)}})()}}),t)}constructor(t,e){super(t,e),this.#dt=1,this.#g=Object.assign({},w,e||{}),this.#ft=[],this.#pt=null,this.#gt=null,this.#yt=null;{let t=null;const e=new Promise((e=>{t=e}));this.#mt={promise:e,resolve:t}}const r=this._getOption("staticNetwork");"boolean"==typeof r?((0,a.assertArgument)(!r||"any"!==t,"staticNetwork cannot be used on special network 'any'","options",e),r&&null!=t&&(this.#gt=u.Network.from(t))):r&&((0,a.assertArgument)(null==t||r.matches(t),"staticNetwork MUST match network object","options",e),this.#gt=r)}_getOption(t){return this.#g[t]}get _network(){return(0,a.assert)(this.#gt,"network is not available yet","NETWORK_ERROR"),this.#gt}async _perform(t){if("call"===t.method||"estimateGas"===t.method){let e=t.transaction;if(e&&null!=e.type&&(0,a.getBigInt)(e.type)&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(t=Object.assign({},t,{transaction:Object.assign({},e,{type:void 0})}))}}const e=this.getRpcRequest(t);return null!=e?await this.send(e.method,e.args):super._perform(t)}async _detectNetwork(){const t=this._getOption("staticNetwork");if(t){if(!0!==t)return t;if(this.#gt)return this.#gt}return this.#yt?await this.#yt:this.ready?(this.#yt=(async()=>{try{const t=u.Network.from((0,a.getBigInt)(await this.send("eth_chainId",[])));return this.#yt=null,t}catch(t){throw this.#yt=null,t}})(),await this.#yt):(this.#yt=(async()=>{const t={id:this.#dt++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let e;this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#yt=null}catch(t){throw this.#yt=null,this.emit("debug",{action:"receiveRpcError",error:t}),t}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return u.Network.from((0,a.getBigInt)(e.result));throw this.getRpcError(t,e)})(),await this.#yt)}_start(){null!=this.#mt&&null!=this.#mt.resolve&&(this.#mt.resolve(),this.#mt=null,(async()=>{for(;null==this.#gt&&!this.destroyed;)try{this.#gt=await this._detectNetwork()}catch(t){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,a.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:t}})),await m(1e3)}this.#wt()})())}async _waitUntilReady(){if(null!=this.#mt)return await this.#mt.promise}_getSubscriber(t){return"pending"===t.type?new h.FilterIdPendingSubscriber(this):"event"===t.type?this._getOption("polling")?new d.PollingEventSubscriber(this,t.filter):new h.FilterIdEventSubscriber(this,t.filter):"orphan"===t.type&&"drop-log"===t.filter.orphan?new c.UnmanagedSubscriber("orphan"):super._getSubscriber(t)}get ready(){return null==this.#mt}getRpcTransaction(t){const e={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((r=>{if(null==t[r])return;let n=r;"gasLimit"===r&&(n="gas"),e[n]=(0,a.toQuantity)((0,a.getBigInt)(t[r],`tx.${r}`))})),["from","to","data"].forEach((r=>{null!=t[r]&&(e[r]=(0,a.hexlify)(t[r]))})),t.accessList&&(e.accessList=(0,o.accessListify)(t.accessList)),e}getRpcRequest(t){switch(t.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[g(t.address),t.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(t.address),t.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(t.address),t.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(t.address),"0x"+t.position.toString(16),t.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[t.signedTransaction]};case"getBlock":if("blockTag"in t)return{method:"eth_getBlockByNumber",args:[t.blockTag,!!t.includeTransactions]};if("blockHash"in t)return{method:"eth_getBlockByHash",args:[t.blockHash,!!t.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[t.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[t.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(t.transaction),t.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(t.transaction)]};case"getLogs":return t.filter&&null!=t.filter.address&&(Array.isArray(t.filter.address)?t.filter.address=t.filter.address.map(g):t.filter.address=g(t.filter.address)),{method:"eth_getLogs",args:[t.filter]}}return null}getRpcError(t,e){const{method:r}=t,{error:i}=e;if("eth_estimateGas"===r&&i.message){const e=i.message;if(!e.match(/revert/i)&&e.match(/insufficient funds/i))return(0,a.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:t.params[0],info:{payload:t,error:i}})}if("eth_call"===r||"eth_estimateGas"===r){const e=E(i),s=n.AbiCoder.getBuiltinCallException("eth_call"===r?"call":"estimateGas",t.params[0],e?e.data:null);return s.info={error:i,payload:t},s}const s=JSON.stringify(function(t){const e=[];return x(t,e),e}(i));if("string"==typeof i.message&&i.message.match(/user denied|ethers-user-denied/i)){const e={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,a.makeError)("user rejected action","ACTION_REJECTED",{action:e[r]||"unknown",reason:"rejected",info:{payload:t,error:i}})}if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){const e=t.params[0];if(s.match(/insufficient funds|base fee exceeds gas limit/i))return(0,a.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:e,info:{error:i}});if(s.match(/nonce/i)&&s.match(/too low/i))return(0,a.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:e,info:{error:i}});if(s.match(/replacement transaction/i)&&s.match(/underpriced/i))return(0,a.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:e,info:{error:i}});if(s.match(/only replay-protected/i))return(0,a.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:e,info:{error:i}}})}let o=!!s.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?(0,a.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:t.method,info:{error:i,payload:t}}):(0,a.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:t})}send(t,e){if(this.destroyed)return Promise.reject((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t}));const r=this.#dt++,n=new Promise(((n,i)=>{this.#ft.push({resolve:n,reject:i,payload:{method:t,params:e,id:r,jsonrpc:"2.0"}})}));return this.#wt(),n}async getSigner(t){null==t&&(t=0);const e=this.send("eth_accounts",[]);if("number"==typeof t){const r=await e;if(t>=r.length)throw new Error("no such account");return new b(this,r[t])}const{accounts:r}=await(0,a.resolveProperties)({network:this.getNetwork(),accounts:e});t=(0,i.getAddress)(t);for(const e of r)if((0,i.getAddress)(e)===t)return new b(this,t);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((t=>new b(this,t)))}destroy(){this.#pt&&(clearTimeout(this.#pt),this.#pt=null);for(const{payload:t,reject:e}of this.#ft)e((0,a.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:t.method}));this.#ft=[],super.destroy()}}e.JsonRpcApiProvider=v;class A extends v{#bt;constructor(t,e){super(t,e),this.#bt=4e3}_getSubscriber(t){const e=super._getSubscriber(t);return y(e)&&(e.pollingInterval=this.#bt),e}get pollingInterval(){return this.#bt}set pollingInterval(t){if(!Number.isInteger(t)||t<0)throw new Error("invalid interval");this.#bt=t,this._forEachSubscriber((t=>{y(t)&&(t.pollingInterval=this.#bt)}))}}function E(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,a.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(const e in t){const r=E(t[e]);if(r)return r}return null}if("string"==typeof t)try{return E(JSON.parse(t))}catch(t){}return null}function x(t,e){if(null!=t){if("string"==typeof t.message&&e.push(t.message),"object"==typeof t)for(const r in t)x(t[r],e);if("string"==typeof t)try{return x(JSON.parse(t),e)}catch(t){}}}e.JsonRpcApiPollingProvider=A,e.JsonRpcProvider=class extends A{#vt;constructor(t,e,r){null==t&&(t="http://localhost:8545"),super(e,r),this.#vt="string"==typeof t?new a.FetchRequest(t):t.clone()}_getConnection(){return this.#vt.clone()}async send(t,e){return await this._start(),await super.send(t,e)}async _send(t){const e=this._getConnection();e.body=JSON.stringify(t),e.setHeader("content-type","application/json");const r=await e.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}},2751:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PocketProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="62e1ad51b37b8e00394bda3b";class c extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(t,e,r){null==t&&(t="mainnet");const i=s.Network.from(t);null==e&&(e=a),null==r&&(r=null);const o={staticNetwork:i};super(c.getRequest(i,e,r),i,o),(0,n.defineProperties)(this,{applicationId:e,applicationSecret:r})}_getProvider(t){try{return new c(t,this.applicationId,this.applicationSecret)}catch(t){}return super._getProvider(t)}static getRequest(t,e,r){null==e&&(e=a);const s=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/v1/lb/${e}`);return s.allowGzip=!0,r&&s.setCredentials("",r),e===a&&(s.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("PocketProvider"),!0)),s}isCommunityResource(){return this.applicationId===a}}e.PocketProvider=c},1333:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickNodeProvider=void 0;const n=r(2120),i=r(2813),s=r(4837),o=r(2013),a="919b412a057b5e9c9b6dce193c5a60242d6efadb";class c extends o.JsonRpcProvider{token;constructor(t,e){null==t&&(t="mainnet");const r=s.Network.from(t);null==e&&(e=a),super(c.getRequest(r,e),r,{staticNetwork:r}),(0,n.defineProperties)(this,{token:e})}_getProvider(t){try{return new c(t,this.token)}catch(t){}return super._getProvider(t)}isCommunityResource(){return this.token===a}static getRequest(t,e){null==e&&(e=a);const r=new n.FetchRequest(`https://${function(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro"}(0,n.assertArgument)(!1,"unsupported network","network",t)}(t.name)}/${e}`);return r.allowGzip=!0,e===a&&(r.retryFunc=async(t,e,r)=>((0,i.showThrottleMessage)("QuickNodeProvider"),!0)),r}}e.QuickNodeProvider=c},2394:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SocketProvider=e.SocketEventSubscriber=e.SocketPendingSubscriber=e.SocketBlockSubscriber=e.SocketSubscriber=void 0;const n=r(5142),i=r(2120),s=r(2013);class o{#At;#y;get filter(){return JSON.parse(this.#y)}#Et;#xt;#_t;constructor(t,e){this.#At=t,this.#y=JSON.stringify(e),this.#Et=null,this.#xt=null,this.#_t=null}start(){this.#Et=this.#At.send("eth_subscribe",this.filter).then((t=>(this.#At._register(t,this),t)))}stop(){this.#Et.then((t=>{this.#At.send("eth_unsubscribe",[t])})),this.#Et=null}pause(t){(0,i.assert)(t,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#xt=!!t}resume(){this.#xt=null}_handleMessage(t){if(null!=this.#Et&&null===this.#xt){let e=this.#_t;e=null==e?this._emit(this.#At,t):e.then((async()=>{await this._emit(this.#At,t)})),this.#_t=e.then((()=>{this.#_t===e&&(this.#_t=null)}))}}async _emit(t,e){throw new Error("sub-classes must implemente this; _emit")}}e.SocketSubscriber=o;class a extends o{constructor(t){super(t,["newHeads"])}async _emit(t,e){t.emit("block",parseInt(e.number))}}e.SocketBlockSubscriber=a;class c extends o{constructor(t){super(t,["newPendingTransactions"])}async _emit(t,e){t.emit("pending",e)}}e.SocketPendingSubscriber=c;class l extends o{#St;get logFilter(){return JSON.parse(this.#St)}constructor(t,e){super(t,["logs",e]),this.#St=JSON.stringify(e)}async _emit(t,e){t.emit(this.logFilter,t._wrapLog(e,t._network))}}e.SocketEventSubscriber=l;class u extends s.JsonRpcApiProvider{#Mt;#k;#Ct;constructor(t,e){const r=Object.assign({},null!=e?e:{});(0,i.assertArgument)(null==r.batchMaxCount||1===r.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",e),r.batchMaxCount=1,null==r.staticNetwork&&(r.staticNetwork=!0),super(t,r),this.#Mt=new Map,this.#k=new Map,this.#Ct=new Map}_getSubscriber(t){switch(t.type){case"close":return new n.UnmanagedSubscriber("close");case"block":return new a(this);case"pending":return new c(this);case"event":return new l(this,t.filter);case"orphan":if("drop-log"===t.filter.orphan)return new n.UnmanagedSubscriber("drop-log")}return super._getSubscriber(t)}_register(t,e){this.#k.set(t,e);const r=this.#Ct.get(t);if(r){for(const t of r)e._handleMessage(t);this.#Ct.delete(t)}}async _send(t){(0,i.assertArgument)(!Array.isArray(t),"WebSocket does not support batch send","payload",t);const e=new Promise(((e,r)=>{this.#Mt.set(t.id,{payload:t,resolve:e,reject:r})}));return await this._waitUntilReady(),await this._write(JSON.stringify(t)),[await e]}async _processMessage(t){const e=JSON.parse(t);if(e&&"object"==typeof e&&"id"in e){const t=this.#Mt.get(e.id);if(null==t)return void this.emit("error",(0,i.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:e}));this.#Mt.delete(e.id),t.resolve(e)}else{if(!e||"eth_subscription"!==e.method)return void this.emit("error",(0,i.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:e}));{const t=e.params.subscription,r=this.#k.get(t);if(r)r._handleMessage(e.params.result);else{let r=this.#Ct.get(t);null==r&&(r=[],this.#Ct.set(t,r)),r.push(e.params.result)}}}}async _write(t){throw new Error("sub-classes must override this")}}e.SocketProvider=u},2196:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebSocketProvider=void 0;const n=r(9817),i=r(2394);class s extends i.SocketProvider{#vt;#kt;get websocket(){if(null==this.#kt)throw new Error("websocket closed");return this.#kt}constructor(t,e,r){super(e,r),"string"==typeof t?(this.#vt=()=>new n.WebSocket(t),this.#kt=this.#vt()):"function"==typeof t?(this.#vt=t,this.#kt=t()):(this.#vt=null,this.#kt=t),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(t){console.log("failed to start WebsocketProvider",t)}},this.websocket.onmessage=t=>{this._processMessage(t.data)}}async _write(t){this.websocket.send(t)}async destroy(){null!=this.#kt&&(this.#kt.close(),this.#kt=null),super.destroy()}}e.WebSocketProvider=s},7143:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionResponse=e.TransactionReceipt=e.Log=e.Block=e.copyRequest=e.FeeData=void 0;const n=r(2120),i=r(2290),s=BigInt(0);function o(t){return null==t?null:t}function a(t){return null==t?null:t.toString()}e.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(t,e,r){(0,n.defineProperties)(this,{gasPrice:o(t),maxFeePerGas:o(e),maxPriorityFeePerGas:o(r)})}toJSON(){const{gasPrice:t,maxFeePerGas:e,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:a(t),maxFeePerGas:a(e),maxPriorityFeePerGas:a(r)}}},e.copyRequest=function(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=(0,n.hexlify)(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const i of r)i in t&&null!=t[i]&&(e[i]=(0,n.getBigInt)(t[i],`request.${i}`));const s="type,nonce".split(/,/);for(const r of s)r in t&&null!=t[r]&&(e[r]=(0,n.getNumber)(t[r],`request.${r}`));return t.accessList&&(e.accessList=(0,i.accessListify)(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e};class c{provider;number;hash;timestamp;parentHash;nonce;difficulty;gasLimit;gasUsed;miner;extraData;baseFeePerGas;#It;constructor(t,e){this.#It=t.transactions.map((t=>"string"!=typeof t?new h(t,e):t)),(0,n.defineProperties)(this,{provider:e,hash:o(t.hash),number:t.number,timestamp:t.timestamp,parentHash:t.parentHash,nonce:t.nonce,difficulty:t.difficulty,gasLimit:t.gasLimit,gasUsed:t.gasUsed,miner:t.miner,extraData:t.extraData,baseFeePerGas:o(t.baseFeePerGas)})}get transactions(){return this.#It.map((t=>"string"==typeof t?t:t.hash))}get prefetchedTransactions(){const t=this.#It.slice();return 0===t.length?[]:((0,n.assert)("object"==typeof t[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),t)}toJSON(){const{baseFeePerGas:t,difficulty:e,extraData:r,gasLimit:n,gasUsed:i,hash:s,miner:o,nonce:c,number:l,parentHash:u,timestamp:h,transactions:d}=this;return{_type:"Block",baseFeePerGas:a(t),difficulty:a(e),extraData:r,gasLimit:a(n),gasUsed:a(i),hash:s,miner:o,nonce:c,number:l,parentHash:u,timestamp:h,transactions:d}}[Symbol.iterator](){let t=0;const e=this.transactions;return{next:()=>tnew l(t,e))));let r=s;null!=t.effectiveGasPrice?r=t.effectiveGasPrice:null!=t.gasPrice&&(r=t.gasPrice),(0,n.defineProperties)(this,{provider:e,to:t.to,from:t.from,contractAddress:t.contractAddress,hash:t.hash,index:t.index,blockHash:t.blockHash,blockNumber:t.blockNumber,logsBloom:t.logsBloom,gasUsed:t.gasUsed,cumulativeGasUsed:t.cumulativeGasUsed,gasPrice:r,type:t.type,status:t.status,root:t.root})}get logs(){return this.#Pt}toJSON(){const{to:t,from:e,contractAddress:r,hash:n,index:i,blockHash:s,blockNumber:o,logsBloom:c,logs:l,status:u,root:h}=this;return{_type:"TransactionReceipt",blockHash:s,blockNumber:o,contractAddress:r,cumulativeGasUsed:a(this.cumulativeGasUsed),from:e,gasPrice:a(this.gasPrice),gasUsed:a(this.gasUsed),hash:n,index:i,logs:l,logsBloom:c,root:h,status:u,to:t}}get length(){return this.logs.length}[Symbol.iterator](){let t=0;return{next:()=>t{if(c)return null;const{blockNumber:t,nonce:e}=await(0,n.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(e{if(null==t||0!==t.status)return t;(0,n.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:t.to,from:t.from,data:""},receipt:t})},h=await this.provider.getTransactionReceipt(this.hash);if(0===r)return u(h);if(h){if(await h.confirmations()>=r)return u(h)}else if(await l(),0===r)return null;const d=new Promise(((t,e)=>{const s=[],a=()=>{s.forEach((t=>t()))};if(s.push((()=>{c=!0})),i>0){const t=setTimeout((()=>{a(),e((0,n.makeError)("wait for transaction timeout","TIMEOUT"))}),i);s.push((()=>{clearTimeout(t)}))}const h=async n=>{if(await n.confirmations()>=r){a();try{t(u(n))}catch(t){e(t)}}};if(s.push((()=>{this.provider.off(this.hash,h)})),this.provider.on(this.hash,h),o>=0){const t=async()=>{try{await l()}catch(t){if((0,n.isError)(t,"TRANSACTION_REPLACED"))return a(),void e(t)}c||this.provider.once("block",t)};s.push((()=>{this.provider.off("block",t)})),this.provider.once("block",t)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}removedEvent(){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),f(this)}reorderedEvent(t){return(0,n.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,n.assert)(!t||t.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,t)}replaceableTransaction(t){(0,n.assertArgument)(Number.isInteger(t)&&t>=0,"invalid startBlock","startBlock",t);const e=new h(this,this.provider);return e.#Ot=t,e}}function d(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function f(t){return{orphan:"drop-transaction",tx:t}}e.TransactionResponse=h},2992:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonceManager=void 0;const n=r(2120),i=r(5649);class s extends i.AbstractSigner{signer;#Nt;#Tt;constructor(t){super(t.provider),(0,n.defineProperties)(this,{signer:t}),this.#Nt=null,this.#Tt=0}async getAddress(){return this.signer.getAddress()}connect(t){return new s(this.signer.connect(t))}async getNonce(t){if("pending"===t){null==this.#Nt&&(this.#Nt=super.getNonce("pending"));const t=this.#Tt;return await this.#Nt+t}return super.getNonce(t)}increment(){this.#Tt++}reset(){this.#Tt=0,this.#Nt=null}async sendTransaction(t){const e=this.getNonce("pending");return this.increment(),(t=await this.signer.populateTransaction(t)).nonce=await e,await this.signer.sendTransaction(t)}signTransaction(t){return this.signer.signTransaction(t)}signMessage(t){return this.signer.signMessage(t)}signTypedData(t,e,r){return this.signer.signTypedData(t,e,r)}}e.NonceManager=s},1570:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FilterIdPendingSubscriber=e.FilterIdEventSubscriber=e.FilterIdSubscriber=void 0;const n=r(2120),i=r(3292);class s{#At;#Rt;#Bt;#Lt;#gt;#Ut;constructor(t){this.#At=t,this.#Rt=null,this.#Bt=this.#jt.bind(this),this.#Lt=!1,this.#gt=null,this.#Ut=!1}_subscribe(t){throw new Error("subclasses must override this")}_emitResults(t,e){throw new Error("subclasses must override this")}_recover(t){throw new Error("subclasses must override this")}async#jt(t){try{null==this.#Rt&&(this.#Rt=this._subscribe(this.#At));let t=null;try{t=await this.#Rt}catch(t){if(!(0,n.isError)(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==t)return this.#Rt=null,void this.#At._recoverSubscriber(this,this._recover(this.#At));const e=await this.#At.getNetwork();if(this.#gt||(this.#gt=e),this.#gt.chainId!==e.chainId)throw new Error("chaid changed");if(this.#Ut)return;const r=await this.#At.send("eth_getFilterChanges",[t]);await this._emitResults(this.#At,r)}catch(t){console.log("@TODO",t)}this.#At.once("block",this.#Bt)}#Dt(){const t=this.#Rt;t&&(this.#Rt=null,t.then((t=>{this.#At.send("eth_uninstallFilter",[t])})))}start(){this.#Lt||(this.#Lt=!0,this.#jt(-2))}stop(){this.#Lt&&(this.#Lt=!1,this.#Ut=!0,this.#Dt(),this.#At.off("block",this.#Bt))}pause(t){t&&this.#Dt(),this.#At.off("block",this.#Bt)}resume(){this.start()}}e.FilterIdSubscriber=s,e.FilterIdEventSubscriber=class extends s{#Ft;constructor(t,e){var r;super(t),this.#Ft=(r=e,JSON.parse(JSON.stringify(r)))}_recover(t){return new i.PollingEventSubscriber(t,this.#Ft)}async _subscribe(t){return await t.send("eth_newFilter",[this.#Ft])}async _emitResults(t,e){for(const r of e)t.emit(this.#Ft,t._wrapLog(r,t._network))}},e.FilterIdPendingSubscriber=class extends s{async _subscribe(t){return await t.send("eth_newPendingTransactionFilter",[])}async _emitResults(t,e){for(const r of e)t.emit("pending",r)}}},3292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PollingEventSubscriber=e.PollingTransactionSubscriber=e.PollingOrphanSubscriber=e.PollingBlockTagSubscriber=e.OnBlockSubscriber=e.PollingBlockSubscriber=e.getPollingSubscriber=void 0;const n=r(2120);function i(t){return JSON.parse(JSON.stringify(t))}e.getPollingSubscriber=function(t,e){return"block"===e?new s(t):(0,n.isHexString)(e,32)?new a(t,e):void(0,n.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:e}})};class s{#At;#Bt;#zt;#Ht;constructor(t){this.#At=t,this.#Bt=null,this.#zt=4e3,this.#Ht=-2}get pollingInterval(){return this.#zt}set pollingInterval(t){this.#zt=t}async#jt(){try{const t=await this.#At.getBlockNumber();if(-2===this.#Ht)return void(this.#Ht=t);if(t!==this.#Ht){for(let e=this.#Ht+1;e<=t;e++){if(null==this.#Bt)return;await this.#At.emit("block",e)}this.#Ht=t}}catch(t){}null!=this.#Bt&&(this.#Bt=this.#At._setTimeout(this.#jt.bind(this),this.#zt))}start(){this.#Bt||(this.#Bt=this.#At._setTimeout(this.#jt.bind(this),this.#zt),this.#jt())}stop(){this.#Bt&&(this.#At._clearTimeout(this.#Bt),this.#Bt=null)}pause(t){this.stop(),t&&(this.#Ht=-2)}resume(){this.start()}}e.PollingBlockSubscriber=s;class o{#At;#jt;#Lt;constructor(t){this.#At=t,this.#Lt=!1,this.#jt=t=>{this._poll(t,this.#At)}}async _poll(t,e){throw new Error("sub-classes must override this")}start(){this.#Lt||(this.#Lt=!0,this.#jt(-2),this.#At.on("block",this.#jt))}stop(){this.#Lt&&(this.#Lt=!1,this.#At.off("block",this.#jt))}pause(t){this.stop()}resume(){this.start()}}e.OnBlockSubscriber=o,e.PollingBlockTagSubscriber=class extends o{#$t;#qt;constructor(t,e){super(t),this.#$t=e,this.#qt=-2}pause(t){t&&(this.#qt=-2),super.pause(t)}async _poll(t,e){const r=await e.getBlock(this.#$t);null!=r&&(-2===this.#qt?this.#qt=r.number:r.number>this.#qt&&(e.emit(this.#$t,r.number),this.#qt=r.number))}},e.PollingOrphanSubscriber=class extends o{#y;constructor(t,e){super(t),this.#y=i(e)}async _poll(t,e){throw new Error("@TODO")}};class a extends o{#Wt;constructor(t,e){super(t),this.#Wt=e}async _poll(t,e){const r=await e.getTransactionReceipt(this.#Wt);r&&e.emit(this.#Wt,r)}}e.PollingTransactionSubscriber=a,e.PollingEventSubscriber=class{#At;#y;#Bt;#Lt;#Ht;constructor(t,e){this.#At=t,this.#y=i(e),this.#Bt=this.#jt.bind(this),this.#Lt=!1,this.#Ht=-2}async#jt(t){if(-2===this.#Ht)return;const e=i(this.#y);e.fromBlock=this.#Ht+1,e.toBlock=t;const r=await this.#At.getLogs(e);if(0!==r.length)for(const t of r)this.#At.emit(this.#y,t),this.#Ht=t.blockNumber;else this.#Ht{this.#Ht=t})),this.#At.on("block",this.#Bt))}stop(){this.#Lt&&(this.#Lt=!1,this.#At.off("block",this.#Bt))}pause(t){this.stop(),t&&(this.#Ht=-2)}resume(){this.start()}}},9817:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebSocket=void 0;const n=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw new Error("unable to locate global object")}().WebSocket;e.WebSocket=n},484:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.accessListify=void 0;const n=r(5475),i=r(2120);function s(t,e){return{address:(0,n.getAddress)(t),storageKeys:e.map(((t,e)=>((0,i.assertArgument)((0,i.isHexString)(t,32),"invalid slot",`storageKeys[${e}]`,t),t.toLowerCase())))}}e.accessListify=function(t){if(Array.isArray(t))return t.map(((e,r)=>Array.isArray(e)?((0,i.assertArgument)(2===e.length,"invalid slot set",`value[${r}]`,e),s(e[0],e[1])):((0,i.assertArgument)(null!=e&&"object"==typeof e,"invalid address-slot set","value",t),s(e.address,e.storageKeys))));(0,i.assertArgument)(null!=t&&"object"==typeof t,"invalid access list","value",t);const e=Object.keys(t).map((e=>{const r=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return s(e,Object.keys(r).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}},7782:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.recoverAddress=e.computeAddress=void 0;const n=r(5475),i=r(6965);function s(t){let e;return e="string"==typeof t?i.SigningKey.computePublicKey(t,!1):t.publicKey,(0,n.getAddress)((0,i.keccak256)("0x"+e.substring(4)).substring(26))}e.computeAddress=s,e.recoverAddress=function(t,e){return s(i.SigningKey.recoverPublicKey(t,e))}},2290:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transaction=e.recoverAddress=e.computeAddress=e.accessListify=void 0;var n=r(484);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return n.accessListify}});var i=r(7782);Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return i.computeAddress}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return i.recoverAddress}});var s=r(1541);Object.defineProperty(e,"Transaction",{enumerable:!0,get:function(){return s.Transaction}})},1541:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Transaction=void 0;const n=r(5475),i=r(6965),s=r(2120),o=r(484),a=r(7782),c=BigInt(0),l=BigInt(2),u=BigInt(27),h=BigInt(28),d=BigInt(35),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function p(t){return"0x"===t?null:(0,n.getAddress)(t)}function m(t,e){try{return(0,o.accessListify)(t)}catch(r){(0,s.assertArgument)(!1,r.message,e,t)}}function g(t,e){return"0x"===t?0:(0,s.getNumber)(t,e)}function y(t,e){if("0x"===t)return c;const r=(0,s.getBigInt)(t,e);return(0,s.assertArgument)(r<=f,"value exceeds uint size",e,r),r}function w(t,e){const r=(0,s.getBigInt)(t,"value"),n=(0,s.toBeArray)(r);return(0,s.assertArgument)(n.length<=32,"value too large",`tx.${e}`,r),n}function b(t){return(0,o.accessListify)(t).map((t=>[t.address,t.storageKeys]))}function v(t,e){const r=[w(t.nonce||0,"nonce"),w(t.gasPrice||0,"gasPrice"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x"];let o=c;if(t.chainId!=c)o=(0,s.getBigInt)(t.chainId,"tx.chainId"),(0,s.assertArgument)(!e||null==e.networkV||e.legacyChainId===o,"tx.chainId/sig.v mismatch","sig",e);else if(t.signature){const e=t.signature.legacyChainId;null!=e&&(o=e)}if(!e)return o!==c&&(r.push((0,s.toBeArray)(o)),r.push("0x"),r.push("0x")),(0,s.encodeRlp)(r);let a=BigInt(27+e.yParity);return o!==c?a=i.Signature.getChainIdV(o,e.v):BigInt(e.v)!==a&&(0,s.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",e),r.push((0,s.toBeArray)(a)),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s)),(0,s.encodeRlp)(r)}function A(t,e){let r;try{if(r=g(e[0],"yParity"),0!==r&&1!==r)throw new Error("bad yParity")}catch(t){(0,s.assertArgument)(!1,"invalid yParity","yParity",e[0])}const n=(0,s.zeroPadValue)(e[1],32),o=(0,s.zeroPadValue)(e[2],32),a=i.Signature.from({r:n,s:o,yParity:r});t.signature=a}function E(t,e){const r=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(t.maxFeePerGas||0,"maxFeePerGas"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",b(t.accessList||[])];return e&&(r.push(w(e.yParity,"yParity")),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s))),(0,s.concat)(["0x02",(0,s.encodeRlp)(r)])}function x(t,e){const r=[w(t.chainId||0,"chainId"),w(t.nonce||0,"nonce"),w(t.gasPrice||0,"gasPrice"),w(t.gasLimit||0,"gasLimit"),null!=t.to?(0,n.getAddress)(t.to):"0x",w(t.value||0,"value"),t.data||"0x",b(t.accessList||[])];return e&&(r.push(w(e.yParity,"recoveryParam")),r.push((0,s.toBeArray)(e.r)),r.push((0,s.toBeArray)(e.s))),(0,s.concat)(["0x01",(0,s.encodeRlp)(r)])}class _{#Vt;#Gt;#r;#Kt;#Zt;#Qt;#Jt;#Yt;#Xt;#Y;#te;#ee;get type(){return this.#Vt}set type(t){switch(t){case null:this.#Vt=null;break;case 0:case"legacy":this.#Vt=0;break;case 1:case"berlin":case"eip-2930":this.#Vt=1;break;case 2:case"london":case"eip-1559":this.#Vt=2;break;default:(0,s.assertArgument)(!1,"unsupported transaction type","type",t)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559"}return null}get to(){return this.#Gt}set to(t){this.#Gt=null==t?null:(0,n.getAddress)(t)}get nonce(){return this.#Kt}set nonce(t){this.#Kt=(0,s.getNumber)(t,"value")}get gasLimit(){return this.#Zt}set gasLimit(t){this.#Zt=(0,s.getBigInt)(t)}get gasPrice(){const t=this.#Qt;return null!=t||0!==this.type&&1!==this.type?t:c}set gasPrice(t){this.#Qt=null==t?null:(0,s.getBigInt)(t,"gasPrice")}get maxPriorityFeePerGas(){const t=this.#Jt;return null==t?2===this.type?c:null:t}set maxPriorityFeePerGas(t){this.#Jt=null==t?null:(0,s.getBigInt)(t,"maxPriorityFeePerGas")}get maxFeePerGas(){const t=this.#Yt;return null==t?2===this.type?c:null:t}set maxFeePerGas(t){this.#Yt=null==t?null:(0,s.getBigInt)(t,"maxFeePerGas")}get data(){return this.#r}set data(t){this.#r=(0,s.hexlify)(t)}get value(){return this.#Xt}set value(t){this.#Xt=(0,s.getBigInt)(t,"value")}get chainId(){return this.#Y}set chainId(t){this.#Y=(0,s.getBigInt)(t)}get signature(){return this.#te||null}set signature(t){this.#te=null==t?null:i.Signature.from(t)}get accessList(){const t=this.#ee||null;return null==t?1===this.type||2===this.type?[]:null:t}set accessList(t){this.#ee=null==t?null:(0,o.accessListify)(t)}constructor(){this.#Vt=null,this.#Gt=null,this.#Kt=0,this.#Zt=BigInt(0),this.#Qt=null,this.#Jt=null,this.#Yt=null,this.#r="0x",this.#Xt=BigInt(0),this.#Y=BigInt(0),this.#te=null,this.#ee=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.serialized)}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,a.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}get serialized(){switch((0,s.assert)(null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"}),this.inferType()){case 0:return v(this,this.signature);case 1:return x(this,this.signature);case 2:return E(this,this.signature)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get unsignedSerialized(){switch(this.inferType()){case 0:return v(this);case 1:return x(this);case 2:return E(this)}(0,s.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".unsignedSerialized"})}inferType(){return this.inferTypes().pop()}inferTypes(){const t=null!=this.gasPrice,e=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,s.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,s.assert)(!e||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,s.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const n=[];return null!=this.type?n.push(this.type):e?n.push(2):t?(n.push(1),r||n.push(0)):r?(n.push(1),n.push(2)):(n.push(0),n.push(1),n.push(2)),n.sort(),n}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}clone(){return _.from(this)}toJSON(){const t=t=>null==t?null:t.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:t(this.gasLimit),gasPrice:t(this.gasPrice),maxPriorityFeePerGas:t(this.maxPriorityFeePerGas),maxFeePerGas:t(this.maxFeePerGas),value:t(this.value),chainId:t(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(t){if(null==t)return new _;if("string"==typeof t){const e=(0,s.getBytes)(t);if(e[0]>=127)return _.from(function(t){const e=(0,s.decodeRlp)(t);(0,s.assertArgument)(Array.isArray(e)&&(9===e.length||6===e.length),"invalid field count for legacy transaction","data",t);const r={type:0,nonce:g(e[0],"nonce"),gasPrice:y(e[1],"gasPrice"),gasLimit:y(e[2],"gasLimit"),to:p(e[3]),value:y(e[4],"value"),data:(0,s.hexlify)(e[5]),chainId:c};if(6===e.length)return r;const n=y(e[6],"v"),o=y(e[7],"r"),a=y(e[8],"s");if(o===c&&a===c)r.chainId=n;else{let o=(n-d)/l;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBase58=e.encodeBase58=void 0;const n=r(6239),i=r(1766),s=r(358),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let a=null;function c(t){if(null==a){a={};for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=void 0;const n=r(6239);e.decodeBase64=function(t){t=atob(t);const e=new Uint8Array(t.length);for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zeroPadBytes=e.zeroPadValue=e.stripZerosLeft=e.dataSlice=e.dataLength=e.concat=e.hexlify=e.isBytesLike=e.isHexString=e.getBytesCopy=e.getBytes=void 0;const n=r(1766);function i(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if("string"==typeof t&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const e=new Uint8Array((t.length-2)/2);let r=2;for(let n=0;n>4]+a[15&n]}return r}function l(t,e,r){const i=s(t);(0,n.assert)(e>=i.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(i),length:e,offset:e+1});const o=new Uint8Array(e);return o.fill(0),r?o.set(i,e-i.length):o.set(i,0),c(o)}e.hexlify=c,e.concat=function(t){return"0x"+t.map((t=>c(t).substring(2))).join("")},e.dataLength=function(t){return o(t,!0)?(t.length-2)/2:s(t).length},e.dataSlice=function(t,e,r){const i=s(t);return null!=r&&r>i.length&&(0,n.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:i,length:i.length,offset:r}),c(i.slice(null==e?0:e,null==r?i.length:r))},e.stripZerosLeft=function(t){let e=c(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e},e.zeroPadValue=function(t,e){return l(t,e,!0)},e.zeroPadBytes=function(t,e){return l(t,e,!1)}},1766:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertPrivate=e.assertNormalize=e.assertArgumentCount=e.assertArgument=e.assert=e.makeError=e.isCallException=e.isError=void 0;const n=r(9406),i=r(9290);function s(t){if(null==t)return"null";if(Array.isArray(t))return"[ "+t.map(s).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[15&t[n]];return r}if("object"==typeof t&&"function"==typeof t.toJSON)return s(t.toJSON());switch(typeof t){case"boolean":case"symbol":case"number":return t.toString();case"bigint":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map((e=>`${s(e)}: ${s(t[e])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(t,e){return t&&t.code===e}function a(t,e,r){let o,a=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${s(r)}`);for(const t in r){if("shortMessage"===t)continue;const e=r[t];i.push(t+"="+s(e))}}i.push(`code=${e}`),i.push(`version=${n.version}`),i.length&&(t+=" ("+i.join(", ")+")")}switch(e){case"INVALID_ARGUMENT":o=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(t);break;default:o=new Error(t)}return(0,i.defineProperties)(o,{code:e}),r&&Object.assign(o,r),null==o.shortMessage&&(0,i.defineProperties)(o,{shortMessage:a}),o}function c(t,e,r,n){if(!t)throw a(e,r,n)}e.isError=o,e.isCallException=function(t){return o(t,"CALL_EXCEPTION")},e.makeError=a,e.assert=c,e.assertArgument=function(t,e,r,n){c(t,e,"INVALID_ARGUMENT",{argument:r,value:n})},e.assertArgumentCount=function(t,e,r){null==r&&(r=""),r&&(r=": "+r),c(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),c(t<=e,"too many arguemnts"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})};const l=["NFD","NFC","NFKD","NFKC"].reduce(((t,e)=>{try{if("test"!=="test".normalize(e))throw new Error("bad");if("NFD"===e){if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken")}t.push(e)}catch(t){}return t}),[]);e.assertNormalize=function(t){c(l.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})},e.assertPrivate=function(t,e,r){if(null==r&&(r=""),t!==e){let t=r,e="new";r&&(t+=".",e+=" "+r),c(!1,`private constructor; use ${t}from* methods`,"UNSUPPORTED_OPERATION",{operation:e})}}},2203:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventPayload=void 0;const n=r(9290);e.EventPayload=class{filter;emitter;#re;constructor(t,e,r){this.#re=e,(0,n.defineProperties)(this,{emitter:t,filter:r})}async removeListener(){null!=this.#re&&await this.emitter.off(this.filter,this.#re)}}},3654:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FetchResponse=e.FetchRequest=e.FetchCancelSignal=void 0;const n=r(6446),i=r(6239),s=r(1766),o=r(9290),a=r(2119),c=r(3040);let l=(0,c.createGetUrl)();const u=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),h=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function f(t,e){try{const e=t.match(u);if(!e)throw new Error("invalid data");return new v(200,"OK",{"content-type":e[1]||"text/plain"},e[2]?(0,n.decodeBase64)(e[3]):(r=e[3],(0,a.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,((t,e)=>String.fromCharCode(parseInt(e,16)))))))}catch(e){return new v(599,"BAD REQUEST (invalid data: URI)",{},null,new b(t))}var r}function p(t){return async function(e,r){try{const r=e.match(h);if(!r)throw new Error("invalid link");return new b(`${t}${r[2]}`)}catch(t){return new v(599,"BAD REQUEST (invalid IPFS URI)",{},null,new b(e))}}}const m={data:f,ipfs:p("https://gateway.ipfs.io/ipfs/")},g=new WeakMap;class y{#ne;#ie;constructor(t){this.#ne=[],this.#ie=!1,g.set(t,(()=>{if(!this.#ie){this.#ie=!0;for(const t of this.#ne)setTimeout((()=>{t()}),0);this.#ne=[]}}))}addListener(t){(0,s.assert)(!this.#ie,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#ne.push(t)}get cancelled(){return this.#ie}checkSignal(){(0,s.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function w(t){if(null==t)throw new Error("missing signal; should not happen");return t.checkSignal(),t}e.FetchCancelSignal=y;class b{#se;#oe;#ae;#ce;#le;#tt;#ue;#he;#de;#fe;#pe;#me;#ge;#ye;#we;get url(){return this.#tt}set url(t){this.#tt=String(t)}get body(){return null==this.#ue?null:new Uint8Array(this.#ue)}set body(t){if(null==t)this.#ue=void 0,this.#he=void 0;else if("string"==typeof t)this.#ue=(0,a.toUtf8Bytes)(t),this.#he="text/plain";else if(t instanceof Uint8Array)this.#ue=t,this.#he="application/octet-stream";else{if("object"!=typeof t)throw new Error("invalid body");this.#ue=(0,a.toUtf8Bytes)(JSON.stringify(t)),this.#he="application/json"}}hasBody(){return null!=this.#ue}get method(){return this.#ce?this.#ce:this.hasBody()?"POST":"GET"}set method(t){null==t&&(t=""),this.#ce=String(t).toUpperCase()}get headers(){const t=Object.assign({},this.#ae);return this.#de&&(t.authorization=`Basic ${(0,n.encodeBase64)((0,a.toUtf8Bytes)(this.#de))}`),this.allowGzip&&(t["accept-encoding"]="gzip"),null==t["content-type"]&&this.#he&&(t["content-type"]=this.#he),this.body&&(t["content-length"]=String(this.body.length)),t}getHeader(t){return this.headers[t.toLowerCase()]}setHeader(t,e){this.#ae[String(t).toLowerCase()]=String(e)}clearHeaders(){this.#ae={}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",t),this.#le=t}get preflightFunc(){return this.#fe||null}set preflightFunc(t){this.#fe=t}get processFunc(){return this.#pe||null}set processFunc(t){this.#pe=t}get retryFunc(){return this.#me||null}set retryFunc(t){this.#me=t}get getUrlFunc(){return this.#we||l}set getUrlFunc(t){this.#we=t}constructor(t){this.#tt=String(t),this.#se=!1,this.#oe=!0,this.#ae={},this.#ce="",this.#le=3e5,this.#ye={slotInterval:250,maxAttempts:12},this.#we=null}toString(){return``}setThrottleParams(t){null!=t.slotInterval&&(this.#ye.slotInterval=t.slotInterval),null!=t.maxAttempts&&(this.#ye.maxAttempts=t.maxAttempts)}async#be(t,e,r,n,i){if(t>=this.#ye.maxAttempts)return i.makeServerError("exceeded maximum retry limit");(0,s.assert)(A()<=e,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await function(t){return new Promise((e=>setTimeout(e,t)))}(r);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in m){const t=await m[a](o.url,w(n.#ge));if(t instanceof v){let e=t;if(this.processFunc){w(n.#ge);try{e=await this.processFunc(o,e)}catch(t){null!=t.throttle&&"number"==typeof t.stall||e.makeServerError("error in post-processing function",t).assertOk()}}return e}o=t}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,w(n.#ge));let l=new v(c.statusCode,c.statusMessage,c.headers,c.body,n);if(301===l.statusCode||302===l.statusCode){try{const r=l.headers.location||"";return o.redirect(r).#be(t+1,e,0,n,l)}catch(t){}return l}if(429===l.statusCode&&(null==this.retryFunc||await this.retryFunc(o,l,t))){const r=l.headers["retry-after"];let i=this.#ye.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(i=parseInt(r)),o.clone().#be(t+1,e,i,n,l)}if(this.processFunc){w(n.#ge);try{l=await this.processFunc(o,l)}catch(r){null!=r.throttle&&"number"==typeof r.stall||l.makeServerError("error in post-processing function",r).assertOk();let i=this.#ye.slotInterval*Math.trunc(Math.random()*Math.pow(2,t));return r.stall>=0&&(i=r.stall),o.clone().#be(t+1,e,i,n,l)}}return l}send(){return(0,s.assert)(null==this.#ge,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#ge=new y(this),this.#be(0,A()+this.timeout,0,this,new v(0,"",{},null,this))}cancel(){(0,s.assert)(null!=this.#ge,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const t=g.get(this);if(!t)throw new Error("missing signal; should not happen");t()}redirect(t){const e=this.url.split(":")[0].toLowerCase(),r=t.split(":")[0].toLowerCase();(0,s.assert)("GET"===this.method&&("https"!==e||"http"!==r)&&t.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(t)})`});const n=new b(t);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#ae=Object.assign({},this.#ae),this.#ue&&(n.#ue=new Uint8Array(this.#ue)),n.#he=this.#he,n}clone(){const t=new b(this.url);return t.#ce=this.#ce,this.#ue&&(t.#ue=this.#ue),t.#he=this.#he,t.#ae=Object.assign({},this.#ae),t.#de=this.#de,this.allowGzip&&(t.allowGzip=!0),t.timeout=this.timeout,this.allowInsecureAuthentication&&(t.allowInsecureAuthentication=!0),t.#fe=this.#fe,t.#pe=this.#pe,t.#me=this.#me,t.#we=this.#we,t}static lockConfig(){d=!0}static getGateway(t){return m[t.toLowerCase()]||null}static registerGateway(t,e){if("http"===(t=t.toLowerCase())||"https"===t)throw new Error(`cannot intercept ${t}; use registerGetUrl`);if(d)throw new Error("gateways locked");m[t]=e}static registerGetUrl(t){if(d)throw new Error("gateways locked");l=t}static createGetUrlFunc(t){return(0,c.createGetUrl)(t)}static createDataGateway(){return f}static createIpfsGatewayFunc(t){return p(t)}}e.FetchRequest=b;class v{#ve;#Ae;#ae;#ue;#rt;#Ee;toString(){return``}get statusCode(){return this.#ve}get statusMessage(){return this.#Ae}get headers(){return Object.assign({},this.#ae)}get body(){return null==this.#ue?null:new Uint8Array(this.#ue)}get bodyText(){try{return null==this.#ue?"":(0,a.toUtf8String)(this.#ue)}catch(t){(0,s.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(t){(0,s.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const t=this.headers,e=Object.keys(t);let r=0;return{next:()=>{if(r(t[e.toLowerCase()]=String(r[e]),t)),{}),this.#ue=null==n?null:new Uint8Array(n),this.#rt=i||null,this.#Ee={message:""}}makeServerError(t,e){let r;r=t?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${t})`:`CLIENT ESCALATED SERVER ERROR (${t=`${this.statusCode} ${this.statusMessage}`})`;const n=new v(599,r,this.headers,this.body,this.#rt||void 0);return n.#Ee={message:t,error:e},n}throwThrottleError(t,e){null==e?e=-1:(0,s.assertArgument)(Number.isInteger(e)&&e>=0,"invalid stall timeout","stall",e);const r=new Error(t||"throttling requests");throw(0,o.defineProperties)(r,{stall:e,throttle:!0}),r}getHeader(t){return this.headers[t.toLowerCase()]}hasBody(){return null!=this.#ue}get request(){return this.#rt}ok(){return""===this.#Ee.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:t,error:e}=this.#Ee;""===t&&(t=`server response ${this.statusCode} ${this.statusMessage}`),(0,s.assert)(!1,t,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:e})}}function A(){return(new Date).getTime()}e.FetchResponse=v},6539:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FixedNumber=void 0;const n=r(6239),i=r(1766),s=r(358),o=r(9290),a=BigInt(-1),c=BigInt(0),l=BigInt(1),u=BigInt(5),h={};let d="0000";for(;d.length<80;)d+=d;function f(t){let e=d;for(;e.length=-e&&tc?(0,s.fromTwos)((0,s.mask)(t,n),n):-(0,s.fromTwos)((0,s.mask)(-t,n),n)}else{const e=l<=0&&tnull==s[t]?r:((0,i.assertArgument)(typeof s[t]===e,"invalid fixed format ("+t+" not "+e+")","format."+t,s[t]),s[t]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}return(0,i.assertArgument)(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),(0,i.assertArgument)(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n),{signed:e,width:r,decimals:n,name:(e?"":"u")+"fixed"+String(r)+"x"+String(n)}}class g{format;#xe;#_e;#Se;_value;constructor(t,e,r){(0,i.assertPrivate)(t,h,"FixedNumber"),this.#_e=e,this.#xe=r;const n=function(t,e){let r="";t0?r*=f(n):n<0&&(e*=f(-n)),er?1:0}eq(t){return 0===this.cmp(t)}lt(t){return this.cmp(t)<0}lte(t){return this.cmp(t)<=0}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#_e;return this.#_ec&&(t+=this.#Se-l),t=this.#_e/this.#Se*this.#Se,this.#Ce(t,"ceiling")}round(t){if(null==t&&(t=0),t>=this.decimals)return this;const e=this.decimals-t,r=u*f(e-1);let n=this.value+r;const i=f(e);return n=n/i*i,p(n,this.#xe,"round"),new g(h,n,this.#xe)}isZero(){return this.#_e===c}isNegative(){return this.#_e0){const e=f(l);(0,i.assert)(a%e===c,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),a/=e}else l<0&&(a*=f(-l));return p(a,o,"fromValue"),new g(h,a,o)}static fromString(t,e){const r=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,i.assertArgument)(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",t);const n=m(e);let s=r[2]||"0",o=r[3]||"";for(;o.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUrl=e.createGetUrl=void 0;const n=r(1766);function i(t){return async function(t,e){const r=t.url.split(":")[0].toLowerCase();let i;if((0,n.assert)("http"===r||"https"===r,`unsupported protocol ${r}`,"UNSUPPORTED_OPERATION",{info:{protocol:r},operation:"request"}),(0,n.assert)("https"===r||!t.credentials||t.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"}),e){const t=new AbortController;i=t.signal,e.addListener((()=>{t.abort()}))}const s={method:t.method,headers:new Headers(Array.from(t)),body:t.body||void 0,signal:i},o=await fetch(t.url,s),a={};o.headers.forEach(((t,e)=>{a[e.toLowerCase()]=t}));const c=await o.arrayBuffer(),l=null==c?null:new Uint8Array(c);return{statusCode:o.status,statusMessage:o.statusText,headers:a,body:l}}}e.createGetUrl=i;const s=i();e.getUrl=async function(t,e){return s(t,e)}},2120:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.encodeRlp=e.decodeRlp=e.defineProperties=e.resolveProperties=e.toQuantity=e.toBeArray=e.toBeHex=e.toNumber=e.toBigInt=e.getUint=e.getNumber=e.getBigInt=e.mask=e.toTwos=e.fromTwos=e.FixedNumber=e.FetchCancelSignal=e.FetchResponse=e.FetchRequest=e.EventPayload=e.makeError=e.assertNormalize=e.assertPrivate=e.assertArgumentCount=e.assertArgument=e.assert=e.isError=e.isCallException=e.zeroPadBytes=e.zeroPadValue=e.stripZerosLeft=e.dataSlice=e.dataLength=e.concat=e.hexlify=e.isBytesLike=e.isHexString=e.getBytesCopy=e.getBytes=e.encodeBase64=e.decodeBase64=e.encodeBase58=e.decodeBase58=void 0,e.uuidV4=e.Utf8ErrorFuncs=void 0;var n=r(349);Object.defineProperty(e,"decodeBase58",{enumerable:!0,get:function(){return n.decodeBase58}}),Object.defineProperty(e,"encodeBase58",{enumerable:!0,get:function(){return n.encodeBase58}});var i=r(6446);Object.defineProperty(e,"decodeBase64",{enumerable:!0,get:function(){return i.decodeBase64}}),Object.defineProperty(e,"encodeBase64",{enumerable:!0,get:function(){return i.encodeBase64}});var s=r(6239);Object.defineProperty(e,"getBytes",{enumerable:!0,get:function(){return s.getBytes}}),Object.defineProperty(e,"getBytesCopy",{enumerable:!0,get:function(){return s.getBytesCopy}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return s.isHexString}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return s.isBytesLike}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return s.hexlify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return s.concat}}),Object.defineProperty(e,"dataLength",{enumerable:!0,get:function(){return s.dataLength}}),Object.defineProperty(e,"dataSlice",{enumerable:!0,get:function(){return s.dataSlice}}),Object.defineProperty(e,"stripZerosLeft",{enumerable:!0,get:function(){return s.stripZerosLeft}}),Object.defineProperty(e,"zeroPadValue",{enumerable:!0,get:function(){return s.zeroPadValue}}),Object.defineProperty(e,"zeroPadBytes",{enumerable:!0,get:function(){return s.zeroPadBytes}});var o=r(1766);Object.defineProperty(e,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(e,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(e,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(e,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}),Object.defineProperty(e,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(e,"makeError",{enumerable:!0,get:function(){return o.makeError}});var a=r(2203);Object.defineProperty(e,"EventPayload",{enumerable:!0,get:function(){return a.EventPayload}});var c=r(3654);Object.defineProperty(e,"FetchRequest",{enumerable:!0,get:function(){return c.FetchRequest}}),Object.defineProperty(e,"FetchResponse",{enumerable:!0,get:function(){return c.FetchResponse}}),Object.defineProperty(e,"FetchCancelSignal",{enumerable:!0,get:function(){return c.FetchCancelSignal}});var l=r(6539);Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return l.FixedNumber}});var u=r(358);Object.defineProperty(e,"fromTwos",{enumerable:!0,get:function(){return u.fromTwos}}),Object.defineProperty(e,"toTwos",{enumerable:!0,get:function(){return u.toTwos}}),Object.defineProperty(e,"mask",{enumerable:!0,get:function(){return u.mask}}),Object.defineProperty(e,"getBigInt",{enumerable:!0,get:function(){return u.getBigInt}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return u.getNumber}}),Object.defineProperty(e,"getUint",{enumerable:!0,get:function(){return u.getUint}}),Object.defineProperty(e,"toBigInt",{enumerable:!0,get:function(){return u.toBigInt}}),Object.defineProperty(e,"toNumber",{enumerable:!0,get:function(){return u.toNumber}}),Object.defineProperty(e,"toBeHex",{enumerable:!0,get:function(){return u.toBeHex}}),Object.defineProperty(e,"toBeArray",{enumerable:!0,get:function(){return u.toBeArray}}),Object.defineProperty(e,"toQuantity",{enumerable:!0,get:function(){return u.toQuantity}});var h=r(9290);Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return h.resolveProperties}}),Object.defineProperty(e,"defineProperties",{enumerable:!0,get:function(){return h.defineProperties}});var d=r(4978);Object.defineProperty(e,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var f=r(9122);Object.defineProperty(e,"encodeRlp",{enumerable:!0,get:function(){return f.encodeRlp}});var p=r(8680);Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return p.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return p.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return p.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return p.parseUnits}});var m=r(2119);Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return m.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return m.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return m.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return m.Utf8ErrorFuncs}});var g=r(4824);Object.defineProperty(e,"uuidV4",{enumerable:!0,get:function(){return g.uuidV4}})},358:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toQuantity=e.toBeArray=e.toBeHex=e.toNumber=e.getNumber=e.toBigInt=e.getUint=e.getBigInt=e.mask=e.toTwos=e.fromTwos=void 0;const n=r(6239),i=r(1766),s=BigInt(0),o=BigInt(1),a=9007199254740991;function c(t,e){switch(typeof t){case"bigint":return t;case"number":return(0,i.assertArgument)(Number.isInteger(t),"underflow",e||"value",t),(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),BigInt(t);case"string":try{if(""===t)throw new Error("empty string");return"-"===t[0]&&"-"!==t[1]?-BigInt(t.substring(1)):BigInt(t)}catch(r){(0,i.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}(0,i.assertArgument)(!1,"invalid BigNumberish value",e||"value",t)}function l(t,e){const r=c(t,e);return(0,i.assert)(r>=s,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}e.fromTwos=function(t,e){const r=l(t,"value"),n=BigInt(d(e,"width"));return(0,i.assert)(r>>n===s,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-o?-((~r&(o<>4],e+=u[15&r];return BigInt(e)}return c(t)}function d(t,e){switch(typeof t){case"bigint":return(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),Number(t);case"number":return(0,i.assertArgument)(Number.isInteger(t),"underflow",e||"value",t),(0,i.assertArgument)(t>=-a&&t<=a,"overflow",e||"value",t),t;case"string":try{if(""===t)throw new Error("empty string");return d(BigInt(t),e)}catch(r){(0,i.assertArgument)(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}(0,i.assertArgument)(!1,"invalid numeric value",e||"value",t)}function f(t){const e=l(t,"value");if(e===s)return new Uint8Array([]);let r=e.toString(16);r.length%2&&(r="0"+r);const n=new Uint8Array(r.length/2);for(let t=0;t=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length<2*n;)r="0"+r}return"0x"+r},e.toBeArray=f,e.toQuantity=function(t){let e=(0,n.hexlify)((0,n.isBytesLike)(t)?t:f(t)).substring(2);for(;e.startsWith("0");)e=e.substring(1);return""===e&&(e="0"),"0x"+e}},9290:(t,e)=>{"use strict";function r(t,e,r){const n=e.split("|").map((t=>t.trim()));for(let r=0;rPromise.resolve(t[e]))))).reduce(((t,r,n)=>(t[e[n]]=r,t)),{})},e.defineProperties=function(t,e,n){for(let i in e){let s=e[i];const o=n?n[i]:null;o&&r(s,o,i),Object.defineProperty(t,i,{enumerable:!0,value:s,writable:!1})}}},4978:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeRlp=void 0;const n=r(6239),i=r(1766),s=r(6239);function o(t){let e=t.toString(16);for(;e.length<2;)e="0"+e;return"0x"+e}function a(t,e,r){let n=0;for(let i=0;i{(0,i.assert)(e<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:e})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const i=a(t,e+1,n);return r(e+1+n+i),c(t,e,e+1+n,n+i)}if(t[e]>=192){const n=t[e]-192;return r(e+1+n),c(t,e,e+1,n)}if(t[e]>=184){const i=t[e]-183;r(e+1+i);const s=a(t,e+1,i);return r(e+1+i+s),{consumed:1+i+s,result:(0,n.hexlify)(t.slice(e+1+i,e+1+i+s))}}if(t[e]>=128){const i=t[e]-128;return r(e+1+i),{consumed:1+i,result:(0,n.hexlify)(t.slice(e+1,e+1+i))}}return{consumed:1,result:o(t[e])}}e.decodeRlp=function(t){const e=(0,s.getBytes)(t,"data"),r=l(e,0);return(0,i.assertArgument)(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}},9122:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeRlp=void 0;const n=r(6239);function i(t){const e=[];for(;t;)e.unshift(255&t),t>>=8;return e}function s(t){if(Array.isArray(t)){let e=[];if(t.forEach((function(t){e=e.concat(s(t))})),e.length<=55)return e.unshift(192+e.length),e;const r=i(e.length);return r.unshift(247+r.length),r.concat(e)}const e=Array.prototype.slice.call((0,n.getBytes)(t,"object"));if(1===e.length&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=i(e.length);return r.unshift(183+r.length),r.concat(e)}const o="0123456789abcdef";e.encodeRlp=function(t){let e="0x";for(const r of s(t))e+=o[r>>4],e+=o[15&r];return e}},8680:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEther=e.formatEther=e.parseUnits=e.formatUnits=void 0;const n=r(1766),i=r(6539),s=r(358),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(t,e){let r=18;if("string"==typeof e){const t=o.indexOf(e);(0,n.assertArgument)(t>=0,"invalid unit","unit",e),r=3*t}else null!=e&&(r=(0,s.getNumber)(e,"unit"));return i.FixedNumber.fromValue(t,r,{decimals:r,width:512}).toString()}function c(t,e){(0,n.assertArgument)("string"==typeof t,"value must be a string","value",t);let r=18;if("string"==typeof e){const t=o.indexOf(e);(0,n.assertArgument)(t>=0,"invalid unit","unit",e),r=3*t}else null!=e&&(r=(0,s.getNumber)(e,"unit"));return i.FixedNumber.fromString(t,{decimals:r,width:512}).value}e.formatUnits=a,e.parseUnits=c,e.formatEther=function(t){return a(t,18)},e.parseEther=function(t){return c(t,18)}},2119:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8CodePoints=e.toUtf8String=e.toUtf8Bytes=e.Utf8ErrorFuncs=void 0;const n=r(6239),i=r(1766);function s(t,e,r,n,i){if("BAD_PREFIX"===t||"UNEXPECTED_CONTINUE"===t){let t=0;for(let n=e+1;n>6==2;n++)t++;return t}return"OVERRUN"===t?r.length-e-1:0}function o(t,r){null==r&&(r=e.Utf8ErrorFuncs.error);const i=(0,n.getBytes)(t,"bytes"),s=[];let o=0;for(;o>7==0){s.push(t);continue}let e=null,n=null;if(192==(224&t))e=1,n=127;else if(224==(240&t))e=2,n=2047;else{if(240!=(248&t)){o+=r(128==(192&t)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,i,s);continue}e=3,n=65535}if(o-1+e>=i.length){o+=r("OVERRUN",o-1,i,s);continue}let a=t&(1<<8-e-1)-1;for(let t=0;t1114111?o+=r("OUT_OF_RANGE",o-1-e,i,s,a):a>=55296&&a<=57343?o+=r("UTF16_SURROGATE",o-1-e,i,s,a):a<=n?o+=r("OVERLONG",o-1-e,i,s,a):s.push(a))}return s}function a(t,e){null!=e&&((0,i.assertNormalize)(e),t=t.normalize(e));let r=[];for(let e=0;e>6|192),r.push(63&n|128);else if(55296==(64512&n)){e++;const s=t.charCodeAt(e);(0,i.assertArgument)(e>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}e.Utf8ErrorFuncs=Object.freeze({error:function(t,e,r,n,s){(0,i.assertArgument)(!1,`invalid codepoint at offset ${e}; ${t}`,"bytes",r)},ignore:s,replace:function(t,e,r,n,o){return"OVERLONG"===t?((0,i.assertArgument)("number"==typeof o,"invalid bad code point for replacement","badCodepoint",o),n.push(o),0):(n.push(65533),s(t,e,r))}}),e.toUtf8Bytes=a,e.toUtf8String=function(t,e){return o(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")},e.toUtf8CodePoints=function(t,e){return o(a(t,e))}},4824:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uuidV4=void 0;const n=r(6239);e.uuidV4=function(t){const e=(0,n.getBytes)(t,"randomBytes");e[6]=15&e[6]|64,e[8]=63&e[8]|128;const r=(0,n.hexlify)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},5662:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseWallet=void 0;const n=r(5475),i=r(8336),s=r(4878),o=r(2290),a=r(2120);class c extends s.AbstractSigner{address;#Ne;constructor(t,e){super(e),(0,a.assertArgument)(t&&"function"==typeof t.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#Ne=t;const r=(0,o.computeAddress)(this.signingKey.publicKey);(0,a.defineProperties)(this,{address:r})}get signingKey(){return this.#Ne}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(t){return new c(this.#Ne,t)}async signTransaction(t){const{to:e,from:r}=await(0,a.resolveProperties)({to:t.to?(0,n.resolveAddress)(t.to,this.provider):void 0,from:t.from?(0,n.resolveAddress)(t.from,this.provider):void 0});null!=e&&(t.to=e),null!=r&&(t.from=r),null!=t.from&&((0,a.assertArgument)((0,n.getAddress)(t.from)===this.address,"transaction from address mismatch","tx.from",t.from),delete t.from);const i=o.Transaction.from(t);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(t){return this.signMessageSync(t)}signMessageSync(t){return this.signingKey.sign((0,i.hashMessage)(t)).serialized}async signTypedData(t,e,r){const n=await i.TypedDataEncoder.resolveNames(t,e,r,(async t=>{(0,a.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:t}});const e=await this.provider.resolveName(t);return(0,a.assert)(null!=e,"unconfigured ENS name","UNCONFIGURED_NAME",{value:t}),e}));return this.signingKey.sign(i.TypedDataEncoder.hash(n.domain,e,n.value)).serialized}}e.BaseWallet=c},483:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndexedAccountPath=e.getAccountPath=e.HDNodeVoidWallet=e.HDNodeWallet=e.defaultPath=void 0;const n=r(6965),i=r(4878),s=r(2290),o=r(2120),a=r(847),c=r(5662),l=r(75),u=r(630);e.defaultPath="m/44'/60'/0'/0/0";const h=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function p(t,e){let r="";for(;t;)r="0123456789abcdef"[t%16]+r,t=Math.trunc(t/16);for(;r.length<2*e;)r="0"+r;return"0x"+r}function m(t){const e=(0,o.getBytes)(t),r=(0,o.dataSlice)((0,n.sha256)((0,n.sha256)(e)),0,4),i=(0,o.concat)([e,r]);return(0,o.encodeBase58)(i)}const g={};function y(t,e,r,i){const s=new Uint8Array(37);t&d?((0,o.assert)(null!=i,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),s.set((0,o.getBytes)(i),1)):s.set((0,o.getBytes)(r));for(let e=24;e>=0;e-=8)s[33+(e>>3)]=t>>24-e&255;const a=(0,o.getBytes)((0,n.computeHmac)("sha512",e,s));return{IL:a.slice(0,32),IR:a.slice(32)}}function w(t,e){const r=e.split("/");(0,o.assertArgument)(r.length>0&&("m"===r[0]||t.depth>0),"invalid path","path",e),"m"===r[0]&&r.shift();let n=t;for(let t=0;t=16&&r.length<=64,"invalid seed","seed","[REDACTED]");const i=(0,o.getBytes)((0,n.computeHmac)("sha512",h,r)),s=new n.SigningKey((0,o.hexlify)(i.slice(0,32)));return new b(g,s,"0x00000000",(0,o.hexlify)(i.slice(32)),"m",0,0,e,null)}static fromExtendedKey(t){const e=(0,o.toBeArray)((0,o.decodeBase58)(t));(0,o.assertArgument)(82===e.length||m(e.slice(0,78))===t,"invalid extended key","extendedKey","[ REDACTED ]");const r=e[4],i=(0,o.hexlify)(e.slice(5,9)),a=parseInt((0,o.hexlify)(e.slice(9,13)).substring(2),16),c=(0,o.hexlify)(e.slice(13,45)),l=e.slice(45,78);switch((0,o.hexlify)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const t=(0,o.hexlify)(l);return new v(g,(0,s.computeAddress)(t),t,i,c,null,a,r,null)}case"0x0488ade4":case"0x04358394 ":if(0!==l[0])break;return new b(g,new n.SigningKey(l.slice(1)),i,c,null,a,r,null,null)}(0,o.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(t,r,i){null==t&&(t=""),null==r&&(r=e.defaultPath),null==i&&(i=a.LangEn.wordlist());const s=l.Mnemonic.fromEntropy((0,n.randomBytes)(16),t,i);return b.#Re(s.computeSeed(),s).derivePath(r)}static fromMnemonic(t,r){return r||(r=e.defaultPath),b.#Re(t.computeSeed(),t).derivePath(r)}static fromPhrase(t,r,n,i){null==r&&(r=""),null==n&&(n=e.defaultPath),null==i&&(i=a.LangEn.wordlist());const s=l.Mnemonic.fromPhrase(t,r,i);return b.#Re(s.computeSeed(),s).derivePath(n)}static fromSeed(t){return b.#Re(t,null)}}e.HDNodeWallet=b;class v extends i.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(t,e,r,i,s,a,c,l,u){super(e,u),(0,o.assertPrivate)(t,g,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:r});const h=(0,o.dataSlice)((0,n.ripemd160)((0,n.sha256)(r)),0,4);(0,o.defineProperties)(this,{publicKey:r,fingerprint:h,parentFingerprint:i,chainCode:s,path:a,index:c,depth:l})}connect(t){return new v(g,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,t)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),m((0,o.concat)(["0x0488B21E",p(this.depth,1),this.parentFingerprint,p(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(t){const e=(0,o.getNumber)(t,"index");(0,o.assertArgument)(e<=4294967295,"invalid index","index",e);let r=this.path;r&&(r+="/"+(2147483647&e),e&d&&(r+="'"));const{IR:i,IL:a}=y(e,this.chainCode,this.publicKey,null),c=n.SigningKey.addPoints(a,this.publicKey,!0),l=(0,s.computeAddress)(c);return new v(g,l,c,this.fingerprint,(0,o.hexlify)(i),r,e,this.depth+1,this.provider)}derivePath(t){return w(this,t)}}e.HDNodeVoidWallet=v,e.getAccountPath=function(t){const e=(0,o.getNumber)(t,"index");return(0,o.assertArgument)(e>=0&&e=0&&e{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=e.Mnemonic=e.encryptKeystoreJsonSync=e.encryptKeystoreJson=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.isKeystoreJson=e.decryptCrowdsaleJson=e.isCrowdsaleJson=e.HDNodeVoidWallet=e.HDNodeWallet=e.getIndexedAccountPath=e.getAccountPath=e.defaultPath=e.BaseWallet=void 0;var n=r(5662);Object.defineProperty(e,"BaseWallet",{enumerable:!0,get:function(){return n.BaseWallet}});var i=r(483);Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return i.defaultPath}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return i.getAccountPath}}),Object.defineProperty(e,"getIndexedAccountPath",{enumerable:!0,get:function(){return i.getIndexedAccountPath}}),Object.defineProperty(e,"HDNodeWallet",{enumerable:!0,get:function(){return i.HDNodeWallet}}),Object.defineProperty(e,"HDNodeVoidWallet",{enumerable:!0,get:function(){return i.HDNodeVoidWallet}});var s=r(8668);Object.defineProperty(e,"isCrowdsaleJson",{enumerable:!0,get:function(){return s.isCrowdsaleJson}}),Object.defineProperty(e,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return s.decryptCrowdsaleJson}});var o=r(630);Object.defineProperty(e,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(e,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(e,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(e,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var a=r(75);Object.defineProperty(e,"Mnemonic",{enumerable:!0,get:function(){return a.Mnemonic}});var c=r(6389);Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return c.Wallet}})},8668:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decryptCrowdsaleJson=e.isCrowdsaleJson=void 0;const n=r(4102),i=r(5475),s=r(6965),o=r(8336),a=r(2120),c=r(7668);e.isCrowdsaleJson=function(t){try{if(JSON.parse(t).encseed)return!0}catch(t){}return!1},e.decryptCrowdsaleJson=function(t,e){const r=JSON.parse(t),l=(0,c.getPassword)(e),u=(0,i.getAddress)((0,c.spelunk)(r,"ethaddr:string!")),h=(0,c.looseArrayify)((0,c.spelunk)(r,"encseed:string!"));(0,a.assertArgument)(h&&h.length%16==0,"invalid encseed","json",t);const d=(0,a.getBytes)((0,s.pbkdf2)(l,l,2e3,32,"sha256")).slice(0,16),f=h.slice(0,16),p=h.slice(16),m=new n.CBC(d,f),g=(0,n.pkcs7Strip)((0,a.getBytes)(m.decrypt(p)));let y="";for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encryptKeystoreJson=e.encryptKeystoreJsonSync=e.decryptKeystoreJson=e.decryptKeystoreJsonSync=e.isKeystoreJson=void 0;const n=r(4102),i=r(5475),s=r(6965),o=r(2290),a=r(2120),c=r(7668),l=r(9406),u="m/44'/60'/0'/0/0";function h(t,e){const r=(0,a.getBytes)(e),l=(0,c.spelunk)(t,"crypto.ciphertext:data!"),h=(0,a.hexlify)((0,s.keccak256)((0,a.concat)([r.slice(16,32),l]))).substring(2);(0,a.assertArgument)(h===(0,c.spelunk)(t,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(t,e,r){if("aes-128-ctr"===(0,c.spelunk)(t,"crypto.cipher:string")){const i=(0,c.spelunk)(t,"crypto.cipherparams.iv:data!"),s=new n.CTR(e,i);return(0,a.hexlify)(s.decrypt(r))}(0,a.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(t,r.slice(0,16),l),f=(0,o.computeAddress)(d);if(t.address){let e=t.address.toLowerCase();e.startsWith("0x")||(e="0x"+e),(0,a.assertArgument)((0,i.getAddress)(e)===f,"keystore address/privateKey mismatch","address",t.address)}const p={address:f,privateKey:d};if("0.1"===(0,c.spelunk)(t,"x-ethers.version:string")){const e=r.slice(32,64),i=(0,c.spelunk)(t,"x-ethers.mnemonicCiphertext:data!"),s=(0,c.spelunk)(t,"x-ethers.mnemonicCounter:data!"),o=new n.CTR(e,s);p.mnemonic={path:(0,c.spelunk)(t,"x-ethers.path:string")||u,locale:(0,c.spelunk)(t,"x-ethers.locale:string")||"en",entropy:(0,a.hexlify)((0,a.getBytes)(o.decrypt(i)))}}return p}function d(t){const e=(0,c.spelunk)(t,"crypto.kdf:string");if(e&&"string"==typeof e){if("scrypt"===e.toLowerCase()){const r=(0,c.spelunk)(t,"crypto.kdfparams.salt:data!"),n=(0,c.spelunk)(t,"crypto.kdfparams.n:int!"),i=(0,c.spelunk)(t,"crypto.kdfparams.r:int!"),s=(0,c.spelunk)(t,"crypto.kdfparams.p:int!");(0,a.assertArgument)(n>0&&0==(n&n-1),"invalid kdf.N","kdf.N",n),(0,a.assertArgument)(i>0&&s>0,"invalid kdf","kdf",e);const o=(0,c.spelunk)(t,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:i,p:s,dkLen:64}}if("pbkdf2"===e.toLowerCase()){const e=(0,c.spelunk)(t,"crypto.kdfparams.salt:data!"),r=(0,c.spelunk)(t,"crypto.kdfparams.prf:string!"),n=r.split("-").pop();(0,a.assertArgument)("sha256"===n||"sha512"===n,"invalid kdf.pdf","kdf.pdf",r);const i=(0,c.spelunk)(t,"crypto.kdfparams.c:int!"),s=(0,c.spelunk)(t,"crypto.kdfparams.dklen:int!");return(0,a.assertArgument)(32===s,"invalid kdf.dklen","kdf.dklen",s),{name:"pbkdf2",salt:e,count:i,dkLen:s,algorithm:n}}}(0,a.assertArgument)(!1,"unsupported key-derivation function","kdf",e)}function f(t){return new Promise((e=>{setTimeout((()=>{e()}),t)}))}function p(t){const e=null!=t.salt?(0,a.getBytes)(t.salt,"options.salt"):(0,s.randomBytes)(32);let r=1<<17,n=8,i=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(i=t.scrypt.p)),(0,a.assertArgument)("number"==typeof r&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),(0,a.assertArgument)("number"==typeof n&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),(0,a.assertArgument)("number"==typeof i&&i>0&&Number.isSafeInteger(i),"invalid scrypt p parameter","options.p",i),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:i}}function m(t,e,r,i){const o=(0,a.getBytes)(r.privateKey,"privateKey"),h=null!=i.iv?(0,a.getBytes)(i.iv,"options.iv"):(0,s.randomBytes)(16);(0,a.assertArgument)(16===h.length,"invalid options.iv length","options.iv",i.iv);const d=null!=i.uuid?(0,a.getBytes)(i.uuid,"options.uuid"):(0,s.randomBytes)(16);(0,a.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",i.iv);const f=t.slice(0,16),p=t.slice(16,32),m=new n.CTR(f,h),g=(0,a.getBytes)(m.encrypt(o)),y=(0,s.keccak256)((0,a.concat)([p,g])),w={address:r.address.substring(2).toLowerCase(),id:(0,a.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,a.hexlify)(h).substring(2)},ciphertext:(0,a.hexlify)(g).substring(2),kdf:"scrypt",kdfparams:{salt:(0,a.hexlify)(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:y.substring(2)}};if(r.mnemonic){const e=null!=i.client?i.client:`ethers/${l.version}`,o=r.mnemonic.path||u,h=r.mnemonic.locale||"en",d=t.slice(32,64),f=(0,a.getBytes)(r.mnemonic.entropy,"account.mnemonic.entropy"),p=(0,s.randomBytes)(16),m=new n.CTR(d,p),g=(0,a.getBytes)(m.encrypt(f)),y=new Date,b="UTC--"+y.getUTCFullYear()+"-"+(0,c.zpad)(y.getUTCMonth()+1,2)+"-"+(0,c.zpad)(y.getUTCDate(),2)+"T"+(0,c.zpad)(y.getUTCHours(),2)+"-"+(0,c.zpad)(y.getUTCMinutes(),2)+"-"+(0,c.zpad)(y.getUTCSeconds(),2)+".0Z--"+w.address;w["x-ethers"]={client:e,gethFilename:b,path:o,locale:h,mnemonicCounter:(0,a.hexlify)(p).substring(2),mnemonicCiphertext:(0,a.hexlify)(g).substring(2),version:"0.1"}}return JSON.stringify(w)}e.isKeystoreJson=function(t){try{const e=JSON.parse(t);if(3===(null!=e.version?parseInt(e.version):0))return!0}catch(t){}return!1},e.decryptKeystoreJsonSync=function(t,e){const r=JSON.parse(t),n=(0,c.getPassword)(e),i=d(r);if("pbkdf2"===i.name){const{salt:t,count:e,dkLen:o,algorithm:a}=i;return h(r,(0,s.pbkdf2)(n,t,e,o,a))}(0,a.assert)("scrypt"===i.name,"cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:l,r:u,p:f,dkLen:p}=i;return h(r,(0,s.scryptSync)(n,o,l,u,f,p))},e.decryptKeystoreJson=async function(t,e,r){const n=JSON.parse(t),i=(0,c.getPassword)(e),o=d(n);if("pbkdf2"===o.name){r&&(r(0),await f(0));const{salt:t,count:e,dkLen:a,algorithm:c}=o,l=(0,s.pbkdf2)(i,t,e,a,c);return r&&(r(1),await f(0)),h(n,l)}(0,a.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:l,N:u,r:p,p:m,dkLen:g}=o;return h(n,await(0,s.scrypt)(i,l,u,p,m,g,r))},e.encryptKeystoreJsonSync=function(t,e,r){null==r&&(r={});const n=(0,c.getPassword)(e),i=p(r),o=(0,s.scryptSync)(n,i.salt,i.N,i.r,i.p,64);return m((0,a.getBytes)(o),i,t,r)},e.encryptKeystoreJson=async function(t,e,r){null==r&&(r={});const n=(0,c.getPassword)(e),i=p(r),o=await(0,s.scrypt)(n,i.salt,i.N,i.r,i.p,64,r.progressCallback);return m((0,a.getBytes)(o),i,t,r)}},75:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mnemonic=void 0;const n=r(6965),i=r(2120),s=r(847);function o(t){return(1<=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const a=new Uint8Array(Math.ceil(11*r.length/8));let c=0;for(let t=0;t=0,`invalid mnemonic word at index ${t}`,"mnemonic","[ REDACTED ]");for(let t=0;t<11;t++)n&1<<10-t&&(a[c>>3]|=1<<7-c%8),c++}const l=32*r.length/3,u=o(r.length/3),h=(0,i.getBytes)((0,n.sha256)(a.slice(0,l/8)))[0]&u;return(0,i.assertArgument)(h===(a[a.length-1]&u),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,i.hexlify)(a.slice(0,l/8))}function c(t,e){(0,i.assertArgument)(t.length%4==0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==e&&(e=s.LangEn.wordlist());const r=[0];let a=11;for(let e=0;e8?(r[r.length-1]<<=8,r[r.length-1]|=t[e],a-=8):(r[r.length-1]<<=a,r[r.length-1]|=t[e]>>8-a,r.push(t[e]&(1<<8-a)-1&255),a+=3);const c=t.length/4,l=parseInt((0,n.sha256)(t).substring(2,4),16)&o(c);return r[r.length-1]<<=c,r[r.length-1]|=l>>8-c,e.join(r.map((t=>e.getWord(t))))}const l={};class u{phrase;password;wordlist;entropy;constructor(t,e,r,n,o){null==n&&(n=""),null==o&&(o=s.LangEn.wordlist()),(0,i.assertPrivate)(t,l,"Mnemonic"),(0,i.defineProperties)(this,{phrase:r,password:n,wordlist:o,entropy:e})}computeSeed(){const t=(0,i.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,n.pbkdf2)((0,i.toUtf8Bytes)(this.phrase,"NFKD"),t,2048,64,"sha512")}static fromPhrase(t,e,r){const n=a(t,r);return t=c((0,i.getBytes)(n),r),new u(l,n,t,e,r)}static fromEntropy(t,e,r){const n=(0,i.getBytes)(t,"entropy"),s=c(n,r);return new u(l,(0,i.hexlify)(n),s,e,r)}static entropyToPhrase(t,e){return c((0,i.getBytes)(t,"entropy"),e)}static phraseToEntropy(t,e){return a(t,e)}static isValidMnemonic(t,e){try{return a(t,e),!0}catch(t){}return!1}}e.Mnemonic=u},7668:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spelunk=e.getPassword=e.zpad=e.looseArrayify=void 0;const n=r(2120);function i(t){return"string"!=typeof t||t.startsWith("0x")||(t="0x"+t),(0,n.getBytesCopy)(t)}e.looseArrayify=i,e.zpad=function(t,e){for(t=String(t);t.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=void 0;const n=r(6965),i=r(2120),s=r(5662),o=r(483),a=r(8668),c=r(630),l=r(75);function u(t){return new Promise((e=>{setTimeout((()=>{e()}),t)}))}class h extends s.BaseWallet{constructor(t,e){"string"!=typeof t||t.startsWith("0x")||(t="0x"+t),super("string"==typeof t?new n.SigningKey(t):t,e)}connect(t){return new h(this.signingKey,t)}async encrypt(t,e){const r={address:this.address,privateKey:this.privateKey};return await(0,c.encryptKeystoreJson)(r,t,{progressCallback:e})}encryptSync(t){const e={address:this.address,privateKey:this.privateKey};return(0,c.encryptKeystoreJsonSync)(e,t)}static#Be(t){if((0,i.assertArgument)(t,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in t&&t.mnemonic&&"en"===t.mnemonic.locale){const e=l.Mnemonic.fromEntropy(t.mnemonic.entropy),r=o.HDNodeWallet.fromMnemonic(e,t.mnemonic.path);if(r.address===t.address&&r.privateKey===t.privateKey)return r;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const e=new h(t.privateKey);return(0,i.assertArgument)(e.address===t.address,"address/privateKey mismatch","json","[ REDACTED ]"),e}static async fromEncryptedJson(t,e,r){let n=null;return(0,c.isKeystoreJson)(t)?n=await(0,c.decryptKeystoreJson)(t,e,r):(0,a.isCrowdsaleJson)(t)&&(r&&(r(0),await u(0)),n=(0,a.decryptCrowdsaleJson)(t,e),r&&(r(1),await u(0))),h.#Be(n)}static fromEncryptedJsonSync(t,e){let r=null;return(0,c.isKeystoreJson)(t)?r=(0,c.decryptKeystoreJsonSync)(t,e):(0,a.isCrowdsaleJson)(t)?r=(0,a.decryptCrowdsaleJson)(t,e):(0,i.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),h.#Be(r)}static createRandom(t){const e=o.HDNodeWallet.createRandom();return t?e.connect(t):e}static fromPhrase(t,e){const r=o.HDNodeWallet.fromPhrase(t);return e?r.connect(e):r}}e.Wallet=h},5033:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeBits=void 0,e.decodeBits=function(t,e){const r=(1<=t;){const e=i>>s-t;i&=(1<{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeOwl=e.decode=void 0;const n=r(2120),i=" !#$%&'()*+,-./<=>?@[]^_`{|}~",s=/^[a-z]*$/i;function o(t,e){let r=97;return t.reduce(((t,n)=>(n===e?r++:n.match(s)?t.push(String.fromCharCode(r)+n):(r=97,t.push(n)),t)),[])}function a(t,e){for(let r=i.length-1;r>=0;r--)t=t.split(i[r]).join(e.substring(2*r,2*r+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((t,e,n,i)=>{if(n)for(let t=parseInt(n);t>=0;t--)r.push(";");else r.push(e.toLowerCase());return""}));if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return o(o(r,";"),":")}e.decode=a,e.decodeOwl=function(t){return(0,n.assertArgument)("0"===t[0],"unsupported auwl data","data",t),a(t.substring(1+2*i.length),t.substring(1,1+2*i.length))}},4603:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeOwlA=void 0;const n=r(2120),i=r(5033),s=r(2629);e.decodeOwlA=function(t,e){let r=(0,s.decodeOwl)(t).join(",");return e.split(/,/g).forEach((t=>{const s=t.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,n.assertArgument)(null!==s,"internal error parsing accents","accents",e);let o=0;const a=(0,i.decodeBits)(parseInt(s[3]),s[4]),c=parseInt(s[2]),l=new RegExp(`([${s[1]}])`,"g");r=r.replace(l,((t,e)=>(0==--a[o]&&(e=String.fromCharCode(e.charCodeAt(0),c),o++),e)))})),r.split(",")}},659:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wordlists=e.WordlistOwlA=e.WordlistOwl=e.LangEn=e.Wordlist=void 0;var n=r(1208);Object.defineProperty(e,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var i=r(847);Object.defineProperty(e,"LangEn",{enumerable:!0,get:function(){return i.LangEn}});var s=r(1978);Object.defineProperty(e,"WordlistOwl",{enumerable:!0,get:function(){return s.WordlistOwl}});var o=r(9766);Object.defineProperty(e,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var a=r(9669);Object.defineProperty(e,"wordlists",{enumerable:!0,get:function(){return a.wordlists}})},847:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LangEn=void 0;const n=r(1978);let i=null;class s extends n.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-EgSe0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-PM&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryFN Noc|PutQuirySSue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurEAyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOgAyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NNGradeHoldOnP Set1BOng::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==i&&(i=new s),i}}e.LangEn=s},1978:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordlistOwl=void 0;const n=r(8336),i=r(2120),s=r(2629),o=r(1208);class a extends o.Wordlist{#r;#Le;constructor(t,e,r){super(t),this.#r=e,this.#Le=r,this.#Ue=null}get _data(){return this.#r}_decodeWords(){return(0,s.decodeOwl)(this.#r)}#Ue;#je(){if(null==this.#Ue){const t=this._decodeWords();if((0,n.id)(t.join("\n")+"\n")!==this.#Le)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#Ue=t}return this.#Ue}getWord(t){const e=this.#je();return(0,i.assertArgument)(t>=0&&t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordlistOwlA=void 0;const n=r(1978),i=r(4603);class s extends n.WordlistOwl{#De;constructor(t,e,r,n){super(t,e,n),this.#De=r}get _accent(){return this.#De}_decodeWords(){return(0,i.decodeOwlA)(this._data,this._accent)}}e.WordlistOwlA=s},1208:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Wordlist=void 0;const n=r(2120);e.Wordlist=class{locale;constructor(t){(0,n.defineProperties)(this,{locale:t})}split(t){return t.toLowerCase().split(/\s+/g)}join(t){return t.join(" ")}}},9669:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wordlists=void 0;const n=r(847);e.wordlists={en:n.LangEn.wordlist()}},9320:function(t,e){"use strict";var r,n,i,s=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)},o=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r};Object.defineProperty(e,"__esModule",{value:!0}),e.AES=void 0;const a={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],u=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],f=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],p=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],b=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],v=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],A=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function x(t){const e=[];for(let r=0;r>2,s(this,i,"f")[f][t%4]=d[t],s(this,n,"f")[e-f][t%4]=d[t];let p,m=0,g=h;for(;g>16&255]<<24^l[p>>8&255]<<16^l[255&p]<<8^l[p>>24&255]^c[m]<<24,m+=1,8!=h)for(let t=1;t>8&255]<<8^l[p>>16&255]<<16^l[p>>24&255]<<24;for(let t=h/2+1;t>2,r=g%4,s(this,i,"f")[t][r]=d[o],s(this,n,"f")[e-t][r]=d[o++],g++}for(let t=1;t>24&255]^v[p>>16&255]^A[p>>8&255]^E[255&p]}encrypt(t){if(16!=t.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const e=s(this,i,"f").length-1,r=[0,0,0,0];let n=x(t);for(let t=0;t<4;t++)n[t]^=s(this,i,"f")[0][t];for(let t=1;t>24&255]^d[n[(e+1)%4]>>16&255]^f[n[(e+2)%4]>>8&255]^p[255&n[(e+3)%4]]^s(this,i,"f")[t][e];n=r.slice()}const o=new Uint8Array(16);let a=0;for(let t=0;t<4;t++)a=s(this,i,"f")[e][t],o[4*t]=255&(l[n[t]>>24&255]^a>>24),o[4*t+1]=255&(l[n[(t+1)%4]>>16&255]^a>>16),o[4*t+2]=255&(l[n[(t+2)%4]>>8&255]^a>>8),o[4*t+3]=255&(l[255&n[(t+3)%4]]^a);return o}decrypt(t){if(16!=t.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const e=s(this,n,"f").length-1,r=[0,0,0,0];let i=x(t);for(let t=0;t<4;t++)i[t]^=s(this,n,"f")[0][t];for(let t=1;t>24&255]^g[i[(e+3)%4]>>16&255]^y[i[(e+2)%4]>>8&255]^w[255&i[(e+1)%4]]^s(this,n,"f")[t][e];i=r.slice()}const o=new Uint8Array(16);let a=0;for(let t=0;t<4;t++)a=s(this,n,"f")[e][t],o[4*t]=255&(u[i[t]>>24&255]^a>>24),o[4*t+1]=255&(u[i[(t+3)%4]>>16&255]^a>>16),o[4*t+2]=255&(u[i[(t+2)%4]>>8&255]^a>>8),o[4*t+3]=255&(u[255&i[(t+1)%4]]^a);return o}}e.AES=_,r=new WeakMap,n=new WeakMap,i=new WeakMap},4102:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkcs7Strip=e.pkcs7Pad=e.OFB=e.ECB=e.CTR=e.CFB=e.CBC=e.ModeOfOperation=e.AES=void 0;var n=r(9320);Object.defineProperty(e,"AES",{enumerable:!0,get:function(){return n.AES}});var i=r(8122);Object.defineProperty(e,"ModeOfOperation",{enumerable:!0,get:function(){return i.ModeOfOperation}});var s=r(6504);Object.defineProperty(e,"CBC",{enumerable:!0,get:function(){return s.CBC}});var o=r(9104);Object.defineProperty(e,"CFB",{enumerable:!0,get:function(){return o.CFB}});var a=r(2814);Object.defineProperty(e,"CTR",{enumerable:!0,get:function(){return a.CTR}});var c=r(2810);Object.defineProperty(e,"ECB",{enumerable:!0,get:function(){return c.ECB}});var l=r(5505);Object.defineProperty(e,"OFB",{enumerable:!0,get:function(){return l.OFB}});var u=r(1682);Object.defineProperty(e,"pkcs7Pad",{enumerable:!0,get:function(){return u.pkcs7Pad}}),Object.defineProperty(e,"pkcs7Strip",{enumerable:!0,get:function(){return u.pkcs7Strip}})},6504:function(t,e,r){"use strict";var n,i,s=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},o=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};Object.defineProperty(e,"__esModule",{value:!0}),e.CBC=void 0;const a=r(8122);class c extends a.ModeOfOperation{constructor(t,e){if(super("ECC",t,c),n.set(this,void 0),i.set(this,void 0),e){if(e.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");s(this,n,new Uint8Array(e),"f")}else s(this,n,new Uint8Array(16),"f");s(this,i,this.iv,"f")}get iv(){return new Uint8Array(o(this,n,"f"))}encrypt(t){if(t.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(t.length);for(let r=0;rNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let e=15;e>=0;--e)a(this,s,"f")[e]=t%256,t=Math.floor(t/256)}setCounterBytes(t){if(16!==t.length)throw new TypeError("invalid counter initial Uint8Array value length");a(this,s,"f").set(t)}increment(){for(let t=15;t>=0;t--){if(255!==a(this,s,"f")[t]){a(this,s,"f")[t]++;break}a(this,s,"f")[t]=0}}encrypt(t){var e,r;const c=new Uint8Array(t);for(let t=0;t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ECB=void 0;const n=r(8122);class i extends n.ModeOfOperation{constructor(t){super("ECB",t,i)}encrypt(t){if(t.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const e=new Uint8Array(t.length);for(let r=0;r{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModeOfOperation=void 0;const n=r(9320);e.ModeOfOperation=class{constructor(t,e,r){if(r&&!(this instanceof r))throw new Error(`${t} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new n.AES(e)},name:{enumerable:!0,value:t}})}}},1682:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pkcs7Strip=e.pkcs7Pad=void 0,e.pkcs7Pad=function(t){const e=16-t.length%16,r=new Uint8Array(t.length+e);r.set(t);for(let n=t.length;n16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n{"use strict";const n=r(5346);t.exports=o;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},s={mapHttpRequest:p,mapHttpResponse:p,wrapRequestSerializer:m,wrapResponseSerializer:m,wrapErrorSerializer:m,req:p,res:p,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const r in t)void 0===e[r]&&(e[r]=t[r]);return e}};function o(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const r=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const n=t.serializers||{},s=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,n);let c=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1),"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===t.enabled&&(t.level="silent");const h=t.level||"info",p=Object.create(r);p.log||(p.log=g),Object.defineProperty(p,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(p,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,a(m,p,"error","log"),a(m,p,"fatal","error"),a(m,p,"warn","error"),a(m,p,"info","log"),a(m,p,"debug","log"),a(m,p,"trace","log")}});const m={transmit:e,serialize:s,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:f(t)};return p.levels=o.levels,p.level=h,p.setMaxListeners=p.getMaxListeners=p.emit=p.addListener=p.on=p.prependListener=p.once=p.prependOnceListener=p.removeListener=p.removeAllListeners=p.listeners=p.listenerCount=p.eventNames=p.write=p.flush=g,p.serializers=n,p._serialize=s,p._stdErrSerialize=c,p.child=function(r,i){if(!r)throw new Error("missing bindings for child Pino");i=i||{},s&&r.serializers&&(i.serializers=r.serializers);const o=i.serializers;if(s&&o){var a=Object.assign({},n,o),c=!0===t.browser.serialize?Object.keys(a):s;delete r.serializers,l([r],c,a,this._stdErrSerialize)}function h(t){this._childLevel=1+(0|t._childLevel),this.error=u(t,r,"error"),this.fatal=u(t,r,"fatal"),this.warn=u(t,r,"warn"),this.info=u(t,r,"info"),this.debug=u(t,r,"debug"),this.trace=u(t,r,"trace"),a&&(this.serializers=a,this._serialize=c),e&&(this._logEvent=d([].concat(t._logEvent.bindings,r)))}return h.prototype=this,new h(this)},e&&(p._logEvent=d()),p}function a(t,e,r,n){const s=Object.getPrototypeOf(e);e[r]=e.levelVal>e.levels.values[r]?g:s[r]?s[r]:i[r]||i[n]||g,function(t,e,r){var n;(t.transmit||e[r]!==g)&&(e[r]=(n=e[r],function(){const s=t.timestamp(),a=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&n in r&&(t[i][n]=r[n](t[i][n]))}function u(t,e,r){return function(){const n=new Array(1+arguments.length);n[0]=e;for(var i=1;i{"use strict";r.r(e),r.d(e,{arbitrum:()=>n,arbitrumGoerli:()=>i,arbitrumNova:()=>s,aurora:()=>o,auroraTestnet:()=>a,avalanche:()=>c,avalancheFuji:()=>l,base:()=>u,baseGoerli:()=>h,bearNetworkChainMainnet:()=>d,bearNetworkChainTestnet:()=>f,boba:()=>p,bronos:()=>m,bronosTestnet:()=>g,bsc:()=>y,bscTestnet:()=>w,bxn:()=>b,bxnTestnet:()=>v,canto:()=>A,celo:()=>E,celoAlfajores:()=>x,celoCannoli:()=>_,classic:()=>S,confluxESpace:()=>M,cronos:()=>C,cronosTestnet:()=>k,crossbell:()=>I,dfk:()=>P,dogechain:()=>O,edgeware:()=>N,edgewareTestnet:()=>T,ekta:()=>D,ektaTestnet:()=>F,emerald:()=>R,eos:()=>B,eosTestnet:()=>L,evmos:()=>U,evmosTestnet:()=>j,ewc:()=>z,fantom:()=>H,fantomTestnet:()=>$,fibo:()=>q,filecoin:()=>W,filecoinCalibration:()=>V,filecoinHyperspace:()=>G,flare:()=>K,flareTestnet:()=>Z,foundry:()=>Q,fuse:()=>J,fuseSparknet:()=>Y,gnosis:()=>nt,gnosisChiado:()=>it,gobi:()=>et,goerli:()=>rt,haqqMainnet:()=>at,haqqTestedge2:()=>ct,hardhat:()=>st,harmonyOne:()=>ot,iotex:()=>X,iotexTestnet:()=>tt,klaytn:()=>lt,linea:()=>ut,lineaTestnet:()=>ht,localhost:()=>dt,mainnet:()=>ft,mantle:()=>pt,mantleTestnet:()=>mt,metis:()=>gt,metisGoerli:()=>yt,mev:()=>wt,mevTestnet:()=>bt,modeTestnet:()=>vt,moonbaseAlpha:()=>At,moonbeam:()=>Et,moonriver:()=>xt,neonDevnet:()=>_t,nexi:()=>St,nexilix:()=>Mt,oasys:()=>Ct,okc:()=>kt,optimism:()=>It,optimismGoerli:()=>Pt,polygon:()=>Ot,polygonMumbai:()=>Nt,polygonZkEvm:()=>Rt,polygonZkEvmTestnet:()=>Tt,pulsechain:()=>Bt,pulsechainV4:()=>Lt,qMainnet:()=>Ut,qTestnet:()=>jt,rollux:()=>Dt,rolluxTestnet:()=>Ft,ronin:()=>zt,saigon:()=>Ht,sapphire:()=>Wt,sapphireTestnet:()=>Vt,scrollSepolia:()=>$t,scrollTestnet:()=>qt,sepolia:()=>Gt,shardeumSphinx:()=>he,skaleBlockBrawlers:()=>Kt,skaleCalypso:()=>Zt,skaleCalypsoTestnet:()=>Qt,skaleChaosTestnet:()=>Jt,skaleCryptoBlades:()=>Yt,skaleCryptoColosseum:()=>Xt,skaleEuropa:()=>te,skaleEuropaTestnet:()=>ee,skaleExorde:()=>re,skaleHumanProtocol:()=>ne,skaleNebula:()=>ie,skaleNebulaTestnet:()=>se,skaleRazor:()=>oe,skaleTitan:()=>ae,skaleTitanTestnet:()=>ce,songbird:()=>le,songbirdTestnet:()=>ue,syscoin:()=>de,syscoinTestnet:()=>fe,taikoTestnetSepolia:()=>me,taraxa:()=>pe,taraxaTestnet:()=>ge,telos:()=>ye,telosTestnet:()=>we,thunderTestnet:()=>be,volta:()=>ve,wanchain:()=>Ae,wanchainTestnet:()=>Ee,xdc:()=>xe,xdcTestnet:()=>_e,zetachainAthensTestnet:()=>ke,zhejiang:()=>Se,zkSync:()=>Me,zkSyncTestnet:()=>Ce,zora:()=>Ie,zoraTestnet:()=>Pe});var n={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}},i={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0},s={id:42170,name:"Arbitrum Nova",network:"arbitrum-nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{blast:{http:["https://arbitrum-nova.public.blastapi.io"],webSocket:["wss://arbitrum-nova.public.blastapi.io"]},default:{http:["https://nova.arbitrum.io/rpc"]},public:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://nova.arbiscan.io"},blockScout:{name:"BlockScout",url:"https://nova-explorer.arbitrum.io/"},default:{name:"Arbiscan",url:"https://nova.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}},o={id:1313161554,name:"Aurora",network:"aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-mainnet.infura.io/v3"]},default:{http:["https://mainnet.aurora.dev"]},public:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://aurorascan.dev"},default:{name:"Aurorascan",url:"https://aurorascan.dev"}}},a={id:1313161555,name:"Aurora Testnet",network:"aurora-testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{infura:{http:["https://aurora-testnet.infura.io/v3"]},default:{http:["https://testnet.aurora.dev"]},public:{http:["https://testnet.aurora.dev"]}},blockExplorers:{etherscan:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"},default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev"}},testnet:!0},c={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}},l={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0},u={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Base",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{blockscout:{name:"Basescout",url:"https://base.blockscout.com"},default:{name:"Basescan",url:"https://basescan.org"},etherscan:{name:"Basescan",url:"https://basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022}}},h={id:84531,network:"base-goerli",name:"Base Goerli",nativeCurrency:{name:"Base Goerli",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]},public:{http:["https://goerli.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://goerli.basescan.org"},default:{name:"Basescan",url:"https://goerli.basescan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988}},testnet:!0},d={id:641230,name:"Bear Network Chain Mainnet",network:"BearNetworkChainMainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{public:{http:["https://brnkc-mainnet.bearnetwork.net"]},default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net"}}},f={id:751230,name:"Bear Network Chain Testnet",network:"BearNetworkChainTestnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{public:{http:["https://brnkc-test.bearnetwork.net"]},default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net"}},testnet:!0},p={id:288,name:"Boba Network",network:"boba",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]},public:{http:["https://mainnet.boba.network"]}},blockExplorers:{etherscan:{name:"BOBAScan",url:"https://bobascan.com"},default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}},m={id:1039,name:"Bronos",network:"bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]},public:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}},g={id:1038,name:"Bronos Testnet",network:"bronos-testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]},public:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0},y={id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}},w={id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.binance.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0},b={id:4999,name:"BlackFort Exchange Network",network:"bxn",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]},public:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network"}}},v={id:4777,name:"BlackFort Exchange Network Testnet",network:"bxnTestnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]},public:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network"}}},A={id:7700,name:"Canto",network:"canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]},public:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}},E={id:42220,name:"Celo",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1},x={id:44787,name:"Alfajores",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0},_={id:17323,name:"Cannoli",network:"celo-cannoli",nativeCurrency:{decimals:18,name:"CELO",symbol:"C-CELO"},rpcUrls:{default:{http:["https://forno.cannoli.celo-testnet.org"]},public:{http:["https://forno.cannoli.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/cannoli"}},contracts:{multicall3:{address:"0x5Acb0aa8BF4E8Ff0d882Ee187140713C12BF9718",blockCreated:87429}},testnet:!0},S={id:61,name:"Ethereum Classic",network:"classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]},public:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}},M={id:1030,name:"Conflux eSpace",network:"cfx-espace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"]},public:{http:["https://evm.confluxrpc.org"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}},C={id:25,name:"Cronos Mainnet",network:"cronos",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]},public:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}},k={id:338,name:"Cronos Testnet",network:"cronos-testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]},public:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0},I={id:3737,network:"crossbell",name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]},public:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io"}},contracts:{multicall3:{address:"0xBB9759009cDaC82774EfC84D94cD9F7440f75Fcf",blockCreated:23499787}}},P={id:53935,name:"DFK Chain",network:"dfk",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]},public:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{etherscan:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"},default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}},O={id:2e3,name:"Dogechain",network:"dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]},public:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{etherscan:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"},default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog"}}},N={id:2021,name:"Edgeware EdgeEVM Mainnet",network:"edgeware",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]},public:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}},T={id:2022,name:"Beresheet BereEVM Testnet",network:"edgewareTestnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]},public:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{etherscan:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"},default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live"}}},R={id:42262,name:"Oasis Emerald",network:"emerald",nativeCurrency:{decimals:18,name:"Oasis ROSE",symbol:"ROSE"},rpcUrls:{default:{http:["https://emerald.oasis.dev"],webSocket:["wss://emerald.oasis.dev/ws"]},public:{http:["https://emerald.oasis.dev"],webSocket:["wss://emerald.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.emerald.oasis.dev"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1481392}}},B={id:17777,name:"EOS EVM",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]},public:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"},default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}},L={id:15557,name:"EOS EVM Testnet",network:"eos",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]},public:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{etherscan:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"},default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0},U={id:9001,name:"Evmos",network:"evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]},public:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}},j={id:9e3,name:"Evmos Testnet",network:"evmos-testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]},public:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}},D={id:1994,name:"Ekta",network:"ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://main.ekta.io"]},default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io"}}},F={id:1004,name:"Ekta Testnet",network:"ekta-testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{public:{http:["https://test.ekta.io:8545"]},default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io"}},testnet:!0},z={id:246,name:"Energy Web Chain",network:"ewc",nativeCurrency:{name:"EWT",symbol:"EWT",decimals:18},rpcUrls:{default:{http:["https://rpc.energyweb.org"]},public:{http:["https://rpc.energyweb.org"]}},blockExplorers:{default:{name:"Energy Web Chain Explorer",url:"https://explorer.energyweb.org"}},contracts:{ensRegistry:{address:"0x0A6d64413c07E10E890220BBE1c49170080C6Ca0"}}},H={id:250,name:"Fantom",network:"fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]},public:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://ftmscan.com"},default:{name:"FTMScan",url:"https://ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}},$={id:4002,name:"Fantom Testnet",network:"fantom-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]},public:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{etherscan:{name:"FTMScan",url:"https://testnet.ftmscan.com"},default:{name:"FTMScan",url:"https://testnet.ftmscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}},q={id:12306,name:"Fibo Chain",network:"fibochain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]},public:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}},W={id:314,name:"Filecoin Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}},V={id:314159,name:"Filecoin Calibration",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}},G={id:3141,name:"Filecoin Hyperspace",network:"filecoin-hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]},public:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"},filscan:{name:"Filscan",url:"https://hyperspace.filscan.io"}}},K={id:14,name:"Flare Mainnet",network:"flare-mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]},public:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network"}}},Z={id:114,name:"Coston2",network:"coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]},public:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network"}},testnet:!0},Q={id:31337,name:"Foundry",network:"foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}},J={id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://fuse-mainnet.chainstacklabs.com"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}}},Y={id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}},X={id:4689,name:"IoTeX",network:"iotex",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]},public:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}}},tt={id:4690,name:"IoTeX Testnet",network:"iotex-testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]},public:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}}},et={id:1663,name:"Horizen Gobi Testnet",network:"gobi",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{public:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]},default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0},rt={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-goerli.g.alchemy.com/v2"],webSocket:["wss://eth-goerli.g.alchemy.com/v2"]},infura:{http:["https://goerli.infura.io/v3"],webSocket:["wss://goerli.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/eth_goerli"]},public:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli.etherscan.io"},default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x56522D00C410a43BFfDF00a9A569489297385790",blockCreated:8765204},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},nt={id:100,name:"Gnosis",network:"gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"]},public:{http:["https://rpc.gnosischain.com"]}},blockExplorers:{etherscan:{name:"Gnosisscan",url:"https://gnosisscan.io"},default:{name:"Gnosis Chain Explorer",url:"https://blockscout.com/xdai/mainnet"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}},it={id:10200,name:"Gnosis Chiado",network:"chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"]},public:{http:["https://rpc.chiadochain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net"}}},st={id:31337,name:"Hardhat",network:"hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},ot={id:16666e5,name:"Harmony One",network:"harmony",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{public:{http:["https://rpc.ankr.com/harmony"]},default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}},at={id:11235,name:"HAQQ Mainnet",network:"haqq-mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]},public:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network"}}},ct={id:54211,name:"HAQQ Testedge 2",network:"haqq-testedge-2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]},public:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network"}}},lt={id:8217,name:"Klaytn",network:"klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://cypress.fautor.app/archive"]},public:{http:["https://cypress.fautor.app/archive"]}},blockExplorers:{etherscan:{name:"KlaytnScope",url:"https://scope.klaytn.com"},default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}}},ut={id:59144,name:"Linea Mainnet",network:"linea-mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-mainnet.infura.io/v3"],webSocket:["wss://linea-mainnet.infura.io/ws/v3"]},default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.linea.build"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1},ht={id:59140,name:"Linea Goerli Testnet",network:"linea-testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"},blockscout:{name:"Blockscout",url:"https://explorer.goerli.linea.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0},dt={id:1337,name:"Localhost",network:"localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]},public:{http:["http://127.0.0.1:8545"]}}},ft={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},pt={id:5e3,name:"Mantle",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]},public:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"},default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}},mt={id:5001,name:"Mantle Testnet",network:"mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]},public:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{etherscan:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"},default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz"}},testnet:!0},gt={id:1088,name:"Metis",network:"andromeda",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]},public:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}},yt={id:599,name:"Metis Goerli",network:"metis-goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]},public:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}},wt={id:7518,network:"MEVerse",name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]},public:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}},bt={id:4759,network:"MEVerse Testnet",name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]},public:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0},vt={id:919,name:"Mode Testnet",network:"mode-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]},public:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network"}},testnet:!0},At={id:1287,name:"Moonbase Alpha",network:"moonbase-alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]},public:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonbase.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0},Et={id:1284,name:"Moonbeam",network:"moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{public:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]},default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1},xt={id:1285,name:"Moonriver",network:"moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{public:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]},default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io"},etherscan:{name:"Moonscan",url:"https://moonriver.moonscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1},_t={id:245022926,network:"neonDevnet",name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]},public:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0},St={id:4242,name:"Nexi",network:"nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]},public:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{etherscan:{name:"NexiScan",url:"https://www.nexiscan.com"},default:{name:"NexiScan",url:"https://www.nexiscan.com"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}},Mt={id:240,name:"Nexilix Smart Chain",network:"nexilix",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]},public:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{etherscan:{name:"NexilixScan",url:"https://scan.nexilix.com"},default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}},Ct={id:248,name:"Oasys",network:"oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]},public:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games"}}},kt={id:66,name:"OKC",network:"okc",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]},public:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}},It={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},Pt={id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},Ot={id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}},Nt={id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://matic-mumbai.chainstacklabs.com"]},public:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0},Tt={id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}},Rt={id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}},Bt={id:369,network:"pulsechain",name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]},public:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},Lt={id:943,network:"pulsechainV4",name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]},public:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}},Ut={id:35441,name:"Q Mainnet",network:"q-mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]},public:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org"}}},jt={id:35443,name:"Q Testnet",network:"q-testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]},public:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org"}},testnet:!0},Dt={id:570,name:"Rollux Mainnet",network:"rollux",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]},public:{http:["https://rollux.public-rpc.com"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}},Ft={id:57e3,name:"Rollux Testnet",network:"rollux-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]},public:{http:["https://rpc-tanenbaum.rollux.com/"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}},zt={id:2020,name:"Ronin",network:"ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]},public:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}},Ht={id:2021,name:"Saigon Testnet",network:"saigon",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]},public:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-explorer.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0},$t={id:534351,name:"Scroll Sepolia",network:"scroll-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"],webSocket:["wss://sepolia-rpc.scroll.io/ws"]},public:{http:["https://sepolia-rpc.scroll.io"],webSocket:["wss://sepolia-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io"}},testnet:!0},qt={id:534353,name:"Scroll Testnet",network:"scroll-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]},public:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io"}},testnet:!0},Wt={id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{decimals:18,name:"Oasis ROSE",symbol:"ROSE"},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]},public:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/mainnet/sapphire"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}},Vt={id:23295,name:"Oasis Sapphire Testnet",network:"sapphireTestnet",nativeCurrency:{decimals:18,name:"Oasis TEST",symbol:"TEST"},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]},public:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Explorer",url:"https://explorer.oasis.io/testnet/sapphire"}}},Gt={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0},Kt={id:391845894,name:"SKALE | Block Brawlers",network:"skale-brawl",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]},public:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}},Zt={id:1564830818,name:"SKALE | Calypso NFT Hub",network:"skale-calypso",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]},public:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}},Qt={id:344106930,name:"SKALE | Calypso NFT Hub Testnet",network:"skale-calypso-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-utter-unripe-menkar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2131424}},testnet:!0},Jt={id:1351057110,name:"SKALE | Chaos Testnet",network:"skale-chaos-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-fast-active-bellatrix"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1192202}},testnet:!0},Yt={id:1026062157,name:"SKALE | CryptoBlades",network:"skale-cryptoblades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]},public:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}},Xt={id:2046399126,name:"SKALE | Crypto Colosseum",network:"skale-crypto-coloseeum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]},public:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}},te={id:2046399126,name:"SKALE | Europa Liquidity Hub",network:"skale-europa",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]},public:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}},ee={id:476158412,name:"SKALE | Europa Liquidity Hub Testnet",network:"skale-europa-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-legal-crazy-castor"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-legal-crazy-castor"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-legal-crazy-castor.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2071911}},testnet:!0},re={id:2139927552,name:"SKALE | Exorde",network:"skale-exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]},public:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}},ne={id:1273227453,name:"SKALE | Human Protocol",network:"skale-human-protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]},public:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}},ie={id:1482601649,name:"SKALE | Nebula Gaming Hub",network:"skale-nebula",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]},public:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}},se={id:503129905,name:"SKALE | Nebula Gaming Hub Testnet",network:"skale-nebula-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2205882}},testnet:!0},oe={id:278611351,name:"SKALE | Razor Network",network:"skale-razor",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]},public:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}},ae={id:1350216234,name:"SKALE | Titan Community Hub",network:"skale-titan",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]},public:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}},ce={id:1517929550,name:"SKALE | Titan Community Hub Testnet",network:"skale-titan-testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]},public:{http:["https://staging-v3.skalenodes.com/v1/staging-aware-chief-gianfar"],webSocket:["wss://staging-v3.skalenodes.com/v1/ws/staging-aware-chief-gianfar"]}},blockExplorers:{blockscout:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"},default:{name:"SKALE Explorer",url:"https://staging-aware-chief-gianfar.explorer.staging-v3.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2085155}},testnet:!0},le={id:19,name:"Songbird Mainnet",network:"songbird-mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]},public:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network"}}},ue={id:16,name:"Coston",network:"coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]},public:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network"}},testnet:!0},he={id:8082,name:"Shardeum Sphinx",network:"shmSphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]},public:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0},de={id:57,name:"Syscoin Mainnet",network:"syscoin",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]},public:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}},fe={id:5700,name:"Syscoin Tanenbaum Testnet",network:"syscoin-testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]},public:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}},pe={id:841,name:"Taraxa Mainnet",network:"taraxa",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]},public:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}},me={id:167005,name:"Taiko (Alpha-3 Testnet)",network:"taiko-sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]},public:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}},ge={id:842,name:"Taraxa Testnet",network:"taraxa-testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]},public:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0},ye={id:40,name:"Telos",network:"telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]},public:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}},we={id:41,name:"Telos",network:"telosTestnet",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]},public:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0},be={id:997,name:"5ireChain Thunder Testnet",network:"5ireChain",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]},public:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0},ve={id:73799,name:"Volta Chain",network:"volta",nativeCurrency:{name:"VT",symbol:"VT",decimals:18},rpcUrls:{default:{http:["https://volta-rpc.energyweb.org"]},public:{http:["https://volta-rpc.energyweb.org"]}},blockExplorers:{default:{name:"Volta Explorer",url:"https://volta-explorer.energyweb.org"}},contracts:{ensRegistry:{address:"0xd7CeF70Ba7efc2035256d828d5287e2D285CD1ac"}}},Ae={id:888,name:"Wanchain",network:"wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]},public:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{etherscan:{name:"WanScan",url:"https://wanscan.org"},default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}},Ee={id:999,name:"Wanchain Testnet",network:"wanchainTestnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]},public:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{etherscan:{name:"WanScanTest",url:"https://wanscan.org"},default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0},xe={id:50,name:"XinFin Network",network:"xdc",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]},public:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}}},_e={id:51,name:"Apothem Network",network:"xdc-testnet",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]},public:{http:["https://erpc.apothem.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.apothem.network"},default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}}},Se={id:1337803,network:"zhejiang",name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]},public:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{beaconchain:{name:"Etherscan",url:"https://zhejiang.beaconcha.in"},blockscout:{name:"Blockscout",url:"https://blockscout.com/eth/zhejiang-testnet"},default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0},Me={id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]},public:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}},Ce={id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]},public:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0},ke={id:7001,name:"ZetaChain Athens Testnet",network:"zetachain-athens-testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{public:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]},default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0},Ie={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882}}},Pe={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123}},testnet:!0}},9174:(t,e,r)=>{"use strict";r.d(e,{t0:()=>A,zv:()=>m,uA:()=>y,uc:()=>$,jb:()=>W,zb:()=>b,AV:()=>p,Ic:()=>Y,Vs:()=>tt}),Symbol();const n=Symbol(),i=Object.getPrototypeOf,s=new WeakMap,o=(t,e=!0)=>{s.set(t,e)},a=t=>"object"==typeof t&&null!==t,c=new WeakMap,l=new WeakSet,[u]=((t=Object.is,e=((t,e)=>new Proxy(t,e)),r=(t=>a(t)&&!l.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)),u=(t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),h=new WeakMap,d=((t,e,r=u)=>{const n=h.get(t);if((null==n?void 0:n[0])===e)return n[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return o(i,!0),h.set(t,[e,i]),Reflect.ownKeys(t).forEach((e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const n=Reflect.get(t,e),s={value:n,enumerable:!0,configurable:!0};if(l.has(n))o(n,!1);else if(n instanceof Promise)delete s.value,s.get=()=>r(n);else if(c.has(n)){const[t,e]=c.get(n);s.value=d(t,e(),r)}Object.defineProperty(i,e,s)})),Object.preventExtensions(i)}),f=new WeakMap,p=[1,1],m=(o=>{if(!a(o))throw new Error("object required");const u=f.get(o);if(u)return u;let h=p[0];const g=new Set,y=(t,e=++p[0])=>{h!==e&&(h=e,g.forEach((r=>r(t,e))))};let w=p[1];const b=t=>(e,r)=>{const n=[...e];n[1]=[t,...n[1]],y(n,r)},v=new Map,A=t=>{var e;const r=v.get(t);r&&(v.delete(t),null==(e=r[1])||e.call(r))},E=Array.isArray(o)?[]:Object.create(Object.getPrototypeOf(o)),x=e(E,{deleteProperty(t,e){const r=Reflect.get(t,e);A(e);const n=Reflect.deleteProperty(t,e);return n&&y(["delete",[e],r]),n},set(e,o,u,h){const d=Reflect.has(e,o),p=Reflect.get(e,o,h);if(d&&(t(p,u)||f.has(u)&&t(p,f.get(u))))return!0;var w;A(o),a(u)&&(u=(t=>t&&(s.has(t)?s.get(t):i(t)===Object.prototype||i(t)===Array.prototype))(w=u)&&w[n]||null||u);let E=u;if(u instanceof Promise)u.then((t=>{u.status="fulfilled",u.value=t,y(["resolve",[o],t])})).catch((t=>{u.status="rejected",u.reason=t,y(["reject",[o],t])}));else{!c.has(u)&&r(u)&&(E=m(u));const t=!l.has(E)&&c.get(E);t&&((t,e)=>{if(v.has(t))throw new Error("prop listener already exists");if(g.size){const r=e[3](b(t));v.set(t,[e,r])}else v.set(t,[e])})(o,t)}return Reflect.set(e,o,E,h),y(["set",[o],u,p]),!0}});f.set(o,x);const _=[E,(t=++p[1])=>(w===t||g.size||(w=t,v.forEach((([e])=>{const r=e[1](t);r>h&&(h=r)}))),h),d,t=>(g.add(t),1===g.size&&v.forEach((([t,e],r)=>{if(e)throw new Error("remove already exists");const n=t[3](b(r));v.set(r,[t,n])})),()=>{g.delete(t),0===g.size&&v.forEach((([t,e],r)=>{e&&(e(),v.set(r,[t]))}))})];return c.set(x,_),Reflect.ownKeys(o).forEach((t=>{const e=Object.getOwnPropertyDescriptor(o,t);"value"in e&&(x[t]=o[t],delete e.value,delete e.writable),Object.defineProperty(E,t,e)})),x}))=>[m,c,l,t,e,r,u,h,d,f,p])();function h(t={}){return u(t)}function d(t,e,r){const n=c.get(t);let i;n||console.warn("Please use proxy object");const s=[],o=n[3];let a=!1;const l=o((t=>{s.push(t),r?e(s.splice(0)):i||(i=Promise.resolve().then((()=>{i=void 0,a&&e(s.splice(0))})))}));return a=!0,()=>{a=!1,l()}}const f=h({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),p={state:f,subscribe:t=>d(f,(()=>t(f))),push(t,e){t!==f.view&&(f.view=t,e&&(f.data=e),f.history.push(t))},reset(t){f.view=t,f.history=[t]},replace(t){f.history.length>1&&(f.history[f.history.length-1]=t,f.view=t)},goBack(){if(f.history.length>1){f.history.pop();const[t]=f.history.slice(-1);f.view=t}},setData(t){f.data=t}},m={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>m.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const t=navigator.userAgent.toLowerCase();return m.isMobile()&&(t.includes("iphone")||t.includes("ipad"))},isHttpUrl:t=>t.startsWith("http://")||t.startsWith("https://"),isArray:t=>Array.isArray(t)&&t.length>0,formatNativeUrl(t,e,r){if(m.isHttpUrl(t))return this.formatUniversalUrl(t,e,r);let n=t;return n.includes("://")||(n=t.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},formatUniversalUrl(t,e,r){if(!m.isHttpUrl(t))return this.formatNativeUrl(t,e,r);let n=t;return n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,r),`${n}wc?uri=${encodeURIComponent(e)}`},wait:async t=>new Promise((e=>{setTimeout(e,t)})),openHref(t,e){window.open(t,e,"noreferrer noopener")},setWalletConnectDeepLink(t,e){try{localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(t){try{const[e]=t.split("?");localStorage.setItem(m.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(m.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(m.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var t;const e=null==(t=p.state.data)?void 0:t.Wallet;if(!e)throw new Error('Missing "Wallet" view data');return e}},g=h({enabled:typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),y={state:g,subscribe:t=>d(g.events,(()=>t(function(t,e){const r=c.get(t);r||console.warn("Please use proxy object");const[n,i,s]=r;return s(n,i(),void 0)}(g.events[g.events.length-1])))),initialize(){g.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(g.userSessionId=crypto.randomUUID())},setConnectedWalletId(t){g.connectedWalletId=t},click(t){if(g.enabled){const e={type:"CLICK",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}},track(t){if(g.enabled){const e={type:"TRACK",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}},view(t){if(g.enabled){const e={type:"VIEW",name:t.name,userSessionId:g.userSessionId,timestamp:Date.now(),data:t};g.events.push(e)}}},w=h({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),b={state:w,subscribe:t=>d(w,(()=>t(w))),setChains(t){w.chains=t},setWalletConnectUri(t){w.walletConnectUri=t},setIsCustomDesktop(t){w.isCustomDesktop=t},setIsCustomMobile(t){w.isCustomMobile=t},setIsDataLoaded(t){w.isDataLoaded=t},setIsUiLoaded(t){w.isUiLoaded=t},setIsAuth(t){w.isAuth=t}},v=h({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),A={state:v,subscribe:t=>d(v,(()=>t(v))),setConfig(t){var e,r;y.initialize(),b.setChains(t.chains),b.setIsAuth(Boolean(t.enableAuthMode)),b.setIsCustomMobile(Boolean(null==(e=t.mobileWallets)?void 0:e.length)),b.setIsCustomDesktop(Boolean(null==(r=t.desktopWallets)?void 0:r.length)),m.setModalVersionInStorage(),Object.assign(v,t)}};var E=Object.defineProperty,x=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,M=(t,e,r)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const C="https://explorer-api.walletconnect.com",k="wcm",I="js-2.6.2";async function P(t,e){const r=((t,e)=>{for(var r in e||(e={}))_.call(e,r)&&M(t,r,e[r]);if(x)for(var r of x(e))S.call(e,r)&&M(t,r,e[r]);return t})({sdkType:k,sdkVersion:I},e),n=new URL(t,C);return n.searchParams.append("projectId",A.state.projectId),Object.entries(r).forEach((([t,e])=>{e&&n.searchParams.append(t,String(e))})),(await fetch(n)).json()}const O=async t=>P("/w3m/v1/getDesktopListings",t),N=async t=>P("/w3m/v1/getMobileListings",t),T=async t=>P("/w3m/v1/getAllListings",t),R=t=>`${C}/w3m/v1/getWalletImage/${t}?projectId=${A.state.projectId}&sdkType=${k}&sdkVersion=${I}`,B=t=>`${C}/w3m/v1/getAssetImage/${t}?projectId=${A.state.projectId}&sdkType=${k}&sdkVersion=${I}`;var L=Object.defineProperty,U=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,F=(t,e,r)=>e in t?L(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const z=m.isMobile(),H=h({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),$={state:H,async getRecomendedWallets(){const{explorerRecommendedWalletIds:t,explorerExcludedWalletIds:e}=A.state;if("NONE"===t||"ALL"===e&&!t)return H.recomendedWallets;if(m.isArray(t)){const e={recommendedIds:t.join(",")},{listings:r}=await T(e),n=Object.values(r);n.sort(((e,r)=>t.indexOf(e.id)-t.indexOf(r.id))),H.recomendedWallets=n}else{const{chains:t,isAuth:r}=b.state,n=t?.join(","),i=m.isArray(e),s={page:1,sdks:r?"auth_v1":void 0,entries:m.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:i?e.join(","):void 0},{listings:o}=z?await N(s):await O(s);H.recomendedWallets=Object.values(o)}return H.recomendedWallets},async getWallets(t){const e=((t,e)=>{for(var r in e||(e={}))j.call(e,r)&&F(t,r,e[r]);if(U)for(var r of U(e))D.call(e,r)&&F(t,r,e[r]);return t})({},t),{explorerRecommendedWalletIds:r,explorerExcludedWalletIds:n}=A.state,{recomendedWallets:i}=H;if("ALL"===n)return H.wallets;i.length?e.excludedIds=i.map((t=>t.id)).join(","):m.isArray(r)&&(e.excludedIds=r.join(",")),m.isArray(n)&&(e.excludedIds=[e.excludedIds,n].filter(Boolean).join(",")),b.state.isAuth&&(e.sdks="auth_v1");const{page:s,search:o}=t,{listings:a,total:c}=z?await N(e):await O(e),l=Object.values(a),u=o?"search":"wallets";return H[u]={listings:[...H[u].listings,...l],total:c,page:s??1},{listings:l,total:c}},getWalletImageUrl:t=>R(t),getAssetImageUrl:t=>B(t),resetSearch(){H.search={listings:[],total:0,page:1}}},q=h({open:!1}),W={state:q,subscribe:t=>d(q,(()=>t(q))),open:async t=>new Promise((e=>{const{isUiLoaded:r,isDataLoaded:n}=b.state;if(m.removeWalletConnectDeepLink(),b.setWalletConnectUri(t?.uri),b.setChains(t?.chains),p.reset("ConnectWallet"),r&&n)q.open=!0,e();else{const t=setInterval((()=>{const r=b.state;r.isUiLoaded&&r.isDataLoaded&&(clearInterval(t),q.open=!0,e())}),200)}})),close(){q.open=!1}};var V=Object.defineProperty,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,Q=(t,e,r)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;const J=h({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),Y={state:J,subscribe:t=>d(J,(()=>t(J))),setThemeConfig(t){const{themeMode:e,themeVariables:r}=t;e&&(J.themeMode=e),r&&(J.themeVariables=((t,e)=>{for(var r in e||(e={}))K.call(e,r)&&Q(t,r,e[r]);if(G)for(var r of G(e))Z.call(e,r)&&Q(t,r,e[r]);return t})({},r))}},X=h({open:!1,message:"",variant:"success"}),tt={state:X,subscribe:t=>d(X,(()=>t(X))),openToast(t,e){X.open=!0,X.message=t,X.variant=e},closeToast(){X.open=!1}}},663:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WcmModal:()=>un,WcmQrCode:()=>gr});const n=window,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class a{constructor(t,e,r){if(this._$cssResult$=!0,r!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&o.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[n+1]),t[0]);return new a(r,t,s)},l=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,s))(e)})(t):t;var u;const h=window,d=h.trustedTypes,f=d?d.emptyScript:"",p=h.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},g=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:g},w="finalized";class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const n=this._$Ep(r,e);void 0!==n&&(this._$Ev.set(n,r),t.push(n))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,r,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty(w))return!1;this[w]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{i?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),i=n.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=y){var n;const i=this.constructor._$Ep(t,r);if(void 0!==i&&!0===r.reflect){const s=(void 0!==(null===(n=r.converter)||void 0===n?void 0:n.toAttribute)?r.converter:m).toAttribute(e,r.type);this._$El=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(t,e){var r;const n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=n.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:m;this._$El=i,this[i]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let n=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var v;b[w]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:b}),(null!==(u=h.reactiveElementVersions)&&void 0!==u?u:h.reactiveElementVersions=[]).push("1.6.3");const A=window,E=A.trustedTypes,x=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,_="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,M="?"+S,C=`<${M}>`,k=document,I=()=>k.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,N="[ \t\n\f\r]",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,B=/>/g,L=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,j=/"/g,D=/^(?:script|style|textarea|title)$/i,F=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),z=F(1),H=F(2),$=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,V=k.createTreeWalker(k,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==x?x.createHTML(e):e}const K=(t,e)=>{const r=t.length-1,n=[];let i,s=2===e?"":"",o=T;for(let e=0;e"===c[0]?(o=null!=i?i:T,l=-1):void 0===c[1]?l=-2:(l=o.lastIndex-c[2].length,a=c[1],o=void 0===c[3]?L:'"'===c[3]?j:U):o===j||o===U?o=L:o===R||o===B?o=T:(o=L,i=void 0);const h=o===L&&t[e+1].startsWith("/>")?" ":"";s+=o===T?r+C:l>=0?(n.push(a),r.slice(0,l)+_+r.slice(l)+S+h):r+S+(-2===l?(n.push(void 0),e):h)}return[G(t,s+(t[r]||"")+(2===e?"":"")),n]};class Z{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0;const o=t.length-1,a=this.parts,[c,l]=K(t,e);if(this.el=Z.createElement(c,r),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=V.nextNode())&&a.length0){n.textContent=E?E.emptyScript:"";for(let r=0;rO(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==q&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(k.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Z.createElement(G(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(r);else{const t=new J(i,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Z(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,n=0;for(const i of t)n===e.length?e.push(r=new Y(this.k(I()),this.k(I()),this,this.options)):r=e[n],r._$AI(i),n++;n2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,n){const i=this.strings;let s=!1;if(void 0===i)t=Q(this,t,e,0),s=!P(t)||t!==this._$AH&&t!==$,s&&(this._$AH=t);else{const n=t;let o,a;for(t=i[0],o=0;o{var n,i;const s=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:e;let o=s._$litPart$;if(void 0===o){const t=null!==(i=null==r?void 0:r.renderBefore)&&void 0!==i?i:null;s._$litPart$=o=new Y(e.insertBefore(I(),t),t,void 0,null!=r?r:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return $}}ct.finalized=!0,ct._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:ct});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:ct}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.3.3");const ut=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(e){customElements.define(t,e)}}})(t,e),ht=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function dt(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):ht(t,e)}function ft(t){return dt({...t,state:!0})}var pt;null===(pt=window.HTMLSlotElement)||void 0===pt||pt.prototype.assignedElements;class mt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const gt=(yt=class extends mt{constructor(t){var e;if(super(t),1!==t.type||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const i=t.element.classList;this.it.forEach((t=>{t in e||(i.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(r?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return $}},(...t)=>({_$litDirective$:yt,values:t}));var yt,wt=r(9174);const bt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},vt=t=>1e3*t,At=()=>{},Et=t=>t;function xt(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}const _t=t=>t(),St=(t,e,r=bt.duration)=>new Proxy({animations:t.map(_t).filter(Boolean),duration:r,options:e},Mt),Mt={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return((null==r?void 0:r[e])||0)/1e3;case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(Ct)).catch(At)),t.finished;case"stop":return()=>{t.animations.forEach((t=>xt(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=vt(r);case"playbackRate":for(let n=0;nt.finished,kt=t=>"object"==typeof t&&Boolean(t.createAnimation),It=t=>"number"==typeof t,Pt=t=>Array.isArray(t)&&!It(t[0]),Ot=(t,e,r)=>-r*t+r*e+t,Nt=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Tt(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Nt(0,e,n);t.push(Ot(r,1,i))}}const Rt=(t,e,r)=>Math.min(Math.max(r,t),e);const Bt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function Lt(t,e,r,n){if(t===e&&r===n)return Et;return i=>0===i||1===i?i:Bt(function(t,e,r,n,i){let s,o,a=0;do{o=e+(r-e)/2,s=Bt(o,n,i)-t,s>0?r=o:e=o}while(Math.abs(s)>1e-7&&++a<12);return o}(i,0,1,t,r),e,n)}const Ut=t=>"function"==typeof t,jt=t=>Array.isArray(t)&&It(t[0]),Dt={ease:Lt(.25,.1,.25,1),"ease-in":Lt(.42,0,1,1),"ease-in-out":Lt(.42,0,.58,1),"ease-out":Lt(0,0,.58,1)},Ft=/\((.*?)\)/;function zt(t){if(Ut(t))return t;if(jt(t))return Lt(...t);if(Dt[t])return Dt[t];if(t.startsWith("steps")){const e=Ft.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const n=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,i="end"===e?Math.floor(n):Math.ceil(n);return Rt(0,1,i/t)})(parseFloat(t[0]),t[1].trim())}}return Et}class Ht{constructor(t,e=[0,1],{easing:r,duration:n=bt.duration,delay:i=bt.delay,endDelay:s=bt.endDelay,repeat:o=bt.repeat,offset:a,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Et,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||bt.easing,kt(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,n=t.duration||n}this.repeat=o,this.easing=Pt(r)?Et:zt(r),this.updateDuration(n);const l=function(t,e=function(t){const e=[0];return Tt(e,t-1),e}(t.length),r=Et){const n=t.length,i=n-e.length;return i>0&&Tt(e,i),i=>{let s=0;for(;s{const n=e-0;return((r-0)%n+n)%n+0})(0,t.length,e)]:t}(r,s);return o=a(o),Ot(t[s],t[s+1],o)}}(e,a,Pt(r)?r.map(zt):Et);this.tick=e=>{var r;let n=0;n=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=n,n/=1e3,n=Math.max(n-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(n=this.totalDuration);const o=n/this.duration;let a=Math.floor(o),u=o%1;!u&&o>=1&&(u=1),1===u&&a--;const h=a%2;("reverse"===c||"alternate"===c&&h||"alternate-reverse"===c&&!h)&&(u=1-u);const d=n>=this.totalDuration?1:Math.min(u,1),f=l(this.easing(d));t(f),void 0===this.pauseTime&&("finished"===this.playState||n>=this.totalDuration+s)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,f)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class $t{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const qt=new WeakMap;function Wt(t){return qt.has(t)||qt.set(t,{transforms:[],values:new Map}),qt.get(t)}const Vt=["","X","Y","Z"],Gt={x:"translateX",y:"translateY",z:"translateZ"},Kt={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Zt={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Kt,scale:{syntax:"",initialValue:1,toDefaultUnit:Et},skew:Kt},Qt=new Map,Jt=t=>`--motion-${t}`,Yt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Vt.forEach((e=>{Yt.push(t+e),Qt.set(Jt(t+e),Zt[t])}))}));const Xt=(t,e)=>Yt.indexOf(t)-Yt.indexOf(e),te=new Set(Yt),ee=t=>te.has(t),re=(t,e)=>`${t} ${e}(var(${Jt(e)}))`,ne=t=>t.startsWith("--"),ie=new Set,se=(t,e)=>document.createElement("div").animate(t,e),oe={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{se({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(se({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{se({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},ae={},ce={};for(const t in oe)ce[t]=()=>(void 0===ae[t]&&(ae[t]=oe[t]()),ae[t]);const le=(t,e)=>Ut(t)?ce.linearEasing()?`linear(${((t,e)=>{let r="";const n=Math.round(e/.015);for(let e=0;e`cubic-bezier(${t}, ${e}, ${r}, ${n})`;function he(t){return Gt[t]&&(t=Gt[t]),ee(t)?Jt(t):t}const de=(t,e,r)=>{e=he(e),ne(e)?t.style.setProperty(e,r):t.style[e]=r};function fe(t,e,r,n={},i){const s=window.__MOTION_DEV_TOOLS_RECORD,o=!1!==n.record&&s;let a,{duration:c=bt.duration,delay:l=bt.delay,endDelay:u=bt.endDelay,repeat:h=bt.repeat,easing:d=bt.easing,persist:f=!1,direction:p,offset:m,allowWebkitAcceleration:g=!1}=n;const y=Wt(t),w=ee(e);let b=ce.waapi();w&&((t,e)=>{Gt[e]&&(e=Gt[e]);const{transforms:r}=Wt(t);var n,i;i=e,-1===(n=r).indexOf(i)&&n.push(i),t.style.transform=(t=>t.sort(Xt).reduce(re,"").trim())(r)})(t,e);const v=he(e),A=function(t,e){return t.has(e)||t.set(e,new $t),t.get(e)}(y.values,v),E=Qt.get(v);return xt(A.animation,!(kt(d)&&A.generator)&&!1!==n.record),()=>{const y=()=>{var e,r;return null!==(r=null!==(e=((t,e)=>{e=he(e);let r=ne(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Qt.get(e);t&&(r=t.initialValue)}return r})(t,v))&&void 0!==e?e:null==E?void 0:E.initialValue)&&void 0!==r?r:0};let x=function(t,e){for(let r=0;rArray.isArray(t)?t:[t])(r),y);const _=function(t,e){var r;let n=(null==e?void 0:e.toDefaultUnit)||Et;const i=t[t.length-1];if("string"==typeof i){const t=(null===(r=i.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(n=e=>e+t)}return n}(x,E);if(kt(d)){const t=d.createAnimation(x,"opacity"!==e,y,v,A);d=t.easing,x=t.keyframes||x,c=t.duration||c}if(ne(v)&&(ce.cssRegisterProperty()?function(t){if(!ie.has(t)){ie.add(t);try{const{syntax:e,initialValue:r}=Qt.has(t)?Qt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(v):b=!1),w&&!ce.linearEasing()&&(Ut(d)||Pt(d)&&d.some(Ut))&&(b=!1),b){E&&(x=x.map((t=>It(t)?E.toDefaultUnit(t):t))),1!==x.length||ce.partialKeyframes()&&!o||x.unshift(y());const e={delay:vt(l),duration:vt(c),endDelay:vt(u),easing:Pt(d)?void 0:le(d,c),direction:p,iterations:h+1,fill:"both"};a=t.animate({[v]:x,offset:m,easing:Pt(d)?d.map((t=>le(t,c))):void 0},e),a.finished||(a.finished=new Promise(((t,e)=>{a.onfinish=t,a.oncancel=e})));const r=x[x.length-1];a.finished.then((()=>{f||(de(t,v,r),a.cancel())})).catch(At),g||(a.playbackRate=1.000001)}else if(i&&w)x=x.map((t=>"string"==typeof t?parseFloat(t):t)),1===x.length&&x.unshift(parseFloat(y())),a=new i((e=>{de(t,v,_?_(e):e)}),x,Object.assign(Object.assign({},n),{duration:c,easing:d}));else{const e=x[x.length-1];de(t,v,E&&It(e)?E.toDefaultUnit(e):e)}return o&&s(t,e,x,{duration:c,delay:l,easing:d,repeat:h,offset:m},"motion-one"),A.setAnimation(a),a}}const pe=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function me(t,e,r){return Ut(t)?t(e,r):t}const ge=(ye=Ht,function(t,e,r={}){const n=(t=function(t,e){return"string"==typeof t?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Boolean(n),Boolean(e);const i=[];for(let s=0;s{const r=new Ht(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function be(t,e,r){return(Ut(t)?we:ge)(t,e,r)}const ve=t=>null!=t?t:q;var Ae=r(2592),Ee=Object.defineProperty,xe=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Me=(t,e,r)=>e in t?Ee(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ce=(t,e)=>{for(var r in e||(e={}))_e.call(e,r)&&Me(t,r,e[r]);if(xe)for(var r of xe(e))Se.call(e,r)&&Me(t,r,e[r]);return t};const ke={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=wt.Ic.state;if(t){const r=Ce(Ce(Ce({},function(){var t;const e={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(t=wt.Ic.state.themeMode)?t:"dark"];return{"--wcm-color-fg-1":e.foreground[1],"--wcm-color-fg-2":e.foreground[2],"--wcm-color-fg-3":e.foreground[3],"--wcm-color-bg-1":e.background[1],"--wcm-color-bg-2":e.background[2],"--wcm-color-bg-3":e.background[3],"--wcm-color-overlay":e.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),e);Object.entries(r).forEach((([e,r])=>t.style.setProperty(e,r)))}},globalCss:c`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Ie=c`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Pe=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ne=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Oe(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Pe(e,r,s),s};let Te=class extends ct{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),z``}};Te.styles=[ke.globalCss,Ie],Ne([dt({type:Boolean})],Te.prototype,"disabled",2),Ne([dt()],Te.prototype,"iconLeft",2),Ne([dt()],Te.prototype,"iconRight",2),Ne([dt()],Te.prototype,"onClick",2),Ne([dt()],Te.prototype,"variant",2),Te=Ne([ut("wcm-button")],Te);const Re=c`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var Be=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Ue=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Le(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Be(e,r,s),s};let je=class extends ct{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return z``}};je.styles=[ke.globalCss,Re],Ue([dt({type:Boolean})],je.prototype,"disabled",2),Ue([dt()],je.prototype,"variant",2),je=Ue([ut("wcm-button-big")],je);const De=c`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Fe=class extends ct{render(){return z`
    `}};Fe.styles=[ke.globalCss,De],Fe=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-info-footer")],Fe);const ze={CROSS_ICON:H``,WALLET_CONNECT_LOGO:H``,WALLET_CONNECT_ICON:H``,WALLET_CONNECT_ICON_COLORED:H``,BACK_ICON:H``,COPY_ICON:H``,RETRY_ICON:H``,DESKTOP_ICON:H``,MOBILE_ICON:H``,ARROW_DOWN_ICON:H``,ARROW_UP_RIGHT_ICON:H``,ARROW_RIGHT_ICON:H``,QRCODE_ICON:H``,SCAN_ICON:H``,CHECKMARK_ICON:H``,SEARCH_ICON:H``,WALLET_PLACEHOLDER:H``,GLOBE_ICON:H``},He=c`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let $e=class extends ct{render(){return z`
    ${ze.WALLET_CONNECT_LOGO}
    `}};$e.styles=[ke.globalCss,He],$e=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-backcard")],$e);const qe=c`main{padding:20px;padding-top:0;width:100%}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let We=class extends ct{render(){return z`
    `}};We.styles=[ke.globalCss,qe],We=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-content")],We);const Ve=c`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ge=class extends ct{render(){return z`
    `}};Ge.styles=[ke.globalCss,Ve],Ge=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-modal-footer")],Ge);const Ke=c`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var Ze=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Je=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Qe(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Ze(e,r,s),s};let Ye=class extends ct{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return z``}actionBtnTemplate(){return z``}render(){const t={"wcm-border":this.border},e=wt.AV.state.history.length>1,r=this.title?z`${this.title}`:z``;return z`
    ${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
    `}};Ye.styles=[ke.globalCss,Ke],Je([dt()],Ye.prototype,"title",2),Je([dt()],Ye.prototype,"onAction",2),Je([dt()],Ye.prototype,"actionIcon",2),Je([dt({type:Boolean})],Ye.prototype,"border",2),Ye=Je([ut("wcm-modal-header")],Ye);const Xe={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=wt.t0.state;return null!=r&&r[t]?r[t]:e?wt.uc.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Xe.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const n=new Image;n.onload=e,n.onerror=r,n.crossOrigin="anonymous",n.src=t}));return Promise.race([e,wt.zv.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...n)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=wt.zb.state,{mobile:r,name:n}=t,i=r?.native,s=r?.universal;Xe.setRecentWallet(t),e&&function(t){let e="";i?e=wt.zv.formatUniversalUrl(i,t,n):s&&(e=wt.zv.formatNativeUrl(s,t,n)),wt.zv.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=wt.zb.state;t&&(wt.zv.setWalletConnectAndroidDeepLink(t),wt.zv.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=wt.zb.state;if(t)try{await navigator.clipboard.writeText(t),wt.Vs.openToast("Link copied","success")}catch{wt.Vs.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=wt.t0.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Xe.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Xe.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){wt.zv.openHref(Xe.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=wt.zv.getWalletRouterData(),r=Boolean(t?.native),n=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:n}},goToConnectingView(t){wt.AV.setData({Wallet:t});const e=wt.zv.isMobile(),{isDesktop:r,isWeb:n,isMobile:i}=Xe.getCachedRouterWalletPlatforms();e?i?wt.AV.push("MobileConnecting"):n?wt.AV.push("WebConnecting"):wt.AV.push("InstallWallet"):r?wt.AV.push("DesktopConnecting"):n?wt.AV.push("WebConnecting"):i?wt.AV.push("MobileQrcodeConnecting"):wt.AV.push("InstallWallet")}},tr=c`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var er=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,nr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?rr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&er(e,r,s),s};let ir=class extends ct{constructor(){super(),this.view=wt.AV.state.view,this.prevView=wt.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=wt.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&be(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Xe.getShadowRootElement(this,".wcm-router")}get contentEl(){return Xe.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return z``;case"DesktopConnecting":return z``;case"MobileConnecting":return z``;case"WebConnecting":return z``;case"MobileQrcodeConnecting":return z``;case"WalletExplorer":return z``;case"Qrcode":return z``;case"InstallWallet":return z``;default:return z`
    Not Found
    `}}async onChangeRoute(){await be(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=wt.AV.state.view,be(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return z`
    ${this.viewTemplate()}
    `}};ir.styles=[ke.globalCss,tr],nr([ft()],ir.prototype,"view",2),nr([ft()],ir.prototype,"prevView",2),ir=nr([ut("wcm-modal-router")],ir);const sr=c`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var or=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,cr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?ar(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&or(e,r,s),s};let lr=class extends ct{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=wt.Vs.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>wt.Vs.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),wt.Vs.closeToast()}render(){const{message:t,variant:e}=wt.Vs.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?z`
    ${"success"===e?ze.CHECKMARK_ICON:null} ${"error"===e?ze.CROSS_ICON:null}${t}
    `:null}};function ur(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}lr.styles=[ke.globalCss,sr],cr([ft()],lr.prototype,"open",2),lr=cr([ut("wcm-modal-toast")],lr);const hr={generate(t,e,r){const n="#141414",i=[],s=function(t,e){const r=Array.prototype.slice.call(Ae.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%n==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t),o=e/s.length,a=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];a.forEach((({x:t,y:e})=>{const r=(s.length-7)*o*t,c=(s.length-7)*o*e;for(let t=0;t`)}}));const c=Math.floor((r+25)/o),l=s.length/2-c/2,u=s.length/2+c/2-1,h=[];s.forEach(((t,e)=>{t.forEach(((t,r)=>{if(s[e][r]&&!(e<7&&r<7||e>s.length-8&&r<7||e<7&&r>s.length-8)&&!(e>l&&el&&r{d[t]?d[t].push(e):d[t]=[e]})),Object.entries(d).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!ur(t,e,o)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{i.push(H``)}))})),Object.entries(d).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>ur(t,e,o)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>te.some((e=>ur(t,e,o)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{i.push(H``)}))})),i}},dr=c`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,mr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?pr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&fr(e,r,s),s};let gr=class extends ct{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t="light"===wt.Ic.state.themeMode?this.size:this.size-36;return H`${hr.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":"dark"===wt.Ic.state.themeMode};return z`
    ${this.walletId||this.imageUrl?z``:ze.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
    `}};gr.styles=[ke.globalCss,dr],mr([dt()],gr.prototype,"uri",2),mr([dt({type:Number})],gr.prototype,"size",2),mr([dt()],gr.prototype,"imageId",2),mr([dt()],gr.prototype,"walletId",2),mr([dt()],gr.prototype,"imageUrl",2),gr=mr([ut("wcm-qrcode")],gr);const yr=c`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var wr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?br(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&wr(e,r,s),s};let Ar=class extends ct{constructor(){super(...arguments),this.onChange=()=>null}render(){return z` ${ze.SEARCH_ICON}`}};Ar.styles=[ke.globalCss,yr],vr([dt()],Ar.prototype,"onChange",2),Ar=vr([ut("wcm-search-input")],Ar);const Er=c`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let xr=class extends ct{render(){return z``}};xr.styles=[ke.globalCss,Er],xr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-spinner")],xr);const _r=c`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var Sr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Cr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Mr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Sr(e,r,s),s};let kr=class extends ct{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return z``}};kr.styles=[ke.globalCss,_r],Cr([dt()],kr.prototype,"variant",2),Cr([dt()],kr.prototype,"color",2),kr=Cr([ut("wcm-text")],kr);const Ir=c`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var Pr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,Nr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Or(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Pr(e,r,s),s};let Tr=class extends ct{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?z`RECENT`:this.installed?z`INSTALLED`:null}handleClick(){wt.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return z``}};Tr.styles=[ke.globalCss,Ir],Nr([dt()],Tr.prototype,"onClick",2),Nr([dt()],Tr.prototype,"name",2),Nr([dt()],Tr.prototype,"walletId",2),Nr([dt()],Tr.prototype,"label",2),Nr([dt()],Tr.prototype,"imageId",2),Nr([dt({type:Boolean})],Tr.prototype,"installed",2),Nr([dt({type:Boolean})],Tr.prototype,"recent",2),Tr=Nr([ut("wcm-wallet-button")],Tr);const Rr=c`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Br=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Ur=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Lr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Br(e,r,s),s};let jr=class extends ct{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Xe.getWalletIcon({id:this.walletId,image_id:this.imageId});return z`${e.length?z`
    ${this.id}
    `:ze.WALLET_PLACEHOLDER}`}};jr.styles=[ke.globalCss,Rr],Ur([dt()],jr.prototype,"walletId",2),Ur([dt()],jr.prototype,"imageId",2),Ur([dt()],jr.prototype,"imageUrl",2),jr=Ur([ut("wcm-wallet-image")],jr);var Dr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,zr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Fr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Dr(e,r,s),s};let Hr=class extends ct{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Xe.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(wt.t0.state.enableExplorer){await wt.uc.getRecomendedWallets(),wt.zb.setIsDataLoaded(!0);const{recomendedWallets:t}=wt.uc.state,e=t.map((t=>Xe.getWalletIcon(t)));await this.loadImages(e)}else wt.zb.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Xe.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),wt.Vs.openToast("Failed preloading","error")}}};zr([ft()],Hr.prototype,"preload",2),Hr=zr([ut("wcm-explorer-context")],Hr);Object.defineProperty,Object.getOwnPropertyDescriptor;let $r=class extends ct{constructor(){super(),this.unsubscribeTheme=void 0,ke.setTheme(),this.unsubscribeTheme=wt.Ic.subscribe(ke.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};$r=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-theme-context")],$r);const qr=c`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Wr=class extends ct{onGoToQrcode(){wt.AV.push("Qrcode")}render(){const{recomendedWallets:t}=wt.uc.state,e=[...t,...t],r=2*wt.zv.RECOMMENDED_WALLET_AMOUNT;return z`
    ${ze.MOBILE_ICON}WalletConnect
    ${[...Array(r)].map(((t,r)=>{const n=e[r%e.length];return n?z``:ze.WALLET_PLACEHOLDER}))}
    Select Wallet
    Choose WalletConnect to see supported apps on your device`}};Wr.styles=[ke.globalCss,qr],Wr=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-android-wallet-selection")],Wr);const Vr=c`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var Gr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Zr=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Kr(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Gr(e,r,s),s};let Qr=class extends ct{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=null!=(e=null==(t=wt.Ic.state.themeVariables)?void 0:t["--wcm-wallet-icon-large-border-radius"])?e:ke.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;return n=r.includes("%")?.88*parseInt(r,10):parseInt(r,10),n*=1.17,z``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return z`
    ${this.svgLoaderTemplate()}
    ${this.isError?"Connection declined":this.label}`}};Qr.styles=[ke.globalCss,Vr],Zr([dt()],Qr.prototype,"walletId",2),Zr([dt()],Qr.prototype,"imageId",2),Zr([dt({type:Boolean})],Qr.prototype,"isError",2),Zr([dt({type:Boolean})],Qr.prototype,"isStale",2),Zr([dt()],Qr.prototype,"label",2),Qr=Zr([ut("wcm-connector-waiting")],Qr);const Jr={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:n}=wt.t0.state,i=null==(t=Jr.recentWallet())?void 0:t.id,s=(wt.zv.isMobile()?r:n)?.filter((t=>i!==t.id));return null!=(e=wt.zv.isMobile()?s?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):s?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Xe.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Jr.recentWallet())?void 0:e.id,{recomendedWallets:n}=wt.uc.state;return n.filter((t=>r!==t.id))}},Yr={onConnecting(t){Xe.goToConnectingView(t)},manualWalletsTemplate(){return Jr.manualWallets().map((t=>z``))},recomendedWalletsTemplate(t=!1){return Jr.recomendedWallets(t).map((t=>z``))},recentWalletTemplate(){const t=Jr.recentWallet();if(t)return z``}},Xr=c`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let tn=class extends ct{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=wt.t0.state,r="ALL"!==t&&e,n=Yr.manualWalletsTemplate(),i=Yr.recomendedWalletsTemplate();let s=[Yr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>4||r;let a=[];a=o?s.slice(0,3):s;const c=Boolean(a.length);return z`
    ${ze.MOBILE_ICON}Mobile
    ${ze.SCAN_ICON}Scan with your wallet
    ${c?z`
    ${ze.DESKTOP_ICON}Desktop
    ${a} ${o?z``:null}
    `:null}`}};tn.styles=[ke.globalCss,Xr],tn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-desktop-wallet-selection")],tn);const en=c`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let rn=class extends ct{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=wt.t0.state;return t??e?z`
    By connecting your wallet to this app, you agree to the app's ${t?z`Terms of Service`:null} ${t&&e?"and":null} ${e?z`Privacy Policy`:null}
    `:null}};rn.styles=[ke.globalCss,en],rn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-legal-notice")],rn);const nn=c`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let sn=class extends ct{onQrcode(){wt.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=wt.t0.state,r="ALL"!==t&&e,n=Yr.manualWalletsTemplate(),i=Yr.recomendedWalletsTemplate();let s=[Yr.recentWalletTemplate(),...n,...i];s=s.filter(Boolean);const o=s.length>8||r;let a=[];a=o?s.slice(0,7):s;const c=Boolean(a.length);return z`${c?z`
    ${a} ${o?z``:null}
    `:null}`}};sn.styles=[ke.globalCss,nn],sn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-mobile-wallet-selection")],sn);const on=c`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var an=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,ln=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?cn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&an(e,r,s),s};let un=class extends ct{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=wt.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Xe.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Xe.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){document.querySelector("body")&&(t?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(t){t.target===t.currentTarget&&wt.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Xe.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([be(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,be(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Xe.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([be(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,be(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var e;"Escape"===t.key?wt.jb.close():"Tab"===t.key&&(null!=(e=t.target)&&e.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return z`
    ${this.open?z`
    `:null}
    `}};un.styles=[ke.globalCss,on],ln([ft()],un.prototype,"open",2),ln([ft()],un.prototype,"active",2),un=ln([ut("wcm-modal")],un);const hn=c`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var dn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,pn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?fn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&dn(e,r,s),s};let mn=class extends ct{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){wt.zv.isMobile()?wt.AV.replace("MobileConnecting"):wt.AV.replace("MobileQrcodeConnecting")}onDesktop(){wt.AV.replace("DesktopConnecting")}onWeb(){wt.AV.replace("WebConnecting")}render(){return z`
    ${this.isRetry?z``:null} ${this.isMobile?z`Mobile`:null} ${this.isDesktop?z`Desktop`:null} ${this.isWeb?z`Web`:null}
    `}};mn.styles=[ke.globalCss,hn],pn([dt({type:Boolean})],mn.prototype,"isMobile",2),pn([dt({type:Boolean})],mn.prototype,"isDesktop",2),pn([dt({type:Boolean})],mn.prototype,"isWeb",2),pn([dt({type:Boolean})],mn.prototype,"isRetry",2),mn=pn([ut("wcm-platform-selection")],mn);const gn=c`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let yn=class extends ct{onClick(){wt.AV.push("WalletExplorer")}render(){const{recomendedWallets:t}=wt.uc.state,e=[...t,...Jr.manualWallets()].reverse().slice(0,4);return z``}};yn.styles=[ke.globalCss,gn],yn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-view-all-wallets-button")],yn);const wn=c`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var bn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,An=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?vn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&bn(e,r,s),s};let En=class extends ct{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=wt.zb.state;this.uri=t}),0)}get overlayEl(){return Xe.getShadowRootElement(this,".wcm-qr-container")}render(){return z`
    ${this.uri?z``:z``}
    `}};En.styles=[ke.globalCss,wn],An([dt()],En.prototype,"walletId",2),An([dt()],En.prototype,"imageId",2),An([ft()],En.prototype,"uri",2),En=An([ut("wcm-walletconnect-qr")],En);Object.defineProperty,Object.getOwnPropertyDescriptor;let xn=class extends ct{viewTemplate(){return wt.zv.isAndroid()?z``:wt.zv.isMobile()?z``:z``}render(){return z`${this.viewTemplate()}`}};xn.styles=[ke.globalCss],xn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-connect-wallet-view")],xn);const _n=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Sn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Cn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Mn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Sn(e,r,s),s};let kn=class extends ct{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=wt.zv.getWalletRouterData(),n=e?.native;if(n){const e=wt.zv.formatNativeUrl(n,t,r);wt.zv.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=wt.zb.state,e=wt.zv.getWalletRouterData();Xe.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isMobile:n,isWeb:i}=Xe.getCachedRouterWalletPlatforms();return z`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};kn.styles=[ke.globalCss,_n],Cn([ft()],kn.prototype,"isError",2),kn=Cn([ut("wcm-desktop-connecting-view")],kn);const In=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Pn=class extends ct{onInstall(t){t&&wt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:n}=wt.zv.getWalletRouterData();return z`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};Pn.styles=[ke.globalCss,In],Pn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-install-wallet-view")],Pn);const On=c`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Rn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Tn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Nn(e,r,s),s};let Bn=class extends ct{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:n}=wt.zv.getWalletRouterData(),i=r?.native,s=r?.universal;if(i&&!e){const e=wt.zv.formatNativeUrl(i,t,n);wt.zv.openHref(e,"_self")}else if(s){const e=wt.zv.formatUniversalUrl(s,t,n);wt.zv.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=wt.zb.state,r=wt.zv.getWalletRouterData();Xe.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&wt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:n,mobile:i}=wt.zv.getWalletRouterData(),{isWeb:s}=Xe.getCachedRouterWalletPlatforms(),o=n?.ios,a=i?.universal;return z`Retry${a?z`Still doesn't work? Try this alternate link`:null}
    ${`Get ${t}`}
    App Store
    `}};Bn.styles=[ke.globalCss,On],Rn([ft()],Bn.prototype,"isError",2),Bn=Rn([ut("wcm-mobile-connecting-view")],Bn);const Ln=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;Object.defineProperty,Object.getOwnPropertyDescriptor;let Un=class extends ct{render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isDesktop:n,isWeb:i}=Xe.getCachedRouterWalletPlatforms();return z`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Un.styles=[ke.globalCss,Ln],Un=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-mobile-qr-connecting-view")],Un);Object.defineProperty,Object.getOwnPropertyDescriptor;let jn=class extends ct{render(){return z``}};jn.styles=[ke.globalCss],jn=((t,e,r,n)=>{for(var i,s=e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=i(s)||s);return s})([ut("wcm-qrcode-view")],jn);const Dn=c`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Fn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,Hn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?zn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Fn(e,r,s),s};let $n=class extends ct{constructor(){super(...arguments),this.loading=!wt.uc.state.wallets.listings.length,this.firstFetch=!wt.uc.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Xe.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,wt.uc.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),wt.uc.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Xe.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=wt.uc.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=wt.uc.state,{listings:n,total:i,page:s}=this.search?r:e;if(!this.endReached&&(this.firstFetch||i>40&&n.lengthXe.getWalletIcon(t)));await Promise.all([...n.map((async t=>Xe.preloadImage(t))),wt.zv.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),wt.Vs.openToast(Xe.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){wt.zv.isAndroid()?Xe.handleMobileLinking(t):Xe.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=wt.uc.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let s=Yr.manualWalletsTemplate(),o=Yr.recomendedWalletsTemplate(!0);i&&(s=s.filter((({values:t})=>Xe.caseSafeIncludes(t[0],this.search))),o=o.filter((({values:t})=>Xe.caseSafeIncludes(t[0],this.search))));const a=!this.loading&&!r.length&&!o.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":a};return z`
    ${n?null:s} ${n?null:o} ${n?null:r.map((t=>z`${t?z``:null}`))}
    ${a?z`No results found`:null} ${!a&&this.loading?z``:null}
    `}};$n.styles=[ke.globalCss,Dn],Hn([ft()],$n.prototype,"loading",2),Hn([ft()],$n.prototype,"firstFetch",2),Hn([ft()],$n.prototype,"search",2),Hn([ft()],$n.prototype,"endReached",2),$n=Hn([ut("wcm-wallet-explorer-view")],$n);const qn=c`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Wn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Gn=(t,e,r,n)=>{for(var i,s=n>1?void 0:n?Vn(e,r):e,o=t.length-1;o>=0;o--)(i=t[o])&&(s=(n?i(e,r,s):i(s))||s);return n&&s&&Wn(e,r,s),s};let Kn=class extends ct{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=wt.zv.getWalletRouterData(),n=e?.universal;if(n){const e=wt.zv.formatUniversalUrl(n,t,r);wt.zv.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=wt.zb.state,e=wt.zv.getWalletRouterData();Xe.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=wt.zv.getWalletRouterData(),{isMobile:n,isDesktop:i}=Xe.getCachedRouterWalletPlatforms(),s=wt.zv.isMobile();return z`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};Kn.styles=[ke.globalCss,qn],Gn([ft()],Kn.prototype,"isError",2),Kn=Gn([ut("wcm-web-connecting-view")],Kn)},9343:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WalletConnectModal:()=>i});var n=r(9174);class i{constructor(t){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.Ic.setThemeConfig,n.Ic.setThemeConfig(t),n.t0.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(r.bind(r,663));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),n.zb.setIsUiLoaded(!0)}}}},661:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')},1646:t=>{"use strict";t.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]')}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.amdO={},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(7405)})())); \ No newline at end of file diff --git a/cryptopay-wc-lite.php b/cryptopay-wc-lite.php index 2369327..867496c 100644 --- a/cryptopay-wc-lite.php +++ b/cryptopay-wc-lite.php @@ -11,7 +11,7 @@ /** * Plugin Name: CryptoPay Lite - * Version: 2.1.6 + * Version: 2.2.0 * Plugin URI: https://beycanpress.com/cryptopay/ * Description: All In One Cryptocurrency Payments for WordPress * Author: BeycanPress LLC @@ -22,7 +22,7 @@ * Domain Path: /languages * Tags: Cryptopay, Cryptocurrency, WooCommerce, WordPress, MetaMask, Trust, Binance, Wallet, Ethereum, Bitcoin, Binance smart chain, Payment, Plugin, Gateway * Requires at least: 5.0 - * Tested up to: 6.5.2 + * Tested up to: 6.5.3 * Requires PHP: 8.1 */ diff --git a/readme.txt b/readme.txt index 2cc3abb..5d8f255 100644 --- a/readme.txt +++ b/readme.txt @@ -2,10 +2,10 @@ Contributors: BeycanPress Tags: WooCommerce, Cryptocurrency, Payment, Gateway, Bitcoin Requires at least: 5.0 -Tested up to: 6.5.2 +Tested up to: 6.5.3 Requires PHP: 8.1 -Stable Tag: 2.1.6 -Version: 2.1.6 +Stable Tag: 2.2.0 +Version: 2.2.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -162,6 +162,12 @@ See: **